/* ============================================================
   خليك AWARE — Vodafone-style 8-bit design tokens + components
   ============================================================ */
:root{
  --vf-red:#E60000; --vf-red-d:#B30000; --vf-red-dd:#8a0000;
  --ink:#1b1b1b; --paper:#ffffff; --tape:#FFCC00; --tape-d:#C99A00;
  --ok:#2BB673; --ok-d:#1A7F4E; --info:#00B0CA; --grey:#d9d9d9;
  --px:'Pixelify Sans', ui-monospace, monospace;
  --body:'Pixelify Sans', system-ui, sans-serif;
  --u:4px;
}
html[lang=ar]{ --px:'Lalezar','Cairo',sans-serif; --body:'Cairo',system-ui,sans-serif; }

*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body{ height:100%; margin:0; }
body{
  background:#0d0d0d; color:var(--ink); font-family:var(--body); font-size:19px; line-height:1.35;
  display:flex; justify-content:center; align-items:center; overflow:hidden;
  background-image:conic-gradient(#151515 25%, #0d0d0d 0 50%, #151515 0 75%, #0d0d0d 0); background-size:16px 16px;
  -webkit-font-smoothing:none; user-select:none; -webkit-user-select:none;
}
button{ font:inherit; color:inherit; }
img,svg{ display:block; }

/* ---------- display font helper ---------- */
.ar{ font-family:'Lalezar','Cairo',sans-serif; font-weight:400; font-size:1.25em; letter-spacing:0; line-height:1; text-transform:none; }
.d{ font-family:var(--px); letter-spacing:0; line-height:1.25; font-weight:700; }
html[lang=ar] .d{ font-weight:400; line-height:1.2; }
html[lang=ar] .body{ font-weight:800; }
.body{ font-family:var(--body); }

/* ---------- app shell ---------- */
#app{
  position:relative; width:100%; max-width:480px; height:100dvh; max-height:920px; overflow:hidden;
  background-color:var(--vf-red);
  background-image:conic-gradient(#da0000 25%, var(--vf-red) 0 50%, #da0000 0 75%, var(--vf-red) 0);
  background-size:8px 8px; display:flex; flex-direction:column;
}
@media (min-width:600px){ #app{ box-shadow:0 0 0 6px #000, 0 0 0 12px var(--tape), 0 0 0 18px #000; height:min(100dvh - 40px, 860px); } }
.crt{ position:absolute; inset:0; pointer-events:none; z-index:60;
  background:repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.07) 2px 3px); mix-blend-mode:multiply; }

#sky{ position:absolute; left:0; bottom:0; width:100%; image-rendering:pixelated; display:none; pointer-events:none; z-index:0; }
body[data-screen=title] #sky{ display:block; }
.spr{ display:inline-block; line-height:0; vertical-align:middle; }
a.btn{ display:flex; align-items:center; justify-content:center; gap:10px; }

/* ---------- HUD ---------- */
.hud{ position:relative; z-index:30; flex:none; display:flex; align-items:center; gap:10px; padding:10px 12px;
  background:var(--ink); color:#fff; border-bottom:4px solid #000; min-height:58px; }
.hud .logo{ cursor:pointer; flex:none; }
.hud .mid{ flex:1; min-width:0; font-size:14px; color:var(--tape); white-space:nowrap; }
html[lang=ar] .hud .mid{ font-size:17px; }
.hud .sc{ font-size:15px; color:#fff; text-align:end; display:flex; align-items:center; gap:5px; justify-content:flex-end; }
.hud .sc b{ color:var(--tape); font-weight:400; }
.ib{ width:40px; height:40px; flex:none; background:#fff; border:0; padding:0; display:grid; place-items:center; cursor:pointer;
  box-shadow:0 -3px 0 #000, 0 3px 0 #000, -3px 0 0 #000, 3px 0 0 #000, inset -3px -3px 0 rgba(0,0,0,.18); margin:3px; color:#111; font-family:var(--px); font-size:14px; }
html[lang=ar] .ib{ font-size:19px; }
.ib:active{ transform:translateY(3px); }
.ib.off{ opacity:.55; }

/* ---------- screens ---------- */
.screen{ position:relative; z-index:2; flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; display:flex; flex-direction:column; padding:14px 14px 18px; }
.screen.center{ justify-content:center; }
.screen::-webkit-scrollbar{ width:0; }

/* ---------- pixel box ---------- */
.px{ position:relative; background:var(--paper); color:var(--ink); margin:4px;
  box-shadow:0 -4px 0 0 #000, 0 4px 0 0 #000, -4px 0 0 0 #000, 4px 0 0 0 #000, inset -4px -4px 0 rgba(0,0,0,.16); }
.px.dark{ background:var(--ink); color:#fff; }
.px.yellow{ background:var(--tape); }
.px.red{ background:var(--vf-red); color:#fff; }

/* ---------- buttons ---------- */
.btn{ position:relative; display:block; width:calc(100% - 8px); margin:8px 4px; padding:14px 14px; min-height:54px; border:0; cursor:pointer;
  background:#fff; color:var(--ink); text-align:center; font-family:var(--px); font-size:16px; text-transform:uppercase;
  box-shadow:0 -4px 0 0 #000, 0 4px 0 0 #000, -4px 0 0 0 #000, 4px 0 0 0 #000, inset -4px -4px 0 rgba(0,0,0,.18), inset 4px 4px 0 rgba(255,255,255,.6); }
html[lang=ar] .btn{ font-size:22px; text-transform:none; font-weight:700; }
.btn:active:not(:disabled){ transform:translateY(4px); }
.btn.primary{ background:var(--tape); }
.btn.red{ background:var(--vf-red); color:#fff; }
.btn.dark{ background:var(--ink); color:#fff; }
.btn.green{ background:var(--ok); color:#fff; }
.btn.sm{ min-height:44px; font-size:14px; padding:10px; }
html[lang=ar] .btn.sm{ font-size:20px; }
.btn.inline{ display:inline-block; width:auto; }
.btn:disabled{ opacity:.5; cursor:not-allowed; }
.blink{ animation:blink 1s steps(2) infinite; }
@keyframes blink{ 50%{ opacity:.25; } }
.btn:focus-visible, .ib:focus-visible, .opt:focus-visible, .card:focus-visible, .chip:focus-visible{ outline:4px dashed var(--info); outline-offset:3px; }

/* ---------- option buttons (answers) ---------- */
.opt{ position:relative; display:flex; gap:12px; align-items:center; width:calc(100% - 8px); margin:7px 4px; padding:9px 10px; min-height:50px; border:0; cursor:pointer;
  background:#fff; color:var(--ink); text-align:start; font-family:var(--body); font-weight:700; font-size:18px; line-height:1.25;
  box-shadow:0 -4px 0 0 #000, 0 4px 0 0 #000, -4px 0 0 0 #000, 4px 0 0 0 #000, inset -4px -4px 0 rgba(0,0,0,.14); }
html[lang=ar] .opt{ font-size:20px; }
.opt .k{ flex:none; width:30px; height:30px; background:var(--vf-red); color:#fff; display:grid; place-items:center; font-family:var(--px); font-weight:700; font-size:15px; }
.opt:active:not(:disabled){ transform:translateY(4px); }
.opt.bad{ background:#ffd9d9; opacity:.7; text-decoration:line-through; }
.opt.good{ background:#c8f5dc; }
.opt:disabled{ cursor:default; }
.shake{ animation:shake .4s steps(8); }
@keyframes shake{ 20%{ transform:translateX(-6px);} 40%{ transform:translateX(6px);} 60%{ transform:translateX(-4px);} 80%{ transform:translateX(4px);} }

/* ---------- title ---------- */
.title{ align-items:center; text-align:center; gap:0; padding-top:10px; }
.lockup{ width:104%; max-width:440px; margin:6px 0 0; animation:floaty 3s steps(6) infinite; filter:drop-shadow(0 6px 0 rgba(0,0,0,.35)); }
@keyframes floaty{ 50%{ transform:translateY(-6px) rotate(.6deg);} }
.t-h1{ color:#fff; font-size:21px; line-height:1.5; margin:18px 4px 6px; text-shadow:3px 3px 0 #000; }
html[lang=ar] .t-h1{ font-size:43px; line-height:1.05; }
.t-sub{ color:var(--tape); font-size:14px; text-shadow:3px 3px 0 #000; margin:0 0 6px; }
html[lang=ar] .t-sub{ font-size:28px; }
.mascots{ display:flex; justify-content:center; align-items:flex-end; gap:34px; margin:6px 0 20px; position:relative; z-index:3; }
.mascots .hero{ animation:bob 1s steps(2) infinite; }
.mascots .villain{ animation:bob 1s steps(2) infinite .5s; transform:scaleX(-1); }
@keyframes bob{ 50%{ transform:translateY(-6px); } }
.mascots .villain{ animation-name:bobv; }
@keyframes bobv{ 0%,100%{ transform:scaleX(-1) translateY(0);} 50%{ transform:scaleX(-1) translateY(-6px);} }
.title .grow{ flex:1; min-height:8px; }
.langrow{ display:flex; gap:10px; justify-content:center; margin:6px 0; position:relative; z-index:3; }
.langrow .btn{ width:auto; min-width:100px; margin:6px 4px; }
.langrow .btn.on{ background:var(--tape); }
.disc{ position:relative; z-index:3; color:#fff; font-size:16px; opacity:.95; margin:10px 12px 0; max-width:320px; text-shadow:2px 2px 0 #000; font-family:var(--body); font-weight:700; }
html[lang=ar] .disc{ font-size:16px; }

/* ---------- hero select ---------- */
.h2{ color:#fff; font-size:17px; text-shadow:3px 3px 0 #000; margin:6px 4px 12px; text-align:center; }
html[lang=ar] .h2{ font-size:32px; }
.heroes{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; margin:6px 0 12px; }
.card{ position:relative; border:0; cursor:pointer; padding:14px 8px 10px; background:#fff; color:var(--ink); text-align:center; display:flex; flex-direction:column; align-items:center; gap:8px;
  box-shadow:0 -4px 0 0 #000, 0 4px 0 0 #000, -4px 0 0 0 #000, 4px 0 0 0 #000, inset -4px -4px 0 rgba(0,0,0,.14); margin:4px; }
.card:active{ transform:translateY(4px); }
.card.sel{ background:var(--tape); }
.card.sel::after{ content:''; position:absolute; inset:-10px; border:4px dashed #fff; pointer-events:none; animation:blink 1s steps(2) infinite; }
.card .nm{ font-size:14px; }
html[lang=ar] .card .nm{ font-size:22px; }
.card.sel .hero-spr{ animation:bob .6s steps(2) infinite; }

/* ---------- map ---------- */
.mapgrid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px 14px; margin:4px 0 10px; }
.lc{ text-align:start; padding:12px 10px 10px; align-items:stretch; gap:6px; }
.lc .num{ font-size:13px; color:var(--vf-red); }
html[lang=ar] .lc .num{ font-size:18px; }
.lc .ttl{ font-family:var(--body); font-weight:800; font-size:18px; line-height:1.15; min-height:34px; }
html[lang=ar] .lc .ttl{ font-size:20px; }
.lc .row{ display:flex; justify-content:space-between; align-items:center; gap:4px; }
.lc .pts{ font-size:13px; }
html[lang=ar] .lc .pts{ font-size:17px; }
.lc .ico{ background:var(--grey); width:44px; height:44px; display:grid; place-items:center; }
.lc.done{ background:#fff; }
.lc .tick{ position:absolute; top:-10px; inset-inline-end:-10px; }
.stars{ display:flex; gap:2px; }
.boss-card{ background:var(--ink); color:#fff; flex-direction:row; align-items:center; text-align:start; gap:12px; padding:14px; margin:8px 4px; }
.boss-card.locked{ opacity:.85; filter:grayscale(.6); }
.boss-card .bt{ font-size:16px; color:var(--tape); }
html[lang=ar] .boss-card .bt{ font-size:24px; }
.boss-card .bs{ font-family:var(--body); font-size:16px; font-weight:700; opacity:.9; }
.hint{ color:#fff; font-size:16px; font-weight:700; text-align:center; text-shadow:2px 2px 0 #000; margin:6px 8px; font-family:var(--body); }
.tot{ display:flex; justify-content:center; align-items:center; gap:10px; margin:0 0 10px; }
.tot .px{ padding:8px 14px; font-size:15px; }
html[lang=ar] .tot .px{ font-size:22px; }
.tinylink{ background:none; border:0; color:#fff; opacity:.75; text-decoration:underline; font-family:var(--body); font-weight:700; font-size:16px; margin:8px auto 0; cursor:pointer; }

/* ---------- level ---------- */
.lv{ position:relative; z-index:2; flex:1; min-height:0; display:flex; flex-direction:column; }
.lvhead{ flex:none; padding:10px 14px 6px; color:#fff; }
.lvhead .n{ font-size:14px; color:var(--tape); text-shadow:2px 2px 0 #000; }
html[lang=ar] .lvhead .n{ font-size:20px; }
.lvhead .t{ font-size:18px; text-shadow:3px 3px 0 #000; }
html[lang=ar] .lvhead .t{ font-size:32px; }
.phases{ display:block; margin-top:8px; }
.pip{ flex:1; background:rgba(0,0,0,.45); color:#fff; text-align:center; padding:6px 2px; font-size:12px; border-bottom:4px solid rgba(0,0,0,.4); }
html[lang=ar] .pip{ font-size:16px; padding:4px 2px 5px; }
.pip.on{ background:var(--tape); color:#111; border-bottom-color:var(--tape-d); }
.pip.done{ background:var(--ok); color:#fff; border-bottom-color:var(--ok-d); }
.stagebox{ flex:1; min-height:120px; overflow-y:auto; padding:10px 14px 8px; position:relative; }
.stagebox::-webkit-scrollbar{ width:0; }
.mission{ color:#fff; font-weight:800; font-size:16px; text-align:center; margin:0 4px 8px; text-shadow:2px 2px 0 #000; font-family:var(--body); }
html[lang=ar] .mission{ font-size:19px; }
.panel{ position:relative; flex:none; max-height:54%; overflow-y:auto; background:#f4f4f4; border-top:6px solid #000; padding:10px 14px 14px; z-index:5; }
.panel::-webkit-scrollbar{ width:0; }
.ask{ display:flex; align-items:center; gap:10px; margin:0 0 6px; }
.ask .av{ flex:none; }
.ask .q{ flex:1; font-family:var(--body); font-weight:800; font-size:18px; background:#fff; padding:8px 10px; position:relative;
  box-shadow:0 -3px 0 #000, 0 3px 0 #000, -3px 0 0 #000, 3px 0 0 #000; margin:3px; }
html[lang=ar] .ask .q{ font-size:21px; }

/* ---------- phone scenes ---------- */
.phone{ position:relative; width:min(100%,310px); margin:4px auto 10px; padding:8px 10px 10px; background:#000;
  box-shadow:0 -4px 0 #000, 0 4px 0 #000, -4px 0 0 #000, 4px 0 0 #000, 0 0 0 8px #444; }
.phone::before{ content:''; display:block; width:40%; height:5px; margin:0 auto 6px; background:#333; }
.pscr{ position:relative; min-height:200px; padding:8px; overflow:hidden; }
.shaky{ animation:shake .5s steps(8) infinite; }
.stamp{ position:absolute; top:42%; left:50%; z-index:9; transform:translate(-50%,-50%) rotate(-12deg);
  font-family:var(--px); color:var(--vf-red); border:6px solid var(--vf-red); background:rgba(255,255,255,.92); padding:10px 16px; font-size:30px; white-space:nowrap;
  animation:stampIn .4s steps(5) both; pointer-events:none; }
html[lang=ar] .stamp{ font-size:50px; }
@keyframes stampIn{ 0%{ transform:translate(-50%,-50%) rotate(-12deg) scale(3); opacity:0;} 100%{ transform:translate(-50%,-50%) rotate(-12deg) scale(1); opacity:1;} }

/* call */
.scr-call{ background:linear-gradient(#262640,#14141f); color:#fff; text-align:center; }
.scr-call .cav{ width:46px; height:46px; margin:0 auto 4px; background:#555; display:grid; place-items:center; box-shadow:0 0 0 4px #888; }
.scr-call .cav .spr svg{ filter:invert(1); }
.scr-call .cn{ font-family:var(--body); font-weight:800; font-size:21px; }
.scr-call .cs{ font-family:var(--body); font-size:16px; opacity:.7; }
.scr-call .tm{ display:inline-block; margin:6px 0 2px; background:var(--vf-red); padding:5px 8px; font-size:13px; }
html[lang=ar] .scr-call .tm{ font-size:18px; }
.bubbles{ display:flex; flex-direction:column; gap:6px; margin-top:4px; text-align:start; }
.bub{ background:#fff; color:#111; padding:6px 9px; font-family:var(--body); font-weight:700; font-size:16px; line-height:1.25; align-self:flex-start; max-width:92%;
  box-shadow:0 -3px 0 #000, 0 3px 0 #000, -3px 0 0 #000, 3px 0 0 #000; margin:3px; animation:pop .25s steps(3) both; }
html[lang=ar] .bub{ font-size:18px; }
.bub.me{ align-self:flex-end; background:var(--tape); }
@keyframes pop{ from{ transform:scale(.6); opacity:0;} to{ transform:scale(1); opacity:1;} }
.toast{ margin-top:6px; background:var(--tape); color:#111; padding:8px 10px; text-align:start; display:flex; gap:8px; align-items:center;
  box-shadow:0 -3px 0 #000, 0 3px 0 #000, -3px 0 0 #000, 3px 0 0 #000; margin:10px 3px 3px; font-family:var(--body); font-weight:700; font-size:16px; animation:pop .25s steps(3) both; }
html[lang=ar] .toast{ font-size:17px; }
.toast b{ font-family:var(--px); }

/* prize */
.scr-prize{ background:repeating-linear-gradient(90deg,#ffe066 0 16px,#ffcc00 16px 32px); text-align:center; }
.scr-prize .big{ font-size:25px; color:var(--vf-red); text-shadow:3px 3px 0 #000; margin:2px 0 4px; animation:blink 1.2s steps(2) infinite; }
html[lang=ar] .scr-prize .big{ font-size:37px; }
.scr-prize .amt{ font-size:28px; color:#111; margin:4px 0 8px; }
html[lang=ar] .scr-prize .amt{ font-size:39px; }
.scr-prize .box{ background:#fff; padding:10px; font-family:var(--body); font-weight:700; font-size:16px; text-align:start; margin:6px 3px;
  box-shadow:0 -3px 0 #000, 0 3px 0 #000, -3px 0 0 #000, 3px 0 0 #000; }
html[lang=ar] .scr-prize .box{ font-size:18px; }
.fakebtn{ display:block; margin:10px 3px 2px; background:var(--vf-red); color:#fff; padding:10px; font-size:14px; box-shadow:0 -3px 0 #000, 0 3px 0 #000, -3px 0 0 #000, 3px 0 0 #000; }
html[lang=ar] .fakebtn{ font-size:19px; }
.confetti i{ position:absolute; width:8px; height:8px; top:-10px; animation:fall linear infinite; }
@keyframes fall{ to{ transform:translateY(340px) rotate(360deg); } }

/* transfer */
.scr-tr{ background:#e9eef5; }
.smsb{ background:#fff; padding:8px 10px; font-family:var(--body); font-weight:700; font-size:16px; text-align:start;
  box-shadow:0 -3px 0 #000, 0 3px 0 #000, -3px 0 0 #000, 3px 0 0 #000; margin:3px 3px 8px; }
html[lang=ar] .smsb{ font-size:18px; }
.smsb .fr{ font-family:var(--px); font-size:12px; color:var(--ok-d); display:block; margin-bottom:3px; }
html[lang=ar] .smsb .fr{ font-size:16px; }
.scr-tr .cnm{ font-family:var(--body); font-weight:800; font-size:16px; color:#444; margin:4px 4px 2px; }
.code{ direction:ltr; unicode-bidi:isolate; display:inline-block; background:#111; color:var(--tape); padding:0 4px; font-family:var(--px); font-size:.8em; }

/* inbox */
.scr-inbox{ background:#e9eef5; padding:8px; min-height:0; }
.msg{ background:#fff; margin:10px 3px; padding:10px; text-align:start; transition:transform .2s;
  box-shadow:0 -3px 0 #000, 0 3px 0 #000, -3px 0 0 #000, 3px 0 0 #000; }
.msg .mh{ display:flex; justify-content:space-between; align-items:center; font-size:12px; margin-bottom:5px; color:#555; gap:8px; }
html[lang=ar] .msg .mh{ font-size:16px; }
.msg .app{ background:#111; color:#fff; padding:2px 5px; }
.msg .app.wa{ background:#1a7f4e; }
.msg .mt{ font-family:var(--body); font-weight:700; font-size:16px; line-height:1.3; direction:auto; word-break:break-word; }
html[lang=ar] .msg .mt{ font-size:18px; }
.msg .mb{ display:flex; gap:8px; margin-top:9px; }
.msg .mb .btn{ margin:4px; width:auto; flex:1; min-height:42px; padding:8px; font-size:13px; display:flex; align-items:center; justify-content:center; gap:6px; }
html[lang=ar] .msg .mb .btn{ font-size:19px; }
.msg.s-scam{ background:#ffe3e3; }
.msg.s-safe{ background:#d7f6e5; }
.msg .verdict{ margin-top:8px; font-size:12px; }
html[lang=ar] .msg .verdict{ font-size:17px; }
.msg .vwhy{ font-family:var(--body); font-weight:700; font-size:16px; margin-top:4px; opacity:.85; }
html[lang=ar] .msg .vwhy{ font-size:17px; }
.msg.v-scam .verdict{ color:var(--vf-red); } .msg.v-safe .verdict{ color:var(--ok-d); }

/* missed */
.scr-missed{ background:linear-gradient(#1b2a49,#0f1626); color:#fff; text-align:center; }
.scr-missed .clk{ font-size:38px; margin:6px 0 2px; }
.scr-missed .dt{ font-family:var(--body); font-size:16px; opacity:.7; margin-bottom:10px; }
.mc{ display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.14); padding:8px 10px; margin:8px 3px; text-align:start;
  box-shadow:0 -3px 0 #000, 0 3px 0 #000, -3px 0 0 #000, 3px 0 0 #000; animation:pop .25s steps(3) both; }
.mc .ph{ background:var(--vf-red); padding:5px; flex:none; }
.mc .ph .spr svg{ filter:invert(1); }
.mc .nn{ direction:ltr; font-size:14px; display:block; text-align:start; }
.mc .tt{ font-family:var(--body); font-weight:700; font-size:15px; opacity:.8; display:block; }
html[lang=ar] .mc .tt{ font-size:16px; }
.mc .time{ margin-inline-start:auto; font-size:13px; opacity:.8; }
.ringwave{ position:absolute; top:6px; inset-inline-end:8px; }

/* shop */
.scr-shop{ background:#fff; padding:0; }
.shh{ display:flex; align-items:center; gap:8px; padding:8px; border-bottom:3px solid #000; }
.shh .av{ width:30px; height:30px; background:var(--tape); display:grid; place-items:center; flex:none; font-size:15px; }
.shh .sn{ font-family:var(--body); font-weight:800; font-size:16px; direction:ltr; }
.shh .sp{ font-size:12px; color:#777; margin-inline-start:auto; }
.shimg{ position:relative; background:repeating-conic-gradient(#ffe066 0 25%, #ffcc00 0 50%) 0 0/24px 24px; padding:12px 0 6px; display:grid; place-items:center; }
.burst{ position:absolute; top:6px; inset-inline-start:6px; background:var(--vf-red); color:#fff; padding:6px 8px; font-size:16px; transform:rotate(-8deg); box-shadow:0 -3px 0 #000,0 3px 0 #000,-3px 0 0 #000,3px 0 0 #000; }
.shbody{ padding:8px 10px; text-align:start; }
.shbody .pr{ font-size:18px; color:var(--vf-red); } .shbody .pr s{ color:#777; font-size:13px; margin-inline-start:6px; }
.shbody .pt{ font-family:var(--body); font-weight:700; font-size:16px; margin-top:6px; }
html[lang=ar] .shbody .pt{ font-size:18px; }
.chips{ display:flex; flex-wrap:wrap; gap:6px; padding:6px 8px 4px; }
.chip{ border:0; background:var(--info); color:#fff; padding:6px 8px; font-family:var(--px); font-size:12px; cursor:pointer; display:flex; gap:4px; align-items:center;
  box-shadow:0 -3px 0 #000, 0 3px 0 #000, -3px 0 0 #000, 3px 0 0 #000; margin:3px; }
html[lang=ar] .chip{ font-size:17px; }
.chip.found{ background:var(--vf-red); }
.clue{ margin:2px 8px 8px; padding:8px 10px; background:#fff0f0; border-inline-start:6px solid var(--vf-red); font-family:var(--body); font-weight:700; font-size:16px; animation:pop .2s steps(3) both; }
html[lang=ar] .clue{ font-size:17px; }
.cluecount{ font-family:var(--body); font-weight:700; font-size:16px; color:#fff; text-align:center; margin:0 4px 8px; text-shadow:2px 2px 0 #000; }
.cluecount b{ color:var(--tape); font-size:13px; }
html[lang=ar] .cluecount{ font-size:17px; } html[lang=ar] .cluecount b{ font-size:18px; }

/* ---------- feedback sheet ---------- */
.shade{ position:absolute; inset:0; z-index:40; background:rgba(0,0,0,.55); animation:fade .2s steps(3) both; display:flex; align-items:flex-end; }
@keyframes fade{ from{ opacity:0; } to{ opacity:1; } }
.sheet{ width:100%; background:#fff; padding:16px 16px 22px; border-top:8px solid var(--vf-red); animation:up .3s steps(6) both; max-height:80%; overflow:auto; }
.sheet.ok{ border-top-color:var(--ok); }
@keyframes up{ from{ transform:translateY(100%);} to{ transform:none; } }
.sheet .st{ display:flex; align-items:center; gap:10px; }
.sheet h3{ margin:0; font-size:16px; }
html[lang=ar] .sheet h3{ font-size:28px; }
.sheet.ok h3{ color:var(--ok-d); } .sheet.bad h3{ color:var(--vf-red); }
.sheet .hit{ display:inline-block; margin:10px 0 0; background:var(--ink); color:#ff5a5a; padding:6px 10px; font-size:15px; animation:blink .5s steps(2) 4; }
.sheet .plus{ display:inline-block; margin:10px 0 0; background:var(--ink); color:var(--tape); padding:6px 10px; font-size:16px; }
html[lang=ar] .sheet .hit, html[lang=ar] .sheet .plus{ font-size:22px; }
.sheet p{ font-family:var(--body); font-weight:700; font-size:18px; margin:10px 0 4px; line-height:1.35; }
html[lang=ar] .sheet p{ font-size:20px; }
.sheet .catline{ font-size:13px; color:#555; margin-top:6px; }
html[lang=ar] .sheet .catline{ font-size:18px; }

/* ---------- level complete ---------- */
.clear{ align-items:stretch; }
.clear .big{ text-align:center; color:#fff; font-size:25px; text-shadow:3px 3px 0 #000; margin:6px 0 4px; }
html[lang=ar] .clear .big{ font-size:48px; }
.clear .stars{ justify-content:center; margin:6px 0 10px; }
.brk{ padding:10px 12px; margin:6px 4px 14px; }
.brk .r{ display:flex; justify-content:space-between; font-family:var(--body); font-weight:800; font-size:17px; padding:5px 0; border-bottom:2px dashed #bbb; }
html[lang=ar] .brk .r{ font-size:19px; }
.brk .r .v{ font-family:var(--px); font-size:15px; } html[lang=ar] .brk .r .v{ font-size:21px; }
.brk .r.t{ border-bottom:0; color:var(--vf-red); font-size:19px; padding-top:8px; }
.rule{ padding:12px; margin:6px 4px 14px; }
.rule .rh{ font-size:13px; color:var(--tape); margin-bottom:6px; } html[lang=ar] .rule .rh{ font-size:18px; }
.rule .rt{ font-size:16px; margin-bottom:6px; } html[lang=ar] .rule .rt{ font-size:26px; }
.rule .rd{ font-family:var(--body); font-weight:700; font-size:17px; line-height:1.35; } html[lang=ar] .rule .rd{ font-size:19px; }
.conf{ position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:1; }
.conf i{ position:absolute; top:-12px; width:8px; height:8px; animation:fall2 linear forwards; }
@keyframes fall2{ to{ transform:translateY(900px) rotate(540deg);} }

/* ---------- boss ---------- */
.bosshud{ display:flex; align-items:center; gap:10px; margin:2px 0 8px; color:#fff; }
.hearts{ display:flex; gap:3px; background:var(--ink); padding:7px 8px; box-shadow:0 -3px 0 #000,0 3px 0 #000,-3px 0 0 #000,3px 0 0 #000; margin:3px; }
.bossbar{ flex:1; }
.bossbar .lab{ font-size:12px; text-shadow:2px 2px 0 #000; margin-bottom:3px; } html[lang=ar] .bossbar .lab{ font-size:17px; }
.hp{ height:14px; background:#000; padding:2px; }
.hp i{ display:block; height:100%; background:var(--tape); transition:width .4s steps(6); }
.tmr{ height:10px; background:#000; padding:2px; margin:2px 4px 8px; }
.tmr i{ display:block; height:100%; background:var(--ok); transform-origin:left; }
html[dir=rtl] .tmr i{ transform-origin:right; }
.arena{ display:flex; align-items:flex-end; justify-content:space-between; padding:0 8px; margin:0 0 6px; }
.arena .vv{ transform:scaleX(-1); }
.hitfx{ animation:shake .4s steps(8); filter:brightness(2); }
.bscene{ padding:12px; margin:8px 4px 10px; }
.bscene .bf{ display:flex; align-items:center; gap:8px; font-size:13px; color:#555; margin-bottom:8px; }
html[lang=ar] .bscene .bf{ font-size:18px; }
.bscene .bf .tp{ background:#111; color:#fff; padding:2px 6px; }
.bscene .bt{ font-family:var(--body); font-weight:800; font-size:21px; line-height:1.35; }
html[lang=ar] .bscene .bt{ font-size:21px; }
.bonus{ color:var(--tape); }

/* ---------- results ---------- */
.res{ align-items:stretch; }
.res .rk{ text-align:center; margin:4px 0 6px; }
.res .rk .lab{ font-size:13px; color:var(--tape); text-shadow:2px 2px 0 #000; } html[lang=ar] .res .rk .lab{ font-size:19px; }
.res .rk .nm{ font-size:24px; color:#fff; text-shadow:3px 3px 0 #000; margin-top:6px; } html[lang=ar] .res .rk .nm{ font-size:45px; }
.sc2{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; margin:8px 4px 14px; }
.sc2 .px{ margin:4px; padding:10px 6px; text-align:center; }
.sc2 .l{ font-size:12px; color:#555; } html[lang=ar] .sc2 .l{ font-size:17px; }
.sc2 .v{ font-size:19px; margin-top:4px; color:var(--vf-red); } html[lang=ar] .sc2 .v{ font-size:30px; }
.sc2 .v small{ font-size:13px; color:#777; }
.sty{ padding:12px; margin:6px 4px 14px; display:flex; gap:12px; align-items:flex-start; }
.sty .ico{ flex:none; background:var(--grey); width:52px; height:52px; display:grid; place-items:center; }
.sty .sh{ font-size:12px; color:var(--vf-red); } html[lang=ar] .sty .sh{ font-size:17px; }
.sty .sn{ font-size:16px; margin:4px 0; } html[lang=ar] .sty .sn{ font-size:26px; }
.sty p{ font-family:var(--body); font-weight:700; font-size:16px; margin:2px 0; line-height:1.3; } html[lang=ar] .sty p{ font-size:18px; }
.sty .tip{ color:var(--ok-d); }
.gr{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:6px 0 12px; }
.gr .px{ text-align:center; padding:12px 4px; margin:4px; }
.gr .w{ font-size:16px; color:var(--vf-red); } html[lang=ar] .gr .w{ font-size:28px; }
.gr .dd{ font-family:var(--body); font-weight:700; font-size:15px; margin-top:6px; line-height:1.25; } html[lang=ar] .gr .dd{ font-size:16px; }
.outro{ text-align:center; color:#fff; font-size:17px; text-shadow:3px 3px 0 #000; margin:6px 0 8px; } html[lang=ar] .outro{ font-size:35px; }
.btnrow{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:4px; }
.btnrow .btn{ margin:8px 4px; width:calc(100% - 8px); }
.btnrow .full{ grid-column:1 / -1; }
a.btn{ text-decoration:none; }

.tapehero{ height:16px; background:repeating-linear-gradient(-45deg,var(--tape) 0 14px,#111 14px 28px); margin:6px -14px 10px; border-block:4px solid #000; }

@media (max-height:700px){
  .pscr{ min-height:200px; }
  .mascots{ transform:scale(.85); transform-origin:bottom; }
}
@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition:none !important; }
}

.later{ animation:appear .3s steps(3) var(--dl,0s) both; }
@keyframes appear{ from{ opacity:0; pointer-events:none; } to{ opacity:1; pointer-events:auto; } }
#view{ flex:1; min-height:0; display:flex; flex-direction:column; position:relative; z-index:2; }

/* ============================================================
   v2 additions: size tokens, HUD with real logo, home button,
   player form, OTP, leaderboard
   ============================================================ */
:root{ --fs-body:17px; --fs-sm:14px; }
html[lang=ar]{ --fs-body:18px; --fs-sm:16px; }
.bigtitle{ font-size:26px; } html[lang=ar] .bigtitle{ font-size:46px; }

/* HUD */
.hud{ gap:8px; padding:8px 10px; min-height:62px; }
.hud .mid{ display:flex; align-items:center; justify-content:center; padding:0 2px; }
.hlogo{ height:36px; width:auto; max-width:100%; object-fit:contain; display:block; filter:drop-shadow(2px 2px 0 rgba(0,0,0,.55)); }
.hud .sc{ font-size:17px; min-width:0; }
.hud .sc b{ font-weight:700; }
html[lang=ar] .hud .sc{ font-size:20px; }
.ib.home{ background:var(--tape); }
.ib.home:disabled{ opacity:.35; cursor:default; }
.ib.lng{ width:auto; min-width:44px; padding:0 8px; }
.ib.lng .ar{ font-size:19px; }
.ib{ width:44px; height:44px; }
@media (max-width:380px){ .hlogo{ height:30px; } .ib{ width:40px; height:40px; } .hud{ gap:6px; padding:8px 8px; } .ib.lng{ min-width:40px; } }

/* heroes row on the profile screen */
.heroes.four{ grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:4px 0 14px; }
.heroes.four .card{ padding:10px 2px 8px; margin:3px; gap:6px; }
.heroes.four .card .nm{ font-size:13px; line-height:1.1; } html[lang=ar] .heroes.four .card .nm{ font-size:17px; }

/* forms */
.formbox{ padding:14px 14px 10px; margin:6px 4px 14px; }
.fl{ display:block; font-size:14px; color:var(--vf-red); margin:8px 0 6px; } html[lang=ar] .fl{ font-size:19px; }
.fi{ width:100%; min-height:50px; border:0; background:#f1f1f1; color:var(--ink); padding:10px 12px; font-family:var(--body); font-weight:700; font-size:20px;
  box-shadow:inset 0 0 0 3px #000; border-radius:0; outline:0; user-select:text; -webkit-user-select:text; }
html[lang=ar] .fi{ font-size:20px; }
.fi:focus{ background:#fff8d6; box-shadow:inset 0 0 0 3px #000, 0 0 0 4px var(--info); }
.fi::placeholder{ color:#9a9a9a; font-weight:600; }
.telwrap{ display:flex; gap:8px; align-items:stretch; direction:ltr; }
.telwrap .cc{ flex:none; display:grid; place-items:center; padding:0 12px; background:var(--ink); color:var(--tape); font-size:18px; }
.telwrap .fi{ letter-spacing:.06em; }
.chk{ display:flex; gap:12px; align-items:flex-start; margin:14px 0 4px; font-family:var(--body); font-weight:700; font-size:14.5px; line-height:1.35; cursor:pointer; }
html[lang=ar] .chk{ font-size:15.5px; }
.chk input{ flex:none; appearance:none; -webkit-appearance:none; width:28px; height:28px; margin:1px 0 0; background:#fff; box-shadow:inset 0 0 0 3px #000; cursor:pointer; position:relative; }
.chk input:checked{ background:var(--ok); }
.chk input:checked::after{ content:''; position:absolute; inset:5px 6px 9px 6px; border:solid #fff; border-width:0 0 5px 5px; transform:rotate(-45deg) translate(1px,-1px); }
.chk input:focus-visible, .fi:focus-visible{ outline:4px dashed var(--info); outline-offset:3px; }
.ferr{ min-height:22px; margin:8px 0 0; color:var(--vf-red-d); font-family:var(--body); font-weight:800; font-size:15px; line-height:1.3; }
.ferr.center{ text-align:center; color:#fff; text-shadow:2px 2px 0 #000; margin:6px 12px; }
html[lang=ar] .ferr{ font-size:16px; }
.fp{ font-family:var(--body); font-weight:700; font-size:17px; margin:0 0 10px; line-height:1.35; }
html[lang=ar] .fp{ font-size:18px; }
.fi.otp{ text-align:center; font-size:32px; letter-spacing:.35em; padding-inline-start:.35em; min-height:64px; font-family:var(--px); }
.devhint{ background:var(--ink); color:#fff; padding:8px 10px; margin:0 0 10px; font-size:14px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
html[lang=ar] .devhint{ font-size:17px; }
.devhint .code{ font-size:20px; letter-spacing:.2em; }
.note{ display:flex; gap:10px; align-items:flex-start; background:#fff0f0; border-inline-start:6px solid var(--vf-red); padding:8px 10px; margin:8px 0 6px; font-family:var(--body); font-weight:700; font-size:14px; line-height:1.35; }
html[lang=ar] .note{ font-size:15px; }
.who-t{ color:#fff; text-align:center; font-size:16px; text-shadow:2px 2px 0 #000; margin:6px 0 0; position:relative; z-index:3; }
.who-t b{ color:var(--tape); }
html[lang=ar] .who-t{ font-size:22px; }

/* map header: who + rank */
.who{ display:flex; align-items:center; gap:10px; padding:8px 10px; margin:0 4px 12px; }
.who .wn{ flex:1; min-width:0; }
.who .wn .d{ font-size:18px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } html[lang=ar] .who .wn .d{ font-size:22px; }
.who .ws{ font-size:13px !important; color:#555; } html[lang=ar] .who .ws{ font-size:16px !important; }
.linkrow{ display:flex; flex-wrap:wrap; justify-content:center; gap:4px 18px; }
.linkrow .tinylink{ font-size:15px; } html[lang=ar] .linkrow .tinylink{ font-size:16px; }
.tinylink{ font-size:15px; }
.themelink{ display:block; text-align:center; color:#fff; position:relative; z-index:3; margin:4px auto 6px; }

/* leaderboard */
.lb{ padding:6px 10px; margin:4px 4px 14px; }
.lbrow{ display:flex; align-items:center; gap:10px; padding:8px 4px; border-bottom:2px dashed #ccc; }
.lbrow:last-child{ border-bottom:0; }
.lbrow.me{ background:var(--tape); margin:0 -6px; padding-inline:10px; }
.rk2{ flex:none; width:34px; font-size:19px; color:var(--vf-red); text-align:center; }
.lbrow:nth-child(-n+3) .rk2{ font-size:23px; }
.lbav{ flex:none; width:40px; height:40px; display:grid; place-items:center; background:var(--grey); overflow:hidden; }
.lbn{ flex:1; min-width:0; font-family:var(--body); font-weight:800; font-size:17px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html[lang=ar] .lbn{ font-size:18px; }
.lbs{ flex:none; font-size:19px; } html[lang=ar] .lbs{ font-size:22px; }
.yrank{ padding:12px; margin:6px 4px 14px; text-align:center; color:var(--tape); font-size:17px; } html[lang=ar] .yrank{ font-size:21px; }

/* Arabic: Lalezar has a single weight, never fake-bold it */
html[lang=ar] .btn, html[lang=ar] .ib, html[lang=ar] .chip, html[lang=ar] .stamp, html[lang=ar] .fakebtn,
html[lang=ar] .opt .k{ font-weight:400; }
html[lang=ar] .opt, html[lang=ar] .ask .q, html[lang=ar] .bub, html[lang=ar] .toast, html[lang=ar] .mission, html[lang=ar] .hint{ font-weight:800; }

/* bigger touch / readability on phones */
.opt{ min-height:56px; }
.btn{ min-height:58px; }
.btn.sm{ min-height:50px; }

html[lang=en] body, html[lang=en] button, html[lang=en] input{ font-variant-ligatures:none; font-feature-settings:"liga" 0, "clig" 0, "calt" 0; }
.themelink{ display:inline-block; background:rgba(0,0,0,.55); padding:6px 12px; text-decoration:none; font-size:14px; opacity:1; }
.disc{ font-size:15px; } html[lang=ar] .disc{ font-size:16px; }
.t-sub{ font-size:17px; } html[lang=ar] .t-sub{ font-size:26px; }

/* ---------- v3: read -> DECIDE -> answer (no overlapping panels) ---------- */
.dock{ position:relative; flex:none; z-index:5; padding:10px 14px max(14px, env(safe-area-inset-bottom)); background:linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.32)); }
.dock .btn{ width:100%; }
.askmode{ min-height:0; }
.peek{ flex:none; padding:0 14px 8px; position:relative; z-index:4; }
.peekbtn{ display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:44px; border:0; cursor:pointer; padding:8px 12px;
  background:rgba(0,0,0,.5); color:#fff; font-size:13px; letter-spacing:.03em; box-shadow:0 4px 0 rgba(0,0,0,.45); }
html[lang=ar] .peekbtn{ font-size:19px; }
.peekbtn:active{ transform:translateY(3px); box-shadow:0 1px 0 rgba(0,0,0,.45); }
.peek.open .peekbtn{ background:var(--tape); color:#111; }
.peek .stagebox{ flex:none; max-height:36dvh; margin-top:8px; padding:6px 0 4px; overflow-y:auto; background:rgba(0,0,0,.28); }
.qa{ flex:1; min-height:0; overflow-y:auto; display:flex; flex-direction:column; justify-content:center; background:#f4f4f4; border-top:6px solid #000; padding:14px 14px max(18px, env(safe-area-inset-bottom)); gap:6px; animation:qaIn .28s steps(5) both; }
.qa::-webkit-scrollbar{ width:0; }
.qa .ask{ margin:0 0 10px; align-items:flex-end; }
.qa .ask .q{ font-size:20px; line-height:1.3; }
html[lang=ar] .qa .ask .q{ font-size:24px; line-height:1.35; }
.qa .opt{ min-height:62px; margin:6px 4px; font-size:18px; animation:optIn .26s steps(4) both; animation-delay:calc(var(--k,0)*90ms + 120ms); }
html[lang=ar] .qa .opt{ font-size:22px; }
.qa .opt .k{ width:36px; height:36px; font-size:17px; }
@keyframes qaIn{ from{ transform:translateY(40px); opacity:0; } to{ transform:none; opacity:1; } }
@keyframes optIn{ from{ transform:translateX(26px); opacity:0; } to{ transform:none; opacity:1; } }
html[dir=rtl] .qa .opt{ animation-name:optInR; }
@keyframes optInR{ from{ transform:translateX(-26px); opacity:0; } to{ transform:none; opacity:1; } }
@media (prefers-reduced-motion:reduce){ .qa, .qa .opt{ animation:none; } }
/* title: keep every text readable above the animated skyline */
#sky{ height:min(234px, 26dvh); object-fit:cover; object-position:bottom; }
.title .tinylink{ position:relative; z-index:3; background:rgba(0,0,0,.6); color:#fff; opacity:1; text-decoration:none; padding:8px 14px; min-height:40px; margin:8px auto 0; box-shadow:3px 3px 0 #000; }
.title .mascots{ margin:14px 0 18px; }
.title .who-t{ position:relative; z-index:3; text-shadow:2px 2px 0 #000; }
/* question view: evidence card fills the top, answers sit under the thumb */
.askmode .peek{ flex:1; min-height:0; display:flex; flex-direction:column; justify-content:center; padding-top:6px; }
.askmode .peek:not(.open) .peekbtn{ min-height:92px; font-size:15px; flex-direction:column; gap:6px; }
html[lang=ar] .askmode .peek:not(.open) .peekbtn{ font-size:22px; }
.askmode .peek .stagebox{ flex:1; max-height:none; min-height:0; }
.askmode .qa{ flex:none; max-height:64%; justify-content:flex-start; }
.askmode .peek.open + .qa{ max-height:48%; }

/* ---------- v4: progress — always show where you are and what comes next ---------- */
.steps{ display:flex; gap:5px; }
.steps i{ flex:1; height:14px; background:rgba(0,0,0,.45); border-bottom:4px solid rgba(0,0,0,.4); display:block; position:relative; }
.steps i.on{ background:var(--tape); border-bottom-color:var(--tape-d); animation:segpulse 1s steps(2) infinite; }
.steps i.done{ background:var(--ok); border-bottom-color:var(--ok-d); }
.steps i.boss{ flex:1.3; background:#4a1010; }
.steps i.boss.on{ background:var(--vf-red); border-bottom-color:#7a0000; }
.steps i.boss.done{ background:var(--tape); }
@keyframes segpulse{ 50%{ filter:brightness(1.3); } }
.stepline{ display:flex; align-items:baseline; gap:10px; margin-top:7px; color:#fff; font-family:var(--body); font-weight:800; font-size:14px; text-shadow:2px 2px 0 #000; }
.stepline b{ color:var(--tape); font-size:13px; font-weight:400; } .stepline span{ flex:1; } .stepline em{ font-style:normal; font-size:13px; opacity:.9; }
html[lang=ar] .stepline{ font-size:19px; } html[lang=ar] .stepline b, html[lang=ar] .stepline em{ font-size:18px; }
.journey{ margin:0 4px 12px; padding:10px 12px 12px; }
.journey .jl{ display:flex; justify-content:space-between; font-size:13px; margin-bottom:7px; } html[lang=ar] .journey .jl{ font-size:19px; }
.journey .steps i{ height:16px; background:#d9d9d9; border-bottom-color:#bbb; }
.journey .steps i.done{ background:var(--ok); border-bottom-color:var(--ok-d); } .journey .steps i.on{ background:var(--tape); border-bottom-color:var(--tape-d); }
.journey .steps i.boss{ background:#e7c9c9; border-bottom-color:#c9a3a3; } .journey .steps i.boss.on{ background:var(--vf-red); } .journey .steps i.boss.done{ background:var(--tape); }
.lc.next{ outline:4px solid var(--tape); outline-offset:3px; animation:nudge 1.2s steps(2) infinite; }
.lc .here{ position:absolute; top:-13px; inset-inline-start:8px; background:var(--tape); color:#111; font-size:11px; padding:4px 8px; box-shadow:2px 2px 0 #000; z-index:2; } html[lang=ar] .lc .here{ font-size:16px; }
.boss-card.next{ outline:4px solid var(--tape); outline-offset:3px; animation:nudge 1.2s steps(2) infinite; }
@keyframes nudge{ 50%{ outline-color:#fff; } }
.sheetprog{ display:flex; align-items:center; gap:10px; margin-top:10px; } .sheetprog .steps{ flex:1; } .sheetprog .steps i{ height:10px; background:#ddd; border-bottom-width:3px; border-bottom-color:#c4c4c4; }
.sheetprog .steps i.done{ background:var(--ok); border-bottom-color:var(--ok-d); } .sheetprog span{ font-size:12px; color:var(--ok-d); } html[lang=ar] .sheetprog span{ font-size:18px; }
.nextbtn{ display:flex !important; flex-direction:column; align-items:center; gap:2px; line-height:1.15; }
.nextbtn small{ font-family:var(--body); font-weight:700; font-size:13px; opacity:.92; text-transform:none; letter-spacing:0; } html[lang=ar] .nextbtn small{ font-size:17px; }
.sheet .nextbtn{ position:sticky; bottom:-6px; z-index:3; width:100%; margin-top:10px; }
.bosshud + .steps.boss{ margin:0 0 8px; } .steps.boss i{ height:10px; border-bottom-width:3px; }
@media (prefers-reduced-motion:reduce){ .steps i.on, .lc.next, .boss-card.next{ animation:none; } }

/* ---------- welcome: choose your look ---------- */
.welcome{ align-items:center; text-align:center; gap:0; padding-top:6px; }
.lockup.sm{ width:78%; max-width:300px; margin:2px 0 0; }
.welcome .t-h1{ margin-top:12px; }
.looks{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; width:100%; margin:10px 0 6px; position:relative; z-index:3; }
.look{ all:unset; box-sizing:border-box; cursor:pointer; background:#fff; border:4px solid #000; box-shadow:5px 5px 0 #000; padding:8px; display:flex; flex-direction:column; align-items:center; gap:6px; color:#111; position:relative; min-height:44px; }
.look:active{ transform:translate(3px,3px); box-shadow:2px 2px 0 #000; }
.look:focus-visible{ outline:4px solid var(--tape); outline-offset:3px; }
.look .shot{ display:block; width:100%; aspect-ratio:6/5; background:#222; overflow:hidden; border:3px solid #000; }
.look .shot img{ width:100%; height:100%; object-fit:cover; display:block; }
.look.retro .shot img{ image-rendering:pixelated; }
.look .lname{ font-size:15px; margin-top:2px; } html[lang=ar] .look .lname{ font-size:26px; line-height:1.1; }
.look .lsub{ font-family:var(--body); font-weight:800; font-size:12px; color:#555; line-height:1.25; } html[lang=ar] .look .lsub{ font-size:16px; }
.look.here::after{ content:'●'; position:absolute; top:-10px; inset-inline-end:-8px; background:var(--tape); color:#111; font-size:11px; padding:3px 6px; border:3px solid #000; }
.look.retro .lname{ color:var(--vf-red); } .look.modern .lname{ color:#111; }
.tinynote{ position:relative; z-index:3; color:#fff; font-family:var(--body); font-weight:700; font-size:13px; opacity:.9; margin:6px 14px 18px; text-shadow:2px 2px 0 #000; } html[lang=ar] .tinynote{ font-size:17px; }
@media (max-width:290px){ .looks{ grid-template-columns:1fr; } }

/* ---------- compact layouts: short / narrow phones get more room, less chrome ---------- */
@media (max-height:700px){
  html .hud{ padding:6px 10px; min-height:0; }
  .hlogo{ height:30px; } .ib{ width:40px; height:40px; } html .hud .sc{ padding-block:4px; }
  .screen{ padding:10px 12px 14px; }
  .lvhead{ padding:6px 14px 4px; display:flex; flex-wrap:wrap; align-items:baseline; gap:0 10px; }
  .lvhead .n{ font-size:12px; } .lvhead .t{ font-size:15px; } html[lang=ar] .lvhead .n{ font-size:17px; } html[lang=ar] .lvhead .t{ font-size:24px; }
  .lvhead .phases{ flex-basis:100%; margin-top:5px; }
  .steps i{ height:10px; } .stepline{ margin-top:4px; font-size:12px; gap:8px; } html[lang=ar] .stepline{ font-size:16px; } .stepline b, .stepline em{ font-size:11px; } html[lang=ar] .stepline b, html[lang=ar] .stepline em{ font-size:15px; }
  .dock{ padding:6px 12px max(10px, env(safe-area-inset-bottom)); }
  .qa{ padding:10px 12px max(12px, env(safe-area-inset-bottom)); gap:2px; }
  .qa .ask{ margin:0 0 4px; } .qa .ask .q{ font-size:17px; } html[lang=ar] .qa .ask .q{ font-size:21px; }
  .qa .opt{ min-height:50px; margin:4px 2px; font-size:16px; } html[lang=ar] .qa .opt{ font-size:19px; } .qa .opt .k{ width:30px; height:30px; font-size:15px; }
  .askmode .peek:not(.open) .peekbtn{ min-height:60px; flex-direction:row; }
  .sheet{ padding:12px 14px 16px; max-height:86%; } .sheet p{ font-size:16px; margin:6px 0 2px; } html[lang=ar] .sheet p{ font-size:18px; }
  .sheet .hit, .sheet .plus{ margin-top:6px; padding:4px 8px; } .sheetprog{ margin-top:6px; }
  .nextbtn small{ font-size:12px; } .sheet .nextbtn{ margin-top:6px; }
  .t-h1{ font-size:18px; margin:10px 4px 4px; } html[lang=ar] .t-h1{ font-size:34px; }
  .lockup{ width:88%; max-width:340px; } .lockup.sm{ max-width:200px; }
  .mascots{ margin:4px 0 8px; gap:24px; } .title .mascots{ margin:6px 0 10px; }
  .disc{ margin-top:6px; font-size:14px; } .tinynote{ margin:4px 12px 10px; font-size:12px; }
  .journey{ padding:8px 10px 10px; margin-bottom:8px; }
  .looks{ margin:6px 0 4px; gap:10px; } .look{ padding:6px; gap:4px; } .look .shot{ aspect-ratio:3/2; } .look .lname{ font-size:13px; } html[lang=ar] .look .lname{ font-size:21px; } .look .lsub{ font-size:11px; } html[lang=ar] .look .lsub{ font-size:14px; }
  .langrow .btn{ margin:4px 3px; }
}
@media (max-height:600px){
  .lockup{ max-width:260px; } .lockup.sm{ max-width:150px; } .t-sub{ font-size:12px; } .disc{ display:none; }
  .qa .opt{ min-height:44px; margin:3px 2px; font-size:15px; } html[lang=ar] .qa .opt{ font-size:18px; }
  .qa .ask .q{ font-size:16px; } .qa .ask{ margin-bottom:2px; }
  .askmode .peek:not(.open) .peekbtn{ min-height:48px; font-size:13px; }
  .mascots{ transform:scale(.7); margin:0; }
  .look .shot{ aspect-ratio:2/1; }
}
@media (max-width:360px){
  .screen{ padding-inline:10px; } .btn{ font-size:14px; } .t-h1{ font-size:17px; }
  .lc .here{ font-size:10px; padding:3px 6px; }
}

/* pinned action bar: the next step is always on screen, never below the fold */
.stickybar{ position:sticky; bottom:-18px; z-index:6; margin:10px -14px -18px; padding:10px 14px max(14px, env(safe-area-inset-bottom)); background:linear-gradient(to bottom, rgba(180,0,0,0), rgba(150,0,0,.96) 28%); }
.stickybar .btn{ margin-top:0; margin-bottom:0; } .stickybar .btnrow{ margin-top:6px; } .stickybar .btnrow .btn{ margin:4px; }
@media (max-height:700px){ .stickybar{ margin-inline:-12px; padding:8px 12px max(10px, env(safe-area-inset-bottom)); } .stickybar .btnrow{ margin-top:2px; } }

@media (max-width:360px){ .mapgrid{ gap:14px 10px; } .lc{ padding:10px 8px 8px; } .lc .ttl{ font-size:16px; } html[lang=ar] .lc .ttl{ font-size:18px; } .lc .ico{ width:38px; height:38px; } .lc .row .stars, .lc .row .starrow{ transform:scale(.8); transform-origin:right center; } }

/* forms on short screens: tighter fields, CTA pinned */
@media (max-height:700px){
  .h2{ font-size:18px; } html[lang=ar] .h2{ font-size:30px; }
  .hint{ font-size:14px; } html[lang=ar] .hint{ font-size:17px; }
  .heroes.four{ margin:2px 0 8px; } .heroes.four .card{ padding:6px 2px 5px; gap:3px; }
  .formbox{ padding:10px 12px 6px; margin:4px 2px 8px; } .fl{ margin:4px 0 4px; font-size:12px; }
  .fi{ padding-block:8px; } .chk{ font-size:13px; line-height:1.3; } html[lang=ar] .chk{ font-size:16px; }
  .screen > #sendbtn, .screen > [data-act=verifycode]{ position:sticky; bottom:-14px; z-index:6; box-shadow:0 -10px 14px -6px rgba(150,0,0,.9); }
}

/* ---------- question recap chip: small by default, tap to enlarge ---------- */
.askmode .peek, .askmode .peek:not(.open){ flex:none; justify-content:flex-start; padding-top:4px; }
.askmode .peek.open{ flex:1; }
.qchip{ justify-content:flex-start !important; text-align:start; gap:10px !important; }
.askmode .peek:not(.open) .peekbtn.qchip{ min-height:52px; flex-direction:row; font-size:12px; }
.qchip .qi{ flex:none; }
.qchip .qt{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.qchip .qt b{ font-size:11px; color:var(--tape); text-shadow:2px 2px 0 #000; font-weight:400; }
.peek.open .qchip .qt b{ color:#111; text-shadow:none; }
.qchip .qline{ font-family:var(--body); font-weight:700; font-size:14px; line-height:1.25; color:#fff; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-shadow:1px 1px 0 #000; }
.qchip .qchev{ flex:none; font-size:16px; opacity:.9; }
html[lang=ar] .qchip .qt b{ font-size:16px; } html[lang=ar] .qchip .qline{ font-size:17px; }
.askmode .qa{ flex:1 1 auto; max-height:none; justify-content:center; }
.askmode .peek.open + .qa{ flex:none; max-height:48%; }
@media (max-height:700px){ .askmode .peek:not(.open) .peekbtn.qchip{ min-height:46px; } .qchip .qline{ font-size:13px; -webkit-line-clamp:1; } html[lang=ar] .qchip .qline{ font-size:15px; } }

/* welcome: pick = preview, confirm = button */
.look .shot{ aspect-ratio:2/1; }
.look.sel{ outline:5px solid var(--tape); outline-offset:3px; }
.look.sel::after{ content:'✓'; position:absolute; top:-10px; inset-inline-end:-8px; background:var(--tape); color:#111; font:700 14px/1 var(--body); padding:4px 7px; border:3px solid #000; }
.look:not(.sel){ opacity:.82; }
.lookprev{ position:relative; z-index:3; width:100%; margin:12px 0 4px; padding:8px; background:#fff; border:4px solid #000; box-shadow:5px 5px 0 #000; color:#111; }
.lookprev .lp-h{ font-size:12px; margin:0 0 6px; color:var(--vf-red); text-align:start; } html[lang=ar] .lookprev .lp-h{ font-size:18px; }
.lookprev img{ display:block; width:100%; max-height:46dvh; object-fit:cover; object-position:top; border:3px solid #000; }
.lookprev.retro img{ image-rendering:pixelated; }
html[data-theme=modern] .lookprev{ border:0; border-radius:20px; box-shadow:0 10px 26px rgba(0,0,0,.28); }
html[data-theme=modern] .lookprev img{ border:0; border-radius:12px; }
html[data-theme=modern] .look.sel{ outline-width:4px; border-radius:20px; }
html[data-theme=modern] .look.sel::after{ border:0; border-radius:99px; box-shadow:0 3px 8px rgba(0,0,0,.25); }
@media (max-height:700px){ .lookprev{ margin-top:8px; padding:6px; } .lookprev img{ max-height:38dvh; } .look .shot{ aspect-ratio:5/2; } }
.welcome .stickybar{ align-self:stretch; width:auto; }
.welcome .stickybar .btn{ width:100%; }
.welcome{ padding-bottom:0; }
