/* Compact navigation above a full-width game workspace. */
:root{--top-height:64px}
body{background:#eef0f5}
header.arcade-top{height:var(--top-height);min-height:0;padding:8px 20px;gap:14px;flex-wrap:nowrap;position:sticky;top:0;z-index:30;box-shadow:0 2px 12px #1417250a}
.arcade-top .brand{font-size:18px;white-space:nowrap;gap:8px}.arcade-top .brand-icon{width:32px;height:32px;font-size:24px;border-radius:9px}.top-spacer{flex:1}
.top-dropdown{position:relative}.top-dropdown>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 12px;border:1px solid #dcdfe8;border-radius:10px;background:#f8f9fc;font-size:14px;white-space:nowrap}.top-dropdown>summary::-webkit-details-marker{display:none}.top-dropdown>summary:focus-visible{outline:3px solid #7756e7;outline-offset:2px}.top-dropdown[open]>summary{background:#ede8fa;border-color:#b2a0df}#current-game-icon{font-size:22px}.top-popover,.game-menu{position:absolute;top:calc(100% + 10px);background:white;border:1px solid #dcdfe8;box-shadow:0 12px 40px #1b203326;border-radius:14px;padding:16px;max-height:calc(100dvh - 90px);overflow:auto;z-index:40}.game-menu{left:0;width:320px;display:block}.game-category+ .game-category{margin-top:14px}.game-category h2{font-size:12px;color:#777384;letter-spacing:1px;margin:0 0 6px}.game-menu .game-tab{width:100%;display:flex;flex:none;padding:9px 10px;margin:3px 0;border-radius:8px;gap:10px;box-shadow:none;justify-content:flex-start}.game-menu .tab-fruit{display:block;font-size:23px;min-width:30px;text-align:center}.game-menu .game-tab strong{font-size:14px}.game-menu .game-tab small,.game-menu .tab-arrow{display:none}.game-menu .game-tab.active{background:#ece6fa;color:#392c62;border-color:#c9b9e8}.top-popover{right:0;width:340px}.top-popover .how{display:block;padding:0}.top-popover .how h2{margin:8px 0 14px}.top-popover .account{max-width:none;width:100%;text-align:left}.top-popover #account-actions{flex-wrap:wrap;justify-content:flex-start}.top-popover .account-state{margin-top:12px;line-height:1.7}.top-popover .account-name{max-width:100%}
main{max-width:none;width:100%;margin:0;padding:12px}.layout{display:block}.layout>section{width:100%;min-height:calc(100dvh - var(--top-height) - 24px);border-radius:14px;margin:0}.game-heading,.r-head,.b-head,.m-head,.s-head{padding:12px 20px}.game-heading h2,.r-head h2,.b-head h2,.m-head h2,.s-head h2{font-size:20px;margin:0}.game-tag,.r-kicker,.b-head small,.m-head small,.s-head small,.r-head h2 span{display:none}.stats,.r-hud,.b-stats,.m-stats,.s-stats{padding:0 20px 12px;gap:24px}.stats span{margin-bottom:2px}.stats strong,.b-stats strong{font-size:24px}.r-hud b{font-size:18px}.r-bars{padding:0 20px 12px}.game-footer,.r-bottom,.b-controls{padding:10px 20px}.r-controls{padding:10px 20px 0}
#arena{min-height:0;padding:16px}#apple-board{height:max(360px,calc(100dvh - 260px));min-height:0;grid-template-rows:repeat(8,minmax(0,1fr));gap:8px}.apple .digit{font-size:clamp(20px,2.5vw,34px)}
.lemon-mode #arena{padding:8px 16px;display:flex;align-items:center;justify-content:center;min-height:calc(100dvh - 248px)}#lemon-canvas{width:min(100%,calc(max(340px,100dvh - 248px)*.888889));max-width:none;height:auto;max-height:none}
.r-field{width:min(100%,calc(max(320px,100dvh - 255px)*1.451613));min-height:0;margin:0 auto;aspect-ratio:900/620}.b-field{width:min(100%,calc(max(320px,100dvh - 230px)*1.2));margin:0 auto;aspect-ratio:720/600}
.m-field{padding:16px}#m-board{width:min(100%,max(320px,calc(100dvh - 300px)));max-width:760px}.m-actions,.s-actions{padding:12px 20px}.m-help,.s-help{padding-bottom:12px}
#s-board{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;padding:20px;min-height:calc(100dvh - 330px);align-content:center}.s-slot{min-height:94px}.s-item{font-size:40px}.s-slot small{font-size:14px}.s-shelf-label{font-size:12px}
@media(min-width:1600px){#s-board{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1000px){#s-board{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){:root{--top-height:56px}header.arcade-top{padding:6px 10px;gap:8px}.brand-name,.top-label{display:none}.arcade-top .brand{gap:0}.top-dropdown>summary{min-height:38px;padding:6px 9px}#current-game-name{font-size:13px}.top-popover,.game-menu{position:fixed;top:62px;left:10px;right:10px;width:auto;max-height:calc(100dvh - 76px)}main{padding:6px}.layout>section{border-radius:10px;min-height:calc(100dvh - 68px)}.game-heading,.r-head,.b-head,.m-head,.s-head{padding:10px 12px}.stats,.r-hud,.b-stats,.m-stats,.s-stats{padding:0 12px 10px;gap:12px}.stats strong{font-size:22px}.stats span{font-size:12px}.r-hud b{display:inline;padding-left:4px}.r-bars{padding:0 12px 10px;gap:12px}#arena{padding:10px}#apple-board{gap:4px;height:max(360px,calc(100dvh - 260px))}.apple .digit{font-size:20px}.game-footer{padding:10px 12px}.game-footer #status{font-size:12px}.r-field{width:100%;min-height:0;aspect-ratio:900/620}.r-title{font-size:26px}.r-bottom{padding:10px 12px}.r-controls{font-size:12px}.m-field{padding:12px}#m-board{width:100%}#s-board{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:16px 12px;min-height:0}.s-slot{min-height:78px}.s-item{font-size:32px}.s-slot small{font-size:12px}.s-stats .s-tag{display:none}}
