.play-page{--game-width:720px;--side-min:200px;--edge:12px;--column-gap:12px;--touch-clearance:0px;--play-height:calc(100dvh - max(var(--edge), env(safe-area-inset-top)) - max(var(--edge), env(safe-area-inset-bottom)) - var(--touch-clearance));grid-template-columns:minmax(0, 1fr) var(--game-width) minmax(0, 1fr);gap:var(--column-gap);width:100%;height:100dvh;padding:max(var(--edge), env(safe-area-inset-top)) max(var(--edge), env(safe-area-inset-right)) max(var(--edge), env(safe-area-inset-bottom)) max(var(--edge), env(safe-area-inset-left));isolation:isolate;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;background:#0c1219;grid-template-rows:minmax(0,1fr);display:grid;position:relative;overflow:hidden}.game-stage{aspect-ratio:4/3;grid-area:1/2;align-self:center;width:100%;min-width:0;min-height:0;position:relative}.game-viewport{position:absolute;inset:0;overflow:hidden;container-type:size}.game-viewport canvas{image-rendering:pixelated}.game-surface{position:absolute;inset:0}.player-names{pointer-events:none;z-index:1;font-family:Segoe UI,ui-sans-serif,system-ui,sans-serif;font-weight:500;line-height:1.2;position:absolute;overflow:hidden}.player-names span{white-space:nowrap;text-overflow:ellipsis;text-shadow:0 1px 2px #000,0 0 2px #000;max-width:100%;position:absolute;top:0;left:0;overflow:hidden}.item-notice{z-index:60;border:1px solid var(--border);background:var(--surface);color:#dce2e7;text-align:center;pointer-events:none;border-radius:7px;max-width:90%;padding:8px 12px;font-size:13px;position:absolute;bottom:12px;left:50%;transform:translate(-50%)}.game-right{z-index:30;width:100%;min-width:0;max-width:280px;height:var(--play-height);pointer-events:none;flex-direction:column;grid-area:1/3;place-self:start;gap:8px;display:flex}.game-sidebar{width:100%;min-height:0;height:min(640px, 75dvh, var(--play-height));max-height:var(--play-height);overscroll-behavior:contain;pointer-events:none;overflow-y:auto}.game-left{z-index:110;width:100%;min-width:0;min-height:0;height:var(--play-height);pointer-events:none;flex-direction:column;grid-area:1/1;place-self:start end;gap:8px;display:flex}.game-chat{align-self:flex-end;width:100%;max-width:320px;min-height:0;margin-top:auto}.game-chat .chat-panel{pointer-events:none;border-color:var(--line);width:100%;min-height:0;max-height:100%;box-shadow:none;border-radius:7px;gap:6px;padding:8px}.game-chat .chat-history-box,.game-chat .chat-input-box,.game-chat .chat-history-toggle{pointer-events:auto}.game-chat .chat-history-box{flex-direction:column;min-height:0;display:flex}.game-chat .chat-input-box{flex-shrink:0}.game-chat .chat-input-box form{gap:5px}.game-chat .chat-input-box input{min-height:34px;padding:6px;font-size:12px}.game-chat .chat-input-box .icon-button{width:34px;min-height:34px;padding:6px}.game-chat :where(.chat-input-box) .lucide{width:17px;height:17px}.game-chat .chat-messages{max-height:min(360px, calc(var(--play-height) - 100px))}:where(.game-chat) .chat-messages p{font-size:12px}.game-chat .chat-history-toggle{background:0 0;border:0;justify-content:flex-start;align-self:flex-start;min-height:28px;padding:0;font-size:13px;display:flex}.game-chat .chat-history-toggle svg{width:17px;height:17px}.game-hud{pointer-events:none;flex-wrap:wrap;flex-shrink:0;align-items:center;gap:6px;font-size:13px;display:flex}.game-hud>*{flex:none;max-width:100%}.game-hud button{pointer-events:auto;min-height:36px;padding:6px 10px;font-size:13px}.game-hud .timer{white-space:nowrap;font-variant-numeric:tabular-nums;background:var(--surface);border:1px solid var(--line);border-radius:6px;align-items:center;gap:7px;padding:6px 8px;display:inline-flex}.game-hud .timer svg{color:#a4bfd9;width:17px;height:17px}.network-badge{pointer-events:auto;font-variant-numeric:tabular-nums;background:var(--surface);border:1px solid var(--line);white-space:nowrap;border-radius:6px;align-items:center;gap:6px;padding:6px 8px;font-size:12px;display:inline-flex}.network-badge .lucide{width:17px;height:17px}.network-good{color:#a8d7ad}.network-fair{color:#e8bd73}.network-poor{color:#f18a85}.in-game-panels{flex-direction:column;gap:8px;height:100%;font-size:12px;display:flex}.game-panel-pane{flex-direction:column;flex:1 1 0;min-width:0;min-height:0;max-height:max-content;display:flex}.in-game-panel{background:var(--surface);border:1px solid var(--line);pointer-events:auto;border-radius:7px;flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;overflow:hidden}.in-game-panel::details-content{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.in-game-panel>summary{cursor:pointer;flex-shrink:0;padding:9px;font-size:14px;line-height:20px}.in-game-panel h2{font-size:inherit;margin:0;font-weight:600;display:inline}.in-game-panel :where(h2) .lucide{vertical-align:middle;width:18px;height:18px;margin-right:6px}.in-game-panel p{flex-shrink:0;margin:6px 8px}.in-game-panel ol{overscroll-behavior:contain;flex:0 auto;min-height:0;margin:0;padding:0 8px;list-style:none;overflow-y:auto}.in-game-panel li{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 8px;padding:6px 2px;display:flex}.in-game-panel li>:first-child{overflow-wrap:anywhere;min-width:0;max-width:100%}.in-game-panel li strong{white-space:nowrap;color:var(--muted);margin-left:auto;font-weight:500}.records-panel>button{flex-shrink:0;align-self:start;min-height:28px;margin:6px 8px 8px;padding:4px 8px;font-size:11px}.players-panel .watch-player{text-align:left;font:inherit;background:0 0;border:0;min-width:0;min-height:24px;padding:0;display:inline}.players-panel .watch-player:disabled{opacity:1;cursor:default}.players-panel .watch-player[aria-pressed=true]{text-decoration:underline}.spectator-bar{border:1px solid var(--line);background:var(--surface);border-radius:7px;flex-direction:column;flex-shrink:0;align-items:stretch;gap:6px;padding:8px;font-size:12px;display:flex}.spectator-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.spectator-bar button{pointer-events:auto;min-height:32px;padding:5px;font-size:11px}.region-caption{z-index:1;text-align:center;text-shadow:2px 2px #000;pointer-events:none;opacity:0;width:90%;margin:0;font-family:JumpKing,monospace;font-size:clamp(16px,3vw,28px);animation:forwards region-caption;position:absolute;top:calc(50% - min(22.5cqw,30cqh));left:50%;transform:translate(-50%,-50%)}@keyframes region-caption{0%,to{opacity:0}16%,50%{opacity:.7}}.game-message{z-index:40;text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:20px;position:absolute;top:45%;left:50%;transform:translate(-50%,-50%)}.game-overlay{z-index:100;padding:max(12px, env(safe-area-inset-top)) max(12px, calc((100% - var(--game-width)) / 2)) max(12px, env(safe-area-inset-bottom));pointer-events:none;background:#0009;justify-content:center;align-items:center;gap:16px;display:flex;position:fixed;inset:0}.game-overlay .menu-panel{overscroll-behavior:contain;pointer-events:auto;width:min(420px,100%);max-height:100%;overflow-y:auto}:where(.game-overlay) .menu-panel>button{flex-shrink:0}.controls-help{border-block:1px solid var(--line);margin-block:4px;padding-block:16px}.controls-help h3{justify-content:center;margin-bottom:14px;font-size:18px}.controls-help dl{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px 16px;font-size:14px;display:grid}.controls-help dd{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;margin:0;display:flex}kbd{min-width:28px;min-height:28px;font:inherit;border:1px solid var(--border);color:#eef0f3;background:#252e38;border-radius:5px;justify-content:center;align-items:center;padding:3px 7px;display:inline-flex}button.sound-switch{background:0 0;border:0;justify-content:space-between;min-height:48px;padding-inline:0}.sound-switch>span:first-child{align-items:center;gap:10px;display:flex}.switch-track{border:1px solid var(--border);border-radius:24px;flex-shrink:0;align-items:center;width:48px;height:28px;padding:3px;display:inline-flex}.switch-track>span{background:#7e8c97;border-radius:50%;width:20px;height:20px;transition:transform .18s,background-color .18s}.sound-switch[aria-checked=true] .switch-track{color:#b9dec2;background:#6c9c7822;border-color:#8fbf9a}.sound-switch[aria-checked=true] .switch-track>span{background:#b7d5a5;transform:translate(20px)}.ending-actions{bottom:max(16px, env(safe-area-inset-bottom));right:max(16px, env(safe-area-inset-right));gap:8px;display:flex;position:absolute}.save-error{z-index:50;background:var(--surface);border:1px solid var(--border);border-radius:8px;max-width:90%;padding:12px;position:absolute;bottom:24px;left:50%;transform:translate(-50%)}.touch-controls{z-index:40;bottom:max(8px, env(safe-area-inset-bottom));left:max(var(--edge), env(safe-area-inset-left));right:max(var(--edge), env(safe-area-inset-right));grid-template-columns:minmax(0, 1fr) var(--game-width) minmax(0, 1fr);gap:var(--column-gap);pointer-events:none;align-items:end;display:none;position:absolute}.touch-controls>div{grid-column:1;grid-template-columns:repeat(2,54px);justify-self:end;gap:8px;display:grid}.touch-controls>button{grid-column:3;justify-self:start}.touch-controls button{pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;border-color:var(--border);color:#b3dbe5;background:#202d3bed;border-radius:8px;place-items:center;min-width:54px;height:54px;padding:0;font-size:18px;line-height:1;display:grid}.touch-controls button:active{background:#3a5262}.item-control{touch-action:manipulation;pointer-events:auto;flex-wrap:wrap;flex-shrink:0;gap:6px;width:100%;min-height:44px;margin-top:auto;padding:8px;font-size:12px}.item-control kbd{min-width:24px;min-height:24px;padding:2px 4px}.item-control[aria-pressed=true]{color:#f0d5a0;border-color:#e8bd73}.load-error-notice{top:max(56px, calc(env(safe-area-inset-top) + 48px));right:max(8px, env(safe-area-inset-right));z-index:1000;color:#fff;pointer-events:none;background:#171e27;border:1px solid #b48b6a;border-radius:8px;width:min(300px,100vw - 16px);padding:14px;position:fixed;box-shadow:0 6px 20px #0006}.load-error-notice button{pointer-events:auto}.load-error-notice p{margin:0 0 8px;font-size:14px}.tutorial-guide{top:max(52px, calc(env(safe-area-inset-top) + 44px));z-index:25;background:var(--surface);border:1px solid var(--border);pointer-events:none;border-radius:8px;width:min(92%,600px);padding:16px 20px;position:absolute;left:50%;transform:translate(-50%);box-shadow:0 6px 24px #0006}.tutorial-guide button{pointer-events:auto}.tutorial-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:8px;display:flex}.tutorial-title{min-width:0;font-size:18px;font-weight:600}.tutorial-dismiss{min-height:30px;padding:4px 10px;font-size:13px}.tutorial-hint{color:#c9d1dc;min-height:2.9em;margin:0;font-size:15px;line-height:1.45}.tutorial-hint.touch-only{display:none}.tutorial-hint.desktop-only{display:block}@media (any-pointer:coarse){.play-page{--touch-clearance:62px}.play-page[data-flying=true]{--touch-clearance:124px}.touch-controls{display:grid}.tutorial-hint.desktop-only{display:none}.tutorial-hint.touch-only{display:block}}@media (width<=960px){.play-page{--side-min:120px;--edge:8px;--column-gap:8px}.in-game-panel li{gap:0 5px;padding:2px 0;line-height:18px}.in-game-panel>summary{padding:4px 6px;font-size:12px;line-height:18px}.in-game-panel :where(h2) .lucide{width:14px;height:14px;margin-right:4px}.game-chat .chat-messages{max-height:min(160px, calc(var(--play-height) - 100px))}.game-hud{gap:4px;font-size:11px}.game-hud button{gap:5px;min-height:30px;padding:5px;font-size:11px}.game-hud button svg{width:15px;height:15px}.game-hud .timer,.network-badge{gap:4px;padding:4px}.network-badge{font-size:11px}.game-chat .chat-panel{padding:6px}.game-chat .chat-input-box input,.game-chat .chat-input-box .icon-button{padding:5px;font-size:11px}.game-chat .chat-input-box .icon-button{width:28px}.tutorial-guide{width:calc(100% - 24px);padding:8px 12px;top:44px}.tutorial-header{flex-wrap:nowrap;gap:8px}.tutorial-title,.tutorial-hint{font-size:13px}.tutorial-dismiss{padding:3px 8px;font-size:12px}}@media (prefers-reduced-motion:reduce){.switch-track>span{transition:none}}@media (width<=680px){.game-chat .chat-history-box[data-hidden=true]{display:none}.game-chat .chat-messages{max-height:min(160px, max(30px, calc(var(--play-height) - 120px)))}}@media (pointer:coarse){.game-chat .chat-panel{background:0 0;border:0;padding:0}.game-chat .chat-history-box{border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:6px}.play-page{--touch-button-height:54px;--touch-gap:8px;--chat-max-width:320px;--sidebar-max-width:280px;--touch-clearance:calc(var(--touch-button-height) + var(--touch-gap))}.play-page[data-flying=true]{--touch-clearance:calc(2 * (var(--touch-button-height) + var(--touch-gap)))}.play-page .game-chat{max-width:var(--chat-max-width)}.play-page .game-sidebar{height:var(--play-height)}.play-page .game-right{max-width:var(--sidebar-max-width)}.play-page .touch-controls{bottom:max(var(--edge), env(safe-area-inset-bottom));align-items:stretch}.play-page .touch-controls>div{width:100%;max-width:var(--chat-max-width);grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:var(--touch-button-height);gap:var(--touch-gap)}.play-page .touch-controls button{min-width:0;min-height:var(--touch-button-height);height:auto}.play-page .touch-controls>button{width:100%;max-width:var(--sidebar-max-width)}.in-game-panels{gap:6px}}@media (height<=500px){.game-overlay .menu-panel{gap:4px;width:min(420px,100%);padding:8px 12px}.game-overlay .menu-panel>h2{margin-bottom:0;font-size:20px}:where(.game-overlay) .menu-panel>button{min-height:36px;padding:7px 12px;font-size:14px}.game-overlay .controls-help{margin-block:0;padding-block:4px}.game-overlay .controls-help h3{margin-bottom:4px;font-size:14px}.game-overlay .controls-help dl{gap:4px 10px;font-size:12px}.game-overlay kbd{min-width:20px;min-height:20px;padding:2px 4px}.game-overlay .sound-switch{min-height:36px}}@media (prefers-reduced-motion:reduce){.region-caption{animation-timing-function:step-end}}@font-face{font-family:JumpKing;src:url(/assets/font/ttf_litter_lover2_bold.ttf)format("truetype");font-display:swap}:root{color:#eef0f3;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--surface:#121a21f5;--surface-raised:#1c252e;--border:#52606c;--line:#34414d;--muted:#b2bdc8;--green:#b7d5a5;--red:#f18a85;--radius:10px;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#10171f url(/ui/background.png) 50%/cover no-repeat fixed;font-family:Segoe UI,ui-sans-serif,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:280px;margin:0}.app-content{display:contents}.app-content[inert]{visibility:hidden;height:100dvh;display:block;overflow:hidden}.landscape-gate{z-index:10000;background:var(--surface);text-align:center;outline:none;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:24px;display:flex;position:fixed;inset:0}.fullscreen-toggle{top:max(12px, env(safe-area-inset-top));right:max(12px, env(safe-area-inset-right));z-index:10001;border:1px solid var(--border);background:var(--surface-raised);width:40px;height:40px;color:inherit;border-radius:8px;padding:8px;position:fixed}.fullscreen-toggle svg{width:18px;height:18px}@media (pointer:fine){.fullscreen-toggle{display:none}}.landscape-gate>.lucide{width:64px;height:64px;color:var(--green);transform:rotate(90deg)}button,input,select,textarea{font:inherit}button,summary{-webkit-tap-highlight-color:transparent}button{border:1px solid var(--border);min-height:44px;color:inherit;cursor:pointer;touch-action:manipulation;background:#1c252b;border-radius:8px;justify-content:center;align-items:center;gap:10px;padding:10px 16px;font-size:15px;font-weight:600;line-height:1.35;transition:background-color .15s,border-color .15s;display:inline-flex}button:hover:enabled{background:#2a3540;border-color:#94a2ac}button:disabled{opacity:.45;cursor:not-allowed}:focus-visible{outline-offset:3px;outline:2px solid #bedaca}button.button-primary{background:var(--green);color:#16241b;border-color:#c7e4b7}button.button-primary:hover:enabled{background:#cbe6ba;border-color:#e0f4d3}button.button-danger{color:#ff9c96;background:#51272b5c;border-color:#ad5c5d}button.button-danger:hover:enabled{background:#652f35;border-color:#e5928c}button.button-warning{color:#efd099;background:#6b4e293b;border-color:#9b8054}button.button-warning:hover:enabled{background:#624b2e;border-color:#c9ab76}button.button-accent{color:#fff;background:#b83740;border-color:#ce555c}button.button-accent:hover:enabled{background:#cc424a}button.icon-button{flex-shrink:0;width:44px;padding:9px}svg.lucide{stroke-width:1.8px;flex:none;width:21px;height:21px}.tone-cyan{color:#8bd3da}.tone-blue{color:#a4bfd9}.tone-green{color:#b7d5a5}.tone-red{color:#f18a85}.tone-amber{color:#e8bd73}.tone-purple{color:#c8ade9}.tone-muted,.muted,.field-hint{color:var(--muted)}input,select{border:1px solid var(--border);width:100%;min-width:0;min-height:44px;color:inherit;background:#0f161d;border-radius:7px;padding:10px 12px;font-size:16px}input::placeholder{color:#8e9ba7;opacity:1}input:disabled,select:disabled{opacity:.6;cursor:not-allowed}input,textarea,code{-webkit-user-select:text;user-select:text}img,canvas{-webkit-user-drag:none}h1,h2,h3,p,dl{margin:0}h2{letter-spacing:-.02em;font-size:clamp(24px,2.8vw,32px);font-weight:650;line-height:1.2}h3{align-items:center;gap:10px;font-size:20px;font-weight:600;line-height:1.3;display:flex}p{line-height:1.5}code{font:inherit;font-variant-numeric:tabular-nums;letter-spacing:.06em}.landscape-gate h1{font-size:24px}.landscape-gate p{max-width:28ch;color:var(--muted)}.landscape-gate [role=status]{margin:0}.home{min-height:100dvh;padding:max(28px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));flex-direction:column;justify-content:center;align-items:center;gap:24px;display:flex}.brand{flex-shrink:0}.brand h1{margin:0;line-height:0}.brand img{width:min(440px,56vw);height:auto;display:block}.home-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;width:min(100%,1040px);display:grid}.single-panel{width:min(100%,460px)}.screen-history .single-panel,.screen-public-rooms .single-panel{width:min(100%,1160px)}.screen-detail .single-panel{width:min(100%,940px)}.screen-detail .brand img{width:min(320px,50vw)}.menu-panel,.statistics,.lobby-roster,.lobby-settings,.chat-panel{border-radius:var(--radius);background:var(--surface);border:1px solid #82919b;min-width:0;box-shadow:0 8px 28px #0005}.menu-panel{flex-direction:column;gap:12px;padding:26px;display:flex}.menu-panel>h2{text-align:center;justify-content:center;align-items:center;gap:18px;margin-bottom:12px;display:flex}.menu-panel>h2:before,.menu-panel>h2:after{content:"";background:var(--border);flex:1;height:1px}.menu-panel p{font-size:15px}.menu-panel .error,[role=alert]{color:#ffaaa1;overflow-wrap:anywhere;font-size:14px;line-height:1.5}[role=alert]:not(:empty){padding-block:6px}.home-action{justify-content:flex-start;gap:18px;width:100%;min-height:58px;padding-inline:18px;font-size:20px}.home-action svg{width:26px;height:26px}.room-join-form{gap:10px;margin-top:2px;display:flex}.room-join-form input{flex:1;width:0}.room-join-form button{min-width:90px}.account-actions{border-top:1px solid var(--line);margin-top:auto;padding-top:16px}.account-actions button{justify-content:flex-start;width:100%;font-size:17px}.account-actions :where(button) span{overflow-wrap:anywhere;min-width:0}.trailing-icon{margin-left:auto}.statistics{padding:12px 26px}.statistics dl{grid-auto-rows:1fr;height:100%;display:grid}.data-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:14px;min-width:0;padding:15px 0;display:flex}.data-row:last-child{border-bottom:0}.data-row dt{align-items:center;gap:12px;min-width:0;font-size:15px;line-height:1.3;display:flex}.data-icon{display:inline-flex}.data-row dd{text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:0;font-size:16px;font-weight:600}.statistics dd{white-space:nowrap;font-size:21px}.statistics :where(.data-icon) .lucide{width:25px;height:25px}.panel-actions{border-top:1px solid var(--line);justify-content:center;align-items:center;gap:12px;margin-top:12px;padding-top:16px;display:flex}.panel-actions>button{min-width:132px}.panel-actions>button:only-child{flex:0 180px}.back{color:#d9dfe6}.menu-form{flex-direction:column;gap:18px;display:flex}.form-field{flex-direction:column;gap:8px;font-size:15px;font-weight:500;display:flex}.input-wrap{border:1px solid var(--border);background:#0f161d;border-radius:7px;align-items:center;gap:10px;min-height:48px;padding-inline:12px;display:flex}.input-wrap:focus-within{outline-offset:2px;outline:2px solid #bedaca}.input-wrap>.lucide{color:var(--muted)}.input-wrap input{background:0 0;border:0;outline:none;flex:1;width:0;min-width:0;padding-inline:0}.input-wrap .password-toggle{width:40px;min-height:40px;color:var(--muted);background:0 0;border:0;margin-right:-6px;padding:8px}.input-wrap .password-toggle:hover{background:#2a3540}.input-wrap>.tone-amber{color:#e8bd73}.field-hint{font-size:13px;font-weight:400}.auth-divider{color:var(--muted);align-items:center;gap:16px;margin:4px 0;font-size:14px;display:flex}.auth-divider:before,.auth-divider:after{content:"";background:var(--line);flex:1;height:1px}.google-auth-container,.google-btn-slot{flex-direction:column;align-items:center;gap:10px;width:100%;display:flex}.google-btn-slot[inert]{opacity:.5}.account-info{border:1px solid var(--line);border-radius:8px;align-items:center;gap:18px;margin-bottom:4px;padding:18px;display:flex}.account-info>.lucide{border:1px solid var(--border);border-radius:50%;width:46px;height:46px;padding:8px}.account-info dl{min-width:0}.account-info dt{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:12px}.account-info dd{overflow-wrap:anywhere;margin:3px 0 0;font-size:23px;font-weight:600}:where(.screen-account) .menu-panel>button{justify-content:flex-start;min-height:54px;font-size:17px}.list-toolbar{justify-content:space-between;align-items:center;gap:16px;display:flex}.table-scroll{max-width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:16px}th{color:var(--muted);text-align:left;text-transform:uppercase;letter-spacing:.05em;font-size:12px;font-weight:500}th,td{border-bottom:1px solid var(--line);overflow-wrap:anywhere;padding:14px 12px}td{font-variant-numeric:tabular-nums}th:first-child,td:first-child{padding-left:4px}.public-rooms td:last-child{text-align:right;padding-right:0}.public-rooms :where(td:last-child) button{min-width:90px}.public-rooms td[data-label=Players],.public-rooms td[data-label=Room]{white-space:nowrap}.empty-state{color:var(--muted);text-align:center;flex-direction:column;align-items:center;gap:12px;padding:28px 8px;display:flex}.empty-state>.lucide{opacity:.7;width:36px;height:36px}.history-list{min-width:0}.history-heading,.history-rows>button{grid-template-columns:1.05fr 1.6fr .85fr 1.55fr .8fr 20px;align-items:center;gap:16px;display:grid}.history-heading{text-transform:uppercase;color:var(--muted);letter-spacing:.04em;padding:8px 14px 12px;font-size:12px}.history-rows{overscroll-behavior:contain;flex-direction:column;gap:8px;max-height:54dvh;display:flex;overflow-y:auto}.history-rows>button{text-align:left;background:#111b23;width:100%;padding:14px;font-size:15px;font-weight:400}.history-rows>button>*{min-width:0}.history-kind{align-items:center;gap:9px;display:flex}.history-date{color:var(--muted);font-size:13px}.history-time{font-variant-numeric:tabular-nums;white-space:nowrap}.record-detail{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;display:grid}.record-detail .data-row{padding-block:10px}.record-detail .data-row dd{max-width:60%;font-size:15px}.record-detail .data-row dt{font-size:15px}.participants{margin-top:14px}.participants h3{justify-content:center;margin-bottom:16px}.leaderboard{margin:0;padding:0;list-style:none}.leaderboard li{border-bottom:1px solid var(--line);overflow-wrap:anywhere;flex-wrap:wrap;justify-content:space-between;gap:8px 20px;padding:12px 6px;font-size:14px;display:flex}.leaderboard :where(li)>span{min-width:0}.leaderboard strong{font-size:13px;font-weight:500}.rank{color:var(--muted);font-variant-numeric:tabular-nums;margin-right:8px}.result-overview{border:1px solid var(--line);border-radius:7px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px;display:flex}.result-overview>span{align-items:center;gap:10px;font-size:14px;display:flex}.results-table{overflow-x:auto}.results-table td:nth-child(2){overflow-wrap:anywhere;min-width:130px}.results-table td:last-child{white-space:nowrap}.self-result{background:#debd6310}.self-result td:first-child{color:#e8bd73}.save-status{color:var(--muted);justify-content:center;align-items:center;gap:8px;font-size:14px;display:flex}.save-status[data-status=SAVED]{color:#b7d5a5}.save-status[data-status=FAILED]{color:#f18a85}.screen-results .single-panel{width:min(100%,800px)}.screen-lobby{grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(180px,.8fr) minmax(0,2fr);align-content:center;align-items:stretch;gap:20px;width:min(1360px,100%);margin-inline:auto;display:grid}.screen-lobby .brand{grid-column:1/-1;justify-self:center}.screen-lobby .brand img{width:min(350px,42vw)}.lobby-panel{grid-area:2/2;min-height:0}.screen-lobby .menu-panel{box-shadow:none;background:0 0;border:0;height:100%;padding:0}.lobby-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;height:100%;display:grid}.lobby-roster,.lobby-settings{flex-direction:column;gap:14px;padding:20px;display:flex}.lobby-roster{min-height:340px}.lobby-header{flex-shrink:0;justify-content:space-between;align-items:center;gap:8px;display:flex}.lobby-header h3{min-width:0;font-size:19px}.players{flex:1 0 64px;min-height:64px;max-height:36dvh;margin:0;padding:0;list-style:none;overflow-y:auto}.players li{border-bottom:1px solid var(--line);overflow-wrap:anywhere;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;font-size:14px;display:flex}.players li>span:first-child{min-width:0;max-width:100%}.player-badges{flex-wrap:wrap;justify-content:flex-end;gap:4px 8px;margin-left:auto;font-size:11px;display:flex}.player-badges span{align-items:center;gap:4px;display:inline-flex}.player-badges .lucide{width:14px;height:14px}.player-badges button{min-height:28px;padding:4px 7px;font-size:11px}.lobby-actions{flex-wrap:wrap;gap:10px;margin-top:auto;padding-top:16px;display:flex}.lobby-actions>button{flex:100px;font-size:13px}.lobby-actions>.start-button{flex-basis:100%;min-height:48px;font-size:18px}.mode-setting{flex-direction:column;gap:7px;font-size:14px;display:flex}.setting-label{align-items:center;gap:9px;display:flex}.setting-label .lucide{width:20px;height:20px}.mode-setting select{font-size:14px}.room-code{white-space:nowrap;flex-shrink:0;align-items:center;margin-left:auto;display:flex;position:relative}.room-code-copy{gap:10px;min-height:36px;padding:4px 8px}.room-code code{font-size:17px;font-weight:700}.room-code-copy .lucide{color:#8bd3da;width:16px;height:16px}.room-code-copy[data-copied=true] .lucide{color:var(--green)}.room-code-status{z-index:5;white-space:normal;border:1px solid var(--border);background:var(--surface);color:#b7d5a5;border-radius:6px;width:210px;min-height:0;padding:8px;font-size:11px;position:absolute;top:calc(100% + 6px);right:0}.room-code-status:empty{display:none}.chat-panel{flex-direction:column;gap:12px;padding:16px;font-size:14px;display:flex}.screen-lobby>.chat-panel{grid-area:2/1;min-height:0}.chat-history-box{overflow-wrap:anywhere;flex:1;min-height:0}.chat-messages{overscroll-behavior:contain;max-height:38dvh;overflow-y:auto}.chat-messages p{margin:6px 0;font-size:13px;line-height:1.5}.chat-input-box{min-width:0;margin-top:auto}.chat-input-box form{gap:8px;display:flex}.chat-input-box input{flex:1;width:0;min-width:0;font-size:14px}.chat-input-box .icon-button{color:#8bd3da}.chat-latest{min-height:30px;margin-top:6px;padding:4px 8px;font-size:12px}.chat-history-toggle{display:none}.chat-history-box[data-hidden=true]{opacity:0}.chat-history-box[data-hidden=true]>*{visibility:hidden}.spinning{animation:1.5s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}@media (width<=1050px){.home{padding-inline:18px}.home-layout{gap:18px}.menu-panel{padding:22px}.history-heading,.history-rows>button{grid-template-columns:1.1fr 1.3fr .9fr 1.3fr .8fr 16px;gap:10px}.screen-lobby{grid-template-columns:minmax(150px,.7fr) minmax(0,2fr);gap:12px;padding:18px}.lobby-layout{gap:12px}.lobby-roster,.lobby-settings{padding:14px}.screen-lobby>.chat-panel{padding:12px}}@media (width<=760px){.home{padding:max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));justify-content:flex-start;gap:16px}.brand{display:none}.home-layout{grid-template-columns:minmax(0,1fr);gap:14px;max-width:500px}.menu-panel{gap:10px;padding:18px}.menu-panel>h2{margin-bottom:8px}.home-action{gap:14px;min-height:48px;font-size:17px}.home-action svg{width:22px;height:22px}.account-actions{padding-top:12px}.statistics{padding:4px 16px}.statistics dl{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}.statistics .data-row{flex-direction:column;align-items:flex-start;gap:8px;padding-block:12px}.statistics .data-row:nth-last-child(-n+2){border-bottom:0}.statistics dt{gap:8px;font-size:12px}.statistics :where(.data-icon) .lucide{width:17px;height:17px}.statistics dd{margin-left:25px;font-size:18px}.history-heading{display:none}.history-rows{max-height:68dvh}.history-rows>button{grid-template-columns:1fr auto 16px;gap:8px 10px;padding:14px}.history-kind{grid-area:1/1;font-weight:600}.history-date{grid-area:3/1/auto/3;font-size:12px}.history-status{grid-area:1/2;font-size:12px}.history-map{color:var(--muted);grid-area:2/1;font-size:13px}.history-time{grid-area:2/2;font-size:13px}.history-chevron{grid-area:1/3/4;width:16px}.record-detail{column-gap:20px}.record-detail .data-row{gap:10px}.record-detail .data-row dt{gap:8px}.public-rooms,.public-rooms tbody{display:block}.public-rooms thead{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.public-rooms tbody{flex-direction:column;gap:12px;display:flex}.public-rooms tr{border:1px solid var(--line);border-radius:8px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 16px;padding:12px;display:grid}.public-rooms td{border:0;flex-direction:column;align-items:flex-start;gap:3px;padding:0;font-size:14px;display:flex}.public-rooms td[data-label]:before{content:attr(data-label);color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:11px}.public-rooms td:last-child{grid-column:2;justify-content:center;align-items:stretch}.public-rooms td:first-child,.public-rooms td:nth-child(2),.public-rooms td:nth-child(6){flex-direction:row;align-items:center;gap:6px}.public-rooms td:nth-child(2){justify-content:flex-end}.public-rooms td:first-child:before,.public-rooms td:nth-child(2):before,.public-rooms td:nth-child(3):before{display:none}.public-rooms td:nth-child(3){grid-column:1/-1;font-size:15px}.public-rooms :where(td:last-child) button{width:100%}.screen-lobby{grid-template-columns:minmax(150px,.7fr) minmax(0,2fr);width:100%}.lobby-settings h3,.lobby-roster h3{font-size:17px}.lobby-actions button{padding-inline:8px}.panel-actions>button{flex:1;min-width:0}}@media (width<=600px){.screen-lobby{display:flex}.lobby-panel{width:100%}.lobby-layout{grid-template-columns:minmax(0,1fr);gap:14px}.lobby-roster{min-height:0}.players{max-height:150px}.lobby-actions{padding-top:2px}.lobby-actions>.start-button{flex-basis:80px}.lobby-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.lobby-settings h3,.lobby-settings>:last-child{grid-column:1/-1}.mode-setting select{padding:8px;font-size:13px}.screen-lobby>.chat-panel{width:100%;min-height:120px}.screen-lobby .chat-messages{max-height:100px}.record-detail{grid-template-columns:minmax(0,1fr)}.record-detail .data-row{padding-block:10px}.record-detail .data-row dd{max-width:63%}.participants h3{font-size:18px}.results-table table{font-size:13px}.results-table table,.results-table tbody{display:block}.results-table thead{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.results-table tbody{flex-direction:column;gap:8px;display:flex}.results-table tbody tr{border:1px solid var(--line);border-radius:7px;grid-template-columns:26px minmax(0,1fr) minmax(0,1fr);gap:10px;padding:12px;display:grid}.results-table tbody .self-result{border-color:#9e8a62}.results-table td{border:0;padding:0}.results-table td:first-child{color:var(--muted);grid-area:1/1;padding:0}.results-table td:nth-child(2){grid-area:1/2/auto/-1;min-width:0;font-size:14px;font-weight:600}.results-table td:nth-child(3){grid-area:2/2}.results-table td:nth-child(4){grid-area:2/3}.results-table td:nth-child(n+3):before{content:attr(data-label);color:var(--muted);margin-bottom:4px;font-size:10px;display:block}.result-overview{flex-direction:column;align-items:flex-start}}@media (height<=600px) and (width>=761px){.home{gap:12px;padding-block:14px}.brand img{width:240px}.home-action{min-height:44px;font-size:16px}.statistics dd{font-size:18px}.data-row{padding-block:9px}.screen-lobby{height:100dvh;min-height:0}.screen-lobby .brand img{width:180px}.lobby-roster,.lobby-settings{min-height:0;max-height:100%;overflow-y:auto}.screen-lobby .chat-messages{max-height:100%}.screen-lobby>.chat-panel{overflow:hidden}}@media (pointer:coarse) and (height<=600px) and (width>=601px){.brand{display:none}.screen-lobby{grid-template-rows:minmax(0,1fr);height:100dvh;min-height:0}.lobby-panel,.screen-lobby>.chat-panel{grid-row:1}}@media (height<=500px) and (width>=761px){.screen-home{padding-block:12px}.screen-home .menu-panel{gap:8px;padding:16px}.screen-home .statistics{padding:4px 18px}.screen-home .statistics .data-row{padding-block:6px}.screen-home .account-actions{padding-top:8px}}@media (height<=500px) and (width>=601px){.lobby-roster{gap:8px;padding:12px}.lobby-roster .players li{padding-block:6px}.lobby-actions{gap:8px;padding-top:8px}.lobby-header h3{gap:6px;font-size:17px}.lobby-settings{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px;display:grid}.lobby-settings h3,.lobby-settings>:last-child{grid-column:1/-1}.lobby-settings .mode-setting{gap:5px;font-size:12px}.lobby-settings select{padding:6px;font-size:12px}}@media (pointer:coarse) and (orientation:landscape){.screen-home{padding-block:max(8px, env(safe-area-inset-top))}.screen-home .brand{display:none}.screen-home .home-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:1040px}.screen-home .menu-panel{gap:5px;padding:12px}.screen-home .home-action{gap:10px;min-height:40px;padding:7px 12px;font-size:15px}.screen-home .account-actions{padding-top:6px}.screen-home .home-action svg{width:20px;height:20px}.screen-home .account-actions button,.screen-home .room-join-form button,.screen-home .room-join-form input{min-height:40px;padding:7px 10px;font-size:14px}.screen-home .room-join-form button{min-width:60px}.screen-home .statistics{padding:4px 14px}.screen-home .statistics dl{grid-template-columns:minmax(0,1fr)}.screen-home .statistics .data-row{border-bottom:1px solid var(--line);flex-direction:row;align-items:center;gap:8px;padding-block:6px}.screen-home .statistics .data-row:last-child{border:0}.screen-home .statistics dt{gap:6px;font-size:11px}.screen-home .statistics dd{margin:0;font-size:16px}}@media (pointer:coarse) and (orientation:portrait){.screen-home{padding-block:max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-bottom))}.screen-home .home-layout{gap:10px}.screen-home .menu-panel{gap:8px;padding:14px}.screen-home .home-action{min-height:44px;font-size:16px}.screen-home .statistics .data-row{gap:6px;padding-block:8px}.screen-home .statistics dt{font-size:11px}.screen-home .statistics dd{font-size:16px}}@media (prefers-reduced-motion:reduce){button{transition:none}.spinning{animation:none}}@media (pointer:coarse){.home:not(.screen-home):not(.screen-lobby){height:100dvh;min-height:0;padding:max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));gap:10px;overflow:hidden}:where(.home:not(.screen-home)) .single-panel{width:min(100%,800px);min-height:0;max-height:100%;display:flex}:is(.screen-account,.screen-password) .single-panel{width:min(100%,460px)}.single-panel>.menu-panel{overscroll-behavior:contain;gap:8px;width:100%;min-height:0;max-height:calc(100dvh - 16px);padding:12px;overflow-y:auto}.single-panel>.menu-panel>h2{flex-shrink:0;margin-bottom:4px;font-size:22px}.single-panel .panel-actions{z-index:2;background:var(--surface);flex-shrink:0;align-items:stretch;margin-top:6px;padding-block:10px 0;position:sticky;bottom:-12px}.screen-password .panel-actions{position:static}:where(.single-panel) .panel-actions button{min-height:40px;font-size:14px}.single-panel .menu-form{gap:10px}.single-panel .form-field{gap:5px;font-size:13px}.single-panel .input-wrap{min-height:40px}.single-panel .input-wrap input{min-height:40px;padding-block:8px}.single-panel .field-hint{font-size:12px}.screen-account .account-info{gap:12px;padding:10px}.screen-account .account-info dd{font-size:20px}:where(.screen-account) .menu-panel>button{min-height:40px;font-size:14px}:is(.screen-history,.screen-public-rooms,.screen-detail,.screen-results) .single-panel,:is(.screen-history,.screen-public-rooms,.screen-detail,.screen-results) .menu-panel{height:100%}:is(.screen-history,.screen-public-rooms,.screen-detail,.screen-results) .menu-panel{overflow:hidden}.history-list{flex-direction:column;flex:1;min-height:0;display:flex}.history-rows{flex:1;min-height:0;max-height:none}.history-rows>button{flex-shrink:0;padding:10px}.table-scroll,.results-table,.record-body{overscroll-behavior:contain;flex:1;min-height:0;overflow:auto}.record-detail .data-row{padding-block:7px}.record-detail .data-row dt,.record-detail .data-row dd{font-size:13px}.record-detail .lucide{width:17px;height:17px}.participants h3{margin-bottom:8px;font-size:16px}}@media (pointer:coarse) and (orientation:landscape){.screen-sign-in .menu-form{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}:where(.screen-sign-in) .menu-form>button,:where(.screen-sign-in) .menu-form>[role=alert]{grid-column:1/-1}.record-detail{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}.history-rows>button{grid-template-columns:minmax(80px,1fr) minmax(80px,1fr) auto 16px;gap:6px 10px}.history-heading{display:none}.history-kind{grid-area:1/1;font-size:13px}.history-map{grid-area:1/2;font-size:12px}.history-status{grid-area:1/3;font-size:12px}.history-date{grid-area:2/1/auto/3;font-size:11px}.history-time{grid-area:2/3;font-size:12px}.history-chevron{grid-area:1/4/3}}@media (pointer:coarse) and (orientation:landscape) and (width<=600px){.screen-lobby{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);gap:8px;height:100dvh;min-height:0;padding:8px;display:grid}.lobby-panel{grid-area:1/1}.lobby-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;height:100%}.lobby-roster,.lobby-settings{gap:6px;min-height:0;max-height:100%;padding:8px;overflow-y:auto}.lobby-header h3{gap:5px;font-size:15px}.room-code code{font-size:15px}.lobby-roster>.muted{font-size:12px}.players li{padding-block:5px;font-size:12px}.lobby-actions{gap:6px;padding-top:2px}.lobby-actions>button,.lobby-actions>.start-button{flex:1 1 0;gap:5px;min-height:36px;padding:6px;font-size:12px}.lobby-actions .confirm-label{display:none}.lobby-settings{align-content:start}.lobby-settings h3{font-size:15px}.lobby-settings .mode-setting{gap:4px;font-size:12px}.lobby-settings select{min-height:34px;padding:5px 7px;font-size:12px}.screen-lobby>.chat-panel{grid-area:2/1;gap:5px;min-height:0;max-height:82px;padding:6px}.screen-lobby .chat-title{display:none}.screen-lobby .chat-messages{max-height:28px}.screen-lobby .chat-input-box input,.screen-lobby .chat-input-box button{min-height:34px;padding-block:5px}}
