
/* ===== CHESS-CONSOLE-OWNER-P1 (#814) ===== */
body.chess-console.cc-owner #game .side-dock{
  --cc-bg:#faf3e1;--cc-surface:#fffdf7;--cc-soft:#f1e7cf;--cc-line:#e0d4b8;
  --cc-ink:#0a3a3d;--cc-muted:#526e6c;--cc-accent:#006b6a;--cc-accent-hover:#005857;
  --cc-on-accent:#ffffff;--cc-focus:#c8891a;--cc-badge:#d92633;--cc-shadow:#00191b33;color-scheme:light
}
body.chess-console.cc-owner[data-cc-theme="dark"] #game .side-dock{
  --cc-bg:#0f2a2d;--cc-surface:#163538;--cc-soft:#1d4145;--cc-line:#2c5155;
  --cc-ink:#e8f2ef;--cc-muted:#a5c1bd;--cc-accent:#1c7a75;--cc-accent-hover:#22908a;
  --cc-on-accent:#ffffff;--cc-focus:#f0c25a;--cc-badge:#e3404c;--cc-shadow:#0006;color-scheme:dark
}
/* Small text navigation above the board (desktop); phones keep the existing top bar menu. */
body.chess-console.cc-owner #game>.boardarea>.cc-site-nav{display:none}
body.chess-console.cc-owner #game.game-focus .cc-site-nav{display:none!important}
@media (min-width:801px){
  body.chess-console.cc-owner #game:not(.game-focus){
    --cc-panel:clamp(372px,29vw,440px);
    --cc-board:max(240px,min(calc(100vh - 56px),calc(100vw - var(--cc-panel) - 56px)))
  }
  body.chess-console.cc-owner #game:not(.game-focus)>.boardarea{
    display:grid!important;box-sizing:border-box!important;
    grid-template-columns:minmax(0,var(--cc-board)) var(--cc-panel)!important;
    grid-template-rows:28px minmax(0,1fr)!important;
    justify-content:center!important;align-content:stretch!important;
    column-gap:22px!important;row-gap:8px!important;
    width:100%!important;height:100%!important;padding:6px 17px 14px!important
  }
  body.chess-console.cc-owner #game.console-hide-dock:not(.game-focus)>.boardarea{
    grid-template-columns:minmax(0,min(calc(100vh - 56px),calc(100vw - 34px)))!important
  }
  body.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.cc-site-nav{
    display:flex;grid-column:1;grid-row:1;align-self:center;align-items:center;
    gap:clamp(14px,2.2vw,34px);min-width:0;overflow:hidden;white-space:nowrap
  }
  body.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.arena{
    grid-column:1!important;grid-row:2!important;width:100%!important;height:100%!important;
    min-width:0!important;min-height:0!important
  }
  body.chess-console.cc-owner #game:not(.game-focus) .boardframe{margin:0 auto!important}
  body.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.side-dock{
    grid-column:2!important;grid-row:2!important;width:100%!important;height:100%!important;
    max-height:100%!important;min-height:0!important;margin:0!important;
    overflow-x:hidden!important;overflow-y:auto!important;align-self:stretch!important
  }
  body.chess-console.cc-owner #game:not(.game-focus) .side-dock>#match-panel{
    flex:1 1 0!important;height:auto!important;min-height:250px!important;max-height:none!important
  }
}
body.chess-console.cc-owner .cc-site-nav a{
  color:#f3ead3;text-decoration:none;font:600 15px/1.2 system-ui,-apple-system,'Segoe UI',sans-serif;
  padding:4px 0;border-bottom:2px solid transparent
}
body.chess-console.cc-owner .cc-site-nav a:hover{border-bottom-color:#e8c46b;color:#fff}
body.chess-console.cc-owner .cc-site-nav a:focus-visible{outline:2px solid #e8c46b;outline-offset:3px;border-radius:2px}
@media (max-width:800px){
  body.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.chess-mobile-heading{order:0!important}
  body.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.arena{order:3!important}
  body.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.side-dock{
    order:4!important;align-self:stretch!important;width:auto!important;max-width:none!important;
    height:auto!important;max-height:none!important;margin:10px 8px 16px!important;overflow:visible!important
  }
  body.chess-console.cc-owner #game:not(.game-focus) .side-dock>#match-panel{
    flex:0 0 340px!important;height:340px!important;min-height:340px!important;max-height:340px!important
  }
}
/* ---- one coherent panel ---- */
body.chess-console.cc-owner #game:not(.game-focus):not(.console-hide-dock)>.boardarea>.side-dock{
  display:flex!important;flex-direction:column!important;gap:10px!important;
  box-sizing:border-box!important;padding:14px!important;position:relative!important;
  background:var(--cc-bg)!important;color:var(--cc-ink)!important;border:0!important;
  border-radius:18px!important;box-shadow:0 10px 28px var(--cc-shadow)!important;scrollbar-width:thin
}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock>.cc-top{order:0}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock>.sidebar{order:1!important}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock>.chess-reference-actions{order:2!important}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock>.chess-owner-claim-draw{order:3!important}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock>#game-state{order:3!important}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock>#match-panel{order:4!important}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock>.cc-tools{order:5}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock :focus-visible{outline:2px solid var(--cc-focus)!important;outline-offset:2px!important}
/* Top row: Czarne | Białe clocks, envelope with live badge, profile. */
body.chess-console.cc-owner #game .side-dock>.cc-top{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;
  flex:0 0 auto;min-height:58px
}
body.chess-console.cc-owner #game:not(.game-focus) .cc-top>.players{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:auto!important;
  align-items:center!important;gap:0!important;position:static!important;order:0!important;
  width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;background:transparent!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;overflow:visible!important
}
body.chess-console.cc-owner #game.console-hide-players:not(.game-focus) .cc-top>.players{display:none!important}
body.chess-console.cc-owner #game:not(.game-focus) .cc-top .players>.versus,
body.chess-console.cc-owner #game:not(.game-focus) .cc-top .player>.stone,
body.chess-console.cc-owner #game:not(.game-focus) .cc-top .player>.player-icon,
body.chess-console.cc-owner #game:not(.game-focus) .cc-top .player small{display:none!important}
body.chess-console.cc-owner #game:not(.game-focus) .cc-top .players>.player{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:3px!important;min-width:0!important;width:auto!important;height:auto!important;min-height:54px!important;
  max-height:none!important;margin:0!important;padding:2px 6px!important;background:transparent!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;color:var(--cc-ink)!important
}
body.chess-console.cc-owner #game:not(.game-focus) .cc-top .players>.player.second{border-left:1px solid var(--cc-line)!important}
body.chess-console.cc-owner #game:not(.game-focus) .cc-top .player>div{
  display:block!important;min-width:0!important;max-width:100%!important;width:auto!important;
  margin:0!important;padding:0!important;text-align:center!important
}
body.chess-console.cc-owner #game:not(.game-focus) .cc-top .player strong{
  display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;
  white-space:nowrap!important;color:var(--cc-ink)!important;text-shadow:none!important;
  font:600 13px/1.2 system-ui,-apple-system,'Segoe UI',sans-serif!important
}
body.chess-console.cc-owner #game:not(.game-focus) .cc-top .player>div>strong:not(#cc-none){
  position:absolute!important;display:block!important;width:1px!important;height:1px!important;margin:-1px!important;
  padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;
  white-space:nowrap!important
}
body.chess-console.cc-owner #game:not(.game-focus) .cc-top .player>div{position:relative!important}
body.chess-console.cc-owner .cc-side{
  display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--cc-ink);
  font:600 14px/1.2 system-ui,-apple-system,'Segoe UI',sans-serif
}
body.chess-console.cc-owner #game.game-focus .cc-side{display:none!important}
body.chess-console.cc-owner #game:not(.game-focus) .cc-top .player-clock{
  display:block!important;position:static!important;box-sizing:border-box!important;
  width:3.3em!important;min-width:3.3em!important;max-width:100%!important;height:auto!important;min-height:0!important;
  margin:0!important;padding:0 4px 2px!important;background:transparent!important;border:0!important;
  border-radius:4px!important;box-shadow:none!important;color:var(--cc-ink)!important;text-shadow:none!important;
  font:800 clamp(23px,2vw,30px)/1.05 system-ui,-apple-system,'Segoe UI',sans-serif!important;
  font-variant-numeric:tabular-nums!important;letter-spacing:0!important;text-align:center!important
}
body.chess-console.cc-owner #game:not(.game-focus) .cc-top .player-clock.clock-running{
  color:var(--cc-accent)!important;box-shadow:inset 0 -3px 0 var(--cc-accent)!important
}
body.chess-console.cc-owner[data-cc-theme="dark"] #game:not(.game-focus) .cc-top .player-clock.clock-running{color:#7fd6cf!important}
body.chess-console.cc-owner #game:not(.game-focus) .cc-top .player-clock.clock-warning{color:#b25f00!important}
body.chess-console.cc-owner #game:not(.game-focus) .cc-top .player-clock.clock-critical{color:#c4232d!important}
body.chess-console.cc-owner .cc-account{display:flex;align-items:center;gap:2px}
body.chess-console.cc-owner #game.game-focus .cc-account{display:none!important}
body.chess-console.cc-owner .cc-icon-link{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:10px;color:var(--cc-ink);text-decoration:none
}
body.chess-console.cc-owner .cc-icon-link:hover{background:var(--cc-soft)}
body.chess-console.cc-owner .cc-icon-link svg{width:30px;height:30px}
body.chess-console.cc-owner .cc-mail-badge{
  position:absolute;top:0;right:-1px;box-sizing:border-box;min-width:20px;height:20px;padding:0 5px;
  border-radius:999px;border:2px solid var(--cc-bg);background:var(--cc-badge);color:#fff;
  font:750 11px/16px system-ui,-apple-system,'Segoe UI',sans-serif;text-align:center;pointer-events:none
}
body.chess-console.cc-owner .cc-mail-badge[hidden]{display:none!important}
/* Mode switch: Komputer | Online, the active choice filled with the accent. */
body.chess-console.cc-owner #game:not(.game-focus):not(.console-hide-sidebar) .side-dock>.sidebar{
  display:block!important;flex:0 0 auto!important;position:static!important;width:auto!important;
  height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important
}
/* :not(#cc-none) lifts specificity above the older :has(#online-mode.active) rules. */
body.chess-console.cc-owner #game:not(.game-focus) .side-dock>.sidebar>:not(.mode):not(#cc-none){display:none!important}
body.chess-console.cc-owner #game:not(.game-focus):not(.console-hide-mode) .side-dock .mode{
  display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important;
  width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:4px!important;
  border:1px solid var(--cc-line)!important;border-radius:14px!important;background:var(--cc-soft)!important;
  box-shadow:none!important;overflow:visible!important
}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock .mode-choice{
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;
  gap:9px!important;box-sizing:border-box!important;width:auto!important;height:48px!important;min-height:48px!important;
  margin:0!important;padding:0 10px!important;border:0!important;border-radius:10px!important;
  background:transparent!important;color:var(--cc-ink)!important;box-shadow:none!important;cursor:pointer;
  font:700 16px/1 system-ui,-apple-system,'Segoe UI',sans-serif!important
}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock .mode-choice:hover:not(.active){background:var(--cc-surface)!important}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock .mode-choice.active{background:var(--cc-accent)!important;color:var(--cc-on-accent)!important}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock .mode-choice :is(.mode-icon,.mode-arrow,small){display:none!important}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock .mode-choice>span:not([class]){display:inline!important;padding:0!important;margin:0!important}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock .mode-choice strong{color:inherit!important;font:inherit!important;text-shadow:none!important}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock .mode-choice .chess-mobile-mode-symbol{
  display:inline-flex!important;flex:0 0 24px!important;width:24px!important;height:24px!important;align-items:center!important;justify-content:center!important
}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock .mode-choice .chess-mobile-mode-symbol svg{display:block!important;width:24px!important;height:24px!important;fill:none!important}
/* Four equal actions in the same fixed-width dock. */
body.chess-console.cc-owner #game:not(.game-focus) .side-dock>.chess-reference-actions{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;
  flex:0 0 auto!important;margin:0!important;padding:0!important
}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock>.chess-reference-actions>button{
  position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:5px!important;box-sizing:border-box!important;width:auto!important;min-width:0!important;
  height:auto!important;min-height:62px!important;margin:0!important;padding:6px 4px!important;border:0!important;
  border-radius:10px!important;background:transparent!important;color:var(--cc-ink)!important;box-shadow:none!important;
  cursor:pointer;font:650 clamp(11px,.95vw,14px)/1.15 system-ui,-apple-system,'Segoe UI',sans-serif!important;text-shadow:none!important
}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock>.chess-reference-actions>button[hidden]{display:none!important}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock>.chess-reference-actions>button:not([hidden])~button:not([hidden])::before{
  content:'';position:absolute;left:0;top:14px;bottom:14px;border-left:1px solid var(--cc-line)
}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock>.chess-reference-actions>button:hover:not(:disabled){background:var(--cc-soft)!important}
body.chess-console.cc-owner #game:not(.game-focus) .side-dock>.chess-reference-actions>button:disabled{opacity:.42!important;cursor:not-allowed!important}
body.chess-console.cc-owner .cc-action-icon{width:26px;height:26px;flex:none}
body.chess-console.cc-owner #game .chess-reference-actions .cc-action-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:inherit!important;color:inherit!important}

body.chess-console .chess-undo-overlay[hidden]{display:none!important}
body.chess-console .chess-undo-overlay{position:fixed;inset:0;z-index:10055;display:grid;place-items:center;padding:15px;background:rgba(0,17,21,.74)}
body.chess-console .chess-undo-card{box-sizing:border-box;width:min(420px,100%);border-radius:18px;border:1px solid #d4be91;background:#fbf6e6;color:#00363c;padding:26px 24px;box-shadow:0 14px 50px #001c2050;text-align:center;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
body.chess-console .chess-undo-card h2{font-size:21px;margin:0 0 12px}
body.chess-console .chess-undo-card p{font-size:15px;line-height:1.5;margin:0 0 22px}
body.chess-console .chess-undo-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body.chess-console .chess-undo-choices button{min-height:44px;border-radius:10px;border:1px solid #0a6267;background:#006b6f;color:white;font-weight:700;cursor:pointer}
body.chess-console .chess-undo-choices .chess-undo-reject{background:transparent;color:#00363c}
body.chess-console .chess-undo-choices button:disabled{opacity:.55;cursor:wait}
/* Tabs Czat | Ruchy | Info and the shared content area (same height for every tab). */
body.chess-console.cc-owner #game:not(.game-focus) .side-dock>#match-panel{
  display:flex!important;flex-direction:column!important;gap:8px!important;position:relative!important;
  box-sizing:border-box!important;margin:0!important;padding:0!important;overflow:hidden!important;
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important
}
body.chess-console.cc-owner #game:not(.game-focus) #match-panel>.dock-header{display:none!important}
body.chess-console.cc-owner #game:not(.game-focus) #match-panel>.dock-tabs{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;
  flex:0 0 auto!important;box-sizing:border-box!important;height:auto!important;min-height:48px!important;max-height:none!important;
  margin:0!important;padding:0!important;border:1px solid var(--cc-line)!important;
  border-radius:12px!important;overflow:hidden!important;background:var(--cc-surface)!important;box-shadow:none!important
}
body.chess-console.cc-owner #game:not(.game-focus) #match-panel .dock-tab{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  box-sizing:border-box!important;width:auto!important;min-width:0!important;height:46px!important;min-height:46px!important;
  margin:0!important;padding:0 8px!important;border:0!important;border-radius:0!important;background:transparent!important;
  color:var(--cc-ink)!important;box-shadow:none!important;cursor:pointer;text-shadow:none!important;
  font:700 16px/1 system-ui,-apple-system,'Segoe UI',sans-serif!important
}
body.chess-console.cc-owner #game:not(.game-focus) #match-panel .dock-tab+.dock-tab{border-left:1px solid var(--cc-line)!important}
body.chess-console.cc-owner #game:not(.game-focus) #match-panel .dock-tab:hover:not(.active){background:var(--cc-soft)!important}
body.chess-console.cc-owner #game:not(.game-focus) #match-panel .dock-tab.active{background:var(--cc-accent)!important;color:var(--cc-on-accent)!important}
body.chess-console.cc-owner #game:not(.game-focus) #match-panel .dock-tab :is(.dock-tab-icon,.chat-led){display:none!important}
body.chess-console.cc-owner #game:not(.game-focus) #match-panel .dock-tab .dock-tab-text{display:inline!important;color:inherit!important;font:inherit!important}
body.chess-console.cc-owner .cc-tab-icon{width:21px;height:21px;flex:none}
body.chess-console.cc-owner #game:not(.game-focus) #match-panel>.replay-shortcut{display:none!important}
body.chess-console.cc-owner #game:not(.game-focus) #match-panel>.dock-content:not([hidden]),
body.chess-console.cc-owner #game:not(.game-focus) #match-panel>#chess-final-info-panel:not([hidden]){
  flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;
  margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important
}
body.chess-console.cc-owner #game:not(.game-focus) #chat-panel>.dock-title,
body.chess-console.cc-owner #game:not(.game-focus) #moves-panel>.dock-title{display:none!important}
body.chess-console.cc-owner #game:not(.game-focus) #chat-panel:not([hidden]){display:flex!important;flex-direction:column!important}
body.chess-console.cc-owner #game:not(.game-focus):not(.console-hide-chat-history) #chat-messages{
  flex:1 1 0!important;min-height:0!important;max-height:none!important;overflow:auto!important;
  background:transparent!important;border:0!important;padding:4px 2px!important
}
body.chess-console.cc-owner #game:not(.game-focus) #chat-messages:has(>.dock-empty:only-child){
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important
}
body.chess-console.cc-owner #game:not(.game-focus) #chat-messages>.dock-empty{
  margin:0!important;padding:0 12px 18px!important;text-align:center!important;color:var(--cc-muted)!important;
  font:500 15px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif!important;background:transparent!important
}
body.chess-console.cc-owner #game:not(.game-focus) #chat-messages>.dock-empty::before{
  content:'';display:block;width:46px;height:34px;margin:0 auto 14px;box-sizing:border-box;
  border:2.5px solid var(--cc-muted);border-radius:20px 20px 20px 5px;opacity:.75
}
body.chess-console.cc-owner #game:not(.game-focus):not(.console-hide-chat-input) #match-panel:not(.moves-only)>.mini-chat{
  display:block!important;flex:0 0 auto!important;margin:0!important;padding:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important
}
body.chess-console.cc-owner #game:not(.game-focus) .mini-chat>.chat-preview,
body.chess-console.cc-owner #game:not(.game-focus) .mini-chat>.chat-footnote{display:none!important}
body.chess-console.cc-owner #game:not(.game-focus) .mini-chat .chat-form{margin:0!important;padding:0!important;background:transparent!important;border:0!important}
body.chess-console.cc-owner #game:not(.game-focus) .mini-chat .chat-compose{
  display:flex!important;align-items:stretch!important;gap:8px!important;margin:0!important;padding:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important
}
body.chess-console.cc-owner #game:not(.game-focus) #chat-input{
  flex:1 1 auto!important;box-sizing:border-box!important;width:auto!important;min-width:0!important;height:48px!important;
  margin:0!important;padding:0 14px!important;border:1px solid var(--cc-line)!important;border-radius:12px!important;
  background:var(--cc-surface)!important;color:var(--cc-ink)!important;box-shadow:none!important;
  font:500 15px/1.2 system-ui,-apple-system,'Segoe UI',sans-serif!important
}
body.chess-console.cc-owner #game:not(.game-focus) #chat-input::placeholder{color:var(--cc-muted)!important;opacity:1}
body.chess-console.cc-owner #game:not(.game-focus) #chat-send{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 54px!important;width:54px!important;min-width:54px!important;height:48px!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:12px!important;background:var(--cc-accent)!important;color:var(--cc-on-accent)!important;
  box-shadow:none!important;cursor:pointer
}
body.chess-console.cc-owner #game:not(.game-focus) #chat-send:hover:not(:disabled){background:var(--cc-accent-hover)!important}
body.chess-console.cc-owner #game:not(.game-focus) :is(#chat-send,#chat-input):disabled{opacity:.55!important;cursor:not-allowed!important}
body.chess-console.cc-owner #chat-send svg{width:24px;height:24px}
/* Info: real data about the current game and rules links only. */
body.chess-console.cc-owner #game:not(.game-focus) #chess-final-info-panel{
  overflow:auto!important;padding:6px 4px!important;color:var(--cc-ink)!important;
  font:500 14px/1.45 system-ui,-apple-system,'Segoe UI',sans-serif!important
}
body.chess-console.cc-owner .cc-info-heading{margin:0 0 8px;font:750 13px/1.2 system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:.04em;text-transform:uppercase;color:var(--cc-muted)}
body.chess-console.cc-owner .cc-info-list{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px 14px;margin:0 0 16px}
body.chess-console.cc-owner .cc-info-list dt{color:var(--cc-muted);font-weight:600}
body.chess-console.cc-owner .cc-info-list dd{margin:0;color:var(--cc-ink);font-weight:650;overflow-wrap:anywhere}
body.chess-console.cc-owner .cc-info-links{display:grid;gap:6px;margin:0;padding:0;list-style:none}
body.chess-console.cc-owner #game #chess-final-info-panel .cc-info-links :is(a,button){
  display:inline;padding:0;margin:0;border:0;background:none;box-shadow:none;cursor:pointer;text-align:left;
  color:var(--cc-accent)!important;text-decoration:underline;text-underline-offset:2px;font:650 14px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif
}
body.chess-console.cc-owner[data-cc-theme="dark"] #game #chess-final-info-panel .cc-info-links :is(a,button){color:#8fdcd5!important}
/* Five configuration icons under the conversation. */
body.chess-console.cc-owner #game.game-focus .cc-tools{display:none!important}
body.chess-console.cc-owner #game .side-dock>.cc-tools{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;flex:0 0 auto;
  margin:0;padding:10px 0 0;border-top:1px solid var(--cc-line)
}
body.chess-console.cc-owner #game .cc-tool{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;min-width:0;min-height:60px;
  margin:0;padding:6px 2px;border:0;container-type:inline-size;border-radius:10px;background:transparent;color:var(--cc-ink);box-shadow:none;cursor:pointer;
  font:600 12px/1.15 system-ui,-apple-system,'Segoe UI',sans-serif;text-align:center
}
@media (min-width:1300px){body.chess-console.cc-owner #game .cc-tool{font-size:13px}}
body.chess-console.cc-owner #game .cc-tool svg{width:28px;height:28px;flex:none}
body.chess-console.cc-owner #game .cc-tool:hover{background:var(--cc-soft)}
body.chess-console.cc-owner #game .cc-tool:is([aria-expanded="true"],[aria-pressed="true"]){
  background:var(--cc-soft);color:var(--cc-accent);box-shadow:inset 0 -3px 0 var(--cc-accent)
}
body.chess-console.cc-owner[data-cc-theme="dark"] #game .cc-tool:is([aria-expanded="true"],[aria-pressed="true"]){color:#8fdcd5}
/* Label size follows the button width (cqi): with any system font (Inter, Segoe UI, DejaVu Sans)
   "Ustawienia" fits its fifth of the row; only "Pełny ekran" may wrap, top-aligned like the rest. */
body.chess-console.cc-owner #game .cc-tool .cc-tool-label{
  display:block;max-width:100%;overflow-wrap:normal;word-break:normal;hyphens:none;white-space:normal;
  font-weight:500;font-size:clamp(10px,17cqi,13px);line-height:1.15;letter-spacing:0
}
/* In-panel sheets (settings, board, pieces, theme, online games): cover only the content area. */
body.chess-console.cc-owner #game .cc-sheet{
  position:absolute;inset:0;z-index:30;display:flex;flex-direction:column;box-sizing:border-box;
  background:var(--cc-bg);color:var(--cc-ink);border:1px solid var(--cc-line);border-radius:14px;
  box-shadow:0 8px 22px #00262a24;overflow:hidden
}
body.chess-console.cc-owner #game .cc-sheet[hidden]{display:none!important}
body.chess-console.cc-owner #game .cc-sheet-head{
  display:flex;align-items:center;justify-content:space-between;gap:8px;flex:0 0 auto;
  padding:8px 8px 8px 14px;border-bottom:1px solid var(--cc-line);background:var(--cc-surface)
}
body.chess-console.cc-owner #game .cc-sheet-title{margin:0;color:var(--cc-ink);font:750 16px/1.2 system-ui,-apple-system,'Segoe UI',sans-serif;text-shadow:none}
body.chess-console.cc-owner #game .cc-sheet-close{
  display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;margin:0;padding:0;
  border:0;border-radius:10px;background:transparent;color:var(--cc-ink);box-shadow:none;cursor:pointer
}
body.chess-console.cc-owner #game .cc-sheet-close:hover{background:var(--cc-soft)}
body.chess-console.cc-owner #game .cc-sheet-close svg{width:22px;height:22px}
body.chess-console.cc-owner #game .cc-sheet-body{
  display:flex;flex-direction:column;gap:12px;flex:1 1 auto;min-height:0;overflow:auto;
  padding:12px 14px 14px;scrollbar-width:thin
}
body.chess-console.cc-owner #game .cc-sheet-body>*{flex-shrink:0!important}
body.chess-console.cc-owner #game .cc-note{margin:0;color:var(--cc-muted);font:500 13px/1.45 system-ui,-apple-system,'Segoe UI',sans-serif}
body.chess-console.cc-owner #game .cc-sheet-status:empty{display:none}
body.chess-console.cc-owner #game .cc-group{display:grid;gap:8px;margin:0;padding:0;border:0;min-width:0}
body.chess-console.cc-owner #game .cc-group[hidden]{display:none!important}
body.chess-console.cc-owner #game .cc-group>legend,body.chess-console.cc-owner #game .cc-group-title{
  margin:0 0 2px;padding:0;color:var(--cc-muted);font:750 12px/1.2 system-ui,-apple-system,'Segoe UI',sans-serif;
  letter-spacing:.05em;text-transform:uppercase
}
body.chess-console.cc-owner #game .cc-option{
  display:flex;align-items:center;gap:12px;box-sizing:border-box;min-height:52px;margin:0;padding:8px 12px;
  border:1px solid var(--cc-line);border-radius:12px;background:var(--cc-surface);color:var(--cc-ink);cursor:pointer;
  font:650 14px/1.25 system-ui,-apple-system,'Segoe UI',sans-serif
}
body.chess-console.cc-owner #game .cc-option:has(input:checked){border-color:var(--cc-accent);box-shadow:inset 0 0 0 1px var(--cc-accent)}
body.chess-console.cc-owner #game .side-dock .cc-option input{flex:none!important;width:18px!important;height:18px!important;margin:0!important;padding:0!important;appearance:auto!important;accent-color:var(--cc-accent)!important;box-shadow:none!important}
body.chess-console.cc-owner #game .cc-option-text{display:grid;gap:2px;min-width:0}
body.chess-console.cc-owner #game .cc-option-text small{color:var(--cc-muted);font:500 12px/1.3 system-ui,-apple-system,'Segoe UI',sans-serif}
body.chess-console.cc-owner #game .cc-swatch{display:grid;grid-template-columns:repeat(2,15px);grid-template-rows:repeat(2,15px);flex:none;margin-left:auto;border-radius:3px;overflow:hidden;box-shadow:0 0 0 1px #00000026}
body.chess-console.cc-owner #game .cc-swatch>i:nth-child(1),body.chess-console.cc-owner #game .cc-swatch>i:nth-child(4){background:var(--sw-l)}
body.chess-console.cc-owner #game .cc-swatch>i:nth-child(2),body.chess-console.cc-owner #game .cc-swatch>i:nth-child(3){background:var(--sw-d)}
body.chess-console.cc-owner #game .cc-swatch[data-variant="original"]{--sw-l:#e3d8bd;--sw-d:#479b99}
body.chess-console.cc-owner #game .cc-swatch[data-variant="walnut"]{--sw-l:#ecd8b6;--sw-d:#a77a52}
body.chess-console.cc-owner #game .cc-swatch[data-variant="slate"]{--sw-l:#dfe3e1;--sw-d:#6b7b80}
body.chess-console.cc-owner #game .cc-swatch[data-variant="azure"]{--sw-l:#e2eaee;--sw-d:#6a95ae}
body.chess-console.cc-owner #game .cc-swatch[data-variant="light"]{--sw-l:#faf3e1;--sw-d:#006b6a}
body.chess-console.cc-owner #game .cc-swatch[data-variant="dark"]{--sw-l:#0f2a2d;--sw-d:#1c7a75}
body.chess-console.cc-owner #game .cc-preview{display:flex;gap:2px;flex:none;margin-left:auto;padding:2px 4px;border-radius:8px;background:#e3d8bd}
body.chess-console.cc-owner #game .cc-preview .chess-piece{display:block;width:34px;height:34px}
body.chess-console.cc-owner #game .cc-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body.chess-console.cc-owner #game .side-dock .cc-button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  box-sizing:border-box!important;width:auto!important;min-height:40px!important;height:auto!important;margin:0!important;
  padding:8px 12px!important;border:1px solid var(--cc-line)!important;border-radius:10px!important;
  background:var(--cc-surface)!important;color:var(--cc-ink)!important;box-shadow:none!important;cursor:pointer;
  text-align:center!important;text-shadow:none!important;font:650 13px/1.2 system-ui,-apple-system,'Segoe UI',sans-serif!important
}
body.chess-console.cc-owner #game .side-dock .cc-button:hover{background:var(--cc-soft)!important}
body.chess-console.cc-owner #game .side-dock .cc-button[aria-pressed="true"]{border-color:var(--cc-accent)!important;box-shadow:inset 0 0 0 1px var(--cc-accent)!important;color:var(--cc-accent)!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game .side-dock .cc-button[aria-pressed="true"]{color:#8fdcd5!important}
body.chess-console.cc-owner #game .cc-reset{margin-top:auto;align-self:flex-start}
/* Existing computer-game settings inside the Ustawienia sheet. */
body.chess-console.cc-owner #game #cc-sheet-settings #training-settings{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:none!important;grid-auto-flow:row!important;gap:12px!important;position:static!important;width:auto!important;height:auto!important;
  min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;
  background:transparent!important;border:0!important;box-shadow:none!important
}
body.chess-console.cc-owner #game #cc-sheet-settings #training-settings[hidden],
body.chess-console.cc-owner #game #cc-sheet-settings [hidden]{display:none!important}
body.chess-console.cc-owner #game #cc-sheet-settings #training-settings>:is(h2,details,.chess-claim-draw){display:none!important}
body.chess-console.cc-owner #game #cc-sheet-settings :is(.chess-owner-options,.chess-opponent-row,.chess-owner-level,.chess-time-row,.cc-bonus-row){
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:5px!important;position:static!important;
  width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important
}
body.chess-console.cc-owner #game #cc-sheet-settings .chess-owner-options{gap:12px!important}
body.chess-console.cc-owner #game #cc-sheet-settings #training-settings *{grid-column:auto!important;grid-row:auto!important;max-width:100%!important;min-width:0!important}
body.chess-console.cc-owner #game #cc-sheet-settings label{
  display:block!important;position:static!important;width:auto!important;height:auto!important;margin:0!important;
  clip:auto!important;clip-path:none!important;overflow:visible!important;color:var(--cc-ink)!important;
  text-shadow:none!important;font:700 13px/1.25 system-ui,-apple-system,'Segoe UI',sans-serif!important
}
body.chess-console.cc-owner #game #cc-sheet-settings select{
  display:block!important;position:static!important;box-sizing:border-box!important;width:100%!important;height:42px!important;
  min-height:42px!important;margin:0!important;padding:0 10px!important;clip:auto!important;clip-path:none!important;
  border:1px solid var(--cc-line)!important;border-radius:10px!important;background:var(--cc-surface)!important;
  color:var(--cc-ink)!important;box-shadow:none!important;opacity:1!important;
  font:600 14px/1.2 system-ui,-apple-system,'Segoe UI',sans-serif!important
}
/* Online games sheet: the existing accepted-game list and invitation clock settings. */
body.chess-console.cc-owner #game #cc-sheet-online #online-settings:not([hidden]){
  display:block!important;position:static!important;width:auto!important;height:auto!important;min-height:0!important;
  max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;
  background:transparent!important;border:0!important;box-shadow:none!important
}
body.chess-console.cc-owner #game #cc-sheet-online .chess-final-grid{grid-template-columns:minmax(0,1fr)!important}
body.chess-console.cc-owner #game #cc-sheet-online :is(label[for="create-room-friend"],#create-room-friend){display:none!important}
/* Panel theme: dark variant for the right panel only (board colours untouched). */
body.chess-console.cc-owner[data-cc-theme="dark"] #game #moves-panel .chess-move-row{color:var(--cc-ink)!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game #moves-panel .chess-history-turn:nth-child(even){background:#163a3d!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game #moves-panel .chess-history-turn{border-bottom-color:var(--cc-line)!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game #moves-panel .chess-history-number{color:var(--cc-muted)!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game #moves-panel .chess-move-row.chess-history-selected{background:#3d5a3a!important;color:#fff!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game #moves-panel .chess-move-row:hover:not(:disabled){background:#21494d!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game #moves-panel .chess-history-nav{background:#163538!important;border-top-color:var(--cc-line)!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game #moves-panel .chess-history-action{background:#21474b!important;color:var(--cc-ink)!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game #moves-panel .chess-history-action.chess-history-live{background:var(--cc-accent)!important;color:#fff!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game #moves-panel :is(.chess-history-nav-status,#moves-list,.history-footer){color:var(--cc-muted)!important;background:transparent!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game .side-dock #online-settings :is(h2,h3,p,small,label,legend,span,strong,summary){color:var(--cc-ink)!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game .side-dock :is(.chess-final-room-card,.chess-final-create-card){background:var(--cc-surface)!important;border-color:var(--cc-line)!important;color:var(--cc-ink)!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game .side-dock .chess-final-card-title{background:var(--cc-soft)!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game .side-dock :is(.chess-final-card-title h2,.chess-final-card-title h3,.chess-final-room-name,.chess-final-refresh){color:var(--cc-ink)!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game .side-dock .chess-final-times button{background:var(--cc-soft)!important;color:var(--cc-ink)!important;border-color:var(--cc-line)!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game .side-dock .chess-final-times button[aria-pressed="true"]{background:var(--cc-accent)!important;color:#fff!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game .side-dock :is(#create-room-increment,#chess-final-room-list a,.chess-final-room-card>.textlink){color:var(--cc-ink)!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game .side-dock #create-room-increment{background:var(--cc-surface)!important;border-color:var(--cc-line)!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game .side-dock #game-state:has(.chess-promote){background:var(--cc-soft)!important;color:var(--cc-ink)!important}
body.chess-console.cc-owner[data-cc-theme="dark"] #game .side-dock .chess-owner-claim-draw{background:var(--cc-accent)!important;color:#fff!important}
/* Board appearance (only after an explicit choice; default = the original board). */
body.chess-console[data-cc-board="walnut"]{--ccb-l:#ecd8b6;--ccb-d:#a77a52;--ccb-ls:#e4c78a;--ccb-ds:#c2965f;--ccb-lh:#e5cfa2;--ccb-dh:#b98a5e;--ccb-lc:#7a5230;--ccb-dc:#fbf0dd}
body.chess-console[data-cc-board="slate"]{--ccb-l:#dfe3e1;--ccb-d:#6b7b80;--ccb-ls:#cdd9cb;--ccb-ds:#86a19a;--ccb-lh:#d2dad6;--ccb-dh:#7d9094;--ccb-lc:#3c4f56;--ccb-dc:#f1f5f3}
body.chess-console[data-cc-board="azure"]{--ccb-l:#e2eaee;--ccb-d:#6a95ae;--ccb-ls:#cfe0d5;--ccb-ds:#86b0b9;--ccb-lh:#d4e1e7;--ccb-dh:#7ea6bc;--ccb-lc:#2f5a72;--ccb-dc:#f2f8fb}
body.chess-console[data-cc-board] #board .chess-square.light{background-color:var(--ccb-l)!important}
body.chess-console[data-cc-board] #board .chess-square.dark{background-color:var(--ccb-d)!important}
body.chess-console[data-cc-board] #board .chess-square.light.chess-selected{background-color:var(--ccb-ls)!important}
body.chess-console[data-cc-board] #board .chess-square.dark.chess-selected{background-color:var(--ccb-ds)!important}
body.chess-console[data-cc-board] #board .chess-square.light:is(.chess-target:hover,.chess-drop-hover){background-color:var(--ccb-lh)!important}
body.chess-console[data-cc-board] #board .chess-square.dark:is(.chess-target:hover,.chess-drop-hover){background-color:var(--ccb-dh)!important}
body.chess-console[data-cc-board] #board .chess-square.light .chess-coordinate{color:var(--ccb-lc)!important}
body.chess-console[data-cc-board] #board .chess-square.dark .chess-coordinate{color:var(--ccb-dc)!important}
/* Piece appearance: recolours the same original vectors (no external assets). */
body.chess-console[data-cc-pieces="flat"] .chess-piece[data-color="white"]:not(.cc-preview *)>path[data-body],
body.chess-console .cc-preview[data-variant="flat"] .chess-piece[data-color="white"]>path[data-body]{fill:#fbfaf6!important;stroke:#1d2b32!important}
body.chess-console[data-cc-pieces="flat"] .chess-piece[data-color="white"]:not(.cc-preview *)>path:nth-of-type(2),
body.chess-console .cc-preview[data-variant="flat"] .chess-piece[data-color="white"]>path:nth-of-type(2){stroke:#5f6f76!important}
body.chess-console[data-cc-pieces="flat"] .chess-piece[data-color="white"]:not(.cc-preview *)>path:nth-of-type(3),
body.chess-console .cc-preview[data-variant="flat"] .chess-piece[data-color="white"]>path:nth-of-type(3){stroke:#fbfaf6!important}
body.chess-console[data-cc-pieces="flat"] .chess-piece[data-color="black"]:not(.cc-preview *)>path[data-body],
body.chess-console .cc-preview[data-variant="flat"] .chess-piece[data-color="black"]>path[data-body]{fill:#1f2a31!important;stroke:#091217!important}
body.chess-console[data-cc-pieces="flat"] .chess-piece[data-color="black"]:not(.cc-preview *)>path:nth-of-type(2),
body.chess-console .cc-preview[data-variant="flat"] .chess-piece[data-color="black"]>path:nth-of-type(2){stroke:#8e9ea6!important}
body.chess-console[data-cc-pieces="flat"] .chess-piece[data-color="black"]:not(.cc-preview *)>path:nth-of-type(3),
body.chess-console .cc-preview[data-variant="flat"] .chess-piece[data-color="black"]>path:nth-of-type(3){stroke:#1f2a31!important}
body.chess-console[data-cc-pieces="wood"] .chess-piece[data-color="white"]:not(.cc-preview *)>path[data-body],
body.chess-console .cc-preview[data-variant="wood"] .chess-piece[data-color="white"]>path[data-body]{fill:#f1ddb7!important;stroke:#5b3c1f!important}
body.chess-console[data-cc-pieces="wood"] .chess-piece[data-color="white"]:not(.cc-preview *)>path:nth-of-type(2),
body.chess-console .cc-preview[data-variant="wood"] .chess-piece[data-color="white"]>path:nth-of-type(2){stroke:#a27a4f!important}
body.chess-console[data-cc-pieces="wood"] .chess-piece[data-color="white"]:not(.cc-preview *)>path:nth-of-type(3),
body.chess-console .cc-preview[data-variant="wood"] .chess-piece[data-color="white"]>path:nth-of-type(3){stroke:#fff6e4!important}
body.chess-console[data-cc-pieces="wood"] .chess-piece[data-color="black"]:not(.cc-preview *)>path[data-body],
body.chess-console .cc-preview[data-variant="wood"] .chess-piece[data-color="black"]>path[data-body]{fill:#5a3920!important;stroke:#21130a!important}
body.chess-console[data-cc-pieces="wood"] .chess-piece[data-color="black"]:not(.cc-preview *)>path:nth-of-type(2),
body.chess-console .cc-preview[data-variant="wood"] .chess-piece[data-color="black"]>path:nth-of-type(2){stroke:#a9845f!important}
body.chess-console[data-cc-pieces="wood"] .chess-piece[data-color="black"]:not(.cc-preview *)>path:nth-of-type(3),
body.chess-console .cc-preview[data-variant="wood"] .chess-piece[data-color="black"]>path:nth-of-type(3){stroke:#8c6545!important}
@media (max-width:800px){
  body.chess-console.cc-owner #game .cc-tool{min-height:58px}
  body.chess-console.cc-owner #game:not(.game-focus) .cc-top .player strong{font-size:12px!important}
  body.chess-console.cc-owner #game:not(.game-focus) .cc-top .players>.player{padding:2px 3px!important}
  body.chess-console.cc-owner .cc-account{gap:0}
  body.chess-console.cc-owner .cc-icon-link{width:40px}
  body.chess-console.cc-owner #game:not(.game-focus) .side-dock>.chess-reference-actions>button{font-size:14px!important}
}
@media (max-width:360px){
  body.chess-console.cc-owner #game:not(.game-focus) .cc-top .player strong{font-size:11px!important}
  body.chess-console.cc-owner #game .cc-tool{font-size:11px}
  body.chess-console.cc-owner .cc-icon-link{width:36px}
}
@media (prefers-reduced-motion:reduce){body.chess-console.cc-owner #game .cc-sheet{transition:none}}


/* Warcaby-specific board; all other chrome is the existing Gomoku Full Max Premium stylesheet. */
/* Remove the inherited decorative teal arc beneath the Warcaby board only. */
.warcaby-console .boardarea::before{content:none;display:none}
.warcaby-console #undo-move,.warcaby-console #analyze-position,.warcaby-console #game-settings,
.warcaby-console #remove-player,.warcaby-console #block-player,.warcaby-console #replay-game,
.warcaby-console #howto-modal,.warcaby-console #replay-modal{display:none!important}
.warcaby-console #online-settings:not([hidden]){display:block}
.warcaby-console #online-mode.active{border-color:#4fe5d9;box-shadow:0 0 15px #42d9d540}
.warcaby-console .board.checkers-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));background:#0c2630}
.warcaby-console .board.checkers-grid .square{position:relative;border:0;margin:0;padding:0;min-width:0;min-height:0;display:grid;place-items:center;cursor:pointer;touch-action:manipulation}
.warcaby-console .board.checkers-grid .square.light{background:#e9dfcc}
.warcaby-console .board.checkers-grid .square.dark{background:#3b8084}
.warcaby-console .board.checkers-grid .square.selected{box-shadow:inset 0 0 0 4px #ffc969}
.warcaby-console .board.checkers-grid .square.possible:before{content:"";width:25%;height:25%;background:#ffd06aaa;border-radius:50%;position:absolute}
.warcaby-console .board.checkers-grid .square:focus-visible{outline:3px solid #fff0ae;outline-offset:-3px;z-index:2}
/* Full Max Premium pieces: CSS bodies sized from the square (1em = 1/10 of the piece); kings add a vector gold medallion. */
.warcaby-console .checkers-piece-defs{position:absolute;width:0;height:0;overflow:hidden}
.warcaby-console .board.checkers-grid .square{container-type:inline-size}
.warcaby-console .board.checkers-grid .piece,.warcaby-console .checkers-drag-ghost{position:relative;isolation:isolate;display:grid;place-items:center;width:77%;height:77%;border-radius:50%;font-size:clamp(3px,.6vw,7.4px);font-size:7.7cqi}
.warcaby-console .board.checkers-grid .piece:before,.warcaby-console .checkers-drag-ghost:before,.warcaby-console .board.checkers-grid .piece:after,.warcaby-console .checkers-drag-ghost:after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.warcaby-console .board.checkers-grid .piece:before,.warcaby-console .checkers-drag-ghost:before{inset:7.5%}
.warcaby-console .board.checkers-grid .piece:after,.warcaby-console .checkers-drag-ghost:after{inset:25%}
.warcaby-console .board.checkers-grid .piece.white,.warcaby-console .checkers-drag-ghost.white{background:conic-gradient(from 210deg,#fff,#b7c3c5 16%,#f5f8f8 32%,#9caaad 50%,#eef2f2 66%,#a9b6b8 83%,#fff);box-shadow:inset 0 0 0 .045em #fffc,0 0 0 .05em #23434ab3,0 .2em 0 #8c9b9d,0 .2em 0 .05em #15303699,0 .42em .5em #00121a8c}
.warcaby-console .board.checkers-grid .piece.white:before,.warcaby-console .checkers-drag-ghost.white:before{background:radial-gradient(ellipse 58% 40% at 36% 24%,#fffffff0,#fff0 72%),conic-gradient(from 140deg,#fff8ee00,#eef4ff52,#fff6ea3d,#ecfaf552,#fff8ee00),radial-gradient(circle at 40% 32%,#fff 0,#fff 38%,#f5f7f7 70%,#e3e9e9);box-shadow:0 0 0 .04em #7b8c8fa6,inset 0 .1em .08em #fff,inset 0 -.18em .26em #6f828545}
.warcaby-console .board.checkers-grid .piece.white:after,.warcaby-console .checkers-drag-ghost.white:after{box-shadow:0 0 0 .055em #7f9093b3,0 .06em 0 .055em #fff,inset 0 .08em .12em #6d7f8238}
.warcaby-console .board.checkers-grid .piece.black,.warcaby-console .checkers-drag-ghost.black{background:conic-gradient(from 210deg,#a3afb5,#1f272c 15%,#6c7980 31%,#0b0f12 49%,#7f8c93 66%,#182024 83%,#a3afb5);box-shadow:inset 0 0 0 .045em #d3dde266,0 0 0 .05em #b5c4ca59,0 .2em 0 #040607,0 .2em 0 .05em #8ea0a838,0 .42em .5em #00080db3}
.warcaby-console .board.checkers-grid .piece.black:before,.warcaby-console .checkers-drag-ghost.black:before{background:radial-gradient(ellipse 56% 38% at 35% 24%,#b7c6cf4d,#b7c6cf00 72%),radial-gradient(circle at 40% 32%,#2a3135 0,#111518 34%,#050708 66%,#000);box-shadow:0 0 0 .04em #000000e6,inset 0 .1em .08em #ffffff24,inset 0 -.16em .22em #000000b3}
.warcaby-console .board.checkers-grid .piece.black:after,.warcaby-console .checkers-drag-ghost.black:after{box-shadow:0 0 0 .05em #000000d9,0 .06em 0 .055em #8fa0a873,inset 0 .07em .1em #00000070}
.warcaby-console .board.checkers-grid .piece.king:after,.warcaby-console .checkers-drag-ghost.king:after{content:none}
.warcaby-console .board.checkers-grid .piece .crown,.warcaby-console .checkers-drag-ghost .crown{position:relative;z-index:1;width:78%;height:78%;overflow:visible;color:#4f3205}
.warcaby-console .board.checkers-grid .piece.black .crown,.warcaby-console .checkers-drag-ghost.black .crown{color:#120c02}
.warcaby-console .board.checkers-grid.preview .square{cursor:default}
.warcaby-console .board.checkers-grid .square:disabled{opacity:1}
.warcaby-console .board-center{text-align:center}
.warcaby-console .layout.no-sidebar{grid-template-columns:minmax(0,1fr)}
.warcaby-console .boardarea.no-dock .arena{grid-template-columns:minmax(0,1fr)}
.warcaby-console #online-settings #room-select,.warcaby-console #online-settings #create-room-friend{width:100%}

/* Warcaby Full Max Premium — viewport-fitted three-column layout like Gomoku.
   Checkers-only; no changes to shared Gomoku styles, game state or server API. */
.warcaby-console #online-mode .mode-icon{flex:none}
@media (min-width:801px){
 .warcaby-console .layout:not(.game-focus){width:100%;max-width:none;height:100dvh;min-height:590px;grid-template-columns:clamp(285px,22vw,370px) minmax(0,1fr)}
 .warcaby-console .layout:not(.game-focus).console-hide-sidebar{grid-template-columns:minmax(0,1fr)}
 .warcaby-console .boardarea{grid-template-columns:minmax(0,1fr) clamp(285px,21.5vw,360px);grid-template-rows:60px 38px minmax(0,1fr) 47px;gap:8px 13px;padding:13px clamp(12px,1.25vw,22px);min-height:0}
 .warcaby-console .board-center{grid-column:1;grid-row:3;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0;overflow:visible}
 .warcaby-console .boardframe{box-sizing:border-box;display:block;flex:0 1 auto;width:min(100%,calc(100dvh - 188px),740px);height:auto;max-width:100%;max-height:100%;aspect-ratio:1;margin:auto;padding:clamp(7px,.9vw,12px)}
 .warcaby-console .board.checkers-grid{width:100%;height:100%;aspect-ratio:1}
 .warcaby-console .side-dock{margin:54px 0 0;padding:8px;max-height:calc(100% - 54px);align-self:stretch;justify-content:stretch}
 .warcaby-console .match-panel{min-height:0;flex:1 1 auto;max-height:none}
 .warcaby-console #game-state{overflow:hidden;line-height:1.2;font-size:clamp(11px,1vw,14px)}
 .warcaby-console .layout.console-hide-dock .boardarea{grid-template-columns:minmax(0,1fr)}
 .warcaby-console .layout.console-hide-dock .boardframe{width:min(100%,calc(100dvh - 188px),820px)}
 .warcaby-console .layout.game-focus .boardarea{grid-template-columns:minmax(0,1fr)}
 .warcaby-console .layout.game-focus .boardframe{width:auto;height:100%;aspect-ratio:1;margin:auto}
 .warcaby-console .layout.game-focus .board-center{grid-column:1;grid-row:3}
}
@media (min-width:801px) and (max-width:1200px){
 .warcaby-console .boardarea{grid-template-columns:minmax(0,1fr) clamp(245px,22vw,295px);column-gap:10px;padding:10px}
 .warcaby-console .boardframe{width:min(100%,calc(100dvh - 190px),650px)}
 .warcaby-console .side-dock{margin-top:50px;max-height:calc(100% - 50px)}
}
@media (min-width:801px) and (max-height:700px){
 .warcaby-console .boardarea{grid-template-rows:51px 34px minmax(0,1fr) 41px;row-gap:6px;padding-top:8px;padding-bottom:8px}
 .warcaby-console .boardframe{width:min(100%,calc(100dvh - 155px),590px)}
 .warcaby-console .side-dock{margin-top:43px;max-height:calc(100% - 43px)}
}
@media (max-width:800px){
 .warcaby-console .layout:not(.game-focus){height:auto;max-height:none;min-height:100dvh;overflow:visible}
 .warcaby-console .boardarea{display:flex;flex-direction:column;gap:10px;min-width:0}
 .warcaby-console .board-center{width:100%;min-width:0;display:flex;align-items:center;justify-content:center}
 .warcaby-console .boardframe{box-sizing:border-box;display:block;width:min(100%,580px);height:auto;max-width:100%;max-height:none;aspect-ratio:1;margin:0 auto}
 .warcaby-console .board.checkers-grid{aspect-ratio:1;width:100%;height:100%}
 .warcaby-console .side-dock{max-height:none}
}

/* Warcaby: the same mini-tool strip below chat as Gomoku, with Warcaby-specific actions. */
.warcaby-console .side-dock .game-tools.checkers-toolbar{
 display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(3px,.45vw,7px);
 align-items:stretch;flex:0 0 auto;width:100%;min-width:0;margin:0;padding:8px 1px 1px
}
.warcaby-console .side-dock .game-tools.checkers-toolbar>.tool-btn{
 display:grid;place-items:center;flex:none;width:100%;max-width:none;min-width:0;
 height:clamp(35px,3vw,43px);min-height:35px;padding:2px;border:1px solid #e7c16d;
 border-radius:10px;background:linear-gradient(145deg,#0d4b4a,#041d28 80%);color:#f2cc73;
 box-shadow:inset 0 1px 0 #fff3b04b,0 0 8px #e4b65240
}
.warcaby-console .side-dock .game-tools.checkers-toolbar>.tool-btn span{
 font-size:clamp(17px,1.55vw,23px);line-height:1
}
.warcaby-console .side-dock .game-tools.checkers-toolbar>.tool-btn:is(:hover,:focus-visible){
 border-color:#fff0b1;box-shadow:0 0 13px #f6ca7882;outline-offset:2px
}
/* The long "Zasady Warcaby" caption may wrap inside Gomoku's own tile height. */
.warcaby-console .sidebar .sidebar-footer>.side-links a{white-space:normal;line-height:1.1;text-align:center}
.warcaby-console #online-settings .actions button{white-space:normal;line-height:1.2}
/* Use the real available board row instead of a shrinking width limit. */
@media(min-width:801px){
 .warcaby-console .layout:not(.game-focus){
  grid-template-columns:clamp(280px,21vw,350px) minmax(0,1fr)
 }
 .warcaby-console .layout.console-hide-sidebar:not(.game-focus){
  grid-template-columns:minmax(0,1fr)
 }
 .warcaby-console .boardarea{
  grid-template-columns:minmax(0,1fr) clamp(275px,21vw,345px);
  column-gap:clamp(10px,1vw,16px)
 }
 .warcaby-console .board-center{
  display:grid;place-items:center;grid-column:1;grid-row:3;
  width:100%;height:100%;min-width:0;min-height:0
 }
 .warcaby-console .boardframe{
  box-sizing:border-box;display:block;flex:none;width:auto;height:100%;
  max-width:100%;max-height:100%;aspect-ratio:1;
  padding:clamp(7px,.85vw,11px);margin:0 auto;min-width:0;min-height:0
 }
 .warcaby-console .side-dock{margin-top:49px;max-height:calc(100% - 49px)}
 .warcaby-console .layout.game-focus .boardframe{width:auto;height:100%;aspect-ratio:1}
 .warcaby-console .layout.console-hide-dock .boardarea{grid-template-columns:minmax(0,1fr)}
}
@media(min-width:801px) and (max-width:1200px){
 .warcaby-console .boardarea{grid-template-columns:minmax(0,1fr) clamp(245px,23vw,290px)}
 .warcaby-console .side-dock{margin-top:46px;max-height:calc(100% - 46px)}
}
@media(min-width:801px) and (max-height:700px){
 .warcaby-console .boardframe{width:auto;height:100%;max-height:100%}
 .warcaby-console .side-dock{margin-top:39px;max-height:calc(100% - 39px)}
}
@media(max-width:800px){
 .warcaby-console .boardframe{width:min(100%,620px);height:auto;max-height:none;aspect-ratio:1}
 .warcaby-console .side-dock .game-tools.checkers-toolbar{
  grid-template-columns:repeat(7,minmax(0,1fr))
 }
}
@media(max-width:360px){
 .warcaby-console .side-dock .game-tools.checkers-toolbar{gap:3px}
 .warcaby-console .side-dock .game-tools.checkers-toolbar>.tool-btn{height:34px;min-height:34px}
}

/* Existing Gomoku training panel adapted to the white-first Warcaby game. */
/* The longer "Gra z komputerem" caption stays on one line inside Gomoku's mode-button height. */
@media (min-width:801px){.warcaby-console #training-mode strong{font-size:clamp(10px,.94vw,15px)}}
.warcaby-console #online-mode:not(.active){border-color:#47777b;box-shadow:none;background:linear-gradient(145deg,#0d424c,#06252e)}
.warcaby-console #training-mode.active{border-color:#f4cb79;background:linear-gradient(145deg,#1b5a53,#07313b);box-shadow:0 0 12px #e7bd6a42}
.warcaby-console #training-settings:not([hidden]),.warcaby-console #training-records:not([hidden]){display:block}
.warcaby-console .checkers-training-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}
.warcaby-console .checkers-training-actions button{min-width:0;padding:8px 5px;min-height:38px;font-size:11px}
.warcaby-console #game-result-modal:not([hidden]){display:grid}

/* Full Max Premium: forced multi-capture guidance; informational, never overrides server validation. */
.warcaby-console .board.checkers-grid .square.capture-target::after{
 content:"";position:absolute;z-index:4;width:23%;height:23%;
 border:2px solid #ffd4d9;border-radius:50%;pointer-events:none;
 background:radial-gradient(circle,#fff0f2 0 20%,#ffa3ae 28% 60%,#ef6679 100%);
 box-shadow:0 0 0 3px #48232a7d,0 0 14px #ff91a3;
}
.warcaby-console .board.checkers-grid .square.capture-target:before{display:none}
.warcaby-console .board.checkers-grid .square.must-continue{
 box-shadow:inset 0 0 0 3px #ff465d,0 0 16px #ff284a77;
}
.warcaby-console .board.checkers-grid .piece.must-continue{
 background:radial-gradient(circle at 30% 22%,#ffc3c8,#f23c55 44%,#8a1238 93%)!important;
 box-shadow:0 0 0 3px #ffb0b4,0 0 16px 5px #fa26476e,inset 0 -5px 11px #520c2c!important;
}
.warcaby-console .board.checkers-grid .piece.must-continue:before{
 background:radial-gradient(circle at 30% 25%,#ff9aaf,#f44363 40%,#a81536)!important;
 box-shadow:0 0 0 1px #ff93ab!important;
}
/* Mandatory capture: solid red for 2 s, a short blink, then solid red for 2 s. */
.warcaby-console .board.checkers-grid .piece.capture-alert{
 background:radial-gradient(circle at 30% 22%,#ffb8b8,#e72c3b 43%,#821226 94%)!important;
 box-shadow:0 0 0 3px #ff818c,0 0 16px 5px #e9274977,inset 0 -5px 11px #540c1f!important;
 animation:checkers-capture-red-cycle 4500ms linear infinite!important;
}
.warcaby-console .board.checkers-grid .piece.capture-alert:before{
 background:radial-gradient(circle at 30% 25%,#ffa2a9,#ef344c 42%,#af1734)!important;
 box-shadow:0 0 0 1px #ff8a99!important;
}
@keyframes checkers-capture-red-cycle{
 0%,44.4%,47%,50%,53%,55.6%,100%{opacity:1}
 45.5%,48.5%,51.5%,54.5%{opacity:.12}
}
@media (prefers-reduced-motion:reduce){
 .warcaby-console .board.checkers-grid .piece.capture-alert{animation:none!important}
}
.warcaby-console .checkers-capture-notice[hidden]{display:none!important}
.warcaby-console .checkers-capture-notice{
 position:fixed;z-index:150;left:50%;bottom:clamp(64px,9vh,104px);
 transform:translateX(-50%);box-sizing:border-box;
 display:flex;align-items:center;gap:12px;width:max-content;
 max-width:min(94vw,420px);padding:13px 13px 13px 17px;
 border:1px solid #ffcf73;border-radius:16px;
 color:#fff1d2;background:linear-gradient(130deg,#063e45f5,#06232df9);
 box-shadow:0 14px 40px #0009,inset 0 1px 0 #fff2b022,0 0 20px #f8c56a50;
 backdrop-filter:blur(8px);
}
.warcaby-console .capture-notice-icon{
 width:35px;height:35px;flex:0 0 35px;display:grid;place-items:center;
 border-radius:11px;background:#8d192e;border:1px solid #ff8890;
 color:#ffdfac;font-size:22px
}
.warcaby-console .capture-notice-copy{min-width:0}
.warcaby-console .capture-notice-copy strong{display:block;font:800 16px Georgia,serif;color:#ffde9b}
.warcaby-console .capture-notice-copy p{margin:4px 0 0;font:12px/1.5 Arial,sans-serif;color:#e0fcf7}
.warcaby-console #checkers-capture-dismiss{
 flex:0 0 29px;width:29px;height:29px;align-self:flex-start;cursor:pointer;
 border-radius:9px;border:1px solid #789d98;background:#0c3442;color:#fff7dd;
}
@media(max-width:650px){
 .warcaby-console .checkers-capture-notice{
  left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));
  transform:none;width:auto;max-width:none;padding:10px
 }
 .warcaby-console .capture-notice-copy strong{font-size:14px}
}


/* Reference parity with Gomoku console at matching desktop viewport.
 * Same sidebar, rows, chat dock and golden frame footprint.
 * The checkers grid ALWAYS retains square playable cells (8x8).
 * This is CSS-only: no impact on engine, clocks, session, chat or Gomoku.
 */
@media (min-width:801px){
 .warcaby-console .layout:not(.game-focus){
  width:100%;max-width:1920px;height:100dvh;min-height:590px;
  grid-template-columns:27.5% minmax(0,1fr);
 }
 .warcaby-console .layout:not(.game-focus).console-hide-sidebar{
  grid-template-columns:minmax(0,1fr);
 }
 .warcaby-console .layout:not(.game-focus)>.boardarea{
  grid-template-columns:minmax(0,1fr) clamp(315px,23vw,390px);
  grid-template-rows:60px 38px minmax(0,1fr) 45px;
  column-gap:clamp(10px,1.1vw,19px);
  row-gap:6px;
  padding:28px clamp(10px,1vw,18px) 9px;
  min-width:0;min-height:0;
 }
 .warcaby-console .layout:not(.game-focus) .board-center{
  grid-column:1;grid-row:3;
  display:grid;place-items:center;
  width:100%;height:100%;min-width:0;min-height:0;
  overflow:visible;
 }
 .warcaby-console .layout:not(.game-focus) .boardframe{
  box-sizing:border-box;display:grid;place-items:center;flex:none;
  width:auto;height:100%;max-width:100%;max-height:100%;
  aspect-ratio:1.12;
  padding:clamp(8px,.85vw,13px);
  margin:0;
 }
 .warcaby-console .layout:not(.game-focus) .boardframe>.board.checkers-grid{
  box-sizing:border-box;align-self:center;justify-self:center;
  width:auto;height:100%;max-width:100%;max-height:100%;
  aspect-ratio:1;min-width:0;min-height:0;
  grid-template-columns:repeat(8,minmax(0,1fr));
  grid-template-rows:repeat(8,minmax(0,1fr));
 }
 .warcaby-console .layout:not(.game-focus) .side-dock{
  align-self:stretch;justify-content:stretch;
  margin:72px 0 58px;padding:9px;
  min-height:0;max-height:none;
 }
 .warcaby-console .layout:not(.game-focus) .match-panel{
  min-height:0;flex:1 1 auto;max-height:none;
 }
}
@media (min-width:801px) and (max-width:1190px){
 .warcaby-console .layout:not(.game-focus)>.boardarea{
  grid-template-columns:minmax(0,1fr) clamp(240px,24vw,290px);
  column-gap:10px;padding-right:10px;padding-left:10px;
 }
 .warcaby-console .layout:not(.game-focus) .boardframe{
  width:auto;height:100%;max-width:100%;max-height:100%;
  aspect-ratio:1.12;
 }
 .warcaby-console .layout:not(.game-focus) .boardframe>.board.checkers-grid{
  width:auto;height:100%;max-width:100%;aspect-ratio:1;
 }
 .warcaby-console .layout:not(.game-focus) .side-dock{
  margin:44px 0 50px;
 }
}
@media (max-width:800px){
 /* Gomoku and Warcaby both switch to a vertical mobile composition.
    Preserve the square Warcaby board and its individual action buttons. */
 .warcaby-console .layout:not(.game-focus){display:block;width:100%;max-width:100%;height:auto;max-height:none;min-height:100dvh}
 .warcaby-console .boardarea{display:flex;flex-direction:column;gap:10px;padding:12px}
 .warcaby-console .boardframe{width:min(100%,620px);height:auto;aspect-ratio:1;margin:0 auto}
 .warcaby-console .boardframe>.board.checkers-grid{width:100%;height:100%;aspect-ratio:1}
 .warcaby-console .side-dock{margin:0;max-height:none}
}


/* R7 pixel alignment: polished checkers against the accepted Gomoku reference.
   At 1920x1080 the main columns already align; correct only the oversized
   golden side mat, dock end, and overflowing training sidebar.
   No JS, rules, timers, session, AI or responsive-gameplay changes. */
@media (min-width:801px) {
 /* Gomoku-like ivory mat with golden trim, not the wide solid-gold wings.
    Keep a square playable 8x8 field centered inside the 1.12 reference frame. */
 .warcaby-console .layout:not(.game-focus) .boardframe{
  padding:clamp(6px,.56vw,9px);
  border:3px solid;
  border-color:#fff0bc #a06f25 #79511b #f9df9c;
  border-radius:clamp(19px,1.8vw,25px);
  background:linear-gradient(115deg,#fffcf4 0%,#f5efe3 27%,#e7dfcd 58%,#fffcf3 100%);
  box-shadow:
   inset 0 0 0 1px #9b712b,
   inset 0 0 0 4px #f7d78c,
   inset 0 0 0 6px #b88b42,
   0 0 0 1px #76501e,
   0 0 11px 1px #e4b75e55,
   0 8px 18px #0008;
 }
 .warcaby-console .layout:not(.game-focus) .boardframe>.board.checkers-grid{
  border:2px solid #967c54;
  border-radius:10px;
  box-shadow:0 0 0 3px #fcf5e8,0 0 0 4px #c39b5c;
  overflow:hidden;
 }
 .warcaby-console .layout:not(.game-focus) .side-dock{
  margin-bottom:48px;
 }
}
/* Mobile stays stacked and the board stays square; only polish its matte. */
@media (max-width:800px){
 .warcaby-console .boardframe{
  border-color:#fff0bc #a06f25 #79511b #f9df9c;
  background:linear-gradient(125deg,#fffaf0,#e9dfcd 60%,#fffaf2);
 }
 .warcaby-console .boardframe>.board.checkers-grid{aspect-ratio:1}
}

/* Keep Gomoku's full 15-tile layout configuration in sync with Warcaby.
   Use variable rows so hiding players/status/bottom truly releases room. */
@media (min-width:801px) {
 .warcaby-console .layout:not(.game-focus)>.boardarea {
  grid-template-rows:var(--console-players-height,60px) var(--console-status-height,38px) minmax(0,1fr) var(--console-bottom-height,45px);
 }
}


/* R9: Warcaby configurator visual and layout compatibility.
   Keep the same DOM grid geometry as Gomoku when each of its 15 tiles changes.
   The original checkers rules below/above change only this game's appearance.
   No engine, timer, AI or network API changes. */
@media (min-width:801px){
 .warcaby-console .layout:not(.game-focus)>.boardarea{
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(315px,23vw,390px);
  grid-template-rows:var(--console-players-height,60px) var(--console-status-height,38px) minmax(0,1fr) var(--console-bottom-height,45px);
  min-width:0;min-height:0;
 }
 .warcaby-console .layout:not(.game-focus)>.boardarea>.arena{
  display:contents;
 }
 .warcaby-console .layout:not(.game-focus) .players{
  grid-column:1;grid-row:1;min-width:0;
 }
 .warcaby-console .layout:not(.game-focus) #game-state{
  grid-column:1;grid-row:2;min-width:0;
 }
 .warcaby-console .layout:not(.game-focus) .board-center{
  grid-column:1;grid-row:3;min-width:0;min-height:0;
 }
 .warcaby-console .layout:not(.game-focus) .side-dock{
  grid-column:2;grid-row:1 / 5;min-width:0;min-height:0;
 }
 .warcaby-console .layout:not(.game-focus) .bottom{
  grid-column:1;grid-row:4;min-width:0;
 }
 .warcaby-console .layout.console-hide-dock:not(.game-focus)>.boardarea{
  grid-template-columns:minmax(0,1fr)!important;
 }
}
@media (min-width:801px) and (max-width:1190px){
 .warcaby-console .layout:not(.game-focus)>.boardarea{
  grid-template-columns:minmax(0,1fr) clamp(240px,24vw,290px);
 }
}


/* R10: keep the seven premium navigation pictograms outside the player
   clock and VS rail. Previously console-hide-dock moved navigation absolute
   and crowded the clock. Maintain distinct grid tracks for every preset. */
@media (min-width:801px) {
 .warcaby-console .layout:not(.game-focus) .players {
  box-sizing:border-box;width:100%;max-width:100%;min-width:0;
  overflow:clip;isolation:isolate;
  grid-column:1;grid-row:1;
 }
 .warcaby-console .layout:not(.game-focus) .players .player {
  box-sizing:border-box;min-width:0;max-width:100%;overflow:hidden;
  gap:clamp(3px,.35vw,6px);
 }
 .warcaby-console .layout:not(.game-focus) .players .player>div {
  flex:1 1 auto;min-width:0;overflow:hidden;
 }
 .warcaby-console .layout:not(.game-focus) .players .player strong,
 .warcaby-console .layout:not(.game-focus) .players .player small {
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 }
}


/* R11 checked-in fitted checkers frame: the golden frame and 8x8 board
   are both square. Keeps the frame INSIDE the play area without size
   containment (which previously collapsed the console). */
@media (min-width:801px){
 .warcaby-console .layout:not(.game-focus) .boardframe{
  box-sizing:border-box;
  aspect-ratio:1 / 1;
  width:min(calc(100dvh - 220px),100vw);
  height:auto;
  max-width:100%;max-height:100%;
  padding:clamp(8px,.65vw,11px);
  margin:auto;
  overflow:hidden;
 }
 .warcaby-console .layout:not(.game-focus) .boardframe>.board.checkers-grid{
  box-sizing:border-box;
  aspect-ratio:1 / 1;
  width:100%;height:100%;
  min-width:0;min-height:0;
  max-width:100%;max-height:100%;
  margin:0;
  place-self:center;
 }
}
@media (max-width:800px){
 .warcaby-console .boardframe{
  box-sizing:border-box;
  aspect-ratio:1 / 1;
  width:min(100%,620px);height:auto;
  padding:clamp(8px,2vw,11px);
  margin-inline:auto;
  overflow:hidden;
 }
 .warcaby-console .boardframe>.board.checkers-grid{
  box-sizing:border-box;
  aspect-ratio:1 / 1;
  width:100%;height:100%;
  max-width:100%;max-height:100%;
  margin:0;
 }
}

/* Accepted checkers invitations need explicit clock choices; show the shared premium controls. */
.warcaby-console #online-settings label[for="create-room-time"],.warcaby-console #online-settings label[for="create-room-increment"]{display:block!important;margin-top:8px}
.warcaby-console #online-settings #create-room-time,.warcaby-console #online-settings #create-room-increment{display:block!important;width:100%;min-height:36px}

.warcaby-console #online-settings .room-creator details{display:block!important}
.warcaby-console #online-settings #create-room-increment:disabled{opacity:.55;cursor:not-allowed}
/* CONSOLE-1TO1-02: match Gomoku's viewport geometry without changing 8x8 gameplay. */
@media (min-width:801px){
 .warcaby-console .layout:not(.game-focus) .side-dock{margin:72px 0 49px}
 .warcaby-console .layout:not(.game-focus) .side-dock .game-tools.checkers-toolbar{
  box-sizing:border-box;flex:0 0 42px;height:42px;min-height:42px;
  padding:0 1px;align-items:stretch
 }
 .warcaby-console .layout:not(.game-focus) .side-dock .game-tools.checkers-toolbar>.tool-btn{
  height:42px;min-height:42px;max-height:42px
 }
 .warcaby-console .layout:not(.game-focus) .board-center{
  min-width:0;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center
 }
 .warcaby-console .layout:not(.game-focus) .boardframe{
  box-sizing:border-box;width:calc(100dvh - 200px);
  height:auto;min-width:0;max-width:100%;max-height:100%;
  aspect-ratio:1;justify-self:center;align-self:center
 }
}
@media (min-width:801px) and (max-width:1190px){
 .warcaby-console .layout:not(.game-focus){grid-template-columns:27% minmax(0,1fr)}
 .warcaby-console .layout:not(.game-focus)>.boardarea{
  padding-left:clamp(10px,1vw,18px);padding-right:clamp(10px,1vw,18px);
  column-gap:clamp(10px,1.1vw,19px)
 }
}
@media (max-width:800px){
 .warcaby-console .layout:not(.game-focus)>.boardarea{padding:10px}
 .warcaby-console .layout:not(.game-focus) .board-center{min-width:0;max-width:100%}
 .warcaby-console .layout:not(.game-focus) .boardframe{width:min(100%,620px);max-width:620px;min-width:0}
}
@media (min-width:641px) and (max-width:800px){.warcaby-console .layout:not(.game-focus)>.boardarea{padding:12px}}
/* CONSOLE-INTERACTION-1TO1-03: stable left-panel settings slot.
   Training and online settings share one slot sized to the taller of the two,
   so switching modes never moves the footer (help, links, console configurator)
   and never pushes it out of the panel. The inactive panel stays [hidden] for
   assistive technology and keyboard focus; only its box is reserved. */
.warcaby-console .console-settings-slot{display:flex;flex-direction:column;gap:inherit;min-width:0}
.warcaby-console .console-settings-slot>*{flex:none;min-width:0}
@media (min-width:801px){
 .warcaby-console .layout:not(.game-focus) .console-settings-slot{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;row-gap:inherit;align-content:start}
 /* Short windows: only the slot scrolls; header, mode buttons and footer stay in view.
    The 6px inline/bottom gutter keeps focus outlines of full-width fields visible. */
 .warcaby-console .layout:not(.game-focus)>.sidebar>.console-settings-slot{flex:0 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 6px 6px;margin:0 -6px -6px}
 .warcaby-console .layout:not(.game-focus) .console-settings-slot>#training-settings{grid-area:1/1}
 .warcaby-console .layout:not(.game-focus) .console-settings-slot>#training-records{grid-area:2/1}
 .warcaby-console .layout:not(.game-focus) .console-settings-slot>#online-settings{grid-area:1/1/3/2}
 .warcaby-console .layout.console-hide-training-records:not(.game-focus) .console-settings-slot{row-gap:0}
 .warcaby-console .layout:not(.game-focus):not(.console-hide-training-settings) .console-settings-slot>#training-settings[hidden],
 .warcaby-console .layout:not(.game-focus):not(.console-hide-training-records) .console-settings-slot>#training-records[hidden]{display:block!important;visibility:hidden!important;pointer-events:none}
 .warcaby-console .layout:not(.game-focus):not(.console-hide-online-settings) .console-settings-slot>#online-settings[hidden]{display:block!important;visibility:hidden!important;pointer-events:none}
}
/* Very short desktop windows: mirror Gomoku's (max-height:650px) rails and dock end. */
@media (min-width:801px) and (max-height:650px){
 .warcaby-console .layout:not(.game-focus)>.boardarea{row-gap:5px;padding-right:11px;padding-bottom:7px;padding-left:11px}
 .warcaby-console .layout:not(.game-focus) .side-dock{margin-bottom:37px}
}
/* Board-only focus mode (desktop CSS widths): the 8x8 frame is the largest square that fits the
   Gomoku board row, also when the row is taller than wide (portrait tablets wider than 800px).
   Narrow/zoomed widths keep Gomoku's shared R40 focus rule (no height:100%). */
@media (min-width:801px){
 .warcaby-console .layout.game-focus .board-center{container-type:inline-size}
 .warcaby-console .layout.game-focus .boardframe{box-sizing:border-box;width:auto;height:100%;max-width:100%;max-height:min(100%,100cqi);aspect-ratio:1;margin:auto}
 .warcaby-console .layout.game-focus .boardframe>.board.checkers-grid{width:100%;height:100%;aspect-ratio:1}
}
/* Narrow desktop panels: the account status line is filled asynchronously; reserve its two
   lines so the stable settings slot (and the footer below it) does not grow after loading. */
@media (min-width:801px) and (max-width:1100px){.warcaby-console .layout:not(.game-focus) #online-settings #account-note{min-height:2lh}}
/* P1-B: restore-layout gear (visible when the left panel is hidden). Right edge, below the top
   navigation and the clocks, never over them — contract of e2e/warcaby-layout.browser.mjs. */
.warcaby-console #console-config-fab:not([hidden]){position:fixed;top:clamp(275px,30vh,340px);right:14px;left:auto;z-index:9000;box-sizing:border-box;width:46px;height:46px;max-width:46px;padding:0;overflow:hidden;white-space:nowrap;font-size:0;display:grid;place-items:center;border:1px solid #f4d18b;border-radius:13px;background:linear-gradient(145deg,#116369 0%,#06333c 48%,#041f2c 100%);box-shadow:inset 0 1px 0 #fff2c077,0 0 0 1px #94652e,0 7px 22px #0009,0 0 17px #b8975277;color:#ffe5a6}
.warcaby-console #console-config-fab:not([hidden])::before{content:"⚙";color:#ffe5a6;font:800 23px/1 "Segoe UI",sans-serif}
.warcaby-console #console-config-fab:not([hidden]):is(:hover,:focus-visible){border-color:#fff1b9;background:linear-gradient(145deg,#16848a,#073b48 65%,#072834);box-shadow:inset 0 1px 0 #fff5c888,0 0 0 1px #e5b96b,0 8px 24px #0009,0 0 19px #eed58b88}
@media(max-width:800px){.warcaby-console #console-config-fab:not([hidden]){top:auto;bottom:calc(12px + env(safe-area-inset-bottom));right:10px;width:42px;height:42px;max-width:42px}}
/* P1-B: hidden chat dock. Gomoku floats the top navigation over the white player's clock in this
   preset; here it stays in the layout at the right end of the status row, so the player cards,
   clocks and the board keep Gomoku's geometry and nothing overlaps. */
@media (min-width:801px){
 .warcaby-console .layout.console-hide-dock:not(.game-focus):not(.console-hide-quicklinks)>.boardarea{grid-template-columns:minmax(0,1fr) auto!important}
 .warcaby-console .layout.console-hide-dock:not(.game-focus):not(.console-hide-quicklinks) :is(.players,.board-center,.bottom){grid-column:1 / -1}
 .warcaby-console .layout.console-hide-dock:not(.game-focus):not(.console-hide-quicklinks) .premium-quick-links{position:relative;top:auto;right:auto;grid-column:2;grid-row:2;align-self:center;justify-self:end;width:auto}
 .warcaby-console .layout.console-hide-dock.console-hide-status:not(.game-focus):not(.console-hide-quicklinks){--console-status-height:auto}
}

/* Dłoń Premium: raster glove cursor, sized to the real pawn by data-checkers-hand. */
.warcaby-console .board.checkers-grid:not(.preview)[data-checkers-hand="s"] .square.checkers-hand-ready{cursor:url('/checkers-hand/open-s.png') 11 40,url('/checkers-hand/open.png') 0 15,grab;cursor:image-set(url('/checkers-hand/open-s.png') 1x,url('/checkers-hand/open-s-2x.png') 2x) 11 40,url('/checkers-hand/open.png') 0 15,grab}
.warcaby-console .board.checkers-grid:not(.preview)[data-checkers-hand="s"].checkers-hand-grabbing,.warcaby-console .board.checkers-grid:not(.preview)[data-checkers-hand="s"].checkers-hand-grabbing .square{cursor:url('/checkers-hand/grip-s.png') 11 40,url('/checkers-hand/grip.png') 0 15,grabbing!important;cursor:image-set(url('/checkers-hand/grip-s.png') 1x,url('/checkers-hand/grip-s-2x.png') 2x) 11 40,url('/checkers-hand/grip.png') 0 15,grabbing!important}
.warcaby-console .board.checkers-grid:not(.preview)[data-checkers-hand="m"] .square.checkers-hand-ready{cursor:url('/checkers-hand/open-m.png') 13 49,url('/checkers-hand/open-s.png') 5 40,url('/checkers-hand/open.png') 0 15,grab;cursor:image-set(url('/checkers-hand/open-m.png') 1x,url('/checkers-hand/open-m-2x.png') 2x) 13 49,image-set(url('/checkers-hand/open-s.png') 1x,url('/checkers-hand/open-s-2x.png') 2x) 5 40,url('/checkers-hand/open.png') 0 15,grab}
.warcaby-console .board.checkers-grid:not(.preview)[data-checkers-hand="m"].checkers-hand-grabbing,.warcaby-console .board.checkers-grid:not(.preview)[data-checkers-hand="m"].checkers-hand-grabbing .square{cursor:url('/checkers-hand/grip-m.png') 13 49,url('/checkers-hand/grip-s.png') 5 40,url('/checkers-hand/grip.png') 0 15,grabbing!important;cursor:image-set(url('/checkers-hand/grip-m.png') 1x,url('/checkers-hand/grip-m-2x.png') 2x) 13 49,image-set(url('/checkers-hand/grip-s.png') 1x,url('/checkers-hand/grip-s-2x.png') 2x) 5 40,url('/checkers-hand/grip.png') 0 15,grabbing!important}
.warcaby-console .board.checkers-grid:not(.preview) .square.checkers-hand-ready{cursor:url('/checkers-hand/open-l.png') 16 61,url('/checkers-hand/open-m.png') 6 49,url('/checkers-hand/open-s.png') 0 40,url('/checkers-hand/open.png') 0 15,grab;cursor:image-set(url('/checkers-hand/open-l.png') 1x,url('/checkers-hand/open-l-2x.png') 2x) 16 61,image-set(url('/checkers-hand/open-m.png') 1x,url('/checkers-hand/open-m-2x.png') 2x) 6 49,image-set(url('/checkers-hand/open-s.png') 1x,url('/checkers-hand/open-s-2x.png') 2x) 0 40,url('/checkers-hand/open.png') 0 15,grab}
.warcaby-console .board.checkers-grid:not(.preview).checkers-hand-grabbing,.warcaby-console .board.checkers-grid:not(.preview).checkers-hand-grabbing .square{cursor:url('/checkers-hand/grip-l.png') 16 61,url('/checkers-hand/grip-m.png') 6 49,url('/checkers-hand/grip-s.png') 0 40,url('/checkers-hand/grip.png') 0 15,grabbing!important;cursor:image-set(url('/checkers-hand/grip-l.png') 1x,url('/checkers-hand/grip-l-2x.png') 2x) 16 61,image-set(url('/checkers-hand/grip-m.png') 1x,url('/checkers-hand/grip-m-2x.png') 2x) 6 49,image-set(url('/checkers-hand/grip-s.png') 1x,url('/checkers-hand/grip-s-2x.png') 2x) 0 40,url('/checkers-hand/grip.png') 0 15,grabbing!important}
.warcaby-console .board.checkers-grid:not(.preview)[data-checkers-hand="xl"] .square.checkers-hand-ready{cursor:url('/checkers-hand/open-l.png') 4 61,url('/checkers-hand/open-m.png') 0 49,url('/checkers-hand/open-s.png') 0 40,url('/checkers-hand/open.png') 0 15,grab;cursor:image-set(url('/checkers-hand/open-l.png') 1x,url('/checkers-hand/open-l-2x.png') 2x) 4 61,image-set(url('/checkers-hand/open-m.png') 1x,url('/checkers-hand/open-m-2x.png') 2x) 0 49,image-set(url('/checkers-hand/open-s.png') 1x,url('/checkers-hand/open-s-2x.png') 2x) 0 40,url('/checkers-hand/open.png') 0 15,grab}
.warcaby-console .board.checkers-grid:not(.preview)[data-checkers-hand="xl"].checkers-hand-grabbing,.warcaby-console .board.checkers-grid:not(.preview)[data-checkers-hand="xl"].checkers-hand-grabbing .square{cursor:url('/checkers-hand/grip-l.png') 4 61,url('/checkers-hand/grip-m.png') 0 49,url('/checkers-hand/grip-s.png') 0 40,url('/checkers-hand/grip.png') 0 15,grabbing!important;cursor:image-set(url('/checkers-hand/grip-l.png') 1x,url('/checkers-hand/grip-l-2x.png') 2x) 4 61,image-set(url('/checkers-hand/grip-m.png') 1x,url('/checkers-hand/grip-m-2x.png') 2x) 0 49,image-set(url('/checkers-hand/grip-s.png') 1x,url('/checkers-hand/grip-s-2x.png') 2x) 0 40,url('/checkers-hand/grip.png') 0 15,grabbing!important}
.warcaby-console .board.checkers-grid:not(.preview)[data-checkers-hand="xxl"] .square.checkers-hand-ready{cursor:url('/checkers-hand/open-l.png') 0 61,url('/checkers-hand/open-m.png') 0 49,url('/checkers-hand/open-s.png') 0 40,url('/checkers-hand/open.png') 0 15,grab;cursor:image-set(url('/checkers-hand/open-l.png') 1x,url('/checkers-hand/open-l-2x.png') 2x) 0 61,image-set(url('/checkers-hand/open-m.png') 1x,url('/checkers-hand/open-m-2x.png') 2x) 0 49,image-set(url('/checkers-hand/open-s.png') 1x,url('/checkers-hand/open-s-2x.png') 2x) 0 40,url('/checkers-hand/open.png') 0 15,grab}
.warcaby-console .board.checkers-grid:not(.preview)[data-checkers-hand="xxl"].checkers-hand-grabbing,.warcaby-console .board.checkers-grid:not(.preview)[data-checkers-hand="xxl"].checkers-hand-grabbing .square{cursor:url('/checkers-hand/grip-l.png') 0 61,url('/checkers-hand/grip-m.png') 0 49,url('/checkers-hand/grip-s.png') 0 40,url('/checkers-hand/grip.png') 0 15,grabbing!important;cursor:image-set(url('/checkers-hand/grip-l.png') 1x,url('/checkers-hand/grip-l-2x.png') 2x) 0 61,image-set(url('/checkers-hand/grip-m.png') 1x,url('/checkers-hand/grip-m-2x.png') 2x) 0 49,image-set(url('/checkers-hand/grip-s.png') 1x,url('/checkers-hand/grip-s-2x.png') 2x) 0 40,url('/checkers-hand/grip.png') 0 15,grabbing!important}
body.warcaby-console:has(.board.checkers-grid.checkers-hand-grabbing[data-checkers-hand="s"]),body.warcaby-console:has(.board.checkers-grid.checkers-hand-grabbing[data-checkers-hand="s"]) *{cursor:url('/checkers-hand/grip-s.png') 11 40,url('/checkers-hand/grip.png') 0 15,grabbing!important;cursor:image-set(url('/checkers-hand/grip-s.png') 1x,url('/checkers-hand/grip-s-2x.png') 2x) 11 40,url('/checkers-hand/grip.png') 0 15,grabbing!important}
body.warcaby-console:has(.board.checkers-grid.checkers-hand-grabbing[data-checkers-hand="m"]),body.warcaby-console:has(.board.checkers-grid.checkers-hand-grabbing[data-checkers-hand="m"]) *{cursor:url('/checkers-hand/grip-m.png') 13 49,url('/checkers-hand/grip-s.png') 5 40,url('/checkers-hand/grip.png') 0 15,grabbing!important;cursor:image-set(url('/checkers-hand/grip-m.png') 1x,url('/checkers-hand/grip-m-2x.png') 2x) 13 49,image-set(url('/checkers-hand/grip-s.png') 1x,url('/checkers-hand/grip-s-2x.png') 2x) 5 40,url('/checkers-hand/grip.png') 0 15,grabbing!important}
body.warcaby-console:has(.board.checkers-grid.checkers-hand-grabbing),body.warcaby-console:has(.board.checkers-grid.checkers-hand-grabbing) *{cursor:url('/checkers-hand/grip-l.png') 16 61,url('/checkers-hand/grip-m.png') 6 49,url('/checkers-hand/grip-s.png') 0 40,url('/checkers-hand/grip.png') 0 15,grabbing!important;cursor:image-set(url('/checkers-hand/grip-l.png') 1x,url('/checkers-hand/grip-l-2x.png') 2x) 16 61,image-set(url('/checkers-hand/grip-m.png') 1x,url('/checkers-hand/grip-m-2x.png') 2x) 6 49,image-set(url('/checkers-hand/grip-s.png') 1x,url('/checkers-hand/grip-s-2x.png') 2x) 0 40,url('/checkers-hand/grip.png') 0 15,grabbing!important}
body.warcaby-console:has(.board.checkers-grid.checkers-hand-grabbing[data-checkers-hand="xl"]),body.warcaby-console:has(.board.checkers-grid.checkers-hand-grabbing[data-checkers-hand="xl"]) *{cursor:url('/checkers-hand/grip-l.png') 4 61,url('/checkers-hand/grip-m.png') 0 49,url('/checkers-hand/grip-s.png') 0 40,url('/checkers-hand/grip.png') 0 15,grabbing!important;cursor:image-set(url('/checkers-hand/grip-l.png') 1x,url('/checkers-hand/grip-l-2x.png') 2x) 4 61,image-set(url('/checkers-hand/grip-m.png') 1x,url('/checkers-hand/grip-m-2x.png') 2x) 0 49,image-set(url('/checkers-hand/grip-s.png') 1x,url('/checkers-hand/grip-s-2x.png') 2x) 0 40,url('/checkers-hand/grip.png') 0 15,grabbing!important}
body.warcaby-console:has(.board.checkers-grid.checkers-hand-grabbing[data-checkers-hand="xxl"]),body.warcaby-console:has(.board.checkers-grid.checkers-hand-grabbing[data-checkers-hand="xxl"]) *{cursor:url('/checkers-hand/grip-l.png') 0 61,url('/checkers-hand/grip-m.png') 0 49,url('/checkers-hand/grip-s.png') 0 40,url('/checkers-hand/grip.png') 0 15,grabbing!important;cursor:image-set(url('/checkers-hand/grip-l.png') 1x,url('/checkers-hand/grip-l-2x.png') 2x) 0 61,image-set(url('/checkers-hand/grip-m.png') 1x,url('/checkers-hand/grip-m-2x.png') 2x) 0 49,image-set(url('/checkers-hand/grip-s.png') 1x,url('/checkers-hand/grip-s-2x.png') 2x) 0 40,url('/checkers-hand/grip.png') 0 15,grabbing!important}
/* Large premium glove is a separate non-interactive visual layer, not a browser cursor.
   Only enable hiding the native hand after the DOM layer is mounted and a mouse is used. */
body.warcaby-console.checkers-hand-overlay-enabled #board .square.checkers-hand-ready,
body.warcaby-console.checkers-hand-overlay-enabled #board .square.checkers-hand-ready *,
body.warcaby-console.checkers-hand-overlay-enabled #board.checkers-hand-grabbing,
body.warcaby-console.checkers-hand-overlay-enabled #board.checkers-hand-grabbing *{cursor:none!important}
body.warcaby-console.checkers-hand-overlay-enabled:has(#board.checkers-hand-grabbing),
body.warcaby-console.checkers-hand-overlay-enabled:has(#board.checkers-hand-grabbing) *{cursor:none!important}
body.warcaby-console .checkers-hand-visual{
 position:fixed!important;left:0;top:0;z-index:100001!important;
 pointer-events:none!important;touch-action:none!important;
 width:0!important;height:0!important;overflow:visible!important;
 user-select:none!important;-webkit-user-select:none!important
}
body.warcaby-console .checkers-hand-visual[hidden]{display:none!important}
body.warcaby-console .checkers-hand-visual img{
 position:absolute!important;max-width:none!important;max-height:none!important;
 pointer-events:none!important;display:block!important;filter:drop-shadow(0 2px 3px #001d2144)
}

body.warcaby-console .checkers-hand-visual img{
 transform-origin:36% 40%;transition:opacity 140ms ease-out,transform 155ms cubic-bezier(.2,.75,.25,1);will-change:opacity,transform
}
body.warcaby-console .checkers-hand-visual .checkers-hand-open{opacity:1;transform:translate(0,0) scale(1)}
body.warcaby-console .checkers-hand-visual .checkers-hand-grip{opacity:0;transform:translate(4%,-3%) scale(1.08)}
body.warcaby-console .checkers-hand-visual[data-state="grip"] .checkers-hand-open{opacity:0;transform:translate(-3%,1%) scale(.96)}
body.warcaby-console .checkers-hand-visual[data-state="grip"] .checkers-hand-grip{opacity:1;transform:translate(-2%,1%) scale(.96)}


/* Isolated result modal and lobby; no selectors change chess/checkers board geometry. */
.warcaby-console .warcaby-loss-overlay[hidden],
.warcaby-console .warcaby-tables-overlay[hidden],
.warcaby-console .warcaby-share-overlay[hidden],
.warcaby-console .warcaby-tables-create[hidden]{display:none!important}
.warcaby-console .warcaby-loss-overlay,.warcaby-console .warcaby-tables-overlay,.warcaby-console .warcaby-share-overlay{
 position:fixed;inset:0;z-index:90010;box-sizing:border-box;display:grid;place-items:center;
 padding:16px;background:rgba(0,29,35,.70)
}
.warcaby-console .warcaby-loss-card{
 position:relative;box-sizing:border-box;width:min(840px,100%);max-height:92dvh;
 overflow-y:auto;border:1px solid #eee1cb;background:#fff8eb;border-radius:30px;
 box-shadow:0 18px 58px #001d2440;padding:clamp(22px,2.6vw,32px) clamp(22px,3.2vw,42px) clamp(24px,3vw,34px);
 text-align:center;color:#003f42;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif
}
.warcaby-console .warcaby-loss-close{
 position:absolute;right:clamp(14px,2vw,26px);top:clamp(14px,2vw,24px);
 width:46px;height:46px;min-height:46px;display:grid;place-items:center;
 border:3px solid #005457;border-radius:50%;
 background:#fff8eb;color:#005457;font:800 31px/1 system-ui,sans-serif;
 cursor:pointer;z-index:2;padding:0
}
.warcaby-console .warcaby-loss-medal{
 width:clamp(92px,10vw,120px);height:clamp(92px,10vw,120px);
 display:grid;place-items:center;margin:-6px auto 8px;background:transparent;border:0
}
.warcaby-console .warcaby-loss-face{width:100%;height:100%;display:block}
.warcaby-console .warcaby-loss-face--happy{display:none}
.warcaby-console .warcaby-loss-overlay[data-outcome="win"] .warcaby-loss-face--sad{display:none}
.warcaby-console .warcaby-loss-overlay[data-outcome="win"] .warcaby-loss-face--happy{display:block}
.warcaby-console #warcaby-loss-title{
 font:800 clamp(25px,3.05vw,38px)/1.19 system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;
 letter-spacing:-.025em;margin:0 auto clamp(26px,3vw,38px)!important;
 background:transparent!important;color:#004447!important;
 padding:0!important;border:0!important;border-radius:0!important;
 max-width:760px;overflow-wrap:anywhere;text-wrap:balance
}
.warcaby-console #warcaby-loss-player{
 font-size:1.08em!important;font-weight:800!important;color:#009da8!important;vertical-align:baseline;text-transform:lowercase!important
}
.warcaby-console #warcaby-loss-name{
 display:inline!important;font:inherit!important;color:inherit!important;
 background:transparent!important;padding:0!important;margin:0!important;max-width:none!important;
 border-radius:0!important;overflow-wrap:anywhere
}
.warcaby-console .warcaby-loss-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(10px,2.2vw,20px)}
.warcaby-console .warcaby-loss-actions button,
.warcaby-console .warcaby-tables-panel button{min-height:39px;border:0;border-radius:9px;padding:7px 12px;background:#006d6c;color:white;font:750 13px system-ui,sans-serif;cursor:pointer}
.warcaby-console .warcaby-loss-actions button{
 font:800 clamp(21px,2.1vw,27px)/1.2 system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;
 min-height:clamp(54px,5vw,66px)!important;border-radius:18px!important;
 background:#008b8c;color:#fff;padding:12px 18px!important;
 box-shadow:none!important;white-space:normal
}
.warcaby-console #warcaby-loss-rematch{background:#005457}
@media(max-width:540px){
 .warcaby-console .warcaby-loss-card{border-radius:22px;padding:22px 18px 24px}
 .warcaby-console .warcaby-loss-close{width:38px;height:38px;min-height:38px;font-size:25px;right:12px;top:12px}
 .warcaby-console .warcaby-loss-medal{width:88px;height:88px;margin:2px auto 14px}
 .warcaby-console #warcaby-loss-title{font-size:clamp(22px,6vw,29px)!important;line-height:1.25!important;margin-bottom:22px!important}
 .warcaby-console .warcaby-loss-actions button{font-size:clamp(18px,4.4vw,22px)!important;min-height:53px!important;border-radius:13px!important;padding:10px!important}
}
@media(max-height:520px){
 .warcaby-console .warcaby-loss-card{padding-top:18px;padding-bottom:18px}
 .warcaby-console .warcaby-loss-medal{width:70px;height:70px;margin:0 auto 6px}
 .warcaby-console #warcaby-loss-title{margin-bottom:16px!important}
}
.warcaby-console .warcaby-loss-notice{color:#355b5c;font:500 12px/1.5 system-ui,sans-serif}
.warcaby-console .warcaby-loss-notice:empty{display:none}
.warcaby-console .warcaby-tables-panel{
 box-sizing:border-box;width:min(1020px,100%);max-height:92dvh;overflow:auto;
 border-radius:18px;border:1px solid #d9cdb5;background:#fff9ed;color:#073d41;
 box-shadow:0 26px 90px #0005;padding:clamp(14px,2.5vw,24px);font-family:system-ui,sans-serif
}
.warcaby-console .warcaby-tables-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.warcaby-console .warcaby-tables-eyebrow{font-size:10px;font-weight:800;letter-spacing:.14em;color:#577d7b}
.warcaby-console .warcaby-tables-heading h2{margin:2px 0 1px!important;font:800 clamp(20px,3vw,28px)/1.2 system-ui,sans-serif!important;color:#073d41}
.warcaby-console .warcaby-tables-heading p{margin:4px 0 14px;font-size:12px;color:#577071}
.warcaby-console #warcaby-tables-close{font-size:26px;line-height:1;width:38px;min-height:38px;background:transparent;color:#09494a}
.warcaby-console .warcaby-tables-menu{display:flex;gap:4px;background:#f0e7d5;border-radius:10px;padding:4px;margin-bottom:12px;overflow:auto}
.warcaby-console .warcaby-tables-menu button{flex:1;white-space:nowrap;min-width:max-content;background:transparent;color:#0a5052}
.warcaby-console .warcaby-tables-menu button[aria-pressed="true"]{background:#006d6c;color:white}
.warcaby-console .warcaby-tables-toolbar{display:flex;gap:7px;align-items:flex-end;flex-wrap:wrap;margin-bottom:12px}
.warcaby-console .warcaby-tables-toolbar #warcaby-tables-edit,
.warcaby-console .warcaby-tables-toolbar #warcaby-tables-qr,
.warcaby-console .warcaby-tables-toolbar #warcaby-tables-send{background:#006d6c;color:white}
.warcaby-console .warcaby-tables-toolbar button:disabled{opacity:.5;cursor:default}
.warcaby-console .warcaby-tables-toolbar #warcaby-tables-refresh,
.warcaby-console .warcaby-tables-toolbar #warcaby-tables-find{background:#dcebe7;color:#074a4a}
.warcaby-console .warcaby-tables-private{font-size:11px;margin-left:auto;display:flex;flex-direction:column;gap:4px}
.warcaby-console .warcaby-tables-private input{width:205px;max-width:100%;min-height:37px;box-sizing:border-box;padding:7px 9px;border:1px solid #c2d2ce;border-radius:8px;background:white;color:#083d40}
.warcaby-console .warcaby-tables-create{background:#f1e7d2;padding:13px;border-radius:12px;margin:9px 0}
.warcaby-console .warcaby-tables-create h3{margin:0 0 10px!important;font-size:16px!important}
.warcaby-console .warcaby-tables-fields{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.warcaby-console .warcaby-tables-fields label{font-size:11px;font-weight:700;display:flex;flex-direction:column;gap:4px}
.warcaby-console .warcaby-tables-fields input,.warcaby-console .warcaby-tables-fields select{
 min-height:37px;box-sizing:border-box;min-width:0;width:100%;padding:7px 8px;
 border:1px solid #b8cdca;border-radius:8px;background:white;color:#083d40
}
.warcaby-console .warcaby-tables-form-actions{display:flex;gap:8px;margin-top:11px}
.warcaby-console .warcaby-tables-form-actions #warcaby-tables-create-cancel{background:#d2ded9;color:#10484a}
.warcaby-console .warcaby-tables-status{font-size:12px;color:#28595b;min-height:17px;margin:6px 0 10px}
.warcaby-console .warcaby-tables-grid{border:1px solid #d4ddd5;border-radius:11px;overflow:hidden}
.warcaby-console .warcaby-tables-gridhead,.warcaby-console .warcaby-tables-row{
 display:grid;grid-template-columns:minmax(155px,1.65fr) minmax(75px,.6fr) minmax(70px,.55fr) minmax(270px,1.7fr);
 gap:8px;align-items:center;padding:9px 12px
}
.warcaby-console .warcaby-tables-gridhead{background:#006d6c;color:white;font-size:12px;font-weight:800}
.warcaby-console .warcaby-tables-row{font-size:12px;border-bottom:1px solid #e2e8e2}
.warcaby-console .warcaby-tables-row:nth-child(2n){background:#f1f6f0}
.warcaby-console .warcaby-tables-row strong{display:block;font-size:13px}
.warcaby-console .warcaby-tables-row small{display:block;font-size:11px;color:#5d7777}
.warcaby-console .warcaby-tables-row button,.warcaby-console .warcaby-tables-row a{
 display:inline-flex;align-items:center;justify-content:center;min-height:30px;
 border:0;border-radius:7px;padding:5px 9px;background:#006d6c;color:#fff;
 font:700 12px system-ui,sans-serif;text-decoration:none;cursor:pointer
}

.warcaby-console .warcaby-tables-row button:disabled{opacity:.45;cursor:default}
.warcaby-console .warcaby-tables-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.warcaby-console .warcaby-tables-actions button{font-size:11px;padding:5px 8px;white-space:nowrap}
.warcaby-console .warcaby-tables-actions .warcaby-tables-secondary{background:#dcebe7;color:#074a4a}
.warcaby-console .warcaby-share-card{box-sizing:border-box;width:min(450px,100%);max-height:92dvh;overflow:auto;background:#fff9ed;color:#073d41;border:1px solid #d9cdb5;border-radius:16px;padding:20px;box-shadow:0 26px 80px #0005;font:13px/1.5 system-ui,sans-serif}
.warcaby-console .warcaby-share-card header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.warcaby-console .warcaby-share-card h2{font:800 22px/1.3 system-ui,sans-serif!important;margin:0!important}
.warcaby-console .warcaby-share-card button{min-height:36px;padding:6px 12px;border:0;border-radius:8px;background:#006d6c;color:white;font:700 13px system-ui,sans-serif;cursor:pointer}
.warcaby-console #warcaby-share-close{font-size:24px;background:transparent;color:#073d41}
.warcaby-console #warcaby-share-qr{display:grid;place-items:center;min-height:180px;margin:12px 0}
.warcaby-console #warcaby-share-qr svg{max-width:100%;height:auto;background:white;border-radius:8px}
.warcaby-console .warcaby-share-card label{display:flex;flex-direction:column;gap:5px;font-weight:700}
.warcaby-console #warcaby-share-link{box-sizing:border-box;width:100%;padding:9px;border:1px solid #b8cdca;border-radius:8px;background:white;color:#073d41}
.warcaby-console .warcaby-share-actions{display:flex;gap:8px;margin-top:13px}
.warcaby-console #warcaby-share-status{min-height:18px;color:#28595b}
.warcaby-console .warcaby-share-overlay :is(button,input):focus-visible{outline:2px solid #e5a53e;outline-offset:2px}
.warcaby-console .warcaby-tables-empty{padding:24px 15px;text-align:center;font-size:13px;color:#48696a}
.warcaby-console .warcaby-tables-foot{display:flex;justify-content:space-between;gap:8px;padding:10px 2px 0;font-size:11px;color:#526e6c}
.warcaby-console .warcaby-tables-overlay :is(button,input,select,a):focus-visible,
.warcaby-console .warcaby-loss-overlay :is(button,a):focus-visible{outline:2px solid #e5a53e;outline-offset:2px}
@media(max-width:700px){
 .warcaby-console .warcaby-tables-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .warcaby-console .warcaby-tables-private{margin-left:0}
 .warcaby-console .warcaby-tables-gridhead{display:none}
 .warcaby-console .warcaby-tables-row{grid-template-columns:1fr 1fr;padding:12px;gap:6px}
 .warcaby-console .warcaby-tables-row>.warcaby-tables-actions{grid-column:1/-1}
 .warcaby-console .warcaby-tables-panel{max-height:95dvh}
 .warcaby-console .warcaby-tables-foot{flex-direction:column}
}


/* Keep the legacy engine control hidden; only the bot and friends buttons are visible. */
body.warcaby-console #training-mode[hidden],body.warcaby-console.chess-console.cc-owner #game .checkers-owner-mode>#training-mode.mode-choice{display:none!important}

/* Warcaby in the owner's chess console. Chess game and checkers engine stay isolated. */
/* Modern Warcaby: both announcements fill the chat content region, not the board. */
body.warcaby-console.chess-console.cc-owner #chat-panel{
 position:relative!important;
}
body.warcaby-console.chess-console.cc-owner #chat-panel #checkers-color-confirmation:not([hidden]),
body.warcaby-console.chess-console.cc-owner #chat-panel #checkers-capture-notice:not([hidden]){
 position:absolute!important;inset:0!important;left:0!important;right:0!important;
 top:0!important;bottom:0!important;transform:none!important;box-sizing:border-box!important;
 width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
 margin:0!important;padding:18px 20px!important;border:0!important;border-radius:12px!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 text-align:center!important;flex-wrap:wrap!important;gap:12px!important;
 background:#006e71!important;color:#fff!important;box-shadow:none!important;
 overflow:auto!important;backdrop-filter:none!important;
}
body.warcaby-console.chess-console.cc-owner #chat-panel #checkers-color-confirmation:not([hidden]){
 z-index:3!important;pointer-events:none!important;font:800 clamp(17px,1.5vw,21px)/1.45 system-ui,sans-serif!important;
}
body.warcaby-console.chess-console.cc-owner #chat-panel #checkers-capture-notice:not([hidden]){
 z-index:4!important;pointer-events:auto!important;align-content:center!important;
}
body.warcaby-console.chess-console.cc-owner #chat-panel #checkers-capture-notice .capture-notice-icon{
 color:#fff!important;background:#005c60!important;border:1px solid #8de1d7!important;
}
body.warcaby-console.chess-console.cc-owner #chat-panel #checkers-capture-notice .capture-notice-copy{
 flex:0 1 100%!important;min-width:0!important;text-align:center!important;
}
body.warcaby-console.chess-console.cc-owner #chat-panel #checkers-capture-notice .capture-notice-copy strong{
 color:#fff!important;font:800 clamp(18px,1.6vw,22px)/1.3 system-ui,sans-serif!important;
}
body.warcaby-console.chess-console.cc-owner #chat-panel #checkers-capture-notice .capture-notice-copy p{
 color:#fff!important;font:600 clamp(13px,1.2vw,16px)/1.5 system-ui,sans-serif!important;margin:8px 0 0!important;
}
/* The capture instruction must remain until the mandatory capture is played. */
body.warcaby-console.chess-console.cc-owner #chat-panel #checkers-capture-dismiss{display:none!important}
/* The two numerals progress from muted red at 00:30 to pure red at 00:01. */
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .cc-top #clock-1.checkers-clock-critical,
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .cc-top #clock-2.checkers-clock-critical,
body.warcaby-console.chess-console.cc-owner #clock-1.checkers-clock-critical,
body.warcaby-console.chess-console.cc-owner #clock-2.checkers-clock-critical{
 color:var(--checkers-clock-shade,#5f2b32)!important;
 transition:color .2s linear;
 transform-origin:center;
}
body.warcaby-console .checkers-clock-pulse-twice{
 animation:checkers-clock-double-pulse 1s ease-in-out 1;
}
body.warcaby-console .checkers-clock-pulse-once{
 animation:checkers-clock-single-pulse .56s ease-in-out 1;
}
@keyframes checkers-clock-double-pulse{
 0%,35%,70%,100%{transform:scale(1);text-shadow:none}
 18%,53%{transform:scale(1.16);text-shadow:0 0 7px currentColor}
}
@keyframes checkers-clock-single-pulse{
 0%,100%{transform:scale(1);text-shadow:none}
 50%{transform:scale(1.16);text-shadow:0 0 7px currentColor}
}
@media(prefers-reduced-motion:reduce){
 body.warcaby-console .checkers-clock-pulse-twice,
 body.warcaby-console .checkers-clock-pulse-once{animation:none!important}
}
/* Seat-to-play dialog is independent of board and clock geometry. */
body.warcaby-console .checkers-newgame-blocker[hidden]{display:none!important}
body.warcaby-console .checkers-newgame-blocker{
 position:fixed;inset:0;z-index:100120;display:grid;place-items:center;
 padding:18px;background:rgba(0,25,30,.77)
}
body.warcaby-console .checkers-newgame-card{
 width:min(470px,100%);box-sizing:border-box;padding:28px 24px;
 border-radius:18px;border:1px solid #d8c9a9;
 background:#fff8ea;color:#073f43;text-align:center;
 box-shadow:0 22px 75px #00191e8c;font:15px/1.6 system-ui,sans-serif
}
body.warcaby-console .checkers-newgame-card h2{
 margin:0 0 12px;font:800 23px/1.3 system-ui,sans-serif;color:#073f43
}
body.warcaby-console .checkers-newgame-card p{margin:0 0 24px;font-weight:650}
body.warcaby-console .checkers-newgame-close{
 min-height:42px;border:0;border-radius:9px;padding:9px 28px;
 background:#006d6c;color:#fff;font:750 14px system-ui,sans-serif;cursor:pointer
}
body.warcaby-console .checkers-newgame-close:focus-visible{outline:3px solid #eaa83a;outline-offset:3px}
body.warcaby-console.chess-console.cc-owner .checkers-color-confirmation[hidden]{display:none!important}
body.warcaby-console.chess-console.cc-owner .checkers-color-confirmation:not([hidden]){
 position:fixed;z-index:100011;left:50%;bottom:clamp(20px,6vh,60px);
 transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);
 box-sizing:border-box;padding:11px 20px;border-radius:12px;border:1px solid #a5d6d1;
 box-shadow:0 8px 25px #001e233d;background:#075c5f;color:white;
 font:700 14px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif;
 pointer-events:none;text-align:center
}

body.warcaby-console.chess-console.cc-owner .checkers-start-colors{
 display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:12px
}
body.warcaby-console.chess-console.cc-owner .checkers-start-colors button{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:9px;min-height:104px;border:1px solid #d2c2a2;border-radius:12px;
 background:#f2e9d6;color:#103f43;cursor:pointer;
 font:750 15px system-ui,-apple-system,'Segoe UI',sans-serif
}
body.warcaby-console.chess-console.cc-owner .checkers-start-colors button:hover{
 border-color:#087d7e;background:#e3f1ed
}
body.warcaby-console.chess-console.cc-owner .checkers-start-colors button:focus-visible{
 outline:3px solid #087d7e;outline-offset:2px
}
body.warcaby-console.chess-console.cc-owner .checkers-choice-pawn{
 display:block;width:48px;height:48px;box-sizing:border-box;border-radius:50%;
 border:3px solid #7c9999;
 box-shadow:0 3px 6px #002e3036,inset 0 0 0 5px #ffffff55,inset 0 0 0 7px #496e6e66
}
body.warcaby-console.chess-console.cc-owner .checkers-choice-pawn.white{
 background:radial-gradient(circle at 35% 26%,#fff 0%,#f1f4f2 58%,#c1cecc 100%)
}
body.warcaby-console.chess-console.cc-owner .checkers-choice-pawn.black{
 background:radial-gradient(circle at 35% 26%,#555 0%,#252626 54%,#0a0b0d 100%);
 border-color:#45585b;box-shadow:0 3px 6px #002e3036,inset 0 0 0 5px #9db5b522,inset 0 0 0 7px #293536
}

body.warcaby-console.chess-console.cc-owner .checkers-start-gate[hidden]{display:none!important}
body.warcaby-console.chess-console.cc-owner .checkers-start-gate:not([hidden]){
 position:fixed;inset:0;z-index:100010;display:grid;place-items:center;
 padding:16px;box-sizing:border-box;background:rgba(0,23,26,.58);
}
body.warcaby-console.chess-console.cc-owner .checkers-start-card{
 width:min(440px,100%);max-height:calc(100dvh - 32px);overflow:auto;
 box-sizing:border-box;border:1px solid #d3c6a6;border-radius:18px;
 background:#fff7e7;color:#0a3a3d;
 box-shadow:0 20px 60px rgba(0,17,20,.38);padding:clamp(22px,4vw,36px);
 text-align:center;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;
}
body.warcaby-console.chess-console.cc-owner .checkers-start-card {
 position:relative;
}
body.warcaby-console.chess-console.cc-owner .checkers-start-close{
 position:absolute;top:10px;right:10px;z-index:1;
 width:34px;height:34px;padding:0;border:1px solid #d3c6a6;
 border-radius:9px;background:#fff8ea;color:#124348;
 font:700 24px/1 system-ui,-apple-system,'Segoe UI',sans-serif;
 cursor:pointer;
}
body.warcaby-console.chess-console.cc-owner .checkers-start-close:hover{
 background:#ede5d2;
}
body.warcaby-console.chess-console.cc-owner .checkers-start-close:focus-visible{
 outline:2px solid #0b6a69;outline-offset:2px;
}
body.warcaby-console.chess-console.cc-owner .checkers-start-card h2{
 margin:0 0 12px;font-weight:800;font-size:clamp(19px,2.6vw,26px);line-height:1.25;
}
body.warcaby-console.chess-console.cc-owner .checkers-start-card p{
 margin:0 0 22px;font-weight:450;font-size:14px;line-height:1.55;color:#375556;
}
body.warcaby-console.chess-console.cc-owner #checkers-start-button{
 min-height:44px;padding:12px 24px;border:0;border-radius:10px;
 background:#006d71;color:#fff;font:750 15px system-ui,-apple-system,'Segoe UI',sans-serif;
 cursor:pointer;
}
body.warcaby-console.chess-console.cc-owner #checkers-start-button:hover{background:#005b5e}
body.warcaby-console.chess-console.cc-owner #checkers-start-button:focus-visible{
 outline:2px solid #083c42;outline-offset:3px
}

html:root.checkers-shell-loading,body.warcaby-console.checkers-shell-loading{background:#002529!important}
body.warcaby-console.checkers-shell-loading>#game{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
body.warcaby-console #checkers-shell-fallback{display:none!important}
body.warcaby-console.checkers-shell-loading #checkers-shell-fallback{
 position:fixed;inset:0;z-index:10000;display:flex!important;align-items:center;justify-content:center;
 visibility:visible!important;opacity:0;animation:checkers-shell-timeout 1ms steps(1,end) 12s forwards;
 padding:20px;background:#002529;color:#f8f4e6;font:600 16px/1.45 system-ui,sans-serif;text-align:center
}
@keyframes checkers-shell-timeout{to{opacity:1}}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus){
 display:block!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;
 min-height:100dvh!important;height:100dvh!important;overflow:hidden!important;background:#002529!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea{
 display:grid!important;box-sizing:border-box!important;width:100%!important;height:100%!important;
 min-height:0!important;margin:0!important;max-width:none!important;overflow:hidden!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.sidebar{display:none!important}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.players,
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.premium-quick-links,
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.state,
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.bottom{display:none!important}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.arena{
 display:flex!important;min-width:0!important;min-height:0!important;align-items:stretch!important;justify-content:center!important;
 width:100%!important;height:100%!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .board-center{
 display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:stretch!important;
 width:100%!important;height:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;
 margin:0!important;padding:0!important;box-sizing:border-box!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .boardtop{display:none!important}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .boardframe{
 flex:0 1 auto!important;aspect-ratio:1!important;width:100%!important;max-width:100%!important;height:auto!important;
 max-height:100%!important;min-width:0!important;margin:0 auto!important;padding:0!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) #board.checkers-grid{
 width:100%!important;height:100%!important;aspect-ratio:1!important;margin:0!important;padding:0!important;
 border:0!important;border-radius:0!important;box-shadow:none!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .side-dock>.sidebar{
 display:block!important;position:static!important;flex:0 0 auto!important;order:1!important;
 width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;
 margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;
 overflow:visible!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .side-dock>.sidebar>*:not(.mode){display:none!important}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus):not(.console-hide-mode) .side-dock .checkers-owner-mode{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;
 margin:0!important;padding:4px!important;border:1px solid var(--cc-line)!important;
 border-radius:15px!important;background:var(--cc-soft)!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .checkers-owner-mode>.mode-choice{
 display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:10px!important;
 height:60px!important;min-height:60px!important;min-width:0!important;margin:0!important;padding:4px 8px!important;
 color:var(--cc-ink)!important;background:transparent!important;border:0!important;border-radius:10px!important;
 box-shadow:none!important;font:700 16px/1.1 system-ui,sans-serif!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .checkers-owner-mode>.mode-choice.active,
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .checkers-owner-mode>.mode-choice[aria-pressed="true"]{
 background:var(--cc-accent)!important;color:#fff!important
}
body.warcaby-console.chess-console.cc-owner .checkers-owner-mode .cc-mode-label{font:inherit;white-space:normal;text-align:center;overflow-wrap:normal}
body.warcaby-console.chess-console.cc-owner .checkers-owner-mode svg{width:23px;height:23px;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:1.7}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .checkers-owner-mode>.mode-choice:focus-visible{outline:2px solid var(--cc-accent)!important;outline-offset:-3px!important}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .checkers-owner-mode>.mode-choice:hover:not(.active):not([aria-pressed="true"]){background:var(--cc-surface)!important}
@media(max-width:600px){
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .checkers-owner-mode>.mode-choice{font-size:13px!important}
 body.warcaby-console.chess-console.cc-owner .checkers-owner-mode svg{width:17px;height:17px}
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .side-dock>.cc-top .players{display:grid!important;position:static!important}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .side-dock>.cc-top .players .player .cc-side{
 display:block;font-size:13px;font-weight:650;color:var(--cc-ink)
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .side-dock>.cc-top .players .player strong:not(.player-clock){
 position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .side-dock>.cc-top .player-clock{
 display:block!important;font-variant-numeric:tabular-nums;font-weight:800!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .side-dock>.cc-top .player-clock[hidden]{display:none!important}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .side-dock>.chess-reference-actions{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;order:2!important;
 padding:5px 0!important;margin:0!important;gap:0!important;border:0!important;box-shadow:none!important;background:none!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .checkers-owner-action{
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 min-width:0;gap:5px;padding:8px 2px;border:0;border-right:1px solid var(--cc-line);background:none;
 color:var(--cc-ink);font:650 13px/1.2 system-ui,sans-serif;cursor:pointer
}
body.warcaby-console.chess-console.cc-owner #game .checkers-owner-action:last-child{border-right:0}
body.warcaby-console.chess-console.cc-owner #game .checkers-owner-action svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8}
body.warcaby-console.chess-console.cc-owner #game .checkers-owner-action:disabled{opacity:.42;cursor:not-allowed}
/* Split only the fourth existing action column: Cofnij above Remis. */
body.warcaby-console.chess-console.cc-owner #game .checkers-undo-draw{
 display:grid;grid-template-rows:1fr 1fr;min-width:0;min-height:0
}
body.warcaby-console.chess-console.cc-owner #game .checkers-undo-draw .checkers-owner-action{
 display:flex!important;flex-direction:row!important;gap:4px!important;
 padding:3px 1px!important;border:0!important;font-size:11px!important;min-height:28px
}
body.warcaby-console.chess-console.cc-owner #game .checkers-undo-draw .checkers-owner-action+.checkers-owner-action{
 border-top:1px solid var(--cc-line)!important
}
body.warcaby-console.chess-console.cc-owner #game .checkers-undo-draw .checkers-owner-action svg{
 width:17px!important;height:17px!important;flex:none!important
}
body.warcaby-console.chess-console.cc-owner #game .checkers-draw-banner:not([hidden]){
 order:3;display:grid;gap:5px;padding:7px 10px;border:1px solid var(--cc-line);
 border-radius:8px;background:var(--cc-soft);color:var(--cc-ink);font:600 12px/1.3 system-ui,sans-serif
}
body.warcaby-console.chess-console.cc-owner #game .checkers-draw-banner[hidden]{display:none!important}
body.warcaby-console.chess-console.cc-owner #game .checkers-draw-banner .checkers-draw-choices{display:flex;gap:6px}
body.warcaby-console.chess-console.cc-owner #game .checkers-draw-banner .checkers-draw-choices[hidden]{display:none!important}
body.warcaby-console.chess-console.cc-owner #game .checkers-draw-banner button{
 flex:1;min-height:30px;border:1px solid var(--cc-line);border-radius:6px;
 background:var(--cc-bg);color:var(--cc-ink);font:700 12px system-ui,sans-serif;cursor:pointer
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .side-dock>.checkers-owner-status{
 order:3!important;min-height:0!important;margin:0!important;padding:4px 2px!important;
 background:transparent!important;border:0!important;box-shadow:none!important;color:var(--cc-muted)!important;
 font:550 12px/1.35 system-ui,sans-serif!important;text-align:center!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) #match-panel{
 order:4!important;position:relative!important;display:flex!important;flex-direction:column!important;min-height:215px!important;
 background:var(--cc-surface)!important;border:1px solid var(--cc-line)!important;border-radius:13px!important;overflow:hidden!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) #match-panel>.dock-header,
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) #match-panel>.replay-shortcut{display:none!important}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .dock-tabs{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;flex:0 0 auto!important;
 width:100%!important;margin:0!important;padding:0!important;gap:0!important;
 background:var(--cc-surface)!important;border-bottom:1px solid var(--cc-line)!important;border-radius:0!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .dock-tab,
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .checkers-info-tab{
 display:flex!important;align-items:center!important;justify-content:center!important;gap:7px;
 width:100%!important;height:48px!important;margin:0!important;padding:4px 6px!important;
 background:transparent!important;color:var(--cc-ink)!important;border:0!important;border-radius:0!important;
 font:700 15px/1.15 system-ui,sans-serif!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .dock-tab.active,
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .checkers-info-tab.active{background:var(--cc-accent)!important;color:white!important}
body.warcaby-console.chess-console.cc-owner .dock-tab .chat-led{display:none!important}
body.warcaby-console.chess-console.cc-owner .checkers-info-tab svg{height:20px;width:20px;fill:none;stroke:currentColor;stroke-width:1.8}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) #moves-panel,
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) #chat-panel,
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) #checkers-owner-info{
 flex:1 1 auto!important;min-height:0!important;margin:0!important;padding:10px!important;overflow:auto!important;
 background:var(--cc-surface)!important;color:var(--cc-ink)!important;border:0!important;box-shadow:none!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) #moves-panel[hidden],
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) #chat-panel[hidden],
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) #checkers-owner-info[hidden]{display:none!important}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) #moves-list{
 display:block!important;overflow:auto!important;margin:0!important;padding:0 6px!important;
 max-height:100%!important;list-style:decimal inside!important;text-align:left!important;color:var(--cc-ink)!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) #moves-list li{
 padding:8px;border-bottom:1px solid var(--cc-line);font:550 13px/1.4 system-ui,sans-serif;color:var(--cc-ink)
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) #match-panel>.mini-chat{
 flex:0 0 auto!important;min-height:0!important;margin:0!important;padding:7px!important;background:var(--cc-surface)!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) #match-panel>.mini-chat[hidden]{display:none!important}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .side-dock>.game-tools.checkers-toolbar{display:none!important}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .side-dock>.cc-tools{order:5!important}
body.warcaby-console.chess-console.cc-owner #game .checkers-owner-sheet #training-settings,
body.warcaby-console.chess-console.cc-owner #game .checkers-owner-sheet #online-settings{
 display:block!important;position:static!important;box-sizing:border-box!important;
 width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;
 margin:0!important;padding:0!important;overflow:visible!important;background:transparent!important;
 border:0!important;box-shadow:none!important;color:var(--cc-ink)!important
}
body.warcaby-console.chess-console.cc-owner #game .checkers-owner-sheet :is(label,select,input,button){
 max-width:100%!important;box-sizing:border-box!important
}
body.warcaby-console.chess-console.cc-owner #game .checkers-owner-sheet :is(input,select){
 width:100%!important;min-height:40px!important;margin:4px 0 8px!important;padding:6px 8px!important;
 background:var(--cc-surface)!important;color:var(--cc-ink)!important;border:1px solid var(--cc-line)!important;border-radius:8px!important
}
body.warcaby-console.chess-console.cc-owner #game .checkers-owner-sheet :is(#training-settings,#online-settings)[hidden]{display:none!important}
body.warcaby-console.chess-console.cc-owner #game #cc-sheet-online :is(label[for="create-room-friend"],#create-room-friend){display:block!important}
body.warcaby-console.chess-console.cc-owner #game .checkers-owner-sheet .cc-sheet-body{overflow:auto!important}
body.warcaby-console.chess-console.cc-owner #game .checkers-owner-sheet .cc-sheet-body>*{flex-shrink:0!important}
body.warcaby-console.chess-console.cc-owner #game .cc-tool svg{fill:none}
body.warcaby-console.chess-console.cc-owner[data-checkers-board="wood"] #board .square.light{background:#e9d3ac!important}
body.warcaby-console.chess-console.cc-owner[data-checkers-board="wood"] #board .square.dark{background:#a37b55!important}
body.warcaby-console.chess-console.cc-owner[data-checkers-board="slate"] #board .square.light{background:#dfe3e1!important}
body.warcaby-console.chess-console.cc-owner[data-checkers-board="slate"] #board .square.dark{background:#74848a!important}
body.warcaby-console.chess-console.cc-owner[data-checkers-board="azure"] #board .square.light{background:#e3edf0!important}
body.warcaby-console.chess-console.cc-owner[data-checkers-board="azure"] #board .square.dark{background:#689bae!important}
body.warcaby-console.chess-console.cc-owner[data-checkers-pieces="flat"] #board .piece{box-shadow:none!important}
body.warcaby-console.chess-console.cc-owner[data-checkers-pieces="flat"] #board .piece:before{background:none!important}
body.warcaby-console.chess-console.cc-owner[data-checkers-pieces="wood"] #board .piece.white{background:#f2d0a3!important}
body.warcaby-console.chess-console.cc-owner[data-checkers-pieces="wood"] #board .piece.black{background:#574537!important}
body.warcaby-console.chess-console.cc-owner #game.game-focus>.boardarea>.side-dock{display:none!important}
@media(max-width:800px){
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus){height:auto!important;overflow:visible!important}
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;height:auto!important;
  padding:8px!important;gap:10px!important;overflow:visible!important
 }
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.arena{order:3!important;min-height:0!important;height:auto!important}
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .board-center{height:auto!important;min-height:0!important}
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .boardframe{width:min(100%,calc(100dvw - 16px))!important;height:auto!important}
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.side-dock{order:4!important}
}


/* Warcaby owner console visual parity — no alterations to chess or checkers rules. */
/* Owner dark Szachy canvas #002529 (the existing chess boot/page ink), NOT the
   pale mint/light console variant previously copied here. Scope to Warcaby.
   Never change board geometry, the separate ivory control rail, or chat. */
html:root,
html:root.checkers-shell-loading,
body.warcaby-console.chess-console.cc-owner,
body.warcaby-console.chess-console.cc-owner.checkers-shell-loading,
body.warcaby-console.chess-console.cc-owner:not(.checkers-shell-loading){
 background:#002529!important;
}
body.warcaby-console.chess-console.cc-owner::before,
body.warcaby-console.chess-console.cc-owner::after{
 background:none!important;box-shadow:none!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus),
body.warcaby-console.chess-console.cc-owner #game.game-focus{
 background:#002529!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;text-shadow:none!important;
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea,
body.warcaby-console.chess-console.cc-owner #game.game-focus>.boardarea{
 background:#002529!important;border:0!important;border-radius:0!important;box-shadow:none!important
}
@media(max-width:800px){
 html:root,
 html:root.checkers-shell-loading,
 body.warcaby-console.chess-console.cc-owner,
 body.warcaby-console.chess-console.cc-owner.checkers-shell-loading,
 body.warcaby-console.chess-console.cc-owner:not(.checkers-shell-loading),
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus),
 body.warcaby-console.chess-console.cc-owner #game.game-focus,
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea,
 body.warcaby-console.chess-console.cc-owner #game.game-focus>.boardarea{
  background:#002529!important
 }
}
body.warcaby-console.chess-console.cc-owner #game::before,
body.warcaby-console.chess-console.cc-owner #game::after{
 content:none!important;display:none!important;background:none!important;box-shadow:none!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea::before,
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea::after{
 display:none!important;content:none!important
}
@media(min-width:801px){
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.cc-site-nav a{
  color:#164c50!important
 }
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.cc-site-nav a:hover{
  color:#057a7e!important;border-bottom-color:#057a7e!important
 }
}
body.warcaby-console #board .square{position:relative!important}
body.warcaby-console #board .checkers-coordinate,
body.warcaby-console .checkers-replay-board .checkers-coordinate{
 position:absolute!important;z-index:4!important;pointer-events:none!important;user-select:none!important;
 font:750 clamp(10px,1vw,13px)/1 system-ui,sans-serif!important;
 text-shadow:0 1px 1px #ffffff66!important
}
body.warcaby-console .checkers-coordinate-rank{top:3px!important;left:4px!important}
body.warcaby-console .checkers-coordinate-file{right:4px!important;bottom:3px!important}
body.warcaby-console .square.light .checkers-coordinate{color:#216363!important}
body.warcaby-console .square.dark .checkers-coordinate{color:#fff8e8!important;text-shadow:0 1px 2px #082b30cc!important}

/* Chess-style compact message bubbles. Only Warcaby, never Gomoku/chess. */
body.warcaby-console.chess-console.cc-owner #game #chat-messages{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;
}
body.warcaby-console.chess-console.cc-owner #game #chat-messages .game-chat-message{
 box-sizing:border-box!important;display:block!important;
 flex:0 0 auto!important;align-self:flex-start!important;
 width:fit-content!important;min-width:0!important;
 max-width:min(88%,calc(100% - 12px))!important;
 margin:0!important;overflow-wrap:anywhere!important;word-break:normal!important
}
body.warcaby-console.chess-console.cc-owner #game #chat-messages .game-chat-message.own{
 align-self:flex-start!important
}
/* White compose field at rest AND during mouse/keyboard focus.
   Remove only the inherited red focus ring; preserve a muted neutral border
   and a visible caret for keyboard users. */
body.warcaby-console.chess-console.cc-owner #game #chat-input,
body.warcaby-console.chess-console.cc-owner #game #chat-input:focus,
body.warcaby-console.chess-console.cc-owner #game #chat-input:focus-visible{
 background:#fff!important;color:#17383b!important;caret-color:#00595d!important;
 border:1px solid #a5b5b5!important;border-radius:8px!important;
 outline:none!important;outline-offset:0!important;box-shadow:none!important
}

/* The mandatory-capture notice was physically overlaying some landing squares.
   Keep its dismiss button usable while allowing drags through the notification. */
body.warcaby-console #checkers-capture-notice:not([hidden]){
 pointer-events:none!important
}
body.warcaby-console #checkers-capture-notice #checkers-capture-dismiss{
 pointer-events:auto!important
}
@media(min-width:801px){
 body.warcaby-console #checkers-capture-notice:not([hidden]){
  left:auto!important;right:12px!important;bottom:14px!important;
  transform:none!important;max-width:min(29vw,370px)!important
 }
}

/* No yellow frame on selected pawns. Keyboard focus remains a subtle accessible line.
   The allowed-move dots stay visible, including during a fast drag. */
body.warcaby-console.chess-console.cc-owner #board.checkers-grid .square.selected{
 box-shadow:none!important
}
body.warcaby-console.chess-console.cc-owner #board.checkers-grid .square:focus-visible{
 outline:1px solid #25898c!important;outline-offset:-1px!important
}
/* Pointer drag is visual only; rules are enforced by choose()/destinations(). */
body.warcaby-console.chess-console.cc-owner #board .square{
 touch-action:none!important
}
body.warcaby-console #board .square .piece{touch-action:none!important;user-select:none!important;-webkit-user-select:none!important}
body.warcaby-console #board .square.checkers-drag-source .piece{opacity:0!important}
body.warcaby-console.chess-console.cc-owner #board .square.checkers-drag-target{
 box-shadow:none!important
}
body.warcaby-console.chess-console.cc-owner #board .square.checkers-drag-target::before{
 content:""!important;position:absolute!important;z-index:2!important;
 width:25%!important;height:25%!important;background:#ffd06aaa!important;
 border-radius:50%!important;pointer-events:none!important
}
body.warcaby-console.chess-console.cc-owner #board .square.checkers-drag-hover{
 box-shadow:none!important;filter:brightness(1.08)!important
}
body.warcaby-console .checkers-drag-ghost{
 position:fixed!important;left:0;top:0;z-index:99999!important;visibility:visible!important;
 transform:translate(-50%,-50%)!important;pointer-events:none!important;
 width:clamp(32px,4vw,74px)!important;height:clamp(32px,4vw,74px)!important;
 margin:0!important;opacity:.92!important;filter:drop-shadow(0 4px 7px #0008)!important;
 will-change:left,top!important;touch-action:none!important
}
body.warcaby-console .checkers-drag-ghost .crown{pointer-events:none!important}

/* Same move history structure as chess: numbered rows, two columns and playback. */
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) #moves-panel:not([hidden]){
 display:flex!important;flex-direction:column!important;min-height:0!important
}
body.warcaby-console.chess-console.cc-owner #game #moves-panel .checkers-history-columns{
 display:grid!important;grid-template-columns:36px repeat(2,minmax(0,1fr))!important;
 align-items:center!important;gap:0!important;min-height:29px!important;padding:0 8px!important;
 color:#f9ffff!important;background:#087579!important;font:750 12px/1.4 system-ui,sans-serif!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) #moves-panel #moves-list.checkers-history-list{
 display:block!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;
 overflow-y:auto!important;max-height:none!important;margin:0!important;padding:0!important;
 background:#e6f2ef!important;list-style:none!important
}
body.warcaby-console.chess-console.cc-owner #moves-list .checkers-history-turn{
 display:grid!important;grid-template-columns:36px repeat(2,minmax(0,1fr))!important;
 align-items:stretch!important;min-height:38px!important;border-bottom:1px solid #c5dbd6!important;
 background:transparent!important
}
body.warcaby-console.chess-console.cc-owner #moves-list .checkers-history-turn:nth-child(even){background:#d9eae5!important}
body.warcaby-console.chess-console.cc-owner #moves-list .checkers-history-number{
 display:flex;align-items:center;padding:7px;color:#3e6666;font:700 12px/1.4 system-ui,sans-serif
}
body.warcaby-console.chess-console.cc-owner #moves-list .checkers-history-move{
 display:flex!important;align-items:center!important;min-height:35px!important;
 width:100%!important;margin:0!important;padding:5px 8px!important;
 background:transparent!important;border:0!important;border-radius:0!important;
 color:#173f42!important;font:650 13px/1.4 system-ui,sans-serif!important;
 text-align:left!important;cursor:pointer!important
}
body.warcaby-console.chess-console.cc-owner #moves-list .checkers-history-move:disabled{
 opacity:.6!important;cursor:default!important
}
body.warcaby-console.chess-console.cc-owner #moves-list .checkers-history-move[aria-current="step"]{
 background:#f3e5bd!important;color:#073f45!important;font-weight:800!important
}
body.warcaby-console.chess-console.cc-owner #moves-list .checkers-history-move:hover:not(:disabled){
 background:#cde4dd!important
}
body.warcaby-console.chess-console.cc-owner #moves-list .checkers-history-blank{display:block}
body.warcaby-console.chess-console.cc-owner #moves-panel .checkers-history-nav{
 box-sizing:border-box!important;display:grid!important;
 grid-template-columns:repeat(4,34px) minmax(0,1fr) 57px!important;
 align-items:center!important;gap:3px!important;min-height:44px!important;
 padding:4px!important;border-top:1px solid #c5dbd6!important;background:#d9eae5!important;
 flex:0 0 auto!important
}
body.warcaby-console.chess-console.cc-owner #moves-panel .checkers-history-action{
 display:flex!important;align-items:center!important;justify-content:center!important;
 min-height:34px!important;padding:4px!important;
 border:0!important;border-radius:7px!important;background:#b8d8d1!important;
 color:#0d4d50!important;font:750 14px/1 system-ui,sans-serif!important;cursor:pointer!important
}
body.warcaby-console.chess-console.cc-owner #moves-panel .checkers-history-action:disabled{
 opacity:.38!important;cursor:default!important
}
body.warcaby-console.chess-console.cc-owner #moves-panel .checkers-history-live{
 background:#08767a!important;color:#fff!important;font:750 11px/1 system-ui,sans-serif!important
}
body.warcaby-console.chess-console.cc-owner #moves-panel .checkers-history-nav-status{
 min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
 color:#315f5f!important;text-align:center!important;font:650 11px/1.3 system-ui,sans-serif!important
}
body.warcaby-console.chess-console.cc-owner #moves-panel .checkers-history-empty{
 margin:10px!important;color:#335f60!important;font:600 13px/1.5 system-ui,sans-serif!important
}
body.warcaby-console.chess-console.cc-owner #moves-panel .history-footer{
 flex:0 0 auto!important;background:#e6f2ef!important;color:#315f5f!important
}
/* Read-only overlay: the active #board and all its original listeners are retained. */
body.warcaby-console #game .boardframe{position:relative!important}
body.warcaby-console .checkers-replay-board{
 position:absolute!important;inset:0!important;z-index:10!important;
 display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;
 grid-template-rows:repeat(8,minmax(0,1fr))!important;
 width:100%!important;height:100%!important;aspect-ratio:1!important;
 padding:0!important;margin:0!important;pointer-events:auto!important;
 border:0!important;box-shadow:none!important;overflow:hidden!important
}
body.warcaby-console .checkers-replay-board[hidden]{display:none!important}
body.warcaby-console .checkers-replay-board .square{
 position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
 margin:0!important;padding:0!important;border:0!important;pointer-events:none!important
}
body.warcaby-console .checkers-replay-board .square.light{background:#e9dfcc!important}
body.warcaby-console .checkers-replay-board .square.dark{background:#3b8084!important}
body.warcaby-console .checkers-replay-board .square .piece{pointer-events:none!important}
body.warcaby-console .checkers-replay-board .piece .crown{pointer-events:none!important}

/* Identical compact mobile topbar structure to the current chess console. */
body.warcaby-console .checkers-mobile-heading{display:none}
@media(max-width:800px){
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea{padding:0!important;gap:10px!important}
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.cc-site-nav{display:none!important}
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.checkers-mobile-heading{
  box-sizing:border-box!important;display:flex!important;order:0!important;
  align-items:center!important;justify-content:space-between!important;
  position:relative!important;z-index:50!important;
  width:100%!important;min-height:60px!important;height:60px!important;
  padding:5px 9px!important;margin:0!important;gap:5px!important;
  background:#00595d!important;color:#fff!important;border:0!important;border-radius:0!important;
  box-shadow:none!important
 }
 body.warcaby-console .checkers-mobile-brand-line{
  display:flex;flex:1 1 auto;align-items:center;gap:6px;min-width:0;white-space:nowrap;overflow:hidden
 }
 body.warcaby-console .checkers-mobile-brand-icon{display:flex;color:#fff;flex:0 0 auto}
 body.warcaby-console .checkers-mobile-brand-icon svg{
  display:block;width:26px;height:26px;fill:currentColor
 }
 body.warcaby-console .checkers-mobile-brand-link{
  flex:0 1 auto;min-width:0;color:#fff!important;text-decoration:none!important;
  font:800 clamp(13px,3.8vw,19px)/1.1 system-ui,sans-serif!important;white-space:nowrap!important
 }
 body.warcaby-console .checkers-mobile-brand-divider{
  flex:0 0 1px;height:27px;margin:0 3px;background:#bde4e0
 }
 body.warcaby-console .checkers-mobile-game-name{
  color:#fff!important;font:700 clamp(13px,3.8vw,18px)/1.1 system-ui,sans-serif!important
 }
 body.warcaby-console .checkers-mobile-menu{position:static;flex:0 0 35px}
 body.warcaby-console .checkers-mobile-menu-toggle{
  display:flex;align-items:center;justify-content:center;box-sizing:border-box;
  height:40px;width:35px;cursor:pointer;list-style:none;color:#fff;background:transparent;border:0
 }
 body.warcaby-console .checkers-mobile-menu-toggle::-webkit-details-marker{display:none}
 body.warcaby-console .checkers-mobile-menu-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5}
 body.warcaby-console .checkers-mobile-menu-panel{
  position:absolute;top:100%;right:5px;z-index:110;display:grid;min-width:190px;
  padding:4px;background:#06454b;border:1px solid #337e7c;box-shadow:0 4px 12px #002c3033
 }
 body.warcaby-console .checkers-mobile-menu:not([open]) .checkers-mobile-menu-panel{display:none!important}
 body.warcaby-console .checkers-mobile-menu-panel a{
  display:block;min-height:37px;padding:10px 12px;
  color:#fff!important;text-decoration:none;font:600 13px/1.3 system-ui,sans-serif
 }
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.arena{order:3!important}
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus)>.boardarea>.side-dock{order:4!important}
 body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .boardframe{
  width:min(100%,calc(100dvw - 16px))!important
 }
 body.warcaby-console.chess-console.cc-owner #moves-panel .checkers-history-nav{
  grid-template-columns:repeat(4,30px) minmax(0,1fr) 53px!important
 }
}

/* Real colour-coded miniature checkers sit to the LEFT of the existing clock.
   Positioning is absolute: no reflow and no changes to the clock/card dimensions. */
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .cc-top .checkers-clock-wrap{
 position:relative!important;display:inline-block!important;flex:0 0 auto!important;
 width:clamp(75.9px,6.6vw,99px)!important;max-width:100%!important;
 min-width:0!important;margin:0!important;padding:0!important;line-height:1!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .cc-top .checkers-clock-wrap:has(>.player-clock[hidden]){
 display:none!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .cc-top .checkers-clock-wrap>.player-clock{
 display:block!important;max-width:100%!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .cc-top .checkers-turn-token{
 position:absolute!important;left:-19px!important;top:50%!important;
 transform:translateY(-50%)!important;width:15px!important;height:15px!important;
 box-sizing:border-box!important;flex:none!important;border-radius:50%!important;
 border:1px solid #617a7a!important;outline:3px solid transparent!important;outline-offset:2px!important;
 pointer-events:none!important;z-index:1!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .cc-top .checkers-turn-token.white{
 background:radial-gradient(circle at 34% 28%,#fff 0%,#f0f2ec 62%,#b8c3c0 100%)!important;
 box-shadow:inset 0 1px 2px #fff!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .cc-top .checkers-turn-token.black{
 background:radial-gradient(circle at 34% 28%,#555 0%,#252525 46%,#080808 100%)!important;
 box-shadow:inset 0 1px 2px #8886!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .cc-top .checkers-turn-token.is-turn{
 outline-color:#087d7e!important
}
/* Only clock typography and names: preserve the original clock boxes and player card dimensions. */
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .cc-top .player-clock{
 /* Retain the prior 3.3em box width and original digit line-box height as pixels,
    calculated from its unchanged previous font clamp(23px,2vw,30px). */
 width:clamp(75.9px,6.6vw,99px)!important;
 min-width:clamp(75.9px,6.6vw,99px)!important;
 min-height:clamp(26.15px,calc(2.1vw + 2px),33.5px)!important;
 font-size:clamp(21px,1.7vw,27px)!important
}
body.warcaby-console.chess-console.cc-owner #game:not(.game-focus) .cc-top .players>.player>.cc-side{
 display:block!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;text-align:center!important;
 color:var(--cc-ink)!important;text-shadow:none!important;
 font:600 11px/1.1 system-ui,-apple-system,'Segoe UI',sans-serif!important
}


body.warcaby-console.chess-console.cc-owner #checkers-bots-overlay[hidden]{display:none!important}
body.warcaby-console.chess-console.cc-owner #checkers-bots-overlay:not([hidden]){position:fixed!important;inset:0!important;z-index:92000!important;background:rgba(0,33,36,.78)!important;display:grid!important;place-items:center!important;padding:12px!important;box-sizing:border-box!important}
body.warcaby-console.chess-console.cc-owner .checkers-bots-dialog{width:min(1180px,100%);max-height:96dvh;overflow:auto;box-sizing:border-box;background:#006362;color:#063f43;border:1px solid #008b8a;border-radius:12px;font-family:Arial,"Segoe UI",sans-serif}
body.warcaby-console.chess-console.cc-owner .checkers-bots-heading{display:flex;align-items:center;gap:28px;background:#00494a;color:white;padding:12px 24px;min-height:62px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-brand{font-size:27px;font-weight:900;font-style:italic;letter-spacing:-1px;color:white}
body.warcaby-console.chess-console.cc-owner .checkers-bots-brand span{color:#e82d35}
body.warcaby-console.chess-console.cc-owner .checkers-bots-spacer{flex:1}
body.warcaby-console.chess-console.cc-owner #checkers-bots-close{border:1px solid #46c4bf;background:transparent;color:white;border-radius:9px;padding:5px 14px;font-size:27px;cursor:pointer}
body.warcaby-console.chess-console.cc-owner .checkers-bots-body{margin:14px;background:white;border-radius:12px;padding:22px 18px 18px}
body.warcaby-console.chess-console.cc-owner #checkers-bots-title{font:800 clamp(24px,2.4vw,36px)/1.2 Arial!important;color:#073f43;margin:0 0 6px!important}
body.warcaby-console.chess-console.cc-owner #checkers-bots-help{margin:0 0 20px;font-size:14px;color:#30585a}
body.warcaby-console.chess-console.cc-owner .checkers-bots-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-height:none;overflow:visible}
body.warcaby-console.chess-console.cc-owner .checkers-bots-group{border:1px solid #a5d2d1;border-radius:12px;padding:0 8px 8px;min-width:0;background:#f6fbfb;display:block}
body.warcaby-console.chess-console.cc-owner .checkers-bots-group h3{background:#006968;color:white;font:700 22px/1.2 Arial;text-align:center;margin:0 -8px;padding:16px 6px 2px;border-radius:11px 11px 0 0}
body.warcaby-console.chess-console.cc-owner .checkers-bots-group>p{background:#006968;color:white;text-align:center;margin:0 -8px 9px;padding:0 6px 13px;font-size:13px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-card{width:100%;display:flex;align-items:center;gap:10px;border:1px solid #dce9e9;background:white;border-radius:10px;margin:6px 0;padding:7px 9px;min-height:56px;color:#073f43;text-align:left;font:700 16px Arial;cursor:pointer;box-sizing:border-box}
body.warcaby-console.chess-console.cc-owner .checkers-bots-card[aria-pressed="true"]{background:#d4f7f2;border:2px solid #008d88;padding:6px 8px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-avatar{width:40px;height:40px;display:grid;place-items:center;flex-shrink:0;border-radius:50%;background:#d2e9e7;color:#006765;font:700 20px Arial}
body.warcaby-console.chess-console.cc-owner .checkers-bots-card small{margin-left:auto;background:#008b84;color:white;border-radius:20px;padding:4px 8px;font-size:12px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-config{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:18px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-profile{display:flex;align-items:center;gap:10px;flex:1 1 180px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-profile h3{margin:0;color:#073f43;font-size:17px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-profile p{margin:3px 0;font-size:12px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-colors{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border:1px solid #bdd7d6;border-radius:11px;padding:12px;background:#f5fafa}
body.warcaby-console.chess-console.cc-owner .checkers-bots-colors legend{font-weight:800}
body.warcaby-console.chess-console.cc-owner .checkers-bots-colors label{display:flex;gap:6px;align-items:center}
body.warcaby-console.chess-console.cc-owner .checkers-bots-colors input{accent-color:#007e79}
body.warcaby-console.chess-console.cc-owner .checkers-bots-options{display:flex;gap:12px;flex-wrap:wrap}
body.warcaby-console.chess-console.cc-owner .checkers-bots-options label{display:grid;gap:4px;font-size:12px;font-weight:700}
body.warcaby-console.chess-console.cc-owner .checkers-bots-options select{min-height:36px;background:#fff;color:#063f43;border:1px solid #bdd7d6;border-radius:8px;padding:5px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-note{flex-basis:100%;margin:0;font-size:12px;color:#537175}
body.warcaby-console.chess-console.cc-owner #checkers-bots-status{flex-basis:100%;margin:0;min-height:14px;color:#a43f3f;font-size:12px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-actions{display:flex;justify-content:center;gap:18px;width:100%}
body.warcaby-console.chess-console.cc-owner .checkers-bots-actions button{min-height:52px;padding:10px 26px;border:1px solid #a7c3c3;border-radius:12px;background:#e8eff0;color:#064247;font:800 17px Arial;cursor:pointer}
body.warcaby-console.chess-console.cc-owner #checkers-bots-play{background:#007b76;color:white;border-color:#007b76;min-width:260px}
body.warcaby-console.chess-console.cc-owner #checkers-bots-play:disabled{opacity:.55;cursor:default}
body.warcaby-console.chess-console.cc-owner #checkers-bots-overlay :is(button,select,input):focus-visible{outline:3px solid #daaa48;outline-offset:2px}
@media(max-width:900px){body.warcaby-console.chess-console.cc-owner .checkers-bots-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){body.warcaby-console.chess-console.cc-owner .checkers-bots-list{grid-template-columns:1fr}body.warcaby-console.chess-console.cc-owner .checkers-bots-body{padding:14px}body.warcaby-console.chess-console.cc-owner .checkers-bots-heading{padding:12px;gap:12px}body.warcaby-console.chess-console.cc-owner .checkers-bots-actions{flex-wrap:wrap}body.warcaby-console.chess-console.cc-owner .checkers-bots-actions button{width:100%}}

/* Fit the entire picker into ordinary laptop viewports, without clipping its header. */
body.warcaby-console.chess-console.cc-owner #checkers-bots-overlay:not([hidden]){padding:clamp(6px,1vh,12px)!important}
body.warcaby-console.chess-console.cc-owner .checkers-bots-dialog{max-height:calc(100dvh - 12px);width:min(1180px,100%);overflow-y:auto;overscroll-behavior:contain}
body.warcaby-console.chess-console.cc-owner .checkers-bots-heading{min-height:42px;padding:7px 18px;gap:18px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-brand{font-size:22px}
body.warcaby-console.chess-console.cc-owner #checkers-bots-close{font-size:22px;padding:2px 10px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-body{margin:8px;padding:12px 16px}
body.warcaby-console.chess-console.cc-owner #checkers-bots-title{font-size:clamp(20px,2vw,28px)!important;margin:0 0 3px!important}
body.warcaby-console.chess-console.cc-owner #checkers-bots-help{margin-bottom:10px;font-size:13px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-group h3{font-size:19px;padding:9px 6px 2px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-group>p{padding-bottom:7px;margin-bottom:6px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-card{min-height:43px;padding:4px 8px;margin:4px 0;font-size:14px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-card[aria-pressed="true"]{padding:3px 7px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-avatar{width:32px;height:32px;font-size:22px;line-height:1}
body.warcaby-console.chess-console.cc-owner .checkers-bots-config{margin-top:10px;gap:9px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-colors{padding:6px 10px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-actions{gap:12px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-actions button{min-height:40px;padding:7px 18px;font-size:15px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-note{font-size:11px}
body.warcaby-console.chess-console.cc-owner #checkers-bots-status{min-height:0}
@media(max-height:720px) and (min-width:901px){body.warcaby-console.chess-console.cc-owner .checkers-bots-card{min-height:36px;padding:2px 7px;margin:3px 0}body.warcaby-console.chess-console.cc-owner .checkers-bots-card[aria-pressed="true"]{padding:1px 6px}body.warcaby-console.chess-console.cc-owner .checkers-bots-avatar{width:29px;height:29px;font-size:20px}body.warcaby-console.chess-console.cc-owner .checkers-bots-group h3{padding-top:6px}}

body.warcaby-console.chess-console.cc-owner .checkers-bots-colors{min-width:0;flex:0 1 auto;gap:8px;padding:7px 12px;white-space:nowrap}
body.warcaby-console.chess-console.cc-owner .checkers-bots-colors legend{font-size:15px;line-height:1.2;padding:0 5px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-colors label{white-space:nowrap;font-size:14px;gap:5px}
body.warcaby-console.chess-console.cc-owner .checkers-bots-colors input{margin:0}
@media(max-width:650px){body.warcaby-console.chess-console.cc-owner .checkers-bots-colors{width:100%;justify-content:center}}

body.warcaby-console.chess-console.cc-owner .checkers-bots-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
body.warcaby-console.chess-console.cc-owner .checkers-bots-avatar img[hidden]{display:none}
body.warcaby-console.chess-console.cc-owner .checkers-bots-avatar img:not([hidden])+span{display:none}


/* Bot chat: text always wraps inside the console; old messages remain scrollable without visible bars. */
body.warcaby-console.chess-console.cc-owner #chat-messages{
 box-sizing:border-box;min-width:0;max-width:100%;overflow-x:hidden!important;overflow-y:auto!important;
 scrollbar-width:none!important;-ms-overflow-style:none!important;
}
body.warcaby-console.chess-console.cc-owner #chat-messages::-webkit-scrollbar{display:none!important;width:0;height:0}
body.warcaby-console.chess-console.cc-owner #chat-messages .game-chat-message{
 box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
 overflow-wrap:anywhere!important;word-break:normal;white-space:normal;
}
body.warcaby-console.chess-console.cc-owner #chat-messages .game-chat-message p{
 white-space:pre-wrap;overflow-wrap:anywhere!important;word-break:normal;
}
body.warcaby-console.chess-console.cc-owner #chat-messages .checkers-bot-chat-row .game-chat-message{
 width:auto!important;flex:1 1 0!important;max-width:100%!important;
}
/* Bot portrait lives in the flow, never over user messages. */
body.warcaby-console.chess-console.cc-owner #chat-messages .checkers-bot-chat-row{
 display:flex;align-items:flex-start;gap:10px;width:100%;max-width:100%;min-width:0;
 margin:0 0 12px;box-sizing:border-box;
}
body.warcaby-console.chess-console.cc-owner #chat-messages .checkers-bot-chat-portrait{
 display:block;flex:0 0 52px;width:52px;height:52px;object-fit:cover;
 border-radius:12px;border:1px solid #dfd5bd;background:#f3ecdb;
}
body.warcaby-console.chess-console.cc-owner #chat-messages .checkers-bot-chat-row > :not(img){
 flex:1 1 auto;min-width:0;max-width:calc(100% - 62px);overflow-wrap:anywhere;
 margin:0!important;
}
body.warcaby-console.chess-console.cc-owner #chat-messages > :not(.checkers-bot-chat-row){
 max-width:88%;overflow-wrap:anywhere;
}
@media(max-width:520px){
 body.warcaby-console.chess-console.cc-owner #chat-messages .checkers-bot-chat-row{gap:8px}
 body.warcaby-console.chess-console.cc-owner #chat-messages .checkers-bot-chat-portrait{
  flex-basis:42px;width:42px;height:42px;border-radius:10px;
 }
 body.warcaby-console.chess-console.cc-owner #chat-messages .checkers-bot-chat-row > :not(img){max-width:calc(100% - 50px)}
}
