.game-layout{display:grid;grid-template-columns:minmax(0,560px) minmax(260px,1fr);gap:24px;align-items:start}.board-panel{min-width:0}.board-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px;font-size:13px}.board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));width:100%;border:7px solid #283743;border-radius:12px;overflow:hidden;box-sizing:border-box;box-shadow:0 12px 35px #172a401a}.board-cell{aspect-ratio:1;min-width:0;padding:2px;position:relative;border:0;border-radius:0;display:flex;align-items:center;justify-content:center;cursor:pointer;touch-action:manipulation}.board-cell.light{background:#e6e7dc}.board-cell.dark{background:#718d88}.board-cell:disabled{opacity:1;cursor:default}.board-cell.selected{background:#efc966;box-shadow:inset 0 0 0 3px #a77b13}.board-cell:focus-visible{z-index:1;outline:3px solid #6d4de5;outline-offset:-3px}.chess-piece{width:88%;height:88%;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 1px #0004)}.chess-piece.white{fill:#fff8e7;stroke:#514d45}.chess-piece.black{fill:#25353e;stroke:#edf0df}.cell-coordinate{position:absolute;bottom:2px;left:3px;font-size:9px;line-height:1;color:#233f3a;font-weight:700}.board-cell.dark .cell-coordinate{color:#f7ffed}.move-dot{width:24%;height:24%;background:#7650d4bb;border-radius:50%;position:absolute;box-shadow:0 0 0 3px #ffffff60}.target .chess-piece+.move-dot,.target .checker+.move-dot{width:85%;height:85%;background:transparent;box-shadow:inset 0 0 0 4px #7c4ac6}.checker{width:72%;height:72%;border-radius:50%;border:2px solid #607875;box-shadow:inset 0 0 0 4px #a9b5a955,0 4px 1px #253c3c66;display:flex;align-items:center;justify-content:center;font-size:clamp(16px,5vw,36px)}.checker.white{background:#fcf2d9;color:#99721d}.checker.black{background:#24373b;color:#ecc978}.game-details h2{font-size:24px;line-height:1.25;margin:12px 0}.game-details p{overflow-wrap:anywhere}.game-status-dot{display:block;width:11px;height:11px;background:#b7bbc6;border-radius:50%}.game-status-dot.on{background:#3d9875;box-shadow:0 0 0 5px #3d987518}.last-move{padding:20px 0;margin-bottom:8px;border-bottom:1px solid #ececf1}.last-move small,.last-move b{display:block;margin-bottom:8px}.game-card{display:flex;width:100%;text-align:left;align-items:center;gap:18px}.game-card-icon{font-size:40px;flex-shrink:0}.game-card>div{flex:1;min-width:0}.game-list,.command-settings{display:grid;gap:12px}.command-settings{margin-top:18px}.command-settings .row{gap:20px}.command-settings .row>div{min-width:0;overflow-wrap:anywhere}.command-settings .switch{flex-shrink:0}.command-settings .switch:disabled{opacity:.45;cursor:default}.pre,.event p,.command p{overflow-wrap:anywhere}.game-launch{margin-bottom:20px}.render-sample{max-width:100%;height:auto;border-radius:16px}.media-placeholder{padding:14px;border-radius:12px;background:#b9a1ff15;color:#c5bddc;margin:10px 0;font-size:13px}.game-details .btn{white-space:normal}
@media(max-width:1000px){.game-layout{grid-template-columns:minmax(0,1fr)}.board-panel{max-width:560px;width:100%;margin:auto}.game-details{max-width:560px;width:100%;box-sizing:border-box;margin:auto}.game-details h2{font-size:21px}}
@media(max-width:400px){.board{border-width:4px}.board-heading{font-size:11px}.board-cell{padding:0}.cell-coordinate{font-size:8px}.command-settings .card{padding:16px}.game-layout{gap:16px}}

/* A warm, tactile board; amber always marks the opponent's last move. */
.board-wrap{position:relative;--move-color:#d88c2f;--move-wash:#edbd68}.board{position:relative;border-color:#384744;border-radius:10px;box-shadow:0 14px 28px #0002}.board-cell.light{background:#eee9dc}.board-cell.dark{background:#78938b}.board-cell.last-from{background:color-mix(in srgb,var(--move-wash) 62%,#78938b);box-shadow:inset 0 0 0 2px var(--move-color)}.board-cell.last-to{background:var(--move-wash);box-shadow:inset 0 0 0 4px var(--move-color)}.board-cell.last-via{box-shadow:inset 0 0 0 3px var(--move-color)}.own-move{--move-color:#428d7c;--move-wash:#9dc7a7}.board-cell.selected{background:#c6b2ef;box-shadow:inset 0 0 0 3px #7553b3}.board-cell.selected>.chess-piece,.board-cell.selected>.checker{transform:translateY(-5%) scale(1.08);filter:drop-shadow(0 5px 3px #0005)}.board-cell>.chess-piece,.board-cell>.checker{transition:transform 150ms ease,filter 150ms ease;z-index:2;pointer-events:none}.board-cell.in-check{background:#df827a;box-shadow:inset 0 0 0 4px #b63838}.board-cell .move-dot{z-index:3;animation:target-appear 160ms ease-out}.cell-coordinate{z-index:4;pointer-events:none}.last-move-arrow{position:absolute;inset:7px;width:calc(100% - 14px);height:calc(100% - 14px);pointer-events:none;overflow:visible;opacity:.8}.last-move-arrow polyline{fill:none;stroke:var(--move-color);stroke-width:10;stroke-linecap:round;stroke-linejoin:round}.last-move-arrow .arrow-head{stroke-width:12}.choosing .last-move-arrow{opacity:.15}.piece-flight{position:absolute;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:10;will-change:transform,opacity}.motion-hidden{visibility:hidden}.board-player{display:flex;align-items:center;gap:12px;padding:13px 12px;margin:8px 0;border:1px solid var(--line,#ddd);border-radius:13px;background:var(--panel,#fff);min-width:0;transition:border-color 200ms}.board-player.to-move{border-color:#599e87;background:color-mix(in srgb,var(--panel,#fff) 93%,#66ba94)}.player-avatar{width:42px;height:42px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#6f867e33;color:var(--text);font-size:18px;font-weight:600}.player-avatar img{width:100%;height:100%;object-fit:cover}.player-info{flex:1;min-width:0}.player-info>b{display:flex;gap:8px;align-items:center;overflow-wrap:anywhere;font-size:14px}.player-info>b small{font-size:11px;opacity:.65;font-weight:400}.player-info>span{display:block;font-size:12px;color:var(--muted,#888);margin-top:3px}.player-turn{color:#5aa584;font-size:14px}.captured-pieces{display:flex;align-items:center;flex-wrap:wrap;min-height:20px;gap:0;margin-top:4px}.captured-pieces .chess-piece{width:19px;height:20px;filter:none}.captured-pieces .checker{width:15px;height:15px;font-size:11px;box-shadow:inset 0 0 0 2px #a9b5a955;border-width:1px;margin-right:2px}.captured-pieces small{font-size:10px;color:var(--muted,#888);margin-left:4px}.captured-pieces strong{font-size:12px;color:#63ab8d;margin-left:8px}.board-live{font-size:10px;color:var(--muted,#888)}.move-caption{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:7px;min-height:30px;font-size:12px;color:var(--muted,#888)}.move-caption b{color:var(--text);font-variant-numeric:tabular-nums}.move-color-key{width:8px;height:8px;border-radius:2px;background:var(--move-color,#d88c2f)}.game-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:14px 0;border-block:1px solid var(--line,#ddd)}.game-numbers b,.game-numbers small{display:block}.game-numbers b{font-size:22px;font-variant-numeric:tabular-nums}.game-numbers small{font-size:10px;margin-top:4px;color:var(--muted,#888);line-height:1.4}.game-history{margin:0 0 20px}.game-history summary{cursor:pointer;padding:10px 0;font-size:13px}.game-history summary span{color:var(--muted,#888);margin-left:8px}.move-history-list{max-height:190px;overflow:auto;overscroll-behavior:contain}.move-history-row{display:grid;grid-template-columns:26px 1fr 1fr;gap:8px;padding:8px 4px;border-bottom:1px solid var(--line,#ddd);font-size:12px;font-variant-numeric:tabular-nums}.move-history-row:first-child{background:#6b9e8615;border-radius:6px}.move-history-row span{overflow-wrap:anywhere}.move-history-row small{color:var(--muted,#888)}.board-wrap[aria-busy=true]{cursor:progress}.board-wrap[aria-busy=true] .selected{animation:pending-move 900ms ease-in-out infinite}.game-details .last-move{padding:14px 0}.game-details h2{font-size:22px}
@keyframes target-appear{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}@keyframes pending-move{50%{filter:brightness(1.12)}}
@media(max-width:400px){.last-move-arrow{inset:4px;width:calc(100% - 8px);height:calc(100% - 8px)}.board-player{padding:10px;gap:9px}.player-avatar{width:36px;height:36px}.board-live{max-width:110px;text-align:right;font-size:9px}.board-heading{margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){.board-cell>.chess-piece,.board-cell>.checker,.board-player{transition:none}.board-cell .move-dot,.board-wrap[aria-busy=true] .selected{animation:none}}
.game-finale{display:flex;position:relative;isolation:isolate;overflow:hidden;align-items:center;gap:18px;padding:24px;margin-bottom:22px;border-radius:16px;border:1px solid #d5ad5b88;background:#b68a2415}.game-finale.loss{border-color:#bc889255;background:#ab73800d}.game-finale.draw{border-color:#8bd5e555;background:#8bd5e50b}.game-finale h2{margin:3px 0 8px;font-size:24px}.game-finale p{margin:4px 0;color:var(--muted);font-size:13px}.game-finale small{font-size:10px;letter-spacing:.14em;color:#e3c379}.game-finale.loss small{color:#c7a4aa}.game-finale.draw small{color:#8bd5e5}.finale-symbol{flex-shrink:0;font-size:55px;line-height:1;color:#e3c379}.loss .finale-symbol{color:#bba5b0}.draw .finale-symbol{color:#8bd5e5}.finale-effects{position:absolute;inset:0;pointer-events:none;z-index:2}.victory-spark{position:absolute;width:6px;height:6px;border-radius:2px;opacity:0;box-shadow:0 0 8px #efcb7680}.game-finale .footnote{font-size:11px}@media(max-width:400px){.game-finale{padding:18px;gap:12px}.game-finale h2{font-size:20px}.finale-symbol{font-size:42px}}

.hint-control{padding:12px;border:1px solid #bda1ec55;border-radius:12px;margin:14px 0;background:#bda1ec0a}.hint-control p{margin:10px 0}.hint-control small{color:var(--muted);line-height:1.5}.board-cell.hint-square{box-shadow:inset 0 0 0 4px #bb91ff!important}.board-cell.hint-square::after{content:"✦";position:absolute;right:3px;top:1px;color:#cdb1ff;font-size:15px;text-shadow:0 1px 3px #000;z-index:2}

.hint-switch{display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:600;font-size:14px}.hint-switch input{width:20px;height:20px;accent-color:#ba96ef;flex-shrink:0}
