:root{--ink:#203d49;--muted:#75858b;--paper:#f7f6f0;--blue:#246ccc;--orange:#eeab53;--line:#dde4e4;--mint:#e8f0e9}*{box-sizing:border-box}body{margin:0;background:var(--paper);font-family:Segoe UI,Arial,sans-serif;color:var(--ink)}button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #efa743;outline-offset:4px}.app{max-width:1260px;margin:auto;padding:25px 32px 18px}.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px;gap:15px}.brand{display:flex;gap:10px;align-items:center;font-weight:850;font-size:15px;letter-spacing:.04em}.mark{width:36px;height:36px;background:#2b6dbb;color:#fff;border-radius:11px;display:grid;place-items:center;font-size:23px}.brand small{display:block;font-size:9px;font-weight:600;color:#7a8a8f;letter-spacing:.16em;margin-top:3px}.top-tools{display:flex;align-items:center;gap:8px}.offline{font-size:11px;color:#80918e;margin-right:14px}.offline:before{content:'';display:inline-block;background:#81ac8f;width:6px;height:6px;border-radius:50%;margin-right:6px}.quiet{border:1px solid #dce3df;background:#ffffff70;color:var(--ink);border-radius:11px;padding:10px 13px;font-size:12px}.quiet:hover{background:#fff}.layout{display:grid;grid-template-columns:minmax(195px,1fr) minmax(330px,480px) minmax(150px,.8fr);gap:35px;align-items:center}.intro{padding:0 0 25px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.19em;color:#658b83;text-transform:uppercase}.intro h1{font-size:clamp(44px,5.1vw,68px);line-height:.97;letter-spacing:-.06em;margin:19px 0 22px;font-weight:900}.intro h1 span{color:#2c70c6;display:block}.intro p{font-size:14px;line-height:1.8;color:#76888b;max-width:240px}.badge{display:inline-flex;gap:6px;align-items:center;border:1px solid #d2e0d4;color:#6c8a74;background:#eff4e9;border-radius:20px;padding:7px 10px;font-size:10px;margin-top:14px}.record-card{margin-top:34px;border-top:1px solid #d7e0dc;padding-top:20px;max-width:220px}.record-card small{font-size:10px;color:#80908e;text-transform:uppercase;letter-spacing:.13em}.record-card strong{font-size:40px;letter-spacing:-.04em;display:block;margin:4px 0 0;font-weight:800}.record-card strong span{font-size:17px;color:#8b9a96;font-weight:400}.record-card p{font-size:11px;line-height:1.6;margin:8px 0 0}.sidebar{align-self:center}.side-heading{font-size:10px;letter-spacing:.15em;color:#8b9895;margin:0 0 22px}.feature{display:flex;gap:12px;margin:22px 0;align-items:flex-start}.feature-icon{width:35px;height:35px;flex-shrink:0;border-radius:12px;display:grid;place-items:center;background:#e7eee0;color:#71915a;font-size:20px}.feature:nth-of-type(2) .feature-icon{background:#faecd9;color:#ca9142}.feature:nth-of-type(3) .feature-icon{background:#e4eef9;color:#4a8fc0}.feature b{font-size:12px;display:block;margin:2px 0 6px}.feature p{font-size:11px;line-height:1.65;color:#81908d;margin:0;max-width:145px}.side-controls{border-top:1px solid var(--line);padding-top:22px;margin-top:27px;font-size:11px;color:#84938e;line-height:2.2}.key{display:inline-block;background:#fff;border:1px solid #d9e1dc;border-bottom-width:3px;border-radius:5px;padding:0 6px;color:#506d72;min-width:24px;text-align:center;font-size:11px;line-height:22px}.game-shell{position:relative;border:1px solid #c1d3d4;border-radius:27px;background:#d4eaf0;box-shadow:0 18px 70px #21475014;overflow:hidden;isolation:isolate;min-width:0}.screen{position:relative;aspect-ratio:480/720;line-height:0}canvas{width:100%;height:100%;display:block;touch-action:none}.hud{position:absolute;top:0;left:0;right:0;padding:20px 18px;display:flex;justify-content:space-between;align-items:flex-start;gap:8px;pointer-events:none;z-index:2}.height-box{background:#ffffffe8;border:1px solid #ffffffb0;padding:9px 13px;border-radius:14px;box-shadow:0 3px 12px #34729008;line-height:1.1}.height-box b{font-size:26px;letter-spacing:-.04em}.height-box span{font-size:11px;color:#809caa;margin-left:3px}.height-box small{font-size:8px;color:#91a3a8;letter-spacing:.12em;text-transform:uppercase;display:block;margin-top:5px}.hud-right{display:flex;gap:7px;align-items:center}.coins{line-height:1;background:#fff9dcf0;padding:12px;border-radius:12px;font-size:13px;color:#ac813b;min-width:57px}.coins b{font-size:16px;margin-left:4px}.pause{pointer-events:auto;border:1px solid #ffffffaa;background:#ffffffc9;width:37px;height:39px;border-radius:12px;color:#517785;font-size:16px}.power{position:absolute;top:89px;left:19px;right:19px;height:5px;border-radius:5px;background:#fff8;overflow:hidden;display:none;z-index:2}.power div{height:100%;background:#efa952;width:100%;transition:width .1s}.power-label{position:absolute;left:20px;top:101px;font-size:9px;color:#326d8c;letter-spacing:.08em;line-height:1.4;z-index:2}.height-label{position:absolute;top:100px;right:18px;line-height:1.4;font-size:9px;letter-spacing:.1em;color:#6894a5;z-index:2}.toast{position:absolute;left:50%;bottom:75px;transform:translate(-50%,10px);opacity:0;background:#244957ed;color:#fff;padding:10px 16px;font-size:12px;line-height:1.4;border-radius:12px;z-index:4;pointer-events:none;white-space:nowrap;transition:opacity .2s,transform .2s}.toast.on{opacity:1;transform:translate(-50%,0)}.screen-note{position:absolute;bottom:15px;left:0;right:0;text-align:center;color:#6d939f;font-size:9px;letter-spacing:.14em;line-height:1.5;pointer-events:none}.screen-bottom{padding:11px 15px;background:#edf2ed;border-top:1px solid #c7d9d3;display:flex;justify-content:space-between;font-size:9px;letter-spacing:.09em;color:#8b9e95}.screen-bottom .live:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#79a78b;margin-right:5px}.home{position:absolute;inset:0;z-index:5;display:flex;justify-content:center;align-items:flex-end;padding:24px 26px 60px;background:linear-gradient(180deg,#f0f7ed00 45%,#f6f8f1c9 66%,#f6f8f1 100%);line-height:1.5}.home[hidden]{display:none}.home-card{text-align:center;width:100%;animation:cardIn .65s ease both}.home-card .eyebrow{font-size:9px;color:#4c8a90}.home h2{font-size:39px;line-height:1.07;letter-spacing:-.045em;margin:12px 0 13px;font-weight:850;color:#28536a}.home p{font-size:12px;line-height:1.8;color:#6d8a91;margin:0 auto 23px;max-width:270px}.primary{background:#286ec5;border:0;color:#fff;border-radius:13px;padding:14px 25px;font-size:13px;font-weight:750;box-shadow:0 6px 0 #1b57a0,0 10px 22px #286ec52b;transition:transform .16s,box-shadow .16s}.primary:hover{transform:translateY(-2px);box-shadow:0 8px 0 #1b57a0,0 15px 25px #286ec530}.primary:active{transform:translateY(4px);box-shadow:0 2px 0 #1b57a0}.home .primary{min-width:220px}.home-sub{font-size:10px;color:#8da4a5;margin-top:20px}.dialog-back{position:absolute;inset:0;z-index:7;background:#254f6770;backdrop-filter:blur(7px);display:flex;justify-content:center;align-items:center;padding:23px;line-height:1.5}.dialog-back[hidden]{display:none}.dialog{background:#f7f7ee;border:1px solid #fff8;border-radius:23px;padding:28px;width:100%;max-width:375px;box-shadow:0 15px 70px #10395040;animation:cardIn .25s ease both;text-align:center}.dialog h2{font-size:29px;line-height:1.12;letter-spacing:-.035em;margin:14px 0;color:#2a5366}.dialog p{font-size:12px;line-height:1.8;color:#7b9298;margin:10px 0}.dialog-actions{display:flex;gap:12px;flex-direction:column;margin-top:24px}.secondary{background:transparent;border:1px solid #cbdad6;color:#507985;border-radius:11px;padding:11px;font-size:12px}.secondary:hover{background:#edf1e5}.result{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:20px 0}.result div{background:#e7eee4;border-radius:13px;padding:12px;font-size:10px;color:#7d978c}.result b{display:block;font-size:27px;color:#3a6c6c;margin-top:3px}.result .unit{font-size:13px}.medal{font-size:40px;line-height:1}.hint-pills{display:flex;justify-content:center;gap:5px;margin-top:18px}.hint-pills span{font-size:9px;color:#789398;padding:5px 9px;border:1px solid #d7e3dc;border-radius:20px}.rules{margin:18px 0;text-align:left}.rules p{padding-left:18px;position:relative;margin:13px 0}.rules p:before{content:'';width:5px;height:5px;position:absolute;left:0;top:8px;background:#e4b264;border-radius:50%}.touch-controls{display:none;margin-top:13px;gap:12px;justify-content:center}.touch-controls button{touch-action:none;user-select:none;width:95px;height:46px;border:1px solid #c9d9d7;border-radius:14px;color:#407a9f;background:#fff;font-size:23px;box-shadow:0 3px 0 #dbe5dd}.touch-controls button:active{background:#e5f0f5;transform:translateY(2px);box-shadow:0 1px 0 #dbe5dd}.foot{display:flex;justify-content:space-between;gap:15px;margin-top:22px;font-size:10px;color:#92a09a;line-height:1.6}.screen.is-home .hud,.screen.is-home .height-label{visibility:hidden}.screen.is-home .power,.screen.is-home .power-label{visibility:hidden}.screen.is-home .screen-note{display:none}.new-best{animation:glow .8s ease-in-out 3}.help-back{z-index:9}.reduce-note{font-size:10px;color:#8d9e9f;margin-top:20px}.mute-indicator{display:none}
@keyframes cardIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes glow{50%{color:#f4b958;transform:scale(1.1)}}
@media(min-width:1500px){.app{padding-top:35px}.layout{gap:47px}}@media(max-width:1050px){.layout{grid-template-columns:minmax(150px,1fr) minmax(300px,450px);gap:27px;max-width:850px;margin:auto}.sidebar{display:none}.intro h1{font-size:58px}.app{max-width:1000px}}@media(max-width:650px){.app{padding:13px 16px}.top{margin-bottom:15px}.brand{font-size:13px}.brand small{font-size:8px}.mark{width:32px;height:32px;font-size:21px}.offline{display:none}.quiet{font-size:10px;padding:9px}.layout{display:block;max-width:420px}.intro{display:none}.game-shell{border-radius:22px}.home h2{font-size:34px}.home{padding:20px 20px 46px}.home p{font-size:11px;margin-bottom:19px}.home .primary{padding:12px 22px;min-width:205px}.home-sub{font-size:9px;margin-top:17px}.hud{padding:15px 14px}.height-box b{font-size:23px}.height-box{padding:8px 10px}.power{top:78px;left:15px;right:15px}.power-label{top:89px;left:16px}.height-label{top:87px;right:14px}.screen-bottom{font-size:8px;padding:9px 12px}.foot{font-size:8px;margin-top:15px}.foot span:last-child{text-align:right}.touch-controls{display:flex}.dialog{padding:22px}.dialog h2{font-size:25px}.dialog p{font-size:11px}.home .eyebrow{font-size:8px}.home-card{padding-top:4px}.result b{font-size:23px}.toast{font-size:11px;bottom:58px}.screen-note{font-size:8px}}
@media(max-width:380px){.app{padding:10px}.home{padding-bottom:36px}.home h2{font-size:29px;margin-top:7px}.home p{font-size:10px;margin-bottom:13px}.home-sub{margin-top:13px}.top-tools{gap:5px}.quiet{padding:8px}.home .primary{min-width:180px}.hint-pills{margin-top:10px}.hint-pills span{font-size:8px}.dialog-back{padding:18px}.rules{margin:12px 0}.rules p{margin:8px 0}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition:none!important}}

/* A single large playfield. No side columns or captions around the game. */
body{background:#eff3ef}
.app{max-width:none;min-height:100dvh;padding:12px 16px;display:flex;flex-direction:column;align-items:center}
.top{width:100%;max-width:900px;min-height:37px;margin:0 auto 12px;flex-shrink:0}
.brand small{display:none}.brand{font-size:14px}.top-tools{gap:8px}.quiet{white-space:nowrap}
.layout{display:block;width:min(100%,calc((100dvh - 78px) * 2 / 3));max-width:none;margin:0 auto;flex-shrink:0}
.game-shell{border-radius:22px;box-shadow:0 12px 50px #21475013}
.record-inline{font-size:11px;color:#78928e;margin-right:7px;white-space:nowrap}
.record-inline b{font-size:13px;color:#3b6b7b;margin-left:5px}.record-inline b span{font-size:11px}
.screen-note{display:none}
@media(max-width:650px){
 .app{padding:9px 10px}.top{min-height:34px;margin-bottom:9px;gap:6px}.brand{font-size:11px;gap:6px}.mark{width:27px;height:29px;font-size:19px}
 .top-tools{gap:5px}.quiet{font-size:9px;padding:8px 7px;border-radius:8px}
 .record-inline{display:none}.layout{width:min(100%,calc((100dvh - 120px) * 2 / 3))}
 .game-shell{border-radius:18px}.touch-controls{margin-top:10px}.touch-controls button{height:40px;width:90px}
}
@media(max-width:390px){.brand .mark{display:none}.brand{font-size:10px}.quiet{font-size:8px;padding:8px 6px}.top-tools{gap:4px}}
@media(orientation:landscape) and (max-height:650px){.touch-controls{display:none}.layout{width:calc((100dvh - 67px) * 2 / 3)}.app{padding-top:7px}.top{margin-bottom:7px;min-height:30px}}
/* The game has its own page and never runs inside the site footer. */
.top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
.game-heading{display:flex;align-items:center;gap:20px;min-width:0}
.game-heading .brand{margin:0;font-size:15px;line-height:1.3;letter-spacing:0;white-space:nowrap}
.site-return{display:inline-flex;align-items:center;gap:7px;min-height:44px;color:#356e9a;font-size:12px;text-decoration:none;white-space:nowrap}
.site-return:hover{text-decoration:underline}
.site-return:focus-visible{outline:3px solid #efa743;outline-offset:3px;border-radius:3px}
.site-return svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.top-tools .quiet{min-height:44px}
.touch-controls button{height:44px}
.layout{width:min(100%,calc((100dvh - 94px) * 2 / 3))}
.dialog-back{overflow:auto;overscroll-behavior:contain;align-items:safe center}
.dialog{flex:none}
@media(max-width:650px){
 .top{grid-template-columns:minmax(0,1fr);gap:3px;margin-bottom:8px}
 .game-heading{justify-content:space-between;gap:12px}
 .game-heading .brand{font-size:14px}
 .top-tools{justify-content:flex-end}
 .top-tools .quiet{font-size:11px;padding:8px 12px}
 .layout{width:min(100%,calc((100dvh - 170px) * 2 / 3))}
 .touch-controls{margin-top:8px}
}
@media(max-width:390px){.home-card>.eyebrow{display:none}.home h2{font-size:30px}}
@media(orientation:landscape) and (max-height:650px){
 .top{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .top-tools .quiet{font-size:10px;padding:6px}
 .game-heading{gap:12px}
 .game-heading .brand{font-size:12px}
 .record-inline{display:none}
 .layout{width:min(100%,calc((100dvh - 74px) * 2 / 3))}
 .touch-controls{display:none}
 .home{padding:12px 14px 20px}
 .home h2{font-size:22px;line-height:1.1;margin:8px 0 14px}
 .home p,.home-sub,.hint-pills,.home-card>.eyebrow{display:none}
 .home .primary{min-width:0;width:100%;font-size:11px;padding:10px 8px}
 .dialog-back{padding:12px}
 .dialog{padding:14px}
 .dialog h2{font-size:20px}
}

button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation }
