:root{--square-size: 58px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}@media (max-width: 720px){:root{--square-size: 44px}}body{margin:0;background:#f4f4f4}.app{display:flex;flex-wrap:wrap;align-items:flex-start;gap:1rem;padding:1rem}.board-section{padding:2rem}.board-section.chaos-rush-active{background:linear-gradient(180deg,#c0392b1f,#c0392b05);border-radius:8px}.board-section h1{margin-top:0;font-size:1.25rem}.board-outer{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.board-toggle{font-size:.85rem;display:flex;align-items:center;gap:.25rem;cursor:pointer;-webkit-user-select:none;user-select:none}.board-toggle input{cursor:pointer}.board{display:grid;grid-template-columns:repeat(10,var(--square-size));grid-template-rows:repeat(10,var(--square-size));border:4px solid #2b2621;border-radius:4px;width:fit-content;position:relative;transition:transform .6s ease-in-out,box-shadow .2s ease-in-out,background .2s ease-in-out;transform-origin:center center;box-shadow:inset 0 0 0 1px #c8a45c59,inset 0 0 20px #00000059,0 24px 60px #00000073}.board.chaos-rush-board{box-shadow:0 0 0 6px #8b1a1a59,inset 0 0 0 1px #c8a45c59;background:#8b1a1a14;animation:chaos-rush-pulse 1.25s ease-in-out infinite}.board.no-transition,.board.no-transition .piece,.board.no-transition .tile-label,.board.no-transition .board-label span,.board.no-transition .square-coord{transition:none!important}.square{width:var(--square-size);height:var(--square-size);display:flex;align-items:center;justify-content:center;font-size:calc(var(--square-size) * .58);cursor:default;-webkit-user-select:none;user-select:none;position:relative;overflow:hidden}.light{background:var(--board-light)}.dark{background:var(--board-dark)}.square.legal{box-shadow:inset 0 0 0 4px var(--selection)}.square.jump-destination{box-shadow:inset 0 0 0 4px var(--ui-success)}.square.pending-exit{box-shadow:inset 0 0 0 4px #9b59b6eb}.square.pending-disembark{box-shadow:inset 0 0 0 4px var(--ui-warning)}.square.sabotage-destination,.square.sabotage-piece,.square.demotion-target,.square.demotion-type,.square.kazam-secret,.square.kazam-portal-exit,.square.kazam-portal-disembark,.square.time-bomb-target,.square.super-promotion-target{box-shadow:inset 0 0 0 4px var(--ui-danger)}.square.selected{box-shadow:inset 0 0 0 4px var(--ui-accent)}.square.king-check{background:#8b1a1abf}.game-end{padding:8px 12px;border-radius:4px;margin-top:8px}.game-end.checkmate{background:#e74c3c;color:#fff}.game-end.stalemate{background:#f1c40f;color:#000}.square:hover{filter:brightness(1.1)}.piece{pointer-events:none;display:inline-flex;align-items:flex-end;justify-content:center;width:100%;height:100%;position:relative;z-index:2;isolation:isolate;padding-bottom:4%;transition:transform .6s ease-in-out}.piece:before{content:"";position:absolute;left:18%;right:18%;bottom:5%;height:13%;border-radius:50%;background:radial-gradient(circle,rgba(0,0,0,.36) 0%,rgba(0,0,0,.2) 45%,transparent 78%);filter:blur(1.75px);opacity:.58;z-index:0;transform:translateY(30%)}.piece-artwork{position:relative;z-index:1;display:block;width:auto;max-width:92%;pointer-events:none;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35));transition:filter .15s ease}.piece-artwork--pawn{height:70%}.piece-artwork--knight{height:80%}.piece-artwork--bishop{height:83%}.piece-artwork--rook{height:79%}.piece-artwork--queen{height:89%}.piece-artwork--king{height:91%}.piece-fallback{position:relative;z-index:1;display:block;font-size:calc(var(--square-size) * .58);line-height:1}.piece--selected:before{background:radial-gradient(circle,rgba(200,164,92,.42) 0%,rgba(200,164,92,.16) 38%,transparent 80%);opacity:.92}.piece--check-defender:before{background:radial-gradient(circle,rgba(192,57,43,.34) 0%,rgba(192,57,43,.12) 40%,transparent 80%);opacity:.9}.piece--check-trapped:before{background:radial-gradient(circle,rgba(150,40,40,.42) 0%,rgba(150,40,40,.14) 42%,transparent 80%);opacity:.96}.tile-label{position:absolute;bottom:2px;left:2px;z-index:1;font-size:calc(var(--square-size) * .16);color:#14110de6;text-transform:uppercase;pointer-events:none;display:inline-block;transition:transform .6s ease-in-out}.square-coord{position:absolute;top:2px;right:2px;z-index:1;font-size:calc(var(--square-size) * .12);color:#14110db3;pointer-events:none;display:inline-block;transition:transform .6s ease-in-out}.board-label{display:flex;align-items:center;justify-content:center;font-size:calc(var(--square-size) * .22);color:#333;pointer-events:none;-webkit-user-select:none;user-select:none}.board-label span{display:inline-block;transition:transform .6s ease-in-out}.board-label.top,.board-label.bottom{text-transform:uppercase}.board-label.corner{background:transparent}@keyframes chaos-rush-pulse{0%,to{box-shadow:0 0 0 6px #c0392b47}50%{box-shadow:0 0 0 10px #c0392b73}}@media (prefers-reduced-motion: reduce){.board,.piece,.tile-label,.square-coord,.board-label span,.board.chaos-rush-board,.board-action-popover{transition:none!important;animation:none!important}}.board-action-popover{position:absolute;z-index:10;pointer-events:none}.board-action-popover__content{display:flex;flex-direction:column;gap:.25rem;padding:.5rem;background:#fff;border:1px solid #333;border-radius:4px;box-shadow:0 4px 12px #00000040;min-width:120px;pointer-events:none}.board-action-popover__content--icons{flex-direction:row;gap:.5rem}.board-action-popover__action,.board-action-popover__icon{display:flex;align-items:center;justify-content:center;padding:.25rem .5rem;font:inherit;font-size:.9rem;cursor:pointer;background:#f8f8f8;border:1px solid #ccc;border-radius:3px;pointer-events:auto}.board-action-popover__action:hover,.board-action-popover__icon:hover{background:#e8e8e8}.board-action-popover__heading{width:100%;font-family:var(--font-display);font-size:.78rem;letter-spacing:.08em;color:var(--metal-gold-muted);text-transform:uppercase;text-align:center}.board-action-popover__icon{width:2.4rem;height:2.4rem;font-size:1.4rem;background:#1e181214;border:1px solid var(--border-carved);border-radius:4px}.board-action-popover__icon:hover{background:#c8a45c2e;border-color:var(--metal-gold)}.demotion-type-popover .board-action-popover__content--icons{flex-wrap:wrap;justify-content:center;max-width:min(21rem,96%);padding:.65rem}.demotion-type-popover .board-action-popover__icon{flex-direction:column;gap:.2rem;width:3.5rem;min-height:4.1rem;padding:.35rem .25rem .4rem}.demotion-type-popover .piece{height:2.4rem;padding-bottom:0}.demotion-type-popover .piece:before{display:none}.demotion-type-popover .board-action-popover__icon-label{font-size:.62rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--text-parchment);text-align:center}.demotion-type-popover .board-action-popover__icon:active{background:#c8a45c52;transform:translateY(1px)}.demotion-type-popover .board-action-popover__icon:focus-visible{outline:2px solid var(--metal-gold);outline-offset:1px}.square.super-tile{position:relative;isolation:isolate}.super-tile-sigil,.super-tile-artwork{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;display:flex;align-items:center;justify-content:center;pointer-events:none;transition:opacity .2s ease,color .2s ease,transform .3s ease,filter .2s ease}.super-tile-sigil:before,.super-tile-artwork:before{content:"";position:absolute;top:16%;right:16%;bottom:16%;left:16%;border-radius:50%;background:radial-gradient(circle,currentColor 0%,rgba(0,0,0,0) 70%);opacity:.07;filter:blur(6px);pointer-events:none}.super-tile-sigil:after,.super-tile-artwork:after{content:"";position:absolute;top:10%;right:10%;bottom:10%;left:10%;border-radius:50%;border:1px solid rgba(255,255,255,.05);box-shadow:inset 0 0 12px #00000047;opacity:.5;pointer-events:none}.super-tile-sigil__rune,.super-tile-artwork__image,.super-tile-artwork__fallback{overflow:visible}.super-tile-sigil__rune,.super-tile-artwork__image{position:relative;z-index:1;opacity:.92;filter:drop-shadow(0 0 2px rgba(0,0,0,.35))}.super-tile-artwork__image{width:88%;height:88%;object-fit:contain;pointer-events:none}.super-tile-artwork__fallback{position:relative;z-index:1;opacity:.9;filter:drop-shadow(0 0 2px rgba(0,0,0,.35))}.super-tile-sigil--portal,.super-tile-artwork--portal{color:#7b4bc4}.super-tile-sigil--chaos,.super-tile-artwork--chaos{color:#a61d1d}.super-tile-sigil--strategy,.super-tile-artwork--strategy{color:#d4a83a}.super-tile-sigil--teleport,.super-tile-artwork--teleport{color:#3f9e9e}.super-tile-sigil--swap,.super-tile-artwork--swap{color:#b67c2e}.square.super-tile--portal .super-tile-sigil--eligible,.square.super-tile--portal .super-tile-artwork--eligible{opacity:.98;filter:drop-shadow(0 0 6px rgba(123,75,196,.55))}.square.super-tile--portal .super-tile-sigil--triggered,.square.super-tile--portal .super-tile-artwork--triggered{animation:portal-artifact-pulse 2.2s ease-in-out infinite}.square.super-tile--chaos .super-tile-sigil--eligible,.square.super-tile--chaos .super-tile-artwork--eligible{opacity:.98;filter:drop-shadow(0 0 6px rgba(166,29,29,.5))}.square.super-tile--chaos .super-tile-sigil--triggered,.square.super-tile--chaos .super-tile-artwork--triggered{animation:chaos-artifact-flare 1.3s ease-in-out infinite}.square.super-tile--strategy .super-tile-sigil--eligible,.square.super-tile--strategy .super-tile-artwork--eligible{opacity:.98;filter:drop-shadow(0 0 6px rgba(212,168,58,.45))}.square.super-tile--strategy .super-tile-sigil--triggered,.square.super-tile--strategy .super-tile-artwork--triggered{animation:strategy-artifact-illuminate 1.8s ease-in-out infinite}.square.super-tile--teleport .super-tile-sigil--eligible,.square.super-tile--teleport .super-tile-artwork--eligible{opacity:.98;filter:drop-shadow(0 0 6px rgba(63,158,158,.45))}.square.super-tile--teleport .super-tile-sigil--triggered,.square.super-tile--teleport .super-tile-artwork--triggered{animation:teleport-artifact-shift 1.1s ease-in-out infinite}.square.super-tile--swap .super-tile-sigil--eligible,.square.super-tile--swap .super-tile-artwork--eligible{opacity:.98;filter:drop-shadow(0 0 6px rgba(182,124,46,.45))}.square.super-tile--swap .super-tile-sigil--triggered,.square.super-tile--swap .super-tile-artwork--triggered{animation:swap-artifact-orbit .95s ease-in-out infinite}.square.super-tile--occupied .super-tile-artwork__image,.square.super-tile--occupied .super-tile-artwork__fallback{opacity:.72;filter:drop-shadow(0 0 1px rgba(0,0,0,.35)) brightness(.82) saturate(.9)}.square.super-tile-portal .tile-label,.square.super-tile-chaos .tile-label,.square.super-tile-strategy .tile-label,.square.super-tile-teleport .tile-label,.square.super-tile-swap .tile-label{display:none}@keyframes portal-artifact-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.03)}}@keyframes chaos-artifact-flare{0%,to{filter:drop-shadow(0 0 6px rgba(166,29,29,.5))}50%{filter:drop-shadow(0 0 12px rgba(166,29,29,.85))}}@keyframes strategy-artifact-illuminate{0%,to{filter:drop-shadow(0 0 4px rgba(212,168,58,.4))}50%{filter:drop-shadow(0 0 12px rgba(212,168,58,.8))}}@keyframes teleport-artifact-shift{0%,to{opacity:.9;transform:translateY(0)}50%{opacity:1;transform:translateY(-1px)}}@keyframes swap-artifact-orbit{0%,to{transform:scale(1)}50%{transform:scale(1.035) rotate(2deg)}}@media (prefers-reduced-motion: reduce){.super-tile-sigil,.super-tile-artwork{transition:none!important;animation:none!important}}.lab-panel{flex:1 1 260px;min-width:260px;max-width:320px;background:#fff;padding:1rem;border:1px solid #ccc;border-radius:4px}.lab-panel h2{margin-top:0;font-size:1.1rem}.lab-panel h3{font-size:1rem;margin:1rem 0 .5rem}.lab-panel button{margin-right:.5rem;margin-bottom:.5rem;padding:.25rem .75rem;cursor:pointer}.super-tile-legend{margin-top:1rem}.legend-item{display:flex;align-items:center;gap:.5rem;margin-bottom:.25rem;text-transform:capitalize}.legend-swatch{width:14px;height:14px;border:1px solid #333;display:inline-block}.chaos-panel{margin-top:1rem;padding:.5rem;background:#fafafa;border:1px solid #ddd;border-radius:4px}.chaos-panel h3{margin:0 0 .5rem;font-size:1rem}.chaos-panel p{margin:.25rem 0;font-size:12px}.chaos-empty{color:#c0392b;font-weight:700}.blackout-active{color:#2c3e50;background:#f1c40f;padding:.25rem .5rem;border-radius:4px}.clock-display{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;width:160px;padding:.5rem .75rem;margin:.25rem 0;border:1px solid #bdc3c7;border-radius:4px;background:#ecf0f1;font-family:ui-monospace,monospace}.clock-display.running{border-color:#27ae60;background:#d5f5e3}.clock-display.stopped{color:#7f8c8d}.clock-player{font-weight:700}.clock-time{font-variant-numeric:tabular-nums}.clock-rush{flex-basis:100%;font-size:.72rem;color:#c0392b}.clock-rush.decision{font-weight:700}.clock-rush.final,.clock-display.rush-final{color:#7a0000;font-weight:700}.clock-display.rush-active{border-color:#c0392b;background:#fdecea}.view-controls{margin:.5rem 0}.view-controls select{margin-left:.5rem}.undo-toggle{display:block;margin:.5rem 0}.multiplayer-lobby{padding:1rem;max-width:400px;margin:0 auto}.multiplayer-lobby button{margin:.5rem 0;display:block}.join-form{display:flex;gap:.5rem;margin-top:.5rem}.connection-status{font-size:.875rem;color:#7f8c8d}.error{color:#c0392b}.session-id{font-size:.75rem;word-break:break-all;color:#2c3e50}.session-info{font-size:.8rem;color:#34495e;margin:.25rem 0}.leave-game{margin:.5rem 0;background:#e74c3c;color:#fff}.game-effects-layer{position:relative;width:100%;min-height:100vh}.effects-banner{position:fixed;top:1rem;left:50%;transform:translate(-50%);z-index:101;padding:.6rem 1.4rem;border-radius:6px;font-weight:800;font-size:1.25rem;text-transform:uppercase;letter-spacing:.08em;pointer-events:none;box-shadow:0 4px 12px #00000040;animation:banner-drop .4s ease-out}.reveal-banner-stack{position:fixed;top:4.25rem;left:50%;transform:translate(-50%);z-index:100;display:flex;flex-direction:column;gap:.45rem;align-items:center;pointer-events:none;width:min(28rem,calc(100vw - 1.5rem))}.reveal-banner{width:100%;border-radius:10px;padding:.65rem 1rem;border:1px solid rgba(255,255,255,.12);box-shadow:0 6px 18px #00000052;text-align:center;text-transform:uppercase;letter-spacing:.06em;animation:reveal-pop .24s ease-out}.reveal-family{font-size:.72rem;font-weight:800;opacity:.9}.reveal-title{font-size:1.08rem;font-weight:900;margin-top:.12rem}.reveal-subtitle{font-size:.73rem;font-weight:600;margin-top:.25rem;letter-spacing:.03em;text-transform:none;opacity:.9}@keyframes reveal-pop{0%{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes banner-drop{0%{opacity:0;transform:translate(-50%) translateY(-20px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.fx-banner-chaos-rush-start{background:#c0392b;color:#fff;border:2px solid #e74c3c;box-shadow:0 0 0 4px #c0392b4d,0 4px 12px #00000040}.fx-banner-chaos-rush-end{background:#2c3e50;color:#ecf0f1}.fx-banner-chaos-rush-forfeit{background:#f39c12;color:#000}.fx-banner-blackout{background:#111827;color:#f9fafb}.fx-banner-revolution{background:#2563eb;color:#fff}.fx-banner-time-bomb{background:#e74c3c;color:#fff}.reveal-chaos{background:linear-gradient(180deg,#2b1a1a,#1a1110);color:var(--text-parchment);border:1px solid rgba(139,26,26,.45);box-shadow:0 0 0 1px #8b1a1a40,0 6px 18px #00000052}.reveal-chaos .reveal-family{color:var(--danger-blood)}.reveal-strategy{background:linear-gradient(180deg,#f2e6d4,#e0d2be);color:var(--ink-dark);border:1px solid rgba(200,164,92,.45);box-shadow:0 0 0 1px #c8a45c40,0 6px 18px #00000052}.reveal-strategy .reveal-family{color:var(--metal-gold-muted)}.fx-atmosphere-chaos-rush .board{animation:chaos-rush-pulse 1.2s ease-in-out infinite;box-shadow:0 0 0 5px #c0392b52}.fx-atmosphere-revolution .board{transition:transform .6s ease-in-out}.fx-atmosphere-blackout .board .super-tile,.fx-atmosphere-blackout .board .tile-label{filter:brightness(1.25)}.board-presentation{position:relative}.fx-wash-layer{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;overflow:hidden;pointer-events:none}.fx-wash{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none;animation:fx-wash-fade .8s ease-out forwards}.fx-wash-chaos{background:radial-gradient(circle at var(--fx-origin-x, 50%) var(--fx-origin-y, 50%),rgba(192,57,43,.14) 0%,rgba(139,26,26,.11) 38%,rgba(139,26,26,0) 72%)}.fx-wash-strategy{background:radial-gradient(circle at var(--fx-origin-x, 50%) var(--fx-origin-y, 50%),rgba(58,110,200,.14) 0%,rgba(37,99,235,.1) 38%,rgba(37,99,235,0) 72%)}.fx-wash-rush{animation:fx-wash-ignite .7s ease-out forwards;background:radial-gradient(circle at var(--fx-origin-x, 50%) var(--fx-origin-y, 50%),rgba(230,201,133,.16) 0%,rgba(200,164,92,.12) 34%,rgba(200,164,92,0) 70%)}.fx-wash-sudden-death{animation:fx-wash-sudden-death 1.5s ease-out forwards;background:radial-gradient(circle at var(--fx-origin-x, 50%) var(--fx-origin-y, 50%),rgba(139,26,26,.22) 0%,rgba(80,10,10,.16) 45%,rgba(0,0,0,0) 75%),radial-gradient(ellipse at center,#0000 55%,#0a040447)}@keyframes fx-wash-fade{0%{opacity:0}14%{opacity:1}to{opacity:0}}@keyframes fx-wash-ignite{0%{opacity:0}10%{opacity:1}32%{opacity:.35}46%{opacity:.9}to{opacity:0}}@keyframes fx-wash-sudden-death{0%{opacity:0}12%{opacity:1}55%{opacity:.75}to{opacity:0}}.sound-toggle{font-size:.95rem;line-height:1;padding:.35rem .5rem}.sound-toggle--muted{opacity:.45}.square.fx-capture{animation:capture-flash .35s ease-out}@keyframes capture-flash{0%{box-shadow:inset 0 0 #e74c3c00}40%{box-shadow:inset 0 0 0 6px #e74c3cb3;background:#ffdcdc}to{box-shadow:inset 0 0 #e74c3c00}}.square.fx-teleport,.square.fx-portal,.square.fx-swap{animation:energy-flash .55s ease-out}@keyframes energy-flash{0%{box-shadow:inset 0 0 #9b59b600}50%{box-shadow:inset 0 0 0 6px #9b59b6b3}to{box-shadow:inset 0 0 #9b59b600}}.square.fx-time-bomb{animation:time-bomb-burst .5s ease-out}@keyframes time-bomb-burst{0%{box-shadow:inset 0 0 #e74c3c00}50%{box-shadow:inset 0 0 0 8px #e74c3ccc;background:#ff8f8f}to{box-shadow:inset 0 0 #e74c3c00}}.square.fx-invisibility{animation:fog-roll .9s ease-out;position:relative}.square.fx-invisibility:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle,#ecf0f173,#bdc3c700 70%);pointer-events:none;animation:fog-pulse 1.2s ease-in-out infinite}@keyframes fog-roll{0%{opacity:0;background:#bdc3c766}to{opacity:1;background:transparent}}@keyframes fog-pulse{0%,to{opacity:.4}50%{opacity:.7}}.square.fx-tile-storm{animation:tile-storm .7s ease-in-out}@keyframes tile-storm{0%{box-shadow:inset 0 0 #f1c40f00}50%{box-shadow:inset 0 0 0 6px #f1c40fcc;background:#fff8d8}to{box-shadow:inset 0 0 #f1c40f00}}.square.fx-revolution{animation:revolution-pulse .7s ease-out}@keyframes revolution-pulse{0%{box-shadow:inset 0 0 #3498db00}50%{box-shadow:inset 0 0 0 6px #3498db99}to{box-shadow:inset 0 0 #3498db00}}.piece.fx-teleport,.piece.fx-portal{animation:piece-flicker .55s ease-in-out}@keyframes piece-flicker{0%,to{opacity:1}50%{opacity:.3}}.piece.fx-swap{animation:piece-swap .55s ease-in-out}@keyframes piece-swap{0%,to{transform:scale(1)}50%{transform:scale(1.15)}}.piece.fx-backfire{animation:backfire-glow .7s ease-in-out;text-shadow:0 0 6px rgba(231,76,60,.8)}@keyframes backfire-glow{0%,to{filter:drop-shadow(0 0 0 rgba(231,76,60,0))}50%{filter:drop-shadow(0 0 6px rgba(231,76,60,.9))}}.piece.fx-double-up{animation:double-up-pulse .5s ease-in-out infinite;text-shadow:0 0 5px rgba(241,196,15,.8)}@keyframes double-up-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.08)}}.piece.fx-super-promotion{animation:super-promotion-glow .5s ease-in-out;text-shadow:0 0 8px rgba(155,89,182,.9)}@keyframes super-promotion-glow{0%,to{filter:drop-shadow(0 0 0 rgba(155,89,182,0))}50%{filter:drop-shadow(0 0 8px rgba(155,89,182,.9))}}.piece.fx-invisibility{animation:piece-fade .9s ease-out}@keyframes piece-fade{0%{opacity:0;filter:blur(2px)}to{opacity:1;filter:blur(0)}}@media (prefers-reduced-motion: reduce){.game-effects-layer,.game-effects-layer *,.square.fx-capture,.square.fx-teleport,.square.fx-portal,.square.fx-swap,.square.fx-time-bomb,.square.fx-invisibility,.square.fx-tile-storm,.square.fx-revolution,.piece.fx-teleport,.piece.fx-portal,.piece.fx-swap,.piece.fx-backfire,.piece.fx-double-up,.piece.fx-super-promotion,.piece.fx-invisibility,.effects-banner,.reveal-banner,.fx-wash,.fx-wash-layer,.fx-wash-chaos,.fx-wash-strategy,.fx-wash-rush,.fx-wash-sudden-death,.fx-atmosphere-chaos-rush .board{animation:none!important;transition:none!important}.square.fx-invisibility:after,.piece.fx-invisibility{display:none}.fx-atmosphere-blackout .board{filter:brightness(.92)}.fx-atmosphere-chaos-rush .board{box-shadow:0 0 0 3px #c0392b80}.piece.fx-backfire,.piece.fx-double-up,.piece.fx-super-promotion{text-shadow:none;filter:none}.reveal-banner-stack{top:3.5rem}}:root{--surface-oak: #1a1510;--surface-oak-alt: #241e18;--surface-iron: #2b2621;--surface-leather: #3d2f22;--surface-parchment: #f2e6d4;--metal-gold: #c8a45c;--metal-gold-muted: #9c7e44;--metal-gold-bright: #e6c985;--ink-dark: #14110d;--text-parchment: #f2e6d4;--danger-blood: #8b1a1a;--border-carved: rgba(200, 164, 92, .18);--font-display: "Cinzel", Georgia, "Times New Roman", serif;--ui-bg: #1a1510;--ui-bg-alt: #241e18;--ui-panel: rgba(30, 24, 18, .92);--ui-panel-strong: rgba(45, 36, 27, .96);--ui-border: var(--border-carved);--ui-border-strong: rgba(200, 164, 92, .35);--ui-text: #f2e6d4;--ui-muted: #b8a890;--ui-accent: var(--metal-gold);--ui-accent-soft: rgba(200, 164, 92, .18);--ui-danger: var(--danger-blood);--ui-success: #6b8c5e;--ui-warning: #d4a24c;--ui-shadow: 0 24px 60px rgba(0, 0, 0, .45);--board-light: radial-gradient(circle at 22% 18%, rgba(255, 252, 242, .28), transparent 22%), radial-gradient(circle at 88% 82%, rgba(0, 0, 0, .04), transparent 28%), linear-gradient(165deg, #f2ead6 0%, #e8dcc0 45%, #ddd0b5 100%);--board-dark: radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .05), transparent 22%), radial-gradient(circle at 80% 85%, rgba(0, 0, 0, .22), transparent 35%), linear-gradient(165deg, #2d2b26 0%, #24221d 50%, #1b1a16 100%);--white-piece-fill: #fffdf5;--white-piece-edge: 0 0 1px rgba(0, 0, 0, .5), 1px 1px 2px rgba(0, 0, 0, .6), -1px -1px 0 rgba(0, 0, 0, .15);--black-piece-fill: #15120f;--black-piece-edge: 0 0 1px rgba(255, 255, 255, .35), 1px 1px 1px rgba(255, 255, 255, .18);--selection: rgba(200, 164, 92, .9);--legal-move: rgba(107, 140, 94, .92);--capture-target: rgba(139, 26, 26, .92)}body{margin:0;min-height:100vh;background:radial-gradient(circle at top,rgba(200,164,92,.08),transparent 26%),radial-gradient(circle at 20% 20%,rgba(139,26,26,.08),transparent 16%),linear-gradient(180deg,#1a1510,#241e18 48%,#1a1510);color:var(--ui-text)}#root{min-height:100vh}button,select,input{font:inherit}button{border:1px solid rgba(200,164,92,.45);border-radius:4px;padding:.7rem 1.1rem;background:linear-gradient(180deg,#3d2f22,#2b2621);color:var(--text-parchment);box-shadow:inset 0 1px #ffffff0f,0 8px 18px #00000038;text-transform:uppercase;letter-spacing:.08em;font-size:.82rem;font-weight:700;transition:transform 90ms ease,filter 90ms ease,box-shadow .12s ease,border-color .12s ease}button:active:not(:disabled):not([aria-disabled=true]){transform:translateY(1px);filter:brightness(.94);box-shadow:inset 0 2px 5px #0006,0 3px 8px #0000002e}button.is-pending,button.is-pending:disabled{cursor:progress;opacity:1;transform:translateY(1px);border-color:#c8a45ca6;box-shadow:inset 0 2px 6px #00000073,0 0 0 1px #c8a45c33}button.is-pending:hover{background:linear-gradient(180deg,#3d2f22,#2b2621);border-color:#c8a45ca6;box-shadow:inset 0 2px 6px #00000073,0 0 0 1px #c8a45c33}@media (prefers-reduced-motion: reduce){button{transition:none}button:active:not(:disabled):not([aria-disabled=true]),button.is-pending,button.is-pending:disabled{transform:none}}button:hover{background:linear-gradient(180deg,#4a3a2a,#363025);border-color:#c8a45cb3;box-shadow:inset 0 1px #ffffff14,0 0 0 1px #c8a45c40,0 8px 18px #00000038}button:disabled{opacity:.45;cursor:not-allowed}input,select,textarea{border:1px solid var(--ui-border-strong);border-radius:4px;background:#1e1812b8;color:var(--ui-text);padding:.72rem .9rem}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid rgba(200,164,92,.6);outline-offset:2px}.mode-switcher{display:grid;gap:1rem;width:min(100%,1680px);margin:0 auto;padding:1rem}.shell-select{display:inline-flex;align-items:center;gap:.75rem;color:var(--ui-muted)}.shell-select span{font-size:.8rem;text-transform:uppercase;letter-spacing:.12em}.game-shell{display:grid;gap:1rem;color:var(--ui-text)}.game-shell__header{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;height:clamp(6rem,14vh,8rem);box-sizing:border-box;padding:1rem 1.2rem;border:1px solid var(--ui-border);border-radius:24px;background:linear-gradient(180deg,#141a26db,#0a0e16e0);box-shadow:var(--ui-shadow);overflow:clip}.game-shell__heading h1{margin:.1rem 0 0;font-size:clamp(1.5rem,2vw,2.1rem);letter-spacing:.04em}.game-shell__eyebrow{margin:0;font-size:.72rem;text-transform:uppercase;letter-spacing:.18em;color:var(--ui-accent)}.game-shell__subtitle{margin:.35rem 0 0;color:var(--ui-muted)}.game-shell__actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;max-height:100%;overflow:auto}.game-shell__player-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;height:clamp(10rem,22vh,14rem);align-items:stretch}.game-shell__player-row>.player-strip{display:contents}.game-shell__player-row .player-strip>*{min-height:0;overflow:auto}.game-shell__grid{display:grid;grid-template-columns:minmax(280px,324px) minmax(0,1fr) minmax(300px,380px);grid-template-areas:"left board right";gap:1rem;align-items:start;align-content:start}.game-shell__board{grid-area:board;min-width:0;display:flex;justify-content:center;align-items:flex-start}.game-shell__board-stage{min-width:0;width:100%;display:flex;justify-content:center;align-items:flex-start;container-type:inline-size}.game-shell__board-stage .board-shell{--square-size: min(58px, calc((100cqw - 66px)*.1) )}.game-shell__board-stage>*{min-width:0}.game-shell__rail{grid-area:left;min-width:0;min-height:0;display:flex;max-height:min(40rem,calc(100dvh - 14rem))}.game-shell__rail--right{grid-area:right}.game-shell__rail-scroll{min-width:0;min-height:0;flex:1;display:flex;flex-direction:column;gap:1rem;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.panel-card,.game-info,.chaos-panel,.strategy-panel,.game-log-panel,.lab-drawer,.lobby-card,.player-panel{border:1px solid var(--ui-border);background:var(--ui-panel);box-shadow:var(--ui-shadow);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.panel-card,.game-info,.chaos-panel,.strategy-panel,.game-log-panel,.lobby-card,.lab-drawer__settings,.player-panel{border-radius:24px;padding:1rem}.panel-card__header{display:flex;flex-direction:column;gap:.2rem;margin-bottom:.85rem}.panel-card__header h3,.panel-card__header h4,.player-panel__name,.board-shell h2,.game-shell__footer h3{margin:0}.panel-card__subtle,.player-panel__meta,.game-shell__subtitle,.game-log__category,.lobby-list,.lobby-wait,.selected-piece,.selected-effects,.strategy-card__summary,.strategy-hand__opponent-note,.chaos-panel__last,.chaos-panel__lockdown,.game-info__seed,.pending-action-card__instruction,.pending-action-card__authority,.pending-action-card__timer{color:var(--ui-muted)}.player-panel{display:grid;gap:.75rem;position:relative;overflow:hidden}.player-panel:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,rgba(182,140,255,.12),transparent 45%);pointer-events:none}.player-panel.is-active{border-color:#b68cffa6;box-shadow:0 0 0 2px #b68cff59,var(--ui-shadow)}.player-panel.is-active:after{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#b68cffe6,#5fe0a0e6);pointer-events:none}.player-panel--white{background:linear-gradient(180deg,#f7f4ec,#ece8de);color:#14161a;border-color:#00000014}.player-panel--black{background:linear-gradient(180deg,#171b24,#0d1018);color:var(--ui-text);border-color:#ffffff1f}.player-panel__header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.player-panel__eyebrow{margin:0 0 .15rem;text-transform:uppercase;letter-spacing:.14em;font-size:.72rem;color:var(--ui-accent);display:flex;align-items:center;gap:.4rem}.player-panel__piece-icon{display:inline-block;font-size:1.25rem;line-height:1}.player-panel--white .player-panel__eyebrow{color:#5a2d8c}.player-panel__name{font-size:1.15rem;letter-spacing:.04em}.player-panel__badges,.player-panel__effects,.strategy-panel__effects,.chaos-panel__effects,.status-banner,.pending-action-card__options,.lobby-seat,.lobby-board__preview,.lobby-list,.game-log__events,.strategy-hand__cards{display:flex;flex-wrap:wrap;gap:.5rem}.player-panel__badge,.player-panel__effect,.strategy-panel__effect,.chaos-panel__effect,.game-log__category,.lobby-seat,.lobby-code-card,.network-pill{border-radius:999px;border:1px solid var(--ui-border);padding:.35rem .65rem;font-size:.74rem;letter-spacing:.04em}.player-panel__badge--active,.network-pill--live{background:#5fe0a02e;color:#d2ffe7;border-color:#5fe0a03d}.player-panel__badge--connected{background:#5fe0a029}.player-panel__badge--disconnected,.network-pill--waiting{background:#ee5d5d1f;color:#ffd4d4;border-color:#ee5d5d2e}.player-panel__meta{display:grid;gap:.25rem;font-size:.9rem}.player-panel__clock{display:grid}.player-panel__cards{display:grid;gap:.5rem}.player-panel__card{display:grid;gap:.2rem;padding:.7rem .8rem;border-radius:16px;border:1px solid var(--ui-border);background:#ffffff08}.player-panel__card strong{font-size:.98rem}.player-panel__card small{color:var(--ui-muted);font-size:.72rem}.player-panel__strategy-count{margin:0;color:var(--ui-muted)}.player-panel__effects{gap:.4rem}.player-panel__effect{background:#ffffff0a}.player-panel--white .player-panel__meta,.player-panel--white .player-panel__strategy-count,.player-panel--white .player-panel__card small{color:#4b505c}.player-panel--white .player-panel__card{background:linear-gradient(180deg,#f2e6d4,#e0d2be);border-color:var(--border-carved)}.player-panel--white .player-panel__effect{background:#0000000d;color:#14161a}.player-panel--white .player-panel__badge--connected{color:#064e3b;background:#5fe0a02e;border-color:#5fe0a03d}.player-panel--white .player-panel__badge--active{color:#064e3b;background:#5fe0a038;border-color:#5fe0a047}.player-panel--white .player-panel__badge--disconnected{color:#7f1d1d;background:#ee5d5d1f;border-color:#ee5d5d2e}.board-shell{display:grid;grid-template-columns:minmax(0,1fr);gap:.8rem;width:100%}.board-shell__header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;height:4.8rem;box-sizing:border-box;padding:.9rem 1rem;border:1px solid var(--ui-border);border-radius:22px;background:#10141eb8;box-shadow:var(--ui-shadow);overflow:clip}.board-shell__header h2{font-size:1.05rem}.board-shell__subtitle{margin:.2rem 0 0;color:var(--ui-muted);font-size:.88rem}.board-toggle{color:var(--ui-muted);display:inline-flex;align-items:center;gap:.45rem;white-space:nowrap}.board-toggle input{accent-color:var(--ui-accent)}.board-frame{position:relative;display:inline-block;padding:18px;border-radius:10px;background:radial-gradient(circle at 50% 0%,rgba(200,164,92,.1),transparent 45%),linear-gradient(160deg,#1f1b16,#171410 45%,#0f0d0a);border:1px solid #2e2419;box-shadow:inset 0 1px #ffffff0a,inset 0 0 0 1px #0a0807,0 0 0 1px #3a2f22,0 0 0 2px #0a0807,0 28px 70px #0000008c}.board-frame:before{content:"";position:absolute;top:13px;right:13px;bottom:13px;left:13px;border-radius:6px;border:1px solid rgba(200,164,92,.18);pointer-events:none}.board-frame:after{content:"";position:absolute;top:14px;right:14px;bottom:14px;left:14px;border-radius:6px;border:1px solid rgba(0,0,0,.45);pointer-events:none}.board{position:relative;z-index:1;display:grid;grid-template-columns:repeat(10,var(--square-size));grid-template-rows:repeat(10,var(--square-size));gap:2px;padding:4px;background:#0b0908;border-radius:4px;border:1px solid rgba(200,164,92,.14);box-shadow:inset 0 0 0 1px #000c,inset 0 0 28px #0000008c,0 0 0 1px #0006}.board.chaos-rush-board{box-shadow:inset 0 0 0 1px #ee5d5d4d,0 0 0 7px #ee5d5d24,inset 0 0 28px #0000008c}.board-label{color:#bfa06b;font-family:var(--font-display, serif);font-size:calc(var(--square-size) * .22);letter-spacing:.08em;text-shadow:0 1px 1px rgba(0,0,0,.75),0 -1px 0 rgba(0,0,0,.35)}.square.dark .square-coord,.square.dark .tile-label{color:#f0f5ffd9;text-shadow:0 1px 2px rgba(0,0,0,.5)}.square.light .square-coord,.square.light .tile-label{color:#191410b3;text-shadow:0 1px 0 rgba(255,255,255,.35)}.square.light{background:var(--board-light);box-shadow:inset 0 0 0 1px #0000000a,inset 0 0 16px #ffffff0d}.square.dark{background:var(--board-dark);box-shadow:inset 0 0 0 1px #0000002e,inset 0 0 18px #00000024}.square.super-tile--portal .super-tile-sigil{color:#7b4bc4}.square.super-tile--chaos .super-tile-sigil{color:#a61d1d}.square.super-tile--strategy .super-tile-sigil{color:#d4a83a}.square.super-tile--teleport .super-tile-sigil{color:#3f9e9e}.square.super-tile--swap .super-tile-sigil{color:#b67c2e}.square.super-tile .super-tile-sigil--eligible,.square:has(.super-tile-sigil--eligible) .super-tile-sigil{opacity:.95;filter:drop-shadow(0 0 4px currentColor)}.square.super-tile .tile-label{display:none}.square.super-tile .piece{z-index:2}@keyframes portal-ring-turn{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes chaos-crack-pulse{0%,to{opacity:.8;filter:drop-shadow(0 0 2px currentColor)}50%{opacity:1;filter:drop-shadow(0 0 6px currentColor)}}@keyframes strategy-gold-illumination{0%,to{filter:drop-shadow(0 0 0 currentColor)}50%{filter:drop-shadow(0 0 5px currentColor)}}@keyframes teleport-ghost-shift{0%,to{opacity:.9;transform:translate(0)}50%{opacity:.6;transform:translate(2px,-2px)}}@keyframes swap-interchange{0%,to{transform:scale(1)}50%{transform:scale(1.08) rotate(6deg)}}.square.fx-teleport .super-tile-sigil,.square.super-tile--teleport .super-tile-sigil--triggered{animation:teleport-ghost-shift .9s ease-in-out}.square.fx-portal .super-tile-sigil,.square.super-tile--portal .super-tile-sigil--triggered{animation:portal-ring-turn 4s linear infinite}.square.fx-chaos .super-tile-sigil,.square.super-tile--chaos .super-tile-sigil--triggered{animation:chaos-crack-pulse 1.2s ease-in-out infinite}.square.fx-strategy .super-tile-sigil,.square.super-tile--strategy .super-tile-sigil--triggered{animation:strategy-gold-illumination 1.6s ease-in-out infinite}.square.fx-swap .super-tile-sigil,.square.super-tile--swap .super-tile-sigil--triggered{animation:swap-interchange .85s ease-in-out}.square.selected{box-shadow:inset 0 0 0 4px var(--selection)}.square.legal,.square.jump-destination{box-shadow:inset 0 0 0 4px var(--legal-move)}.square.pending-exit,.square.pending-disembark,.square.sabotage-destination,.square.sabotage-piece,.square.demotion-target,.square.demotion-type,.square.kazam-secret,.square.kazam-portal-exit,.square.kazam-portal-disembark,.square.time-bomb-target,.square.super-promotion-target{box-shadow:inset 0 0 0 4px var(--capture-target)}.square.king-check{box-shadow:inset 0 0 0 4px #c0392beb,inset 0 0 20px #8b1a1a5c,0 0 0 2px #c0392b14;background:linear-gradient(180deg,#c0392b29,#8b1a1a14)}.square:hover{filter:brightness(1.04)}.piece{font-size:calc(var(--square-size) * .56)}.piece--white{color:var(--white-piece-fill);text-shadow:var(--white-piece-edge)}.piece--black{color:var(--black-piece-fill);text-shadow:var(--black-piece-edge)}.tile-label{font-size:calc(var(--square-size) * .15);opacity:.95}.square-coord{font-size:calc(var(--square-size) * .12)}.panel-card__header+.match-status-grid,.panel-card__header+.strategy-panel__stats,.panel-card__header+.chaos-panel__stats{margin-top:.5rem}.match-status-grid,.strategy-panel__stats,.chaos-panel__stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:0}.match-status-grid div,.strategy-panel__stats div,.chaos-panel__stats div{padding:.65rem .8rem;border-radius:18px;background:#ffffff08;border:1px solid rgba(255,255,255,.06)}.match-status-grid dt,.strategy-panel__stats dt,.chaos-panel__stats dt{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ui-muted)}.match-status-grid dd,.strategy-panel__stats dd,.chaos-panel__stats dd{margin:.3rem 0 0;font-size:1.05rem;font-weight:700}.status-banner,.pending-action-card,.game-end-panel,.lobby-code-card,.lobby-board__slot,.lobby-seat,.game-log__turn,.strategy-card,.strategy-hand__opponent-note{background:#ffffff08}.status-banner,.pending-action-card,.game-end-panel,.lobby-code-card,.lobby-seat,.lobby-board__slot{border:1px solid rgba(255,255,255,.08);border-radius:18px}.status-banner{padding:.75rem .9rem;display:grid;gap:.35rem}.status-banner__subtle{color:var(--ui-muted);font-size:.85rem;letter-spacing:normal}.status-banner--rush{border-color:#ee5d5d47;background:#ee5d5d1a}.status-banner--revolution{border-color:#8b1a1a47;background:linear-gradient(180deg,#2d241bf5,#1e1812eb);color:var(--text-parchment)}.status-banner--blackout,.status-banner--board-wrap,.status-banner--invisibility,.status-banner--check,.status-banner--warning{border-color:#ffffff14}.status-banner--warning,.status-banner--timeout{background:#ffc36a1f}.status-banner--timeout{border-color:#ffc36a52;color:#ffc36a;font-family:var(--font-display);letter-spacing:.05em}.pending-action-card{display:grid;gap:.65rem;margin:.9rem 0;padding:.9rem;border-color:var(--border-carved);background:linear-gradient(180deg,#f2e6d4,#e0d2be);color:var(--ink-dark);border-radius:4px}.pending-action-card__header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem}.pending-action-card__options{margin-top:.25rem}.pending-action-card__options button{background:linear-gradient(180deg,#3d2f22,#2b2621);color:var(--text-parchment);border-color:#c8a45c73;font-family:var(--font-display);font-size:.78rem;letter-spacing:.04em}.game-end-panel{display:grid;gap:.25rem;padding:.85rem;border-color:#5fe0a03d;background:#5fe0a014}.game-end-panel--stalemate,.game-end-panel--timeout{background:#ffc36a1a;border-color:#ffc36a42}.game-end-panel small{color:var(--ui-muted)}.game-info__seed,.selected-piece,.selected-effects{margin:.35rem 0 0}.game-info .status-banner+.status-banner{margin-top:.6rem}.chaos-panel__effects,.strategy-panel__effects{margin-top:.55rem}.chaos-panel__effect,.strategy-panel__effect{padding:.35rem .7rem;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:#ffffff08}.chaos-panel__stats,.strategy-panel__stats{margin-bottom:.8rem}.chaos-panel__last,.chaos-panel__lockdown,.strategy-panel__last{margin:.6rem 0 0}.strategy-panel__hands{display:grid;gap:.85rem;margin-top:.9rem}.strategy-hand{display:grid;gap:.5rem}.strategy-hand__header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.strategy-hand__count{color:var(--ui-muted);font-size:.8rem}.strategy-hand__cards{display:grid;gap:.55rem;margin:0;padding:0;list-style:none}.strategy-card{display:grid;gap:.35rem;padding:.75rem .8rem;border-radius:18px;border:1px solid rgba(255,255,255,.08)}.strategy-card--playable{border-color:#5fe0a047;box-shadow:0 0 0 1px #5fe0a00f}.strategy-card__name{font-weight:700}.strategy-card__summary{font-size:.88rem;line-height:1.4}.strategy-card__footer{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.strategy-card__id,.strategy-card__state,.player-panel__connection,.player-panel__control,.player-panel__status,.strategy-hand__opponent-note{font-size:.8rem}.strategy-card__state{color:var(--ui-muted)}.strategy-hand--opponent{padding-top:.45rem;border-top:1px solid rgba(255,255,255,.08)}.game-log-panel__header{align-items:flex-start}.game-log-panel__toggle,.ghost-button{background:#ffffff0d;color:var(--ui-text);border-color:#ffffff14;box-shadow:none}.game-log{display:grid;gap:.75rem;max-height:36rem;overflow:auto;padding:.75rem;border-radius:18px;background:#080c14eb;color:var(--ui-text)}.game-log__turn{padding:.7rem;border-radius:18px;border:1px solid rgba(255,255,255,.06)}.game-log__turn-label{margin-bottom:.55rem;font-size:.74rem;text-transform:uppercase;letter-spacing:.12em;color:var(--ui-accent)}.game-log__events{margin:0;padding:0;list-style:none;display:grid;gap:.35rem}.game-log__event{display:grid;grid-template-columns:auto 1fr auto;gap:.6rem;align-items:start;padding:.6rem .7rem;border-radius:14px;border:1px solid rgba(255,255,255,.05);background:#ffffff05}.game-log__event--capture{border-color:#ee5d5d24}.game-log__event--chaos{border-color:#b68cff29}.game-log__event--strategy{border-color:#5fe0a024}.game-log__icon{opacity:.9}.game-log__summary{line-height:1.45}.game-log__category{text-transform:uppercase;letter-spacing:.12em;font-size:.68rem;color:var(--ui-muted)}.game-log__empty{margin:0;color:var(--ui-muted)}.lab-drawer{display:grid;gap:.8rem;padding:0;overflow:hidden}.lab-drawer__summary{list-style:none;cursor:pointer;padding:1rem 1rem .9rem;border-bottom:1px solid rgba(255,255,255,.08)}.lab-drawer__summary::-webkit-details-marker{display:none}.lab-drawer__summary strong{display:block;font-size:1rem}.lab-drawer__summary small{display:block;color:var(--ui-muted);margin-top:.2rem}.lab-drawer__content{display:grid;gap:.8rem;padding:1rem}.lab-drawer__settings{display:grid;gap:.75rem}.clock-selector,.join-form,.field-stack{display:grid;gap:.4rem}.field-stack span,.clock-selector label{font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;color:var(--ui-muted)}.undo-toggle{display:inline-flex;align-items:center;gap:.55rem;color:var(--ui-text)}.super-tile-legend{display:grid;gap:.45rem}.super-tile-legend h3{margin:0 0 .2rem}.legend-item{display:flex;align-items:center;gap:.7rem;margin:0;text-transform:capitalize;padding:.45rem .6rem;border-radius:14px;background:#ffffff08}.legend-swatch{width:1rem;height:1rem;border-radius:999px;border:1px solid rgba(255,255,255,.18)}.lobby-card,.lobby-board{display:grid;gap:.85rem}.lobby-code-card{padding:1rem;display:grid;gap:.4rem;background:#ffffff08}.lobby-code-card__label{text-transform:uppercase;letter-spacing:.14em;font-size:.72rem;color:var(--ui-accent)}.lobby-code,.lobby-code-card strong{font-size:2rem;letter-spacing:.2em}.lobby-board__preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.lobby-board__slot{padding:.9rem;display:grid;gap:.35rem}.lobby-board__slot--invite{border-color:#b68cff3d}.lobby-board__slot span,.lobby-board__slot small,.lobby-seat span,.lobby-seat small{color:var(--ui-muted)}.lobby-list{margin:0;padding-left:1.1rem;display:grid}.matchmaking-panel{display:grid;gap:.55rem}.matchmaking-panel__status{margin:0;text-transform:uppercase;letter-spacing:.14em;font-size:.74rem;color:var(--ui-accent)}.matchmaking-panel__meta{margin:0;color:var(--ui-muted)}.lobby-seat{justify-content:space-between;box-sizing:border-box;width:100%}.lobby-code-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.lobby-clock,.lobby-host,.lobby-wait{margin:0;color:var(--ui-muted)}.multiplayer-lobby,.multiplayer-lobby-shell{width:min(100%,1680px);margin:0 auto;padding:1rem}.network-pill{display:inline-flex;align-items:center;gap:.4rem}.match-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.ghost-button{padding-inline:1rem}.danger-button{background:linear-gradient(180deg,#a12424,#7d1616);border-color:var(--danger-blood);color:#ffe9e4;box-shadow:0 6px 18px #8b1a1a73}.danger-button:hover{background:linear-gradient(180deg,#b62b2b,#8b1a1a)}.draw-offer-banner{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;border-color:#6b4fa166;background:#6b4fa11f}.draw-offer-banner--pending{border-color:#ffffff24;background:#ffffff0a}.resign-confirm-panel,.displaced-seat-panel{border-color:#8b1a1a8c;background:#8b1a1a1a}.displaced-seat-panel{border-color:#ffc36a73;background:#ffc36a14}.resign-confirm-panel__text{margin:0 0 .75rem;font-weight:600}.game-shell--multiplayer .game-shell__player-row,.game-shell--lab .game-shell__player-row{margin-top:-.1rem}.game-shell--multiplayer .game-shell__grid,.game-shell--lab .game-shell__grid{grid-template-columns:minmax(280px,330px) minmax(0,1fr) minmax(320px,390px)}.game-shell--lab .lab-drawer{position:sticky;top:1rem}@media (max-width: 1280px){.game-shell__grid,.game-shell--lab .game-shell__grid,.game-shell--multiplayer .game-shell__grid{grid-template-columns:minmax(240px,1fr) minmax(0,1.4fr);grid-template-areas:"left board" "right right"}}@media (max-width: 920px){.game-shell__grid,.game-shell--lab .game-shell__grid,.game-shell--multiplayer .game-shell__grid{grid-template-columns:1fr;grid-template-areas:"board" "left" "right"}}@media (max-width: 920px){.game-shell__header{order:-2;height:auto;min-height:5rem;flex-direction:column;align-items:stretch}.game-shell__grid{order:-1}.game-shell__player-row{grid-template-columns:1fr;height:auto}.game-shell__actions{width:100%;justify-content:space-between;max-height:none;overflow:visible}.game-shell__rail{max-height:none}.game-shell__rail-scroll{overflow:visible}.board-shell__header{align-items:flex-start}}@media (max-width: 720px){.mode-switcher,.multiplayer-lobby,.multiplayer-lobby-shell{padding:.75rem}.game-shell,.game-shell--lab,.game-shell--multiplayer{gap:.75rem}.board-frame{padding:.65rem}.game-shell__board-stage .board-shell{--square-size: min(44px, calc((100cqw - 52px)*.1) )}.player-panel,.panel-card,.game-info,.chaos-panel,.strategy-panel,.game-log-panel,.lab-drawer__settings,.lobby-card{border-radius:18px}.lobby-board__preview{grid-template-columns:1fr}.lobby-code,.lobby-code-card strong{font-size:1.6rem}}.game-shell__eyebrow,.game-shell__heading h1,.game-over h1,.status-banner strong{font-family:var(--font-display)}.game-shell__heading h1{color:var(--metal-gold);text-shadow:0 1px 2px rgba(0,0,0,.45)}.player-panel{border-width:2px}.player-panel--white{background:linear-gradient(180deg,#f2e6d4,#e0d2be);color:var(--ink-dark);border-color:#14110d1a}.player-panel--white .player-panel__eyebrow,.player-panel--white .player-panel__name,.player-panel--white .player-panel__badge{color:var(--ink-dark)}.player-panel--black{background:linear-gradient(180deg,#2b2621,#1a1510);color:var(--text-parchment);border-color:#c8a45c33}.player-panel--black .player-panel__eyebrow{color:var(--metal-gold)}.player-panel.is-active{border-color:var(--metal-gold);box-shadow:0 0 0 1px #c8a45c40,0 0 20px #c8a45c26,var(--ui-shadow)}.player-panel__badge--active{background:#c8a45c2e;color:var(--metal-gold-bright);border-color:#c8a45c59}.player-panel__card{border:1px solid var(--border-carved);background:linear-gradient(180deg,#f2e6d4,#e0d2be);color:var(--ink-dark);border-radius:4px;box-shadow:inset 0 1px #ffffff59,0 2px 6px #0000001f}.player-panel--black .player-panel__card{background:linear-gradient(180deg,#2b2621,#1a1510);color:var(--text-parchment)}.clock-display{border:2px solid var(--border-carved);border-radius:4px;background:linear-gradient(180deg,#2b2621,#1a1510);color:var(--text-parchment);box-shadow:inset 0 1px #ffffff0a}.clock-display.running{border-color:#c8a45c73;background:linear-gradient(180deg,#363025,#2b2621)}.clock-rush,.clock-display.rush-active{color:var(--danger-blood)}.game-log-panel{background:#241e18e0;border:1px solid var(--border-carved)}.game-log__turn{border:1px solid var(--border-carved);background:#00000024}.game-log__turn-label{color:var(--metal-gold);font-family:var(--font-display)}.game-log__event--chaos{border-color:#c8a45c40}.game-log__event--capture{border-color:#8b1a1a59}.game-log__event--strategy{border-color:#6b8c5e4d}.board-action-popover__content{background:linear-gradient(180deg,#f2e6d4,#e6d8c2);color:var(--ink-dark);border:1px solid var(--border-carved);border-radius:4px;box-shadow:0 8px 20px #00000059,inset 0 1px #fff6}.board-action-popover__action,.board-action-popover__icon{background:#1e181214;border:1px solid rgba(20,17,13,.18);color:var(--ink-dark);border-radius:3px}.board-action-popover__action:hover,.board-action-popover__icon:hover{background:#c8a45c2e;border-color:var(--metal-gold)}.pin-notice{margin-top:.75rem;padding:.55rem .75rem;border-left:3px solid var(--danger-blood);background:#8b1a1a1a;color:var(--text-parchment);font-size:.88rem}.pin-notice__label{font-family:var(--font-display);color:var(--metal-gold);letter-spacing:.04em}.command-banner{display:flex;flex-direction:column;gap:.25rem;min-width:0}.command-banner__command{font-family:var(--font-display);font-size:clamp(1rem,2.2vw,1.4rem);font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--text-parchment);text-shadow:0 2px 4px rgba(0,0,0,.45);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.command-banner__command[data-command^=CHECK]{color:#e26b6b}.command-banner__command[data-command^="CHAOS RUSH"]{color:#f2a2a2}.command-banner__pending{font-size:.75rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--metal-gold-bright);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.square.selected{box-shadow:inset 0 0 0 4px var(--metal-gold),inset 0 0 18px #c8a45c59,0 0 0 3px #c8a45c2e;z-index:3}.square.square--pinned{box-shadow:inset 0 0 0 4px #c45c5c,inset 0 0 24px #8b1a1a66;z-index:3}.square.square--no-legal-moves{box-shadow:inset 0 0 0 4px #a0a0a080,inset 0 0 18px #0003;z-index:3}.square.square--locked-down{box-shadow:inset 0 0 0 4px var(--metal-gold),inset 0 0 18px #c8a45c40;z-index:3}.pin-notice--pinned .pin-notice__label{color:#e26b6b}.piece--selected{z-index:5;filter:drop-shadow(0 0 5px rgba(200,164,92,.9)) drop-shadow(0 4px 6px rgba(0,0,0,.45))}.piece--treason-source{z-index:5;filter:drop-shadow(0 0 6px rgba(200,164,92,.95)) drop-shadow(0 0 14px rgba(139,26,26,.45))}.square.option-marker{position:relative}.square.option-marker:before{content:"";position:absolute;left:50%;top:50%;width:14%;height:14%;transform:translate(-50%,-50%) rotate(45deg);border-radius:22%;z-index:3;pointer-events:none;box-shadow:0 1px 3px #00000059}.square.option-marker--move:before{background:radial-gradient(circle at 30% 30%,#ffffff94,#6b8c5ef5 58%,#384a30e0);box-shadow:inset 0 1px 2px #ffffff2e,inset 0 -1px 2px #00000047,0 1px 3px #00000059}.square.option-marker--capture:before{width:22%;height:22%;transform:translate(-50%,-50%);border-radius:50%;background:transparent;border:2px solid var(--danger-blood);box-shadow:0 0 0 2px #8b1a1a47,0 0 10px #8b1a1a66}.square.option-marker--super-portal:before,.square.option-marker--super-chaos:before,.square.option-marker--super-strategy:before,.square.option-marker--super-teleport:before,.square.option-marker--super-swap:before{box-shadow:inset 0 1px 2px #ffffff2e,inset 0 -1px 2px #00000040,0 0 7px currentColor}.square.option-marker--super-portal:before{background:radial-gradient(circle at 30% 30%,#ffffff6b,#7b4bc4f2 60%,#3a1f5de6)}.square.option-marker--super-chaos:before{background:radial-gradient(circle at 30% 30%,#ffffff38,#a61d1df2 60%,#5c0d0de6)}.square.option-marker--super-strategy:before{background:radial-gradient(circle at 30% 30%,#ffffff80,#d4a83af2 60%,#5c4310e6)}.square.option-marker--super-teleport:before{background:radial-gradient(circle at 30% 30%,#ffffff6b,#3f9e9ef2 60%,#154343e6)}.square.option-marker--super-swap:before{background:radial-gradient(circle at 30% 30%,#fff6,#b67c2ef2 60%,#5a3512e6)}.square.option-marker--pending:before{background:radial-gradient(circle at 30% 30%,#fff9e67a,#d4a24cfa 58%,#6f4f12eb);box-shadow:0 0 0 2px #c8a45c47,0 0 8px #d4a24c99}.square.option-marker--mandatory:before{animation:ember-pulse 1.4s ease-in-out infinite}.square.option-marker--treason-target:before{width:28%;height:28%;transform:translate(-50%,-50%);border-radius:50%;background:transparent;border:2px solid var(--danger-blood);box-shadow:0 0 0 2px #8b1a1a47,0 0 10px #8b1a1a73}.square.option-marker--treason-target.option-marker--mandatory:before{animation:treason-pulse 1.4s ease-in-out infinite}@keyframes treason-pulse{0%,to{transform:translate(-50%,-50%) scale(1);box-shadow:0 0 #8b1a1a8c}50%{transform:translate(-50%,-50%) scale(1.25);box-shadow:0 0 0 8px #8b1a1a00}}.square.king-check{box-shadow:inset 0 0 0 4px var(--danger-blood),inset 0 0 22px #8b1a1a8c;background:linear-gradient(180deg,#8b1a1a8c,#8b1a1a59)}.super-tile-sigil--dormant .super-tile-sigil__rune{opacity:.45;filter:drop-shadow(0 0 1px rgba(0,0,0,.25))}.super-tile-sigil--eligible .super-tile-sigil__rune{opacity:.95}.super-tile-sigil--triggered .super-tile-sigil__rune{opacity:1}.strategy-card{padding:.65rem .8rem;border:1px solid var(--border-carved);border-radius:10px;background:linear-gradient(180deg,#f2e6d4,#e0d2be);color:var(--ink-dark);box-shadow:inset 0 1px #ffffff59,0 2px 4px #0003;transition:box-shadow .15s ease,transform .15s ease}.strategy-card--playable{border-color:#5fe0a08c;box-shadow:inset 0 1px #ffffff59,0 0 0 2px #5fe0a01f,0 2px 6px #00000040}.strategy-card:hover{transform:translateY(-1px);box-shadow:inset 0 1px #ffffff59,0 4px 8px #00000047}.strategy-card__name{font-family:var(--font-display);font-weight:700;font-size:.95rem;color:var(--ink-dark)}.strategy-card__summary{font-size:.82rem;line-height:1.3;color:#3d3428;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.strategy-card__footer{margin-top:.3rem}.strategy-card__id,.strategy-card__state{color:#5c4f3e;font-size:.72rem}@media (max-width: 720px){.command-banner__command{font-size:.95rem}.command-banner__pending{font-size:.68rem}.board-shell__header{padding:.65rem .75rem;border-radius:16px;height:auto;min-height:4.35rem;box-sizing:border-box;flex-direction:column;align-items:stretch;gap:.4rem}.command-banner__command,.command-banner__pending{white-space:normal;overflow-wrap:break-word}.board-toggle{align-self:flex-start;padding:.25rem 0}}@media (prefers-reduced-motion: reduce){.square.option-marker--mandatory:before,.piece--selected{animation:none!important;transition:none!important}}.effects-banner{white-space:pre-line}.square.fx-portal,.square.fx-portal-exit{animation:portal-well .6s ease-out}.square.fx-portal:before,.square.fx-portal-exit:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle,rgba(123,75,196,.45) 0%,transparent 70%);pointer-events:none;animation:portal-pulse .7s ease-out;z-index:1}.piece.fx-portal,.piece.fx-portal-exit{animation:portal-fade .55s ease-in-out}@keyframes portal-well{0%{box-shadow:inset 0 0 #7b4bc400}50%{box-shadow:inset 0 0 0 8px #7b4bc48c}to{box-shadow:inset 0 0 #7b4bc400}}@keyframes portal-pulse{0%,to{opacity:0;transform:scale(.6)}50%{opacity:1;transform:scale(1.1)}}@keyframes portal-fade{0%,to{opacity:1}50%{opacity:.35}}.square.fx-teleport{animation:teleport-rupture .55s ease-out}.square.fx-teleport:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle,rgba(63,158,158,.5) 0%,transparent 70%);pointer-events:none;animation:teleport-rupture .55s ease-out;z-index:1}.piece.fx-teleport{animation:teleport-snap .55s ease-out}@keyframes teleport-rupture{0%{transform:scale(.2);opacity:0}50%{transform:scale(1.15);opacity:1}to{transform:scale(1);opacity:0}}@keyframes teleport-snap{0%{opacity:1}45%{opacity:0;transform:scale(.85)}55%{opacity:0;transform:scale(1.1)}to{opacity:1}}.square.fx-swap{animation:swap-glow .55s ease-out}.piece.fx-swap{animation:swap-phase .55s ease-in-out}@keyframes swap-glow{0%,to{box-shadow:inset 0 0 #b67c2e00}50%{box-shadow:inset 0 0 0 8px #b67c2ea6}}@keyframes swap-phase{0%,to{opacity:1}50%{opacity:.35}}.square.fx-chaos-tile:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle,rgba(166,29,29,.55) 0%,transparent 70%);pointer-events:none;animation:chaos-corrupt .7s ease-out;z-index:2}.fx-atmosphere-chaos-tile .board{box-shadow:0 0 0 4px #a61d1d38,inset 0 0 0 1px #a61d1d26}@keyframes chaos-corrupt{0%{opacity:0}50%{opacity:1}to{opacity:0}}.square.fx-strategy-tile:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle,rgba(212,168,58,.45) 0%,transparent 70%);pointer-events:none;animation:strategy-discover .7s ease-out;z-index:2}@keyframes strategy-discover{0%{opacity:0;transform:translateY(10%) scale(.8)}50%{opacity:1;transform:translateY(0) scale(1.05)}to{opacity:0;transform:translateY(-10%) scale(1)}}.fx-atmosphere-revolution .board{animation:revolution-surge .7s ease-out}@keyframes revolution-surge{0%{box-shadow:0 0 #c8a45c00}50%{box-shadow:0 0 0 12px #c8a45c59}to{box-shadow:0 0 #c8a45c00}}.square.fx-tile-storm{animation:tile-storm-surge .9s ease-in-out}@keyframes tile-storm-surge{0%{opacity:1}40%{opacity:.4}70%{opacity:1}to{opacity:1}}.fx-atmosphere-blackout .board{filter:brightness(.82) contrast(1.05)}.piece.fx-invisibility{opacity:.45;filter:blur(.5px) drop-shadow(0 0 4px rgba(189,195,199,.6))}.piece.fx-invisibility-reveal{animation:invisibility-materialise .5s ease-out}@keyframes invisibility-materialise{0%{opacity:.25;filter:blur(2px)}to{opacity:1;filter:blur(0)}}.piece.fx-backfire,.piece.fx-coup,.piece.fx-treason{animation:control-aura .7s ease-out}.piece.fx-backfire{filter:drop-shadow(0 0 6px rgba(231,76,60,.9))}.piece.fx-coup{filter:drop-shadow(0 0 6px rgba(200,164,92,.85))}.piece.fx-treason{filter:drop-shadow(0 0 6px rgba(192,57,43,.9))}@keyframes control-aura{0%,to{filter:drop-shadow(0 0 0 transparent)}50%{filter:drop-shadow(0 0 8px currentColor)}}.piece.fx-demotion{animation:demotion-dust .6s ease-out}.piece.fx-super-promotion{animation:promotion-burst .6s ease-out}@keyframes demotion-dust{0%{opacity:1}40%{opacity:.35;filter:blur(2px)}to{opacity:1}}@keyframes promotion-burst{0%{opacity:1}30%{opacity:.2;transform:scale(1.15);filter:drop-shadow(0 0 12px rgba(200,164,92,.9))}to{opacity:1}}.piece.fx-exile{animation:exile-mist .7s ease-out forwards}.piece.fx-exile-return,.piece.fx-prison-break,.piece.fx-repatriation{animation:exile-return .7s ease-out}@keyframes exile-mist{0%{opacity:1}to{opacity:0;filter:blur(4px)}}@keyframes exile-return{0%{opacity:0;filter:blur(4px)}to{opacity:1;filter:blur(0)}}.fx-atmosphere-board-wrap .board{box-shadow:0 0 0 2px #3f9e9e40,0 0 0 4px #3f9e9e1a}.fx-atmosphere-board-wrap .board:before{content:"";position:absolute;top:-8px;right:-8px;bottom:-8px;left:-8px;border-radius:8px;border:1px dashed rgba(63,158,158,.25);pointer-events:none;z-index:-1}.fx-banner-check-rush-mate{background:#8b1a1a;color:#f2e6d4;border:2px solid #c0392b;text-align:center;line-height:1.2;font-size:1.1rem;padding:1rem 1.6rem}@media (prefers-reduced-motion: reduce){.square.fx-portal,.square.fx-portal-exit,.square.fx-teleport,.square.fx-swap,.square.fx-tile-storm,.square.fx-chaos-tile,.square.fx-strategy-tile,.piece.fx-portal,.piece.fx-teleport,.piece.fx-swap,.piece.fx-invisibility,.piece.fx-invisibility-reveal,.piece.fx-backfire,.piece.fx-coup,.piece.fx-treason,.piece.fx-demotion,.piece.fx-super-promotion,.piece.fx-exile,.piece.fx-exile-return,.piece.fx-prison-break,.piece.fx-repatriation,.fx-atmosphere-revolution .board{animation:none!important;transition:none!important}.square.fx-portal:before,.square.fx-portal-exit:before,.square.fx-teleport:before,.square.fx-chaos-tile:before,.square.fx-strategy-tile:before,.fx-atmosphere-board-wrap .board:before{display:none}.piece.fx-invisibility{opacity:.65;filter:none}.piece.fx-exile{opacity:.15}}.piece--check-defender svg,.piece--check-defender{filter:drop-shadow(0 0 4px rgba(192,57,43,.6));animation:check-defender-pulse 1.2s ease-in-out infinite}@keyframes check-defender-pulse{0%,to{filter:drop-shadow(0 0 3px rgba(192,57,43,.4))}50%{filter:drop-shadow(0 0 8px rgba(192,57,43,.85))}}.piece--check-trapped svg,.piece--check-trapped{filter:drop-shadow(0 0 5px rgba(150,40,40,.7));animation:check-trapped-pulse .9s ease-in-out infinite}@keyframes check-trapped-pulse{0%,to{filter:drop-shadow(0 0 4px rgba(150,40,40,.5))}50%{filter:drop-shadow(0 0 10px rgba(150,40,40,.95))}}.chaos-rush-board .piece--check-defender,.chaos-rush-board .piece--check-trapped{animation-duration:.55s}.command-banner--chaos-rush-check .command-banner__command{background:#7a1515;border-color:#c0392b;color:#f2e6d4;animation:command-rush-check .9s ease-in-out infinite}@keyframes command-rush-check{0%,to{box-shadow:0 0 #c0392b33}50%{box-shadow:0 0 0 6px #c0392b73}}@media (prefers-reduced-motion: reduce){.piece--check-defender svg,.piece--check-defender,.piece--check-trapped svg,.piece--check-trapped{animation:none!important;filter:drop-shadow(0 0 3px rgba(192,57,43,.7))}.command-banner--chaos-rush-check .command-banner__command{animation:none!important;box-shadow:0 0 0 3px #c0392b4d}}.computer-setup{max-width:540px;margin:2rem auto;padding:2rem;background:#fff;border:1px solid #ddd;border-radius:8px;text-align:center;box-shadow:0 2px 8px #0000000a}.computer-setup__title{margin:0 0 .25rem;font-size:1.75rem;font-weight:600}.computer-setup__subtitle{margin:0 0 1.5rem;color:#666;font-style:italic}.computer-setup__choices{display:flex;justify-content:center;gap:1rem;flex-wrap:wrap}.computer-setup__choice{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:1.25rem 2rem;font-size:1rem;background:#fafafa;border:2px solid #ddd;border-radius:6px;cursor:pointer;transition:border-color .15s,background .15s;min-width:140px}.computer-setup__choice:hover{border-color:#555;background:#f0f0f0}.computer-setup__icon{font-size:2.5rem}.computer-actions{display:flex;align-items:center;gap:.5rem}.computer-actions__button{padding:.35rem .75rem;font-size:.85rem;background:#fff;border:1px solid #ccc;border-radius:4px;cursor:pointer}.computer-actions__button:hover{background:#f0f0f0}.computer-double-up{padding:.5rem;text-align:center}.computer-double-up button{padding:.5rem 1rem;font-size:.95rem;background:#fff;border:1px solid #999;border-radius:4px;cursor:pointer}.computer-double-up button:hover{background:#f0f0f0}.resumable-games__list{display:grid;gap:.6rem;padding:0;margin:0}.resumable-games__row{align-items:center;gap:.75rem}.resumable-games__details{display:flex;flex-direction:column;gap:.15rem;min-width:0;flex:1}.resumable-games__details strong{font-size:.95rem;color:var(--ui-text)}.resumable-games__details span,.resumable-games__details small{font-size:.78rem;color:var(--ui-muted)}.resumable-games__refresh{margin-top:.25rem}.result-ceremony{display:grid;gap:.35rem;padding:1.1rem 1.25rem;border-radius:22px;text-align:center;border:1px solid rgba(255,255,255,.1);box-shadow:var(--ui-shadow)}.result-ceremony__headline{margin:0;font-family:var(--font-display);font-size:clamp(1.6rem,4vw,2.6rem);font-weight:900;letter-spacing:.12em;text-transform:uppercase}.result-ceremony__reason{margin:0;font-size:1.1rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.result-ceremony__flavor{margin:.15rem 0 0;color:var(--ui-muted);font-size:.9rem}.result-ceremony__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem;margin-top:.9rem}.result-ceremony__actions button{max-width:100%;overflow-wrap:anywhere}.result-ceremony__rematch-note{margin:.35rem 0 0;color:var(--ui-muted);font-size:.8rem;letter-spacing:.04em}.result-ceremony__rematch-banner{margin-top:.5rem;text-align:left;overflow-wrap:anywhere}.result-ceremony__pitch{margin:.6rem auto 0;max-width:30rem;color:var(--ui-muted);font-size:.9rem}.result-ceremony--victory{background:linear-gradient(180deg,#5fe0a024,#5fe0a00f);border-color:#5fe0a059;color:var(--text-parchment)}.result-ceremony--victory .result-ceremony__headline{color:#5fe0a0}.result-ceremony--defeat{background:linear-gradient(180deg,#ee5d5d29,#ee5d5d0f);border-color:#ee5d5d59;color:var(--text-parchment)}.result-ceremony--defeat .result-ceremony__headline{color:#ee5d5d}.result-ceremony--draw,.result-ceremony--timeout{background:linear-gradient(180deg,#ffc36a24,#ffc36a0f);border-color:#ffc36a59;color:var(--text-parchment)}.result-ceremony--draw .result-ceremony__headline,.result-ceremony--timeout .result-ceremony__headline{color:#ffc36a}.game-result-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;padding:1rem;text-align:center;pointer-events:none;background:radial-gradient(ellipse at center,#080c14bd,#080c1452 80%);border-radius:inherit;animation:game-result-overlay-in .45s ease-out}.game-result-overlay__headline{font-family:var(--font-display);font-size:clamp(1.8rem,6vw,3rem);font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:var(--text-parchment);text-shadow:0 2px 14px rgba(0,0,0,.65)}.game-result-overlay__reason{font-size:clamp(.95rem,2.6vw,1.15rem);font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--text-parchment)}.game-result-overlay__flavor{font-size:.85rem;color:var(--ui-muted);max-width:80%}.game-result-overlay--victory .game-result-overlay__headline{color:#5fe0a0}.game-result-overlay--defeat .game-result-overlay__headline{color:#ee5d5d}.game-result-overlay--draw .game-result-overlay__headline,.game-result-overlay--timeout .game-result-overlay__headline{color:#ffc36a}@keyframes game-result-overlay-in{0%{opacity:0;transform:scale(.94)}}.status-banner--sudden-death{border-color:#ff4d4d59;background:linear-gradient(180deg,#8b1a1a38,#8b1a1a14);color:#ff9f9f}.game-log__event--callout{border-color:#c8a45c59;background:#c8a45c14}.game-log__event--callout .game-log__icon{color:var(--metal-gold-bright)}@media (prefers-reduced-motion: reduce){.result-ceremony,.status-banner--sudden-death,.game-log__event--callout,.pending-action-card,.game-log{transition:none!important;animation:none!important}.result-ceremony__actions button{transition:none!important}}.shell-wordmark{font-family:var(--font-display);font-size:clamp(2.6rem,7vw,4.2rem);letter-spacing:.18em;color:var(--metal-gold-bright);margin:0;text-shadow:0 2px 18px rgba(0,0,0,.6)}.shell-boot{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;background:radial-gradient(ellipse at 50% 30%,var(--surface-oak-alt),var(--ui-bg) 70%)}.shell-boot__line{color:var(--ui-muted);font-style:italic}.landing{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem;padding:2rem 1rem;background:radial-gradient(ellipse at 50% 20%,var(--surface-oak-alt),var(--ui-bg) 70%)}.landing__brand{text-align:center}.landing__headline{font-family:var(--font-display);color:var(--metal-gold-bright);font-size:clamp(1.1rem,3.5vw,1.5rem);letter-spacing:.08em;text-transform:uppercase;margin:.75rem 0 0}.landing__tagline{color:var(--ui-muted);font-style:italic;margin:.5rem 0 0}.landing__subcopy{color:var(--ui-muted);max-width:34rem;margin:.6rem auto 0}.landing__cta{display:flex;flex-direction:column;align-items:center;gap:.4rem}.landing__play{font-size:1.1rem;padding:.9rem 2.4rem;letter-spacing:.08em}.landing__play-note{color:var(--ui-muted);font-size:.85rem;margin:0}.landing__battles{color:var(--ui-muted);font-family:var(--font-display);font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;margin:0}.arena-signal{margin:1rem auto 0;padding:.9rem 1.25rem 1.1rem;max-width:min(26rem,100%);text-align:center;border:1px solid var(--ui-border);border-radius:14px;background:linear-gradient(180deg,#ffc36a0f,#ffc36a05)}.arena-signal--live{border-color:var(--metal-gold-muted);background:linear-gradient(180deg,#ffc36a1f,#ffc36a0a)}.arena-signal__eyebrow{margin:0;font-family:var(--font-display);font-size:.7rem;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:var(--ui-muted)}.arena-signal--live .arena-signal__eyebrow{color:var(--metal-gold-bright)}.arena-signal__line{margin:.35rem 0 0;font-family:var(--font-display);font-size:1.05rem;font-weight:800;letter-spacing:.08em;color:var(--ui-text)}.arena-signal__sub{margin:.3rem 0 .8rem;color:var(--ui-muted);font-size:.85rem}.arena-signal__cta{font-family:var(--font-display);font-size:.85rem;font-weight:800;letter-spacing:.12em;padding:.55rem 1.4rem;border:1px solid var(--metal-gold-muted);border-radius:8px;background:#c8a45c1f;color:var(--metal-gold-bright);cursor:pointer}.arena-signal__cta:hover{background:#c8a45c38}.arena-status{margin-bottom:.9rem}.arena-status__line{margin:.15rem 0;color:var(--ui-muted);font-size:.9rem}.arena-status__line--looking{color:var(--metal-gold-bright)}.arena-status__battles{margin:.35rem 0 0;color:var(--ui-muted);font-size:.8rem;letter-spacing:.08em;text-transform:uppercase}.race-strip{margin-bottom:.9rem;padding:.75rem .9rem;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:linear-gradient(180deg,#ffc36a14,#ffc36a08)}.race-strip__title{margin:0;font-family:var(--font-display);font-size:.8rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--metal-gold-bright)}.race-strip__standing{margin:.3rem 0 0;font-weight:700;letter-spacing:.05em;text-transform:uppercase;overflow-wrap:anywhere}.race-strip__standing--champion{color:var(--metal-gold-bright)}.race-strip__sub,.race-strip__leader{margin:.15rem 0 0;color:var(--ui-muted);font-size:.85rem;overflow-wrap:anywhere}.race-strip__leader--open{letter-spacing:.1em;text-transform:uppercase}.race-strip__cta{margin-top:.5rem}.race-result{margin:.5rem auto 0;padding-top:.5rem;border-top:1px solid rgba(255,255,255,.12);min-width:min(100%,14rem)}.race-result__eyebrow{margin:0;font-family:var(--font-display);font-size:.72rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--metal-gold-bright)}.race-result__rating{margin:.25rem 0 0;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.race-result__rank{margin:.15rem 0 0;color:var(--ui-muted);font-size:.85rem;text-transform:uppercase;letter-spacing:.06em}.play-search__fallback{margin-top:.9rem;display:flex;flex-direction:column;align-items:center;gap:.4rem}.play__expired{display:flex;flex-direction:column;align-items:center;gap:.4rem}.play__battle-night{margin-top:1.25rem;padding:1rem;border:1px solid var(--ui-border, rgba(255, 255, 255, .12));border-radius:8px}.battle-night__when{margin:.25rem 0;font-family:var(--font-display);letter-spacing:.08em;color:var(--metal-gold-bright)}.battle-night__status{margin:.5rem 0 0;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ui-muted)}.battle-night__countdown{margin:.15rem 0;font-family:var(--font-display);font-size:1.35rem;font-weight:800;letter-spacing:.1em;font-variant-numeric:tabular-nums;color:var(--metal-gold-bright)}.battle-night__countdown--coarse{font-size:1rem}.play__battle-night--upcoming{border-color:var(--metal-gold-muted)}.play__battle-night--live{border-color:var(--metal-gold-bright);background:linear-gradient(180deg,#ffc36a1a,#ffc36a08)}.battle-night__when--live{color:var(--metal-gold-bright);font-weight:800}.arena-signal--battle-night{border-color:var(--metal-gold-bright);background:linear-gradient(180deg,#ffc36a24,#ffc36a0d)}.arena-signal__event{margin:.25rem 0 0;color:var(--ui-muted);font-size:.8rem;letter-spacing:.06em;text-transform:uppercase}.arena-signal__countdown{margin:.25rem 0 .8rem;font-family:var(--font-display);font-size:1.5rem;font-weight:800;letter-spacing:.1em;font-variant-numeric:tabular-nums;color:var(--metal-gold-bright)}.arena-signal__countdown--coarse{font-size:1rem}.home-card--battle-night{border-color:var(--metal-gold-bright)}.home-card__body .home-card__event{font-size:.8rem;letter-spacing:.06em;text-transform:uppercase}.home-card__body .home-card__countdown{font-family:var(--font-display);font-weight:800;letter-spacing:.08em;font-variant-numeric:tabular-nums;color:var(--metal-gold-bright);font-size:1.05rem}.home-card__body .home-card__countdown--coarse{font-size:.95rem}.play-search__event{margin:0 0 .35rem;font-family:var(--font-display);font-size:.8rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--metal-gold-bright)}.play-search__alert-note{max-width:34ch}.settings__note{margin:.4rem 0 0;color:var(--ui-muted);font-size:.85rem}.landing__auth-note{color:var(--ui-muted);font-size:.9rem;margin:0;text-align:center}.landing__board{width:min(24rem,92vw,100%);pointer-events:none;--square-size: min(38px, 9.5vw)}.landing__board .board-frame{justify-self:center}@media (max-width: 480px){.landing__board{container-type:inline-size;--square-size: min(38px, calc((100cqw - 52px)*.1) )}}.landing__board .board-shell{--square-size: inherit}.landing__board .board-shell__header{display:none}.landing__wake{color:var(--ui-warning);font-size:.9rem;margin:0}.landing__card{width:min(24rem,100%);box-sizing:border-box;padding:1.5rem}.landing__modes{display:flex;gap:.5rem;margin-bottom:1rem}.landing__mode{flex:1;padding:.6rem;background:transparent;border:1px solid var(--ui-border);border-radius:4px;color:var(--ui-muted);font-family:var(--font-display);letter-spacing:.08em;cursor:pointer}.landing__mode--active{color:var(--metal-gold-bright);border-color:var(--ui-border-strong);background:var(--ui-accent-soft)}.landing__form{display:flex;flex-direction:column;gap:.9rem}.landing__card h2{font-family:var(--font-display);color:var(--metal-gold-bright);letter-spacing:.08em;margin:0 0 .6rem;font-size:1.15rem}.landing__card p{color:var(--ui-muted);margin:0 0 1rem}.verify-notice{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:.65rem 1.25rem;border-bottom:1px solid var(--ui-border-strong);background:linear-gradient(90deg,#c8a45c24,#c8a45c0d)}.verify-notice__copy{display:flex;flex-direction:column;gap:.15rem}.verify-notice__copy strong{font-family:var(--font-display);color:var(--metal-gold-bright);letter-spacing:.08em;font-size:.85rem}.verify-notice__copy span{color:var(--ui-muted);font-size:.85rem}.verify-notice .ghost-button{white-space:nowrap}.product-shell{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 0%,var(--surface-oak-alt),var(--ui-bg) 65%);color:var(--ui-text)}.product-shell__topbar{display:flex;align-items:center;gap:1.25rem;padding:.75rem 1.5rem;border-bottom:1px solid var(--ui-border);background:var(--ui-panel)}.product-shell__brand{font-family:var(--font-display);font-size:1.3rem;letter-spacing:.16em;color:var(--metal-gold-bright);background:none;border:none;cursor:pointer;padding:.25rem .5rem}.product-shell__nav{display:flex;gap:.25rem;flex:1}.product-shell__nav-item{padding:.5rem .9rem;background:none;border:none;border-bottom:2px solid transparent;color:var(--ui-muted);font-family:var(--font-display);font-size:.85rem;letter-spacing:.06em;cursor:pointer}.product-shell__nav-item:hover{color:var(--ui-text)}.product-shell__nav-item--active{color:var(--metal-gold-bright);border-bottom-color:var(--metal-gold)}.product-shell__main{flex:1;box-sizing:border-box;width:min(60rem,100%);margin:0 auto;padding:2rem 1.25rem 3rem}@media (max-width: 900px){.product-shell__topbar{flex-wrap:wrap;gap:.5rem 1rem;padding:.6rem .9rem}.product-shell__nav{order:3;flex-basis:100%;overflow-x:auto;scrollbar-width:thin}.product-shell__nav-item{padding:.5rem .6rem;font-size:.78rem;white-space:nowrap}}.home{display:flex;flex-direction:column;gap:1.25rem}.home__hero{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.home__greeting{font-family:var(--font-display);color:var(--ui-text);margin:0;font-size:1.4rem}.home__play{font-family:var(--font-display);font-size:1.1rem;letter-spacing:.12em;padding:.85rem 2.5rem;color:var(--ink-dark);background:linear-gradient(180deg,var(--metal-gold-bright),var(--metal-gold));border:1px solid var(--metal-gold-muted);border-radius:4px;cursor:pointer;box-shadow:0 4px 18px #0006}.home__play:disabled{opacity:.5;cursor:not-allowed}.home-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem 1.25rem;background:var(--ui-panel);border:1px solid var(--ui-border);border-radius:6px;text-align:left;color:var(--ui-text)}button.home-card{cursor:pointer;width:100%;font:inherit}button.home-card:hover{border-color:var(--ui-border-strong)}.home-card--battle{border-color:var(--ui-border-strong);background:var(--ui-panel-strong)}.home-card--arena-live{border-color:var(--metal-gold-muted);background:var(--ui-panel-strong)}.home-card__body{display:flex;flex-direction:column;gap:.35rem}.home-card__body strong{font-family:var(--font-display);letter-spacing:.08em;color:var(--metal-gold-bright)}.home-card__body span{color:var(--ui-muted);font-size:.9rem}.home-card__row{display:flex;justify-content:space-between;gap:1rem;width:100%;padding:.5rem 0;background:none;border:none;border-top:1px solid var(--ui-border);color:var(--ui-text);cursor:pointer;font:inherit;text-align:left}.home__subtle{color:var(--ui-muted);font-style:italic}.play{display:flex;flex-direction:column;gap:1.25rem}.play__modes{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:1rem}.play__setup-section{display:flex;flex-direction:column;gap:.9rem;margin-top:1.35rem}.play__setup-section+.play__setup-section{margin-top:2.1rem}.play__setup-section .play__group-heading{margin:0}.play__actions{display:flex;align-items:center;gap:.85rem;margin-top:1.6rem;padding-top:1.4rem;border-top:1px solid var(--ui-border)}.play__actions>button:not(.ghost-button){flex:1}.mode-card{position:relative;display:flex;flex-direction:column;gap:.55rem;padding:1.4rem 1.3rem;text-align:left;border-radius:6px;cursor:pointer;background:var(--ui-panel);border:1px solid var(--ui-border);color:var(--ui-text);transition:border-color .12s ease,transform .12s ease,box-shadow .12s ease,opacity .12s ease}.mode-card:hover:not(:disabled){border-color:var(--ui-border-strong);transform:translateY(-1px)}.mode-card:disabled{opacity:.5;cursor:not-allowed}.mode-card--selected,.mode-card--selected:hover:not(:disabled){border-color:var(--metal-gold);background:radial-gradient(140% 130% at 50% -10%,rgba(230,201,133,.22),rgba(200,164,92,.07) 45%,transparent 70%),var(--ui-panel-strong);transform:translateY(-2px);box-shadow:inset 0 0 0 1px #e6c98566,inset 0 -16px 32px #c8a45c1a,0 0 0 1px #c8a45c8c,0 10px 24px #00000080,0 0 28px #c8a45c61}.mode-card--selected>span:not(.mode-card__badge){color:var(--ui-text)}.play__modes:has(>.mode-card--selected)>.mode-card:not(.mode-card--selected):not(:hover):not(:focus-visible):not(:disabled){opacity:.82}.mode-card .mode-card__badge{position:absolute;top:0;right:.9rem;transform:translateY(-50%);padding:.3rem .65rem;font-family:var(--font-display);font-size:.68rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-dark);background:linear-gradient(180deg,var(--metal-gold-bright),var(--metal-gold));border:1px solid var(--metal-gold-muted);border-radius:3px;box-shadow:0 2px 8px #00000080,0 0 12px #e6c98580;pointer-events:none;white-space:nowrap}@media (prefers-reduced-motion: reduce){.mode-card--selected,.mode-card--selected:hover:not(:disabled){transform:none}}.mode-card strong{font-family:var(--font-display);font-size:1.35rem;letter-spacing:.1em}.mode-card span{color:var(--ui-muted);font-size:.9rem}.mode-card .mode-card__class{align-self:flex-start;padding:.18rem .55rem;font-family:var(--font-display);font-size:.62rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--metal-gold-bright);border:1px solid var(--metal-gold-muted);border-radius:3px;background:#c8a45c14}.play__find{align-self:stretch;margin-top:.4rem}.play__alert{align-self:stretch;padding:.6rem .8rem;border:1px solid var(--danger-blood);border-left:3px solid var(--danger-blood);border-radius:6px;background:#8b1a1a24;color:var(--text-parchment);font-size:.9rem;overflow-wrap:anywhere}.battle-blocker{align-self:stretch;display:flex;flex-direction:column;gap:.6rem;padding:1rem;border:1px solid rgba(200,164,92,.55);border-radius:8px;background:#c8a45c14}.battle-blocker__item{display:flex;flex-direction:column;gap:.5rem;padding:.65rem .75rem;border:1px solid var(--ui-border, rgba(255, 255, 255, .12));border-radius:6px;background:var(--ui-panel)}.battle-blocker__vs{margin:0;font-weight:700;letter-spacing:.04em;overflow-wrap:anywhere}.battle-blocker__actions{display:flex;gap:.5rem;flex-wrap:wrap}.battle-blocker__confirm-text{margin:0;font-size:.9rem}.battle-blocker__error{margin:0;color:var(--danger-blood);font-size:.85rem}@media (max-width: 480px){.battle-blocker__actions{flex-direction:column;align-items:stretch}}.play-search__reconnecting{margin:0;color:var(--metal-gold-bright);font-size:.9rem;letter-spacing:.04em}.mode-card--chaoss strong{color:var(--metal-gold-bright)}.mode-card--rush{border-color:#8b1a1a73}.mode-card--rush strong{color:#d4705e}.mode-card--revolution{border-color:#8159b173}.mode-card--revolution strong{color:#a98add}.mode-card--wrap{border-color:#4d938f73}.mode-card--wrap strong{color:#83c7bd}.play__note{color:var(--ui-muted);font-style:italic}.play-search{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:3rem 1.5rem;background:var(--ui-panel);border:1px solid var(--ui-border);border-radius:6px;text-align:center}.play-search h2{font-family:var(--font-display);color:var(--metal-gold-bright);letter-spacing:.1em;margin:0}.play-search__mode{color:var(--ui-text);margin:0}.play-search__elapsed{color:var(--ui-muted);font-size:.9rem;margin:0}.play-search__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem}.play-search__note{color:var(--ui-muted);font-size:.85rem;max-width:30rem;margin:0 auto}.play-search__pulse{width:56px;height:56px;border-radius:50%;border:2px solid var(--metal-gold-muted);animation:play-search-pulse 2.2s ease-in-out infinite}@keyframes play-search-pulse{0%,to{box-shadow:0 0 #c8a45c40;opacity:.7}50%{box-shadow:0 0 0 14px #c8a45c00;opacity:1}}.play__private{display:flex;flex-direction:column;gap:.9rem;padding:1.25rem}.tome__header{display:flex;align-items:baseline;gap:1.5rem;flex-wrap:wrap;margin-bottom:1.25rem}.tome__header h2{font-family:var(--font-display);color:var(--metal-gold-bright);margin:0}.tome__tabs{display:flex;gap:.25rem}.tome__tab{padding:.45rem .85rem;background:none;border:1px solid var(--ui-border);border-radius:4px;color:var(--ui-muted);font-family:var(--font-display);font-size:.8rem;letter-spacing:.06em;cursor:pointer}.tome__tab--active{color:var(--metal-gold-bright);border-color:var(--ui-border-strong);background:var(--ui-accent-soft)}.progression-level,.pvp-rating__status-line,.squire-record__status-line{margin:0;font-family:var(--font-display);letter-spacing:.12em;text-transform:uppercase;color:var(--metal-gold-bright);font-size:1.05rem}.progression-level strong,.pvp-rating__score strong{font-size:1.6rem}.progression-score{margin:.1rem 0 .5rem;font-size:1.15rem;color:var(--ui-text)}.pvp-rating__score{margin:.15rem 0 0}.pvp-rating__label{color:var(--ui-muted);font-size:.85rem;letter-spacing:.1em;text-transform:uppercase}.pvp-rating__rank,.squire-record__status-line{margin:.15rem 0 0}.pvp-rating__rank{color:var(--ui-text);font-weight:700}.pvp-rating__record,.squire-record__line,.squire-record__score,.squire-record__qualification,.squire-record__hint,.pvp-rating__message,.pvp-rating__remaining,.progression-remaining{margin:.35rem 0 0;color:var(--ui-muted)}.squire-record__qualification,.pvp-rating__remaining{color:var(--ui-text);font-weight:600}.squire-record__score{color:var(--ui-text)}.settings{display:flex;flex-direction:column;gap:1.5rem;max-width:28rem}.settings h2{font-family:var(--font-display);color:var(--metal-gold-bright);margin:0}.settings__group{display:flex;flex-direction:column;gap:.75rem;padding:1.25rem;background:var(--ui-panel);border:1px solid var(--ui-border);border-radius:6px}.settings__group h3{margin:0;font-family:var(--font-display);font-size:.95rem;letter-spacing:.08em;color:var(--ui-text)}.settings__toggle{display:flex;align-items:center;gap:.6rem;color:var(--ui-text);cursor:pointer}.settings__who{color:var(--ui-muted);margin:0}.settings__diag{color:var(--ui-muted);font-size:.85rem}.settings__diag summary{cursor:pointer}.settings__diag-grid{display:grid;gap:.5rem;margin:.75rem 0 0}.settings__diag-grid dt{color:var(--ui-muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.06em}.settings__diag-grid dd{margin:0;color:var(--ui-text)}.game-history__details{display:flex;flex-direction:column}@media (max-width: 640px){.product-shell__topbar{flex-wrap:wrap;gap:.5rem}.product-shell__nav{order:3;width:100%}}@media (prefers-reduced-motion: reduce){.play-search__pulse,.mode-card{animation:none!important;transition:none!important}}.tome-rules{max-width:1080px;margin:0 auto;padding:1.5rem 1.25rem 4rem}.tome-rules__hero{text-align:center;padding:2rem 1rem 1.5rem;border-bottom:1px solid var(--metal-gold-muted)}.tome-rules__back{display:inline-block;font-family:var(--font-display);font-size:.8rem;letter-spacing:.14em;color:var(--metal-gold-muted);text-decoration:none;margin-bottom:1rem}.tome-rules__back:hover,.tome-rules__back:focus-visible{color:var(--metal-gold-bright)}.tome-rules__title{font-family:var(--font-display);font-size:clamp(2.25rem,6vw,3.5rem);letter-spacing:.22em;color:var(--metal-gold);margin:0;text-shadow:0 2px 10px rgba(0,0,0,.5)}.tome-rules__subtitle{font-family:var(--font-display);letter-spacing:.3em;color:var(--surface-parchment);margin:.35rem 0 .5rem}.tome-rules__flavor{color:var(--ui-muted);font-style:italic;margin:0 0 1.25rem}.tome-rules__search{max-width:30rem;margin:0 auto;position:relative}.tome-rules__search-label{display:block;font-family:var(--font-display);font-size:.75rem;letter-spacing:.18em;color:var(--metal-gold-muted);margin-bottom:.35rem}.tome-rules__search input{box-sizing:border-box;width:100%;padding:.65rem .9rem;background:#00000059;border:1px solid var(--metal-gold-muted);border-radius:4px;color:var(--surface-parchment);font-size:1rem}.tome-rules__search input:focus-visible{outline:2px solid var(--metal-gold);outline-offset:2px}.tome-rules__results{position:absolute;inset-inline:0;top:100%;z-index:20;margin:.25rem 0 0;padding:0;list-style:none;background:var(--surface-parchment);color:var(--ink-dark);border:1px solid var(--metal-gold-muted);border-radius:4px;box-shadow:var(--ui-shadow);max-height:20rem;overflow-y:auto;text-align:left}.tome-rules__results button{display:block;width:100%;padding:.6rem .85rem;background:none;border:none;border-bottom:1px solid rgba(0,0,0,.08);color:var(--ink-dark);text-align:left;cursor:pointer}.tome-rules__results button:hover,.tome-rules__results button:focus-visible{background:#9c7e442e;outline:none}.tome-rules__results button strong{display:block;font-family:var(--font-display);font-size:.85rem;letter-spacing:.06em}.tome-rules__results button span{font-size:.8rem;color:#4a4034}.tome-rules__no-results{padding:.75rem .85rem;font-style:italic}.tome-rules__chapters{display:flex;gap:.4rem;overflow-x:auto;padding:.85rem .25rem;margin-bottom:.5rem;scrollbar-width:thin}@media (min-width: 960px){.tome-rules__chapters{position:sticky;top:0;z-index:15;background:linear-gradient(180deg,#14110df7,#14110dd9);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}.tome-rules__chapter-link{flex:0 0 auto;display:flex;align-items:baseline;gap:.4rem;padding:.45rem .8rem;min-height:44px;background:#00000040;border:1px solid var(--metal-gold-muted);border-radius:4px;color:var(--surface-parchment);font-family:var(--font-display);font-size:.72rem;letter-spacing:.1em;white-space:nowrap;cursor:pointer}.tome-rules__chapter-link:hover,.tome-rules__chapter-link:focus-visible{border-color:var(--metal-gold);color:var(--metal-gold-bright);outline:none}.tome-rules__chapter-numeral{color:var(--metal-gold)}.tome-chapter{padding:1.5rem 0;border-bottom:1px solid rgba(156,126,68,.25)}.tome-chapter__title{font-family:var(--font-display);font-size:clamp(1.3rem,3vw,1.9rem);letter-spacing:.12em;color:var(--metal-gold);margin:0}.tome-chapter__numeral{color:var(--metal-gold-muted)}.tome-chapter__desc{color:var(--ui-muted);margin:.4rem 0 1rem}.tome-chapter__group{font-family:var(--font-display);font-size:.95rem;letter-spacing:.18em;color:var(--metal-gold-muted);border-bottom:1px solid rgba(156,126,68,.3);padding-bottom:.35rem;margin:1.25rem 0 .75rem}.tome-chapter__entries{display:grid;gap:.6rem}.tome-chapter__entries--cards{grid-template-columns:repeat(auto-fill,minmax(290px,1fr));align-items:start}.tome-chapter__entries--cards .tome-entry{min-height:10rem}.tome-chapter__entries--cards .tome-entry--expanded{min-height:0}.tome-entry{scroll-margin-top:5.5rem;background:var(--surface-parchment);color:var(--ink-dark);border:1px solid var(--metal-gold-muted);border-radius:4px;overflow:hidden}.tome-entry:focus-visible{outline:2px solid var(--metal-gold);outline-offset:2px}.tome-entry__header{display:grid;grid-template-columns:1fr auto;gap:.15rem .5rem;box-sizing:border-box;width:100%;padding:.7rem .9rem;background:none;border:none;text-align:left;color:inherit;cursor:pointer}.tome-entry__header:hover,.tome-entry__header:focus-visible{background:#9c7e441f;outline:none}.tome-entry__header:focus-visible{box-shadow:inset 0 0 0 2px var(--metal-gold)}.tome-entry__heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem}.tome-entry__title{font-family:var(--font-display);font-size:1rem;letter-spacing:.05em}.tome-entry__chip{font-size:.62rem;letter-spacing:.1em;padding:.1rem .45rem;border:1px solid var(--metal-gold-muted);border-radius:999px;color:#6b5626}.tome-entry__summary{grid-column:1 / -1;font-size:.88rem;color:#3c332a}.tome-entry__disclose{align-self:start;color:var(--metal-gold-muted);font-size:.9rem}.tome-entry__detail{padding:.25rem .9rem .9rem;border-top:1px dashed rgba(156,126,68,.5);font-size:.9rem;line-height:1.55}.tome-entry__related{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;margin-top:.75rem}.tome-entry__related-label{font-family:var(--font-display);font-size:.62rem;letter-spacing:.14em;color:#6b5626}.tome-entry__related-link{padding:.25rem .6rem;min-height:32px;background:#9c7e441f;border:1px solid var(--metal-gold-muted);border-radius:999px;color:var(--ink-dark);font-size:.75rem;cursor:pointer}.tome-entry__related-link:hover,.tome-entry__related-link:focus-visible{background:#9c7e444d;outline:none}.tome-form .tome-entry__related-label{color:var(--metal-gold-muted)}.tome-form .tome-entry__related-link{color:var(--surface-parchment);background:#c8a45c24;border-color:var(--metal-gold-muted)}.tome-form .tome-entry__related-link:hover,.tome-form .tome-entry__related-link:focus-visible{background:#c8a45c4d;color:var(--metal-gold-bright);outline:2px solid var(--metal-gold);outline-offset:1px}.tome-forms{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:.9rem;align-items:start}.tome-form{scroll-margin-top:5.5rem;display:flex;flex-direction:column;gap:.4rem;text-align:left;cursor:default}.tome-form:hover{transform:none}.tome-form__summary{margin:.25rem 0 0;font-size:.88rem;line-height:1.5;color:var(--ui-text)}.tome-form__more{align-self:flex-start;margin-top:.25rem}.tome-form__detail{font-size:.9rem;line-height:1.55;color:var(--ui-text);border-top:1px dashed rgba(156,126,68,.5);padding-top:.6rem}.tome-extra{display:grid;grid-template-columns:minmax(0,1fr);gap:.6rem}.tome-battlefield{margin:0 0 1.25rem}.tome-board{display:grid;grid-template-columns:repeat(8,1fr);box-sizing:border-box;width:min(100%,26rem);aspect-ratio:1;border:3px solid var(--metal-gold-muted);border-radius:4px;overflow:hidden;box-shadow:var(--ui-shadow)}.tome-board__square{position:relative;aspect-ratio:1}.tome-board__square.light{background:var(--board-light)}.tome-board__square.dark{background:var(--board-dark)}.tome-board__coord{position:absolute;font-size:clamp(.5rem,1.4vw,.62rem);color:#1914108c;pointer-events:none}.tome-board__square.dark .tome-board__coord{color:#f2e6d48c}.tome-board__coord--rank{top:2px;left:3px}.tome-board__coord--file{bottom:2px;right:4px}.tome-board__tile{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;background:none;border:none;cursor:pointer;padding:0}.tome-board__tile:focus-visible{outline:2px solid var(--metal-gold);outline-offset:-2px}.tome-board__tile .super-tile-artwork{width:62%;height:62%}.tome-board__tile-name{font-family:var(--font-display);font-size:clamp(.38rem,1.2vw,.55rem);letter-spacing:.08em;color:var(--ink-dark);background:#f2e6d4bf;border-radius:2px;padding:0 .2rem;line-height:1.3}.tome-battlefield__legend{display:flex;flex-wrap:wrap;gap:.4rem .75rem;list-style:none;padding:0;margin:.6rem 0 0}.tome-battlefield__legend-link{display:flex;gap:.45rem;align-items:baseline;padding:.3rem .6rem;min-height:44px;align-items:center;background:#00000040;border:1px solid var(--metal-gold-muted);border-radius:4px;color:var(--surface-parchment);cursor:pointer;font-size:.8rem}.tome-battlefield__legend-link strong{font-family:var(--font-display);letter-spacing:.08em;font-size:.72rem}.tome-battlefield__legend-link span{color:var(--ui-muted)}.tome-battlefield__legend-link:hover,.tome-battlefield__legend-link:focus-visible{border-color:var(--metal-gold);outline:none}.tome-fold{display:flex;flex-direction:column;align-items:stretch;gap:1.05rem;list-style:none;padding:.6rem 0 .25rem;margin:0;max-width:min(20rem,100%)}.tome-fold__stage{display:flex;flex-direction:column;gap:.15rem;padding:.45rem .65rem;border:1px solid var(--metal-gold-muted);border-radius:4px;background:#0003;position:relative}.tome-fold__stage+.tome-fold__stage:before{content:"↓";position:absolute;top:-1rem;left:50%;transform:translate(-50%);color:var(--metal-gold-muted);font-size:.8rem;line-height:1}.tome-fold__name{font-family:var(--font-display);font-size:.78rem;letter-spacing:.1em;color:var(--metal-gold)}.tome-fold__stage--normal .tome-fold__name{color:var(--surface-parchment)}.tome-fold__note{font-size:.68rem;color:var(--ui-muted);max-width:11rem}.tome-pawn{margin:.75rem 0 0}.tome-pawn__edge{display:block;font-family:var(--font-display);font-size:.62rem;letter-spacing:.16em;color:var(--metal-gold-muted);text-transform:uppercase;margin-bottom:.25rem}.tome-pawn__grid{display:grid;grid-template-columns:repeat(5,1fr);box-sizing:border-box;width:min(100%,21rem);border:2px solid var(--metal-gold-muted);border-radius:4px;overflow:hidden}.tome-pawn__cell{aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.1rem;padding:.2rem;text-align:center;background:var(--board-light);color:var(--ink-dark)}.tome-pawn__cell:nth-child(odd){background:var(--board-dark);color:var(--surface-parchment)}.tome-pawn__glyph{font-size:clamp(.95rem,2.4vw,1.3rem);line-height:1}.tome-pawn__word{font-size:.52rem;line-height:1.15;letter-spacing:.04em;text-transform:uppercase;font-weight:600}.tome-pawn__cell--pawn .tome-pawn__glyph{font-size:clamp(1.2rem,3vw,1.6rem)}.tome-pawn__cell--pawn .tome-pawn__word{font-size:.46rem;letter-spacing:.02em}.tome-pawn__cell--capture .tome-pawn__glyph{color:var(--ui-danger, #a04034)}.tome-pawn__cell:nth-child(odd).tome-pawn__cell--capture .tome-pawn__glyph{color:#d4705e}.tome-pawn__cell--conditional .tome-pawn__glyph{color:var(--metal-gold, #c8a45c)}.tome-pawn__cell--forbidden .tome-pawn__glyph{color:var(--ui-muted, #9a8f7a)}.tome-pawn__legend{display:flex;flex-direction:column;gap:.2rem;margin-top:.5rem;font-size:.8rem;color:var(--ui-muted)}.tome-cycle{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;padding:.5rem 0 .25rem;margin:0}.tome-cycle__stage{display:flex;flex-direction:column;gap:.15rem;padding:.45rem .65rem;border:1px solid var(--metal-gold-muted);border-radius:4px;background:#0003}.tome-cycle__deg{font-family:var(--font-display);font-size:.85rem;color:var(--metal-gold)}.tome-cycle__note{font-size:.68rem;color:var(--ui-muted);max-width:11rem}.tome-rush{margin:.75rem 0 0}.tome-rush__track{display:flex;flex-wrap:wrap;gap:.3rem;list-style:none;padding:0;margin:0;align-items:center}.tome-rush__step{padding:.35rem .6rem;border:1px solid var(--metal-gold-muted);border-radius:4px;font-family:var(--font-display);font-size:.78rem;color:var(--surface-parchment);background:#00000040}.tome-rush__step--sudden{border-color:var(--ui-danger);color:#e89a8a}.tome-rush__legend{margin-top:.5rem;font-size:.8rem;color:var(--ui-muted)}.tome-royal__motto{font-family:var(--font-display);letter-spacing:.14em;text-align:center;color:var(--metal-gold-muted);border:1px solid var(--metal-gold-muted);border-radius:4px;padding:.9rem 1rem;margin:0 0 .9rem;background:#0003}@media (prefers-reduced-motion: reduce){.tome-rules *{scroll-behavior:auto!important}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.rankings{display:flex;flex-direction:column;gap:1.5rem}.rankings__header{text-align:center;padding:.5rem 0 0}.rankings__eyebrow{font-family:var(--font-display);font-size:.72rem;letter-spacing:.32em;text-transform:uppercase;color:var(--metal-gold-muted);margin:0 0 .5rem}.rankings__title{font-family:var(--font-display);font-size:clamp(1.7rem,4.5vw,2.6rem);letter-spacing:.12em;color:var(--metal-gold-bright);margin:0;text-shadow:0 2px 18px rgba(0,0,0,.5)}.rankings__explainer{color:var(--ui-muted);font-size:.88rem;max-width:34rem;margin:.75rem auto 0;line-height:1.55}.rankings__population{font-family:var(--font-display);font-size:.82rem;letter-spacing:.18em;text-transform:uppercase;color:var(--metal-gold);margin:.9rem 0 0}.rankings__loading,.rankings__empty{text-align:center;color:var(--ui-muted);font-style:italic}.rankings-podium{display:flex;align-items:flex-end;justify-content:center;gap:1rem;padding:.5rem 0 0}.rankings-podium__slot{display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:1.1rem 1rem;min-width:0;box-sizing:border-box;flex:0 1 11rem;background:var(--ui-panel);border:1px solid var(--ui-border);border-radius:6px;text-align:center;box-shadow:0 12px 30px #00000059}.rankings-podium__slot--1st{order:2}.rankings-podium__slot--2nd{order:1}.rankings-podium__slot--3rd{order:3}.rankings-podium--1 .rankings-podium__slot--1st{margin-left:auto;margin-right:auto}.rankings-podium__slot--1st{border-color:var(--ui-border-strong);background:var(--ui-panel-strong);padding:1.4rem 1.2rem;flex-basis:13rem;box-shadow:0 0 0 1px #c8a45c1f,0 18px 44px #00000073,0 0 34px #c8a45c14}.rankings-podium__rank{font-family:var(--font-display);font-size:.78rem;letter-spacing:.2em;color:var(--ui-muted)}.rankings-podium__slot--1st .rankings-podium__rank{font-size:.95rem;color:var(--metal-gold)}.rankings-podium__crown{font-size:1.5rem;line-height:1;color:var(--metal-gold-bright);text-shadow:0 0 14px rgba(230,201,133,.45)}.rankings-podium__name{font-family:var(--font-display);font-size:1.05rem;letter-spacing:.06em;color:var(--ui-text);overflow-wrap:anywhere}.rankings-podium__slot--1st .rankings-podium__name{font-size:1.3rem;color:var(--metal-gold-bright)}.rankings-podium__rating{font-family:var(--font-display);font-size:1.25rem;color:var(--metal-gold)}.rankings-podium__slot--1st .rankings-podium__rating{font-size:1.6rem}.rankings-podium__label{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ui-muted)}.rankings-podium__meta{font-size:.75rem;color:var(--ui-muted)}.rankings-standing{padding:1.25rem 1.5rem}.rankings-standing__title{font-family:var(--font-display);font-size:.82rem;letter-spacing:.22em;text-transform:uppercase;color:var(--metal-gold-muted);margin:0 0 .6rem}.rankings-standing__identity{font-family:var(--font-display);font-size:1.3rem;letter-spacing:.05em;color:var(--ui-text);margin:0 0 .9rem}.rankings-standing__stats{display:flex;flex-wrap:wrap;gap:1.5rem 2.25rem}.rankings-standing__stat{display:flex;flex-direction:column;gap:.15rem}.rankings-standing__value{font-family:var(--font-display);font-size:1.4rem;color:var(--metal-gold-bright)}.rankings-standing__label{font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ui-muted)}.rankings-standing__distance{margin:.9rem 0 0;font-size:.85rem;letter-spacing:.06em;color:var(--metal-gold)}.rankings-standing__provisional{font-family:var(--font-display);font-size:1.15rem;letter-spacing:.14em;text-transform:uppercase;color:var(--metal-gold);margin:0 0 .35rem}.rankings-standing__progress{margin:0;font-size:.9rem;color:var(--ui-text)}.rankings-standing__message{margin:.5rem 0 0;color:var(--ui-muted);font-size:.9rem;line-height:1.5}.rankings-standing__claim{margin-top:1rem}.rankings-around{background:var(--ui-panel);border:1px solid var(--ui-border);border-radius:6px;padding:1.1rem 1.25rem}.rankings-around__title{font-family:var(--font-display);font-size:.82rem;letter-spacing:.22em;text-transform:uppercase;color:var(--metal-gold-muted);margin:0 0 .6rem}.rankings-around__error{margin:0}.rankings-table{width:100%;border-collapse:collapse;font-size:.92rem}.rankings-table th{font-family:var(--font-display);font-size:.68rem;font-weight:400;letter-spacing:.18em;text-transform:uppercase;color:var(--metal-gold-muted);text-align:left;padding:.5rem .6rem;border-bottom:1px solid var(--ui-border-strong)}.rankings-table td{padding:.6rem;border-bottom:1px solid var(--ui-border);color:var(--ui-text);text-align:left}.rankings-table__rank{font-family:var(--font-display);color:var(--metal-gold);white-space:nowrap}.rankings-table__player{overflow-wrap:anywhere}.rankings-table__rating{font-family:var(--font-display);color:var(--metal-gold-bright)}.rankings-table__row--self{background:var(--ui-accent-soft);box-shadow:inset 2px 0 0 var(--metal-gold)}.rankings-table__you{display:inline-block;margin-left:.6rem;padding:.1rem .5rem;border:1px solid var(--metal-gold-muted);border-radius:999px;font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;color:var(--metal-gold-bright)}.rankings-table__record-col{display:none}.rankings-table--around{font-size:.95rem}.rankings-board{background:var(--ui-panel);border:1px solid var(--ui-border);border-radius:6px;padding:.75rem 1rem 1rem}.rankings-board__pager{display:flex;align-items:center;justify-content:center;gap:1.25rem;margin-top:.9rem}.rankings-board__page{font-family:var(--font-display);font-size:.75rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ui-muted)}@media (max-width: 720px){.rankings-table__split{display:none}.rankings-table__record-col{display:table-cell;white-space:nowrap}.rankings-podium{gap:.6rem}.rankings-podium__slot{flex-basis:9rem;padding:.9rem .6rem}.rankings-podium__slot--1st{flex-basis:10.5rem;padding:1.1rem .7rem}.rankings-podium__name{font-size:.95rem}.rankings-podium__slot--1st .rankings-podium__name{font-size:1.1rem}.rankings-standing{padding:1.1rem 1rem}.rankings-standing__stats{gap:1rem 1.6rem}}@media (max-width: 460px){.rankings-podium{flex-direction:column;align-items:stretch}.rankings-podium__slot--1st{order:1}.rankings-podium__slot--2nd{order:2}.rankings-podium__slot--3rd{order:3}.rankings-podium__slot,.rankings-podium__slot--1st{flex-basis:auto;width:100%}.rankings-table td,.rankings-table th{padding:.5rem .35rem}}.public-page{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 0%,var(--surface-oak-alt),var(--ui-bg) 65%)}.about{flex:1;box-sizing:border-box;width:min(56rem,100%);margin:0 auto;padding:3rem 1.25rem 2rem;display:grid;gap:3rem}.about__hero{text-align:center}.about__title{font-family:var(--font-display);color:var(--metal-gold-bright);letter-spacing:.14em;font-size:clamp(1.6rem,4vw,2.4rem);margin:0 0 1rem}.about__hero-line{font-family:var(--font-display);color:var(--ui-text);letter-spacing:.1em;font-size:clamp(1rem,2.4vw,1.35rem);line-height:1.7;margin:0}.about__section{max-width:44rem;margin:0 auto;display:grid;gap:.9rem}.about__heading{font-family:var(--font-display);color:var(--metal-gold);letter-spacing:.12em;font-size:1.05rem;margin:0 0 .4rem;border-bottom:1px solid var(--ui-border);padding-bottom:.5rem}.about__section p{color:var(--ui-muted);line-height:1.75;margin:0}.about__question{color:var(--ui-text)!important;font-style:italic}.about__modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.about__mode-card{background:var(--ui-panel);border:1px solid var(--ui-border);border-radius:8px;padding:1.1rem 1.15rem;display:grid;gap:.45rem;align-content:start}.about__mode-name{font-family:var(--font-display);color:var(--metal-gold-bright);letter-spacing:.1em;font-size:.95rem;margin:0}.about__mode-tagline{color:var(--ui-text)!important;font-style:italic}.about__mode-body{font-size:.92rem}.about__founder{text-align:left;border-top:1px solid var(--ui-border);padding-top:2rem}.about__founder-signoff{color:var(--ui-text)!important}.about__founder-signature{display:grid;gap:.15rem;font-style:normal;border-top:1px solid var(--ui-border);padding-top:.9rem;margin-top:.3rem}.about__founder-name{font-family:var(--font-display);color:var(--metal-gold-bright);letter-spacing:.12em;font-size:1rem}.about__founder-signature em{color:var(--metal-gold-muted);font-size:.85rem;letter-spacing:.06em}.about__founder-signature span{color:var(--ui-muted);font-size:.8rem;letter-spacing:.08em;text-transform:uppercase}.about__return{justify-self:center;font-family:var(--font-display);letter-spacing:.1em;text-transform:uppercase;font-size:.8rem;color:var(--metal-gold-muted);text-decoration:none;border-bottom:1px solid transparent;padding:.35rem .15rem}.about__return:hover,.about__return:focus-visible{color:var(--metal-gold-bright);border-bottom-color:var(--metal-gold)}.public-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem 1.5rem;box-sizing:border-box;width:100%;max-width:56rem;margin:auto auto 0;padding:1.25rem 1.25rem 1.5rem;border-top:1px solid var(--ui-border)}.public-footer__brand{display:flex;align-items:baseline;gap:.6rem}.public-footer__wordmark{font-family:var(--font-display);color:var(--metal-gold);letter-spacing:.18em;font-size:.95rem}.public-footer__tagline{color:var(--ui-muted);font-size:.75rem;letter-spacing:.08em;text-transform:uppercase}.public-footer__nav{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem 1.25rem}.public-footer__link{color:var(--ui-muted);font-size:.85rem;text-decoration:none;padding:.4rem .1rem;letter-spacing:.04em}a.public-footer__link:hover,a.public-footer__link:focus-visible{color:var(--metal-gold-bright);text-decoration:underline;text-underline-offset:3px}.public-footer__link--soon{cursor:default;display:inline-flex;align-items:baseline;gap:.4rem}.public-footer__soon{font-size:.62rem;text-transform:uppercase;letter-spacing:.08em;color:var(--metal-gold-muted);border:1px solid var(--ui-border);border-radius:3px;padding:.1rem .3rem}.public-footer__legal{flex-basis:100%;margin:0;color:var(--ui-muted);font-size:.68rem;letter-spacing:.04em;line-height:1.5;opacity:.75}@media (max-width: 720px){.about{gap:2.25rem;padding-top:2rem}.about__modes{grid-template-columns:1fr}.public-footer{flex-direction:column;align-items:flex-start;gap:.9rem}}.legal-doc{flex:1;box-sizing:border-box;width:min(48rem,100%);margin:0 auto;padding:3rem 1.25rem 2rem;display:grid;gap:2.25rem}.legal-doc__context{color:var(--ui-muted);font-size:.85rem;margin:0}.legal-doc__section{display:grid;gap:.7rem}.legal-doc__section p{color:var(--ui-muted);line-height:1.75;margin:0}.legal-doc__section ul{color:var(--ui-muted);line-height:1.75;margin:0;padding-left:1.4rem;display:grid;gap:.35rem}.legal-doc__section strong{color:var(--ui-text)}.legal-doc__contact{color:var(--ui-muted);border-top:1px solid var(--ui-border);padding-top:1.5rem}.legal-doc__contact a{color:var(--metal-gold-bright)}@media (max-width: 720px){.legal-doc{gap:1.9rem;padding-top:2rem}}.challenge__accept{margin-top:.75rem}.challenge__name{display:flex;flex-direction:column;gap:.35rem;width:min(20rem,100%);text-align:left}.challenge__name span{color:var(--ui-muted);font-size:.85rem;letter-spacing:.06em;text-transform:uppercase}.status-banner{white-space:normal;overflow-wrap:anywhere}.game-shell--battlefield{height:100dvh;overflow:hidden;display:flex;flex-direction:column;padding:clamp(.5rem,1.2vh,1rem) clamp(.75rem,1.5vw,1.5rem)}.game-shell--battlefield .game-shell__header{flex:none;padding:0 0 .4rem}.game-shell--battlefield .game-shell__heading h1,.game-shell--battlefield .game-shell__subtitle{display:none}.game-shell--battlefield .game-shell__player-row{flex:none}.game-shell--battlefield .game-shell__grid{flex:1;min-height:0}.game-shell--battlefield .game-shell__board,.game-shell--battlefield .game-shell__board-stage{min-height:0;height:100%;align-items:center}.game-shell--battlefield .game-shell__rail{max-height:none;height:100%;min-height:0}.game-shell--battlefield .game-shell__board-stage .board-shell{--square-size: min(92px, calc((100cqw - 66px)*.1) , calc((100dvh - 200px)*.1) )}.game-shell--battlefield .game-shell__grid--battlefield{grid-template-columns:minmax(0,1fr) minmax(280px,340px);grid-template-areas:"board context";height:100%;min-height:0}.game-shell--battlefield .game-shell__rail--context{grid-area:context;height:100%;min-height:0;max-height:none}.game-shell--battlefield .game-shell__board-stage--battlefield{container-type:size;height:100%;min-height:0;align-items:center;justify-content:center}.game-shell--battlefield .game-shell__board-stage--battlefield .board-shell{--square-size: min(92px, calc((100cqw - 66px)*.1) , calc((100cqh - 66px)*.1) )}.game-shell--battlefield .player-strip,.game-shell--battlefield .game-shell__player-row>.player-strip>*{min-width:0}.game-shell--battlefield .game-shell__player-row{display:flex;flex-direction:column;gap:.15rem;padding:0 .35rem}.game-shell--battlefield .player-strip .panel-card,.game-shell--battlefield .player-strip>*{padding:.3rem .6rem;font-size:.82rem;line-height:1.15}.game-shell--battlefield .game-shell__header{flex:none;padding:.2rem .35rem .4rem}.game-shell--battlefield .match-status-grid{display:none}.game-shell--battlefield .game-shell__board--column{display:flex;flex-direction:column;min-height:0;height:100%}.game-shell--battlefield .game-shell__player-row--battlefield{display:flex;flex:none;flex-direction:row;justify-content:space-between;gap:.5rem;padding:0 .25rem}.game-shell--battlefield .game-shell__player-row--battlefield .player-strip,.game-shell--battlefield .game-shell__player-row--battlefield .player-strip>*{flex:none;min-height:0;min-width:0;padding:.25rem .5rem;font-size:.78rem;line-height:1.2;background:none;border:none;box-shadow:none}.game-shell--battlefield .game-shell__player-row--battlefield .player-strip{display:flex;flex-direction:row;align-items:center;gap:.75rem}.game-shell--battlefield .game-shell__board-stage--battlefield{flex:1;min-height:0}.game-shell--battlefield .board-shell{position:relative}.game-shell--battlefield .board-shell>:first-child:not(.board):not(.board-frame):not(.board-outer){position:absolute;inset-inline:0;top:0;transform:translateY(-110%);z-index:6}.game-shell--battlefield .game-shell__header{min-height:0;padding:.15rem .35rem .3rem}.game-shell--battlefield .game-shell__actions{gap:.4rem}.game-shell--battlefield .game-shell__board-stage--battlefield .board-shell{--square-size: min( calc((100cqw - 66px)*.1) , calc((100cqh - 66px)*.1) )}.game-shell--battlefield .game-shell__grid--battlefield{gap:.9rem}.game-shell--battlefield .game-shell__board-stage--battlefield{display:grid;place-items:center}.game-shell--battlefield .battlefield-command{flex:none;border:1px solid rgba(96,165,250,.35);border-radius:8px;background:#1e3a5f47;margin:0 0 .6rem}.game-shell--battlefield .battlefield-command__summary{display:flex;align-items:center;gap:.5rem;padding:.4rem .65rem;cursor:pointer;-webkit-user-select:none;user-select:none;color:#9ec5ff;font-size:.8rem;letter-spacing:.14em;list-style:none}.game-shell--battlefield .battlefield-command__summary::-webkit-details-marker{display:none}.game-shell--battlefield .battlefield-command__summary:after{content:"▾";margin-left:auto}.game-shell--battlefield .battlefield-command[open] .battlefield-command__summary:after{content:"▴"}.game-shell--battlefield .battlefield-command__body{padding:.35rem .65rem .55rem;display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}.game-shell--battlefield .game-shell__player-row--battlefield .player-strip *{min-height:0!important}.game-shell--battlefield .game-shell__rail--context{display:flex;flex-direction:column;gap:0}.game-shell--battlefield .battlefield-command{flex:none;width:100%;margin:0 0 .5rem}.game-shell--battlefield .game-shell__grid--battlefield{gap:.75rem}.game-shell--battlefield .board-shell>:first-child:not(.board):not(.board-frame):not(.board-outer){display:none}.game-shell--battlefield .game-shell__player-row--battlefield .player-strip,.game-shell--battlefield .game-shell__player-row--battlefield .player-strip *{padding:.05rem .3rem!important;margin:0;background:none!important;border:0!important;box-shadow:none!important;font-size:.78rem!important;line-height:1.25!important;min-height:0!important}.game-shell--battlefield .game-shell__grid--battlefield{grid-template-columns:minmax(110px,150px) minmax(0,1fr) minmax(300px,340px);grid-template-areas:"hud board context";gap:.75rem}.game-shell--battlefield .game-shell__player-hud{grid-area:hud;display:flex;flex-direction:column;justify-content:space-between;min-height:0;padding:.4rem .3rem;font-size:.78rem;letter-spacing:.08em;color:#cfd8e3}.game-shell--battlefield .game-shell__player-hud .player-strip{display:contents}.game-shell--battlefield .game-shell__player-hud .player-strip>*{display:flex;flex-direction:column;gap:.15rem;padding:.15rem .2rem;min-height:0;min-width:0;background:none;border:0;box-shadow:none;line-height:1.25}.game-shell--battlefield .game-shell__player-hud .player-strip *{padding:0!important;margin:0;background:none!important;border:0!important;box-shadow:none!important;font-size:.78rem!important;line-height:1.3!important;min-height:0!important}.game-shell--battlefield .game-shell__board{grid-area:board}.game-shell--battlefield .game-shell__rail--context{grid-area:context}@media (max-width: 900px){.game-shell--battlefield .game-shell__grid--battlefield{grid-template-columns:minmax(0,1fr);grid-template-areas:"hud" "board" "context";grid-template-rows:auto minmax(0,1fr) auto}.game-shell--battlefield .game-shell__player-hud{flex-direction:row;align-items:center;padding:.2rem .35rem}}.game-shell--battlefield .bf-hud{display:flex;flex-direction:column;justify-content:space-between;height:100%;min-height:0;padding:.6rem .3rem}.game-shell--battlefield .bf-hud__side{display:flex;flex-direction:column;gap:.2rem;font-size:.78rem;letter-spacing:.1em;line-height:1.3}.game-shell--battlefield .bf-hud__glyph{font-size:1.3rem;line-height:1}.game-shell--battlefield .bf-hud__name{font-weight:600}.game-shell--battlefield .bf-hud__color{opacity:.6;font-size:.66rem}.game-shell--battlefield .bf-hud__status{opacity:.75;font-size:.68rem}.game-shell--battlefield .bf-hud__status--you{color:#d4a94e;font-weight:700;font-size:.72rem}.game-shell--battlefield .game-shell__player-hud,.game-shell--battlefield .bf-hud,.game-shell--battlefield .bf-hud *{background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}.game-shell--battlefield .bf-hud{justify-content:space-around;text-align:center;align-items:center}.game-shell--battlefield .bf-hud__side{align-items:center;width:100%}.game-shell--battlefield .bf-hud__name{overflow-wrap:anywhere;max-width:100%}.context-console{display:flex;flex-direction:column;min-height:0;height:100%}.context-console__tabs{display:flex;gap:0;border-bottom:1px solid rgba(96,165,250,.25);flex:none}.context-console__tab{flex:1;padding:.45rem .2rem;background:none;border:0;cursor:pointer;color:#8fa3bd;font-size:.66rem;letter-spacing:.12em;border-bottom:2px solid transparent;position:relative}.context-console__tab.is-active{color:#d4a94e;border-bottom-color:#d4a94e}.context-console__dot{color:#e05b5b;margin-left:.25rem}.context-console__pane{flex:1;min-height:0;overflow:auto}.context-cards section{padding:.5rem .2rem;border-bottom:1px solid rgba(255,255,255,.08);font-size:.78rem}.context-cards h4,.context-match p{letter-spacing:.12em;font-size:.66rem;color:#8fa3bd}.context-match{padding:.5rem .2rem;font-size:.8rem}.game-shell--battlefield .context-console .panel-card,.game-shell--battlefield .context-console .panel-card>*{background:none;border:0;border-radius:0;box-shadow:none}.game-shell--battlefield .context-console .panel-card{padding:.35rem .15rem;border-bottom:1px solid rgba(255,255,255,.07)}.game-shell--battlefield .context-console .panel-card__subtitle,.game-shell--battlefield .context-console .panel-card__header p{display:none}.game-shell--battlefield .context-console h3,.game-shell--battlefield .context-console h4{margin:.4rem 0 .25rem;font-size:.66rem;letter-spacing:.14em;color:#8fa3bd;text-transform:uppercase}.game-shell--battlefield .context-console .panel-card__subtle{font-size:.72rem}.game-shell--battlefield .context-console__tabs{border-bottom:1px solid rgba(96,165,250,.3)}.game-shell--battlefield .board-frame[data-your-turn=true]{box-shadow:0 0 0 1px #d4a94e8c,0 0 18px #d4a94e38}@media (prefers-reduced-motion: no-preference){.game-shell--battlefield .board-frame[data-your-turn=true]{animation:bf-turn-breathe 2.8s ease-in-out infinite}}@keyframes bf-turn-breathe{0%,to{box-shadow:0 0 0 1px #d4a94e73,0 0 12px #d4a94e29}50%{box-shadow:0 0 0 1px #d4a94eb3,0 0 22px #d4a94e47}}.game-shell--battlefield .bf-hud__status--you{text-shadow:0 0 8px rgba(212,169,78,.35)}.piece--selected{filter:drop-shadow(0 0 6px rgba(212,169,78,.8)) brightness(1.15)}.square.option-marker--capture:before{outline:2px solid rgba(224,91,91,.85);outline-offset:-2px}@media (prefers-reduced-motion: reduce){.game-shell--battlefield .board-frame[data-your-turn=true],.piece--selected{animation:none}}@media (max-width: 900px){.game-shell--battlefield .bf-hud{height:auto;flex-direction:column;justify-content:flex-start;gap:.1rem;padding:.3rem .5rem}.game-shell--battlefield .bf-hud__side{flex-direction:row;align-items:baseline;gap:.45rem;flex-wrap:wrap}.game-shell--battlefield .bf-hud__side .clock-display{margin-left:auto}.game-shell--battlefield .bf-hud__status--divider{display:none}.game-shell--battlefield .bf-hud__status--you{letter-spacing:.1em}.game-shell--battlefield .game-shell__grid--battlefield{grid-template-rows:auto minmax(0,1fr) minmax(0,34svh)}.game-shell--battlefield .game-shell__rail--context{max-height:34svh;overflow-y:auto}}@media (max-width: 720px){.game-shell--battlefield .game-shell__grid--battlefield{grid-template-rows:auto minmax(0,calc(100vw - 2px)) minmax(0,1fr)}.game-shell--battlefield .game-shell__rail--context{max-height:none;overflow-y:auto}}@media (max-width: 900px){.game-shell--battlefield .bf-hud .clock-display{width:auto;padding:0;margin:0 0 0 auto;border:0;border-radius:0;background:none;font-size:.8rem;gap:.3rem;flex-wrap:nowrap}.game-shell--battlefield .bf-hud .clock-display__top{display:none}.game-shell--battlefield .bf-hud .clock-rush{flex-basis:auto}.game-shell--battlefield .bf-hud .clock-rush__label{display:none}.game-shell--battlefield .bf-hud .clock-display.running{background:none;border-color:transparent;color:inherit}.game-shell--battlefield .bf-hud .clock-display.stopped{color:inherit;opacity:.7}.game-shell--battlefield .bf-hud .clock-time{font-weight:600}}@keyframes clockPulseWarn{50%{box-shadow:0 0 12px 3px #e8a83873}}@keyframes clockPulseCrit{50%{box-shadow:0 0 14px 4px #dc32328c}}@keyframes clockPulseDanger{50%{box-shadow:0 0 18px 6px #dc1e1eb3}}.clock-display.time-low{border-color:#e8a838d9;color:#e8a838;animation:clockPulseWarn 1.8s ease-in-out infinite}.clock-display.time-critical{border-color:#dc3232e6;color:#f06060;animation:clockPulseCrit .9s ease-in-out infinite}.clock-display.time-danger{border-color:#dc1e1e;color:#ff5a5a;animation:clockPulseDanger .5s ease-in-out infinite}@media (prefers-reduced-motion: reduce){.clock-display.time-low,.clock-display.time-critical,.clock-display.time-danger{animation:none}}.drag-ghost{opacity:.85;filter:drop-shadow(0 4px 10px rgba(0,0,0,.45))}.square{touch-action:none;-webkit-user-select:none;user-select:none}.board-theme-card{padding:.5rem .75rem}.board-theme-card__label{display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-size:.8rem;color:var(--ui-muted);letter-spacing:.08em;text-transform:uppercase}.board-theme-card__select{flex:1;min-width:0;font-size:.85rem;padding:.3rem .4rem;background:var(--ui-surface, #161a24);color:var(--ui-text, #e6e9ef);border:1px solid var(--ui-border);border-radius:8px}.learn{max-width:1080px;margin:0 auto;padding:3rem 1.25rem 4rem}.learn__hero{text-align:center;margin-bottom:2.5rem}.learn__eyebrow{color:var(--ui-muted);font-size:.8rem;letter-spacing:.22em;text-transform:uppercase;margin-bottom:.75rem}.learn__hero h1{font-size:clamp(2rem,5vw,3.4rem);letter-spacing:.06em;color:var(--ui-text, #e6e9ef)}.learn__tagline{font-size:clamp(1rem,2.4vw,1.35rem);color:var(--metal-gold, #c8a45c);font-style:italic;margin:.5rem 0 1.25rem}.learn__intro{max-width:640px;margin:0 auto;color:var(--ui-muted);font-size:.98rem;line-height:1.6}.learn__grid{display:grid;gap:1.5rem;grid-template-columns:1fr}.learn-card{background:#10141eb8;border:1px solid var(--ui-border);border-radius:16px;padding:1.5rem;box-shadow:var(--ui-shadow)}.learn-card__head{display:flex;align-items:baseline;gap:.8rem}.learn-card__num{color:var(--metal-gold, #c8a45c);font-size:.85rem;letter-spacing:.14em;font-weight:700}.learn-card__head h2{font-size:1.35rem;letter-spacing:.08em;margin:0}.learn-card__hook{color:var(--metal-gold, #c8a45c);font-size:.82rem;letter-spacing:.12em;text-transform:uppercase;margin:.4rem 0 1rem}.learn-card__media{aspect-ratio:16 / 9;border-radius:10px;overflow:hidden;background:linear-gradient(160deg,#151922,#0d1017);border:1px dashed rgba(200,164,92,.35);display:flex;align-items:center;justify-content:center;margin-bottom:1.1rem}.learn-card__media video{width:100%;height:100%;object-fit:cover}.learn-card__placeholder{color:var(--ui-muted);font-size:.8rem;letter-spacing:.2em;text-transform:uppercase}.learn-card__rule{color:var(--ui-text, #e6e9ef);line-height:1.6;font-size:.95rem}.learn-card__tactical{color:var(--ui-muted);font-size:.88rem;margin:.8rem 0 1.1rem}.learn-cta{display:inline-block;padding:.55rem 1.4rem;border-radius:10px;background:linear-gradient(160deg,#c8a45c,#a8853e);color:#14110a;font-weight:700;letter-spacing:.12em;text-decoration:none;font-size:.82rem}.learn-cta:hover{filter:brightness(1.08)}.learn__footer{text-align:center;margin-top:3rem}.learn__footer h2{font-size:clamp(1.3rem,3vw,1.9rem);letter-spacing:.08em;color:var(--ui-text, #e6e9ef);margin-bottom:1rem}@media (min-width: 720px){.learn__grid{grid-template-columns:repeat(2,1fr)}}.board-frame--gold{padding:10px;border:1px solid rgba(200,164,92,.55);box-shadow:inset 0 1px #e8a8381f,inset 0 0 0 1px #0a0807,0 0 0 1px #c8a45c73,0 0 0 2px #0a0807,0 0 22px #c8a45c2e,0 24px 60px #00000080;background:radial-gradient(circle at 50% 0%,rgba(232,168,56,.16),transparent 42%),linear-gradient(160deg,#241d10,#171209 45%,#0e0a05)}.board-frame--gold .board{border-color:#c8a45c66}.board-frame--gold .board-label{color:#d4b26a}@media (max-width: 640px){:root{--coord-px: 20px}.board{grid-template-columns:var(--coord-px) repeat(8,var(--square-size)) var(--coord-px);grid-template-rows:var(--coord-px) repeat(8,var(--square-size)) var(--coord-px);gap:1px;padding:2px}.board-label{font-size:calc(var(--coord-px) * .55)}.board-frame{padding:6px}.board-shell{--square-size: calc((100% - 64px)/8) }.game-shell__board-stage .board-shell,.director-stage .board-shell{--square-size: calc((100cqw - 64px)/8) }.board-theme-card{padding:.35rem .5rem}.board-theme-card__select{font-size:.78rem;padding:.2rem .3rem}.bf-hud__row--active,.bf-player--active{outline:1px solid rgba(200,164,92,.5);outline-offset:-1px}}@media (max-width: 640px){.game-shell--battlefield .bf-hud{gap:.3rem;padding:.3rem .2rem}.game-shell--battlefield .bf-hud__side{flex-direction:row;align-items:center;gap:.45rem;padding:.15rem .3rem;border-radius:6px;min-width:0}.game-shell--battlefield .bf-hud__side>:last-child{margin-left:auto;font-variant-numeric:tabular-nums;font-weight:700;font-size:.9rem}.game-shell--battlefield .bf-hud__name{max-width:10em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-shell--battlefield .bf-hud__status{flex-shrink:0}.game-shell--battlefield .bf-hud__side:has(.bf-hud__status--you){outline:1px solid rgba(200,164,92,.45);outline-offset:-1px;background:#c8a45c0f}.game-shell--battlefield .game-shell__player-hud{padding:.15rem .2rem}}@media (max-width: 640px){.game-shell--battlefield .game-shell__board-stage--battlefield .board-shell,.game-shell--battlefield .game-shell__board-stage .board-shell{--square-size: calc((100cqw - 82px)/8) }.game-shell--battlefield .game-shell__player-hud{max-width:100%;padding:.15rem 0}}.board-frame--gold{padding:10px;border:2px solid rgba(212,178,106,.9);border-radius:14px;background:radial-gradient(circle at 50% -8%,rgba(232,168,56,.22),transparent 46%),linear-gradient(160deg,#2c2210,#1c1509 45%,#120d05);box-shadow:inset 0 2px #f0d07847,inset 0 0 0 1px #785a1e99,inset 0 -2px 6px #0000008c,0 0 0 1px #d4b26a8c,0 0 0 3px #080604,0 0 18px #d4b26a47,0 0 42px #c8a45c1f,0 24px 60px #0009}.board-frame--gold:before{top:8px;right:8px;bottom:8px;left:8px;border:1px solid rgba(212,178,106,.45);border-radius:8px}.board-frame--gold:after{top:9px;right:9px;bottom:9px;left:9px;border:1px solid rgba(60,44,14,.8);border-radius:8px}.board-frame--gold .board{border:2px solid rgba(212,178,106,.55);border-radius:6px}.board-frame--gold .board-label{color:#e0bd72}.board-frame--gold .square[data-selected],.board-frame--gold .square.selected{box-shadow:inset 0 0 0 2px var(--selection),inset 0 0 18px #e8a8384d}.play__modes select,.board-theme-card__select{border:1.5px solid rgba(88,140,255,.55);border-radius:10px;background:linear-gradient(160deg,#121a2e,#0c1220);box-shadow:inset 0 1px #588cff1f,0 0 0 1px #141e3ccc,0 0 12px #3c64dc1f}.panel-card{border:1.5px solid rgba(200,164,92,.35);border-radius:12px;box-shadow:inset 0 1px #c8a45c14,0 0 0 1px #00000080,0 0 14px #c8a45c14}@media (max-width: 640px){.panel-card{border-radius:10px}}@media (max-width: 640px){.game-shell--battlefield .game-shell__header{padding:.15rem .3rem .25rem}.game-shell--battlefield .game-shell__player-hud{padding:.1rem .15rem}.game-shell--battlefield .bf-hud{gap:.2rem;padding:.2rem .1rem}.game-shell--battlefield .game-shell__grid--battlefield{gap:.35rem}.board-shell{gap:.4rem}.board-shell__header{height:auto;padding:.4rem .6rem;margin:0;border-radius:10px}.board-theme-card{margin:0}.panel-card{padding:.5rem .6rem;margin:0}.panel-card+.panel-card{margin-top:.4rem}}.board-theme-card__select,.play__modes select{border:1.5px solid rgba(96,150,255,.7);background:linear-gradient(160deg,#16203a,#0e1628 55%,#0a1120);box-shadow:inset 0 1px #78a5ff40,inset 0 -1px #00000080,0 0 0 1px #0a1432e6,0 0 10px #466edc26}.panel-card{border:1.5px solid rgba(190,150,70,.5);background:linear-gradient(165deg,#1c180ee6,#0e1016e6);box-shadow:inset 0 1px #dcb95f2e,inset 0 -1px #00000073,0 0 0 1px #0000008c,0 0 12px #be96461a}@media (max-width: 720px){.piece-artwork{max-width:96%;filter:drop-shadow(0 2px 2px rgba(0,0,0,.4))}.piece-artwork--pawn{height:85%}.piece-artwork--knight{height:88%}.piece-artwork--bishop{height:90%}.piece-artwork--rook{height:88%}.piece-artwork--queen{height:92%}.piece-artwork--king{height:94%}.piece:before{left:15%;right:15%}.piece-fallback{font-size:calc(var(--square-size) * .82)}}.square-edge-label{display:none}@media (max-width: 720px){.game-shell--battlefield .board-shell{gap:0}.game-shell--battlefield .board-frame{padding:0;border:0;border-radius:0;background:none;box-shadow:none}.game-shell--battlefield .board-frame:before,.game-shell--battlefield .board-frame:after{display:none}.game-shell--battlefield .board{grid-template-columns:repeat(8,var(--square-size));grid-template-rows:repeat(8,var(--square-size));gap:0;padding:0;border:0;border-radius:0;box-shadow:none;width:100%}.game-shell--battlefield .board .board-label,.game-shell--battlefield .board .square-coord{display:none}.game-shell--battlefield .game-shell__board-stage--battlefield .board-shell,.game-shell--battlefield .game-shell__board-stage .board-shell{--square-size: 12.5cqw }.square-edge-label{display:inline-block;position:absolute;z-index:4;pointer-events:none;font-size:calc(var(--square-size) * .17);line-height:1;font-weight:700;letter-spacing:.04em;font-family:var(--font-display, serif)}.square-edge-label--rank{left:3px;top:4px}.square-edge-label--file{right:4px;bottom:3px}.square.light .square-edge-label{color:#60461cf2;text-shadow:0 1px 0 rgba(255,246,228,.65),0 0 3px rgba(255,246,228,.8)}.square.dark .square-edge-label{color:#eed08ff2;text-shadow:0 1px 2px rgba(0,0,0,.6),0 0 3px rgba(0,0,0,.7)}.game-shell--battlefield .piece-artwork{transform:scale(1.15)}.game-shell--battlefield .piece-fallback{font-size:calc(var(--square-size) * .94)}}@media (max-width: 720px){.game-shell--battlefield{padding-left:0;padding-right:0}.game-shell--battlefield .bf-hud,.game-shell--battlefield .game-shell__player-hud,.game-shell--battlefield .game-shell__rail--context{padding-left:8px;padding-right:8px}}@media (max-width: 720px){.game-shell--battlefield .game-shell__grid--battlefield{grid-template-rows:auto minmax(0,calc(100vw + 54px)) minmax(0,1fr)}}
