.game-symbol{vertical-align:middle;flex-shrink:0;width:22px;height:22px;display:inline-block}.board-control{width:40px;height:40px;min-height:40px;color:inherit;cursor:pointer;background:0 0;border:1px solid;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;padding:8px;text-decoration:none;display:inline-flex}.board-control:focus-visible{outline-offset:2px;outline:3px solid #29a3df}.board-list-link{margin-bottom:8px}.board-help{margin-left:auto}.board-dialog{box-sizing:border-box;color:#27392f;background:#f4efd9;border:1px solid #9b8d62;border-radius:18px;width:min(520px,100vw - 24px);max-height:calc(100dvh - 24px);padding:20px;overflow:auto;box-shadow:0 18px 60px #0007}.board-dialog::backdrop{background:#07181299}.board-dialog-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.board-dialog-heading h2{margin:0;font-size:20px}.board-dialog p,.board-dialog li{color:inherit;font-size:14px;line-height:1.6}.board-dialog ol{padding-left:22px}.board-dialog li+li{margin-top:8px}.board-dialog-actions{justify-content:flex-end;gap:10px;margin-top:16px;display:flex}.board-dialog .board-dialog-action{color:#27392f;width:auto;min-width:80px;min-height:44px;font:inherit;cursor:pointer;background:#fff9e8;border:1px solid #69755c;border-radius:10px;padding:10px 18px}.board-dialog .board-dialog-action:focus-visible{outline-offset:2px;outline:3px solid #29a3df}.board-dialog .board-dialog-action:disabled{opacity:.5;cursor:default}.board-sr{clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;position:absolute!important;overflow:hidden!important}.board-clock-dial{fill:none;flex-shrink:0;width:26px;height:26px;display:block}.board-clock-track{stroke:currentColor;stroke-width:3px;opacity:.2}.board-clock-progress{stroke:currentColor;stroke-width:3px;stroke-linecap:round;transform-origin:50%;transition:stroke-dashoffset .5s linear;transform:rotate(-90deg)}.board-clock-hand{stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;transform-origin:20px 20px}.board-clock-hand.ticking{animation:2s ease-in-out infinite board-clock-tick}.board-timer{--clock-ink:#285746;--clock-surface:#edf2e6;--clock-border:#a8bba0;--clock-alert:#a64b28;--clock-alert-surface:#f8e8d7;--clock-alert-border:#c9784e;border:1px solid var(--clock-border);background:var(--clock-surface);min-width:80px;height:32px;color:var(--clock-ink);white-space:nowrap;border-radius:9px;flex-shrink:0;justify-content:center;align-items:center;gap:5px;padding:2px 6px;display:inline-flex}.board-timer .board-timer-readout{color:inherit;align-items:baseline;gap:2px;display:flex}.board-timer .board-timer-readout b{font-variant-numeric:tabular-nums;text-align:right;min-width:2ch;font:750 22px/1 ui-monospace,monospace}.board-timer .board-timer-readout small{color:inherit;font-size:10px;display:inline}.board-timer.is-waiting{opacity:.72}.board-timer.urgent,.board-timer.expired{color:var(--clock-alert);background:var(--clock-alert-surface);border-color:var(--clock-alert-border)}.board-timer.urgent{animation:1s ease-in-out infinite board-clock-pulse}@keyframes board-clock-tick{0%,to{transform:rotate(-8deg)}50%{transform:rotate(8deg)}}@keyframes board-clock-pulse{0%,to{box-shadow:0 0 #0000}50%{box-shadow:0 0 0 3px color-mix(in srgb, var(--clock-alert-border) 30%, transparent)}}@media (width<=700px),(height<=650px){.board-timer{gap:4px;min-width:74px;height:28px;padding:1px 5px}.board-timer .board-clock-dial{width:22px;height:22px}.board-timer .board-timer-readout b{font-size:20px}}@media (prefers-reduced-motion:reduce){.board-timer,.board-clock-hand.ticking{animation:none!important}.board-clock-progress{transition:none!important}}header>.board-site-nav{flex-shrink:0;align-items:center;gap:4px;display:flex}header>.board-site-nav .board-control{box-sizing:border-box;width:32px;height:32px;min-height:32px;color:inherit;border-radius:8px;margin:0;padding:5px}header>.board-site-nav .game-symbol{width:20px;height:20px}@media (width<=700px){header:has(>.board-site-nav)>:is(.brand,.game-title,.lobby-branding,.wordmark){display:none}}@media (width<=380px){header:has(>.board-site-nav)>.header-meta{display:none}}.launch-lobby{--lobby-surface:#fcfcf7;--lobby-soft:#e9eee3;--lobby-border:#d8e0d1;--lobby-muted:#61715d;--lobby-ink:#294733;--lobby-name-accent:#a45c18;--lobby-name-glow:#da9a4940;--lobby-name-background:#fff3d8;max-width:1140px;color:var(--lobby-ink);grid-template-columns:minmax(0,1.25fr) minmax(320px,1fr);gap:22px;margin:28px auto 48px;padding:0 32px;display:grid}.launch-lobby svg{flex-shrink:0;width:24px;height:24px}.lobby-banner{isolation:isolate;background:#dce7ce;border-radius:24px;grid-column:1/-1;min-height:176px;position:relative;overflow:hidden}.lobby-banner-art{z-index:-2;object-fit:cover;object-position:center 55%;width:68%;height:100%;position:absolute;right:0}.lobby-banner:after{content:"";z-index:-1;background:linear-gradient(90deg,#e4ebd7 16%,#e4ebd7f5 33%,#e4ebd700 70%);position:absolute;inset:0}.lobby-banner-copy{color:#294733;padding:23px 32px}.lobby-banner h1{letter-spacing:-1.8px;font-size:38px;line-height:1.2}.lobby-banner p{color:#506448;margin-top:7px;font-size:13px}.lobby-player-count{align-items:center;gap:7px;margin-top:17px;font-size:13px;font-weight:600;display:flex}.lobby-player-count svg{width:19px;height:19px}.lobby-player-count>span{border-left:1px solid #9cab91;margin-left:3px;padding-left:9px;font-size:11px;font-weight:400}.lobby-token-tray{gap:7px;display:flex;position:absolute;bottom:17px;right:22px}.lobby-token-tray>span{background:#f9f9edee;border-radius:50%;place-items:center;width:36px;height:36px;display:grid;box-shadow:0 2px 10px #213c3420}.lobby-token-tray svg{width:27px;height:27px}.lobby-name-row{grid-column:1/-1;align-items:center;gap:18px;display:flex}.lobby-name-row>label{white-space:nowrap;align-items:center;gap:9px;font-size:13px;font-weight:600;display:flex}.launch-lobby input{border:1px solid var(--lobby-border);background:var(--lobby-surface);min-width:0;height:44px;color:var(--lobby-ink);border-radius:10px;padding:10px 14px}.launch-lobby input::placeholder{color:var(--lobby-muted);opacity:1}.lobby-name-row input{width:260px}.lobby-name-row.name-attention>label,.lobby-name-row.needs-name:focus-within>label{color:var(--lobby-name-accent)}.lobby-name-row.name-attention input,.lobby-name-row.needs-name input:focus{border-color:var(--lobby-name-accent);background:var(--lobby-name-background);outline:2px solid var(--lobby-name-accent);outline-offset:3px;box-shadow:0 0 0 7px var(--lobby-name-glow);animation:.65s ease-in-out 2 lobby-name-attention}@keyframes lobby-name-attention{0%,to{box-shadow:0 0 0 7px var(--lobby-name-glow);transform:translate(0)}25%{transform:translate(-3px)}50%{box-shadow:0 0 0 11px var(--lobby-name-glow)}75%{transform:translate(3px)}}@media (prefers-reduced-motion:reduce){.lobby-name-row.name-attention input,.lobby-name-row.needs-name input:focus{animation:none}}.lobby-rooms,.lobby-start{background:var(--lobby-surface);border:1px solid var(--lobby-border);border-radius:20px;align-self:start;min-width:0;overflow:hidden}.lobby-section-heading{border-bottom:1px solid var(--lobby-border);justify-content:space-between;align-items:center;gap:16px;padding:14px 20px;display:flex}.lobby-section-heading h2{align-items:center;gap:10px;font-size:16px;display:flex}.lobby-count{background:var(--lobby-soft);text-align:center;border-radius:6px;min-width:23px;padding:2px 6px;font-size:12px}.lobby-icon-button{flex-shrink:0;place-items:center;width:44px;height:44px;display:grid}.lobby-join{background:var(--lobby-soft)}.lobby-room-content{min-height:160px}.lobby-empty{min-height:160px;color:var(--lobby-muted);flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:20px;font-size:13px;display:flex}.lobby-empty>svg{opacity:.65;width:38px;height:38px}.lobby-list-error{color:#99452f}.lobby-list-error button{background:var(--lobby-soft);min-height:44px;color:var(--lobby-ink);padding:8px 16px}.lobby-room-items{max-height:340px;margin:0;padding:0;list-style:none;overflow-y:auto}.lobby-room-items li{align-items:center;gap:12px;padding:16px 20px;display:flex}.lobby-room-items li+li{border-top:1px solid var(--lobby-border)}.lobby-host-avatar{background:var(--lobby-soft);border-radius:50%;flex-shrink:0;place-items:center;width:40px;height:40px;font-weight:600;display:grid}.lobby-room-info{flex:1;min-width:0}.lobby-room-info h3{overflow-wrap:anywhere;font-size:14px}.lobby-room-facts{color:var(--lobby-muted);flex-wrap:wrap;gap:14px;margin-top:7px;display:flex}.lobby-room-facts>span{align-items:center;gap:4px;font-size:12px;display:flex}.lobby-room-facts svg{width:16px;height:16px}.lobby-invite{border-top:1px solid var(--lobby-border);align-items:center;gap:10px;padding:16px 20px;display:flex}.lobby-invite label{white-space:nowrap;align-items:center;gap:7px;font-size:12px;display:flex}.lobby-invite input{letter-spacing:2px;flex:1;width:100%;font-size:13px}.lobby-modes{background:var(--lobby-soft);grid-template-columns:1fr 1fr;gap:6px;padding:7px;display:grid}.lobby-modes button{min-height:52px;color:var(--lobby-muted);border:1px solid #0000;justify-content:center;align-items:center;gap:9px;font-weight:600;display:flex}.lobby-modes button[aria-pressed=true]{background:var(--lobby-surface);color:var(--lobby-ink);border-color:var(--lobby-border);box-shadow:0 2px 6px #213c3408}.lobby-mode-options{padding:22px}.lobby-option-row{border:0;min-width:0;margin:0 0 18px;padding:0}.lobby-option-row legend{color:var(--lobby-muted);margin-bottom:8px;padding:0;font-size:12px}.lobby-segments{gap:7px;display:flex}.lobby-segments button{border:1px solid var(--lobby-border);flex:1;justify-content:center;align-items:center;gap:8px;min-height:44px;font-size:13px;display:flex}.lobby-segments button[aria-pressed=true]{border-color:var(--lobby-ink);background:var(--lobby-soft);box-shadow:inset 0 0 0 1px var(--lobby-ink);font-weight:700}.lobby-segments svg{width:20px;height:20px}.lobby-level{align-items:end;gap:3px;height:18px;display:flex}.lobby-level i{opacity:.3;border:1px solid;border-radius:1px;width:4px;height:7px}.lobby-level i:nth-child(2){height:12px}.lobby-level i:nth-child(3){height:17px}.lobby-level i.filled{opacity:1;background:currentColor}.lobby-game-options{grid-template-columns:1fr 1fr;gap:14px;margin:4px 0 22px;display:grid}.lobby-game-options label>span{color:var(--lobby-muted);align-items:center;gap:6px;margin-bottom:8px;font-size:12px;display:flex}.lobby-game-options svg{width:17px;height:17px}.lobby-game-options select{background:var(--lobby-surface);width:100%;min-height:44px;color:var(--lobby-ink);border-color:var(--lobby-border);font-size:14px}.lobby-start-button{border-radius:12px;min-height:50px}.lobby-start-button[aria-disabled=true]{opacity:.62;cursor:pointer}.lobby-start-button[aria-disabled=true]:hover{filter:none}.lobby-mode-note{text-align:center;color:var(--lobby-muted);margin-top:12px;font-size:11px}@media (width<=720px){.launch-lobby{grid-template-columns:1fr;gap:16px;margin-top:16px;padding:0 16px}.lobby-banner{border-radius:18px;min-height:132px}.lobby-banner-copy{padding:18px 20px}.lobby-banner h1{font-size:28px}.lobby-banner p{font-size:11px}.lobby-player-count{margin-top:12px;font-size:12px}.lobby-token-tray{gap:4px;bottom:13px;right:13px}.lobby-token-tray>span{width:25px;height:25px}.lobby-token-tray svg{width:19px;height:19px}.lobby-name-row{gap:12px}.lobby-name-row label{gap:6px;font-size:12px}.lobby-name-row label svg{width:19px;height:19px}.lobby-name-row input{flex:1;width:0;font-size:16px}.lobby-section-heading{padding:9px 15px}.lobby-room-content,.lobby-empty{min-height:92px}.lobby-empty{flex-direction:row;gap:10px;font-size:12px}.lobby-empty>svg{width:28px;height:28px}.lobby-invite{gap:8px;padding:12px 15px}.lobby-invite label svg{width:18px;height:18px}.lobby-invite input{letter-spacing:1px;padding:10px;font-size:16px}.lobby-room-items{max-height:240px}.lobby-room-items li{gap:10px;padding:12px 15px}.lobby-room-facts{gap:10px}.lobby-mode-options{padding:18px}}@media (prefers-color-scheme:dark){.launch-lobby{--lobby-surface:#1d2922;--lobby-soft:#2b3d30;--lobby-border:#405447;--lobby-muted:#adbdac;--lobby-ink:#e0e9df;--lobby-name-accent:#f0bc70;--lobby-name-glow:#f0bc7040;--lobby-name-background:#3b3223}.lobby-banner{background:#2b3d30}.lobby-banner:after{background:linear-gradient(90deg,#253d2b 16%,#253d2bf5 33%,#253d2b00 80%)}.lobby-banner-copy,.lobby-banner p{color:#e0e9df}.lobby-banner-art{filter:brightness(.72)}.lobby-player-count>span{border-color:#6f8667}.lobby-token-tray>span{background:#dbe5cfee}.lobby-list-error{color:#f0ad98}}.board-waiting .waiting-ai-controls{flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 24px;display:flex}.board-waiting .waiting-ai-controls label,.board-waiting .ai-remove{align-items:center;gap:6px;display:inline-flex}.board-waiting .waiting-ai-controls svg,.board-waiting .ai-remove svg,.board-waiting .avatar svg{width:24px;height:24px}.board-waiting .waiting-ai-controls select{min-width:72px;min-height:44px}.board-waiting .waiting-ai-controls .secondary{gap:8px;width:auto}.board-waiting .waiting-ai-controls p{flex-basis:100%;margin:0}.board-waiting .ai-remove{flex-shrink:0;min-height:44px}.board-waiting .member-kick{flex-shrink:0;align-items:center;gap:6px;min-height:44px;display:inline-flex}.board-waiting .members>.kick-target{grid-template-columns:40px minmax(0,1fr) auto;gap:4px 10px;display:grid}.board-waiting .kick-target>.avatar{grid-area:1/1/3}.board-waiting .kick-target>strong{grid-area:1/2}.board-waiting .kick-target>.member-ready{grid-area:2/2;font-size:12px}.board-waiting .kick-target>.member-kick{grid-area:1/3/3}@media (width<=480px){.board-waiting .members>div{flex-wrap:wrap;gap:10px;padding:14px 0}.board-waiting .members strong{overflow-wrap:anywhere;min-width:100px}}.board-lobby button,.board-waiting button{color:inherit;box-shadow:none;background:0 0;border-radius:9px}.board-lobby .primary,.board-waiting .primary{background:var(--lobby-button,#284d3a);color:var(--lobby-button-ink,#f6f5ed);justify-content:space-between;align-items:center;gap:20px;width:100%;min-height:46px;padding:13px 17px;font-weight:600;display:flex}.board-lobby .primary:hover,.board-waiting .primary:hover{background:var(--lobby-button,#284d3a);filter:brightness(1.08)}.board-waiting .secondary{background:var(--lobby-soft,#e7ebdf);color:var(--lobby-ink,#355340);border:0;align-items:center;gap:20px;min-height:46px;padding:13px 17px;font-weight:600;display:flex}.board-lobby .lobby-join{background:var(--lobby-soft)}.board-lobby .lobby-modes button[aria-pressed=true]{background:var(--lobby-surface)}.board-lobby .lobby-segments button[aria-pressed=true]{background:var(--lobby-soft);box-shadow:inset 0 0 0 1px var(--lobby-ink)}.board-lobby .lobby-list-error button{background:var(--lobby-soft)}.board-lobby .lobby-start-button{border-radius:12px;min-height:50px}.board-lobby .lobby-segments{flex-wrap:wrap}.board-lobby .lobby-segments button{flex:1 0 44px}.board-lobby .lobby-segments button svg{width:20px;height:20px}.board-lobby input{min-height:44px}.board-lobby select{color-scheme:inherit}.board-lobby .lobby-invite input{min-width:0}.board-lobby .lobby-extra{grid-column:1/-1}.board-waiting{max-width:700px;min-height:65vh;margin:70px auto;padding:0 25px}.board-waiting h1{margin:18px 0 12px;font-size:36px}.board-waiting .members{margin:30px 0}.waiting-capacity{border:0;min-width:0;margin:20px 0;padding:0}.waiting-capacity legend{color:var(--lobby-muted,currentColor);margin-bottom:8px;padding:0;font-size:12px}.waiting-capacity>div{flex-wrap:wrap;gap:7px;display:flex}.waiting-capacity button{border:1px solid var(--lobby-border,#929b89);min-height:44px;color:inherit;background:0 0;border-radius:9px;flex:1 0 44px;justify-content:center;align-items:center;gap:6px;padding:8px;display:flex}.waiting-capacity button[aria-pressed=true]{background:var(--lobby-soft,color-mix(in srgb, currentColor 16%, transparent));font-weight:700;box-shadow:inset 0 0 0 1px}.waiting-capacity svg{flex-shrink:0;width:20px;height:20px}.board-waiting .members>div{border-bottom:1px solid var(--lobby-border,#dde1d2);align-items:center;gap:16px;padding:18px;display:flex}.board-waiting .members strong{overflow-wrap:anywhere;flex:1;min-width:0}.board-waiting .members strong small{color:var(--lobby-muted,#8a937f);margin-left:10px}.board-waiting .members>div>span:last-child{font-size:12px}.board-waiting .avatar{background:var(--lobby-soft,#dce5ce);border-radius:50%;flex-shrink:0;place-items:center;width:40px;height:40px;display:grid}.board-waiting .waiting-buttons{flex-wrap:wrap;gap:12px;margin-bottom:18px;display:flex}.board-waiting .waiting-buttons .primary,.board-waiting .waiting-buttons .secondary,.board-waiting .waiting-ai-controls select{width:auto}.board-waiting .room-visibility{color:var(--lobby-ink,#376334);font-size:14px;font-weight:700}.board-waiting .invite-code strong{letter-spacing:.14em;margin-left:8px}@media (width<=720px){.board-waiting{margin-top:45px}.board-waiting h1{font-size:28px}}@media (width<=480px){.board-waiting .members>div{flex-wrap:wrap;gap:10px;padding:14px 0}}@media (prefers-color-scheme:dark){.board-waiting{--lobby-soft:#2b3d30;--lobby-border:#405447;--lobby-muted:#adbdac;--lobby-ink:#e0e9df}}.lobby-join-role{margin:12px 0}.traditional-game-picker{flex-wrap:wrap;grid-column:1/-1;align-items:center;gap:12px;display:flex}.traditional-game-picker a{color:inherit;text-underline-offset:4px;margin-right:auto;font-weight:700}.traditional-game-picker label{font-size:13px}.traditional-game-picker select{border:1px solid var(--lobby-border);background:var(--lobby-surface);width:auto;min-width:100px;min-height:40px;color:var(--lobby-ink);border-radius:10px;padding:8px 12px}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--board-page:#f3f1e9;--board-surface:#fffcf5;--board-soft:#e8ece2;--board-border:#c8d0bf;--board-ink:#263e35;--board-muted:#596b58;--board-accent:#285746;--board-gold:#856021;--board-error:#9a402b;--board-error-surface:#f7e5da}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--board-page:#141e1a;--board-surface:#21322a;--board-soft:#2e4435;--board-border:#596b56;--board-ink:#eee9d8;--board-muted:#b9c6ad;--board-accent:#a7d4b1;--board-gold:#e5c88a;--board-error:#ffbca2;--board-error-surface:#482e25}}.board-lobby,.board-waiting{--lobby-surface:var(--board-surface);--lobby-soft:var(--board-soft);--lobby-border:var(--board-border);--lobby-muted:var(--board-muted);--lobby-ink:var(--board-ink);--lobby-name-accent:var(--board-gold);--lobby-name-glow:color-mix(in srgb, var(--board-gold) 20%, transparent);--lobby-name-background:var(--board-soft);--lobby-button:#285746;--lobby-button-ink:#fffdf5;color:var(--lobby-ink)}.board-lobby select,.board-waiting input,.board-waiting select{background:var(--lobby-surface);color:var(--lobby-ink);border-color:var(--lobby-border)}.board-waiting .members>div,.board-waiting .avatar{background:var(--lobby-soft);border-color:var(--lobby-border)}.board-waiting .muted,.board-waiting .members strong small{color:var(--lobby-muted)}.board-waiting .room-visibility,.board-waiting .invite-code strong{color:var(--board-accent)}.board-dialog{background:var(--board-surface);color:var(--board-ink);border-color:var(--board-border)}.board-dialog .board-control{color:var(--board-ink)}.board-dialog .board-dialog-action{background:var(--board-soft);color:var(--board-ink);border-color:var(--board-border)}.board-dialog .board-dialog-confirm{color:#fffdf5;background:#285746}:root{color:var(--board-ink);background:var(--board-page);font-synthesis:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible{outline-offset:2px;z-index:3;outline:3px solid #e6a62c}h1,h2,p{margin:0}.game-header{align-items:center;gap:12px;max-width:1200px;height:56px;margin:auto;padding:8px 18px;display:flex}.game-title{align-items:center;gap:6px;margin-right:8px;font-size:18px;font-weight:800;display:flex}.game-title .piece{width:34px;height:34px}.header-actions{align-items:center;gap:10px;margin-left:auto;display:flex}.sound-settings{gap:16px;padding:8px 0;display:grid}.sound-settings label{justify-content:space-between;align-items:center;font-size:14px;display:flex}.sound-settings input[type=range]{width:100%;min-height:32px;accent-color:var(--board-accent);margin:0}.sound-settings .board-dialog-action[aria-pressed=true]{border-color:var(--board-gold)}.piece{filter:drop-shadow(0 2px 1px #0005);width:88%;height:88%;display:block}.piece-w{fill:#fff5d9;stroke:#514936}.piece-b{fill:#243b35;stroke:#c7d4bc}.chess-banner{background:repeating-conic-gradient(#70917c 0% 25%,#d5dfbd 0% 50%) 0 0/90px 90px}.chess-banner .lobby-banner-copy{z-index:2;position:relative}.banner-pieces{align-items:center;width:40%;height:95%;display:flex;position:absolute;top:6%;right:8%;transform:rotate(-10deg)}.banner-pieces .piece{width:55%;height:100%}.option-label{justify-content:space-between;align-items:center;gap:12px;margin:10px 0;font-size:13px;display:flex}.lobby-game-options .option-label{flex-direction:column;align-items:stretch;gap:8px;margin:0}.chess-side-options{grid-column:1/-1;margin-bottom:0}.chess-side-options .piece{width:26px;height:26px}select{border:1px solid var(--board-border);background:var(--board-surface);color:var(--board-ink);border-radius:9px;padding:8px 12px}.board-waiting{max-width:660px;margin:25px auto;padding:24px}.board-waiting h1{margin:8px 0}.board-waiting .members{gap:12px;margin:24px 0;display:grid}.board-waiting .members>div{border:1px solid var(--board-border);border-radius:12px;align-items:center;gap:14px;padding:14px;display:flex}.members strong{flex:1}.members small{display:block}.members .avatar{border-radius:50%;place-items:center;width:40px;height:40px;display:grid}.waiting-buttons{flex-wrap:wrap;gap:10px;display:flex}.waiting-buttons button,.primary{border:1px solid var(--board-border);background:var(--board-soft);color:var(--board-ink);border-radius:10px;padding:12px 18px}.waiting-buttons .primary{color:#fffdf5;background:#285746}.is-game{height:100dvh;overflow:hidden}.game-table{justify-content:center;align-items:center;gap:28px;height:calc(100dvh - 56px);padding:12px;display:flex}.board-panel{background:linear-gradient(135deg,#8a6b45,#4e432e);border-radius:10px;flex:none;padding:8px;box-shadow:0 10px 25px #0003,inset 0 0 0 2px #c6aa7340}.chess-board{aspect-ratio:1;border:2px solid #3b3c2a;grid-template-columns:repeat(8,1fr);width:min(60vw,100dvh - 108px,640px);display:grid}.square{aspect-ratio:1;touch-action:manipulation;border:0;border-radius:0;place-items:center;min-width:0;min-height:0;padding:0;display:grid;position:relative}.square.light{color:#466153;background:#e2ddbd}.square.dark{color:#faf0d4;background:#688470}.square.last{box-shadow:inset 0 0 0 4px #e5b95288}.square.selected{background:#e9bc57;box-shadow:inset 0 0 0 3px #5c4722}.square.target:after{content:"";pointer-events:none;background:#183d46aa;border-radius:50%;width:25%;height:25%;position:absolute}.square.target:has(.piece):after{background:0 0;border:4px solid #b04c38;width:90%;height:90%}.square.in-check{background:#c77c62}.square .piece{animation:.22s ease-out piece-arrive}.rank,.file{pointer-events:none;font-size:clamp(8px,1vw,11px);font-weight:750;position:absolute}.rank{top:1px;left:3px}.file{bottom:1px;right:3px}.turn-panel{flex-direction:column;gap:16px;width:240px;min-width:0;display:flex}.players{flex-direction:column;gap:8px;display:flex}.player{border:1px solid var(--board-border);background:var(--board-surface);border-radius:12px;align-items:center;gap:8px;min-width:0;padding:8px;display:flex}.player .piece{flex:none;width:44px;height:44px}.player span{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:700;overflow:hidden}.player small{color:var(--board-muted);font-size:11px;font-weight:400;display:block}.player.active{border-color:var(--board-gold);box-shadow:0 0 0 2px color-mix(in srgb,var(--board-gold) 20%,transparent)}.turn-status{justify-content:space-between;align-items:center;gap:8px;display:flex}.turn-status strong{overflow-wrap:anywhere;font-size:15px}.game-table{--chess-alert:#a23f27;--chess-alert-line:#c56c3e}.is-my-turn .chess-board{outline:2px solid var(--board-gold);outline-offset:1px}.is-my-turn .turn-status strong{color:var(--board-accent)}.is-urgent .board-panel{box-shadow:0 0 0 2px var(--chess-alert-line),0 10px 25px #0003;animation:1s ease-in-out infinite chess-urgent}.is-urgent .turn-status strong{color:var(--chess-alert)}.is-urgent .player.active{border-color:var(--chess-alert-line)}.game-table .board-timer{--clock-alert:var(--chess-alert);--clock-alert-border:var(--chess-alert-line)}.square.in-check{box-shadow:inset 0 0 0 3px #b73828}.square.in-check .piece{animation:1.2s ease-in-out infinite chess-check}.is-finished .board-panel,.is-finished .square.in-check .piece{animation:none}.is-finished .turn-status strong{color:var(--board-gold)}@keyframes chess-urgent{50%{box-shadow:0 0 0 4px color-mix(in srgb,var(--chess-alert-line) 60%,transparent),0 10px 25px #0003}}@keyframes chess-check{50%{filter:drop-shadow(0 0 5px #e25538)}}@media (prefers-color-scheme:dark){.game-table{--chess-alert:#ffc0a0;--chess-alert-line:#e98d65}.game-table .board-timer{--clock-surface:#273c31;--clock-ink:#dae9cc;--clock-border:#7c927a;--clock-alert-surface:#482e25}}.move-strip{min-height:24px;color:var(--board-muted);flex-wrap:wrap;gap:6px;font:12px/1.5 ui-monospace,monospace;display:flex}.game-actions{align-items:center;gap:8px;display:flex}.text-action{border:1px solid var(--board-border);background:var(--board-soft);border-radius:10px;min-height:40px;margin-left:auto;padding:8px 12px;font-size:13px}.error-toast{z-index:10;background:var(--board-error-surface);max-width:calc(100vw - 24px);color:var(--board-error);border:1px solid;border-radius:12px;align-items:center;gap:12px;padding:12px 16px;font-size:13px;display:flex;position:fixed;bottom:12px;left:50%;transform:translate(-50%);box-shadow:0 4px 20px #0003}.error-toast button{color:inherit;background:0 0;border:0;font-size:24px}.promotion-options{gap:10px;display:flex}.promotion-options button{background:var(--board-soft);border:1px solid var(--board-border);border-radius:12px;flex:1;min-width:0;padding:5px}.promotion-options .piece{width:100%;height:auto}.promotion-options span{font-size:12px}.pgn{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8}@keyframes piece-arrive{0%{opacity:.65;transform:translateY(-8%)scale(.94)}to{opacity:1;transform:none}}@media (prefers-color-scheme:dark){.square.light{color:#274337;background:#b9b89d}.square.dark{color:#eee6cc;background:#4a6658}.square.selected{background:#be9c51}.board-panel{background:linear-gradient(135deg,#766040,#3e392d)}.piece-b{fill:#192c28;stroke:#b8c9b6}}@media (aspect-ratio<=1){.game-table{flex-direction:column;gap:10px;padding:6px 10px 10px}.board-panel{padding:5px}.chess-board{width:min(100vw - 32px,100dvh - 242px,620px)}.turn-panel{gap:6px;width:min(100vw - 32px,620px)}.players{flex-direction:row;gap:6px}.player{border-radius:8px;gap:5px;width:50%;padding:3px 6px}.player .piece{width:30px;height:30px}.player span{font-size:12px}.player small{font-size:10px}.turn-status{min-height:32px}.turn-status strong{font-size:13px}.move-strip{min-height:18px;max-height:18px;font-size:11px;overflow:hidden}.game-actions .board-control{width:36px;height:34px;min-height:34px;padding:5px}.text-action{min-height:34px;padding:5px 12px}}@media (height<=500px) and (aspect-ratio>=1){.game-header{height:46px}.game-table{gap:14px;height:calc(100dvh - 46px);padding:6px}.chess-board{width:min(55vw,100dvh - 76px)}.board-panel{padding:4px}.turn-panel{gap:8px;width:205px}.player .piece{width:32px;height:32px}.player{padding:4px}.players{gap:4px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}
