/* ==========================================================================
   Xadrez: tabuleiro, peças (cores por tema), lobby, chat, relógio e avisos.
   Cada tema do painel define as variáveis --cb-* (tabuleiro) e --pc-* (peças).
   ========================================================================== */
:root {
    /* tabuleiro verde clássico */
    --cb-light: #eeeed2; --cb-dark: #769656;
    --cb-select: rgba(246, 246, 105, 0.85); --cb-last: rgba(246, 246, 105, 0.5);
    --cb-hint: rgba(20, 24, 33, 0.2); --cb-check: rgba(235, 64, 52, 0.9);
    --cb-coord-l: #769656; --cb-coord-d: #eeeed2;
    /* peças brancas */
    --pc-w-hi: #ffffff; --pc-w-mid: #f8f8f4; --pc-w-lo: #dcdcd4; --pc-w-line: #2a2a2a; --pc-w-detail: #8c8c86;
    /* peças pretas */
    --pc-b-hi: #5c5c5c; --pc-b-mid: #3f3f3f; --pc-b-lo: #242424; --pc-b-line: #0d0d0d; --pc-b-detail: #9d9d9d;
}
:root[data-theme="batman"] {
    --cb-light: #c9c3a9; --cb-dark: #343843;
    --cb-select: rgba(245, 197, 24, 0.75); --cb-last: rgba(245, 197, 24, 0.4);
    --cb-hint: rgba(245, 197, 24, 0.55); --cb-check: rgba(240, 82, 79, 0.95);
    --cb-coord-l: #343843; --cb-coord-d: #c9c3a9;
    --pc-w-hi: #f7f2df; --pc-w-mid: #e9e1c4; --pc-w-lo: #cbc19d; --pc-w-line: #15161a; --pc-w-detail: #8a8062;
    --pc-b-hi: #3d4049; --pc-b-mid: #262930; --pc-b-lo: #14161b; --pc-b-line: #f5c518; --pc-b-detail: #f5c518;
}
:root[data-theme="hellokitty"] {
    --cb-light: #fff1f6; --cb-dark: #f4a6c3;
    --cb-select: rgba(230, 15, 77, 0.4); --cb-last: rgba(230, 15, 77, 0.22);
    --cb-hint: rgba(230, 15, 77, 0.32); --cb-check: rgba(230, 15, 77, 0.85);
    --cb-coord-l: #f4a6c3; --cb-coord-d: #fff1f6;
    --pc-w-hi: #ffffff; --pc-w-mid: #fff6fa; --pc-w-lo: #ffdce9; --pc-w-line: #8e2147; --pc-w-detail: #e8789e;
    --pc-b-hi: #ff7ba0; --pc-b-mid: #ea1a54; --pc-b-lo: #b30a3a; --pc-b-line: #5e0b25; --pc-b-detail: #ffd6e3;
}

#chess-root { max-width: 1100px; margin: 0 auto; }
.chess-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.chess-me { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.chess-me b { color: var(--text); font-size: 15px; }
.chess-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chess-pill.ok { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.chess-lobby { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .chess-lobby { grid-template-columns: 1fr; } }
.chess-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; }
.chess-card + .chess-card { margin-top: 14px; }
.chess-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chess-card p.sub { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.chess-empty { padding: 22px 8px; text-align: center; color: var(--subtle); font-size: 13px; line-height: 1.6; }

.chess-player { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); }
.chess-player:first-of-type { border-top: 0; }
.chess-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px; flex: none; border: 1px solid var(--accent-line); }
.chess-pname { font-weight: 650; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chess-prate { font-size: 12px; color: var(--subtle); font-family: var(--mono); }
.chess-pinfo { flex: 1; min-width: 0; }
.chess-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; }
.chess-dot.busy { background: var(--warn); }

.chess-challenge { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--accent-line); background: var(--accent-soft); margin-bottom: 12px; animation: chess-pop .25s ease-out; }
.chess-challenge .txt { flex: 1; min-width: 160px; font-size: 13.5px; }
.chess-challenge .txt b { font-size: 14.5px; }
@keyframes chess-pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

.chess-tabs { display: flex; gap: 4px; margin: 2px 0 10px; }
.chess-tab { flex: 1; padding: 6px 4px; font-size: 12px; font-weight: 600; border-radius: var(--radius-sm); border: 1px solid var(--line); background: none; color: var(--muted); }
.chess-tab.on { background: var(--accent); border-color: transparent; color: var(--on-ink); }
.chess-rank { width: 100%; border-collapse: collapse; font-size: 13px; }
.chess-rank td { padding: 7px 4px; border-top: 1px solid var(--line); }
.chess-rank tr:first-child td { border-top: 0; }
.chess-rank td.n { color: var(--subtle); width: 24px; font-family: var(--mono); }
.chess-rank td.r { text-align: right; font-family: var(--mono); font-weight: 600; }
.chess-rank tr.me td { color: var(--accent); font-weight: 600; }

/* ---------- partida ---------- */
.chess-game { display: grid; grid-template-columns: minmax(0, 620px) minmax(280px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 960px) { .chess-game { grid-template-columns: 1fr; } }
.chess-bar { display: flex; align-items: center; gap: 10px; padding: 8px 4px; min-height: 48px; }
.chess-bar .who { flex: 1; min-width: 0; }
.chess-bar .who b { font-size: 14.5px; }
.chess-bar .caps { display: flex; align-items: center; min-height: 18px; line-height: 1; }
.chess-bar .caps .cb-pc { width: 17px; height: 17px; margin-right: -7px; }
.chess-bar .caps i { font-style: normal; font-size: 11px; margin-left: 12px; color: var(--subtle); font-family: var(--mono); }
.chess-clock { font-family: var(--mono); font-size: 20px; font-weight: 600; padding: 4px 12px; border-radius: var(--radius-sm); background: var(--raised); border: 1px solid var(--line); min-width: 84px; text-align: center; }
.chess-clock.turn { background: var(--accent); color: var(--on-ink); border-color: transparent; }
.chess-clock.low { background: var(--bad); color: #fff; border-color: transparent; }

.cb-wrap { position: relative; }
.cb-board { container-type: inline-size; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); width: 100%; aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 2px solid var(--line-strong); user-select: none; -webkit-user-select: none; touch-action: none; }
.cb-board.review { outline: 3px solid var(--warn); outline-offset: -3px; }
.cb-sq { position: relative; display: grid; place-items: center; background: var(--cb-light); cursor: default; }
.cb-sq.dark { background: var(--cb-dark); }
.cb-sq.mine { cursor: grab; }
.cb-sq.last::before, .cb-sq.sel::before, .cb-sq.over::before { content: ""; position: absolute; inset: 0; background: var(--cb-last); }
.cb-sq.sel::before { background: var(--cb-select); }
.cb-sq.over::before { background: var(--cb-select); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .25); }
.cb-sq.check::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, var(--cb-check) 0 30%, rgba(0, 0, 0, 0) 72%); }
.cb-sq.hint::after { content: ""; position: absolute; width: 30%; height: 30%; border-radius: 50%; background: var(--cb-hint); }
.cb-sq.hint.cap::after { width: 92%; height: 92%; background: transparent; border: calc(100cqw / 8 * 0.1) solid var(--cb-hint); box-sizing: border-box; }
.cb-pc { display: block; width: 90%; height: 90%; position: relative; z-index: 1; pointer-events: none; filter: drop-shadow(0 1.5px 1px rgba(0, 0, 0, .28)); }
.cb-sq.dragging .cb-pc { opacity: .28; }
.cb-ghost { position: fixed; z-index: 4000; pointer-events: none; transform: translate(-50%, -62%); filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .4)); }
.cb-ghost .cb-pc { width: 100%; height: 100%; }
.cb-coord { position: absolute; z-index: 2; font-size: 11px; font-weight: 800; font-family: var(--font); pointer-events: none; color: var(--cb-coord-l); }
.cb-sq.dark .cb-coord { color: var(--cb-coord-d); }
.cb-coord.f { right: 4px; bottom: 2px; }
.cb-coord.r { left: 4px; top: 2px; }

.cb-promo { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(0, 0, 0, .55); border-radius: 6px; }
.cb-promo .row { display: flex; gap: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
.cb-promo button { width: 70px; height: 70px; padding: 6px; background: var(--cb-light); border: 2px solid var(--line-strong); border-radius: var(--radius-sm); }
.cb-promo button:nth-child(even) { background: var(--cb-dark); }
.cb-promo button:hover { border-color: var(--accent); }
.cb-promo .cb-pc { width: 100%; height: 100%; }

.chess-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 2px 0; }
.chess-tools .grow { flex: 1; }
.chess-ico { min-width: 34px; height: 32px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 700; line-height: 1; }
.chess-ico:hover:not(:disabled) { background: var(--raised); }
.chess-ico:disabled { opacity: .35; cursor: not-allowed; }
.chess-ico.on { background: var(--accent); color: var(--on-ink); border-color: transparent; }
.chess-review { padding: 8px 12px; border-radius: var(--radius-md); background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.chess-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.chess-status { padding: 11px 14px; border-radius: var(--radius-md); background: var(--raised); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.chess-status.mine { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.chess-status.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; font-weight: 500; }
.chess-moves { max-height: 210px; overflow-y: auto; font-family: var(--mono); font-size: 13px; display: grid; grid-template-columns: 34px 1fr 1fr; gap: 2px 6px; }
.chess-moves .num { color: var(--subtle); padding: 2px 0; }
.chess-moves .mv { padding: 2px 6px; border-radius: 4px; cursor: pointer; }
.chess-moves .mv:hover { background: var(--raised); }
.chess-moves .mv.cur { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.chess-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chess-result { text-align: center; padding: 18px 14px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--raised); }
.chess-result h3 { font-size: 20px; margin-bottom: 4px; justify-content: center; }
.chess-result.win { border-color: var(--ok); background: var(--ok-bg); }
.chess-result.loss { border-color: var(--bad); background: var(--bad-bg); }
.chess-result .delta { font-family: var(--mono); font-weight: 700; margin: 6px 0 12px; }
.chess-result .chess-actions { justify-content: center; }

/* ---------- chat ---------- */
.chess-chat { display: flex; flex-direction: column; gap: 8px; }
.chess-chat .msgs { height: 170px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--input); border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 13px; }
.chess-chat.tall .msgs { height: 230px; }
.chess-chat .msg { max-width: 88%; padding: 6px 10px; border-radius: 12px; background: var(--raised); line-height: 1.4; word-wrap: break-word; overflow-wrap: anywhere; }
.chess-chat .msg b { display: block; font-size: 11px; color: var(--subtle); margin-bottom: 1px; }
.chess-chat .msg.mine { align-self: flex-end; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.chess-chat .msg.mine b { color: var(--accent); }
.chess-chat .none { margin: auto; color: var(--subtle); font-size: 12.5px; text-align: center; }
.chess-chat .quick { display: flex; flex-wrap: wrap; gap: 5px; }
.chess-chat .quick button { padding: 3px 9px; font-size: 11.5px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--muted); }
.chess-chat .quick button:hover { background: var(--raised); color: var(--text); }
.chess-chat form { display: flex; gap: 6px; }
.chess-chat form .chess-input { height: 36px; flex: 1; }
.chess-chat .err { color: var(--bad); font-size: 12px; min-height: 0; }

/* ---------- janelas e aviso flutuante ---------- */
.chess-modal-bg { position: fixed; inset: 0; z-index: 3000; background: var(--scrim); display: grid; place-items: center; padding: 16px; }
.chess-modal { width: min(460px, 100%); max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--pop-shadow); }
.chess-modal h3 { font-size: 16px; margin-bottom: 4px; }
.chess-modal .lbl { font-size: 12px; font-weight: 600; color: var(--subtle); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.chess-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chess-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.chess-chip.on { background: var(--accent); color: var(--on-ink); border-color: transparent; }
.chess-custom { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.chess-custom .chess-input { width: 76px; height: 34px; text-align: center; }
.chess-input { width: 100%; height: 40px; padding: 0 12px; background: var(--input); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 14px; outline: none; }
.chess-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chess-err { color: var(--bad); font-size: 12.5px; min-height: 18px; margin-top: 6px; }
.chess-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
#chess-float { position: fixed; right: 16px; bottom: 84px; z-index: 2500; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 32px)); }
#chess-float .chess-challenge { margin: 0; background: var(--surface); box-shadow: var(--pop-shadow); }
.tab-btn.chess-alert .tab-counter { background: var(--accent); color: var(--on-ink); border-radius: 999px; padding: 0 7px; animation: chess-pulse 1.2s ease-in-out infinite; }
@keyframes chess-pulse { 50% { transform: scale(1.18); } }
@media (max-width: 760px) { #chess-float { bottom: 96px; } }

/* ---------- ícones (substituem os emojis) ---------- */
.ico { flex: none; vertical-align: -3px; }
.ico.inl { margin-right: 2px; color: var(--accent); }
.h3t { display: inline-flex; align-items: center; gap: 8px; }
.h3t .ico { color: var(--accent); }
.cb-pc.inlp { display: inline-block; width: 22px; height: 22px; vertical-align: -6px; filter: none; margin-right: 2px; }
.chess-ico { display: inline-flex; align-items: center; justify-content: center; }
.chess-chip { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--line-strong); }
.sw.w { background: #fff; } .sw.b { background: #202124; }
.chess-chip.on .sw { border-color: rgba(255, 255, 255, .8); }
.chess-actions .btn, .chess-status .btn { display: inline-flex; align-items: center; gap: 6px; }
.chess-actions .btn .ico { margin-right: 0; }

/* ---------- histórico de partidas (estilo "minhas apostas") ---------- */
.chess-hist-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-top: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.chess-hist-row:first-of-type { border-top: 0; }
.chess-hist-row:hover, .chess-hist-row:focus-visible { background: var(--raised); outline: none; }
.chess-hist-row .chip { flex: none; min-width: 66px; text-align: center; padding: 4px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; background: var(--raised); color: var(--muted); font-family: var(--mono); }
.chess-hist-row .chip.win { background: var(--ok-bg); color: var(--ok); }
.chess-hist-row .chip.loss { background: var(--bad-bg); color: var(--bad); }
.chess-hist-row .chip.draw { background: var(--warn-bg); color: var(--warn); }
.chess-hist-row .mid { flex: 1; min-width: 0; }
.chess-hist-row .t { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chess-hist-row .t b { font-weight: 750; }
.chess-hist-row .s { font-size: 11.5px; color: var(--subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chess-hist-row .end { flex: none; text-align: right; display: flex; flex-direction: column; gap: 1px; }
.chess-hist-row .pts { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--muted); }
.chess-hist-row .pts.pos { color: var(--ok); } .chess-hist-row .pts.neg { color: var(--bad); }
.chess-hist-row .when { font-size: 11px; color: var(--subtle); }
.vs { color: var(--subtle); font-weight: 400; font-size: .9em; }

/* ---------- janela de detalhes da partida ---------- */
.chess-modal.wide { width: min(760px, 100%); padding: 0; }
.rp-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.rp-head h3 { font-size: 17px; margin: 0; }
.rp-x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--raised); color: var(--muted); }
.rp-x:hover { color: var(--text); }
.rp-top { display: flex; gap: 18px; padding: 18px 22px 12px; align-items: center; }
.rp-card { flex: none; width: 112px; height: 132px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff;
    background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.rp-card .cb-pc { width: 62px; height: 62px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }
.rp-card b { font-size: 13px; letter-spacing: .12em; margin-top: 4px; color: var(--on-ink); }
.rp-card small { font-size: 9.5px; letter-spacing: .14em; opacity: .8; color: var(--on-ink); }
.rp-info { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rp-title { font-size: 18px; font-weight: 750; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rp-line { font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rp-muted { color: var(--subtle); }
.rp-copy { height: 24px !important; min-width: 24px !important; padding: 0 6px !important; }
.rp-sum { display: grid; grid-template-columns: repeat(3, 1fr); margin: 6px 22px 14px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.rp-sum > div { padding: 12px 14px; text-align: center; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.rp-sum > div:first-child { border-left: 0; }
.rp-sum small { font-size: 11.5px; color: var(--subtle); }
.rp-sum b { font-size: 14.5px; } .rp-sum em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.rp-sum .pos { color: var(--ok); } .rp-sum .neg { color: var(--bad); }
.rp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; padding: 0 22px; align-items: start; }
.rp-board { max-width: 460px; margin: 0 auto; }
.rp-board .cb-sq { cursor: default; }
.rp-moves { max-height: 440px; padding-right: 4px; }
.rp-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 16px 22px 20px; flex-wrap: wrap; }
@media (max-width: 640px) { .rp-grid { grid-template-columns: 1fr; } .rp-moves { max-height: 160px; } .rp-top { flex-direction: row; } .rp-card { width: 84px; height: 100px; } .rp-card .cb-pc { width: 44px; height: 44px; } }

/* ---------- chat: editar, apagar, limpar ---------- */
.chess-chat .msg { position: relative; }
.chess-chat .msg .ed { font-style: normal; font-size: 10px; color: var(--subtle); margin-left: 6px; }
.chess-chat .msg .mact { display: none; position: absolute; top: -11px; right: 6px; gap: 2px; padding: 1px 2px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: var(--pop-shadow); }
.chess-chat .msg:hover .mact, .chess-chat .msg:focus-within .mact { display: flex; }
.chess-chat .msg .mact button { display: grid; place-items: center; padding: 4px; border: 0; background: none; color: var(--muted); border-radius: 4px; }
.chess-chat .msg .mact button:hover { background: var(--raised); color: var(--text); }
.chess-chat .msg .mact button[data-act="chat-del"]:hover { color: var(--bad); }
@media (hover: none) { .chess-chat .msg .mact { display: flex; position: static; box-shadow: none; border: 0; background: none; margin-top: 2px; } }
.chess-chat .msg.editing { max-width: 100%; align-self: stretch; display: flex; flex-direction: column; gap: 6px; }
.chess-chat .msg.editing .chess-input { height: 34px; }
.chess-chat .msg.editing .eb { display: flex; gap: 6px; justify-content: flex-end; }
.chess-link { border: 0; background: none; padding: 0; font-size: 12px; font-weight: 600; color: var(--subtle); cursor: pointer; }
.chess-link:hover { color: var(--accent); text-decoration: underline; }
.h3r { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- começo da partida ---------- */
.chess-start { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--raised); animation: chess-pop .3s ease-out; }
.chess-start.go { background: var(--accent-soft); border-color: var(--accent-line); }
.chess-start .pc { flex: none; width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; background: var(--cb-dark); }
.chess-start .pc .cb-pc { width: 40px; height: 40px; }
.chess-start b { display: block; font-size: 15px; }
.chess-start span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.chess-start span b { display: inline; font-size: inherit; color: var(--text); }
.chess-start.go b:first-child { color: var(--accent); }

/* ---------- animação das peças ---------- */
.cb-capghost { position: absolute; inset: 0; display: grid; place-items: center; z-index: 4; pointer-events: none; opacity: 1; transform: scale(1); transition: opacity .26s ease-out, transform .26s ease-out; }
.cb-capghost .cb-pc { width: 90%; height: 90%; }
.cb-capghost.out { opacity: 0; transform: scale(.7); }
.cb-pc { will-change: transform; }
@media (prefers-reduced-motion: reduce) { .cb-capghost { transition: none; } }

/* créditos das peças */
.chess-credit { margin: 18px 4px 4px; font-size: 11.5px; color: var(--subtle); line-height: 1.5; text-align: center; }
.chess-credit a { color: var(--muted); }
