:root{color-scheme:light;--ink:#143647;--muted:#70808a;--coral:#f5673d;--coral-dark:#df4c24;--teal:#187b83;--ivory:#f7f3eb;--line:rgba(35,71,80,.11);--shadow:0 16px 50px rgba(35,71,80,.065);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 1% 15%,#e4f0ec 0,transparent 35%),radial-gradient(ellipse at 100% 50%,#fcf0e3 0,transparent 40%),#f6f3ec;color:var(--ink)}button,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #1c8fa0;outline-offset:4px}[hidden]{display:none!important}.app-shell{max-width:1230px;padding:0 38px;margin:0 auto}.masthead{height:106px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:15px;text-decoration:none;color:inherit}.brand strong{display:block;font-size:17px;letter-spacing:.09em;font-weight:850}.brand small{display:block;margin-top:4px;color:var(--muted);font-size:11px;letter-spacing:.03em}.brand-mark{position:relative;width:40px;height:42px;display:block}.brand-mark i{position:absolute;width:32px;height:20px;left:4px;transform:rotate(-25deg) skew(25deg);border-radius:3px;background:#e3dfd1;box-shadow:0 4px 0 #c9c8bd;top:1px;z-index:3}.brand-mark i:nth-child(2){top:12px;z-index:2;background:#f77650;box-shadow:0 4px 0 #df552e}.brand-mark i:nth-child(3){top:23px;z-index:1;background:#2b8d92;box-shadow:0 4px 0 #14646d}.header-actions{display:flex;align-items:center;gap:12px}.build-badge{font-size:9px;letter-spacing:.13em;font-weight:750;padding:7px 10px;border:1px solid #cadbd5;border-radius:6px;color:#548377}.icon-button{background:transparent;border:1px solid var(--line);border-radius:10px;height:36px;padding:0 11px;color:var(--ink);display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px}.icon-button>span:first-child{font-size:18px}.help-button{width:36px;padding:0;font-size:16px;font-weight:600}.main-grid{display:grid;grid-template-columns:minmax(0,1fr) 322px;gap:28px;margin-top:33px}.section-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin:0 0 22px}.eyebrow{font-size:9px;font-weight:800;letter-spacing:.14em;line-height:1.5;color:#69808a}.section-intro h1{font-size:30px;letter-spacing:-.045em;font-weight:760;margin:6px 0 0;line-height:1.15}.one-touch{display:flex;align-items:center;gap:7px;font-size:10px;color:#71868d;white-space:nowrap;padding-bottom:4px}.one-touch>span{width:6px;height:6px;background:#52a69a;border-radius:50%;box-shadow:0 0 0 3px #d8ebe3}.game-stage{height:650px;position:relative;background:#c8e8ef;border:1px solid rgba(255,255,255,.95);border-radius:27px;box-shadow:0 15px 40px #1b596d12,0 2px 5px #11354708;overflow:hidden;isolation:isolate;user-select:none;touch-action:manipulation}#tower-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.stage-vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#ffffff22 0,transparent 22%,transparent 65%,#f8f2e99c 100%);z-index:1}.game-hud{position:absolute;left:22px;right:22px;top:22px;display:flex;justify-content:space-between;align-items:flex-start;z-index:2}.nation-pill{display:flex;gap:10px;align-items:center;padding:11px 15px;background:#ffffffc9;border:1px solid #ffffffd1;border-radius:13px;box-shadow:0 3px 10px #11354706;backdrop-filter:blur(12px)}.flag{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:28px;line-height:1}.nation-pill small{display:block;font-size:8px;letter-spacing:.12em;font-weight:750;color:#67838b;margin-bottom:3px}.nation-pill strong{font-size:13px}.timer-pill{display:flex;align-items:center;gap:6px;padding:11px 12px;background:#ffffffb8;border-radius:12px;color:#4b6a79;font-size:11px}.timer-pill strong{font-size:18px;font-variant-numeric:tabular-nums;font-weight:700}.timer-dot{width:5px;height:5px;border-radius:50%;background:#41949b}.timer-pill.urgent{color:#cb5938;background:#fff1e3}.timer-pill.urgent .timer-dot{background:#cb5938}.height-display{position:absolute;left:50%;top:90px;transform:translateX(-50%);z-index:2;display:flex;flex-direction:column;align-items:center;pointer-events:none}.height-display>strong{font-size:64px;letter-spacing:-.06em;line-height:1;font-weight:800;font-variant-numeric:tabular-nums;color:#113d51;text-shadow:0 2px 18px #ffffff4d}.height-display>span{margin-top:5px;font-size:9px;letter-spacing:.2em;font-weight:750}.run-score{margin-top:10px;background:#ffffffad;border:1px solid #ffffffbb;border-radius:20px;padding:5px 10px;font-size:11px;font-weight:600;color:#2e7e83;white-space:nowrap}.start-card{position:absolute;z-index:3;top:39%;left:50%;transform:translateX(-50%);width:260px;padding:22px 18px;background:#fffdf5ed;border:1px solid #fff;border-radius:20px;box-shadow:0 12px 45px #1b4f6522;text-align:center;backdrop-filter:blur(15px)}.small-spark{color:#eaa34b;font-size:24px}.start-card h2{margin:8px 0;font-size:17px;letter-spacing:-.03em}.start-card p{font-size:12px;line-height:1.65;margin:0;color:#6b7c84}.game-controls{position:absolute;z-index:4;bottom:18px;left:36px;right:36px}.boosters{display:flex;align-items:center;justify-content:center;gap:9px;margin-bottom:11px}.booster-button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:123px;padding:10px 13px;background:#fffdf3e8;border:1px solid #fff;border-radius:13px;box-shadow:0 4px 12px #1436470a;font-size:11px;color:var(--ink);font-weight:650;transition:background .15s,transform .15s,border-color .15s}.booster-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.booster-button b{display:inline-flex;min-width:19px;height:19px;align-items:center;justify-content:center;margin-left:4px;border-radius:5px;background:#f1eee4;color:#67808a;font-size:10px}.booster-button[aria-pressed=true]{border-color:#dfb86b;background:#fff1c9;color:#8e620c;box-shadow:0 0 0 2px #e4bd6d26}.booster-button:disabled{opacity:.5}.cube-icon{font-size:21px;color:#e7ad4e}.primary-action{width:100%;min-height:63px;border-radius:16px;border:1px solid #ffb28a;background:linear-gradient(180deg,#ff8154,#f26436);box-shadow:0 5px 0 #d9502a,0 8px 20px #dc613a25,inset 0 1px 0 #ffbd97;display:flex;align-items:center;justify-content:center;gap:18px;color:#fffaf2;font-size:19px;letter-spacing:.015em;font-weight:760;transition:transform .08s,box-shadow .08s;touch-action:manipulation}.primary-action span{font-size:21px;font-weight:400;opacity:.8}.primary-action:active:not(:disabled){transform:translateY(3px);box-shadow:0 2px 0 #d9502a,0 3px 12px #dc613a20}.primary-action:disabled{filter:saturate(.6);opacity:.7}.control-hint{text-align:center;font-size:10px;letter-spacing:.01em;margin-top:13px;color:#466370;min-height:14px;text-shadow:0 1px 8px #fff}.under-game{display:flex;justify-content:space-between;font-size:9px;color:#7f8e94;margin:13px 4px 0;gap:12px}.under-game>span:first-child{white-space:nowrap}kbd{font:inherit;font-size:8px;background:#fffaf2;border:1px solid #e4dfd4;border-radius:4px;padding:2px 5px;margin-right:4px}.side-column{padding-top:4px;display:flex;flex-direction:column;gap:17px}.contribution-card,.materials-card,.history-card{border:1px solid #ffffffd6;background:#fffdf8de;box-shadow:var(--shadow);border-radius:21px;padding:22px}.card-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.card-title .eyebrow{font-size:8px}.local-label{font-size:8px;color:#8c9b9e;white-space:nowrap}.country-label{display:block;margin-top:24px;font-size:11px;color:#7a8c93}.country-select-wrap{position:relative;display:flex;gap:10px;align-items:center;margin-top:10px;background:#f5f4ec;border:1px solid #e9e9de;padding:0 13px;border-radius:12px}.country-select-wrap .flag{font-size:25px}.country-select-wrap select{width:100%;appearance:none;border:0;background:transparent;color:#284958;min-height:49px;font-size:14px;font-weight:650;cursor:pointer;padding:0 15px 0 0;outline-offset:0}.country-select-wrap:has(select:disabled){opacity:.7}.select-chevron{position:absolute;right:13px;pointer-events:none;font-size:20px;line-height:1;color:#7d9299}.contribution-value{margin-top:20px;display:flex;flex-direction:column}.contribution-value>strong{font-size:43px;letter-spacing:-.055em;font-weight:740;font-variant-numeric:tabular-nums}.contribution-value>span{font-size:11px;color:#7a9097;margin-top:2px}.personal-stats{display:grid;grid-template-columns:1.3fr 1fr;gap:15px;margin:22px 0 18px;padding-top:19px;border-top:1px solid var(--line)}.personal-stats>div{display:flex;flex-direction:column;gap:7px}.personal-stats>div+div{border-left:1px solid var(--line);padding-left:17px}.personal-stats span{font-size:10px;color:#7b8a90}.personal-stats strong{font-size:23px;font-weight:650;color:#234c5b;line-height:1}.personal-stats strong span{font-size:inherit;color:inherit}.personal-stats small{font-size:10px;color:#82969a;font-weight:500}.contribution-foot{font-size:8px;color:#7a9296;display:flex;align-items:center;gap:7px}.status-dot{width:5px;height:5px;background:#6eaa95;border-radius:50%;flex:none}.materials-card{background:linear-gradient(140deg,#eff5ed,#fff8e8)}.star-icon{color:#d5a147;font-size:18px;line-height:1}.materials-card h2{font-size:17px;letter-spacing:-.035em;line-height:1.3;margin:13px 0 8px}.materials-card p{font-size:10px;color:#7c8b89;line-height:1.7;margin:0}.materials-card p strong{font-weight:600;color:#8d7b46}.material-row{display:flex;justify-content:space-around;align-items:center;height:58px;margin-top:15px}.material-block{position:relative;width:51px;height:27px;transform:rotate(-24deg) skew(24deg);border-radius:3px;box-shadow:-2px 8px 0 #cbc7b8,0 14px 14px #163b3b17}.material-block:after{content:"";position:absolute;left:0;right:0;bottom:1px;height:1px;background:#a1e3e2;box-shadow:0 1px 2px #4ec1c144}.ceramic{background:repeating-linear-gradient(25deg,transparent 0 13px,#c4bd9d4a 13px 14px,transparent 14px 23px),#ece8d9}.teal{background:linear-gradient(140deg,#438d91,#196273);box-shadow:-2px 8px 0 #134752,0 14px 14px #163b3b17}.gold{background:repeating-linear-gradient(70deg,transparent 0 10px,#fff1b065 10px 11px,transparent 11px 15px),linear-gradient(125deg,#f9d681,#eab44b);box-shadow:-2px 8px 0 #c59338,0 14px 14px #163b3b17}.material-labels{display:flex;justify-content:space-around;font-size:8px;color:#81908a}.history-card{padding:19px 22px}.empty-history{font-size:11px;color:#93a09f;line-height:1.7;margin:17px 0 0}.history-row{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:8px;padding-top:12px;margin-top:12px;border-top:1px solid var(--line)}.history-row .flag{font-size:21px}.history-row strong{font-size:12px;font-weight:650}.history-row small{display:block;color:#91a09e;font-size:8px;margin-top:3px}.history-points{font-size:12px;font-weight:650;color:#378c8c}.test-tools{padding:0 8px;display:flex;align-items:center;justify-content:space-between;gap:12px}.test-tools strong{font-size:10px;font-weight:650;display:block;color:#6b838a}.test-tools span{font-size:8px;color:#8d9b9f;margin-top:4px;display:block}.test-tools button{border:1px solid #d9dfd5;background:#fcfaf2;border-radius:8px;font-size:9px;padding:9px;color:#67848a;white-space:nowrap}.site-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:30px;min-height:66px;font-size:9px;letter-spacing:.03em;color:#91a09f}.footer-dot{padding:0 9px;color:#bbbfba}.site-footer button{font-size:9px;background:none;border:0;padding:8px 0 8px 10px;color:#7e9297}.perfect-toast{position:absolute;z-index:5;top:218px;left:50%;transform:translate(-50%,8px);background:#f4fffbeb;border:1px solid #fff;color:#217d7f;padding:8px 13px;border-radius:30px;font-size:11px;letter-spacing:.025em;font-weight:700;white-space:nowrap;opacity:0;transition:opacity .18s,transform .18s;pointer-events:none;box-shadow:0 4px 16px #266b6e16}.perfect-toast.visible{opacity:1;transform:translate(-50%,0)}.result-card{position:absolute;top:32%;left:50%;transform:translateX(-50%);z-index:6;width:min(84%,330px);background:#fffdf6f7;border:1px solid white;box-shadow:0 14px 60px #103b4a30;border-radius:22px;padding:24px 23px 18px;text-align:center;backdrop-filter:blur(16px)}.result-card .eyebrow{font-size:8px}.result-card h2{font-size:23px;letter-spacing:-.04em;margin:8px 0 19px}.result-metrics{display:flex;justify-content:center;gap:32px}.result-metrics>div{display:flex;flex-direction:column;gap:3px}.result-metrics strong{font-size:31px;letter-spacing:-.045em;font-weight:740}.result-metrics>div:last-child strong{color:#de7543}.result-metrics span{font-size:9px;color:#8a989c}.result-card p{font-size:10px;line-height:1.65;color:#7f9195;margin:13px 0 16px}.secondary-button{min-height:42px;border-radius:11px;border:1px solid #bed5cc;background:#eaf3e9;color:#317775;font-size:12px;font-weight:650;padding:10px 19px}.revive-button{width:100%}.text-button{display:block;margin:8px auto 0;background:none;border:0;padding:9px 10px;color:#85969b;font-size:10px}.pause-chip{position:absolute;z-index:7;left:50%;top:30%;transform:translateX(-50%);background:#fffcf6de;padding:8px 15px;border-radius:20px;font-size:11px}.notice{position:fixed;left:50%;bottom:24px;transform:translate(-50%,15px);border-radius:13px;padding:13px 20px;background:#193d4cef;color:#fff7e9;font-size:12px;line-height:1.45;z-index:100;max-width:calc(100% - 30px);box-shadow:0 8px 40px #17405025;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.notice.visible{opacity:1;transform:translate(-50%,0)}dialog{background:#fffdf5;border:1px solid white;border-radius:23px;padding:33px;max-width:410px;width:calc(100% - 34px);color:var(--ink);box-shadow:0 25px 90px #14364733}dialog::backdrop{background:#102f4355;backdrop-filter:blur(5px)}dialog h2{font-size:25px;letter-spacing:-.045em;margin:9px 0 18px}dialog p,dialog li{font-size:13px;line-height:1.7;color:#6c858e}dialog ul{padding-left:19px}dialog .secondary-button{width:100%;margin-top:12px}.dialog-close{position:absolute;right:13px;top:11px;border:0;background:none;font-size:26px;color:#87a0a6;padding:3px 8px}.dialog-emphasis{background:#eef4e9;border-radius:12px;padding:13px;font-size:12px;line-height:1.6;color:#4c7b79}
.start-card{top:34%;width:240px;padding:13px 16px;background:#fffdf5e8}.start-card .small-spark{display:none}.start-card h2{font-size:14px;margin:3px 0 6px}.start-card p{font-size:10px;line-height:1.5}
@media(min-width:1600px){.app-shell{max-width:1300px}.game-stage{height:700px}.main-grid{grid-template-columns:minmax(0,1fr) 342px;gap:32px}}
@media(max-width:1000px){.app-shell{padding:0 24px}.main-grid{grid-template-columns:minmax(0,1fr) 290px;gap:20px}.game-stage{height:620px}.game-controls{left:24px;right:24px}.section-intro h1{font-size:26px}.one-touch{display:none}.contribution-card,.materials-card,.history-card{padding:19px}.country-label{margin-top:17px}.under-game{font-size:8px}}
@media(max-width:760px){.app-shell{padding:0 18px}.masthead{height:80px}.brand{gap:11px}.brand strong{font-size:13px}.brand small{font-size:9px}.brand-mark{transform:scale(.83);transform-origin:left center;width:32px}.header-actions{gap:7px}.build-badge{display:none}.icon-button{width:33px;height:33px;padding:0}.sound-label{display:none}.main-grid{grid-template-columns:1fr;margin-top:23px;gap:23px}.section-intro{margin-bottom:16px}.section-intro h1{font-size:27px}.eyebrow{font-size:8px}.one-touch{display:flex;font-size:9px}.game-stage{height:620px;max-height:none;border-radius:23px}.game-hud{left:16px;right:16px;top:16px}.game-controls{left:22px;right:22px;bottom:17px}.side-column{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:0}.contribution-card{grid-row:span 2}.history-card{grid-column:1/-1}.test-tools{grid-column:1/-1}.materials-card h2{font-size:16px}.card-title{align-items:flex-start;flex-wrap:wrap}.country-select-wrap{padding:0 10px}.country-select-wrap select{font-size:12px}.country-label{font-size:10px}.personal-stats{gap:8px;grid-template-columns:1fr 1fr}.personal-stats>div+div{padding-left:10px}.personal-stats span{font-size:9px}.personal-stats strong{font-size:21px}.contribution-foot{font-size:7px;line-height:1.6}.material-row{height:50px}.material-block{width:31px;height:20px}.material-labels{font-size:7px}.history-list{display:flex;gap:18px}.history-row{flex:1;grid-template-columns:20px 1fr;gap:6px}.history-points{grid-column:2}.height-display{top:86px}.height-display>strong{font-size:62px}.perfect-toast{top:206px}.site-footer{font-size:8px;margin-top:26px}.under-game{margin-top:11px;font-size:8px}}
@media(max-width:420px){.app-shell{padding:0 12px}.game-stage{height:580px}.game-controls{left:19px;right:19px}.primary-action{min-height:58px;font-size:18px}.booster-button{padding:9px 10px;min-width:114px;font-size:10px}.game-hud{left:13px;right:13px;top:13px}.nation-pill{padding:9px 11px;gap:8px}.nation-pill .flag{font-size:24px}.nation-pill strong{font-size:12px}.nation-pill small{font-size:7px}.timer-pill{padding:10px}.section-intro h1{font-size:25px}.one-touch{font-size:8px}.side-column{gap:11px}.contribution-card,.materials-card,.history-card{padding:16px;border-radius:18px}.contribution-value>strong{font-size:37px}.materials-card p{font-size:9px}.material-row{margin-top:9px}.country-select-wrap .flag{font-size:20px}.result-card{top:29%;padding:21px 20px 15px}.result-card h2{font-size:21px}.result-metrics strong{font-size:28px}.under-game{flex-wrap:wrap;gap:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}.primary-action:active:not(:disabled){transform:none}}

/* 0.2: a tactile control with immediate depression and a quiet, readable stage. */
.game-stage{box-shadow:0 22px 60px #24546912,0 2px 6px #1135470a,inset 0 0 0 1px #fff9}
.game-hud{pointer-events:none}
.height-display>strong{transform-origin:center 70%;font-variant-numeric:tabular-nums}
.start-card{background:linear-gradient(135deg,#fffef9f5,#f6fbf5eb);box-shadow:0 12px 32px #244c5b18,inset 0 1px 0 #fff}
.game-controls{padding-bottom:2px}
.action-wrap{position:relative;border-radius:18px;background:#d54a25;box-shadow:0 12px 25px #b74c2820}
.primary-action{position:relative;min-height:65px;border-radius:18px;border:1px solid #ffc7a0;background:linear-gradient(175deg,#ff9a68 0%,#ff7548 43%,#ed582f 100%);box-shadow:0 5px 0 #ce4826,inset 0 2px 0 #ffd9b9a6,inset 0 -2px 0 #d94a2380;color:#fffef7;text-shadow:0 1px 1px #af3b2a40;transition:transform 100ms ease-out,box-shadow 100ms ease-out,filter 100ms ease-out;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;will-change:transform}
.primary-action::before{content:"";position:absolute;inset:5px 7px auto;height:35%;border-radius:13px 13px 30px 30px;background:linear-gradient(180deg,#fff2,transparent);pointer-events:none}
.primary-action.is-pressed:not(:disabled),.primary-action:active:not(:disabled){transform:translateY(4px);box-shadow:0 1px 0 #ce4826,inset 0 1px 0 #ffc69f88,inset 0 2px 10px #ac3e191c;filter:brightness(.97);transition:none}
.primary-action:disabled{opacity:.75;box-shadow:0 3px 0 #c35a39;transform:none}
.input-feedback{position:absolute;z-index:2;right:15px;top:50%;padding:5px 8px;border-radius:7px;background:#ffeddaed;color:#b43f20;font-size:10px;font-weight:800;letter-spacing:.015em;opacity:0;transform:translateY(calc(-50% + 4px));pointer-events:none;transition:opacity 100ms ease,transform 100ms ease}
.input-feedback.visible{opacity:1;transform:translateY(-50%)}
.input-feedback[data-kind="perfect"]{background:#dff9eb;color:#287d73}
.input-feedback[data-kind="miss"]{background:#ffe5d8;color:#b04b31}
.booster-button{border:1px solid #fffffff2;box-shadow:0 4px 10px #153e4b0c,inset 0 1px 0 white;background:linear-gradient(145deg,#fffffff5,#f4f5eae8)}
.booster-button:active:not(:disabled){transform:translateY(1px);transition:none}
.booster-button[aria-pressed=true]{background:linear-gradient(145deg,#fff7dc,#ffe8a9)}
.control-hint{font-size:10px;font-weight:550;color:#365b68}
.game-stage[data-phase="playing"] .start-card{pointer-events:none}
@media(hover:hover){.primary-action:hover:not(:disabled):not(.is-pressed){filter:brightness(1.035)}}
@media(max-width:420px){.primary-action{min-height:60px}.input-feedback{right:10px;font-size:9px;padding:5px 7px}}
@media(prefers-reduced-motion:reduce){.primary-action.is-pressed:not(:disabled),.primary-action:active:not(:disabled){transform:none}.input-feedback,.input-feedback.visible{transform:translateY(-50%)}}

.test-tools{flex-wrap:wrap}
.test-tool-actions{display:flex;gap:6px;flex-shrink:0;margin-left:auto}
.test-tools button:disabled{opacity:.45}
.test-tools button:not(:disabled):hover{background:#edf3e9;border-color:#b5ccc1}
.test-tools button:not(:disabled):active{transform:translateY(1px)}

/* 0.3: the scene, feedback and controls each have their own clear space. */
.game-stage{border-color:#ffffff;box-shadow:0 24px 58px #24546913,0 2px 6px #11354708,inset 0 0 0 1px #fffc}
.stage-vignette{background:linear-gradient(180deg,#ffffff26 0,transparent 20%,transparent 63%,#f5f1e740 80%,#f7f4eb90 100%)}
.game-hud{top:20px;left:20px;right:20px}
.nation-pill{border-radius:14px;background:#fffef5d9;box-shadow:0 3px 12px #193c4b08}
.timer-pill{min-height:45px;border:1px solid #ffffff9c;background:#fffef5c7}
.height-display{top:66px}
.height-display>strong{font-size:54px;color:#173f50;text-shadow:0 2px 14px #ffffff70}
.height-display>span{margin-top:4px;font-size:9px;letter-spacing:.17em}
.run-score{margin-top:7px;padding:4px 11px;background:#ffffffbd;border-color:#ffffffd9;font-size:11px}
.start-card{top:166px;width:250px;padding:10px 16px;border-radius:15px;box-shadow:0 8px 25px #244c5b13;backdrop-filter:blur(9px)}
.start-card h2{margin:0 0 4px;font-size:13px}
.start-card p{font-size:10px;line-height:1.45;color:#68828c}
.perfect-toast,.record-toast{top:172px;max-width:calc(100% - 34px);text-align:center;line-height:1.3}
.perfect-toast{padding:8px 15px;background:#eafff4f5;border-color:#b2f4d5;color:#1d796f;box-shadow:0 0 0 3px #aff6d438,0 5px 20px #237b6a16}
.record-toast{position:absolute;z-index:5;left:50%;padding:8px 16px;border:1px solid #f7d995;border-radius:30px;background:linear-gradient(120deg,#fff9d9f7,#ffefb8f5);box-shadow:0 0 0 3px #fff2bd40,0 6px 24px #9b6a171c;color:#805516;font-size:11px;font-weight:800;letter-spacing:.015em;white-space:normal;opacity:0;transform:translate(-50%,7px);transition:opacity .18s,transform .18s;pointer-events:none}
.record-toast{width:max-content}
.record-toast.visible{opacity:1;transform:translate(-50%,0)}
.game-stage:has(.record-toast.visible) .perfect-toast{opacity:0}
.game-controls{left:0;right:0;bottom:0;padding:18px 32px 15px;border-top:1px solid #ffffffe6;border-radius:0 0 26px 26px;background:linear-gradient(180deg,#fbfcf4c4 0%,#fbf8eef5 36%,#f8f4eafa 100%);box-shadow:0 -12px 32px #e7efe11a;backdrop-filter:blur(9px)}
.boosters{gap:10px;margin-bottom:12px}
.booster-button{min-height:40px;padding:8px 14px;border-color:#dfe9de;background:linear-gradient(145deg,#fffef7,#f0f5eb);box-shadow:0 2px 5px #153e4b08,inset 0 1px 0 white;color:#456b75}
.booster-button b{background:#e8efe4;color:#4e767a}
.booster-button:disabled{opacity:.55}
.control-hint{margin-top:12px;font-size:10px;line-height:1.4;min-height:14px;color:#55747b;text-shadow:none}
.primary-action{min-height:65px;font-size:18px;font-weight:800;letter-spacing:.025em}
.action-wrap{box-shadow:0 9px 20px #b74c2820}
.contribution-card,.history-card{border-color:#ffffffed;background:#fffef9ed}
.contribution-card{box-shadow:0 12px 38px #31556609}
.country-label{margin-top:20px;color:#667f88}
.country-select-wrap{border-color:#e0e8dc;background:#f3f6ee}
.contribution-value>strong{font-size:42px}
.contribution-value>span{color:#748b90}
.personal-stats{grid-template-columns:1fr 1fr;gap:9px;margin:18px 0 13px;padding-top:17px}
.personal-stats>div,.personal-stats>div+div{min-width:0;gap:7px;padding:12px 10px;border:1px solid #e6ede3;border-radius:12px;background:linear-gradient(145deg,#f3f8f0,#fcfbf2)}
.personal-stats>div+div{background:linear-gradient(145deg,#fff9e6,#fdfbf2);border-color:#f0e6c8}
.personal-stats>div>span{font-size:9px;line-height:1.4;color:#66818a}
.personal-stats strong{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px;font-size:25px;line-height:1.1;font-variant-numeric:tabular-nums}
.personal-stats strong>span{font-size:inherit;color:inherit}
.personal-stats small{font-size:9px;font-weight:500;color:#7b9499}
.personal-stats>div>.record-detail{font-size:8px;color:#94a29c;line-height:1.3}
.profile-attempts{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 1px 13px;font-size:10px;color:#799096}
.profile-attempts strong{font-size:12px;font-weight:700;color:#446c76;font-variant-numeric:tabular-nums}
.contribution-foot{padding-top:11px;border-top:1px solid var(--line);line-height:1.5}
.materials-card{background:linear-gradient(135deg,#eff6ee,#fff7e4);border-color:#ffffffd9}
.materials-card h2{font-size:18px;color:#2f5260}
.material-row{margin-top:17px;height:62px}
.material-block{border:1px solid #fff9;box-shadow:-2px 8px 0 #c7c6b5,0 15px 12px #163b3b18}
.material-block.teal{box-shadow:-2px 8px 0 #1b5967,0 15px 12px #163b3b18}
.material-block.gold{box-shadow:-2px 8px 0 #b98d37,0 15px 12px #163b3b18}
.result-card{top:26%;border-color:#fffef5;background:linear-gradient(145deg,#fffef9fc,#f6faeffa);box-shadow:0 18px 60px #103b4a26}
.result-card h2{margin-bottom:16px}
.result-records{margin:14px 0 0;padding:9px 12px;border:1px solid #efd99f;border-radius:10px;background:#fff3c9;color:#8a6123;font-size:11px;font-weight:750;line-height:1.4}
.result-card:has(.result-records:not([hidden])){border-color:#f3dc9c;box-shadow:0 0 0 4px #fff5ce50,0 18px 60px #86601c20}
@media(max-width:1000px){.game-controls{padding-right:24px;padding-left:24px}.personal-stats>div,.personal-stats>div+div{padding:10px 8px}.personal-stats strong{font-size:23px}}
@media(max-width:760px){
  .game-hud{top:15px;left:15px;right:15px}
  .height-display{top:65px}.height-display>strong{font-size:52px}
  .start-card{top:164px}.perfect-toast,.record-toast{top:169px}
  .game-controls{padding:16px 22px 14px;border-radius:0 0 22px 22px}
  .side-column{grid-template-columns:1fr 1fr;gap:14px}
  .contribution-card{grid-column:1/-1;grid-row:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:18px}
  .contribution-card>.card-title{grid-column:1/-1}.country-label{grid-column:1;grid-row:2;margin-top:17px}
  .country-select-wrap{grid-column:1;grid-row:3;margin-top:7px;align-self:start}
  .contribution-value{grid-column:2;grid-row:2/4;margin-top:15px;justify-content:center;padding-left:17px;border-left:1px solid var(--line)}
  .contribution-value>strong{font-size:36px}.contribution-value>span{font-size:10px;line-height:1.4}
  .personal-stats{grid-column:1/-1;margin:15px 0 12px;padding-top:14px;gap:12px}
  .personal-stats>div,.personal-stats>div+div{padding:12px}.personal-stats strong{font-size:25px}
  .personal-stats>div>span{font-size:10px}.personal-stats>div>.record-detail{font-size:9px}
  .profile-attempts{grid-column:1/-1;padding-bottom:10px}.contribution-foot{grid-column:1/-1;font-size:8px}
  .materials-card{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:18px;padding:18px}
  .materials-card>.card-title{grid-column:1/-1}.materials-card h2{grid-column:1;font-size:16px;margin:12px 0 7px}.materials-card p{grid-column:1;font-size:10px;line-height:1.6}
  .material-row{grid-column:2;grid-row:2/4;margin-top:4px;height:76px;align-self:center}.material-block{width:31px;height:23px}
  .material-labels{grid-column:2;font-size:7px;margin-top:-1px;align-self:end}.history-card{grid-column:1/-1}
  .history-list{gap:12px}.history-row strong{font-size:11px}.result-card{top:25%}
}
@media(max-width:420px){
  .game-hud{top:13px;left:13px;right:13px}.height-display{top:62px}.height-display>strong{font-size:50px}
  .nation-pill{padding:9px 10px}.timer-pill{min-height:42px;padding:9px 10px}
  .game-controls{padding:14px 19px 13px}.boosters{gap:9px;margin-bottom:11px}.booster-button{min-height:38px;padding:8px 11px;min-width:112px}
  .primary-action{min-height:60px;font-size:17px}.control-hint{font-size:9px;margin-top:12px}
  .start-card{top:162px;width:235px;padding:9px 14px}.perfect-toast,.record-toast{top:165px;font-size:10px;padding:8px 13px}
  .side-column{gap:12px}.contribution-card{column-gap:13px}.country-select-wrap{padding:0 9px}.country-select-wrap select{font-size:12px;min-height:44px}
  .contribution-value{padding-left:13px}.contribution-value>strong{font-size:32px}.personal-stats{gap:9px}.personal-stats>div,.personal-stats>div+div{padding:11px 10px}
  .materials-card{padding:16px;column-gap:12px}.materials-card h2{font-size:15px}.materials-card p{font-size:9px}.material-block{width:25px;height:20px}
  .result-card{top:24%;padding:20px 19px 15px}.result-card h2{font-size:21px;margin-bottom:14px}.result-records{font-size:10px;padding:8px 10px}
}
@media(max-width:350px){
  .game-controls{padding-left:15px;padding-right:15px}.one-touch{display:none}.nation-pill .flag{font-size:20px}.nation-pill strong{font-size:11px}
  .personal-stats strong{font-size:22px}.personal-stats>div>span{font-size:9px}.materials-card{column-gap:8px}.material-block{width:22px}
}
@media(prefers-reduced-motion:reduce){.record-toast,.record-toast.visible{transform:translate(-50%,0);transition:none}}

/* The upper atmosphere keeps the same layout; the counter gains its own contrast. */
.height-display::before{content:"";position:absolute;z-index:-1;inset:-6px -12px;border-radius:16px;background:#102541b8;border:1px solid #d1e9ff24;opacity:0;transition:opacity .35s;pointer-events:none}
.height-display>strong,.height-display>span{transition:color .35s,text-shadow .35s}
.game-stage[data-sky="night"] .height-display::before{opacity:1}
.game-stage[data-sky="night"] .height-display>strong{color:#fff8e9;text-shadow:0 2px 14px #06112799}
.game-stage[data-sky="night"] .height-display>span{color:#dbeaf5;text-shadow:0 1px 5px #06112799}
.game-stage[data-sky="night"] .run-score{background:#fffdf5f2;border-color:#d9eeff;color:#24596a}
.game-stage[data-sky="night"] .stage-vignette{background:linear-gradient(180deg,#0a132818,transparent 22%,transparent 66%,#1634540d 100%)}
@media(max-width:420px){.height-display::before{inset:7px -8px 0}}
@media(prefers-reduced-motion:reduce){.height-display::before,.height-display>strong,.height-display>span{transition:none}}

/* A compact third record spans the existing two-column stats layout. */
.personal-stats>.combo-stat{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 12px;padding:10px 12px;border-color:#d6e8dd;background:linear-gradient(125deg,#edf7ed,#f6faf0)}
.personal-stats>.combo-stat>strong{grid-column:2;grid-row:1/3;justify-content:flex-end;gap:5px;max-width:100%;font-size:24px;color:#2e7776}
.personal-stats>.combo-stat>.record-detail{grid-column:1;color:#78988e}
.personal-stats>.combo-stat small{font-size:10px;color:#72948d}
.result-combo{margin:9px 0 0;font-size:10px;line-height:1.4;font-weight:650;color:#43817a;overflow-wrap:anywhere}
@media(max-width:350px){.personal-stats>.combo-stat{gap:3px 9px;padding:10px}.personal-stats>.combo-stat>strong{font-size:22px}}

/* 0.6: score rewards use the existing feedback space, with a quiet gold accent. */
.perfect-toast{width:max-content;white-space:normal;text-wrap:balance}
.perfect-toast[data-kind="gold"]{background:#fff4cf;border-color:#eac478;color:#78511c;box-shadow:0 0 0 3px #f8da8c38,0 5px 20px #7c57171c}
.input-feedback[data-kind="gold"]{background:#fff1bb;color:#79521b;box-shadow:inset 0 0 0 1px #e8c578}
.control-hint[data-gold="true"]{background:#fff3d3;color:#79551f;border-radius:6px;box-shadow:0 0 0 2px #fff3d3;font-weight:700}
.scoring-card{display:block}
.scoring-card h2{font-size:17px;line-height:1.35}
.scoring-card .gold-rule{font-size:11px;line-height:1.65;color:#5d7776}
.scoring-card p strong{color:#815b24;font-weight:700}
.streak-bonus-table{width:100%;margin:14px 0 8px;border-collapse:collapse;table-layout:fixed;font-size:11px;text-align:center;font-variant-numeric:tabular-nums}
.streak-bonus-table caption{text-align:left;font-size:10px;font-weight:650;line-height:1.5;color:#587977;padding-bottom:8px}
.streak-bonus-table th,.streak-bonus-table td{padding:7px 5px;border-top:1px solid #dae5d8}
.streak-bonus-table th:first-child{width:31%;text-align:left;font-size:10px;font-weight:550;color:#667f7a}
.streak-bonus-table thead th:not(:first-child){font-weight:650;color:#3c716d}
.streak-bonus-table tbody td{font-size:13px;font-weight:750;color:#7f5b25;background:#fff6df}
.scoring-card .score-footnote{font-size:10px;line-height:1.65;color:#6a807b}
.scoring-card .material-row{height:48px;margin-top:13px}
.scoring-card .material-block{width:34px;height:22px}
.scoring-card .material-labels{margin-top:3px;font-size:8px}
@media(max-width:760px){.scoring-card{grid-column:1/-1}.scoring-card h2{font-size:17px}.scoring-card .gold-rule{font-size:12px}.scoring-card .score-footnote{font-size:11px}.streak-bonus-table{font-size:12px}.streak-bonus-table caption,.streak-bonus-table th:first-child{font-size:11px}}
@media(max-width:350px){.scoring-card h2{font-size:16px}.scoring-card .gold-rule{font-size:11px}}

/* 0.7: secondary controls stay away from placement; progress lives in the profile. */
.game-hud{gap:10px}
.nation-pill{min-width:0;max-width:calc(100% - 168px)}
.nation-pill>span:last-child{min-width:0}
.nation-pill strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hud-tools{display:flex;align-items:flex-start;gap:7px;flex-shrink:0;pointer-events:auto}
.pause-button{min-height:45px;min-width:44px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 11px;border:1px solid #ffffffe0;border-radius:12px;background:#fffef5e8;box-shadow:0 3px 12px #193c4b08;color:#426d76;font-size:10px;font-weight:700;touch-action:manipulation}
.pause-button:disabled{opacity:.48}
.pause-button:active:not(:disabled){background:#e8f1e9}
.pause-symbol{position:relative;display:block;width:12px;height:14px;flex-shrink:0}
.pause-symbol::before,.pause-symbol::after{content:"";position:absolute;top:1px;bottom:1px;width:3px;border-radius:1px;background:currentColor}
.pause-symbol::before{left:1px}.pause-symbol::after{right:1px}
.game-stage[data-phase="paused"] .pause-symbol::before{left:2px;top:1px;bottom:auto;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:9px solid currentColor;border-radius:0;background:none}
.game-stage[data-phase="paused"] .pause-symbol::after{display:none}
.timer-pill[data-unlimited="true"]{background:#eaf8f0;border-color:#badfd0;color:#247b73}
.timer-pill[data-unlimited="true"] .timer-dot{background:#45ab91}
.timer-pill[data-unlimited="true"] #time-value{font-size:25px;line-height:1}
.timer-pill[data-unlimited="true"] #timer-unit{max-width:34px;font-size:8px;line-height:1.2}
.manual-pause-panel{position:absolute;z-index:8;top:27%;left:50%;transform:translateX(-50%);width:min(84%,300px);padding:24px 23px 15px;border:1px solid #fffef7;border-radius:22px;background:linear-gradient(145deg,#fffef9fc,#f2f8eefc);box-shadow:0 18px 60px #173f4b29;text-align:center;backdrop-filter:blur(14px)}
.manual-pause-panel h2{margin:8px 0;font-size:27px;letter-spacing:-.035em}
.manual-pause-panel p{margin:0 0 20px;font-size:12px;line-height:1.6;color:#738c91}
.manual-pause-panel .secondary-button,.next-run-button{width:100%}
.manual-pause-panel .text-button{margin:9px auto 0;min-height:36px}
.next-run-button{margin:2px 0 0;min-height:44px}
.game-stage[data-phase="paused"] .stage-vignette{background:#234b5c20}
.game-stage[data-phase="paused"] .primary-action{transform:none;filter:saturate(.45)}
.game-stage[data-phase="paused"] .perfect-toast,.game-stage[data-phase="missed"] .perfect-toast{opacity:0}
/* 28px instead of 14px, compensated by margins: the placement button stays put. */
.control-hint{height:28px;min-height:28px;margin-top:6px;margin-bottom:-8px;display:flex;align-items:center;justify-content:center;white-space:pre-line;line-height:14px;padding:0 3px}
.control-hint[data-slow="true"]{background:#e8f7fb;color:#38758b;border-radius:7px;box-shadow:0 0 0 2px #e8f7fb;font-weight:650}
.perfect-toast[data-kind="material"]{background:#f5f9df;border-color:#dbdb9d;color:#547653;box-shadow:0 0 0 3px #e2edbb40,0 5px 20px #3b665a1c}
.input-feedback[data-kind="material"]{background:#f2f9d9;color:#517649;box-shadow:inset 0 0 0 1px #d2e4a7}
.perfect-toast[data-kind="ice"]{background:#eaf9ff;border-color:#a8d9eb;color:#326f8a;box-shadow:0 0 0 3px #c4f0ff45,0 5px 20px #3c81911c}
.input-feedback[data-kind="ice"]{background:#e4f8ff;color:#326f8a;box-shadow:inset 0 0 0 1px #a8d9eb}
.achievement-card{--gem-light:#f0efe3;--gem-mid:#c8d3c7;--gem-dark:#8aa59e;display:flex;align-items:center;gap:12px;min-height:76px;margin:0 0 15px;padding:12px;border:1px solid #e0e8d7;border-radius:13px;background:linear-gradient(115deg,#f7f9ed,#fdfbf1);grid-column:1/-1}
.achievement-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.achievement-copy small{font-size:7px;font-weight:750;letter-spacing:.11em;color:#829083;line-height:1.4}
.achievement-copy strong{font-size:12px;line-height:1.35;font-weight:750;color:#365d61;overflow-wrap:anywhere}
.achievement-copy>span{font-size:9px;line-height:1.45;color:#82928a;overflow-wrap:anywhere}
.achievement-icon{position:relative;display:block;flex:0 0 38px;width:38px;height:38px;filter:drop-shadow(0 3px 3px #335a551f)}
.achievement-icon::before{content:"";position:absolute;inset:1px;clip-path:polygon(27% 0,73% 0,100% 33%,84% 79%,50% 100%,16% 79%,0 33%);background:conic-gradient(from 35deg at 50% 40%,var(--gem-mid) 0 16%,var(--gem-dark) 16% 29%,var(--gem-mid) 29% 43%,var(--gem-dark) 43% 58%,var(--gem-light) 58% 76%,var(--gem-mid) 76% 88%,var(--gem-light) 88% 100%)}
.achievement-icon::after{content:"";position:absolute;inset:7px 8px 13px;clip-path:polygon(22% 0,78% 0,100% 48%,50% 100%,0 48%);background:linear-gradient(140deg,#fff9,transparent 65%);box-shadow:inset 0 0 0 1px #ffffff70}
.achievement-card[data-material="none"] .achievement-icon{opacity:.6;filter:grayscale(.6)}
.achievement-card[data-material="bronze"]{--gem-light:#f7d0a2;--gem-mid:#c98c52;--gem-dark:#895833}
.achievement-card[data-material="silver"]{--gem-light:#f4fbff;--gem-mid:#bed2da;--gem-dark:#7e9da8}
.achievement-card[data-material="gold"]{--gem-light:#fff0b4;--gem-mid:#e5bd5e;--gem-dark:#b17a2f}
.achievement-card[data-material="platinum"]{--gem-light:#f8fcf9;--gem-mid:#c5d7d0;--gem-dark:#769d9e}
.achievement-card[data-material="diamond"]{--gem-light:#f1ffff;--gem-mid:#99dce9;--gem-dark:#5796bb}
.achievement-card[data-material="ruby"]{--gem-light:#ffbcbf;--gem-mid:#d35771;--gem-dark:#872b57}
.achievement-card[data-material="blackDiamond"]{--gem-light:#d2dce6;--gem-mid:#586979;--gem-dark:#283640}
.achievement-card[data-material="kryptonite"]{--gem-light:#e2ffab;--gem-mid:#84cd6f;--gem-dark:#337e62}
.progression-card .progression-rule{font-size:11px;line-height:1.65;color:#5d7776;margin:10px 0 13px}
.progression-card .progression-rule strong{color:#3e7774}
.material-milestones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:13px 0 7px}
.material-milestones>span{display:flex;align-items:center;justify-content:center;gap:4px;padding:7px 3px;border-radius:7px;background:#fffdf4c4;border:1px solid #e4e6d2;font-size:8px;color:#69817a;white-space:nowrap}
.material-milestones b{font-size:11px;color:#446f6a}
.milestone-dot{width:6px;height:6px;flex-shrink:0;transform:rotate(45deg);border:1px solid #fff6;border-radius:1px}
.milestone-dot.bronze{background:#bc8350}.milestone-dot.silver{background:#a9c2cb}.milestone-dot.gold{background:#dfb451}
.materials-info-button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:38px;border:0;border-bottom:1px solid #dbe5d6;background:transparent;color:#397c79;font-size:11px;font-weight:650;padding:7px 1px;text-align:left}
.materials-info-button span{font-size:15px;color:#7b9f91}
.progression-card .material-row{height:44px;margin-top:13px}
.progression-card .material-block{width:34px;height:22px}
.progression-card .material-block.concrete{background:radial-gradient(circle at 20% 35%,#aeb5a253 0 1px,transparent 1.2px),radial-gradient(circle at 67% 65%,#aeb5a260 0 1px,transparent 1.2px),linear-gradient(130deg,#f0eddf,#d8d9c9);background-size:11px 9px,15px 13px,100% 100%;box-shadow:-2px 7px 0 #b8beb0,0 12px 13px #163b3b17}
.progression-card .material-block.warm-ceramic{background:linear-gradient(125deg,#ffd0ad,#f39a74 44%,#ffb08d 60%,#ec835e);box-shadow:-2px 7px 0 #c76c4c,0 12px 13px #163b3b17}
.progression-card .material-labels{margin-top:3px;font-size:8px}
.test-tools{display:block;padding:0 5px}
.test-tools>div:first-child>span{line-height:1.6;font-size:9px}
.test-tool-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:9px 0 0;width:100%;min-width:0}
.test-tool-actions button{min-height:38px;padding:9px 8px;font-size:10px;line-height:1.4;border-radius:9px}
.test-tool-actions #unlimited-button{grid-column:1/-1;white-space:normal;min-height:40px;color:#367f79;background:#f1f7eb;border-color:#cddfca}
.test-tool-actions #unlimited-button[aria-pressed="true"]{background:#dff1e5;border-color:#8fbfaf;box-shadow:inset 0 0 0 1px #b8dcca;color:#246d62;font-weight:750}
.effects-tools{display:grid;gap:9px;padding:14px 5px 0;border-top:1px solid var(--line);grid-column:1/-1}
.effects-tools strong{font-size:10px;color:#6b838a;display:block;font-weight:650}
.effects-tools #effects-status,.effects-tools #audio-status{display:block;margin-top:4px;font-size:9px;line-height:1.5;color:#8a9b98}
.effects-tools button{min-height:38px;padding:9px 11px;border:1px solid #d8e1d3;border-radius:9px;background:#fcfaf2;color:#587b7e;font-size:10px;line-height:1.4}
.effects-tools button:hover{background:#eff4e9;border-color:#b5ccc1}
#sound-toggle .sound-note{position:relative;display:grid;place-items:center;width:20px;height:24px;flex:none;font-size:18px;line-height:1}
#sound-toggle[aria-pressed="false"] .sound-note::after{content:"";position:absolute;left:50%;top:50%;width:22px;height:2px;border-radius:2px;background:currentColor;box-shadow:0 0 0 1px var(--ivory);transform:translate(-50%,-50%) rotate(-45deg)}
.game-stage[data-overview="true"] .perfect-toast,.game-stage[data-overview="true"] .record-toast,.game-stage[data-overview="true"] .input-feedback{opacity:0}
.material-rules-table{width:100%;border-collapse:collapse;margin:14px 0;font-size:12px;line-height:1.4}
.material-rules-table th,.material-rules-table td{padding:8px 6px;border-bottom:1px solid #e4e9dd;text-align:left}
.material-rules-table th{font-size:10px;color:#6e8986;font-weight:750}
.material-rules-table td:first-child{font-variant-numeric:tabular-nums;color:#7d9590}
.material-rules-table td:last-child{text-align:right;font-weight:750;color:#367d74}
@media(max-width:760px){
  .achievement-card{margin-bottom:12px}.achievement-copy strong{font-size:13px}.achievement-copy>span{font-size:10px}
  .progression-card{display:block}.progression-card .progression-rule{font-size:12px}.material-milestones>span{font-size:10px;gap:6px}.material-milestones b{font-size:13px}.materials-info-button{font-size:12px}
  .test-tools{padding:2px 5px 0}.test-tools strong,.effects-tools strong{font-size:11px}.test-tool-actions button,.effects-tools button{font-size:11px}
}
@media(max-width:420px){
  .hud-tools{gap:6px}.pause-button{width:42px;height:42px;min-height:42px;padding:0}.pause-button #pause-label{display:none}
  .nation-pill{max-width:calc(100% - 138px)}.timer-pill{padding-right:8px;padding-left:8px;gap:5px}.timer-pill[data-unlimited="true"]{gap:4px}
  .timer-pill[data-unlimited="true"] #timer-unit{font-size:7px;max-width:31px}
  .manual-pause-panel{top:26%;padding:22px 20px 13px}.manual-pause-panel h2{font-size:25px}.manual-pause-panel p{font-size:11px;margin-bottom:17px}
  .control-hint{font-size:9px;line-height:14px;margin-top:6px;margin-bottom:-8px}
  .achievement-card{padding:11px;gap:10px}.achievement-copy strong{font-size:12px}.achievement-copy small{font-size:7px}
}
@media(max-width:350px){
  .game-hud{gap:6px}.nation-pill{padding:8px;gap:6px;max-width:calc(100% - 132px)}.nation-pill small{letter-spacing:.07em;font-size:6px}.nation-pill strong{font-size:10px}
  .timer-pill{padding:9px 6px;gap:4px}.timer-pill[data-unlimited="true"] #timer-unit{max-width:29px}.hud-tools{gap:5px}
  .material-milestones>span{font-size:9px;gap:4px}.achievement-icon{flex-basis:34px;width:34px;height:34px}.achievement-copy strong{font-size:11px}
}

/* Results grow upward in the scene track; the controls reserve their real height. */
.game-stage{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
.game-controls{position:relative;grid-column:1;grid-row:2;left:auto;right:auto;bottom:auto;min-width:0}
.result-card{position:relative;grid-column:1;grid-row:1;align-self:end;justify-self:center;top:auto;left:auto;transform:none;width:min(calc(100% - 24px),350px);margin:0 0 12px;padding:14px 18px;min-height:0;font-size:11px;line-height:1.4;max-height:calc(100% - 72px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b9ccc1 transparent}
.result-card .eyebrow{display:block;line-height:1.3}
.result-card h2{font-size:21px;line-height:1.2;margin:6px 0 10px}
.result-metrics{gap:30px}
.result-metrics strong{font-size:30px;line-height:1}
.result-metrics span{line-height:1.4}
.result-combo{margin-top:7px;line-height:1.4}
.result-records{margin-top:8px;padding:6px 8px;font-size:10px;line-height:1.4}
.result-card p{margin:9px 0 10px;font-size:10px;line-height:1.45;overflow-wrap:anywhere}
.result-card .secondary-button{min-height:44px;padding:10px 13px;font-size:12px;line-height:1.35}
.result-card .text-button{width:100%;min-height:44px;margin:4px 0 0;padding:8px 10px;color:#527980;font-size:11px;line-height:1.35}
.result-card .next-run-button{margin-top:0}
.server-card{grid-column:1/-1;padding:21px;background:#fcfaf2;border:1px solid var(--line);border-radius:20px;min-width:0}
.server-card[hidden]{display:none}
.server-card .card-title{gap:8px}.server-card h2{font-size:10px;margin:0;line-height:1.5}
.server-refresh{flex:0 0 36px;min-height:36px;border:1px solid #d8e1d3;border-radius:10px;background:#f1f7eb;color:#367f79;font-size:20px}
.server-status,.server-note{font-size:10px;line-height:1.65;color:#6b838a;margin:9px 0;overflow-wrap:anywhere}
.server-countries{padding:0;margin:12px 0;list-style:none;max-height:220px;overflow-y:auto}
.server-countries li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #e4e9dd;font-size:12px;line-height:1.5}
.server-countries strong{color:#367f79;white-space:nowrap;font-variant-numeric:tabular-nums}
.server-personal{font-size:11px;line-height:1.7;color:#42676d;margin:12px 0}
.server-details summary{font-size:11px;color:#367f79;cursor:pointer;padding:10px 0}
.server-history{padding-left:20px;max-height:230px;overflow-y:auto;font-size:10px;line-height:1.8;color:#587b7e}.server-history li{margin-bottom:8px}
.server-note{margin-bottom:0;font-size:9px}
@media(max-width:420px){
  .result-card{padding:13px 15px;border-radius:19px}
  .result-card h2{font-size:18px;margin-bottom:9px}
  .result-metrics strong{font-size:28px}
}

/* 0.7.4: give the final tower the whole stage while the camera reveals it. */
.game-stage[data-overview="true"] .game-controls,
.game-stage[data-overview="true"] .hud-tools,
.game-stage[data-overview="true"] .height-display .run-score{display:none}
.game-stage[data-overview="true"] .game-hud{left:18px;right:auto;top:18px;max-width:55%}
.game-stage[data-overview="true"] .nation-pill{max-width:none;padding:8px 11px;gap:7px;background:#fffdf2d9}
.game-stage[data-overview="true"] .nation-pill .flag{font-size:22px}
.game-stage[data-overview="true"] .nation-pill small{font-size:7px}
.game-stage[data-overview="true"] .nation-pill strong{font-size:12px}
.game-stage[data-overview="true"] .height-display{left:auto;right:20px;top:22px;transform:none;flex-direction:row;align-items:baseline;gap:6px}
.game-stage[data-overview="true"] .height-display::before{display:none}
.game-stage[data-overview="true"] .height-display>strong{font-size:31px;color:#173f50;text-shadow:0 1px 6px #fff9}
.game-stage[data-overview="true"] .height-display>span{margin:0;font-size:8px;letter-spacing:.06em;color:#365b68;text-shadow:none}
.game-stage[data-overview="true"] .stage-vignette{background:linear-gradient(180deg,#ffffff14,transparent 24%,transparent 92%,#fbf4e82e)}
@media(max-width:350px){
 .game-stage[data-overview="true"] .game-hud{left:12px;top:14px}
 .game-stage[data-overview="true"] .nation-pill{padding:7px;gap:5px}
 .game-stage[data-overview="true"] .nation-pill strong{font-size:10px}
 .game-stage[data-overview="true"] .height-display{right:12px;top:18px;gap:4px}
 .game-stage[data-overview="true"] .height-display>strong{font-size:27px}
}

/* 0.7.5: test modes and the shared country outcome stay distinct from personal scores. */
.test-tool-actions #magnet-button{grid-column:1/-1;min-height:42px;color:#5b598d;background:#f1f0fa;border-color:#d1cde7}
.test-tool-actions #magnet-button[aria-pressed="true"]{background:#e4dffc;border-color:#a497d5;color:#534182;font-weight:750}
#magnet-status{font-size:10px;line-height:1.55;color:#6b838a;margin:8px 0 0}
.game-stage[data-magnet="true"] .primary-action{background:linear-gradient(115deg,#6960a6,#427b8b);font-size:17px}
.game-stage[data-phase="finished"] .game-controls{display:none}
.game-stage[data-phase="finished"] .result-card{width:min(calc(100% - 24px),370px);max-height:calc(100% - 84px);margin-bottom:12px}
.game-stage[data-phase="finished"] .next-run-button{position:sticky;bottom:-1px;z-index:2;box-shadow:0 -8px 14px #f5f9efd9;margin-top:12px}
.country-result{margin:12px 0 10px;padding:13px 14px 10px;border:1px solid #bcd9cd;border-radius:15px;background:linear-gradient(130deg,#e9f5ec,#f8faee);text-align:left}
.country-result[hidden]{display:none}
.country-result__heading{margin:0;font-size:9px;font-weight:750;letter-spacing:.03em;color:#548279}
.country-result__label{display:block;font-size:8px;letter-spacing:.08em;text-transform:uppercase;color:#64877a;margin-bottom:4px}
.country-result__country{font-size:14px;font-weight:750;color:#285e62;line-height:1.4;margin-top:4px}
.country-result__gain{display:block;margin:5px 0 2px;font-size:29px;font-weight:800;letter-spacing:-.035em;line-height:1.1;color:#287d69;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.result-card .country-result__status{font-size:10px;line-height:1.5;color:#557e72;margin:5px 0 9px}
.country-result[data-status="pending"] .country-result__status,.country-result[data-status="unknown"] .country-result__status{color:#856a32}
.country-result[data-status="blocked"] .country-result__status,.country-result[data-status="other-profile"] .country-result__status{color:#9b5946}
.country-result__summary{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:10px 0;border-top:1px solid #cbded0;border-bottom:1px solid #cbded0;font-size:11px;line-height:1.55;color:#37646a}
.country-result__total,.country-result__rank{min-width:0;overflow-wrap:anywhere}
.country-result__rank{text-align:right}
.country-result__total strong,.country-result__rank strong{display:block;font-size:17px;font-weight:800;line-height:1.35;color:#2d6266}
.result-card .country-result__board-note{font-size:9px;color:#7d8a79;margin:5px 0 7px;line-height:1.45}
.country-result__top-title{font-size:9px;font-weight:750;letter-spacing:.07em;text-transform:uppercase;color:#758976;margin:9px 0 5px}
.country-result__top{padding:0;margin:0;list-style:none;counter-reset:leaders}
.country-result__top-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0;counter-increment:leaders;font-size:11px;line-height:1.4}
.country-result__top-country{flex:1;min-width:0;color:#4b716d;overflow-wrap:anywhere}
.country-result__top-points{font-variant-numeric:tabular-nums;font-weight:750;color:#3f776a}
.country-result__top-row[data-selected="true"]{background:#d2ebdc7a;border-radius:6px}
.country-result__empty{font-size:10px;line-height:1.5;color:#6b838a}
@media(max-width:420px){
 .country-result{padding:11px 12px 9px}.country-result__gain{font-size:27px}
 .game-stage[data-magnet="true"] .primary-action{font-size:16px}
}
@media(prefers-reduced-motion:no-preference){
 .country-result[data-status="accepted"] .country-result__gain{animation:contribution-arrive .5s ease-out both}
 @keyframes contribution-arrive{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
}
@media(max-width:760px){
 .game-stage[data-phase="finished"] .result-card{padding:12px 15px}
 .game-stage[data-phase="finished"] #result-eyebrow,.game-stage[data-phase="finished"] #result-note{display:none}
 .game-stage[data-phase="finished"] .result-card h2{font-size:20px;margin:2px 0 8px}
 .game-stage[data-phase="finished"] .result-metrics strong{font-size:24px}
 .game-stage[data-phase="finished"] .result-combo{margin-top:4px;font-size:10px}
 .game-stage[data-phase="finished"] .result-records{margin-top:5px;padding:4px 7px;font-size:9px}
 .country-result{margin:8px 0;padding:10px 11px 8px}
 .result-card p.country-result__label{font-size:8px;margin:0 0 3px;line-height:1.4}
 .country-result__heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
 .country-result__country{margin:0;font-size:13px}
 .country-result__gain{margin:0;font-size:26px}
 .result-card .country-result__status{font-size:9px;margin:3px 0 6px;line-height:1.4}
 .country-result__summary{padding:6px 0;font-size:9px}
 .country-result__total strong,.country-result__rank strong{font-size:16px}
 .result-card .country-result__board-note{font-size:8px;margin:4px 0;line-height:1.4}
 .result-card .country-result__top-title{font-size:8px;margin:6px 0 3px;line-height:1.4}
 .country-result__top-row{padding:3px 0;font-size:10px}
 .game-stage[data-phase="finished"] .next-run-button{margin-top:7px}
}
/* 0.7.7: compact country ranking and illustrated block reference. */
.country-ranking-head,.server-countries li.country-ranking__row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center}
.country-ranking-head{padding:12px 8px 5px;font-size:9px;color:#78918c}
.country-ranking-head>span:last-child{text-align:right}
.server-countries{margin:0;max-height:none;overflow:visible}
.server-countries li.country-ranking__row{padding:10px 8px;border-bottom:1px solid #e4e9dd;border-radius:6px;font-size:11px}
.country-ranking__rank{color:#7b9187;font-variant-numeric:tabular-nums}
.country-ranking__country{min-width:0;overflow-wrap:anywhere;line-height:1.5}
.country-ranking__points{font-variant-numeric:tabular-nums;text-align:right}
.server-countries li[data-selected="true"]{background:#e1f0e5;color:#285f59;font-weight:700}
.server-countries li.country-ranking__separator{display:block;padding:2px 8px;border:0;color:#8b9e92;line-height:1}
.server-countries li.country-ranking__empty{font-size:11px;line-height:1.6;color:#6b838a;border:0}
#storage-status[hidden],#server-status[hidden]{display:none}
#blocks-info{margin-top:12px;border-top:1px solid #dbe5d6;border-bottom:0;min-height:44px}
dialog{max-height:calc(100dvh - 32px);overflow-y:auto}
.block-guide-standard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
.block-guide-item{margin:0;text-align:center;min-width:0}
.block-guide-item svg{display:block;width:100%;height:auto}
.block-guide-item figcaption strong,.block-guide-item figcaption span{display:block}
.block-guide-item figcaption strong{font-size:12px;color:#315d65}
.block-guide-item figcaption span{font-size:10px;color:#7b918b;line-height:1.5;margin-top:3px}
dialog .block-guide-lead,dialog .block-guide-rule{font-size:12px;line-height:1.6}
.block-guide-ice{padding:13px;margin:16px 0 10px;border:1px solid #bbdce6;border-radius:14px;background:linear-gradient(135deg,#edf9fb,#f7fcf7)}
.block-guide-ice-head{display:flex;align-items:center;gap:12px}
.block-guide-ice-head svg{width:108px;height:auto;flex:none}
.block-guide-ice h3{font-size:17px;color:#2b6979;margin:6px 0}
.block-guide-badge{display:inline-block;font-size:9px;line-height:1.4;font-weight:700;color:#33778a;background:#d9eff5;padding:5px 7px;border-radius:6px}
dialog .block-guide-ice p{font-size:12px;line-height:1.6;margin:8px 0}
dialog .block-guide-note{font-size:11px;line-height:1.6;color:#728b81}
@media(max-width:760px){
 .app-shell{padding-top:env(safe-area-inset-top,0px)}
 .masthead{height:60px}
 .header-actions .icon-button{width:44px;height:44px;flex:none}
 .main-grid{margin-top:8px}
 .section-intro{margin-bottom:6px}
 .section-intro .eyebrow,.section-intro .one-touch{display:none}
 .section-intro h1{font-size:22px;line-height:1.2;margin:0}
 .server-refresh{min-height:44px;flex-basis:44px}
}
@media(max-width:350px){
 .brand{gap:7px}.brand strong{font-size:11px;letter-spacing:.1em}.brand small{font-size:8px}.brand-mark{width:28px}.header-actions{gap:3px}
 .block-guide-ice-head{gap:8px}.block-guide-ice-head svg{width:84px}
 .block-guide-item figcaption strong{font-size:11px}
}

/* 0.7.9: one short goal and a permanent contribution title. */
.short-goal{margin:0 0 10px;padding:0 1px;color:#3b665f}
.short-goal>div{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:17px}
.short-goal strong{font-size:10px;line-height:1.4;font-weight:650}
.short-goal span{font-size:9px;white-space:nowrap;color:#64857b;font-variant-numeric:tabular-nums}
.short-goal progress{display:block;width:100%;height:3px;margin-top:5px;border:0;border-radius:4px;overflow:hidden;appearance:none;background:#dbe7d8}
.short-goal progress::-webkit-progress-bar{background:#dbe7d8}
.short-goal progress::-webkit-progress-value{background:#61a787;border-radius:4px}
.short-goal progress::-moz-progress-bar{background:#61a787;border-radius:4px}
.short-goal[data-completed="true"]{color:#25815e}
.country-title{grid-column:1/-1;display:flex;flex-direction:column;gap:5px;margin:10px 0 0;padding:10px 12px;border:1px solid #d5e5d4;border-radius:12px;background:#eff5e8}
.country-title strong{color:#3d7464;font-size:13px}
.country-title span{color:#718978;font-size:10px;line-height:1.5}
.perfect-toast[data-kind="magnet"]{background:#f3eaff;border-color:#cbb1ef;color:#7252a3}
.perfect-toast[data-kind="repair"]{background:#e2f5e7;border-color:#95cfad;color:#2b7d57}
@media(max-width:350px){.short-goal strong{font-size:9px}.short-goal span{font-size:8px}.short-goal>div{gap:5px}}

/* Append after the existing block-guide rules. The dialog already scrolls. */
.block-guide-special .block-guide-ice-head>div{min-width:0}
.block-guide-special--magnet{border-color:#d7bfe9;background:linear-gradient(135deg,#f2eafb,#faf6fe)}
.block-guide-special--magnet h3{color:#68458d}
.block-guide-special--magnet .block-guide-badge{color:#735294;background:#e7d8f4}
.block-guide-special--repair{border-color:#badfc2;background:linear-gradient(135deg,#eaf8e9,#f7fcf3)}
.block-guide-special--repair h3{color:#347456}
.block-guide-special--repair .block-guide-badge{color:#347453;background:#d6eed7}
dialog .block-guide-special .block-guide-detail{font-size:11px;color:#7b7188}

/* 0.7.9: country goal beside the game, with an independent persistent title. */
.country-motivation{padding:12px 14px;margin:10px 0;border:1px solid #c5ddd1;border-radius:14px;background:linear-gradient(125deg,#eef7ee,#fffbed);color:#2f6466}
.country-motivation__heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:12px;line-height:1.4}
.country-motivation__country{min-width:0;font-weight:750;overflow-wrap:anywhere}
.country-motivation__rank{flex:none;font-size:11px;font-variant-numeric:tabular-nums}
.country-motivation__goal{margin:6px 0 0;font-size:12px;line-height:1.5;color:#39756c}
.country-motivation__personal{margin:5px 0 0;font-size:10px;line-height:1.5;color:#789087}
.country-motivation[data-freshness="stale"] .country-motivation__goal,.country-motivation[data-freshness="waiting"] .country-motivation__goal,.country-motivation[data-freshness="invalid"] .country-motivation__goal{color:#7f8e87}
.result-card p.country-result__goal{margin:6px 0;font-size:11px;font-weight:650;line-height:1.45;color:#337b6b}
.country-result[data-status] .country-result__gain{animation:none}
@media(prefers-reduced-motion:no-preference){
 .country-result[data-status][data-gain-animate="true"] .country-result__gain{animation:country-contribution-pop .45s ease-out both;transform-origin:center}
 @keyframes country-contribution-pop{0%{opacity:.35;transform:translateY(6px) scale(.86)}65%{opacity:1;transform:translateY(-1px) scale(1.08)}100%{opacity:1;transform:none}}
}
@media(max-width:760px){
 .country-motivation{padding:10px 12px;margin:8px 0}
 .country-motivation__heading{font-size:11px}.country-motivation__rank{font-size:10px}
 .country-motivation__goal,.result-card p.country-result__goal{font-size:10px}
}

/* 0.7.10: the play field is the input surface; helpers live below it. */
.game-stage{grid-template-rows:minmax(0,1fr)}
.play-surface{appearance:none;position:absolute;inset:0;width:100%;height:100%;z-index:2;border:0;padding:0;margin:0;border-radius:inherit;background:transparent;box-shadow:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;outline:none}
.play-surface:disabled{pointer-events:none;cursor:default;opacity:1}
.game-stage[data-phase="playing"] .play-surface{touch-action:none}
.play-surface:focus-visible{outline:3px solid #ef9168;outline-offset:-5px}
.play-surface.is-pressed{box-shadow:inset 0 0 0 2px #fffa}
.game-hud{z-index:4;pointer-events:none}.game-hud .hud-tools{pointer-events:none}.game-hud .pause-button{pointer-events:auto}
.height-display,.start-card,.perfect-toast,.record-toast,.pause-chip{pointer-events:none}
.height-display,.start-card{z-index:3}
.game-stage>.control-hint{position:absolute;z-index:3;bottom:16px;left:16px;right:16px;height:auto;min-height:0;margin:0;padding:7px 10px;border-radius:10px;background:#fffdf0dd;color:#466a70;pointer-events:none;font-size:10px;line-height:1.45;white-space:pre-line;width:fit-content;max-width:calc(100% - 32px);justify-self:center;box-shadow:0 1px 10px #24596a0c}
.game-stage[data-phase="paused"]>.control-hint,.game-stage[data-phase="missed"]>.control-hint,.game-stage[data-phase="finished"]>.control-hint,.game-stage[data-overview="true"]>.control-hint{display:none}
.game-stage>.input-feedback{top:auto;bottom:72px;right:22px;z-index:3;transform:translateY(4px);font-size:12px}
.game-stage>.input-feedback.visible{transform:translateY(0)}
.under-game{margin-top:6px}
@media(prefers-reduced-motion:reduce){.game-stage>.input-feedback{transition:none;transform:none}}

/* 0.7.11: two compact corner controls, with only active effects between them. */
.corner-boosters{position:absolute;z-index:4;left:12px;right:12px;bottom:12px;display:flex;justify-content:space-between;gap:16px;pointer-events:none}
.corner-boosters .booster-button{pointer-events:auto;min-width:68px;min-height:44px;height:44px;padding:8px 10px;gap:7px;border-radius:13px;border:1px solid #fffef5db;background:#fffdf2d9;box-shadow:0 2px 8px #24596a0a;touch-action:manipulation}
.corner-boosters .booster-button svg{width:20px;height:20px;flex:none}
.corner-boosters .booster-button b{display:grid;place-items:center;min-width:18px;height:20px;margin:0;padding:0 3px;font-size:10px;border-radius:5px;font-variant-numeric:tabular-nums}
.corner-boosters .boost-multiplier{font-size:16px;line-height:1;font-weight:750;letter-spacing:-.05em}
.corner-boosters .booster-button[aria-pressed="true"]{background:#fff0c4;border-color:#dcb85d;box-shadow:inset 0 0 0 1px #e7c87a;color:#88651c}
.corner-boosters .booster-button[aria-pressed="true"]:disabled{opacity:.85}
.corner-boosters .booster-button:focus-visible{outline:3px solid #ed936b;outline-offset:2px}
.game-stage>.control-hint{bottom:12px;left:92px;right:92px;width:auto;max-width:none;min-height:44px;padding:2px 0;justify-self:stretch;background:none;box-shadow:none;border-radius:0;font-size:10px;line-height:14px;color:#466a70;font-weight:650;text-align:center}
.game-stage>.control-hint[hidden]{display:none}
.game-stage[data-phase="paused"] .corner-boosters,.game-stage[data-phase="missed"] .corner-boosters,.game-stage[data-overview="true"] .corner-boosters{display:none}
.game-stage[data-phase="finished"] .result-card{margin-bottom:72px;max-height:calc(100% - 144px)}
.storage-warning:not([hidden]){display:block;margin:8px 2px;color:#a4653d;font-size:11px}
.notice{width:max-content}

/* 0.7.12: recovery is a deliberate choice, separate from playing taps. */
#revive-button:disabled,#bank-button:disabled,#crane-confirm:disabled{opacity:.45;cursor:default}
#crane-dialog{max-width:390px;padding:26px}
#crane-dialog h2{font-size:24px;margin:9px 0 12px}
#crane-dialog .crane-dialog-stock{margin:12px 0 18px;font-size:12px;font-weight:650;color:#477a76}
.crane-dialog-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px}
#crane-dialog .secondary-button{width:100%;min-height:48px;margin:0;padding:10px 9px;font-size:12px}
#crane-cancel{background:#fbfaf3;color:#667e80;border-color:#dbe2d7}
#crane-confirm{background:#e2f2e2;border-color:#9fc6ad}
#crane-dialog button:focus-visible{outline:3px solid #ef9168;outline-offset:3px}

/* Personal results stay with achievements; the full country table opens separately. */
.contribution-card .server-details{border-top:1px solid var(--line);margin-top:12px}
.contribution-card .server-details summary{min-height:44px;align-content:center;font-weight:650}
.server-details[hidden]{display:none}
#countries-info{width:100%;min-height:44px;margin-top:12px;border-bottom:0}
#info-dialog[data-view="countries"]{max-width:480px;padding:26px}
.full-ranking-toolbar{display:flex;align-items:center;gap:12px}
dialog .full-ranking-note{flex:1;font-size:11px;line-height:1.6;margin:0;color:#6b838a}
.full-ranking-toolbar .server-refresh{flex-basis:44px;min-height:44px}
#full-ranking-list{max-height:50dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#full-ranking-list li.country-ranking__row{font-size:12px}
#full-ranking-status[hidden],#full-ranking-head[hidden]{display:none}
.server-details summary:focus-visible,#countries-info:focus-visible,#full-ranking-refresh:focus-visible,#full-ranking-list:focus-visible{outline:3px solid #ef9168;outline-offset:3px}
@media(max-width:350px){#info-dialog[data-view="countries"]{padding:23px 18px}#full-ranking-list li.country-ranking__row{font-size:11px}}

/* Taptella branding stays outside the game canvas and its material colours. */
:root{--brand-navy:#102f3a;--brand-mint:#36bfb7;--brand-coral:#ff7866;--brand-ivory:#f7f4ec}
.brand{flex-direction:column;align-items:flex-start;gap:4px;min-width:0;max-width:100%}
/* The source has transparent top/bottom margins; cover frames the lockup without stretching it. */
.brand-logo{display:block;width:218px;height:46px;max-width:100%;object-fit:cover;object-position:center}
.brand-tagline{font-size:11px;font-weight:500;line-height:1.4;letter-spacing:.015em;color:#48616d;white-space:nowrap}
.brand:focus-visible{outline-color:#c9543c;border-radius:5px}
.masthead .build-badge{color:#2b6f69;border-color:#baded6;background:#eef8f3}
.section-intro h1,.footer-brand{color:var(--brand-navy)}
.one-touch>span{background:var(--brand-mint);box-shadow:0 0 0 3px #def2e8}
.footer-brand{font-size:11px;font-weight:750;letter-spacing:.025em}
.site-footer .footer-dot{color:#c9543c}
#dialog-eyebrow{color:#2b7670;font-weight:800;letter-spacing:.1em}
dialog .brand-about-slogan{color:var(--brand-navy);font-weight:650;padding:12px 14px;border-left:3px solid var(--brand-coral);background:var(--brand-ivory);border-radius:0 10px 10px 0}
@media(max-width:760px){
 .masthead{height:60px;gap:12px}
 .brand{gap:0}
 .brand-logo{width:174px;height:44px}
 .brand .brand-tagline{display:none}
 .header-actions{flex:none}
 .header-actions .icon-button{width:44px;height:44px;flex:none}
}
@media(max-width:350px){.brand-logo{width:168px}.footer-brand{font-size:10px}}
