.game-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:25px}
.game-card{scroll-margin-top:12px}
.game-tab{min-height:76px;border:1px solid var(--line);border-radius:12px;padding:14px 19px;display:flex;align-items:center;gap:13px;transition:background .15s,border-color .15s;background:#fbfbf5}
.game-tab:hover{background:#e9eddf}.game-tab[aria-current=page]{background:#e7edda;border-color:#aebc91}
.tab-icon{width:34px;height:34px;flex-shrink:0;color:#7c9161}.tab-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.game-tab strong{display:block;font-size:14px;letter-spacing:1px}.game-tab small{display:block;color:#68745d;font-size:10px;margin-top:5px}.tab-arrow{margin-left:auto;font-size:18px;color:#8a9a77}
.new-stage{height:350px;position:relative;isolation:isolate;overflow:hidden;touch-action:manipulation}
.new-stage h2{font-size:38px;line-height:1.25;letter-spacing:-1.6px;margin:13px 0}.new-stage p{font-size:12px;color:#6b795f;line-height:1.7;margin:0}
.stage-action{position:absolute;z-index:5;bottom:24px;left:50%;transform:translateX(-50%);min-width:146px;justify-content:center;min-height:44px;white-space:nowrap}
.stage-action:active:enabled{transform:translateX(-50%) scale(.985)}
.signal-stage{margin:18px 24px 0;border-radius:14px;background:#e3e9d8;transition:background .1s}
.signal-pad{width:100%;height:100%;border:0;background:transparent;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 16px 70px;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.signal-stage[data-state=waiting]{background:#f2d9c7}.signal-stage[data-state=go]{background:#cee978;transition:none}
.signal-stage[data-state=early]{background:#f5dfd1}.signal-stage[data-state=ended],.signal-stage[data-state=result]{background:#e1e9d4}
.signal-light{width:58px;height:58px;border:1px solid #8f9d7d;border-radius:50%;display:grid;place-items:center;position:relative;margin-bottom:7px}
.signal-light:before{content:'';width:22px;height:22px;background:#879773;border-radius:50%}
.signal-light:after{content:'';position:absolute;inset:-8px;border:1px dashed #aab699;border-radius:50%}
[data-state=waiting] .signal-light:before{background:#d87c55}[data-state=go] .signal-light:before{background:#3b632b}
.signal-stage h2{margin:17px 0 8px}.signal-stage[data-state=ended] h2,.signal-stage[data-state=result] h2{font-size:55px;font-variant-numeric:tabular-nums;letter-spacing:-2px}
.round-history{list-style:none;padding:0;margin:14px 24px 6px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.round-history li{border:1px dashed #c6d0b8;border-radius:7px;text-align:center;padding:8px 2px;font-size:12px;font-variant-numeric:tabular-nums;min-width:0}.round-history li.filled{border-style:solid;background:#f8faf1}.round-history small{display:block;font-size:8px;color:#77826b;margin-bottom:4px}
.arcade-stats{grid-template-columns:repeat(3,minmax(0,1fr));padding-bottom:0}.arcade-stats .stat:nth-child(2){text-align:center}.arcade-stats .stat:last-child{text-align:right}
.stack-stage{background:radial-gradient(#bdc6b5 .65px,transparent .65px);background-size:18px 18px;height:370px;margin-top:10px}
.stack-stage canvas{display:block;width:100%;height:100%}.stack-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;z-index:2;padding:20px 20px 55px;background:linear-gradient(#edf0e5d9,#edf0e5ed)}
.stack-feedback{position:absolute;z-index:1;left:0;right:0;top:12px;text-align:center;font-size:11px;color:#5d744b;letter-spacing:1px;pointer-events:none;min-height:16px}
.stack-stage .stage-action{bottom:55px}.new-game .tap-area{padding-top:18px}.new-game .pause-button{width:34px;height:34px}
.game-description{font-size:12px;line-height:1.9;color:#6c7862;max-width:820px;padding-top:22px}.game-description h2{font-size:15px;color:var(--ink);margin:0 0 7px;letter-spacing:-.3px}.game-description p{margin:0}
.ad-section{margin-top:160px}.ad-section:empty,.ad-section:has(.adsbygoogle[data-ad-status="unfilled"]):not(:has(.adsbygoogle[data-ad-status="filled"])){display:none}.game-card,.new-stage,.game-tab{min-width:0}.mobile-input{display:none}
@media(max-width:760px){
 .site-header{height:66px}.site-header .icon-button{min-width:42px;min-height:42px}.game-nav{gap:7px;margin-top:17px}.game-tab{padding:12px 10px;min-height:69px;gap:8px;border-radius:10px}.tab-icon{width:24px;height:24px}.game-tab strong{font-size:12px}.game-tab small{font-size:9px;white-space:nowrap}.tab-arrow{display:none}
 .intro{padding:22px 0}.intro h1{font-size:29px;line-height:1.35}.intro-description{line-height:1.7}.new-stage{height:310px}.new-stage h2{font-size:32px}.signal-stage{margin:14px 14px 0}.signal-pad{padding-bottom:74px}.signal-stage p{font-size:11px}.signal-stage[data-state=result] h2,.signal-stage[data-state=ended] h2{font-size:45px}
 .new-game .tap-area{padding:14px 16px 16px}.tap-button{min-height:58px;font-size:15px}.round-history{margin:12px 14px 0;gap:5px}.round-history li{font-size:11px;padding:8px 1px}.stack-stage{height:330px}.stack-stage .stage-action{bottom:43px}.stack-overlay{padding-bottom:65px}
 .game-layout{gap:16px}.sidebar{grid-template-columns:1fr}.best-value strong{font-size:43px}.game-description{font-size:11px;line-height:1.9}.ad-section{margin-top:160px}.desktop-input{display:none}.mobile-input{display:inline}
 .game-top .live-tag{font-size:8px;letter-spacing:1px}.game-tools{gap:8px}.game-bottom{padding:0 16px;font-size:8px}.new-game .game-bottom .session-label{font-size:7px}.site-header .brand-sub{font-size:9px}.new-game .arcade-stats{padding-top:18px}
 footer{padding-bottom:calc(22px + env(safe-area-inset-bottom))}.game-nav a:focus-visible{outline-offset:2px}.stage-action{min-height:46px}.game-description h2{font-size:14px}
}
@media(max-width:370px){.game-tab{padding:11px 7px;gap:6px}.tab-icon{width:19px;height:19px}.game-tab strong{font-size:11px}.game-tab small{font-size:8px}.intro h1{font-size:26px}.intro-description{font-size:10px}.new-stage{height:285px}.stack-stage{height:310px}.signal-light{width:48px;height:48px}.new-game .game-top{padding-left:15px;padding-right:15px}.arcade-stats .stat>strong{font-size:22px}.game-bottom .session-label{letter-spacing:0}.stack-feedback{font-size:10px}}
@media(max-height:700px) and (max-width:760px){.intro{padding:16px 0}.intro h1{font-size:25px;margin:8px 0}.intro .eyebrow{font-size:7px}.game-nav{margin-top:12px}.game-tab{min-height:59px;padding-top:9px;padding-bottom:9px}.arena{height:270px}.new-stage{height:270px}.stack-stage{height:290px}}
.session-exit{display:none}
.result-dialog{border:1px solid #d9dfd0;border-radius:22px;padding:0;width:440px;max-width:calc(100% - 32px);max-height:calc(100dvh - 32px);background:var(--paper);color:var(--ink);overflow:auto;overscroll-behavior:contain}
.result-dialog::backdrop{background:#17251dd1;backdrop-filter:blur(7px)}
.result-inner{padding:24px 30px 22px;text-align:center}.result-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.result-top .eyebrow{font-size:8px;color:#7f8d73;letter-spacing:1.5px}
.result-close{width:44px;height:44px;background:transparent;border:1px solid #d7dece;border-radius:50%;font-size:26px;color:#66785a;line-height:1}
.result-mark{display:block;color:#809f43;font-size:66px;line-height:1.1;margin-top:18px}.result-game{font-size:11px;letter-spacing:2px;font-weight:750;margin:18px 0 8px;color:#71835e}.result-dialog h2{font-size:24px;letter-spacing:-1px;margin:0}
.summary-score{margin:22px 0 12px;display:flex;justify-content:center;align-items:baseline;gap:8px;flex-wrap:wrap}.summary-score strong{font-size:clamp(44px,12vw,68px);line-height:1;font-weight:600;letter-spacing:-3px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:100%}.summary-score>span{font-size:16px;color:#7b896e}
.summary-details{font-size:12px;line-height:1.8;color:#718061;min-height:44px;margin:0 0 20px;white-space:pre-line}.summary-best{background:#e6ecdc;border-radius:12px;display:flex;align-items:center;justify-content:space-between;padding:17px 18px;gap:12px;margin-bottom:22px;font-size:12px}.summary-best>span{color:#70805f}.summary-best strong{font-variant-numeric:tabular-nums}
.result-share{min-height:56px;border-radius:11px;width:100%;font-size:15px;display:flex;align-items:center;justify-content:center;gap:16px}.result-share>span{font-size:23px}.result-share:disabled{opacity:.6}
.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.result-actions button{min-height:50px;border:1px solid #cfd9c2;border-radius:10px;background:transparent;font-size:13px;font-weight:650;color:var(--ink)}.result-actions button:hover{background:#e8eddf}.share-status{font-size:11px;color:#5b7047;line-height:1.7;min-height:20px;margin:12px 0 0}.result-note{font-size:10px;color:#88957c;margin:10px 0 0}.share-fallback{width:100%;min-height:100px;margin-top:8px;padding:10px;border:1px solid #c6d3b6;border-radius:8px;font:inherit;font-size:12px;color:var(--ink);background:#fafbf5;resize:vertical}
@media(max-width:760px),(pointer:coarse) and (max-height:600px){
 body.session-open{overflow:hidden;overscroll-behavior:none}
 .session-open .site-header,.session-open .game-nav,.session-open .intro,.session-open .sidebar,.session-open .after-game,.session-open .game-description,.session-open .ad-section,.session-open footer{visibility:hidden}
 .session-open .game-card{position:fixed;z-index:100;inset:0;width:100%;max-width:none;height:100vh;height:100dvh;height:var(--play-height,100dvh);border:0;border-radius:0;display:flex;flex-direction:column;margin:0;padding:env(safe-area-inset-top) max(0px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(0px,env(safe-area-inset-left));overflow:hidden}
 .session-open .game-top{padding:10px 16px 0;flex-shrink:0;gap:9px;min-height:52px}.session-open .session-exit{display:block;min-height:40px;padding:0 9px;border:1px solid #ccd6bf;background:transparent;border-radius:9px;font:inherit;font-size:12px;color:#50613e;white-space:nowrap}.session-open .live-tag{margin-right:auto;letter-spacing:.8px;font-size:8px}.session-open .game-tools{gap:9px}.session-open .pause-button{width:40px;height:40px;display:grid;place-items:center}.session-open .level{font-size:8px}
 .session-open .stats-bar{padding:16px 22px 5px;flex-shrink:0}.session-open .stat>strong{font-size:26px}.session-open .stat>span{font-size:10px}.session-open .arena,.session-open .new-stage{height:auto;min-height:0;flex:1 1 0;margin-top:10px}.session-open .signal-stage{margin-left:16px;margin-right:16px}.session-open .signal-pad{padding-bottom:70px}.session-open .stack-stage{margin-top:6px}
 .session-open .tap-area,.session-open.new-game .tap-area{padding:14px 20px 12px;flex-shrink:0}.session-open .tap-button{min-height:60px;height:60px;font-size:16px}.session-open .tap-area>p{margin-top:8px;font-size:10px}.session-open .game-bottom{height:34px;flex-shrink:0}.session-open .round-history{margin:10px 16px 0;flex-shrink:0}.session-open .round-history li{padding:7px 2px}.session-open .stack-overlay{padding-bottom:60px}
 .result-dialog{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
 .result-inner{width:100%;max-width:470px;min-height:100%;margin:auto;padding:18px 26px 24px;display:flex;flex-direction:column;justify-content:center}.result-top{margin-bottom:auto}.result-mark{margin-top:24px;font-size:78px}.result-game{margin-top:22px}.result-dialog h2{font-size:27px}.summary-score{margin:30px 0 18px}.summary-score strong{font-size:clamp(52px,16vw,76px)}.summary-details{margin-bottom:24px;font-size:12px}.summary-best{padding:19px 18px;margin-bottom:26px}.result-share{min-height:60px}.result-actions button{min-height:52px}.result-note{margin-top:auto;padding-top:20px}
}
@media(max-height:650px) and (max-width:760px),(pointer:coarse) and (max-height:500px){
 .session-open .game-top{min-height:44px;padding-top:5px}.session-open .stats-bar{padding-top:8px}.session-open .stat>strong{font-size:22px}.session-open .tap-area,.session-open.new-game .tap-area{padding-top:8px;padding-bottom:8px}.session-open .tap-button{height:52px;min-height:52px}.session-open .tap-area>p{display:none}.session-open .game-bottom{height:27px}.session-open .round-history li{padding:4px 1px}.session-open .new-stage h2{font-size:27px}.session-open .signal-light{width:40px;height:40px}.session-open .signal-light:before{width:16px;height:16px}.session-open .signal-pad{padding-top:14px}.session-open .signal-pad h2{margin-top:13px}.session-open .stage-action{bottom:16px}.session-open .stack-stage .stage-action{bottom:25px}
 .result-inner{padding:12px 23px 18px}.result-mark{font-size:48px;margin-top:10px}.result-game{margin-top:12px}.result-dialog h2{font-size:23px}.summary-score{margin:18px 0 12px}.summary-score strong{font-size:55px}.summary-details{margin-bottom:12px;min-height:32px;font-size:11px}.summary-best{margin-bottom:16px;padding:14px 16px}.result-share{min-height:52px}.result-actions button{min-height:46px}.result-note{padding-top:12px}
}
@media(pointer:coarse) and (min-width:761px) and (max-height:500px){
 .session-open .game-bottom,.session-open .signal-light{display:none}.session-open .signal-pad{padding:8px 16px 52px}.session-open .signal-stage h2{font-size:30px;margin:8px 0}.session-open .signal-stage p{font-size:11px}.session-open .stack-overlay h2{font-size:25px}.session-open .stack-overlay{padding-bottom:42px}.session-open .stack-stage .stage-action{bottom:12px}.session-open .tap-area,.session-open.new-game .tap-area{padding:7px 20px}.session-open .stats-bar{padding-top:5px}.session-open .round-history{margin-top:5px}
}
