
*{box-sizing:border-box}
html{min-height:100%}
body{
  margin:0;
  min-height:100vh;
  font-family:Arial,"Arimo",sans-serif;
  direction:rtl;
  color:#183153;
  background:
    radial-gradient(circle at 10% 5%,#dff3ff 0,transparent 28%),
    radial-gradient(circle at 90% 8%,#fff0c9 0,transparent 24%),
    linear-gradient(160deg,#f9fcff,#edf6ff);
  padding:18px;
}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.wrap{width:min(980px,100%);margin:0 auto}
.head{text-align:center;margin:0 auto 16px}
.head h1{font-size:clamp(29px,5vw,46px);margin:0 0 6px;font-weight:900;letter-spacing:-.5px}
.head p{margin:0 auto;color:#687d93;font-weight:700;line-height:1.55;max-width:820px}
.card{
  background:#fff;
  border-radius:28px;
  box-shadow:0 18px 50px rgba(38,88,140,.13);
  border:1px solid rgba(47,128,237,.09);
  padding:18px;
  width:100%;
}
.bar,.compactbar{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:14px;
}
.compactbar{margin-bottom:10px}
.pill{
  background:#f3f9ff;
  border:2px solid #e0effc;
  padding:8px 14px;
  border-radius:999px;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:38px;
}
.btn{
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,#2f80ed,#1f66c1);
  color:#fff;
  font-weight:900;
  padding:12px 24px;
  cursor:pointer;
  box-shadow:0 9px 22px rgba(47,128,237,.23);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn:hover{filter:brightness(1.04)}
.btn.alt{background:linear-gradient(135deg,#ffad31,#f47b20)}
.btn.green{background:linear-gradient(135deg,#28c482,#16995f)}
.btn.small,.wide-low{
  padding:8px 20px;
  border-radius:13px;
  min-width:120px;
  min-height:38px;
  line-height:1.1;
}
.screen{
  position:relative;
  overflow:hidden;
  border-radius:23px;
  background:linear-gradient(145deg,#e3f5ff,#bde7ff);
  border:4px solid #fff;
  min-height:480px;
  touch-action:none;
  user-select:none;
}
.center{display:flex;align-items:center;justify-content:center;text-align:center}
.overlay{
  position:absolute;
  inset:0;
  background:rgba(248,252,255,.88);
  backdrop-filter:blur(5px);
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.box{
  background:#fff;
  border-radius:25px;
  box-shadow:0 15px 42px rgba(38,88,140,.18);
  padding:25px;
  width:min(520px,100%);
  text-align:center;
  margin:auto;
}
.box h2{font-size:31px;margin:0 0 9px}
.box p{color:#687d93;font-weight:700;line-height:1.55}
.hidden{display:none!important}
.msg{text-align:center;min-height:32px;font-size:22px;font-weight:900;margin-top:10px}
.controls{
  display:flex;
  justify-content:center;
  align-items:end;
  gap:12px;
  flex-wrap:wrap;
  margin:12px 0;
}
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-weight:900;
  text-align:right;
}
.field input,.field select,.field textarea,.inline-label select{
  border:2px solid #d8eafa;
  border-radius:13px;
  padding:9px 11px;
  background:white;
  color:#183153;
  font-weight:800;
}
.inline-label{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-weight:900;
  background:#f3f9ff;
  border:2px solid #e0effc;
  border-radius:999px;
  padding:5px 9px 5px 5px;
}
.home{
  display:inline-block;
  margin:14px auto 0;
  color:#176dca;
  font-weight:900;
  text-decoration:none;
}
.note{
  margin-top:12px;
  background:#fff7df;
  border:2px solid #ffe2a0;
  border-radius:17px;
  padding:11px 14px;
  text-align:center;
  font-weight:700;
  color:#75531a;
  line-height:1.55;
}
.keypad{
  display:grid;
  grid-template-columns:64px 64px 64px;
  grid-template-rows:52px 52px;
  gap:7px;
  justify-content:center;
  align-items:center;
  margin:12px auto 0;
  direction:ltr;
}
.keypad button{
  border:2px solid #cbdbe9;
  background:linear-gradient(180deg,#ffffff,#edf3f8);
  color:#183153;
  border-radius:12px;
  font-size:25px;
  font-weight:900;
  min-height:50px;
  box-shadow:0 5px 12px rgba(35,78,116,.13);
}
.key-up{grid-column:2;grid-row:1}
.key-left{grid-column:1;grid-row:2}
.key-down{grid-column:2;grid-row:2}
.key-right{grid-column:3;grid-row:2}

.global-end{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(20,44,72,.66);
  backdrop-filter:blur(7px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.global-end-card{
  width:min(470px,100%);
  background:#fff;
  border-radius:30px;
  padding:28px 22px;
  text-align:center;
  box-shadow:0 24px 70px rgba(10,42,72,.35);
  border:5px solid rgba(255,255,255,.8);
  animation:endPop .3s ease;
}
.global-end-trophy{font-size:76px;line-height:1}
.global-end-card h2{font-size:36px;margin:8px 0}
.global-end-card p{font-size:21px;font-weight:800;color:#566f87;margin:0 0 20px;line-height:1.5}
.global-end-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.end-home{background:linear-gradient(135deg,#75889a,#526678)}
.confetti-bit{position:fixed;top:-24px;z-index:10000;pointer-events:none;border-radius:2px;animation:confettiFall linear forwards}
@keyframes confettiFall{to{top:110vh;transform:translateX(30px) rotate(760deg)}}
@keyframes endPop{from{transform:scale(.75);opacity:0}to{transform:scale(1);opacity:1}}

.seo-section{
  margin:24px auto 0;
  background:#fff;
  border-radius:24px;
  padding:22px;
  box-shadow:0 10px 28px rgba(38,88,140,.09);
  border:1px solid rgba(47,128,237,.10);
  line-height:1.85;
  color:#243d58;
  max-width:980px;
  text-align:right;
}
.seo-section h2,.seo-section h3{margin:0 0 10px;font-weight:900;color:#17324d;text-align:center}
.seo-section p{margin:0 0 12px}
.seo-tags{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:12px}
.seo-tags span{background:#eef7ff;border:1px solid #d8ebfb;color:#1d5f9f;border-radius:999px;padding:6px 10px;font-size:14px;font-weight:800}
.disclaimer{
  margin-top:18px;
  background:#fff7df;
  border:2px solid #ffe0a3;
  border-radius:18px;
  padding:14px 16px;
  color:#745017;
  font-weight:800;
  line-height:1.75;
}
.faq details{background:#f7fbff;border:1px solid #e2effa;border-radius:16px;padding:12px 14px;margin:10px 0}
.faq summary{cursor:pointer;font-weight:900;color:#17324d}

@media(max-width:700px){
  body{padding:10px}
  .card{padding:11px;border-radius:22px}
  .screen{min-height:420px}
  .bar,.compactbar{gap:6px}
  .pill{padding:7px 10px;font-size:14px;min-height:34px}
  .btn.small,.wide-low{min-width:105px;min-height:34px;padding:7px 14px}
  .head h1{font-size:31px}
  .box{padding:20px}
  .keypad{grid-template-columns:58px 58px 58px;grid-template-rows:48px 48px}
  .keypad button{min-height:46px}
  .seo-section{padding:16px;border-radius:20px}
}
