/* WitoScope Play — game screens (navy + gold, big touch targets) */
.game-page{padding-top:12px}
.g{max-width:440px;margin:0 auto;background:#002161;color:#fff;border-radius:26px;padding:16px 18px 22px;display:flex;flex-direction:column;gap:16px;font-family:var(--body);position:relative;overflow:hidden}
body.in-scan .game-page{padding:0}
body.in-scan .g{border-radius:0;min-height:100vh;min-height:100dvh;padding-top:calc(14px + env(safe-area-inset-top,0px))}
@media (min-width:560px){ body.in-scan .g{border-radius:26px;min-height:auto;margin-top:24px} }
.g a{color:#FFC83D}
.g h1{font-family:var(--display);font-weight:800;font-size:38px;line-height:1;margin:6px 0 4px;color:#FFC83D}
.g-over h1{color:#fff;font-size:30px}
.g-hero{display:flex;flex-direction:column;align-items:center;text-align:center}
.g-hero p{margin:0;color:#C9D6F2;font-size:15px}
.g-topline{display:flex;justify-content:space-between;align-items:center}
.g-back{font-weight:700;font-size:15px;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.g-icon{width:44px;height:44px;border-radius:12px;border:0;background:#13306F;color:#fff;display:grid;place-items:center}
.g-icon svg{width:22px;height:22px}
.g-field{display:flex;flex-direction:column;gap:8px}
.g-label{font-size:12.5px;font-weight:800;letter-spacing:.08em;color:#C9D6F2}
.g-label span{font-weight:600;letter-spacing:0;text-transform:none;opacity:.8;margin-left:6px}
.g-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.g-seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:#0B2C75;border-radius:14px;padding:4px;gap:4px}
.g-seg button{min-height:44px;border:0;border-radius:11px;background:transparent;color:#C9D6F2;font-weight:700;font-size:15px}
.g-seg button[aria-pressed="true"]{background:#fff;color:#0B1F3A;font-weight:800}
.g-digits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.g-digits button{min-height:62px;border-radius:16px;border:2px solid #2B4A8F;background:#0B2C75;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}
.g-digits b{font:800 22px var(--display);line-height:1}
.g-digits span{font-size:11px;color:#C9D6F2}
.g-digits button[aria-pressed="true"]{background:#FFC83D;border-color:#FFC83D;color:#0B1F3A}
.g-digits button[aria-pressed="true"] span{color:#0B1F3A;font-weight:700}
.g-chips{display:flex;flex-wrap:wrap;gap:8px}
.g-chips button{min-height:44px;padding:0 14px;border-radius:999px;border:2px solid #2B4A8F;background:#0B2C75;color:#fff;font-weight:800;font-size:15px}
.g-chips button[aria-pressed="true"]{background:#FFC83D;border-color:#FFC83D;color:#0B1F3A}
.g-best{display:flex;align-items:center;justify-content:center;gap:14px;background:#0B2C75;border-radius:16px;padding:10px;color:#C9D6F2;font-size:14.5px}
.g-best b{color:#fff}
.g-hearts{display:flex;gap:2px}
.g-hearts svg{width:24px;height:24px}
.g-go{min-height:60px;border-radius:20px;border:0;background:#FFC83D;color:#0B1F3A;font:800 24px var(--display);box-shadow:0 6px 0 #C28E00;width:100%}
.g-go:active{transform:translateY(3px);box-shadow:0 3px 0 #C28E00}
.g-note{margin:0;text-align:center;font-size:13.5px;color:#C9D6F2}

/* play */
.g-hud{display:flex;align-items:center;justify-content:space-between;gap:8px}
.g-score{font:800 28px var(--display);min-width:44px;text-align:center}
.g-streak{display:flex;align-items:center;gap:4px;font-weight:800;font-size:17px;color:#FF9F3D}
.g-streak svg{width:20px;height:20px}
.g-fuse{height:14px;border-radius:7px;background:#13306F;overflow:hidden}
.g-fuse-bar{height:14px;border-radius:7px;width:100%;background:#FFC83D}
.g-fuse-meta{display:flex;justify-content:space-between;font-size:13px;font-weight:600;color:#C9D6F2;margin-top:-8px}
.g-q{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:190px;text-align:center}
.g-sum{font:800 clamp(40px,13vw,62px)/1 var(--display);letter-spacing:.01em;white-space:nowrap}
.g-eq{color:#C9D6F2;font-size:15px}
.g-hint{min-height:22px;font-weight:800;font-size:16px;color:#FFE08A}
.g-typed{min-width:210px;height:70px;border-radius:18px;background:#fff;color:#0B1F3A;display:flex;align-items:center;justify-content:center;font:800 38px var(--display);padding:0 16px}
.g-typed.ok{background:#DDF7E6}
.g-typed.bad{background:#FFE3E7;color:#9B1C31}
.g-caret{color:#2F80ED;animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
.g-right{font-size:16px;color:#C9F2D9}
.g-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.g-opt{min-height:74px;border-radius:20px;border:3px solid #fff;background:#fff;color:#0B1F3A;font:800 clamp(24px,7.5vw,32px) var(--display);box-shadow:0 5px 0 rgba(0,0,0,.25)}
.g-opt:active{transform:translateY(3px);box-shadow:0 2px 0 rgba(0,0,0,.25)}
.g-opt.ok{background:#DDF7E6;border-color:#1FA35B;color:#0F5C32}
.g-opt.bad{background:#FFE3E7;border-color:#FF5A6E;color:#9B1C31}
.g-opt.dim{color:#6B7280}
.g-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.g-pad-extra{display:flex;justify-content:flex-end}
.g-pad-extra .g-key{width:33%}
.g-key{min-height:58px;border-radius:16px;border:0;background:#fff;color:#0B1F3A;font:800 28px var(--display);box-shadow:0 4px 0 rgba(0,0,0,.25);display:grid;place-items:center}
.g-key svg{width:28px;height:28px}
.g-key-alt{background:#C9D6F2}
.g-key:active{transform:translateY(2px);box-shadow:0 2px 0 rgba(0,0,0,.25)}
.shake{animation:shake .4s}
@keyframes shake{20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-5px)}80%{transform:translateX(5px)}}
.g-paused{position:absolute;inset:0;background:rgba(0,20,60,.88);color:#fff;border:0;font:800 24px var(--display);z-index:3}
.g-confetti{position:fixed;inset:0;pointer-events:none;z-index:40;overflow:hidden}
.g-confetti i{position:absolute;top:-12px;width:10px;height:14px;border-radius:2px;animation:fall 1.4s ease-in forwards}
@keyframes fall{to{transform:translateY(105vh) rotate(540deg)}}

/* game over */
.g-scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.g-sc{background:#0B2C75;border-radius:20px;padding:12px;display:flex;flex-direction:column;align-items:center}
.g-sc span{font-size:12.5px;font-weight:800;letter-spacing:.06em;color:#C9D6F2}
.g-sc b{font:800 54px/1 var(--display)}
.g-sc em{font-style:normal;font-weight:800;font-size:13px}
.g-sc.gold{background:#FFC83D;color:#0B1F3A}
.g-sc.gold span{color:#0B1F3A}
.g-stats{display:flex;justify-content:center;gap:22px;font-size:14px;color:#C9D6F2}
.g-stats b{color:#fff}
.g-insight{background:#fff;color:#0B1F3A;border-radius:18px;padding:14px 16px;display:flex;gap:12px;align-items:flex-start}
.g-insight svg{width:26px;height:26px;flex-shrink:0}
.g-insight b{font-size:16px}
.g-insight p{margin:2px 0 0;font-size:14px;color:#4A5568}
.g-wa{min-height:56px;border-radius:18px;background:#13803F;color:#fff !important;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800;font-size:17px}
.g-wa svg{width:22px;height:22px}
.g-links{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.g-links button{background:none;border:0;color:#C9D6F2;font-weight:700;font-size:15px;text-decoration:underline;min-height:44px;padding:0}
.g-links a{font-weight:700;font-size:15px;min-height:44px;display:inline-flex;align-items:center}
@media (prefers-reduced-motion: reduce){ .g-caret{animation:none} }
