[hidden]{display:none!important}
@font-face{font-family:"Noto Sans Hebrew";src:url("fonts/noto-hebrew-hebrew.woff2") format("woff2");font-weight:500 800;font-display:swap;unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:"Noto Sans Hebrew";src:url("fonts/noto-hebrew-latin.woff2") format("woff2");font-weight:500 800;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F}
:root{--ink:#1f2a52;--sky:#8fd3ff;--yel:#ffc928;--blu:#4fb3ff;--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);--sal:env(safe-area-inset-left,0px);--sar:env(safe-area-inset-right,0px)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
html,body{margin:0;height:100%;overflow:hidden;background:#bfe6ff;font-family:"Noto Sans Hebrew",Arial,sans-serif;color:var(--ink);overscroll-behavior:none}
button,input{font-family:inherit;touch-action:manipulation;color:inherit}
button{cursor:pointer;border:0}
input{-webkit-user-select:text;user-select:text}
#app{position:fixed;inset:0;height:100dvh;width:100vw;overflow:hidden}
.screen{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;padding:calc(var(--sat) + 10px) calc(var(--sar) + 12px) calc(var(--sab) + 10px) calc(var(--sal) + 12px)}
.screen.active{display:flex}
.bg{position:absolute;inset:0;background-position:center;background-size:cover;background-repeat:no-repeat;z-index:0}
.bg-title{background-image:url(img/title.webp);background-position:50% 60%}
.bg-scene{background-image:url(img/scene.webp);background-position:45% 70%}
.bg-world{background-image:url(img/world.webp)}
.bg.dim::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(255,255,255,.18),rgba(120,90,200,.18))}
.no-webp .bg-title{background-image:url(img/title.jpg)} .no-webp .bg-scene{background-image:url(img/scene.jpg)} .no-webp .bg-world{background-image:url(img/world.jpg)}

/* title */
#s-title{justify-content:space-between}
.t-head{position:relative;z-index:2;text-align:center;margin-top:3dvh}
.title3d{margin:0;font-size:clamp(48px,15vw,92px);font-weight:800;line-height:1.25;letter-spacing:.01em;
  background:linear-gradient(180deg,#ffffff 0%,#fff3b0 35%,#ffcf3a 62%,#ff9a3c 100%);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 2px 3px rgba(90,30,130,.75)) drop-shadow(0 4px 12px rgba(90,30,130,.55)) drop-shadow(0 0 22px rgba(255,255,255,.65))}
.title3d.small{font-size:clamp(34px,10vw,60px)}
.t-sub{margin-top:2px;font-size:clamp(22px,6.4vw,34px);font-weight:800;color:#fff;text-shadow:0 2px 8px rgba(90,40,140,.7),0 0 18px rgba(255,255,255,.5)}
.big-btn{position:relative;z-index:3;font-size:clamp(24px,7vw,34px);font-weight:800;color:#fff;padding:.42em 1.4em .5em;border-radius:999px;
  background:linear-gradient(180deg,#ffa8d8 0%,#ff6fae 45%,#e9468f 100%);box-shadow:0 8px 22px rgba(200,40,120,.45),inset 0 3px 0 rgba(255,255,255,.55),inset 0 -5px 10px rgba(150,20,80,.35);text-shadow:0 2px 6px rgba(120,10,60,.5)}
.big-btn:active{transform:scale(.96)}
.big-btn:disabled{filter:grayscale(.7) opacity(.6)}
.big-btn.small{font-size:20px;padding:.45em 1.1em}
.big-btn.alt{background:linear-gradient(180deg,#9fe0ff,#47a8f0 60%,#2a7fd0);box-shadow:0 8px 22px rgba(30,100,200,.4),inset 0 3px 0 rgba(255,255,255,.55),inset 0 -5px 10px rgba(10,60,140,.35)}
#t-start{margin-bottom:calc(5dvh + 18px)}
.pulse{animation:pulse 1.6s ease-in-out infinite}
@keyframes pulse{50%{transform:scale(1.06)}}
.noa-credit{position:absolute;left:0;right:0;bottom:calc(var(--sab) + 5px);margin:0;text-align:center;font-size:11.5px;font-weight:600;color:rgba(255,255,255,.85);text-shadow:0 1px 4px rgba(40,20,80,.6);pointer-events:none;z-index:5}

/* sparkles */
.sparkles{position:absolute;inset:0;pointer-events:none;z-index:1;overflow:hidden}
.sp{position:absolute;width:10px;height:10px;border-radius:50%;background:radial-gradient(circle,#fff 0%,#fff6b8 35%,rgba(255,220,120,0) 70%);animation:twk 2.6s ease-in-out infinite}
@keyframes twk{0%,100%{opacity:0;transform:scale(.4) translateY(0)}50%{opacity:1;transform:scale(1.25) translateY(-10px)}}

/* card screens */
.card{position:relative;z-index:2;width:min(94vw,460px);max-height:calc(100dvh - var(--sat) - var(--sab) - 20px);overflow:auto;background:rgba(255,255,255,.9);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-radius:28px;padding:18px 18px 16px;box-shadow:0 14px 40px rgba(60,40,140,.3);text-align:center}
.card h2{margin:2px 0 6px;font-size:26px;font-weight:800;color:#5a35b8}
.lbl{font-size:18px;font-weight:700;margin:6px 0 10px;line-height:1.5}
#name-in{width:100%;font-size:24px;font-weight:700;text-align:center;padding:10px;border-radius:16px;border:3px solid #d6c8ff;background:#fff;outline:none;margin-bottom:10px}
#name-in:focus{border-color:#9b7bff}
.row{display:flex;gap:10px;justify-content:center}
.g-btn{flex:1;font-size:22px;font-weight:800;padding:12px;border-radius:18px;background:#f1ecff;box-shadow:inset 0 -4px 0 rgba(90,60,180,.15)}
.g-btn.on{background:linear-gradient(#ffe36e,#ffc21f);box-shadow:0 0 0 3px #ffb300,0 6px 14px rgba(255,170,0,.35)}
.aliens{display:flex;gap:10px;justify-content:center;margin:14px 0}
.al-btn{flex:1;border-radius:22px;padding:8px 4px 6px;background:#eef7ff;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:20px;font-weight:800;box-shadow:inset 0 -4px 0 rgba(40,90,180,.12)}
.al-btn img{height:min(26dvh,170px);max-width:100%;object-fit:contain;filter:drop-shadow(0 6px 8px rgba(40,40,120,.25))}
.al-btn.on{background:linear-gradient(#fff8d6,#ffe9a0);box-shadow:0 0 0 4px #ffb300,0 8px 18px rgba(255,170,0,.35)}
.al-btn.b.on{background:linear-gradient(#e6f5ff,#bfe5ff);box-shadow:0 0 0 4px #2d9cf0,0 8px 18px rgba(30,140,240,.35)}
.al-btn.taken{opacity:.35;pointer-events:none}
.me-row{display:flex;align-items:center;gap:12px;justify-content:center}
.me-row img{height:96px}
.stars-total{font-size:20px;font-weight:800;color:#e08a00}
.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0}
.mode-btn{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 6px;border-radius:22px;background:linear-gradient(#ffffff,#eef3ff);box-shadow:0 6px 14px rgba(60,60,160,.18),inset 0 -4px 0 rgba(60,60,160,.12)}
.mode-btn.net{background:linear-gradient(#fff6fb,#ffe0f0)}
.mode-btn .ico{font-size:34px}.mode-btn .mt{font-size:19px;font-weight:800}.mode-btn .ms{font-size:14px;font-weight:600;color:#6a6a95}
.mode-btn:active{transform:scale(.97)}
.link-btn{background:none;font-size:17px;font-weight:700;color:#6b46d6;text-decoration:underline;padding:6px}
.corner-btn{position:absolute;z-index:20;top:calc(var(--sat) + 8px);left:calc(var(--sal) + 10px);width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.85);font-size:20px;box-shadow:0 4px 12px rgba(40,40,120,.25)}
#s-menu .mute-btn{left:auto;right:calc(var(--sar) + 10px)}
.mute-btn.off{opacity:.6}

/* lobby */
.code-big{font-size:64px;font-weight:800;letter-spacing:.2em;direction:ltr;color:#e9468f;margin:4px 0}
.code-in{display:flex;gap:10px;justify-content:center;direction:ltr;margin:6px 0 10px}
.code-in span{width:54px;height:64px;border-radius:16px;background:#fff;border:3px solid #d6c8ff;font-size:40px;font-weight:800;display:flex;align-items:center;justify-content:center}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;direction:ltr;max-width:300px;margin:0 auto}
.keypad button{font-size:28px;font-weight:800;padding:10px;border-radius:16px;background:#f1ecff;box-shadow:inset 0 -4px 0 rgba(90,60,180,.15)}
.vs{display:flex;align-items:center;justify-content:center;gap:10px;margin:8px 0}
.vs .p{display:flex;flex-direction:column;align-items:center;font-weight:800;font-size:18px}.vs img{height:90px}.vs .x{font-size:28px}
.status{display:flex;align-items:center;justify-content:center;gap:8px;font-size:18px;font-weight:700;min-height:30px}
.status .dot{width:12px;height:12px;border-radius:50%;background:#ffb300;animation:pulse 1s infinite}
.status.ok .dot{background:#2ec26b;animation:none}.status.bad .dot{background:#e5484d;animation:none}
.fail{font-size:16px;font-weight:700;color:#b33;margin:6px 0}

/* game */
.game{padding:0;justify-content:stretch;align-items:stretch;background:linear-gradient(#d9f0ff,#f6e6ff)}
.zone{position:relative;flex:1 1 0;min-height:0;display:flex;flex-direction:column;justify-content:center;padding:8px calc(var(--sar) + 10px) calc(var(--sab) + 8px) calc(var(--sal) + 10px);gap:8px}
.zone-top{display:none}
.game.split .zone-top{display:flex;transform:rotate(180deg)}
.game.split .zone-bottom{padding-bottom:calc(var(--sab) + 6px)}
.game.split .zone-top{padding-bottom:calc(var(--sat) + 6px)}
.scene-wrap{position:relative;flex:0 0 auto;height:max(200px,min(45dvh,calc(78vw + 64px),calc(100dvh - 372px)));overflow:hidden;background:linear-gradient(#d6ecff,rgb(180,200,219))}
.scene-fade{position:absolute;left:0;right:0;height:60px;background:linear-gradient(rgb(180,200,219),rgba(180,200,219,0));pointer-events:none;z-index:1}
.game.split .scene-wrap{height:clamp(112px,22dvh,210px)}
.scene{position:absolute;inset:0;overflow:hidden}
#scene-img{position:absolute;left:0;top:0;max-width:none;pointer-events:none}
.topbar{position:absolute;inset:0;pointer-events:none}
.topbar .corner-btn{pointer-events:auto}
.game.single .topbar .corner-btn{top:calc(var(--sat) + 6px)}
.topbar .mute-btn{left:auto;right:calc(var(--sar) + 10px)}
.game.split .topbar .corner-btn{top:50%;margin-top:-22px}
.hud{position:absolute;left:0;right:0;bottom:6px;display:flex;justify-content:center;gap:8px;pointer-events:none;z-index:6}
.game.single .hud{top:calc(var(--sat) + 9px);bottom:auto;padding:0 56px;gap:6px}
.game.single .pill{font-size:13.5px;padding:2px 8px 2px 4px;gap:4px}.game.single .pill img{height:24px}.game.single .dots i{width:7px;height:7px}
.game.split .hud{display:none}
.pill{white-space:nowrap;display:flex;align-items:center;gap:6px;padding:3px 10px 3px 6px;border-radius:999px;background:rgba(255,255,255,.88);box-shadow:0 3px 10px rgba(40,40,120,.2);font-weight:800;font-size:15px}
.pill img{height:28px}
.dots{display:flex;gap:3px}.dots i{width:9px;height:9px;border-radius:50%;background:#dfe3f0}
.pill.y .dots i.on{background:#ffbf1a}.pill.b .dots i.on{background:#2d9cf0}
.hero{position:absolute;left:0;top:0;z-index:4;transition:transform .95s ease-in-out;will-change:transform;pointer-events:none}
.hero-in{position:absolute;left:0;bottom:0;transform:translateX(-50%);animation:bob 2.4s ease-in-out infinite}
.hero img{display:block;height:100%;filter:drop-shadow(0 6px 6px rgba(40,30,90,.3))}
.hero .tag{position:absolute;left:0;transform:translateX(-50%);white-space:nowrap;font-size:12px;font-weight:800;padding:1px 8px;border-radius:999px;background:rgba(255,255,255,.9);box-shadow:0 2px 6px rgba(0,0,0,.15)}
.hero.hop .hero-in{animation:step .95s ease-in-out}
@keyframes bob{50%{transform:translateX(-50%) translateY(-3%)}}
@keyframes step{0%,50%,100%{transform:translateX(-50%) translateY(0) rotate(0)}25%,75%{transform:translateX(-50%) translateY(-4%) rotate(2deg)}}
.hero.oops .hero-in{animation:wob .5s ease-in-out 2}
@keyframes wob{25%{transform:translateX(-50%) rotate(-6deg)}75%{transform:translateX(-50%) rotate(6deg)}}
.glow-gate{position:absolute;z-index:3;width:10px;height:10px;border-radius:50%;pointer-events:none;background:radial-gradient(circle,rgba(255,255,255,.95),rgba(255,230,160,.6) 30%,rgba(255,180,240,.25) 55%,rgba(255,255,255,0) 72%);opacity:.0;transform:translate(-50%,-50%) scale(1);transition:opacity .6s}
.glow-gate.on{opacity:1;animation:gate 2.2s ease-in-out infinite}
@keyframes gate{50%{transform:translate(-50%,-50%) scale(1.25)}}

/* per-player view */
.pbar{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:800;font-size:16px}
.pbar .who{display:flex;align-items:center;gap:6px}.pbar img{height:34px}
.flip{position:relative;flex:0 0 auto;height:clamp(112px,20dvh,190px);perspective:900px}
.game.split .flip{height:clamp(76px,11.5dvh,120px)}
.game.split .zone{justify-content:flex-start}
.card3d{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.3,.8,.3,1)}
.card3d.shown{transform:rotateY(180deg)}
.face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:22px;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(70,50,160,.22)}
.face.back{background:linear-gradient(135deg,#a98bff,#ff8ccf 55%,#ffd36e);font-size:50px}
.face.back::after{content:"";position:absolute;inset:8px;border-radius:16px;border:3px dashed rgba(255,255,255,.7)}
.face.front{transform:rotateY(180deg);background:linear-gradient(#fffdf6,#fff3d6);padding:8px 12px 8px 62px}
.sit{font-size:clamp(21px,6.4vw,29px);font-weight:800;line-height:1.55;text-align:center;color:var(--ink)}
.game.split .sit{font-size:clamp(17px,4.8vw,22px);line-height:1.45}
.read-btn{position:absolute;left:8px;top:50%;margin-top:-24px;width:48px;height:48px;border-radius:50%;background:linear-gradient(#8fd8ff,#3aa0ef);color:#fff;font-size:22px;box-shadow:0 4px 10px rgba(30,110,200,.35),inset 0 2px 0 rgba(255,255,255,.5)}
.read-btn.playing{animation:pulse .8s infinite}
.answers{display:flex;flex-direction:column;justify-content:center;gap:10px;flex:0 0 auto;min-height:150px}
.game.split .answers{flex:0 0 auto;gap:6px;min-height:0}
.ans{position:relative;display:flex;align-items:center;gap:10px;min-height:clamp(54px,8.3dvh,82px);padding:5px 12px 5px 8px;border-radius:20px;background:linear-gradient(#ffffff,#eef4ff);box-shadow:0 5px 12px rgba(50,60,150,.18),inset 0 -4px 0 rgba(60,80,170,.1);text-align:right;font-size:clamp(18px,5.3vw,23px);font-weight:800;color:var(--ink);line-height:1.35;transition:transform .15s,background .3s,opacity .3s}
.game.split .ans{min-height:50px;font-size:clamp(16px,4.6vw,20px)}
.ans .ic{flex:0 0 auto;width:52px;height:52px;object-fit:contain;display:flex;align-items:center;justify-content:center;font-size:38px}
.game.split .ans .ic{width:42px;height:42px;font-size:30px}
.ans:active{transform:scale(.97)}
.ans.reading{box-shadow:0 0 0 3px #3aa0ef,0 5px 12px rgba(50,60,150,.18)}
.ans.wrong{background:linear-gradient(#ffe9ea,#ffd3d6);animation:shake .4s}
.ans.dim{opacity:.4}
.ans.right{background:linear-gradient(#e2ffe9,#a9f0be);box-shadow:0 0 0 3px #2ec26b,0 0 22px rgba(46,194,107,.6)}
@keyframes shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.answers.locked .ans{pointer-events:none}
.freeze{position:absolute;inset:0;z-index:8;display:none;align-items:center;justify-content:center;border-radius:20px;background:rgba(220,235,255,.55);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.freeze.on{display:flex}
.freeze .fz{background:#fff;border-radius:999px;padding:8px 18px;font-size:22px;font-weight:800;box-shadow:0 6px 18px rgba(50,60,150,.25);display:flex;gap:8px;align-items:center}
.freeze .ring{width:30px;height:30px;border-radius:50%;background:conic-gradient(#3aa0ef var(--p,100%),#e3ecff 0)}
.banner{position:absolute;left:10px;right:10px;top:40%;z-index:9;transform:translateY(-50%);background:rgba(255,255,255,.95);border-radius:22px;padding:14px;text-align:center;font-size:clamp(18px,5.3vw,23px);font-weight:800;line-height:1.55;box-shadow:0 10px 30px rgba(60,40,140,.3);display:none}
.banner.on{display:block;animation:pop .35s}
@keyframes pop{0%{transform:translateY(-50%) scale(.7);opacity:0}100%{transform:translateY(-50%) scale(1);opacity:1}}
.net-lost{position:absolute;inset:0;z-index:30;display:none;align-items:center;justify-content:center;background:rgba(40,30,90,.45)}
.net-lost.on{display:flex}
.nl-card{background:#fff;border-radius:24px;padding:20px;text-align:center;font-size:20px;font-weight:800;max-width:300px}
.spin{font-size:40px;animation:pulse 1s infinite}

/* world */
.world{padding:0;overflow:hidden;background:#fbe3ff}
.world-bg{position:absolute;inset:0;background:url(img/world.webp) center/cover no-repeat;clip-path:circle(0% at 85% 60%);transition:clip-path 1.6s cubic-bezier(.5,0,.2,1)}
.no-webp .world-bg{background-image:url(img/world.jpg)}
.world.open .world-bg{clip-path:circle(150% at 85% 60%)}
.world-bg::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 45%,rgba(255,255,255,.45),rgba(255,255,255,0) 60%);animation:breathe 3s ease-in-out infinite}
@keyframes breathe{50%{opacity:.4}}
.world-head{position:absolute;top:calc(var(--sat) + 4dvh);left:0;right:0;text-align:center;z-index:4;opacity:0;transform:translateY(-20px);transition:all .8s .9s}
.world.open .world-head{opacity:1;transform:none}
.world-sub{font-size:clamp(20px,5.6vw,28px);font-weight:800;color:#fff;text-shadow:0 2px 8px rgba(110,40,150,.75),0 0 16px rgba(255,255,255,.5);padding:0 14px;line-height:1.5}
.world-heroes{position:absolute;left:0;right:0;bottom:calc(var(--sab) + 13dvh);display:flex;justify-content:center;align-items:flex-end;gap:0;z-index:4}
.wh{position:relative;display:flex;flex-direction:column;align-items:center;opacity:0;transform:translateY(60px) scale(.6);transition:all .8s cubic-bezier(.3,1.4,.4,1)}
.world.open .wh{opacity:1;transform:none}
.wh img{height:min(27dvh,240px);filter:drop-shadow(0 10px 14px rgba(80,30,120,.35));animation:jump 1.1s ease-in-out infinite}
.wh.win img{height:min(33dvh,290px)}
.wh .crown{position:absolute;top:-34px;font-size:44px;animation:bob 1.6s infinite}
.wh span{margin-top:4px;font-weight:800;font-size:18px;background:rgba(255,255,255,.9);padding:2px 12px;border-radius:999px}
@keyframes jump{50%{transform:translateY(-14px)}}
#world-cert{position:absolute;bottom:calc(var(--sab) + 3dvh);z-index:6;opacity:0;transition:opacity .6s 2.4s}
.world.open #world-cert{opacity:1}
.sparkles.dense .sp{width:14px;height:14px}

/* certificate */
.cert-screen{gap:12px}
.cert{position:relative;z-index:2;width:min(92vw,420px);background:#fffdf7;border-radius:26px;padding:16px 18px 18px;text-align:center;box-shadow:0 16px 40px rgba(80,40,140,.35);border:7px solid transparent;background-image:linear-gradient(#fffdf7,#fffdf7),linear-gradient(135deg,#ff8ccf,#ffd36e,#8be37f,#7fc9ff,#c79bff);background-origin:border-box;background-clip:padding-box,border-box}
.cert-logo{height:min(13dvh,96px);object-fit:contain}
.cert-title{font-size:clamp(30px,9vw,42px);font-weight:800;color:#7a3fd8;margin:2px 0}
.cert-name{font-size:clamp(26px,7.6vw,36px);font-weight:800;color:#e9468f}
.cert-text{font-size:clamp(17px,4.9vw,21px);font-weight:700;line-height:1.6;margin:4px 0}
.cert-alien{height:min(20dvh,150px);margin:2px 0}
.cert-stars{font-size:20px;font-weight:800;color:#e08a00}
.cert-date{font-size:14px;color:#777;margin-top:4px}
.cert-btns{position:relative;z-index:2;display:flex;flex-wrap:wrap;gap:8px;justify-content:center}

.toast{position:absolute;left:50%;top:calc(var(--sat) + 40%);transform:translate(-50%,-50%) scale(.8);z-index:40;background:rgba(255,255,255,.96);padding:10px 20px;border-radius:999px;font-size:22px;font-weight:800;box-shadow:0 8px 24px rgba(60,40,140,.3);opacity:0;pointer-events:none;transition:all .25s;white-space:nowrap}
.toast.on{opacity:1;transform:translate(-50%,-50%) scale(1)}
#confetti{position:absolute;inset:0;pointer-events:none;z-index:50;overflow:hidden}
.cf{position:absolute;top:-20px;width:10px;height:14px;border-radius:3px;animation:fall linear forwards}
@keyframes fall{to{transform:translateY(110dvh) rotate(720deg)}}
@media (min-aspect-ratio:4/5){ .game.single .scene-wrap{height:46dvh} .zone{max-width:720px;width:100%;margin:0 auto} }

/* v5: bigger scene, no dead band */
.scene-blur{position:absolute;inset:-24px;background:url(img/scene.webp) 50% 0/cover no-repeat;filter:blur(9px) saturate(1.08) brightness(1.04)}
.no-webp .scene-blur{background-image:url(img/scene.jpg)}
#scene-img.feather{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 54px);mask-image:linear-gradient(to bottom,transparent 0,#000 54px)}
.game.single .scene-wrap{flex:1 1 auto;height:auto;min-height:220px}
.game.single .zone-bottom{flex:0 0 auto;justify-content:flex-start;padding-top:10px}
.game.single .flip{height:clamp(100px,15dvh,160px)}
.game.single .answers{min-height:calc(3 * clamp(56px,8dvh,76px) + 20px);justify-content:center}
.game.single .ans{flex:1 1 0;min-height:clamp(56px,8dvh,76px);max-height:94px}
@media (min-aspect-ratio:4/5){ .game.single .scene-wrap{flex:1 1 auto;height:auto} }

#scene-img{transition:transform .95s ease-in-out}
.glow-gate{transition:opacity .6s,left .95s ease-in-out}
.card3d.shown .face.back{pointer-events:none;visibility:hidden;transition:visibility 0s .35s}

/* ---- v9: split fits 3 answers on small phones ---- */
.game.split .zone{padding:5px calc(var(--sar) + 8px) calc(var(--sab) + 5px) calc(var(--sal) + 8px);gap:5px}
.game.split .zone-top{padding-bottom:calc(var(--sat) + 5px)}
.game.split .pbar{font-size:15px;min-height:26px;flex:0 0 auto}.game.split .pbar img{height:26px}
.game.split .flip{flex:1 1 auto;height:auto;min-height:54px;max-height:118px}
.game.split .face{border-radius:16px}
.game.split .face.front{padding:4px 8px 4px 48px}
.game.split .read-btn{width:38px;height:38px;margin-top:-19px;left:6px;font-size:18px}
.game.split .sit{font-size:clamp(15px,4.4vw,21px);line-height:1.38}
.game.split .answers{gap:5px}
.game.split .ans{min-height:clamp(38px,6.1dvh,54px);font-size:clamp(15px,4.3vw,19px);line-height:1.2;padding:2px 10px 2px 6px;border-radius:14px;gap:8px}
.game.split .ans .ic{width:clamp(30px,4.8dvh,42px);height:clamp(30px,4.8dvh,42px);font-size:26px}
.game.split .freeze .fz{font-size:18px;padding:6px 14px}
.game.split .banner{font-size:clamp(15px,4.4vw,20px);padding:10px;line-height:1.45}
.face.front{overflow:hidden}

/* ---- v9: players / names screen ---- */
.setup-card{padding:14px 14px 10px}
.setup-card h2{margin:0 0 2px}
.setup-card .lbl{margin:2px 0 8px;font-size:17px}
.slots{display:flex;flex-direction:column;gap:10px;margin-bottom:10px}
.slot{border-radius:22px;padding:8px;background:rgba(244,240,255,.85);box-shadow:inset 0 -3px 0 rgba(90,60,180,.1)}
.slot.c-y{background:linear-gradient(#fffbe6,#fff1b8)}.slot.c-b{background:linear-gradient(#eef8ff,#d4ecff)}
.slot .aliens{margin:0 0 8px}
.slot .al-btn img{height:min(17dvh,130px)}
.slot .al-btn span{font-size:17px}
.slot-f{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.nm-lbl{font-size:17px;font-weight:800;color:#5a35b8;text-align:right}
.name-in{width:100%;font-size:23px;font-weight:700;text-align:center;padding:7px 10px;border-radius:16px;border:3px solid #c9b8ff;background:#fff;outline:none;font-family:inherit;color:var(--ink)}
.name-in:focus{border-color:#8a63ff;box-shadow:0 0 0 4px rgba(138,99,255,.18)}
.name-in::placeholder{color:#a99ccc;font-weight:600}
.slot .g-btn{font-size:19px;padding:7px}
#s-setup.two .slot{display:flex;gap:8px;align-items:center}
.al-one{flex:0 0 auto;width:86px;display:flex;flex-direction:column;align-items:center;background:none;padding:0}
.al-one img{height:min(15dvh,104px);max-width:100%;object-fit:contain;filter:drop-shadow(0 5px 6px rgba(40,40,120,.25))}
.al-one .pn{font-size:14px;font-weight:800;color:#5a35b8;white-space:nowrap}
#setup-go{font-size:clamp(22px,6.4vw,30px)}
#setup-go:disabled{opacity:.45;filter:saturate(.5)}
@media (max-height:700px){ .setup-card h2{font-size:22px} .setup-card .lbl{font-size:15.5px} .slot .al-btn img{height:13dvh} .al-one img{height:12.5dvh} .name-in{font-size:20px;padding:5px 8px} .slot .g-btn{font-size:17px;padding:5px} .nm-lbl{font-size:15.5px} .slots{gap:7px} }

/* home button (back to the islands world) */
.topbar .nh-in{left:auto;right:calc(var(--sar) + 10px);top:calc(var(--sat) + 60px);font-size:22px;background:radial-gradient(circle at 32% 26%,#fff 0 9%,rgba(255,255,255,0) 30%),linear-gradient(180deg,#7fe0ff,#2fa8f5 55%,#1b7fe0);border:3px solid #fff}
.game.single .topbar .nh-in{top:calc(var(--sat) + 58px)}
.game.split .topbar .nh-in{top:50%;margin-top:-78px}
.cert-screen .nh-big{font-size:21px}
#world-cert{bottom:calc(var(--sab) + 3dvh + 66px)}
.nh-world{position:absolute;bottom:calc(var(--sab) + 2.4dvh);z-index:6;opacity:0;transition:opacity .6s 2.6s;font-size:20px}
.world.open .nh-world{opacity:1}
#s-title .t-head{margin-top:max(3dvh,52px)}
