body.theme-checkers { --gold:#edc988; --gold-2:#bc874e; --line:#9c785542; --panel:rgba(19,25,24,.96); --toxic:#9cdbc3; }
.theme-checkers #scene .h-bg { background:#151d1c url('/sprites/checkers-cover.webp') center/cover; filter:brightness(.58); }
.theme-checkers.in-game #scene .h-bg { filter:brightness(.23) blur(3px); }
.theme-checkers #scene .h-lamp { background:radial-gradient(ellipse at 60% 0%,#eab07133,transparent 62%); }
.theme-checkers .logo h1 { background:linear-gradient(#fff0cd,#d3a565); color:transparent; background-clip:text; }
.theme-checkers .btn-gold { background:linear-gradient(165deg,#f5d8a0,#c59956); color:#251c10; }
.theme-checkers .btn-doubt { background:#294f49; }
.theme-checkers .tr-fg { stroke:#a4d9c2; }
.theme-checkers .table-wrap { container-type:size; display:grid; place-items:center; }
.ck-frame { width:min(73cqw,87cqh,640px); padding:clamp(4px,1cqw,10px); border:1px solid #c79a62; border-radius:8px; background:#56361e; box-shadow:0 22px 48px #000a,inset 0 0 0 2px #251b12; }
#board { position:relative; display:grid; grid-template-columns:repeat(8,1fr); grid-template-rows:repeat(8,1fr); aspect-ratio:1; background:url('/sprites/ck-board.webp') center/100% 100%; }
.cell { position:relative; border:0; border-radius:0; margin:0; padding:0; background:transparent; color:#ffe8bc; display:grid; place-items:center; cursor:pointer; }
.cell:disabled { opacity:1; cursor:default; }
.cell img { width:85%; height:85%; object-fit:contain; filter:drop-shadow(1px 3px 2px #0009); pointer-events:none; }
.cell.source img { filter:drop-shadow(0 0 2px #fff4cc) drop-shadow(0 3px 2px #0009); }
.cell.last { box-shadow:inset 0 0 0 2px #e7c16e94; }
.cell.selected,.cell:focus-visible { outline:3px solid #ffe1a1; outline-offset:-3px; z-index:1; }
.cell.target { background:#ccffe532; box-shadow:inset 0 0 0 3px #c3ffe4; }
.cell.captured img { opacity:.36; }
.cell small { position:absolute; font:700 clamp(8px,1.3cqw,12px)/1 Manrope,sans-serif; color:white; text-shadow:0 1px 3px black,0 0 2px black; }
.cell .rank { left:2px; top:2px; } .cell .file { right:3px; bottom:2px; }
.theme-checkers .seats { pointer-events:none; }
.theme-checkers .seat { width:12%; left:7%; top:50%; }
.theme-checkers .seat + .seat { left:93%; }
.theme-checkers .seat.turn::before { content:none; }
.theme-checkers .seat small { color:#f1d09c; }
.theme-checkers .seat .ava-wrap { margin-inline:auto; }
.theme-checkers .ck-dock { grid-template-columns:1fr; min-height:0; padding:8px 12px 15px; }
.ck-dock .dock-main { gap:5px; }
.ck-dock .dock-actions:empty { display:none; }
.ck-modes { display:grid; gap:.4rem; }
.ck-modes button { text-align:left; background:#172423; color:#e8deca; border:1px solid #42615a; border-radius:8px; padding:.5rem .7rem; cursor:pointer; }
.ck-modes button.on { border-color:#e5c68c; background:#28423c; }
.ck-modes small { display:block; color:#b5c4bf; }
.theme-checkers .host-panel { max-height:calc(100% - 16px); }
@container (max-width:780px) {
 .ck-frame { width:min(95cqw,calc(95cqh - 100px)); margin-top:94px; }
 .theme-checkers .seat,.theme-checkers .seat + .seat { top:50px; left:25%; width:42%; }
 .theme-checkers .seat + .seat { left:75%; }
 .theme-checkers .seat .ava-wrap { width:38px; height:38px; }
 .theme-checkers .seat .name { margin-top:1px; }
 .theme-checkers .seat small,.theme-checkers .bot-badge { font-size:10px; }
}
@media(max-width:700px) {
 .theme-checkers .host-panel { width:calc(100% - 16px); }
 .theme-checkers .topbar { flex-wrap:wrap; justify-content:center; gap:4px; }
 .theme-checkers .tb-center { order:3; width:100%; }
 .theme-checkers .emotes { justify-content:center; }
 .theme-checkers .ta-btn { left:4px; bottom:4px; width:32px; height:32px; }
}

@media(max-width:520px) {
 .theme-checkers .topbar { display:flex; }
 .theme-checkers .tb-left,.theme-checkers .tb-right { justify-content:center; }
 .theme-checkers #ambBtn { display:inline-grid; }
 .theme-checkers .tb-center { flex-basis:100%; }
 .theme-checkers .tb-center .ticker { max-width:96vw; }
}

.theme-checkers .login-card,.theme-checkers .lobby-card { background:linear-gradient(160deg,#1c2420f7,#100e0cf7); }
.theme-checkers .seat small { display:block; }
@media(prefers-reduced-motion:reduce) {
 .theme-checkers *, .theme-checkers *::before,.theme-checkers *::after { animation-duration:.01ms!important; transition-duration:.01ms!important; }
}
