:root{--ink:#183b40;--paper:#fbfdf5;--mint:#e1f3ed;--line:#c5ded3}*{box-sizing:border-box}body{margin:0;background:var(--mint);color:var(--ink);font-family:ui-rounded,"Trebuchet MS",Arial,sans-serif}button,input{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation}button:active{transform:translateY(2px);box-shadow:none}button:focus-visible,input:focus-visible,canvas:focus-visible,summary:focus-visible{outline:3px solid #e26a37;outline-offset:4px}.app{max-width:1240px;margin:auto;padding:24px 28px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px}.brand{font-size:clamp(25px,3vw,42px);letter-spacing:-1.5px;margin:0;line-height:1.2;font-weight:900}.brand>span:first-child{color:#e58b13;text-shadow:1px 1px #855631}.leaf{color:#529255;font-size:29px;margin-left:10px}nav{display:flex;gap:12px}.small-button{border:2px solid var(--ink);background:#fcfef9;border-radius:15px;min-height:48px;padding:10px 19px;font-size:16px;font-weight:800;box-shadow:0 3px 0 var(--ink)}.layout{display:grid;grid-template-columns:minmax(0,760px) minmax(270px,1fr);gap:20px;align-items:stretch}.game-column{background:var(--paper);border:3px solid var(--ink);border-radius:24px;box-shadow:0 5px 0 var(--ink);overflow:hidden;min-width:0}.game-meta{display:flex;align-items:center;justify-content:space-between;padding:15px 24px 12px;border-bottom:1px solid #e0eada;font-size:17px;font-weight:700}.game-meta b{font:900 27px/1.2 ui-rounded,"Trebuchet MS",sans-serif;margin-left:5px;font-variant-numeric:tabular-nums}.game{position:relative;isolation:isolate;aspect-ratio:760/843}canvas{display:block;width:100%;height:100%;touch-action:none}.tools{position:absolute;right:1.7%;top:9%;width:13%;display:flex;flex-direction:column;gap:17px}.tool{height:132px;min-height:92px;background:#fff4d0;border:3px solid var(--ink);border-radius:20px;box-shadow:0 5px 0 var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%}.tool svg{height:46px;width:46px;fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.tool b{font-size:13px;white-space:nowrap}.tool span{font-size:15px;background:#ffffffbd;border-radius:20px;padding:3px 10px;white-space:nowrap}.hammer{background:#ffe3e9}.bomb{background:#dceced}.tool[aria-pressed=true]{outline:3px solid #ed8740;outline-offset:3px;background:#ffd35a;transform:translateY(3px);box-shadow:0 2px 0 var(--ink)}.tool:disabled{opacity:.48;filter:grayscale(.8);cursor:default}.tool[aria-pressed=true]:disabled{opacity:1;filter:none}.game-caption{min-height:43px;padding:4px 22px 16px;font-size:14px;line-height:1.5}.leaderboard{background:#fbfefa;border:2px solid #537a79;border-radius:23px;padding:25px 22px;display:flex;flex-direction:column}.leaderboard h2{font-size:29px;letter-spacing:-1px;margin:0;white-space:nowrap}.leaderboard h2>span{color:#e9ac20;font-size:38px;vertical-align:-3px}.ranking-subtitle{font-size:14px;margin:8px 0 15px;text-align:center;color:#4f6c6c}.local-badge{align-self:flex-end;background:#e0f1eb;padding:6px 12px;border-radius:20px;font-size:12px;margin-bottom:22px}.player-label{font-size:13px;font-weight:700;margin-bottom:5px}input{background:white;border:1px solid #9cbeb0;border-radius:10px;padding:10px;width:100%;font-size:16px;min-height:42px}input:disabled{color:#456659;background:#ecf4ef}#nameHelp{font-size:11px;margin-top:6px;color:#608078}table{width:100%;border-collapse:collapse;margin-top:22px;font-size:14px;table-layout:fixed}th{font-size:12px;color:#45655d;padding:12px 8px;background:#e6f1e9;text-align:left;font-weight:600}th:first-child{border-radius:10px 0 0 10px;width:22%}th:last-child{border-radius:0 10px 10px 0;width:28%;text-align:right}td{padding:15px 8px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}td:last-child{text-align:right;font-weight:800;white-space:nowrap}td:first-child{font-weight:800}tr:nth-child(even){background:#eff6f0}tr:first-child td:first-child{color:#b97b16}.current-run{background:#dff3e5;display:flex;justify-content:space-between;align-items:center;padding:18px;border-radius:16px;margin-top:auto;gap:10px;font-weight:800}.current-run strong{font-size:26px;font-variant-numeric:tabular-nums}.empty-ranking{font-size:15px;line-height:1.8;text-align:center;color:#668277;padding:24px 5px;margin:0 0 24px}.ranking-note{font-size:12px;color:#55736d;line-height:1.7;text-align:center}.storage-note{font-size:12px;color:#a3512f;line-height:1.5;margin:0}.mini-stats{border-top:1px solid var(--line);padding-top:15px;margin-top:8px;font-size:12px;color:#58756b;display:grid;gap:7px}.mini-stats>div{display:flex;justify-content:space-between}.article{margin-top:28px;border:1px solid #c4e5da;border-radius:22px;background:#fff;padding:28px 30px;font-size:16px;line-height:1.8}.article h2{font-size:26px;line-height:1.3;margin:28px 0 12px;letter-spacing:-.7px}.article>h2:first-child{font-size:33px;margin-top:0}.article p{color:#49605e;margin:8px 0 17px}.article-intro{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin:24px 0}.article-intro img{width:100%;height:auto;align-self:center;border-radius:16px}.article-intro>div{background:#eff7f1;border-radius:16px;padding:18px}.article-intro h2{font-size:23px;margin-top:0}.steps{padding-left:26px;line-height:1.6}.steps li{padding:5px 0 8px 3px}.tips{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;background:#f4faf5;border:1px solid #dfede3;border-radius:16px;padding:20px}.tips b{font-size:15px}.tips p{font-size:14px;margin:6px 0 0}details{border-top:1px solid #dbe9df;padding:14px 0}summary{cursor:pointer;font-weight:700}details p{font-size:15px}footer{text-align:center;font-size:12px;color:#6d8a7b;padding-top:22px}.overlay{position:absolute;inset:0;z-index:5;background:#e5efe7df;display:grid;place-items:center;backdrop-filter:blur(5px)}[hidden]{display:none!important}.dialog-card{width:85%;max-width:350px;background:var(--paper);border:3px solid var(--ink);border-radius:23px;padding:28px;text-align:center;box-shadow:5px 5px 0 var(--ink)}.dialog-card>span{font-size:11px;letter-spacing:2px;color:#52816b}.dialog-card h2{font-size:30px;margin:17px 0}.dialog-card p{font-size:15px;line-height:1.8}.dialog-card button{width:100%;margin-top:12px}.primary{background:#ffcf4c;border:2px solid var(--ink);border-radius:12px;min-height:48px;font-size:16px;font-weight:800;box-shadow:0 3px 0 var(--ink)}dialog{width:min(900px,94vw);max-height:88vh;border:2px solid var(--ink);background:var(--paper);color:var(--ink);border-radius:24px;padding:28px;box-shadow:6px 6px 0 #23383b}dialog::backdrop{background:#1c383e90;backdrop-filter:blur(5px)}.guide-header{display:flex;justify-content:space-between;align-items:center;gap:15px}.guide-header h2{margin:12px 0;font-size:26px}.eyebrow{font-size:11px;letter-spacing:2px;color:#50816b}dialog p,.guide-note{font-size:14px;line-height:1.8;color:#536a66}.fruit-route{display:grid;grid-template-columns:repeat(var(--route-count,8),1fr);gap:6px;border-top:1px solid var(--line);padding:14px 0}.fruit-cell{text-align:center;min-width:0}.fruit-cell canvas{max-width:100px;margin:auto;width:100%;aspect-ratio:1;height:auto}.fruit-cell span{font-size:12px}.fruit-cell small{display:block;font-size:10px;color:#718981;margin-top:4px}.guide-note{padding-top:15px;border-top:1px solid var(--line)}
@media(max-width:1100px){.app{padding:18px}.layout{grid-template-columns:minmax(0,1fr) 270px;gap:14px}.leaderboard{padding:19px 16px}.leaderboard h2{font-size:25px}.tool{height:110px;border-radius:16px;gap:3px}.tool svg{width:34px;height:34px}.tool b{font-size:11px}.tool span{font-size:12px;padding:3px 7px}.small-button{padding:9px 12px;font-size:14px}.topbar{gap:15px}.game-meta{padding:14px 17px;font-size:14px}.game-meta b{font-size:23px}}
@media(max-width:850px){.app{max-width:730px;padding:16px}.topbar{flex-wrap:wrap;gap:16px;margin-bottom:18px}.brand{font-size:34px}.topbar nav{width:100%;justify-content:flex-end}.layout{grid-template-columns:1fr;gap:22px}.tools{gap:14px}.tool{height:116px}.tool svg{width:40px;height:40px}.tool b{font-size:12px}.tool span{font-size:14px}.leaderboard{padding:22px}.leaderboard h2{font-size:29px}.current-run{margin-top:22px}.leaderboard input{max-width:300px}.article{padding:22px}.article-intro{grid-template-columns:1fr}.tips{grid-template-columns:1fr}.article>h2:first-child{font-size:28px}.fruit-route{grid-template-columns:repeat(4,1fr);gap:10px}}
@media(max-width:480px){.app{padding:12px 8px}.brand{font-size:29px}.topbar{padding:0 5px;gap:12px}.topbar nav{justify-content:space-between;gap:9px}.small-button{padding:8px 12px;font-size:13px;min-height:44px;border-radius:12px}.game-column{border-width:2px;border-radius:18px}.game-meta{padding:12px;font-size:12px}.game-meta b{font-size:22px;margin-left:2px}.tools{right:1.2%;width:13.4%;min-width:48px;gap:12px;top:7%}.tool{height:83px;min-height:83px;border-width:2px;border-radius:12px;box-shadow:0 3px 0 var(--ink);gap:3px}.tool svg{width:29px;height:29px}.tool b{font-size:10px;white-space:normal;line-height:1.05}.tool span{font-size:11px;padding:2px 6px}.game-caption{font-size:12px;padding:3px 12px 12px;min-height:38px}.article{padding:20px 17px}.article h2{font-size:23px}.article>h2:first-child{font-size:26px}.article-intro>div{padding:15px}.leaderboard{border-radius:18px}dialog{padding:18px}.guide-header h2{font-size:22px}}
.page-intro{font-size:16px;line-height:1.65;color:#49605e;margin:0 0 12px;max-width:960px}.layout{margin-top:22px}.article h3{font-size:20px;line-height:1.4;margin:25px 0 10px}.article a{color:#226c52;text-underline-offset:3px}.article a:hover{color:#974d22}.inline-cta{display:inline-block;text-decoration:none;padding:10px 18px}.fruit-orders{padding-left:24px;line-height:1.8}.fruit-orders li{margin:10px 0}
/* Sunny character edition */
:root{--ink:#65300c;--paper:#fff8da;--mint:#fff6d5;--line:#edce91}body{background:#fff9e7}.app{max-width:1220px}.brand{color:#924010}.brand>span:first-child{color:#f68d07}.topbar{flex-wrap:wrap;gap:16px}.topbar nav{flex-wrap:wrap;gap:8px}.small-button{border-color:#b95710;background:linear-gradient(#fff7bb,#ffd04d);box-shadow:0 3px 0 #b95710;font-size:13px;padding:9px 12px}.layout{display:block}.game-column{display:grid;grid-template-columns:190px minmax(0,1fr);background:linear-gradient(150deg,#ffd736,#ff9a2d 60%,#ffc313);border:3px solid #f2a025;box-shadow:0 5px 0 #d87311;border-radius:28px}.game-meta{grid-column:1;grid-row:1;padding:36px 12px;display:flex;flex-direction:column;justify-content:flex-start;gap:22px;align-items:stretch;border:0;text-align:center;font-size:18px}.game-meta>span{background:linear-gradient(#cf4a00,#f88613);border:4px solid #ffec82;border-radius:20px;box-shadow:0 4px 0 #ba5711;color:#fff6c9;padding:12px 4px;text-transform:uppercase;font-weight:900}.game-meta b{display:block;font-size:32px;color:white;margin:4px 0 0;text-shadow:1px 3px #ad4b08}.sunny-label{font-size:22px;line-height:1.2;font-weight:900;color:#9c4913;text-shadow:1px 1px #fff396}.rail-fruits{margin-top:auto}.rail-fruits canvas{width:100%;height:auto}.rail-hint{font-size:14px;color:#87471c;line-height:1.5}.game{grid-column:2;grid-row:1}.game-caption{grid-column:1/-1;text-align:center;color:#72360c;font-weight:700;padding:10px 15px;min-height:42px;background:#fff3a843}.tools{top:12%;right:2%;width:14%;gap:20px}.tool,.hammer,.bomb{background:linear-gradient(140deg,#fff36c,#ffbf00);border-color:#e9840e;box-shadow:0 5px 0 #d5790b;border-radius:19px;height:124px;position:relative;color:#5b2a09}.tool svg{width:42px;height:42px;stroke:#542d17}.tool b{font-size:12px}.tool span{background:#83c914;color:#fff;font-weight:900;box-shadow:0 2px 0 #4e9b14;border:2px solid #d5f589;font-size:12px}.tool[aria-pressed=true]{outline-color:#fff;box-shadow:0 0 0 6px #ff7931}.tool:disabled{opacity:.4}.scores-panel{margin-top:25px;border:2px solid #edc68d;border-radius:20px;padding:0;background:#fff9e7}.scores-panel>summary{padding:20px;font-size:22px;list-style-position:inside}.scores-panel>summary span{font-size:13px;font-weight:400;float:right;line-height:28px}.leaderboard{border:0;background:#fffdf3;border-radius:20px;padding:24px;display:grid;grid-template-columns:1fr 1fr;column-gap:28px}.leaderboard table,.empty-ranking{grid-column:1/-1}.leaderboard h2{font-size:26px}.ranking-subtitle{text-align:left}.local-badge{background:#ffe6a2}.current-run{background:#ffedb6}.leaderboard small{line-height:1.5}th{background:#ffedc1;color:#724b27}tr:nth-child(even){background:#fff5da}.ranking-note,.mini-stats{color:#80572d}.page-intro{margin:26px 0 10px;color:#725038}.article{border-color:#ecd6b8;background:#fffdf7}.article p{color:#725038}.overlay{background:#ffcb59d9}.dialog-card{background:#fff8d9}.share-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.share-actions button,.share-actions a{min-height:44px;padding:10px 14px}.share-actions a{border-radius:12px;background:#ffdf72;color:#65300c;text-decoration:none;font-weight:700}.share-preview{display:block;width:min(100%,420px);height:auto;margin:15px auto;border-radius:20px}.share-link{width:100%;margin:10px 0 15px}.share-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}#shareDialog{max-width:650px}#shareStatus{min-height:24px;text-align:center;font-size:13px}.topbar button[aria-pressed=false]{background:#f0e4d0;color:#846c4a}footer{color:#8c6744}
@media(max-width:850px){.app{max-width:900px}.game-column{grid-template-columns:140px 1fr}.game-meta{padding:30px 9px}.game-meta b{font-size:26px}.sunny-label{font-size:17px}.tool{height:102px;min-height:90px;gap:3px}.tool svg{width:32px;height:32px}.tools{gap:16px}.tool b{font-size:10px}.leaderboard{display:flex}.scores-panel>summary span{float:none;display:block;padding-left:22px}}
@media(max-width:600px){.app{padding:12px 8px}.topbar nav{width:100%;justify-content:flex-start}.brand{font-size:30px}.small-button{font-size:12px;padding:8px 10px}.game-column{display:block;border-radius:20px}.game-meta{display:flex;flex-direction:row;justify-content:space-between;padding:12px;gap:12px}.game-meta>span{padding:6px 15px;font-size:12px;border-width:2px;flex:1;border-radius:12px}.game-meta b{font-size:23px;display:inline;margin-left:8px}.sunny-label,.rail-fruits,.rail-hint{display:none}.tools{top:12%;right:1%;width:14%;gap:12px}.tool{height:82px;min-height:74px;border-width:2px;gap:2px;border-radius:12px}.tool svg{height:28px;width:28px}.tool b{font-size:9px;white-space:normal}.tool span{font-size:10px;padding:2px 5px}.game-caption{font-size:11px;padding:8px}.page-intro{font-size:15px}.scores-panel>summary{font-size:20px}.leaderboard h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
.player-controls{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 20px;background:#fff3bdc0;font-size:13px}.player-controls input{width:150px;min-height:40px;border-color:#d6a34b}.player-controls small{max-width:180px;font-size:11px}.player-controls .mini-stats{display:flex;gap:15px;margin:0 0 0 auto;padding:0;border:0;font-size:13px}.player-controls .mini-stats>span{white-space:nowrap}#scoresDialog{width:min(620px,94vw)}#scoresFrame{display:block;border:0;width:100%;height:440px;background:#fff8da;border-radius:12px;margin-top:16px}@media(max-width:600px){.player-controls{padding:10px 12px}.player-controls .mini-stats{width:100%;justify-content:space-between;margin:0}}
/* v9: quiet controls and native image saving */
.topbar{margin-bottom:16px}.game-column{grid-template-columns:180px minmax(0,1fr) 70px}.icon-toolbar{grid-column:3;grid-row:1;display:flex;flex-direction:column;align-items:center;gap:14px;padding:20px 8px;align-self:start}.round-control{position:relative;display:grid;place-items:center;flex-shrink:0;width:52px;height:52px;border-radius:50%;border:2px solid #dc173a;background:radial-gradient(ellipse at 30% 18%,#ffb4b3 0%,#ff5a6b 30%,#ed173e 63%,#ad0824 100%);box-shadow:0 4px 0 #a60c26,inset 0 2px 2px #ffffff99;color:#fff;font-size:32px;line-height:1;font-weight:900;padding:8px}.round-control:active{transform:translateY(3px);box-shadow:0 1px 0 #a60c26}.round-control svg{width:30px;height:30px;fill:white;stroke:white;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}.round-control svg .sound-wave{fill:none;stroke-width:2}.round-control[aria-pressed=false]:not(#fullscreen)::after{content:'';position:absolute;width:32px;height:3px;background:white;transform:rotate(-42deg);box-shadow:0 1px 1px #b82035;pointer-events:none}.name-card{text-align:left;color:#74350c}.name-card label{display:block;font-size:19px;font-weight:900;margin-bottom:8px}.name-card input{display:block;width:100%;min-height:46px;border:2px solid #efb846;background:#fff8d9;color:#65300c;border-radius:13px;font-weight:700}.game-meta{padding:26px 12px;gap:24px}.player-controls .mini-stats{margin:0;width:100%;justify-content:center;gap:24px}.settings-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}.settings-actions button{min-height:52px;font-size:16px}#settingsDialog{max-width:430px}.social-top{margin:16px 0}.social-top a{flex:1;text-align:center}.share-preview{touch-action:auto;user-select:auto;-webkit-user-select:auto;-webkit-touch-callout:default;max-width:100%;height:auto}.save-hint{text-align:center;font-size:16px;font-weight:bold;margin:16px 0}.save-hint small{display:block;font-size:12px;line-height:1.5;font-weight:400;margin-top:6px}.share-link-row{display:flex;gap:10px;align-items:center;margin:15px 0}.share-link-row input{min-width:0;flex:1}.share-link-row button{white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.game-column:fullscreen,.game-column.expanded-game{overflow:auto;border-radius:0;max-width:none;width:100vw;height:100dvh;align-content:start;grid-template-columns:180px minmax(0,min(760px,calc((100dvh - 80px)*760/843))) 70px;justify-content:center}.expanded-game{position:fixed;inset:0;z-index:30}.game-column:fullscreen .game,.expanded-game .game{width:100%}
@media(max-width:850px){.game-column{grid-template-columns:130px minmax(0,1fr) 58px}.icon-toolbar{padding:20px 5px;gap:13px}.round-control{width:46px;height:46px;font-size:28px}.game-meta{padding:24px 10px}.name-card label{font-size:16px}}
@media(max-width:600px){.game-column{display:grid;grid-template-columns:minmax(0,1fr) 46px}.game-meta{grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:8px;padding:10px;align-items:end}.name-card{display:block}.name-card label{font-size:12px;margin-bottom:4px}.name-card input{min-height:38px;height:38px;padding:7px;font-size:14px}.game-meta>span{padding:6px 4px;font-size:10px;margin:0}.game-meta b{display:block;font-size:19px;margin:3px 0 0}.game{grid-column:1;grid-row:2}.icon-toolbar{grid-column:2;grid-row:2;padding:12px 3px;gap:12px}.round-control{width:38px;height:38px;font-size:24px;padding:5px}.round-control svg{width:24px;height:24px}.tools{width:15%;right:1%;gap:10px}.tool{height:70px;min-height:64px}.tool svg{height:23px;width:23px}.tool b{font-size:8px}.tool span{font-size:9px}.player-controls{grid-column:1/-1}.player-controls .mini-stats{gap:14px;font-size:12px}.game-column:fullscreen,.game-column.expanded-game{display:grid;grid-template-columns:minmax(0,1fr) 46px;align-content:start}.share-link-row{gap:7px}.share-link-row button{padding:8px;font-size:12px}.social-top a{font-size:13px;padding:10px 6px}.settings-actions button{font-size:14px}}
/* Numbered layout: score above, actions top-right, live ranking on the left. */
.game-topline{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:10px 0 18px}.top-score{display:flex;gap:12px;align-items:center}.hud-score,.hud-time{display:block;border:2px solid #f5bd58;border-radius:17px;background:linear-gradient(#cd4d04,#fa8c10);color:#fff4cc;padding:10px 20px;font-size:14px;font-weight:900;text-transform:uppercase;box-shadow:0 3px 0 #b85d13}.top-score b{font-size:29px;margin-left:10px;color:#fff;font-variant-numeric:tabular-nums}.hud-time b{font-size:22px}.game-topline .icon-toolbar{display:flex;flex-direction:row;padding:0;gap:12px;align-self:auto}.game-column{grid-template-columns:210px minmax(0,1fr)}.game-meta{padding:22px 10px;gap:16px;min-height:0}#scoresFrame{height:590px;min-height:380px;flex:1;margin-top:0;background:#fff8da;border:1px solid #efbd64;border-radius:14px}.name-card{padding:0 4px}.game-column:fullscreen,.game-column.expanded-game{grid-template-columns:210px minmax(0,min(760px,calc((100dvh - 80px)*760/843)))}.game-topline:has(+.layout .expanded-game){position:fixed;top:8px;right:12px;z-index:40;background:#fff4c2;border-radius:18px;padding:8px}.settings-actions #sound{justify-self:center}.settings-actions #sound::after{pointer-events:none}
@media(max-width:850px){.game-column{grid-template-columns:170px minmax(0,1fr)}.game-meta{padding:16px 8px}.top-score b{font-size:25px}.hud-score,.hud-time{padding:9px 13px}}
@media(max-width:600px){.game-topline{gap:8px;flex-wrap:wrap}.top-score{gap:8px}.hud-score,.hud-time{padding:7px 10px;font-size:10px}.top-score b{font-size:22px;margin-left:6px}.hud-time b{font-size:17px}.game-topline .icon-toolbar{gap:8px;margin-left:auto}.game-column{display:flex;flex-direction:column}.game{order:0;width:100%}.game-meta{order:2;display:flex;flex-direction:column;align-items:stretch;padding:12px;gap:10px}.name-card{display:flex;align-items:center;gap:12px}.name-card input{width:180px}.name-card label{font-size:14px;margin:0}#scoresFrame{flex:none;height:420px;min-height:0;width:100%}.player-controls{order:1}.game-caption{order:3}.game-column:fullscreen,.game-column.expanded-game{display:flex;flex-direction:column}.game-column:fullscreen .game-meta,.expanded-game .game-meta{display:none}}
/* Fullscreen keeps controls visible and removes the ranking/name sidebar. */
.game-shell:fullscreen,.game-shell.expanded-game{position:fixed;inset:0;z-index:30;width:100vw;height:100dvh;max-width:none;background:linear-gradient(130deg,#ffd338,#ffac23);overflow:auto;display:flex;flex-direction:column;align-items:center;padding:8px 12px}.game-shell:fullscreen .game-meta,.game-shell.expanded-game .game-meta{display:none!important}.game-shell:fullscreen .game-topline,.game-shell.expanded-game .game-topline{position:static;width:min(1050px,100%);flex-shrink:0;margin:0 0 10px;padding:0;background:none}.game-shell:fullscreen .layout,.game-shell.expanded-game .layout{margin:0;width:min(100%,calc((100dvh - 100px)*760/843))}.game-shell:fullscreen .game-column,.game-shell.expanded-game .game-column{display:block;border:0;box-shadow:none}.game-shell:fullscreen .game,.game-shell.expanded-game .game{width:100%}.game-shell:fullscreen .player-controls,.game-shell.expanded-game .player-controls,.game-shell:fullscreen .game-caption,.game-shell.expanded-game .game-caption{display:none}.game-shell:fullscreen .top-score,.game-shell.expanded-game .top-score{gap:8px}@media(max-width:600px){.game-shell:fullscreen,.game-shell.expanded-game{padding:7px}.game-shell:fullscreen .game-topline,.game-shell.expanded-game .game-topline{gap:6px}.game-shell:fullscreen .layout,.game-shell.expanded-game .layout{width:min(100%,calc((100dvh - 126px)*760/843))}}
/* Consistent share, speaker-action and expand/collapse icons. */
.round-control .action-icon,.action-icon{fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}.round-control .speaker-icon{fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}.speaker-icon .speaker-body{fill:currentColor;stroke:none}.speaker-icon .speaker-detail{fill:none}#music::after,#sound::after{display:none!important}#overlayShare{display:flex;align-items:center;justify-content:center;gap:9px}#overlayShare .action-icon{width:24px;height:24px;flex-shrink:0}
/* Fit the entire desktop game into the first viewport without changing physics. */
@media(min-width:601px){
 .app{max-width:1220px;padding:12px 20px}
 .topbar{margin:0 0 8px}.brand{font-size:28px;line-height:34px}
 .game-shell:not(.expanded-game){--board-height:max(260px,calc(100dvh - 200px));max-width:calc(var(--board-height)*760/843 + 206px);margin:0 auto}
 .game-shell:not(.expanded-game) .game-topline{margin:0 0 10px;gap:10px}
 .game-shell:not(.expanded-game) .layout{margin-top:0}
 .game-shell:not(.expanded-game) .game-column{grid-template-columns:200px minmax(0,1fr);border-radius:20px}
 .game-shell:not(.expanded-game) .game{min-width:0;align-self:start}
 .game-shell:not(.expanded-game) .game-meta{padding:10px 8px;gap:8px;overflow:hidden;min-height:0;height:100%}
 .game-shell:not(.expanded-game) .name-card label{font-size:13px;margin-bottom:4px}
 .game-shell:not(.expanded-game) .name-card input{min-height:36px;height:36px;padding:6px 9px;font-size:14px}
 .game-shell:not(.expanded-game) #scoresFrame{height:0;min-height:0;flex:1;margin:0}
 .game-shell:not(.expanded-game) .player-controls{padding:5px 12px;min-height:25px}
 .game-shell:not(.expanded-game) .mini-stats{font-size:11px}
 .game-shell:not(.expanded-game) .game-caption{padding:4px 10px;min-height:24px;font-size:11px}
 .game-shell:not(.expanded-game) .hud-score,.game-shell:not(.expanded-game) .hud-time{padding:6px 12px;font-size:11px}
 .game-shell:not(.expanded-game) .top-score b{font-size:23px}
 .game-shell:not(.expanded-game) .round-control{width:40px;height:40px;padding:6px;font-size:26px}
 .game-shell:not(.expanded-game) .round-control svg{width:25px;height:25px}
 .game-shell:not(.expanded-game) .tools{top:12%;gap:10px}
 .game-shell:not(.expanded-game) .tool{height:auto;min-height:0;aspect-ratio:1/1.15;border-width:2px;border-radius:12px;gap:2px;padding:4px 1px}
 .game-shell:not(.expanded-game) .tool svg{width:38%;height:auto;max-height:35px}
 .game-shell:not(.expanded-game) .tool b{font-size:clamp(8px,1vw,11px);white-space:normal}
 .game-shell:not(.expanded-game) .tool span{font-size:10px;padding:1px 5px}
}
