.game-page{background:#fff8e5;color:#102a52}.game-header{position:relative;top:auto}.game-header nav{display:flex}.game-back{font-size:.7rem;font-weight:1000;color:#0756d9}.game-shell{width:min(1120px,calc(100% - 32px));margin:34px auto 90px}.game-intro{max-width:700px;margin:0 auto 24px;text-align:center}.game-kicker{color:#e94136;font-size:.72rem;letter-spacing:.18em;font-weight:1000}.game-intro h1{font-size:clamp(3.2rem,10vw,7rem);line-height:.83;letter-spacing:-.075em;margin:14px 0;color:#0756d9}.game-intro h1 em{font-style:normal;color:#e94136}.game-intro>p:last-child{max-width:570px;margin:20px auto;color:#44536b;font-size:1rem}.game-card{max-width:820px;margin:auto;background:#0756d9;border:5px solid #102a52;border-radius:22px;box-shadow:10px 10px 0 #e94136;padding:16px;color:#fff}.game-topline{display:flex;justify-content:space-between;gap:10px;font-size:.72rem;font-weight:1000;letter-spacing:.08em;padding:3px 5px 12px}.game-topline b{color:#ffd323}#dash-canvas{display:block;width:100%;height:auto;aspect-ratio:12/7;border:4px solid #102a52;border-radius:13px;background:#b4e7ff;touch-action:none}.game-controls{display:grid;grid-template-columns:1fr 2fr 1fr;gap:12px;margin:14px 0 8px}.game-controls button,.tilt-controls button,.score-submit{min-height:54px;border:3px solid #102a52;border-radius:12px;background:#ffd323;color:#102a52;font-weight:1000;font-size:1rem;box-shadow:3px 3px 0 #102a52;touch-action:manipulation}.game-controls button:active,.tilt-controls button:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #102a52}.game-controls #start-game{background:#e94136;color:white}.tilt-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:2px 4px;font-size:.68rem}.tilt-controls button{min-height:40px;padding:8px 13px;font-size:.7rem}.score-form{display:grid;gap:10px;padding:15px 5px 4px}.score-form[hidden]{display:none}.score-form label{display:grid;gap:5px;font-size:.75rem;font-weight:800}.score-form input:not([type=checkbox]){height:44px;padding:8px 11px;border:2px solid #102a52;border-radius:8px;font:inherit}.score-form .consent{grid-template-columns:22px 1fr;align-items:start;font-size:.65rem;font-weight:500}.score-form .consent input{width:18px;height:18px}.score-submit{background:#fff;color:#0756d9}.game-message{min-height:1.5em;margin:10px 5px 3px;font-weight:800}.prize-rules{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:820px;margin:38px auto}.prize-rules article{display:grid;gap:8px;padding:22px;border:3px solid #102a52;border-radius:14px;background:#ffd323;box-shadow:6px 6px 0 #0756d9}.prize-rules article:nth-child(2){background:white;box-shadow:6px 6px 0 #e94136}.prize-rules small{font-size:.65rem;letter-spacing:.15em;font-weight:1000;color:#e94136}.prize-rules strong{font-size:1.3rem}.prize-rules span{font-size:.8rem;color:#56647b}.leaderboards{display:grid;grid-template-columns:1fr 1fr;gap:20px}.leaderboard{padding:20px;background:#fff;border:3px solid #102a52;border-radius:14px;box-shadow:6px 6px 0 #0756d9}.leaderboard h2{margin:0 0 12px;color:#0756d9;font-size:1rem;letter-spacing:.07em}.leaderboard h2 span{display:block;color:#e94136;font-size:.65rem;margin-top:4px}.leaderboard ol{padding-left:30px;margin:0}.leaderboard li{padding:8px 4px;border-top:1px dashed #b6c0d1;font-weight:800}.leaderboard li span{float:right;color:#e94136}.terms{max-width:820px;margin:24px auto;color:#68758a;font-size:.68rem;line-height:1.6}@media(max-width:650px){.game-header nav{display:none}.game-shell{width:min(100% - 22px,820px);margin-top:22px}.game-card{padding:10px;border-width:3px;border-radius:15px;box-shadow:6px 6px 0 #e94136}.game-controls{gap:7px}.game-controls button{min-height:48px}.tilt-controls{align-items:flex-start;flex-direction:column}.prize-rules,.leaderboards{grid-template-columns:1fr}.game-topline{font-size:.57rem}.game-message{font-size:.85rem}}

/* Immersive game view: the play area fills the first screen and opens with a quick zoom-in. */
.game-page{min-height:100svh;overflow-x:hidden}
.game-header{min-height:76px;padding:10px clamp(14px,3vw,42px);z-index:2}
.game-header .brand img{width:58px;height:58px}
.game-shell{width:100%;min-height:calc(100svh - 76px);margin:0;padding:0 0 42px;display:flex;flex-direction:column}
.game-intro{width:100%;max-width:none;min-height:74px;margin:0;padding:10px clamp(16px,4vw,56px);display:flex;align-items:center;gap:18px;text-align:left}
.game-kicker{flex:0 0 auto;margin:0}
.game-intro h1{font-size:clamp(1.8rem,4vw,3rem);line-height:1;letter-spacing:-.055em;margin:0;white-space:nowrap}
.game-intro h1 br{display:none}
.game-intro>p:last-child{max-width:420px;margin:0 0 0 auto;font-size:.8rem;line-height:1.35}
.game-card{width:100%;max-width:none;min-height:calc(100svh - 170px);margin:0;border:4px solid #102a52;border-left:0;border-right:0;border-radius:16px;box-shadow:0 8px 0 #e94136;padding:clamp(10px,2vw,22px) clamp(12px,3vw,38px);display:flex;flex-direction:column;animation:game-fullscreen-open .7s cubic-bezier(.2,.8,.2,1) both;transform-origin:center}
.game-topline{flex:0 0 auto}
#dash-canvas{flex:1 1 auto;width:100%;height:clamp(300px,52svh,760px);min-height:300px;aspect-ratio:auto;object-fit:fill}
.game-controls{flex:0 0 auto;max-width:760px;width:min(100%,760px);margin:14px auto 8px}
.tilt-controls{flex:0 0 auto;max-width:760px;width:min(100%,760px);margin:0 auto}
.score-form{flex:0 0 auto;width:min(100%,760px);margin:0 auto}
.game-message{flex:0 0 auto;text-align:center}
.prize-rules,.leaderboards,.terms{width:min(1120px,calc(100% - 32px))}
@keyframes game-fullscreen-open{0%{opacity:0;transform:scale(.88) translateY(42px);filter:blur(8px);border-radius:30px}65%{opacity:1;transform:scale(1.015) translateY(0);filter:blur(0)}100%{opacity:1;transform:scale(1);filter:blur(0)}}
@media(max-width:650px){.game-header{min-height:62px;padding:7px 14px}.game-header .brand img{width:48px;height:48px}.game-header .game-back{font-size:.6rem}.game-shell{min-height:calc(100svh - 62px);padding-bottom:30px}.game-intro{min-height:66px;gap:9px;padding:8px 12px}.game-kicker{font-size:.56rem;letter-spacing:.1em}.game-intro h1{font-size:clamp(1.45rem,6vw,2.15rem)}.game-intro>p:last-child{display:none}.game-card{min-height:calc(100svh - 135px);padding:9px 10px 12px;border-width:3px;border-left:0;border-right:0;border-radius:12px;box-shadow:0 6px 0 #e94136}.game-topline{font-size:.58rem;padding-bottom:8px}#dash-canvas{height:clamp(320px,56svh,600px);min-height:320px;border-width:3px}.game-controls{gap:7px;margin:10px auto 7px}.game-controls button{min-height:50px}.tilt-controls{align-items:center;flex-direction:row;font-size:.59rem}.tilt-controls button{min-height:38px;padding:7px 10px;font-size:.6rem}.score-form{padding:10px 3px 2px}.prize-rules,.leaderboards,.terms{width:calc(100% - 24px)}}
@media(max-height:650px) and (min-width:651px){.game-intro{min-height:58px}.game-card{min-height:calc(100svh - 134px)}#dash-canvas{height:42svh;min-height:220px}}
@media(prefers-reduced-motion:reduce){.game-card{animation:none}}

/* Full-viewport game mode: the canvas art keeps its native proportions and has no panel frame. */
body.game-page{min-height:100%;background:#0756d9;color:#fff;overflow-x:hidden}
.game-stage{position:relative;isolation:isolate;display:flex;flex-direction:column;width:100%;height:100vh;height:100dvh;height:100svh;min-height:320px;overflow:hidden;padding-top:env(safe-area-inset-top);background:radial-gradient(ellipse at 50% 44%,#1769ec 0%,#0756d9 54%,#063890 100%);color:#fff}
.game-stage:before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;opacity:.17;background-image:radial-gradient(#fff 1px,transparent 1px);background-size:27px 27px;mask-image:linear-gradient(180deg,#000,transparent 90%)}
.game-header{position:relative;inset:auto;z-index:2;flex:0 0 auto;min-height:68px;padding:8px clamp(14px,3vw,42px);background:transparent;color:#fff}
.game-header .brand img{width:52px;height:52px;object-fit:contain;border-radius:50%;background:#fff}
.game-header nav{display:flex;gap:24px}.game-header nav a,.game-back{color:#fff;font-weight:900;font-size:.72rem;letter-spacing:.06em}
.game-back{display:flex;align-items:center;gap:7px;padding:10px 13px;border:1px solid #ffffff70;border-radius:40px;text-decoration:none}
.game-intro{position:relative;z-index:1;flex:0 0 auto;display:flex;align-items:center;gap:16px;width:100%;max-width:none;min-height:60px;margin:0;padding:6px clamp(16px,4vw,56px);text-align:left}
.game-kicker{flex:0 0 auto;margin:0;color:#ffdf31;font-size:.65rem;letter-spacing:.16em;font-weight:1000}
.game-intro h1{margin:0;color:#fff;font-size:clamp(1.5rem,3.3vw,2.7rem);line-height:1;letter-spacing:-.05em;white-space:nowrap}
.game-intro h1 em{color:#ffdf31;font-style:normal}.game-intro>p:last-child{margin:0 0 0 auto;color:#ffffffc9;font-size:.75rem}
.game-card{position:relative;z-index:1;flex:1 1 auto;display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;max-width:none;margin:0;padding:0 clamp(10px,2vw,28px) max(10px,env(safe-area-inset-bottom));border:0;border-radius:0;background:transparent;box-shadow:none;color:#fff;animation:game-fullscreen-open .65s cubic-bezier(.2,.8,.2,1) both;transform-origin:center}
.game-topline{flex:0 0 auto;justify-content:space-between;width:min(100%,1040px);margin:0 auto;padding:3px 8px 9px;color:#fff;font-size:.72rem}
.game-topline b{color:#ffdf31}.hud-divider{color:#ffffff70}
#dash-canvas{position:relative;flex:1 1 auto;display:block;width:100%;height:100%;min-width:0;min-height:0;max-height:none;aspect-ratio:12/7;object-fit:contain;border:0;border-radius:0;background:transparent;touch-action:none}
.game-controls{flex:0 0 auto;display:grid;grid-template-columns:76px minmax(160px,260px) 76px;justify-content:center;gap:14px;width:100%;margin:8px auto}
.game-controls button{min-height:56px;border:2px solid #ffffff90;border-radius:18px;background:#ffdf31;color:#063890;font-size:1.25rem;box-shadow:0 5px 0 #03265f;touch-action:manipulation}
.game-controls #start-game{border-color:#fff;background:#ed342b;color:#fff;font-size:.85rem;letter-spacing:.08em}
.tilt-controls{flex:0 0 auto;display:flex;justify-content:center;align-items:center;gap:14px;width:100%;margin:0 auto;color:#ffffffc9;font-size:.65rem}
.tilt-controls button{min-height:38px;padding:7px 13px;border:1px solid #ffffff70;border-radius:30px;background:transparent;color:#fff;font-size:.61rem;box-shadow:none}
.score-form{flex:0 0 auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(680px,100%);margin:4px auto;padding:9px 12px;background:#063890eF;border:1px solid #ffffff45;border-radius:14px}
.score-form[hidden]{display:none}.score-form label{font-size:.68rem}.score-form input:not([type=checkbox]){height:38px;border:1px solid #fff;border-radius:7px}.score-form .consent,.score-form .score-submit{grid-column:1/-1}.score-submit{min-height:42px;border:0;border-radius:9px;background:#ffdf31;color:#063890;box-shadow:none;font-size:.8rem}
.game-message{flex:0 0 auto;min-height:1.2em;margin:1px 0 0;text-align:center;font-size:.78rem}
.game-stage.score-entry-open{height:auto;min-height:100svh;overflow:visible}
.game-info{padding:1px 0 42px;background:#fff8e5;color:#102a52}
.game-info .prize-rules{margin-top:32px}
@keyframes game-fullscreen-open{0%{opacity:0;transform:scale(.94);filter:blur(5px)}70%{opacity:1;transform:scale(1.008);filter:blur(0)}100%{opacity:1;transform:scale(1);filter:blur(0)}}
@media(max-width:650px){.game-header{min-height:58px;padding:5px 12px}.game-header .brand img{width:42px;height:42px}.game-header nav{display:none}.game-back{padding:8px 10px;font-size:.59rem}.game-intro{min-height:48px;gap:8px;padding:4px 12px}.game-kicker{font-size:.51rem;letter-spacing:.1em}.game-intro h1{font-size:clamp(1.2rem,5vw,1.75rem)}.game-intro>p:last-child{display:none}.game-card{padding:0 8px max(8px,env(safe-area-inset-bottom))}.game-topline{padding:3px 5px 6px;font-size:.57rem}#dash-canvas{width:100%;height:100%;min-height:0;max-height:none}.game-controls{grid-template-columns:58px minmax(130px,200px) 58px;gap:9px;margin:6px auto}.game-controls button{min-height:49px;border-radius:15px}.tilt-controls{gap:8px;font-size:.55rem}.tilt-controls button{min-height:35px;padding:6px 9px;font-size:.55rem}.score-form{grid-template-columns:1fr;padding:8px}.score-form .consent,.score-form .score-submit{grid-column:auto}.game-info .prize-rules{margin-top:24px}}
@media(max-height:430px){.game-header{min-height:48px}.game-header .brand img{width:36px;height:36px}.game-intro{min-height:38px}.game-intro h1{font-size:1.35rem}.game-topline{padding-bottom:3px}.game-controls{margin:3px auto}.game-controls button{min-height:38px}.tilt-controls button{min-height:30px}.game-card{padding-bottom:5px}}
@media(prefers-reduced-motion:reduce){.game-card{animation:none}}
