﻿:root{
  --green:#22c55e;--green2:#84cc16;--red:#ef4444;--blue:#38bdf8;--yellow:#facc15;
  --ink:#020617;--navy:#061321;--panel:#0f172a;--white:rgba(255,255,255,.95);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;background:#020617}
body{
  min-width:320px;min-height:100vh;color:#fff;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:radial-gradient(circle at 50% -10%,#1e3a8a 0,#071526 34%,#020617 72%);
  -webkit-tap-highlight-color:transparent;
}
button,a{font:inherit}
a{color:inherit}
.hidden{display:none!important}

/* Minimal site chrome */
.topbar{height:60px;position:relative;z-index:50;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(2,6,23,.72);backdrop-filter:blur(14px)}
.topbarInner{height:100%;max-width:1080px;margin:auto;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.siteBrand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:900;letter-spacing:-.3px}
.brandMark{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,var(--green),var(--green2));color:#052e16;font-weight:1000;box-shadow:0 10px 28px rgba(34,197,94,.28)}
.topLinks{display:flex;align-items:center;gap:10px}
.topLinks a{font-size:13px;text-decoration:none;color:#dbeafe;padding:9px 11px;border-radius:999px}
.topLinks a:hover{background:rgba(255,255,255,.08)}
.lang{border:1px solid rgba(255,255,255,.14);font-weight:900!important}

.pageMain{min-height:calc(100svh - 60px)}
.gameHero{min-height:calc(100svh - 60px);padding:22px 16px 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px}
.microIntro{text-align:center;max-width:620px}
.microIntro h1{font-size:clamp(1.35rem,3vw,2rem);line-height:1.08;letter-spacing:-.7px}
.microIntro p{margin-top:6px;color:#bcd1e7;font-size:14px}
.gameFrame{width:390px;height:844px;max-width:100%;max-height:calc(100svh - 145px);position:relative;background:linear-gradient(180deg,#111827,#020617);border:8px solid #090909;border-radius:42px;overflow:hidden;box-shadow:0 34px 100px rgba(0,0,0,.56),0 0 0 1px rgba(255,255,255,.05)}
.gameFrame::before{content:"";position:absolute;top:10px;left:50%;transform:translateX(-50%);width:118px;height:28px;background:#050505;border-radius:0 0 18px 18px;z-index:30}
.status{position:absolute;top:10px;left:0;right:0;height:28px;padding:0 28px;color:white;font-size:13px;font-weight:800;display:flex;justify-content:space-between;align-items:center;z-index:35}
.wallpaper{position:absolute;inset:0;background:radial-gradient(circle at 18% 12%,rgba(34,197,94,.34),transparent 30%),radial-gradient(circle at 85% 28%,rgba(56,189,248,.28),transparent 26%),radial-gradient(circle at 45% 92%,rgba(250,204,21,.17),transparent 34%),linear-gradient(180deg,#0f172a,#020617)}
.screen{position:absolute;inset:0;color:white;z-index:5}

/* Home = intentionally close to the original */
.home{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:48px 28px 28px;overflow:auto}
.logo{width:86px;height:86px;border-radius:25px;display:grid;place-items:center;font-size:42px;font-weight:1000;margin-bottom:18px;background:linear-gradient(135deg,#16a34a,#86efac);color:#052e16;box-shadow:0 18px 45px rgba(34,197,94,.28)}
.home h2{font-size:34px;line-height:1.02;margin-bottom:10px;letter-spacing:-1.2px}
.subtitle{font-size:16px;line-height:1.35;color:#dbeafe;margin:0 auto 18px;max-width:315px}
.rules{width:100%;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:13px;text-align:left;margin-bottom:16px;backdrop-filter:blur(12px)}
.rule{display:flex;gap:10px;align-items:center;padding:7px 0;font-size:14px}.rule b{color:#fff}
.play{width:100%;border:0;border-radius:18px;padding:16px 18px;background:linear-gradient(135deg,var(--green),var(--green2));color:#052e16;font-weight:950;font-size:20px;cursor:pointer;box-shadow:0 16px 35px rgba(34,197,94,.28);transition:transform .15s ease,filter .15s ease}
.play:hover{transform:translateY(-1px);filter:brightness(1.03)}
.play:active{transform:translateY(1px)}
.contact{margin-top:13px;font-size:12px;color:#cbd5e1}.contact a{color:#e0f2fe;text-decoration:none;font-weight:800}

/* HUD */
.top{position:absolute;top:48px;left:14px;right:14px;z-index:40;background:rgba(15,23,42,.78);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(16px);border-radius:22px;padding:12px;pointer-events:none}
.top *{pointer-events:auto}.brand{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.brand strong{font-size:17px}.pill{font-size:12px;background:rgba(34,197,94,.18);color:#bbf7d0;padding:5px 9px;border-radius:999px;font-weight:800}.stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.stat{background:rgba(255,255,255,.08);border-radius:14px;padding:8px;text-align:center}.label{font-size:11px;color:#cbd5e1;margin-bottom:2px}.value{font-size:21px;font-weight:950}.levelbar{margin-top:9px;display:flex;gap:10px;align-items:center;font-size:12px;font-weight:900;color:#d1fae5}.bar{height:8px;flex:1;border-radius:999px;background:rgba(255,255,255,.13);overflow:hidden}.bar i{display:block;height:100%;width:10%;border-radius:999px;background:linear-gradient(90deg,var(--green),var(--yellow),var(--red));transition:width .35s ease}
.game{position:absolute;top:190px;left:0;right:0;bottom:0;overflow:hidden;z-index:10;pointer-events:auto}
.notif{position:absolute;left:12px;right:12px;top:0;background:var(--white);color:#0f172a;border-radius:18px;padding:13px 14px 13px 13px;box-shadow:0 14px 35px rgba(0,0,0,.25);display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:center;cursor:pointer;will-change:transform;transform:translate3d(0,-130px,0);border:1px solid rgba(255,255,255,.7);z-index:30;pointer-events:auto;touch-action:manipulation;user-select:none;-webkit-user-select:none;text-align:left;width:auto}
.notif *{pointer-events:none}.notif.good{border-left:7px solid var(--green);min-height:72px}.notif.bad{border-left:7px solid var(--red)}.notif.bonus{border-left:7px solid var(--yellow);background:linear-gradient(180deg,#fffbeb,#fff7ed)}.notif:active{filter:brightness(1.04)}
.icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;font-size:24px;background:#e5e7eb}.bonus .icon{background:#fef3c7}.n-title{font-weight:950;font-size:15px;margin-bottom:2px}.n-text{font-size:13px;color:#334155;line-height:1.22}
.pop{position:absolute;z-index:80;font-weight:950;font-size:22px;pointer-events:none;animation:pop .72s ease-out forwards;text-shadow:0 2px 10px rgba(0,0,0,.35)}.pop.good{color:#86efac}.pop.bad{color:#fecaca}.pop.bonus{color:#fde68a}@keyframes pop{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-36px) scale(1.15)}}
.shake{animation:shake .42s linear}@keyframes shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-9px)}40%{transform:translateX(8px)}60%{transform:translateX(-7px)}80%{transform:translateX(5px)}}
.flash{position:absolute;inset:0;opacity:0;z-index:70;pointer-events:none}.flash.bad{animation:badflash .35s}.flash.good{animation:goodflash .25s}.flash.bonus{animation:bonusflash .35s}@keyframes badflash{0%,100%{opacity:0}50%{opacity:.35;background:var(--red)}}@keyframes goodflash{0%,100%{opacity:0}50%{opacity:.20;background:var(--green)}}@keyframes bonusflash{0%,100%{opacity:0}50%{opacity:.24;background:var(--yellow)}}

/* Call */
.callOverlay{position:absolute;inset:0;z-index:120;background:radial-gradient(circle at top,rgba(239,68,68,.25),transparent 45%),rgba(2,6,23,.9);display:flex;align-items:center;justify-content:center;padding:22px;backdrop-filter:blur(8px)}
.callCard{width:100%;max-width:330px;border-radius:32px;padding:28px 22px 22px;background:linear-gradient(180deg,rgba(15,23,42,.97),rgba(2,6,23,.99));border:1px solid rgba(255,255,255,.13);box-shadow:0 28px 80px rgba(0,0,0,.55);text-align:center}.callTop{font-size:15px;color:#cbd5e1;margin-bottom:16px}.callAvatar{width:88px;height:88px;margin:0 auto 18px;display:grid;place-items:center;border-radius:50%;font-size:42px;background:rgba(255,255,255,.12);animation:ringPulse .85s ease-in-out infinite alternate}@keyframes ringPulse{from{transform:scale(1);box-shadow:0 0 0 0 rgba(239,68,68,.28)}to{transform:scale(1.04);box-shadow:0 0 0 13px rgba(239,68,68,.04)}}.callNumber{font-size:28px;font-weight:950;margin-bottom:8px}.callHint{font-size:14px;color:#fecaca;margin-bottom:26px}.callActions{display:flex;gap:18px}.callActions button{border:0;width:50%;padding:15px 8px;border-radius:999px;font-weight:950;color:#fff;font-size:15px;cursor:pointer}.decline{background:var(--red)}.accept{background:var(--green)}.callRule{margin-top:14px;font-size:12px;color:#cbd5e1}

/* End */
.end{overflow:auto;padding:54px 20px 25px;text-align:center;background:rgba(2,6,23,.97);-webkit-overflow-scrolling:touch}.end h2{font-size:30px;margin-bottom:6px}.rank{font-size:23px;font-weight:950;margin:10px 0 6px;color:#fde68a}.rankComment{margin:0 auto 12px;color:#cbd5e1;font-size:14px;line-height:1.25;max-width:320px}.finalgrid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}.finalcard{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:10px}.finalcard span{display:block;font-size:11px;color:#cbd5e1;margin-bottom:3px}.finalcard b{font-size:19px}.risk,.learn{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);border-radius:19px;padding:13px;margin:12px 0;text-align:left}.risk h3,.learn h3{text-align:center;font-size:16px;margin-bottom:8px}.risk p,.learn p{font-size:13px;line-height:1.35;color:#e5e7eb}.learn p{margin:7px 0}.shareCard{margin:12px 0;padding:14px;border-radius:20px;background:radial-gradient(circle at top left,rgba(34,197,94,.24),transparent 40%),rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14)}.shareBadge{font-size:20px;font-weight:950;color:#fde68a}.shareMoney{margin:7px 0}.shareMoney span{font-size:29px;font-weight:1000}.shareMoney small{display:block;color:#cbd5e1}.shareLine{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px}.shareLine span{background:rgba(255,255,255,.07);padding:8px;border-radius:11px}.shareUrl{margin-top:9px;color:#bbf7d0;font-weight:900}.shareButtons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.shareButtons button{border:0;border-radius:13px;padding:10px 7px;font-weight:900;color:#fff;cursor:pointer}.shareNative{grid-column:1/-1;background:linear-gradient(135deg,var(--green),var(--green2));color:#052e16!important}.shareLinkedin{background:#0a66c2}.shareFacebook{background:#1877f2}.shareWhatsapp{background:#22c55e}.shareCopy{background:#475569}.copyMsg{margin:8px 0;color:#bbf7d0;font-weight:900;font-size:13px}.shareNote{font-size:11px;line-height:1.25;color:#cbd5e1;margin:8px 0}.restart{width:100%;margin-top:13px;border:0;border-radius:15px;padding:14px;font-weight:950;font-size:17px;background:white;color:#0f172a;cursor:pointer}

/* Short information only */
.aboutStrip{max-width:940px;margin:0 auto;padding:34px 20px 48px;color:#c7d7e8}.aboutHead{text-align:center;max-width:680px;margin:0 auto 18px}.aboutEyebrow{display:inline-block;margin-bottom:7px;color:#86efac;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.12em}.aboutStrip h2{font-size:clamp(22px,3vw,30px);color:#fff;margin-bottom:9px;letter-spacing:-.5px}.aboutHead p{font-size:14px;line-height:1.6}.aboutGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.aboutCard{padding:16px;border-radius:18px;background:rgba(255,255,255,.065);border:1px solid rgba(255,255,255,.09);text-align:left}.aboutCard h3{font-size:15px;color:#fff;margin-bottom:7px}.aboutCard p{font-size:13px;line-height:1.55}.aboutCard a{display:inline-block;margin-top:8px;color:#bbf7d0;font-size:13px;font-weight:850}.aboutActions{display:flex;justify-content:center;margin-top:16px}.aboutReplay{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.07);color:#e5f3ff;padding:10px 14px;border-radius:999px;font-size:13px;font-weight:850;cursor:pointer}.aboutReplay:hover{background:rgba(255,255,255,.11)}.disclaimer{margin:16px auto 0;max-width:700px;padding:11px 13px;border-radius:13px;background:rgba(250,204,21,.09);border:1px solid rgba(250,204,21,.22);color:#fef3c7;font-size:12px;font-weight:700;text-align:center}.tinyFooter{border-top:1px solid rgba(255,255,255,.08);padding:20px;text-align:center;color:#94a3b8;font-size:12px}.tinyFooter a{margin:0 7px;color:#dbeafe;text-decoration:none}

/* Opening animation */
.siteIntro{position:fixed;inset:0;z-index:9999;background:#030712;display:grid;place-items:center;padding:18px;overflow:hidden;transition:opacity .55s ease,visibility .55s ease}.siteIntro.done{opacity:0;visibility:hidden;pointer-events:none}.skipIntro{position:absolute;right:18px;top:max(18px,env(safe-area-inset-top));z-index:5;border:1px solid rgba(255,255,255,.2);background:rgba(15,23,42,.78);color:#fff;padding:10px 14px;border-radius:999px;font-size:13px;font-weight:800;cursor:pointer}.introBox{width:min(900px,96vw);height:min(530px,76svh);min-height:380px;position:relative;border-radius:30px;overflow:hidden;background:linear-gradient(180deg,#101827,#07101c);border:1px solid rgba(255,255,255,.12);box-shadow:0 35px 120px rgba(0,0,0,.65)}.officeTop{height:42px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;color:#94a3b8;font-size:12px;background:#0b1220;border-bottom:1px solid rgba(255,255,255,.08)}.prodTag{color:#fecaca;background:rgba(239,68,68,.15);padding:5px 8px;border-radius:999px;font-weight:900}.office{position:absolute;inset:42px 0 50px;background:linear-gradient(180deg,#152034,#101827 72%,#293445 72%)}.office::before{content:"";position:absolute;left:5%;top:8%;width:25%;height:42%;border:8px solid #29364a;border-radius:8px;background:linear-gradient(180deg,#8fd3ff,#dbeafe 58%,#64748b 59%,#475569);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}.office::after{content:"";position:absolute;left:0;right:0;bottom:0;height:28%;background:repeating-linear-gradient(90deg,#293445 0 90px,#313e50 90px 92px)}
.desk{position:absolute;right:9%;bottom:28%;width:44%;height:18px;background:#9a6743;border-radius:7px;box-shadow:0 8px 0 #6f482f}.desk::before,.desk::after{content:"";position:absolute;top:15px;width:14px;height:100px;background:#6f482f}.desk::before{left:18px}.desk::after{right:18px}.monitor{position:absolute;right:17%;bottom:35%;width:210px;height:135px;border:9px solid #334155;border-radius:14px;background:#e2e8f0;box-shadow:0 12px 35px rgba(0,0,0,.35)}.monitor::after{content:"";position:absolute;left:50%;bottom:-32px;transform:translateX(-50%);width:75px;height:24px;background:#475569;border-radius:0 0 10px 10px}.monitorUI{position:absolute;inset:9px;border-radius:7px;background:#f8fafc;color:#0f172a;padding:10px;font-size:11px}.monitorHead{display:flex;justify-content:space-between;font-weight:900;margin-bottom:10px}.redPill{background:#fee2e2;color:#b91c1c;border-radius:999px;padding:3px 6px}.inputLine{height:34px;border:1px solid #cbd5e1;border-radius:7px;padding:8px;background:#fff;font-weight:800;overflow:hidden;white-space:nowrap}.typeText{display:inline-block;width:0;overflow:hidden;vertical-align:bottom;animation:typeText 1.6s steps(11,end) 3.6s forwards}.caret{display:inline-block;width:2px;height:14px;background:#0f172a;animation:blink .55s step-end infinite}.sendProd{margin-top:10px;width:100%;border:0;border-radius:7px;background:#dc2626;color:#fff;padding:9px;font-size:11px;font-weight:1000}.keyboard{position:absolute;right:17%;bottom:29%;width:190px;height:23px;background:repeating-linear-gradient(90deg,#64748b 0 14px,#94a3b8 14px 16px);transform:skewX(-15deg);border-radius:4px}
.chairRig{position:absolute;left:19%;bottom:22%;width:160px;height:220px;opacity:0;animation:chairAppear .3s linear 2.15s forwards,chairSlide 1.25s cubic-bezier(.18,.72,.22,1) 2.2s forwards,chairRecoil .9s cubic-bezier(.15,.8,.25,1.15) 6.25s forwards}.chairBack{position:absolute;left:42px;top:67px;width:78px;height:80px;border-radius:24px 24px 14px 14px;background:#35445b}.chairSeat{position:absolute;left:33px;top:135px;width:90px;height:25px;border-radius:13px;background:#475569}.chairStem{position:absolute;left:75px;top:156px;width:9px;height:38px;background:#64748b}.chairBase{position:absolute;left:35px;top:190px;width:92px;height:8px;background:#64748b;border-radius:8px}.wheel{position:absolute;top:193px;width:15px;height:15px;border-radius:50%;background:#111827}.wheel.w1{left:31px}.wheel.w2{right:32px}.person{position:absolute;left:40px;top:4px;width:86px;height:158px}.head{position:absolute;left:24px;top:0;width:42px;height:43px;border-radius:13px;background:#fde68a;z-index:2}.hair{position:absolute;left:21px;top:-3px;width:48px;height:17px;background:#78350f;border-radius:13px 13px 5px 5px;z-index:3}.eye{position:absolute;top:18px;width:5px;height:5px;border-radius:50%;background:#111827;transition:all .15s}.eye.e1{left:11px}.eye.e2{right:11px}.mouth{position:absolute;left:16px;bottom:8px;width:11px;height:3px;border-radius:5px;background:#92400e}.body{position:absolute;left:17px;top:41px;width:54px;height:58px;border-radius:14px 14px 8px 8px;background:#22c55e}.badge{position:absolute;left:26px;top:55px;width:20px;height:20px;border-radius:6px;background:#fff;color:#166534;display:grid;place-items:center;font-size:11px;font-weight:1000;z-index:4}.arm{position:absolute;top:49px;width:14px;height:56px;border-radius:10px;background:#fde68a;transform-origin:top center}.arm.a1{left:9px;transform:rotate(16deg)}.arm.a2{right:7px;transform:rotate(-26deg);animation:typeArm .22s ease-in-out 3.5s 9 alternate,clickArm .5s ease 5.5s forwards}.leg{position:absolute;top:93px;width:17px;height:42px;border-radius:9px;background:#1d4ed8}.leg.g1{left:23px}.leg.g2{left:49px}.shoe{position:absolute;top:130px;width:23px;height:10px;border-radius:8px;background:#111827}.shoe.s1{left:17px}.shoe.s2{left:46px}.surprise{position:absolute;left:94px;top:0;font-size:42px;font-weight:1000;color:#fde68a;opacity:0;transform:scale(.4);animation:surprisePop .5s ease 6.15s forwards}.sweat{position:absolute;right:-9px;top:16px;width:8px;height:14px;border-radius:50% 50% 55% 55%;background:#38bdf8;opacity:0;animation:sweat .4s ease 6.2s forwards}
.walker{position:absolute;left:-110px;bottom:24%;width:90px;height:165px;animation:walkIn 1.8s cubic-bezier(.2,.7,.2,1) .25s forwards,walkerFade .25s linear 2.05s forwards}.walker .person{left:0;top:0}.walker .leg.g1{animation:walkLeg .32s ease-in-out .25s 6 alternate}.walker .leg.g2{animation:walkLeg .32s ease-in-out .41s 6 alternate-reverse}.walker .arm.a1{animation:walkArm .32s ease-in-out .25s 6 alternate}.walker .arm.a2{animation:walkArm .32s ease-in-out .41s 6 alternate-reverse}
.prodFlash{position:absolute;right:12%;top:13%;padding:12px 15px;border-radius:12px;background:#dc2626;color:#fff;font-weight:1000;font-size:14px;box-shadow:0 16px 40px rgba(220,38,38,.35);opacity:0;transform:translateY(10px) scale(.9);animation:prodFlash .65s ease 5.85s forwards}.notifStorm{position:absolute;inset:0;pointer-events:none}.notifStorm span{position:absolute;left:50%;top:38%;padding:9px 12px;border-radius:12px;background:#fff;color:#111827;font-size:12px;font-weight:900;box-shadow:0 12px 28px rgba(0,0,0,.28);opacity:0}.notifStorm span:nth-child(1){animation:storm1 .75s ease 6.6s forwards}.notifStorm span:nth-child(2){animation:storm2 .75s ease 6.72s forwards}.notifStorm span:nth-child(3){animation:storm3 .75s ease 6.84s forwards}.notifStorm span:nth-child(4){animation:storm4 .75s ease 6.96s forwards}
.introCaption{position:absolute;left:0;right:0;bottom:0;height:50px;display:flex;align-items:center;justify-content:center;padding:0 16px;background:#090f1b;color:#e5e7eb;font-size:14px;text-align:center}.introProgress{position:absolute;left:0;bottom:0;height:3px;width:0;background:linear-gradient(90deg,var(--green),var(--yellow),var(--red));animation:introProgress 8.1s linear forwards}
@keyframes walkIn{to{left:19%}}@keyframes walkerFade{to{opacity:0}}@keyframes walkLeg{to{transform:rotate(18deg)}}@keyframes walkArm{to{transform:rotate(-24deg)}}@keyframes chairAppear{to{opacity:1}}@keyframes chairSlide{to{left:54%}}@keyframes chairRecoil{0%{transform:translateX(0) rotate(0)}35%{transform:translateX(-115px) rotate(-4deg)}65%{transform:translateX(-92px) rotate(2deg)}100%{transform:translateX(-102px) rotate(0)}}@keyframes typeText{to{width:72px}}@keyframes blink{50%{opacity:0}}@keyframes typeArm{to{transform:translate(4px,3px) rotate(-18deg)}}@keyframes clickArm{50%{transform:translate(24px,-8px) rotate(-68deg)}100%{transform:rotate(-24deg)}}@keyframes prodFlash{to{opacity:1;transform:none}}@keyframes surprisePop{to{opacity:1;transform:scale(1)}}@keyframes sweat{to{opacity:1;transform:translateY(6px)}}@keyframes storm1{to{opacity:1;transform:translate(-320px,-130px) rotate(-8deg)}}@keyframes storm2{to{opacity:1;transform:translate(120px,-150px) rotate(7deg)}}@keyframes storm3{to{opacity:1;transform:translate(-270px,100px) rotate(5deg)}}@keyframes storm4{to{opacity:1;transform:translate(155px,105px) rotate(-6deg)}}@keyframes introProgress{to{width:100%}}

body.introOpen{overflow:hidden}body.siteReveal .topbar,body.siteReveal .pageMain,body.siteReveal .tinyFooter{animation:siteReveal .65s ease both}@keyframes siteReveal{from{opacity:0;filter:brightness(.25);transform:translateY(8px)}to{opacity:1;filter:none;transform:none}}

@media(max-width:650px){
  .topbar{height:54px}.topbarInner{padding:0 12px}.siteBrand span:last-child{font-size:14px}.topLinks a:not(.lang),.topLinks button:not(.replayIntroBtn){display:none}.topLinks{gap:4px}.replayIntroBtn{padding:8px 9px!important;font-size:12px!important}.pageMain{min-height:calc(100svh - 54px)}.gameHero{min-height:calc(100svh - 54px);padding:0;gap:0}.microIntro{display:none}.gameFrame{width:100vw;height:calc(100svh - 54px);max-width:none;max-height:none;border:0;border-radius:0;box-shadow:none}.gameFrame::before{display:none}.status{top:0;height:calc(30px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);padding-left:18px;padding-right:18px;background:rgba(2,6,23,.18)}.home{justify-content:flex-start;padding:calc(40px + env(safe-area-inset-top)) 18px calc(16px + env(safe-area-inset-bottom))}.logo{width:70px;height:70px;font-size:36px;border-radius:20px;margin-bottom:13px}.home h2{font-size:30px}.subtitle{font-size:15px;margin-bottom:13px}.rules{padding:12px;border-radius:18px;margin-bottom:13px}.rule{font-size:14px;padding:6px 0}.top{top:calc(34px + env(safe-area-inset-top));left:10px;right:10px;padding:10px;border-radius:18px}.brand{margin-bottom:8px}.brand strong{font-size:15px}.pill{font-size:11px}.stats{gap:6px}.stat{padding:7px 5px}.label{font-size:10px}.value{font-size:19px}.levelbar{margin-top:7px;font-size:11px}.game{top:calc(168px + env(safe-area-inset-top));bottom:env(safe-area-inset-bottom)}.notif{left:8px;right:8px;padding:14px 12px;grid-template-columns:42px 1fr;gap:9px;border-radius:16px}.callOverlay{padding:calc(30px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom))}.end{padding:calc(38px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom))}.shareLine{grid-template-columns:1fr}.aboutStrip{padding:28px 14px 36px}.aboutGrid{grid-template-columns:1fr}.aboutCard{text-align:center}.introBox{width:100vw;height:100svh;min-height:0;border:0;border-radius:0}.officeTop{padding-top:env(safe-area-inset-top);height:calc(42px + env(safe-area-inset-top))}.office{top:calc(42px + env(safe-area-inset-top));bottom:54px}.desk{right:3%;width:53%}.monitor{right:7%;width:160px;height:112px}.keyboard{right:8%;width:150px}.walker{transform:scale(.82);transform-origin:bottom left}.chairRig{transform:scale(.82);transform-origin:bottom center;animation:chairAppear .3s linear 2.15s forwards,chairSlideMobile 1.25s cubic-bezier(.18,.72,.22,1) 2.2s forwards,chairRecoilMobile .9s cubic-bezier(.15,.8,.25,1.15) 6.25s forwards}.prodFlash{right:4%;font-size:12px}.introCaption{padding-bottom:env(safe-area-inset-bottom);height:calc(50px + env(safe-area-inset-bottom))}@keyframes chairSlideMobile{to{left:48%}}@keyframes chairRecoilMobile{0%{transform:scale(.82) translateX(0)}35%{transform:scale(.82) translateX(-90px) rotate(-4deg)}100%{transform:scale(.82) translateX(-78px)}}
}
@media(max-height:700px) and (max-width:650px){.logo{width:58px;height:58px;font-size:31px;margin-bottom:9px}.home h2{font-size:27px}.subtitle{font-size:14px;margin-bottom:9px}.rules{margin-bottom:10px}.rule{font-size:13px;padding:5px 0}.game{top:calc(154px + env(safe-area-inset-top))}.aboutStrip{padding-top:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}


/* V9 — responsive polish and practical anti-phishing guidance */
:focus-visible{outline:3px solid #fde68a;outline-offset:3px}
.topbar{position:sticky;top:0}
.topLinks a,.topLinks button,.play,.callActions button,.restart,.shareButtons button,.aboutReplay{min-height:44px}
.gameHero{padding-top:18px;padding-bottom:22px}
.gameFrame{height:min(844px,max(680px,calc(100svh - 150px)));width:auto;aspect-ratio:390/844;max-width:calc(100vw - 32px);max-height:none}
.home{scrollbar-width:thin;overscroll-behavior:contain}
.play{min-height:54px}
.notif{min-height:72px}
.end{overscroll-behavior:contain}
.scorePanel{margin:12px 0;padding:13px;border-radius:19px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);text-align:left}
.scorePanel h3{text-align:center;font-size:16px;margin:0 0 10px}
.scoreForm{display:grid;grid-template-columns:1fr auto;gap:8px}
.scoreForm input{min-width:0;border:1px solid rgba(255,255,255,.16);border-radius:13px;background:rgba(2,6,23,.72);color:#fff;padding:10px 12px;font:inherit;font-weight:800}
.scoreForm input::placeholder{color:#94a3b8}
.scoreForm button{border:0;border-radius:13px;background:linear-gradient(135deg,var(--green),var(--green2));color:#052e16;padding:10px 12px;font-weight:950;cursor:pointer}
.scoreForm button:disabled{opacity:.55;cursor:not-allowed}
.scoreMessage{min-height:18px;margin:8px 0;color:#bbf7d0;font-size:12px;font-weight:850;text-align:center}
.shareExplain{margin:6px auto 0;max-width:300px;color:#dbeafe;font-size:12px;line-height:1.35}
.learnTiny{margin-top:10px!important;padding-top:9px;border-top:1px solid rgba(255,255,255,.10);color:#cbd5e1!important;font-size:12px!important}
.risk b{color:#fde68a}.learn b{color:#bbf7d0}
.scoreMessage.error{color:#fecaca}
.leaderboard{margin:6px 0 0;padding:0;list-style:none;display:grid;gap:6px}
.leaderboard li{display:grid;grid-template-columns:28px 1fr auto;gap:8px;align-items:center;padding:8px 9px;border-radius:12px;background:rgba(255,255,255,.065);font-size:12px;color:#e5e7eb}
.leaderboard b{font-size:13px;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.leaderboard span:first-child{color:#fde68a;font-weight:950;text-align:center}
.leaderboard em{font-style:normal;color:#bbf7d0;font-weight:950}
.scorePanelCompact{text-align:center}
.scorePanelCompact p{margin:0 0 10px;color:#dbeafe;font-size:13px;line-height:1.45}
.openScoreModal{width:100%;border:0;border-radius:14px;padding:12px 13px;background:linear-gradient(135deg,var(--green),var(--green2));color:#052e16;font-weight:950;cursor:pointer}
.scoreModal{position:absolute;inset:0;z-index:180;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(2,6,23,.76);backdrop-filter:blur(10px)}
.scoreModal.hidden{display:none!important}
.scoreModalCard{position:relative;width:min(100%,350px);max-height:calc(100% - 24px);overflow:auto;border-radius:24px;padding:18px;background:linear-gradient(180deg,rgba(15,23,42,.98),rgba(2,6,23,.99));border:1px solid rgba(255,255,255,.16);box-shadow:0 28px 80px rgba(0,0,0,.55);text-align:left;-webkit-overflow-scrolling:touch}
.scoreModalClose{position:absolute;top:10px;right:10px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.09);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.scoreModalHead{text-align:center;padding:4px 38px 12px}
.scoreModalHead span{display:inline-block;margin-bottom:6px;color:#fde68a;font-size:13px;font-weight:950}
.scoreModalHead h3{font-size:22px;line-height:1.1;margin:0 0 7px;color:#fff}
.scoreModalHead p{margin:0;color:#dbeafe;font-size:13px}
.scoreModalHead b{color:#bbf7d0;font-size:17px}
.scoreForm label{display:block;margin-bottom:6px;color:#e5f3ff;font-size:12px;font-weight:900}
.scoreFormRow{display:grid;grid-template-columns:1fr auto;gap:8px}
.scoreForm small{display:block;margin-top:7px;color:#94a3b8;font-size:11px;line-height:1.35}
.scoreModal .leaderboard{max-height:260px;overflow:auto;padding-right:2px}
.scoreModal .leaderboard li{grid-template-columns:32px minmax(0,1fr) auto}

.tipsSection{max-width:940px;margin:0 auto;padding:10px 20px 54px;color:#c7d7e8}
.tipsHead{text-align:center;max-width:720px;margin:0 auto 20px}
.tipsHead .aboutEyebrow{margin-bottom:8px}
.tipsHead h2{font-size:clamp(23px,3vw,31px);line-height:1.12;color:#fff;letter-spacing:-.55px;margin-bottom:9px}
.tipsHead p{font-size:14px;line-height:1.6}
.tipsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tipCard{border-radius:18px;background:rgba(255,255,255,.065);border:1px solid rgba(255,255,255,.09);overflow:hidden}
.tipCard[open]{background:rgba(255,255,255,.085);border-color:rgba(134,239,172,.28)}
.tipCard summary{position:relative;list-style:none;cursor:pointer;padding:16px 46px 16px 16px;color:#fff;font-size:14px;font-weight:900;line-height:1.35;min-height:54px;display:flex;align-items:center}
.tipCard summary::-webkit-details-marker{display:none}
.tipCard summary::after{content:'+';position:absolute;right:16px;top:50%;transform:translateY(-50%);width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.09);color:#bbf7d0;font-size:18px}
.tipCard[open] summary::after{content:'–'}
.tipCard p{padding:0 16px 16px;font-size:13px;line-height:1.55;color:#d8e5f1}
.tipCard a{color:#bbf7d0;font-weight:850}
.helpPanel{margin:16px 0 0;padding:18px;border-radius:20px;background:linear-gradient(135deg,rgba(239,68,68,.14),rgba(250,204,21,.07));border:1px solid rgba(248,113,113,.24)}
.helpPanel h3{font-size:17px;color:#fff;margin-bottom:8px}
.helpPanel p{font-size:13px;line-height:1.58;color:#e5edf6}
.helpActions{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}
.helpActions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 13px;border-radius:999px;text-decoration:none;font-size:12px;font-weight:900;color:#fff;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12)}
.helpActions a.primary{background:linear-gradient(135deg,#16a34a,#65a30d);color:#f0fdf4;border:0}
.gameHint{margin-top:1px;color:#91a8bd;font-size:11px;text-align:center}

@media(max-width:900px) and (min-width:651px){
  .gameFrame{height:min(790px,max(650px,calc(100svh - 145px)))}
}
@media(max-width:650px){
  body{overscroll-behavior-y:none}
  .topbar{padding-top:env(safe-area-inset-top);height:calc(54px + env(safe-area-inset-top))}
  .topbarInner{height:54px}
  .pageMain{min-height:calc(100svh - 54px - env(safe-area-inset-top))}
  .gameHero{min-height:calc(100svh - 54px - env(safe-area-inset-top))}
  .gameFrame{height:calc(100svh - 54px - env(safe-area-inset-top));aspect-ratio:auto;max-width:none}
  .home{overflow-y:auto;-webkit-overflow-scrolling:touch}
  .play{position:relative;z-index:2}
  .tipsSection{padding:8px 14px 42px}
  .tipsGrid{grid-template-columns:1fr}
  .tipCard summary{font-size:14px;padding:15px 46px 15px 15px}
  .helpPanel{padding:16px}
  .helpActions{display:grid;grid-template-columns:1fr 1fr}
  .helpActions a.primary{grid-column:1/-1}
  .gameHint{display:none}
}
@media(max-width:370px){
  .siteBrand span:last-child{display:none}
  .topLinks .replayIntroBtn::before{content:'↻';font-size:17px}
  .topLinks .replayIntroBtn{width:42px;padding:0!important}
  .logo{width:62px;height:62px;font-size:32px}
  .home h2{font-size:27px}
  .rule{font-size:13px}
}
@media(max-height:620px) and (max-width:650px){
  .home{padding-top:calc(31px + env(safe-area-inset-top))}
  .logo{width:52px;height:52px;font-size:28px;margin-bottom:8px}
  .home h2{font-size:25px;margin-bottom:6px}
  .subtitle{font-size:13px;margin-bottom:8px}
  .rules{padding:9px;margin-bottom:9px}
  .rule{font-size:12.5px;padding:4px 0}
  .play{padding:13px 15px;min-height:48px}
  .contact{margin-top:8px;font-size:11px}
  .game{top:calc(148px + env(safe-area-inset-top))}
}
@media(orientation:landscape) and (max-height:520px){
  .topbar{position:relative}
  .gameFrame{height:calc(100svh - 54px);width:100vw}
  .home{padding:38px 22px 14px;display:grid;grid-template-columns:120px 1fr;grid-template-rows:auto auto auto;column-gap:18px;text-align:left;align-content:center}
  .home .logo{grid-row:1/4;margin:0;align-self:center;justify-self:center}
  .home h2{font-size:25px;margin:0 0 4px}
  .home .subtitle{margin:0 0 7px;max-width:none}
  .home .rules{margin:0 0 8px;padding:8px;display:grid;grid-template-columns:1fr 1fr;gap:2px 10px}
  .home .rule{padding:3px 0;font-size:11.5px}
  .home .play{grid-column:2;max-width:260px}
  .home .contact{display:none}
}



/* V10 — larger desktop game and reliable mobile intro */
@media (min-width:901px){
  .gameHero{padding:8px 20px 18px;gap:8px;justify-content:flex-start}
  .microIntro{max-width:760px;margin-top:2px}
  .microIntro h1{font-size:clamp(1.55rem,2.2vw,2.15rem)}
  .microIntro p{font-size:14px}
  .gameFrame{
    width:min(500px,calc(100vw - 48px));
    height:clamp(640px,calc(100svh - 112px),920px);
    max-width:none;max-height:none;aspect-ratio:auto;
    border-width:9px;border-radius:46px;
  }
  .home{padding:56px 34px 34px}
  .logo{width:96px;height:96px;font-size:48px;border-radius:28px;margin-bottom:20px}
  .home h2{font-size:39px}
  .subtitle{font-size:17px;max-width:390px;margin-bottom:20px}
  .rules{padding:16px;border-radius:24px;margin-bottom:18px}
  .rule{font-size:15px;padding:8px 0}
  .play{font-size:21px;padding:17px 20px}
  .top{top:50px;left:18px;right:18px;padding:14px}
  .brand strong{font-size:18px}
  .value{font-size:23px}
  .game{top:196px}
  .notif{left:16px;right:16px;padding:15px 16px;grid-template-columns:46px 1fr}
  .icon{width:46px;height:46px;font-size:26px}
  .n-title{font-size:16px}.n-text{font-size:14px}
  .callCard{max-width:370px}
  .end{padding-left:28px;padding-right:28px}
}
@media (min-width:651px) and (max-width:900px){
  .gameHero{padding:10px 16px 18px;gap:8px}
  .gameFrame{width:min(450px,calc(100vw - 36px));height:clamp(620px,calc(100svh - 118px),830px);max-width:none;max-height:none;aspect-ratio:auto}
  .microIntro h1{font-size:1.6rem}
  .home{padding-left:30px;padding-right:30px}
}
@media (max-width:650px){
  .siteIntro{width:100%;height:100vh;height:100dvh;min-height:100vh;min-height:100dvh;padding:0;display:grid!important}
  .introBox{width:100%;height:100vh;height:100dvh;min-height:100vh;min-height:100dvh;border-radius:0;border:0}
  .skipIntro{right:12px;top:calc(10px + env(safe-area-inset-top));min-height:42px;padding:9px 13px;background:rgba(2,6,23,.88)}
  .introCaption{font-size:13px;padding-left:12px;padding-right:12px}
}
@media (prefers-reduced-motion:reduce){
  .siteIntro{display:grid!important}
  .siteIntro.reducedMotion .walker{opacity:0!important;animation:none!important}
  .siteIntro.reducedMotion .chairRig{opacity:1!important;left:48%!important;animation:none!important;transform:scale(.82) translateX(-35px)!important}
  .siteIntro.reducedMotion .typeText{width:auto!important;animation:none!important}
  .siteIntro.reducedMotion .caret{display:none!important}
  .siteIntro.reducedMotion .prodFlash{opacity:1!important;transform:none!important;animation:none!important}
  .siteIntro.reducedMotion .notifStorm span{opacity:1!important;animation:none!important}
  .siteIntro.reducedMotion .introProgress{animation-duration:3.2s!important}
}



/* V12 — iPhone/Safari hardening */
:root{--app-height:100vh}
@media(max-width:650px){
  html,body{width:100%;min-width:0;overflow-x:hidden}
  .pageMain{display:block!important;min-height:calc(var(--app-height,100vh) - 54px - env(safe-area-inset-top))!important}
  .gameHero{display:flex!important;width:100%!important;min-height:calc(var(--app-height,100vh) - 54px - env(safe-area-inset-top))!important;padding:0!important}
  .gameFrame{
    display:block!important;position:relative!important;
    width:100%!important;min-width:100%!important;max-width:100%!important;
    height:calc(var(--app-height,100vh) - 54px - env(safe-area-inset-top))!important;
    min-height:560px!important;max-height:none!important;
    flex:0 0 auto!important;visibility:visible!important;opacity:1!important;
  }
  .wallpaper,.screen{visibility:visible}
  .siteIntro.done{display:none!important}
}
@supports (-webkit-touch-callout:none){
  @media(max-width:650px){
    body{min-height:-webkit-fill-available}
    .gameFrame{height:calc(var(--app-height,100vh) - 54px - env(safe-area-inset-top))!important}
  }
}


/* V13 — taller playfield and instant replay without intro */
@media (min-width:901px){
  .gameFrame{height:clamp(820px,calc(100svh - 72px),1120px)!important;}
  .game{top:192px;}
}
@media (min-width:651px) and (max-width:900px){
  .gameFrame{height:clamp(760px,calc(100svh - 78px),980px)!important;}
  .game{top:184px;}
}
@media (max-width:650px){
  body.gameRunning .topbar{display:none;}
  body.gameRunning .pageMain,body.gameRunning .gameHero{min-height:var(--app-height,100vh)!important;}
  body.gameRunning .gameFrame{height:var(--app-height,100vh)!important;min-height:var(--app-height,100vh)!important;}
  body.gameRunning .game{top:calc(156px + env(safe-area-inset-top));bottom:0;}
  body.gameRunning .top{top:calc(30px + env(safe-area-inset-top));}
}
@media(max-height:700px) and (max-width:650px){
  body.gameRunning .game{top:calc(144px + env(safe-area-inset-top));}
}


/* V14 — mobile gameplay viewport lock: the page cannot slide behind the game */
@media (max-width:650px){
  html.gameViewportLocked,
  body.gameRunning{
    width:100%!important;
    height:var(--app-height,100vh)!important;
    max-height:var(--app-height,100vh)!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  html.gameViewportLocked{position:fixed!important;inset:0!important;}
  body.gameRunning{position:fixed!important;inset:0!important;margin:0!important;touch-action:none!important;}
  body.gameRunning .pageMain{
    position:fixed!important;
    inset:0!important;
    z-index:100!important;
    width:100%!important;
    height:var(--app-height,100vh)!important;
    min-height:0!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  body.gameRunning .gameHero{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
    touch-action:none!important;
  }
  body.gameRunning .gameFrame{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    min-width:100%!important;
    max-width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
    touch-action:none!important;
  }
  body.gameRunning #gameScreen,
  body.gameRunning .game{
    overscroll-behavior:none!important;
    touch-action:none!important;
  }
  body.gameRunning .notif,
  body.gameRunning .callActions button{
    touch-action:manipulation!important;
  }
}


/* V15 — desktop gameplay always fits the visible window */
@media (min-width:651px){
  /* The resting/home state stays large, but never forces an oversized minimum. */
  .gameFrame{
    height:min(920px,calc(var(--app-height,100vh) - 118px))!important;
    min-height:560px!important;
  }
  @media (max-height:720px){
    .microIntro{display:none!important;}
    .gameHero{padding:10px 16px!important;gap:0!important;}
    .gameFrame{
      height:calc(var(--app-height,100vh) - 20px)!important;
      min-height:0!important;
      width:min(470px,calc(100vw - 28px))!important;
    }
  }
}

/* While a game is running, use a fixed, centered stage on every device. */
html.gameViewportLocked,
body.gameRunning{
  width:100%!important;
  height:var(--app-height,100vh)!important;
  max-height:var(--app-height,100vh)!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
html.gameViewportLocked{
  position:fixed!important;
  inset:0!important;
}
body.gameRunning{
  position:fixed!important;
  inset:0!important;
  margin:0!important;
}
body.gameRunning .topbar,
body.gameRunning .microIntro,
body.gameRunning .aboutStrip,
body.gameRunning .tipsSection,
body.gameRunning .tinyFooter{
  display:none!important;
}
body.gameRunning .pageMain{
  position:fixed!important;
  inset:0!important;
  z-index:100!important;
  width:100%!important;
  height:var(--app-height,100vh)!important;
  min-height:0!important;
  overflow:hidden!important;
  display:grid!important;
  place-items:center!important;
  background:radial-gradient(circle at top,#1e3a8a 0,#061321 52%,#020617 100%)!important;
}
body.gameRunning .gameHero{
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  padding:12px!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
}
body.gameRunning .gameFrame{
  position:relative!important;
  inset:auto!important;
  width:min(520px,calc(100vw - 24px))!important;
  height:min(980px,calc(var(--app-height,100vh) - 24px))!important;
  min-width:0!important;
  min-height:0!important;
  max-width:520px!important;
  max-height:calc(var(--app-height,100vh) - 24px)!important;
  margin:0!important;
  flex:none!important;
  overflow:hidden!important;
}
@media (max-width:650px){
  body.gameRunning .gameHero{padding:0!important;}
  body.gameRunning .gameFrame{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    max-width:100%!important;
    height:100%!important;
    max-height:100%!important;
  }
}

/* V15.1 — desktop centering and pre-game fit */
@media (min-width:651px){
  body:not(.gameRunning) .gameHero{
    min-height:calc(var(--app-height,100vh) - 60px)!important;
    padding:10px 16px 16px!important;
    justify-content:center!important;
  }
  body:not(.gameRunning) .gameFrame{
    height:min(920px,calc(var(--app-height,100vh) - 150px))!important;
    min-height:0!important;
  }
  body.gameRunning .gameHero{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    align-content:center!important;
  }
}

/* V16 — contemporary editorial layer and stronger anti-fraud guidance */
body{
  background:
    linear-gradient(180deg,#07111f 0,#0b1728 42%,#020617 100%);
}
.topbar{
  border-bottom-color:rgba(148,163,184,.18);
  background:rgba(3,10,24,.82);
}
.topbarInner{max-width:1160px}
.topLinks a,.topLinks button{
  border:1px solid transparent;
  background:transparent;
  color:#dbeafe;
  border-radius:999px;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.topLinks a:hover,.topLinks button:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.14);
}
.heroKicker{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  margin-bottom:8px;
  border-radius:999px;
  background:rgba(34,197,94,.13);
  border:1px solid rgba(134,239,172,.22);
  color:#bbf7d0;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.microIntro h1{
  max-width:820px;
  margin:auto;
}
.microIntro p{
  max-width:660px;
  margin:8px auto 0;
  line-height:1.55;
}
.gameFrame{
  box-shadow:0 24px 80px rgba(0,0,0,.46),0 0 0 1px rgba(255,255,255,.08);
}
.rules{
  background:rgba(15,23,42,.72);
  border-color:rgba(148,163,184,.22);
}
.rule{
  align-items:flex-start;
  line-height:1.36;
}
.modernSection{
  max-width:1120px;
}
.aboutHead,.tipsHead{
  max-width:790px;
}
.aboutHead p,.tipsHead p{
  color:#cbd5e1;
  font-size:15px;
}
.proofGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.proofCard{
  position:relative;
  padding:18px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.045));
  border-color:rgba(148,163,184,.16);
}
.cardIcon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  margin-bottom:12px;
  border-radius:14px;
  background:rgba(15,23,42,.82);
  border:1px solid rgba(255,255,255,.12);
  font-size:22px;
}
.guideCta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  font-size:13px;
  font-weight:950;
  background:linear-gradient(135deg,#22c55e,#84cc16);
  color:#052e16;
}
.fraudMatrix{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.fraudMatrix article{
  min-height:178px;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:16px;
  border-radius:18px;
  background:#0b1220;
  border:1px solid rgba(148,163,184,.18);
  box-shadow:0 14px 34px rgba(0,0,0,.18);
}
.fraudMatrix h3{
  color:#fff;
  font-size:16px;
  line-height:1.2;
}
.fraudMatrix p{
  color:#d8e5f1;
  font-size:13px;
  line-height:1.55;
}
.fraudMatrix strong{
  margin-top:auto;
  color:#fde68a;
  font-size:12px;
  line-height:1.4;
}
.reflexStrip{
  margin:15px 0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border:1px solid rgba(134,239,172,.18);
  border-radius:20px;
  overflow:hidden;
  background:rgba(34,197,94,.08);
}
.reflexStrip div{
  padding:14px;
  border-right:1px solid rgba(134,239,172,.14);
}
.reflexStrip div:last-child{border-right:0}
.reflexStrip b{
  display:block;
  color:#bbf7d0;
  font-size:13px;
  margin-bottom:4px;
}
.reflexStrip span{
  display:block;
  color:#e5edf6;
  font-size:12px;
  line-height:1.35;
}
.emergencySteps{
  margin-top:16px;
  padding:20px;
  border-radius:22px;
  background:linear-gradient(135deg,rgba(239,68,68,.14),rgba(14,165,233,.08));
  border:1px solid rgba(248,113,113,.22);
}
.emergencySteps h3{
  color:#fff;
  margin-bottom:10px;
}
.emergencySteps ol{
  margin:0;
  padding-left:22px;
}
.emergencySteps li{
  color:#e5edf6;
  font-size:13px;
  line-height:1.55;
  margin:5px 0;
}
.tinyFooter{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px 10px;
}
.tinyFooter a{
  margin:0;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  padding:6px 8px;
  border-radius:999px;
}
.tinyFooter a:hover{background:rgba(255,255,255,.08)}

@media(max-width:980px){
  .proofGrid,.fraudMatrix{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reflexStrip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reflexStrip div:nth-child(2){border-right:0}
  .reflexStrip div:nth-child(-n+2){border-bottom:1px solid rgba(134,239,172,.14)}
}
@media(max-width:650px){
  .topbarInner{gap:8px}
  .topLinks .lang{
    min-width:42px;
    text-align:center;
    padding-left:9px;
    padding-right:9px;
  }
  .topLinks .replayIntroBtn{
    width:44px;
    min-width:44px;
    padding:0!important;
    font-size:0!important;
    display:grid;
    place-items:center;
  }
  .topLinks .replayIntroBtn::before{
    content:'↻';
    font-size:20px;
    line-height:1;
  }
  .home{
    padding-left:16px;
    padding-right:16px;
  }
  .rules{
    max-height:none;
  }
  .rule{
    font-size:13px;
    gap:8px;
  }
  .proofGrid,.fraudMatrix,.reflexStrip{grid-template-columns:1fr}
  .proofCard,.fraudMatrix article{text-align:left}
  .fraudMatrix article{min-height:0}
  .reflexStrip div{
    border-right:0;
    border-bottom:1px solid rgba(134,239,172,.14);
  }
  .reflexStrip div:last-child{border-bottom:0}
  .emergencySteps{
    padding:16px;
    border-radius:18px;
  }
  .helpActions{
    grid-template-columns:1fr;
  }
  .guideCta,.aboutReplay{
    width:100%;
  }
  .scoreModal{position:fixed;padding:12px}
  .scoreModalCard{width:min(100%,370px);max-height:calc(100dvh - 24px);border-radius:22px}
  .scoreFormRow{grid-template-columns:1fr}
  .scoreForm button{min-height:44px}
}
@media(max-width:380px){
  .home h2{font-size:25px}
  .subtitle{font-size:13px}
  .rule{font-size:12.5px}
}

/* V17 — animated Cedric-on-chair background while playing */
.cedricOfficeBg{display:none}
body.gameRunning .cedricOfficeBg{
  display:block;
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}
body.gameRunning .cedricOfficeBg::before{
  content:"";
  position:absolute;
  left:-10%;
  right:-10%;
  bottom:-8%;
  height:54%;
  background:
    linear-gradient(180deg,transparent 0,rgba(148,163,184,.08) 38%,rgba(148,163,184,.16) 100%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.045) 0 1px,transparent 1px 92px),
    repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0 1px,transparent 1px 54px);
  transform:perspective(640px) rotateX(58deg);
  transform-origin:50% 100%;
}
body.gameRunning .cedricOfficeBg::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:min(760px,82vw);
  height:min(520px,64vh);
  transform:translate(-50%,-44%);
  border:1px dashed rgba(134,239,172,.18);
  border-radius:50%;
  opacity:.55;
}
body.gameRunning .officeRails{
  position:absolute;
  inset:12px;
  border-radius:34px;
  background:
    radial-gradient(circle at 18% 18%,rgba(34,197,94,.13),transparent 26%),
    radial-gradient(circle at 82% 72%,rgba(56,189,248,.12),transparent 28%);
}
body.gameRunning .gameFrame{z-index:2}
.orbitCedric{
  position:absolute;
  left:50%;
  top:50%;
  width:138px;
  height:190px;
  opacity:0;
  filter:drop-shadow(0 18px 24px rgba(0,0,0,.38));
  animation:cedricChairLap 17s linear infinite;
  will-change:transform,opacity;
}
.orbitChair{
  position:absolute;
  inset:0;
  transform-origin:50% 80%;
  animation:cedricChairWobble 1.15s ease-in-out infinite alternate;
}
.orbitChairBack{position:absolute;left:38px;top:62px;width:68px;height:72px;border-radius:22px 22px 14px 14px;background:#35445b}
.orbitChairSeat{position:absolute;left:30px;top:122px;width:82px;height:24px;border-radius:13px;background:#475569}
.orbitChairStem{position:absolute;left:68px;top:143px;width:9px;height:34px;background:#64748b}
.orbitChairBase{position:absolute;left:29px;top:174px;width:88px;height:8px;border-radius:8px;background:#64748b}
.orbitWheel{position:absolute;top:176px;width:15px;height:15px;border-radius:50%;background:#111827;animation:orbitWheelSpin .44s linear infinite}
.orbitWheel.ow1{left:24px}.orbitWheel.ow2{right:24px}
.orbitPerson{position:absolute;left:34px;top:0;width:78px;height:150px}
.orbitHead{position:absolute;left:22px;top:0;width:40px;height:42px;border-radius:13px;background:#fde68a;z-index:3}
.orbitHair{position:absolute;left:19px;top:-4px;width:46px;height:17px;border-radius:13px 13px 5px 5px;background:#78350f;z-index:4}
.orbitEye{position:absolute;top:18px;width:5px;height:5px;border-radius:50%;background:#111827}.orbitEye.oe1{left:10px}.orbitEye.oe2{right:10px}
.orbitMouth{position:absolute;left:15px;bottom:8px;width:12px;height:4px;border-radius:0 0 9px 9px;background:#92400e}
.orbitBody{position:absolute;left:16px;top:41px;width:52px;height:56px;border-radius:14px 14px 9px 9px;background:#22c55e}
.orbitBadge{position:absolute;left:25px;top:54px;width:19px;height:19px;border-radius:6px;display:grid;place-items:center;background:#fff;color:#166534;font-size:10px;font-weight:1000;z-index:5}
.orbitArm{position:absolute;top:48px;width:13px;height:54px;border-radius:10px;background:#fde68a;transform-origin:top center}.orbitArm.oa1{left:8px;transform:rotate(19deg)}.orbitArm.oa2{right:6px;transform:rotate(-34deg);animation:orbitWave .8s ease-in-out infinite alternate}
.orbitLeg{position:absolute;top:91px;width:16px;height:41px;border-radius:9px;background:#1d4ed8}.orbitLeg.ol1{left:22px}.orbitLeg.ol2{left:46px}
@keyframes cedricChairLap{
  0%{opacity:.55;transform:translate(calc(-50% - min(35vw,430px)),calc(-50% - min(23vh,220px))) scale(.66) rotate(7deg)}
  12%{opacity:.95}
  25%{opacity:.64;transform:translate(calc(-50% + min(34vw,420px)),calc(-50% - min(20vh,190px))) scale(.62) rotate(-5deg)}
  50%{opacity:.95;transform:translate(calc(-50% + min(38vw,470px)),calc(-50% + min(27vh,260px))) scale(.86) rotate(-11deg)}
  75%{opacity:.98;transform:translate(calc(-50% - min(38vw,470px)),calc(-50% + min(26vh,250px))) scale(.9) rotate(10deg)}
  100%{opacity:.55;transform:translate(calc(-50% - min(35vw,430px)),calc(-50% - min(23vh,220px))) scale(.66) rotate(7deg)}
}
@keyframes cedricChairWobble{from{transform:translateY(0) rotate(-1.5deg)}to{transform:translateY(-6px) rotate(2deg)}}
@keyframes orbitWheelSpin{to{transform:rotate(360deg)}}
@keyframes orbitWave{to{transform:rotate(-68deg) translate(7px,-3px)}}

@media(max-width:900px){
  .orbitCedric{width:112px;height:158px;animation-duration:15s;filter:drop-shadow(0 14px 18px rgba(0,0,0,.34))}
  body.gameRunning .cedricOfficeBg::after{width:86vw;height:56vh}
  .orbitChair{transform:scale(.82);transform-origin:0 0}
}
@media(max-width:650px){
  body.gameRunning .cedricOfficeBg{opacity:.34}
  body.gameRunning .cedricOfficeBg::after{display:none}
  .orbitCedric{width:98px;height:138px;animation-name:cedricChairLapMobile;animation-duration:13s}
  @keyframes cedricChairLapMobile{
    0%{opacity:.32;transform:translate(-58vw,18vh) scale(.58) rotate(7deg)}
    25%{opacity:.5;transform:translate(30vw,20vh) scale(.5) rotate(-8deg)}
    50%{opacity:.46;transform:translate(24vw,76vh) scale(.64) rotate(-12deg)}
    75%{opacity:.5;transform:translate(-60vw,72vh) scale(.68) rotate(10deg)}
    100%{opacity:.32;transform:translate(-58vw,18vh) scale(.58) rotate(7deg)}
  }
}
@media(prefers-reduced-motion:reduce){
  body.gameRunning .cedricOfficeBg{display:none!important}
}

/* V18 — keep real-life advice visible in the result and score popup */
.scoreModalLearn{
  margin:8px 0 12px;
  padding:11px;
  border-radius:16px;
  background:rgba(34,197,94,.10);
  border-color:rgba(134,239,172,.18);
}
.scoreModalLearn h3{font-size:15px;margin-bottom:6px}
.scoreModalLearn p{font-size:12px;line-height:1.32;margin:5px 0}
.scoreModal .scoreForm{display:block}
.scoreModal .scoreFormRow{display:grid;grid-template-columns:minmax(0,1fr) auto}

@media(max-width:650px){
  .gameFrame .scoreModal{
    position:absolute!important;
    inset:0!important;
    height:auto!important;
    max-height:none!important;
  }
  .gameFrame .scoreModalCard{
    max-height:calc(100% - 24px)!important;
  }
  .scoreModal .scoreFormRow{grid-template-columns:1fr}
}

/* V19 - homepage advice cards and guide CTA redesign */
.guideCta{
  gap:8px;
  border-radius:14px;
  box-shadow:0 14px 34px rgba(34,197,94,.20);
  transition:transform .18s ease,box-shadow .18s ease;
}
.guideCta::after{
  content:"→";
  font-weight:1000;
}
.guideCta:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 44px rgba(34,197,94,.26);
}
.tipsSection{
  max-width:1120px;
  padding-top:22px;
}
.tipsHead{
  margin-bottom:22px;
}
.tipsHead h2{
  max-width:820px;
  margin-left:auto;
  margin-right:auto;
}
.fraudMatrix{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.fraudMatrix article{
  position:relative;
  min-height:210px;
  padding:18px 18px 18px 72px;
  overflow:hidden;
  background:
    linear-gradient(180deg,rgba(15,23,42,.96),rgba(15,23,42,.72)),
    radial-gradient(circle at top right,rgba(34,197,94,.16),transparent 42%);
  border-color:rgba(148,163,184,.22);
}
.fraudMatrix article::before{
  position:absolute;
  left:18px;
  top:18px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:rgba(34,197,94,.12);
  border:1px solid rgba(134,239,172,.25);
  font-size:20px;
}
.fraudMatrix article::after{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:linear-gradient(180deg,#22c55e,#38bdf8);
  opacity:.78;
}
.fraudMatrix article:nth-child(1)::before{content:"✉️"}
.fraudMatrix article:nth-child(2)::before{content:"☎️"}
.fraudMatrix article:nth-child(3)::before{content:"👔"}
.fraudMatrix article:nth-child(4)::before{content:"📦"}
.fraudMatrix article:nth-child(5)::before{content:"💬"}
.fraudMatrix article:nth-child(6)::before{content:"▦"}
.fraudMatrix h3{
  font-size:17px;
}
.fraudMatrix p{
  font-size:13.5px;
  color:#dbe7f4;
}
.fraudMatrix strong{
  display:block;
  margin-top:auto;
  padding:10px 11px;
  border-radius:13px;
  color:#fff3bf;
  background:rgba(250,204,21,.10);
  border:1px solid rgba(250,204,21,.20);
}
.reflexStrip{
  box-shadow:0 18px 44px rgba(0,0,0,.20);
}
.emergencySteps{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
}

@media(max-width:980px){
  .fraudMatrix{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:650px){
  .tipsSection{
    padding-left:14px;
    padding-right:14px;
  }
  .tipsHead{
    text-align:left;
  }
  .tipsHead h2{
    text-align:left;
    font-size:clamp(25px,8vw,34px);
  }
  .tipsHead p{
    font-size:15px;
    line-height:1.55;
  }
  .fraudMatrix{
    grid-template-columns:1fr;
    gap:12px;
  }
  .fraudMatrix article{
    min-height:0;
    padding:16px 16px 16px 66px;
    border-radius:18px;
  }
  .fraudMatrix article::before{
    left:16px;
    top:16px;
    width:34px;
    height:34px;
    border-radius:13px;
  }
  .fraudMatrix h3{
    font-size:17px;
  }
  .fraudMatrix strong{
    margin-top:4px;
  }
}

/* V20 - cohesive responsive shell, game fit, and score flow */
:root{--site-topbar-height:60px}
.topbar{
  height:var(--site-topbar-height);
  min-height:var(--site-topbar-height);
}
.topbarInner{
  min-height:100%;
}
.siteBrand{
  min-width:0;
}
.siteBrand span:last-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body:not(.gameRunning) .gameHero{
  min-height:calc(var(--app-height,100vh) - var(--site-topbar-height))!important;
}
body:not(.gameRunning) .gameFrame{
  isolation:isolate;
}
@media(min-width:1040px){
  body:not(.gameRunning) .gameHero{
    display:grid!important;
    grid-template-columns:minmax(320px,520px) minmax(360px,470px);
    align-items:center!important;
    justify-content:center!important;
    gap:34px!important;
    padding:24px!important;
  }
  body:not(.gameRunning) .microIntro{
    display:block!important;
    text-align:left;
    max-width:520px;
    margin:0;
  }
  body:not(.gameRunning) .microIntro h1,
  body:not(.gameRunning) .microIntro p{
    margin-left:0;
    margin-right:0;
  }
  body:not(.gameRunning) .gameFrame{
    width:min(450px,calc(100vw - 620px))!important;
    min-width:390px!important;
    height:min(760px,calc(var(--app-height,100vh) - 112px))!important;
    min-height:620px!important;
    max-height:none!important;
    aspect-ratio:auto!important;
  }
}
@media(min-width:651px) and (max-width:1039px){
  body:not(.gameRunning) .gameHero{
    justify-content:flex-start!important;
    padding:16px 16px 28px!important;
    gap:10px!important;
  }
  body:not(.gameRunning) .microIntro{
    display:block!important;
    max-width:680px;
    margin:0 auto;
  }
  body:not(.gameRunning) .gameFrame{
    width:auto!important;
    height:clamp(560px,calc(var(--app-height,100vh) - 178px),760px)!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:390/844!important;
  }
}
@media(max-width:650px){
  :root{--site-topbar-height:142px}
  .topbar{
    position:relative!important;
    height:auto!important;
    min-height:calc(var(--site-topbar-height) + env(safe-area-inset-top))!important;
    padding-top:env(safe-area-inset-top)!important;
  }
  .topbarInner{
    height:auto!important;
    min-height:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:center!important;
    gap:9px!important;
    padding:9px 12px 10px!important;
  }
  .siteBrand{
    width:100%;
    justify-content:center;
  }
  .siteBrand span:last-child{
    display:inline!important;
    max-width:calc(100vw - 92px);
    font-size:15px!important;
  }
  .topLinks{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%;
  }
  .topLinks a:not(.lang),
  .topLinks button:not(.replayIntroBtn){
    display:inline-flex!important;
  }
  .topLinks a,
  .topLinks button{
    width:100%!important;
    min-width:0!important;
    min-height:36px!important;
    justify-content:center!important;
    padding:7px 5px!important;
    border-radius:12px!important;
    border:1px solid rgba(148,163,184,.22)!important;
    background:rgba(15,23,42,.64)!important;
    color:#dbeafe!important;
    font-size:12px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
  }
  .topLinks .lang{
    border-color:rgba(187,247,208,.36)!important;
    background:rgba(187,247,208,.16)!important;
    color:#f0fdf4!important;
    font-weight:950!important;
  }
  .topLinks .replayIntroBtn{
    font-size:0!important;
  }
  .topLinks .replayIntroBtn::before{
    content:"↻";
    font-size:18px;
    line-height:1;
  }
  .pageMain,
  body:not(.gameRunning) .gameHero{
    min-height:calc(var(--app-height,100vh) - var(--site-topbar-height) - env(safe-area-inset-top))!important;
  }
  body:not(.gameRunning) .gameHero{
    padding:0!important;
    gap:0!important;
    display:flex!important;
  }
  body:not(.gameRunning) .microIntro{
    display:none!important;
  }
  body:not(.gameRunning) .gameFrame{
    width:100vw!important;
    max-width:none!important;
    height:calc(var(--app-height,100vh) - var(--site-topbar-height) - env(safe-area-inset-top))!important;
    min-height:540px!important;
    max-height:none!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    aspect-ratio:auto!important;
  }
  body:not(.gameRunning) .gameFrame::before{
    display:none!important;
  }
  body:not(.gameRunning) .home{
    padding:calc(34px + env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom))!important;
  }
}
@media(max-width:380px){
  .topLinks a,
  .topLinks button{
    font-size:11.5px!important;
    padding-left:4px!important;
    padding-right:4px!important;
  }
}
@media(max-height:720px) and (max-width:650px){
  :root{--site-topbar-height:138px}
  .topLinks a,
  .topLinks button{
    min-height:34px!important;
  }
  body:not(.gameRunning) .home{
    padding-top:calc(26px + env(safe-area-inset-top))!important;
  }
}
.end{
  scrollbar-gutter:stable;
}
.scorePanel{
  border-color:rgba(134,239,172,.18);
  background:linear-gradient(180deg,rgba(34,197,94,.10),rgba(255,255,255,.055));
}
.scoreModal{
  z-index:220;
}
.scoreModalCard{
  width:min(100%,430px);
  max-height:min(760px,calc(100% - 24px));
}
.scoreFormRow{
  align-items:stretch;
}
.scoreForm input,
.scoreForm button{
  min-height:44px;
}
.scoreModal .leaderboard{
  max-height:230px;
}
@media(max-width:650px){
  .gameFrame .scoreModal{
    position:absolute!important;
    inset:0!important;
    align-items:stretch!important;
    padding:10px!important;
  }
  .gameFrame .scoreModalCard{
    width:100%!important;
    max-height:100%!important;
    border-radius:22px!important;
    padding:16px!important;
  }
  .scoreModal .leaderboard{
    max-height:180px;
  }
  .scoreModal .scoreFormRow{
    grid-template-columns:1fr!important;
  }
  .finalgrid{
    gap:7px;
  }
  .finalcard{
    padding:9px 7px;
  }
}

/* V21 - compact homepage top scores */
body.gameRunning .homeScores{
  display:none;
}
.homeScores{
  padding:18px 16px 28px;
  background:linear-gradient(180deg,rgba(2,6,23,.96),rgba(8,47,73,.92));
  border-top:1px solid rgba(148,163,184,.16);
}
.homeScoresInner{
  width:min(920px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:14px;
  align-items:center;
}
.homeScoresHead span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(187,247,208,.14);
  border:1px solid rgba(187,247,208,.26);
  color:#bbf7d0;
  font-size:12px;
  font-weight:950;
}
.homeScoresHead h2{
  margin:7px 0 0;
  color:#fff;
  font-size:20px;
  line-height:1.1;
  letter-spacing:0;
}
.homeScoreList{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}
.homeScoreList li{
  min-width:0;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-areas:"rank name" "rank score";
  column-gap:9px;
  row-gap:2px;
  align-items:center;
  padding:11px 12px;
  border-radius:8px;
  background:rgba(15,23,42,.72);
  border:1px solid rgba(148,163,184,.18);
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}
.homeScoreList span{
  grid-area:rank;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:rgba(250,204,21,.16);
  color:#fde68a;
  font-size:12px;
  font-weight:950;
}
.homeScoreList b{
  grid-area:name;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#fff;
  font-size:14px;
  line-height:1.15;
}
.homeScoreList em{
  grid-area:score;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#bbf7d0;
  font-style:normal;
  font-size:12px;
  font-weight:900;
}
@media(max-width:760px){
  .homeScores{
    padding:14px 14px 22px;
  }
  .homeScoresInner{
    display:block;
  }
  .homeScoresHead{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:10px;
  }
  .homeScoresHead h2{
    margin:0;
    font-size:18px;
  }
  .homeScoreList{
    grid-template-columns:1fr;
    gap:7px;
  }
  .homeScoreList li{
    min-height:54px;
  }
}

/* V22 - keep score saving visible first on mobile */
.scoreModalCard{
  display:flex;
  flex-direction:column;
}
.scoreModalHead,
.scoreModal .scoreForm,
.scoreMessage,
.scoreModalLearn{
  flex:0 0 auto;
}
.scoreModal .leaderboard{
  flex:1 1 auto;
  min-height:0;
}
@media(max-width:650px){
  .gameFrame .scoreModal,
  body > .scoreModal{
    position:fixed!important;
    inset:0!important;
    height:100dvh!important;
    max-height:100dvh!important;
    align-items:flex-start!important;
    justify-content:center!important;
    padding:calc(8px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom))!important;
  }
  .gameFrame .scoreModalCard,
  body > .scoreModal .scoreModalCard{
    max-height:calc(100dvh - 18px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    overflow:hidden!important;
  }
  .scoreModalHead{
    padding:2px 38px 8px!important;
  }
  .scoreModalHead h3{
    font-size:20px;
  }
  .scoreModal .scoreForm{
    padding:10px;
    margin:0 -2px 2px;
    border-radius:16px;
    background:rgba(15,23,42,.78);
    border:1px solid rgba(134,239,172,.18);
  }
  .scoreMessage{
    min-height:16px;
    margin:5px 0 6px;
  }
  .scoreModalLearn{
    max-height:138px;
    overflow:auto;
    margin:6px 0 8px;
    padding:9px;
  }
  .scoreModal .leaderboard{
    max-height:none!important;
    overflow:auto;
  }
}
