*{box-sizing:border-box}html,body{margin:0;min-height:100%;color:#243b35;background:#f5f7f4;font-family:Inter,'Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #178c72;outline-offset:5px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.topbar{height:76px;margin:auto;padding:0 48px;max-width:1440px;display:flex;align-items:center;justify-content:space-between}.brand img{display:block;width:112px;height:32px;object-fit:contain}.back-link{display:flex;align-items:center;gap:8px;font-size:13px;color:#64746e}.back-link svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5}.icon-button{height:42px;width:42px;border:1px solid #294c3b13;border-radius:50%;background:#ffffff65;display:grid;place-items:center;color:#314e43;padding:10px;transition:background .2s}.icon-button:hover{background:#fff}.icon-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.layout{max-width:1080px;margin:15px auto 24px;display:flex;gap:100px;align-items:center;justify-content:center;padding:0 32px}.intro-copy{width:300px;flex-shrink:0}.eyebrow{font-size:9px;font-weight:700;letter-spacing:2px;color:#6e8d7e}.intro-copy h1{font-weight:650;font-size:45px;letter-spacing:-2px;line-height:1.35;margin:23px 0}.intro-copy>p{font-size:15px;color:#7b8980;line-height:1.9;margin:20px 0 42px}.tiny-rule{display:flex;align-items:center;gap:17px;margin:18px 0}.tiny-rule span{font-size:10px;color:#6c9c87;border:1px solid #cdded3;border-radius:50%;width:27px;height:27px;display:grid;place-items:center}.tiny-rule p{font-size:13px;margin:0;color:#66796c}.intro-copy small{display:block;margin-top:45px;color:#96a79a;font-size:9px;letter-spacing:1.6px}.game-shell{position:relative;overflow:hidden;isolation:isolate;background:#e8ede9;width:430px;height:min(760px,calc(100svh - 120px));min-height:570px;flex-shrink:0;border-radius:28px;box-shadow:0 30px 90px #28473216,inset 0 0 0 1px #fff}canvas{width:100%;height:100%;display:block;touch-action:none;user-select:none;outline:none}.hud{position:absolute;top:29px;left:28px;right:22px;display:flex;justify-content:space-between;pointer-events:none}.score-block{display:flex;flex-direction:column}.score-label{font-size:10px;color:#657d70;letter-spacing:1.2px}.score-block>strong{font-size:56px;font-weight:650;line-height:1.22;letter-spacing:-3px;font-variant-numeric:tabular-nums;color:#234136}.best-label{font-size:10px;color:#809084;margin-top:5px}.best-label b{font-weight:600;color:#496553;margin-left:4px}.hud-actions{display:flex;gap:8px;pointer-events:auto;align-items:flex-start}.hud-actions .icon-button{width:36px;height:36px;padding:8px}.combo-label{position:absolute;top:156px;left:29px;font-size:10px;letter-spacing:1px;font-weight:600;color:#1c967d;transition:opacity .3s}.toast{position:absolute;top:29%;left:0;right:0;pointer-events:none;text-align:center;color:#267d64;font-size:18px;letter-spacing:1px;font-weight:600;opacity:0;transform:translateY(8px);transition:opacity .2s,transform .25s}.toast.show{opacity:1;transform:translateY(0)}.stage-hint{position:absolute;bottom:24px;left:0;right:0;text-align:center;pointer-events:none;font-size:11px;color:#71877b;letter-spacing:1px}.game-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:3}.game-overlay.opening{align-items:flex-end;background:linear-gradient(transparent 55%,#e8ede990 68%,#e8ede9 85%)}.opening-card{text-align:center;padding:20px 30px 28px;width:100%}.opening-card h2{font-size:29px;letter-spacing:-1px;font-weight:650;margin:10px 0 22px}.opening-card h2 span{display:block;color:#91a298;letter-spacing:2px;font-size:8px;margin-top:9px}.primary-button{width:100%;min-height:52px;border:0;background:#214c3b;color:#fff;font-size:14px;font-weight:600;border-radius:14px;box-shadow:0 5px 12px #17352915;transition:background .2s,transform .2s}.primary-button:hover{background:#166549;transform:translateY(-1px)}.primary-button:active{transform:scale(.99)}.primary-button span{float:right;margin-right:18px}.opening-card p{font-size:10px;color:#829187;margin:15px 0 0}.shaded{background:#e3ece4b8;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:28px}.dialog-card{width:100%;text-align:center;background:#fffaf3ed;border-radius:24px;padding:35px 25px;box-shadow:0 18px 50px #23493812}.dialog-card h2{font-size:23px;letter-spacing:-.5px;margin:16px 0}.dialog-card>p{font-size:12px;color:#829285;margin:15px 0 25px}.text-button{border:0;background:transparent;color:#68806e;display:inline-block;padding:14px;font-size:12px;text-decoration:none}.dialog-card .text-button{margin-top:8px}.result-score{font-size:75px;font-weight:650;line-height:1;letter-spacing:-4px;color:#245840;margin:26px 0 0;font-variant-numeric:tabular-nums}.dialog-card .result-caption{margin:8px 0 26px;font-size:10px;letter-spacing:1px}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);padding:20px 0;margin-bottom:25px;border-top:1px solid #e7eadd;border-bottom:1px solid #e7eadd}.result-stats>div{display:flex;flex-direction:column;gap:8px}.result-stats strong{font-size:19px;font-weight:600}.result-stats span{font-size:9px;color:#8c998e}.result-card small{display:block;color:#99a396;font-size:9px;margin-top:12px}.mobile-footer{display:none}dialog{border:0;border-radius:24px;padding:28px;width:min(440px,calc(100% - 36px));color:#304c3b;background:#fafbf6;max-height:calc(100svh - 48px);box-shadow:0 20px 100px #163a4925}dialog::backdrop{background:#142c3055;backdrop-filter:blur(5px)}.help-heading{display:flex;justify-content:space-between;align-items:center}.help-heading .icon-button{font-size:23px}dialog h2{font-size:24px;letter-spacing:-.5px;margin:20px 0}dialog>p{font-size:12px;line-height:1.9;color:#748373}.rules{margin:24px 0}.rules>div{display:flex;gap:18px;margin:18px 0;align-items:start}.rules strong{width:75px;flex-shrink:0;font-size:18px;line-height:1.5;color:#24775e}.rules p{margin:0;font-size:12px;font-weight:600}.rules span{display:block;color:#8b9689;font-size:11px;line-height:1.7;margin-top:5px;font-weight:400}.muted{font-size:10px!important;color:#91a18e!important}.record-row{border-top:1px solid #e2e9dc;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#8b9a84}.record-row .text-button{font-size:10px;padding-right:0}.danger{color:#b26656}#clear-confirm{font-size:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(max-width:850px){.layout{gap:45px}.intro-copy{width:235px}.intro-copy h1{font-size:36px}.game-shell{width:390px}.topbar{padding:0 26px}}@media(max-width:760px){html,body{background:#e8ede9}.topbar{height:54px;padding:0 18px;padding-top:env(safe-area-inset-top);height:calc(54px + env(safe-area-inset-top));background:#e8ede9}.topbar .brand img{width:94px}.topbar>.icon-button{width:32px;height:32px;padding:6px}.back-link{font-size:11px;gap:3px}.back-link svg{width:16px}.intro-copy{display:none}.layout{margin:0;padding:0;display:block}.game-shell{width:100%;height:calc(100svh - 54px - env(safe-area-inset-top));min-height:420px;max-height:1000px;border-radius:0;box-shadow:none}.hud{top:22px;left:24px;right:22px}.opening-card{padding:18px 32px max(26px,env(safe-area-inset-bottom))}.opening-card h2{font-size:29px;margin-bottom:20px}.stage-hint{bottom:max(22px,env(safe-area-inset-bottom))}.combo-label{left:25px;top:150px}.dialog-card{max-width:340px}.shaded{padding:25px}.score-block>strong{font-size:53px}}@media(max-height:650px){.game-shell{min-height:420px}.opening-card h2{font-size:24px;margin:5px 0 12px}.opening-card{padding-bottom:15px}.opening-card p{margin-top:9px}.opening-card>.eyebrow{display:none}.hud{top:18px}.score-block>strong{font-size:42px}.combo-label{top:130px}.result-card{padding:22px}.result-score{font-size:55px;margin-top:15px}.result-stats{padding:14px 0;margin-bottom:15px}.dialog-card h2{font-size:21px}.dialog-card .result-caption{margin-bottom:15px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.opening{pointer-events:none}.opening-card{pointer-events:auto}
.sr-only{top:0;left:0;margin:0}
.result-card{position:relative}.result-plai{position:absolute;width:92px;height:92px;object-fit:contain;right:8px;top:-55px;pointer-events:none}@media(max-height:650px){.result-plai{width:70px;height:70px;top:-40px}}
.wallet-hud{position:absolute;right:24px;top:87px;display:flex;flex-direction:column;align-items:flex-end;pointer-events:none}.wallet-label{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:600;color:#426e5c}.wallet-label em{font-style:normal;font-size:8px;font-weight:400;color:#7c9488;padding:2px 4px;border:1px solid #a9c2b755;border-radius:3px}.wallet-hud>strong{font-size:26px;line-height:1.3;letter-spacing:-.8px;color:#267b61;font-variant-numeric:tabular-nums}.run-earned{font-size:9px;color:#7e9485;margin-top:3px}.run-earned b{color:#38745c;font-size:11px;margin-left:3px}.coin-progress{font-size:8px;color:#8ba08f;margin-top:6px}.wallet-warning{position:absolute;top:185px;right:22px;left:22px;text-align:center;font-size:9px;line-height:1.6;color:#a2703e;background:#fff8e2c9;padding:5px 10px;border-radius:8px;pointer-events:none}.reward-notice{position:absolute;top:27%;left:20px;right:20px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;color:#176f56;opacity:0;transform:translateY(10px) scale(.96);transition:opacity .18s,transform .3s;pointer-events:none;filter:drop-shadow(0 2px 10px #fff9)}.reward-notice.show{opacity:1;transform:translateY(0) scale(1)}.reward-notice>img{width:27px;height:27px}.reward-notice>span{font-size:21px;font-weight:700;letter-spacing:-.5px}.reward-notice>small{width:100%;font-size:9px;letter-spacing:1px;text-align:center;color:#729681}.wallet-hud.pop>strong{animation:wallet-pop .5s ease}@keyframes wallet-pop{35%{transform:scale(1.3);color:#00a577}100%{transform:scale(1)}}.revive-card>p{line-height:1.8}.revive-cost{display:flex;align-items:center;justify-content:center;gap:8px;margin:22px 0 10px}.revive-cost strong{font-size:31px;letter-spacing:-.5px;color:#247a5a}.revive-cost strong span{font-size:16px;margin-left:2px}.revive-card .revive-balance{font-size:10px;margin:5px 0 22px}.revive-card small{font-size:9px;color:#8d9c8c}.revive-card #revive-status{font-size:10px;color:#a3733b;margin:4px 0 12px}.result-wallet{text-align:left;background:#edf4e9;border-radius:12px;padding:11px 14px;margin:0 0 18px;display:flex;flex-direction:column;gap:7px}.result-wallet>div{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;color:#7a8e79}.result-wallet strong{font-size:11px;color:#3f785b;font-weight:600}.result-wallet .text-button{margin:0;padding:6px;color:#9c7338}.result-stats{margin-bottom:14px}.result-card{padding-top:28px;padding-bottom:22px}.result-score{font-size:62px;margin-top:18px}.dialog-card .result-caption{margin-bottom:18px}.result-card h2{font-size:21px}.coin-rules{border-top:1px solid #e2e9dc;padding-top:12px}.coin-rules h3,.history-heading h3{font-size:13px;font-weight:600;display:flex;align-items:center;gap:7px}.coin-rules p{font-size:11px;color:#7d8d79;line-height:1.8}.coin-rules b{font-weight:600;color:#466c54}.record-bests{display:flex;gap:20px;font-size:10px;margin:20px 0;color:#83917b}.record-bests b{font-size:14px;margin-left:4px;color:#446b50}.wallet-history{border-top:1px solid #e2e9dc;margin:12px 0}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.history-heading a{font-size:10px;color:#508567}.wallet-history ol{list-style:none;margin:10px 0;padding:0;max-height:150px;overflow:auto}.wallet-history li{font-size:10px;line-height:1.8;color:#7e8f79;margin:6px 0}.wallet-history>p{font-size:10px;line-height:1.6;color:#9c815c}.wallet-history .text-button{font-size:10px;padding:5px 0}.revive-card .primary-button:disabled{opacity:.6;background:#8e9e8b}.result-card small{line-height:1.5}.combo-label{max-width:180px}@media(max-width:760px){.wallet-hud{top:80px;right:23px}.wallet-warning{top:180px}}@media(max-height:650px){.wallet-hud{top:67px}.wallet-hud>strong{font-size:23px}.coin-progress{display:none}.wallet-warning{top:154px;font-size:8px}.reward-notice{top:30%}.reward-notice>span{font-size:17px}.reward-notice>img{width:22px;height:22px}.result-card{padding:17px 19px}.result-card h2{font-size:18px;margin:11px 0}.result-score{font-size:45px;margin-top:10px}.dialog-card .result-caption{margin-bottom:11px}.result-stats{padding:11px 0;margin-bottom:11px}.result-stats strong{font-size:16px}.result-wallet{padding:9px 12px;margin-bottom:12px;gap:5px}.result-card .primary-button{min-height:44px}.result-card .text-button{padding:10px;margin:0}.result-card small{font-size:8px;margin:3px 0}.revive-card{padding:25px 22px}.revive-card>p{margin-bottom:15px}}@media(prefers-reduced-motion:reduce){.wallet-hud.pop>strong{animation:none}.reward-notice{transform:none}}

/* Revive decision: separate the offer, actions and explanation. */
#revive-overlay{overflow-y:auto;overscroll-behavior:contain;padding:20px;align-items:flex-start}
.revive-card{margin:auto;width:100%;max-width:390px;padding:30px 24px 24px;display:flex;flex-direction:column;gap:24px;flex-shrink:0}
.revive-heading h2{font-size:24px;line-height:1.35;margin:14px 0 16px}
.revive-heading p{font-size:12px;color:#74877b;line-height:1.85;margin:0;text-wrap:pretty}
.revive-summary{padding:4px 0}
.revive-card .revive-cost{margin:0 0 10px;gap:9px}
.revive-card .revive-balance{margin:0;font-size:11px;line-height:1.6}
.revive-actions{display:flex;flex-direction:column;gap:12px}
.revive-actions .primary-button,.revive-actions .text-button{width:100%;min-height:50px;margin:0;padding:12px 14px;border-radius:14px;line-height:1.5}
.revive-actions .text-button{border:1px solid #dce5da;background:#f2f6ef;color:#506d5d;font-size:12px}
.revive-actions .text-button:hover{background:#e8f0e4}
.revive-actions button:focus-visible{outline:3px solid #178c72;outline-offset:3px}
.revive-notes{border-top:1px solid #e5e9df;padding-top:16px;display:flex;flex-direction:column;gap:9px}
.revive-card #revive-status{margin:0;color:#7c8879;font-size:10px;line-height:1.7;text-wrap:pretty}
.revive-card #revive-status:empty{display:none}
.revive-card small{display:block;font-size:9px;line-height:1.6}
@media(max-width:360px){#revive-overlay{padding:14px}.revive-card{padding:24px 18px 20px;gap:20px}.revive-heading h2{font-size:22px}.revive-heading p{font-size:11px}.revive-actions .primary-button{font-size:13px}}
@media(max-height:650px){#revive-overlay{padding:14px}.revive-card{padding:22px 20px 18px;gap:17px}.revive-heading h2{font-size:22px;margin:12px 0}.revive-heading p{font-size:11px;line-height:1.7}.revive-notes{padding-top:12px;gap:7px}.revive-actions .primary-button,.revive-actions .text-button{min-height:46px;padding:10px 12px}.revive-card .revive-cost strong{font-size:28px}}

/* Long holds are game input, not text-selection gestures. Dialog copy, page copy,
   links, inputs and scrolling outside the canvas retain browser defaults. */
#jump-canvas,.hud,.wallet-hud,.wallet-warning,.reward-notice,.combo-label,.toast,.stage-hint{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

/* Personal records and voluntary score sharing. */
#result-overlay{overflow-y:auto;overscroll-behavior:contain;align-items:flex-start;padding:24px 18px;touch-action:pan-y}
#result-overlay .result-card{margin:auto;flex-shrink:0;position:relative}
.record-improvement{color:#137e68;font-weight:700;font-size:14px;margin:8px 0 14px!important}
.record-reward{position:relative;border:1px solid #b8ddc6;border-radius:16px;padding:13px;background:linear-gradient(135deg,#e0f3de,#f8f2d6);margin:12px 0;overflow:hidden}
.record-reward>strong{font-size:16px;color:#14765d;position:relative;z-index:1}.record-reward>p{font-size:10px;line-height:1.7;margin:7px 0 0;color:#5c7867}.record-reward .text-button{font-size:11px}
.record-coin-flight{pointer-events:none;position:absolute;inset:0;overflow:hidden;display:none}.record-coin-flight img{position:absolute;left:14%;bottom:-24px;width:26px;opacity:0}.record-coin-flight img:nth-child(2){left:43%;animation-delay:.12s!important}.record-coin-flight img:nth-child(3){left:70%;animation-delay:.24s!important}.record-reward.celebrate .record-coin-flight{display:block}.record-reward.celebrate .record-coin-flight img{animation:recordCoinFly 1.35s ease-out}.record-reward.celebrate{animation:recordGlow 1.35s ease-out}
@keyframes recordCoinFly{15%{opacity:1}70%{opacity:1}100%{transform:translate(35px,-115px) scale(.5);opacity:0}}@keyframes recordGlow{30%{box-shadow:0 0 0 8px #72d8b82b;filter:brightness(1.06)}}
.personal-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:14px 0}.personal-actions .text-button{font-size:11px;border:1px solid #dce5da;border-radius:10px;padding:10px 4px;margin:0}
.personal-dialog{max-width:440px;width:calc(100% - 32px);padding:24px;border:1px solid #dce5da;border-radius:24px;background:#fffaf3;color:#244a3e;max-height:85dvh;overflow-y:auto;overscroll-behavior:contain}.personal-dialog::backdrop{background:#1b3e3466;backdrop-filter:blur(5px)}.personal-dialog h2{font-size:23px;letter-spacing:-.6px;margin:18px 0}.personal-note{font-size:11px;line-height:1.8;color:#738174}.record-rules{border-top:1px solid #dce5da;padding-top:18px;margin:20px 0}.record-rules h3{font-size:15px}.record-rules p{font-size:11px;line-height:1.8}.records-periods{display:grid;gap:10px;margin:20px 0}.period-card{padding:15px;border-radius:14px;background:#f0f4ea}.period-card h3{font-size:13px;margin:0 0 10px}.period-scores{display:grid;grid-template-columns:1fr 1fr;gap:10px}.period-scores span{font-size:10px;color:#728571;display:block}.period-scores strong{font-size:24px;color:#285e49;display:block;margin:4px 0}.period-scores small{font-size:9px;color:#889180}.share-preview{display:block;width:100%;max-width:270px;margin:0 auto;border-radius:15px;box-shadow:0 10px 30px #244a3e18}.share-actions{display:grid;gap:8px;margin:18px 0}.share-actions .primary-button{width:100%}.share-actions .text-button{margin:0;padding:8px}.personal-dialog input{display:block;width:100%;font:inherit;margin:6px 0;padding:10px;border:1px solid #c9d7c5;border-radius:8px;background:white;color:#244a3e;user-select:text;-webkit-user-select:text}.personal-dialog button:focus-visible{outline:3px solid #178c72;outline-offset:3px}
@media(max-width:360px){.personal-dialog{padding:18px}.personal-dialog h2{font-size:21px}#result-overlay .result-card{padding:24px 17px}.personal-actions{gap:5px}.personal-actions .text-button{font-size:10px}}
@media(prefers-reduced-motion:reduce){.record-reward.celebrate,.record-reward.celebrate .record-coin-flight img{animation:none!important}.record-coin-flight{display:none!important}}

.result-card>.record-coin-flight{position:absolute;inset:auto;width:1px;height:1px;overflow:visible;z-index:5;display:none}.result-card>.record-coin-flight.fly{display:block}.result-card>.record-coin-flight img{left:0;bottom:0;width:26px}.result-card>.record-coin-flight.fly img{animation:recordFlyToBalance 1.15s ease-in-out}.result-card>.record-coin-flight.fly img:nth-child(2){left:-16px}.result-card>.record-coin-flight.fly img:nth-child(3){left:16px}@keyframes recordFlyToBalance{0%{opacity:0;transform:translate(0,0) scale(.5)}15%{opacity:1;transform:translate(0,-18px) scale(1.05)}85%{opacity:1}100%{transform:translate(var(--coin-dx),var(--coin-dy)) scale(.35);opacity:0}}
@media(prefers-reduced-motion:reduce){.result-card>.record-coin-flight.fly{display:none!important}}

#result-overlay .result-plai{position:static;display:block;width:92px;height:92px;margin:-10px auto 0}#result-overlay .result-plai[hidden]{display:none}.reward-notice.surprise{background:linear-gradient(130deg,#f0e4ffef,#fff0c9f5);border:2px solid #baa0d7;border-radius:22px;padding:18px 12px;color:#705188;box-shadow:0 12px 40px #8460a530;top:31%;font-size:22px}.reward-notice.surprise small{color:#816b8c}.reward-notice.surprise>img{width:40px;height:40px}.reward-notice.surprise.show{transform:translateY(0) scale(1)}@media(max-width:360px){.reward-notice.surprise{font-size:17px;padding:14px 8px;left:12px;right:12px}}

.district-hint{position:absolute;bottom:calc(max(22px, env(safe-area-inset-bottom, 0px)) + 30px);left:14px;right:14px;margin:0;text-align:center;font-size:10px;line-height:1.5;color:#698773;pointer-events:none;user-select:none;-webkit-user-select:none}.neighborhood-note{font-size:11px;line-height:1.8;color:#718575}@media(max-width:360px){.district-hint{font-size:9px}}

.game-shell .stage-hint{margin:0;bottom:max(22px, env(safe-area-inset-bottom, 0px))}

.welcome-notice{position:absolute;bottom:calc(max(22px, env(safe-area-inset-bottom, 0px)) + 72px);left:16px;right:16px;text-align:center;pointer-events:none;padding:7px 10px;border-radius:12px;background:#f9f6e7ed;color:#456a59;font-size:12px;line-height:1.5;z-index:3;box-shadow:0 4px 18px #47634b12}.welcome-notice[hidden]{display:none}
.game-shell .reward-notice.surprise{top:auto;bottom:calc(max(22px, env(safe-area-inset-bottom, 0px)) + 72px);left:16px;right:16px;padding:8px 10px;gap:4px;border-width:1px;border-radius:14px;box-shadow:0 3px 16px #8460a519;z-index:3}.game-shell .reward-notice.surprise>img{width:20px;height:20px}.game-shell .reward-notice.surprise>span{font-size:14px;line-height:1.4;text-align:center;letter-spacing:0}.game-shell .reward-notice.surprise>small{font-size:9px;line-height:1.3}@media(max-width:360px){.welcome-notice{font-size:11px}.game-shell .reward-notice.surprise>span{font-size:13px}}

/* Readable onboarding and visual-only charge / result hierarchy. */
.opening-guide{margin:0 0 16px;padding:12px 14px;border:1px solid #bfd1c5;border-radius:14px;background:#f9fcf5ed;text-align:left;color:#294e3d}
.opening-guide strong{display:block;font-size:16px;line-height:1.5}.opening-guide span{display:block;font-size:12px;line-height:1.8;margin:5px 0}.opening-guide small{display:block;font-size:10px;line-height:1.6;color:#586d5f}
.opening-card h2{margin-bottom:14px}.opening-card p{font-size:11px;color:#526d5d}
.game-shell .stage-hint{font-size:12px;font-weight:600;color:#355c48;text-shadow:0 1px 5px #fff}

.game-shell[data-charging="true"] .welcome-notice{visibility:hidden}
.result-card .result-score{font-size:68px;margin-top:16px}.result-card .result-stats{grid-template-columns:repeat(3,1fr);padding:15px 0;margin:0 0 14px}.result-stats strong{font-size:24px;color:#285b43}.result-stats span{font-size:11px;color:#5c7565}
.result-reward-total{border:1px solid #bad5bd;border-radius:15px;background:#e9f2df;padding:13px;margin:0 0 12px}.result-reward-total>span{display:block;font-size:11px;color:#52704d}.result-reward-total>strong{display:block;font-size:25px;color:#245d41;line-height:1.5;font-variant-numeric:tabular-nums}.result-reward-total>small{font-size:9px;color:#667e61;margin:4px 0 0}.result-wallet{background:transparent;border:1px solid #e3e9de;padding:10px 12px}.result-wallet strong{font-size:11px}.result-card .record-reward{padding:10px;margin:10px 0}.record-reward>strong{font-size:13px}
@media(max-height:650px){.opening-guide{padding:8px 12px;margin-bottom:10px}.opening-guide strong{font-size:14px}.opening-guide span{font-size:11px;margin:3px 0}.opening-guide small{font-size:9px}.opening-card h2{font-size:22px}.result-card .result-score{font-size:56px}.result-card .result-stats{padding:12px 0}.result-stats strong{font-size:21px}}

/* Compact opening sheet: readable copy stays below the character. */
.game-shell .opening-card{padding:15px 22px max(20px,env(safe-area-inset-bottom));background:#eef3edfa;border-top:1px solid #fff;border-radius:22px 22px 0 0;box-shadow:0 -8px 28px #365a3810}
.game-shell .opening-card h2{font-size:22px;line-height:1.2;margin:0 0 10px;letter-spacing:-.5px}
.game-shell .opening-guide{padding:9px 12px;margin:0 0 10px;border-radius:12px;background:#fffdf7}
.game-shell .opening-guide strong{font-size:14px}.game-shell .opening-guide span{font-size:11px;line-height:1.6;margin:3px 0}.game-shell .opening-guide small{font-size:10px;line-height:1.4}.game-shell .opening-card p{font-size:10px;line-height:1.4;margin:8px 0 0}
@media(max-height:650px){.game-shell .opening-card{padding:11px 20px max(12px,env(safe-area-inset-bottom))}.game-shell .opening-card h2{font-size:19px;margin-bottom:7px}.game-shell .opening-guide{padding:7px 11px;margin-bottom:8px}.game-shell .opening-card .primary-button{min-height:44px}.game-shell .opening-guide small{display:none}}

/* Character-anchored charge ring: fixed readable size, no foot/bottom duplicate. */
.charge-ring{position:absolute;z-index:2;width:64px;height:64px;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;background:#153f35;box-shadow:0 3px 10px #123a3540;pointer-events:none;user-select:none;-webkit-user-select:none;display:grid;place-items:center;color:#fff}
.charge-ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}.charge-ring circle{fill:none;stroke-width:6}.charge-ring-track{stroke:#57796f}.charge-ring-fill{stroke:#e6fa8d;stroke-dasharray:100;stroke-dashoffset:100;stroke-linecap:round}.charge-ring>span{font-size:14px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.5px}


/* Equal-row result actions, with large tap targets on narrow screens. */
.result-main-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.result-main-actions>.primary-button,.result-main-actions>.text-button{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:0;padding:10px 6px;font-size:13px;line-height:1.4;white-space:nowrap;text-decoration:none;border-radius:13px}
.result-main-actions>.text-button{border:1px solid #c7d7cb;background:#f3f6ee;color:#466b57}
@media(max-height:700px){#result-overlay .result-card{padding:20px 18px}.result-card h2{margin:12px 0}.result-card .result-score{margin-top:8px;font-size:48px}.result-card .result-caption{margin:3px 0 12px}.result-card .result-stats{padding:10px 0;margin-bottom:10px}.result-reward-total{padding:9px;margin-bottom:9px}.personal-actions{margin:10px 0}.result-main-actions{margin-top:8px}}

.hud-actions #jump-board-open{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px}

/* One score presentation; original geometry and replay rules stay unchanged. */
.hud-actions .icon-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;flex:0 0 44px}
.hud-actions .icon-button svg{width:22px;height:22px;display:block}
.hud-actions #jump-board-open{background:#95701f;color:#fff;border-color:#876219}
.hud-actions #jump-board-open:hover{background:#805c16}
.np-unified-game .result-card #share-open{position:absolute;right:9px;top:9px;border:0;background:transparent;color:#526e5d}
.np-unified-game .result-card .personal-actions .np-board-trophy svg{stroke:#95701f}
.np-jump-leaderboard ol{list-style:none;margin:0;padding:0}
.np-jump-leaderboard li{display:grid;grid-template-columns:25px 40px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 0;border-top:1px solid #d7e3ec}
.np-jump-leaderboard li>span:nth-last-child(2){overflow-wrap:anywhere;min-width:0;font-size:14px}
.np-jump-leaderboard li strong{font-variant-numeric:tabular-nums;font-size:16px}
.np-board-avatar{width:40px;height:40px;border-radius:50%;background:#e5ece9;overflow:hidden;display:block}
.np-board-avatar img{width:40px;height:40px;object-fit:contain}
.np-board-place{display:grid;place-items:center;font-size:14px;color:#566d63}
.np-board-place svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.np-board-place.gold{color:#94701f}.np-board-place.silver{color:#677c8e}.np-board-place.bronze{color:#986142}
.np-jump-leaderboard [data-board-refresh]{margin-left:auto;margin-right:8px;width:44px;height:44px;padding:0;font-size:25px;min-height:44px}
.np-jump-leaderboard [data-board-status]:empty{display:none}
.period-scores{grid-template-columns:1fr}
@media(min-width:761px){.game-shell .opening-guide{display:none}}

/* Matching board-header controls, including failed/loading states. */
.np-jump-leaderboard header{gap:8px;align-items:center}
.np-jump-leaderboard header h2{flex:1;min-width:0;font-size:22px}
.np-jump-leaderboard header .np-board-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;margin:0;border:1px solid #c4d3df;border-radius:14px;background:#e5edf5;color:#34516b;box-shadow:none;line-height:1}
.np-jump-leaderboard header .np-board-icon svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.np-jump-leaderboard header .np-board-icon:disabled{opacity:.55;cursor:wait}
.np-jump-leaderboard header .np-board-icon:focus-visible{outline:3px solid #347bd5;outline-offset:3px}
@media(max-width:390px){.np-jump-leaderboard header h2{font-size:20px}}
