/* Shared AIpamys palette; school colours are reserved for the school stage. */
.game-page .top{width:100%;max-width:none;height:68px;margin:0;padding:0 24px;border-bottom:1px solid #294358;gap:30px;background:var(--brand-navy)}
.game-page .top .brand{font-size:28px;font-weight:750;line-height:normal;padding:7px 12px;flex-shrink:0}
.game-page .top .brand small{font-size:8px;letter-spacing:1.3px;margin-top:3px;line-height:1.6}
.game-page .top nav{margin-left:auto;gap:16px}
.game-page .top nav a,.game-page .top .quiet{display:inline-flex;align-items:center;min-height:40px;font-size:13px;padding:10px 13px;border:1px solid #b8cbd7;border-radius:9px;background:#dceaf2;color:#16334d;font-weight:650;white-space:nowrap}
.game-page .top .quiet{background:#304b62;border-color:#5e8095;color:#fff}
.game-page .eyebrow,.game-page .muted,.game-page .help,.game-page .model-note,.game-page .intro p,.game-page footer{color:#526978}
.game-page .season-badge,.game-page .pill,.game-page .stats>div,.game-page .feedback,.game-page .empty,.game-page .ranking .me{background:#e7eef1;border-color:#c5d5df;color:#244b63}
.game-page .score-number,.game-page .feedback strong,.game-page .stats b,.game-page .ranking strong,.game-page .class-code,.game-page .share-url{color:#245c79}
.game-page .route-strip span{background:#e7eef1;border-color:#c5d5df;color:#526978}
.game-page .route-strip .current{background:#16334d;border-color:#16334d;color:white}
.game-page .route-strip .passed{background:#dceaf2;border-color:#96b8c9;color:#244b63}
.game-page .route-strip span:nth-child(3).current{background:#006b2d;border-color:#ffc400;color:white}
.game-page .world-wrap{border-color:#c5d5df;background:#c5d5df}
.game-page .world-goal,.game-page .latest-sum,.game-page .big-equation{background:#e4eef3;border-color:#b8cbd7;color:#16334d}
.game-page .latest-sum span,.game-page .latest-sum b,.game-page .big-equation>span,.game-page .math-total strong,.game-page .math-total b{color:#16334d}
.game-page .math-labels,.game-page .math-total>span,.game-page .math-history summary,.game-page .math-history li,.game-page .world-controls p{color:#526978}
.game-page .big-equation .answer{color:#245c79}
.game-page .dpad button{color:#16334d;background:#e4eef3;border-color:#b8cbd7}
.game-page .dpad button:active{background:#aacbdc}
.game-page .primary:hover{background:#24536d}
.game-page .world-clock{background:#fffdf8ed;color:#244b63}
@media(max-width:1100px){.game-page .top{padding:0 15px;gap:16px}.game-page .top .brand{font-size:24px}.game-page .top .brand small{font-size:7px;letter-spacing:.7px}}
@media(max-width:760px){.game-page .top{height:110px;padding:10px 12px;gap:10px;flex-wrap:wrap;align-content:center}.game-page .top .brand{font-size:23px;padding:5px 8px}.game-page .top .brand small{font-size:6px}.game-page .top nav{gap:8px}.game-page .top nav a,.game-page .top .quiet{font-size:12px;padding:8px 10px;min-height:36px}}
/* A centred invitation with two equally weighted ways into the adventure. */
.welcome-emblem{display:none}
.game-welcome{background:#edf5f5}
.game-welcome main{max-width:1120px;padding:24px 32px 0}
.game-welcome .intro{display:flex;flex-direction:column;text-align:center;gap:0;margin:0 0 24px;position:relative}
.game-welcome .welcome-emblem{display:grid;place-items:center;position:relative;width:100px;height:108px;margin:0 auto 5px}
.welcome-emblem img{position:relative;width:90px;height:105px;object-fit:contain;z-index:1;filter:drop-shadow(0 5px 4px #275c6420)}
.emblem-orbit{position:absolute;width:96px;height:96px;border:1px solid #a8cfd4;border-radius:50%;background:#d5eaeb;box-shadow:0 0 0 8px #e1eff0}
.game-welcome .intro h1{font-size:clamp(30px,4vw,48px);line-height:1.12;letter-spacing:-1.6px;margin:8px 0 12px;color:#16334d}
.game-welcome .intro p{font-size:16px;color:#526978}.game-welcome .season-badge{display:none}
.game-welcome .layout{display:block}.game-welcome .water-panel{display:none}.game-welcome #content{padding:0;min-height:0;border:0;background:transparent;box-shadow:none}
.welcome-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.welcome-choice{display:flex;flex-direction:column;align-items:center;text-align:center;padding:25px 30px 20px;border:1px solid #b9d5d9;border-radius:24px;background:#fffef9;min-width:0;position:relative}
.welcome-choice:before{content:'';position:absolute;left:calc(50% - 28px);top:-1px;width:56px;height:4px;border-radius:0 0 5px 5px;background:#458b9b}
.choice-symbol{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#e1eff0;color:#245c79}.choice-symbol .clean-icon{width:25px;height:25px}
.game-welcome .welcome-choice h2{font-size:27px;margin:12px 0 10px;letter-spacing:-.7px}.choice-lead{font-size:15px;line-height:1.55;color:#526978;margin:0 0 18px}
.welcome-route{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:73px;color:#245c79;font-size:13px;font-weight:650}.welcome-route span:nth-child(odd){display:grid;place-items:center;background:#e7f1f1;border-radius:12px;width:80px;height:51px}.welcome-route span:nth-child(even){color:#85a7af}
.welcome-choice .form{width:100%;max-width:none;margin:0;display:flex;flex-direction:column;flex:1}.welcome-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;text-align:left;min-height:73px}.welcome-fields>div{min-width:0}.welcome-fields label{margin:0 0 7px;font-size:11px}.welcome-fields input{padding:11px 12px;min-height:43px;background:#f4f8f7;font-size:13px;border-color:#bfd4d7}
.choice-note{font-size:11px;color:#607781;margin:10px 0 18px;min-height:17px;line-height:1.5}
.game-welcome .welcome-start{width:100%;display:flex;align-items:center;justify-content:center;gap:15px;min-height:49px;margin:0;font-size:15px;border-radius:12px;background:#16334d;color:white;box-shadow:none}.solo-choice .welcome-start{margin-top:auto}.game-welcome .welcome-start:hover{background:#245c79}.class-choice .welcome-start{background:#e5eff1;color:#16334d;border:1px solid #b4cdd3}.class-choice .welcome-start:hover{background:#d2e6e9}.welcome-start span{font-size:20px}
.choice-footnote{font-size:10px;line-height:1.5;color:#667d87;margin:12px 0 0;min-height:15px}.game-welcome footer{justify-content:center;text-align:center;margin-top:20px;padding:16px;font-size:10px;gap:16px}
@media(max-width:760px){.game-welcome main{padding:20px 16px 0}.game-welcome .intro h1{font-size:33px;letter-spacing:-1px;max-width:340px;margin:10px auto}.game-welcome .intro p{font-size:14px;max-width:290px;margin:auto;line-height:1.5}.game-welcome .welcome-emblem{width:80px;height:82px}.welcome-emblem img{width:72px;height:83px}.emblem-orbit{width:72px;height:72px}.welcome-options{grid-template-columns:1fr;gap:20px;max-width:490px;margin:auto}.welcome-choice{padding:23px 22px 20px}.game-welcome .welcome-choice h2{font-size:25px}.game-welcome footer{display:flex;flex-direction:column;gap:6px}.choice-lead{font-size:14px}.welcome-fields{gap:10px}}
@media(min-width:761px) and (max-height:760px){.game-welcome main{padding-top:14px}.game-welcome .welcome-emblem{height:72px}.welcome-emblem img{height:72px;width:65px}.emblem-orbit{width:64px;height:64px}.game-welcome .intro{margin-bottom:20px}.game-welcome .intro h1{font-size:38px}.welcome-choice{padding-top:19px;padding-bottom:16px}.choice-symbol{width:34px;height:34px}.game-welcome .welcome-choice h2{font-size:25px;margin-top:10px}.choice-lead{margin-bottom:13px}.game-welcome footer{margin-top:8px}}
.welcome-switch{border:0;background:transparent;color:#526978;font-size:11px;padding:10px 12px;margin:3px 0 -8px;text-decoration:underline;text-underline-offset:3px}.welcome-ranking .board{margin:0;padding:0;border:0;width:100%;text-align:left}.welcome-ranking .board .row{justify-content:center;gap:14px}.welcome-ranking .ranking{max-height:250px;overflow:auto}.welcome-ranking .choice-footnote{margin-top:auto;padding-top:18px}
/* A quiet HUD around a vivid, high-contrast playable world. */
.walking{background:#dce9e8}
.walking main{max-width:1280px}
.walking .layout{grid-template-columns:170px minmax(0,1fr);gap:20px;align-items:start}
.walking .water-panel{background:#15394b;color:#fff;border:0;border-radius:20px;padding:22px 16px;box-shadow:none}
.walking .water-panel h2{display:none}
.walking .water-panel .model-note{color:#b4d4dc;font-size:11px}
.walking .tank{border-color:#658c9a;background:#0b2639;height:200px}
.walking .tank-label{color:white;text-shadow:0 1px 3px #123248}
.walking .water{background:#087fa8}
.walking .tank-label strong{font-size:36px}
.walking .tank-label span{font-size:11px}
.journey-progress{border-top:1px solid #416171;padding-top:18px;display:grid;gap:10px}
.journey-progress>span{font-size:12px;color:#c0dce2}.journey-progress strong{font-size:29px}.journey-progress small{font-size:15px;color:#b4d4dc}
.journey-progress progress{width:100%;height:7px;accent-color:#4ee2c4;border:0;border-radius:8px;overflow:hidden}.journey-progress progress::-webkit-progress-bar{background:#3a5b6a}.journey-progress progress::-webkit-progress-value{background:#4ee2c4}
.walking #content{padding:20px;border:1px solid #b3cdcf;border-radius:22px;background:#f7fbf8;box-shadow:0 8px 28px #16334d0c;min-width:0}
.walking .adventure-heading{align-items:center;gap:12px;margin-bottom:14px}.walking .adventure-heading h2{font-size:25px;letter-spacing:-.7px}
.world-actions{display:flex;gap:8px;flex-wrap:wrap}.world-actions .quiet{font-size:12px;border-color:#a5bfc5;color:#15394b;background:white;min-height:40px}
.world-actions #water-sound[aria-pressed=true]{background:#15394b;border-color:#15394b;color:#b6ffeb}
.walking .route-strip{gap:6px;margin-bottom:14px}.walking .route-strip span{flex:1;justify-content:center;border:0;border-radius:8px;padding:8px 6px;font-size:11px;background:#e1ece9;color:#435f6c}.walking .route-strip .current{background:#15394b;color:#fff}.walking .route-strip .passed{background:#cce9dc;color:#205b45}
.walking .world-wrap{border:5px solid #15394b;border-radius:14px;overflow:hidden;background:#15394b}.walking #world{display:block;width:100%}
.walking .world-clock{top:9px;right:9px;background:#15394b;color:#fff;font-size:12px;border:1px solid #688792}
.walking .world-goal{background:transparent;border:0;padding:10px 0 0;margin:0;color:#47636b;font-size:12px;min-height:0}
.walking .world-controls{gap:14px;padding:8px 0;margin:0}.walking .world-controls p{font-size:11px;line-height:1.5;max-width:240px}.walking .world-controls>.primary{min-height:42px;font-size:12px}.walking .world-controls>.primary:disabled{background:#e1e9e8;color:#627878;opacity:1}
.walking .world-targets{gap:7px;border-top:1px solid #c9dad7;padding-top:13px}.walking .targets-label{display:none}.walking .world-targets button{background:#fff;border:1px solid #9eb9bf;color:#173c4e;border-radius:9px;font-size:12px;padding:9px 11px;min-height:40px}.walking .world-targets button.next{background:#ffe6a0;border-color:#c39423;color:#443411}.walking .world-targets button.complete{background:#e5f1ea;border-color:#c4d9ce;color:#406a56}.walking .world-targets [data-target=exit]{background:#15394b;color:#fff;border-color:#15394b}
.walking .task-dialog{border:2px solid #15394b;background:#fffdf6}.walking .walk-choice{border-color:#90afb9;background:#f0f7f5;color:#16334d}.walking .walk-choice:hover{border-color:#146c85;background:#d9eff0}.walking .big-equation{background:#deefed;border-color:#9ac6c2}
@media(max-width:760px){.walking main{padding:12px}.walking .layout{grid-template-columns:1fr;gap:10px}.walking .water-panel{display:flex;align-items:center;gap:16px;padding:12px 16px;border-radius:14px}.walking .tank{height:65px;width:110px;flex-shrink:0;margin:0}.walking .tank-label strong{font-size:25px}.walking .tank-label span{font-size:9px}.walking .water-panel .model-note{display:none}.walking #math-panel{flex:1}.journey-progress{border:0;padding:0;gap:4px}.journey-progress strong{font-size:22px}.journey-progress>span{font-size:10px}.walking #content{padding:12px;border-radius:15px}.walking .adventure-heading{align-items:flex-start;flex-direction:column;gap:8px}.walking .adventure-heading h2{font-size:23px}.world-actions{width:100%;justify-content:space-between}.walking .route-strip span{font-size:9px;padding:8px 3px;gap:3px}.walking .route-strip .clean-icon{width:13px;height:13px}.walking .world-controls{flex-wrap:wrap}.walking .world-controls p{display:none}.walking .world-wrap{border-width:3px}.walking .world-clock{font-size:9px;top:4px;right:4px;padding:3px 6px}.walking .world-targets button{font-size:11px;padding:8px}.walking .task-dialog{max-height:100%;overflow:auto}}
.walking .layout{grid-template-columns:minmax(0,1fr) 170px}
.walking .tank-label strong{color:#fff}
.walking .world-controls{background:transparent;border:0}
@media(max-width:760px){.walking .layout{grid-template-columns:1fr}.walking .water-panel,.walking .content{grid-column:auto;grid-row:auto}}

/* Reveal water only after a decision; celebrate the lowest-use option. */
.chosen-water{display:flex;align-items:center;gap:16px;padding:16px;margin:16px 0;background:#e4f3f1;border-radius:14px;color:#16334d;font-size:14px}.chosen-water strong{display:block;font-size:23px;margin-top:4px}.chosen-water .choice-water{flex:none;border:2px solid #468ca9;border-radius:5px 5px 12px 12px;overflow:hidden;width:28px;height:44px;line-height:0}
.choice-celebration{display:flex;justify-content:space-around;color:#c68b10;font-size:32px;pointer-events:none;height:46px;margin-top:12px}
.choice-celebration span:nth-child(even){color:#168d85;font-size:24px}
@media(prefers-reduced-motion:no-preference){.choice-celebration span{animation:choice-cheer 1.3s ease-out 2}.choice-celebration span:nth-child(2n){animation-delay:.15s}.choice-celebration span:nth-child(3){animation-delay:.3s}.chosen-water{animation:choice-reveal .3s ease-out}@keyframes choice-cheer{0%{transform:translateY(12px) scale(.3) rotate(-25deg);opacity:0}35%{opacity:1;transform:translateY(-8px) scale(1.25) rotate(15deg)}100%{transform:translateY(0) scale(1);opacity:1}}@keyframes choice-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}
