.chess-game{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:20px;padding:18px;background:radial-gradient(ellipse at 45% 30%,#253245,#0d1523 75%);border-radius:18px;color:#e6edf5;position:relative}.chess-table{position:relative;min-width:0;max-width:900px;width:100%;margin:auto}.chess-profile{display:flex;align-items:center;gap:12px;padding:10px 15px;border:1px solid #ffffff12;border-radius:12px;background:#111e30b8}.chess-profile.active{border-color:#78d6c56b;box-shadow:0 0 20px #65dbc313}.chess-profile span{display:grid;gap:3px}.chess-profile small{color:#91a4bd;font-size:12px}.chess-profile strong{margin-left:auto;padding:7px 15px;border-radius:7px;background:#080f1c;font:600 26px ui-monospace,monospace;font-variant-numeric:tabular-nums}.chess-profile strong.danger{color:#ff7b83}.chess-status{display:flex;justify-content:space-between;gap:8px;padding:12px 4px;font-size:13px}.chess-status small{color:#90a1b8}.chess-viewport{width:100%;height:clamp(300px,52vw,660px);touch-action:none}.chess-viewport canvas{display:block}.chess-controls{display:flex;align-items:center;justify-content:center;gap:9px;padding-top:12px;flex-wrap:wrap}.chess-controls .stage-fs{position:static}.chess-history{border:1px solid #ffffff10;background:#111c2be8;padding:15px;border-radius:14px;display:flex;flex-direction:column;max-height:790px}.chess-history h3{margin:0 0 15px;font-size:15px}.chess-history ol{overflow:auto;flex:1;min-height:60px;padding-left:27px;font:14px ui-monospace,monospace;scrollbar-width:thin}.chess-history li{padding:8px 4px;border-bottom:1px solid #ffffff08}.chess-history li span{display:inline-block;width:45%}.chess-history p{font-size:12px;line-height:1.6;color:#8f9db3}.chess-draw{display:flex;align-items:center;gap:8px;padding:12px;flex-wrap:wrap;background:#243b44;border-radius:10px;margin-top:10px}.chess-dialog{position:absolute;z-index:10;top:40%;left:10%;right:10%;display:flex;justify-content:center;gap:12px;flex-wrap:wrap;background:#122136f5;padding:24px;border:1px solid #b59b69;border-radius:14px;box-shadow:0 15px 65px #000b}.chess-dialog b{width:100%;text-align:center}.chess-accessible{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.chess-accessible.keyboard-visible{position:relative;width:100%;height:auto;clip-path:none;display:grid;grid-template-columns:repeat(8,1fr)}.chess-fallback{display:grid;grid-template-columns:repeat(8,1fr);max-width:600px;aspect-ratio:1;margin:0 auto 15px;border:12px solid #634329}.chess-table.fallback .chess-viewport{display:none}.chess-fallback button{border:0;border-radius:0;font-size:clamp(24px,6vw,54px);padding:0;color:#171513;text-shadow:0 1px 1px #0008}.chess-fallback .light{background:#e4dbc6}.chess-fallback .dark{background:#725b45}.chess-fallback .white-piece{color:#fff4d8}.chess-fallback .selected{box-shadow:inset 0 0 0 3px #6ae6cb}.chess-fallback .legal{background:#698c6c}.chess-game.fullscreen{height:100%;border-radius:0;padding:12px 24px;overflow:auto}.chess-game.fullscreen .chess-viewport{height:min(67dvh,800px)}.chess-stakes{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0;padding:14px;border:1px solid #a48b5760;border-radius:12px}.chess-stakes p{width:100%;margin:0;font-size:12px;color:#94a5b8}.chess-cover{display:grid;place-items:center;background:radial-gradient(ellipse at 50% 30%,#8a6b43,#152134 70%);font-size:90px;color:#ecdec1;text-shadow:6px 10px 7px #0008}@media(max-width:900px){.chess-game{grid-template-columns:1fr;padding:10px;gap:10px}.chess-history{max-height:190px}.chess-history h3{margin-bottom:4px}.chess-status{flex-direction:column;text-align:center;padding:8px}.chess-viewport{height:clamp(280px,105vw,590px)}.chess-profile{padding:8px 10px;gap:8px}.chess-profile strong{font-size:22px;padding:5px 10px}.chess-game.fullscreen{padding:8px;display:block}.chess-game.fullscreen .chess-viewport{height:min(60dvh,110vw)}.chess-game.fullscreen .chess-history{display:none}.chess-controls{gap:5px}.chess-controls .btn{font-size:11px;padding:7px}.stage-chess{padding:0!important}}.chess-history details{display:flex;flex-direction:column;min-height:0}.chess-history summary{font-size:15px;font-weight:600;cursor:pointer}.chess-history details:not([open]){flex:0}.chess-captured{min-height:12px;display:flex;gap:2px}.chess-captured i{font-style:normal;font-size:14px;color:#c6ad79}@media(max-width:900px){.chess-history:has(details:not([open])){padding:10px 14px}.chess-history ol{max-height:95px}}.chess-profile{width:100%;text-align:left;color:inherit;font:inherit}.chess-profile.speaking{border-color:#62daaa;box-shadow:0 0 16px #62daaa25}@media(max-width:900px){.chess-viewport{height:auto;aspect-ratio:1;width:100%;margin-inline:auto}.chess-game.fullscreen .chess-viewport{height:auto;aspect-ratio:1;width:min(100%,calc(100dvh - 210px))}}@media(max-width:900px){.chess-viewport{aspect-ratio:9 / 10}.chess-game.fullscreen .chess-viewport{aspect-ratio:9 / 10;width:min(100%,calc(90dvh - 189px))}}.chess-profile{box-sizing:border-box}.chess-profile-name{flex:1;min-width:0;overflow:hidden}.chess-profile-name b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chess-profile strong{flex:none}@media(max-width:900px){.chess-game.fullscreen{padding:6px}.chess-game.fullscreen .chess-table{display:flex;flex-direction:column}.chess-game.fullscreen .chess-status{order:-1;font-size:11px}.chess-game.fullscreen .chess-opponent .chess-profile{border-radius:12px 12px 0 0;border-bottom:0}.chess-game.fullscreen .chess-viewport{width:100%;max-width:none;margin-top:-1px;flex:none}.chess-game.fullscreen .chess-profile-name b{font-size:13px}.chess-game.fullscreen .chess-profile strong{font-size:20px;padding:5px 8px}}
