/* /Pages/Home.razor.rz.scp.css */
.app-shell[b-hpcrb86f5k] { max-width: 1000px; margin: auto; padding: 0 28px; }
.masthead[b-hpcrb86f5k] { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: var(--gap); }
.wordmark[b-hpcrb86f5k] { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; line-height: 1.4; }
.wordmark small[b-hpcrb86f5k] { display: block; font-size: 12px; font-weight: 400; margin-top: 5px; }
.brand-mark[b-hpcrb86f5k] { display: block; flex: none; }
.text-button[b-hpcrb86f5k] { color: var(--muted); padding: 6px 0; display: inline-flex; align-items: center; gap: 12px; min-height: 36px; }
.text-button:hover[b-hpcrb86f5k] { color: #fff; }
.title-row[b-hpcrb86f5k] { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); margin: 12px 0 20px; }
.title-row p[b-hpcrb86f5k] { color: var(--muted); margin-top: 4px; }
.primary[b-hpcrb86f5k], .secondary[b-hpcrb86f5k] { min-height: 40px; border-radius: 999px; padding: 7px 20px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 18px; white-space: nowrap; }
.primary[b-hpcrb86f5k] { background: #fff; color: #000; }
.primary:hover[b-hpcrb86f5k] { background: #dedede; }
.secondary[b-hpcrb86f5k] { border: 1px solid #555; color: #fff; background: none; }
.secondary:hover[b-hpcrb86f5k] { border-color: #bbb; }
/* At the 944px canvas: 520px play area + 14px gutter + 410px information column. */
.game-layout[b-hpcrb86f5k] { display: grid; grid-template-columns: minmax(0, 520px) minmax(280px, 1fr); gap: var(--gap); align-items: start; }
.play-area[b-hpcrb86f5k] { min-width: 0; padding: 18px 22px 14px; border-radius: 20px; background: var(--surface); }
.player-row[b-hpcrb86f5k] { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); padding: 0 4px; }
.opponent-row[b-hpcrb86f5k] { margin-bottom: 14px; }
.own-row[b-hpcrb86f5k] { margin-top: 14px; }
.player-name[b-hpcrb86f5k] { display: flex; align-items: center; gap: 12px; }
.player-name strong[b-hpcrb86f5k] { display: block; font-weight: 500; }
.player-name small[b-hpcrb86f5k] { display: block; margin-top: 3px; }
.counter[b-hpcrb86f5k] { display: inline-block; flex: none; width: 32px; height: 32px; border-radius: 50%; position: relative; }
.counter[b-hpcrb86f5k]::after { content: ''; position: absolute; inset: 5px; border: 1px solid currentColor; border-radius: 50%; opacity: .55; }
.green[b-hpcrb86f5k] { background: var(--accent); color: #183e30; }
.ivory[b-hpcrb86f5k] { background: #e6e6e6; color: #555; }
.piece-count[b-hpcrb86f5k] { display: flex; flex: none; align-items: baseline; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.piece-count strong[b-hpcrb86f5k] { font-weight: 500; font-size: 24px; line-height: 1.4; }
.piece-count span[b-hpcrb86f5k] { color: var(--muted); font-size: 12px; }
.board-coordinates[b-hpcrb86f5k] { display: grid; grid-template-columns: repeat(8, 1fr); margin-left: 20px; color: var(--faint); font-size: 12px; text-align: center; height: 26px; align-items: start; }
.board-with-ranks[b-hpcrb86f5k] { display: flex; }
.ranks[b-hpcrb86f5k] { width: 20px; flex: none; display: grid; grid-template-rows: repeat(8, 1fr); color: var(--faint); font-size: 12px; }
.ranks span[b-hpcrb86f5k] { display: flex; align-items: center; }
.board[b-hpcrb86f5k] { display: grid; grid-template-columns: repeat(8, 1fr); width: calc(100% - 20px); aspect-ratio: 1; }
.square[b-hpcrb86f5k] { aspect-ratio: 1; min-width: 0; padding: 0; display: flex; align-items: center; justify-content: center; position: relative; border-radius: 0; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.square.light[b-hpcrb86f5k] { background: #bdbfbd; }
.square.dark[b-hpcrb86f5k] { background: #444947; }
.square:disabled[b-hpcrb86f5k] { cursor: default; }
.square .counter[b-hpcrb86f5k] { width: 74%; height: 74%; }
.square .counter[b-hpcrb86f5k]::after { inset: 13%; border-width: 2px; }
.square .green[b-hpcrb86f5k] { border: 2px solid #b7ddce; }
.square .ivory[b-hpcrb86f5k] { border: 2px solid #fff; }
.square.selected[b-hpcrb86f5k]::after { content: ''; position: absolute; inset: 7%; border: 2px solid #fff; border-radius: 50%; }
.square.destination[b-hpcrb86f5k]::after { content: ''; width: 20%; height: 20%; border-radius: 50%; background: #fff; }
.square.last-move[b-hpcrb86f5k] { outline: 3px solid #e5e5e5; outline-offset: -3px; }
.square:focus-visible[b-hpcrb86f5k] { outline: 3px solid #fff; outline-offset: -4px; z-index: 1; }
.king-letter[b-hpcrb86f5k] { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(12px, 1.5vw, 20px); font-weight: 600; }
.board-key[b-hpcrb86f5k] { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--muted); padding-top: 14px; }
.board-key > span[b-hpcrb86f5k] { display: inline-flex; align-items: center; gap: 7px; }
.key-ring[b-hpcrb86f5k] { width: 12px; height: 12px; border: 1px solid #fff; border-radius: 50%; }
.key-dot[b-hpcrb86f5k] { width: 6px; height: 6px; background: #fff; border-radius: 50%; }
.key-king[b-hpcrb86f5k] { font-style: normal; font-size: 12px; color: #fff; }
.match-panel[b-hpcrb86f5k] { padding: 26px 28px; }
.status-label[b-hpcrb86f5k] { color: var(--muted); font-size: 12px; }
.turn-heading[b-hpcrb86f5k] { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; }
.turn-heading h2[b-hpcrb86f5k] { font-size: 20px; }
.turn-dot[b-hpcrb86f5k] { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex: none; }
.match-panel p[b-hpcrb86f5k] { color: var(--muted); }
.capture-notice[b-hpcrb86f5k] { background: #2a2a2a; padding: 12px 14px; margin-top: 14px; border-radius: 8px; color: #fff !important; }
.match-settings[b-hpcrb86f5k] { margin-top: 32px; }
dl[b-hpcrb86f5k] { margin: 12px 0 16px; }
dl > div[b-hpcrb86f5k] { display: flex; align-items: baseline; justify-content: space-between; gap: var(--gap); padding: 7px 0; }
dt[b-hpcrb86f5k] { color: var(--muted); }
dd[b-hpcrb86f5k] { margin: 0; font-variant-numeric: tabular-nums; }
.match-settings .secondary[b-hpcrb86f5k] { width: 100%; }
.objective-section[b-hpcrb86f5k] { margin-top: 32px; }
.objective-section p[b-hpcrb86f5k] { margin: 10px 0; }
.quiet-note[b-hpcrb86f5k] { margin-top: 28px; font-size: 12px; }
footer[b-hpcrb86f5k] { margin: 24px 0; display: flex; justify-content: space-between; gap: 14px; color: var(--faint); font-size: 12px; }
dialog[b-hpcrb86f5k] { width: min(480px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 28px; border: 0; border-radius: 20px; background: #111; color: #fff; overscroll-behavior: contain; }
dialog[b-hpcrb86f5k]::backdrop { background: rgb(0 0 0 / .82); }
.dialog-heading[b-hpcrb86f5k] { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); }
.dialog-heading h2[b-hpcrb86f5k] { font-size: 20px; }
.close-button[b-hpcrb86f5k] { width: 36px; height: 36px; flex: none; border-radius: 50%; color: #fff; font-size: 24px; line-height: 1; }
.close-button:hover[b-hpcrb86f5k] { background: #2a2a2a; }
.dialog-intro[b-hpcrb86f5k] { color: var(--muted); margin-top: 8px; }
fieldset[b-hpcrb86f5k] { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
legend[b-hpcrb86f5k] { padding: 0; margin-bottom: 10px; font-weight: 500; }
.mode-option[b-hpcrb86f5k] { cursor: pointer; display: flex; align-items: center; justify-content: space-between; position: relative; padding: 14px 16px; background: #1c1c1c; border-radius: 8px; }
.mode-option + .mode-option[b-hpcrb86f5k] { margin-top: 8px; }
.mode-option:has(:checked)[b-hpcrb86f5k] { background: #2a2a2a; outline: 1px solid #bbb; }
.mode-option strong[b-hpcrb86f5k] { display: block; font-size: 16px; font-weight: 500; }
.mode-option small[b-hpcrb86f5k] { display: block; margin-top: 5px; }
.mode-option input[b-hpcrb86f5k], .segmented input[b-hpcrb86f5k] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-mark[b-hpcrb86f5k] { width: 18px; height: 18px; border: 1px solid #949494; border-radius: 50%; margin-left: 10px; flex: none; }
:checked ~ .radio-mark[b-hpcrb86f5k] { border: 5px solid #fff; }
label:has(input:focus-visible)[b-hpcrb86f5k] { outline: 2px solid #fff; outline-offset: 4px; }
.segmented[b-hpcrb86f5k] { display: flex; background: #1c1c1c; border-radius: 999px; padding: 4px; gap: 4px; }
.segmented label[b-hpcrb86f5k] { position: relative; flex: 1; cursor: pointer; text-align: center; border-radius: 999px; }
.segmented span[b-hpcrb86f5k] { display: block; padding: 7px 4px; border-radius: 999px; color: var(--muted); }
.segmented input:checked + span[b-hpcrb86f5k] { background: #3b3b3b; color: #fff; }
.field-note[b-hpcrb86f5k] { color: var(--muted); font-size: 12px; margin-top: 10px; }
.setup-objective[b-hpcrb86f5k] { margin-top: 24px; }
.full-width[b-hpcrb86f5k] { width: 100%; }
form > .primary[b-hpcrb86f5k] { margin-top: 20px; }
.rule-content section[b-hpcrb86f5k] { margin: 22px 0; }
.rule-content p[b-hpcrb86f5k] { color: var(--muted); margin-top: 8px; line-height: 1.95; }
#result-dialog[b-hpcrb86f5k] { text-align: center; }
.result-mark[b-hpcrb86f5k] { margin: 28px 0 18px; }
.result-mark .counter[b-hpcrb86f5k] { width: 64px; height: 64px; }
.result-mark .counter[b-hpcrb86f5k]::after { inset: 10px; border-width: 2px; }
#result-title[b-hpcrb86f5k] { font-size: 24px; }
#result-reason[b-hpcrb86f5k] { color: var(--muted); margin: 12px 0 24px; }
.result-summary[b-hpcrb86f5k] { background: #222; border-radius: 8px; padding: 10px 18px; }
#result-dialog .text-button[b-hpcrb86f5k] { justify-content: center; margin-top: 12px; }
@media (max-width: 900px) {
  .app-shell[b-hpcrb86f5k] { max-width: 640px; padding: 0 22px; }
  .game-layout[b-hpcrb86f5k] { grid-template-columns: 1fr; }
  .play-area[b-hpcrb86f5k] { grid-row: 2; }
  .match-panel[b-hpcrb86f5k] { display: contents; }
  .turn-section[b-hpcrb86f5k] { grid-row: 1; padding: 14px 18px; background: #111; border-radius: 20px; }
  .turn-section .status-label[b-hpcrb86f5k] { display: none; }
  .turn-heading[b-hpcrb86f5k] { margin: 0 0 4px; }
  .turn-heading h2[b-hpcrb86f5k] { font-size: 16px; }
  .match-settings[b-hpcrb86f5k] { grid-row: 3; margin: 10px 0 0; padding: 0 4px; }
  .match-settings dl[b-hpcrb86f5k] { display: flex; flex-wrap: wrap; gap: 10px 24px; }
  .match-settings dl > div[b-hpcrb86f5k] { gap: 12px; }
  .match-settings .secondary[b-hpcrb86f5k] { width: auto; }
  .objective-section[b-hpcrb86f5k] { grid-row: 4; margin-top: 20px; padding: 0 4px; }
  .quiet-note[b-hpcrb86f5k] { display: none; }
}
@media (max-width: 480px) {
  .app-shell[b-hpcrb86f5k] { padding: 0 16px; }
  .masthead[b-hpcrb86f5k] { min-height: 56px; }
  .wordmark[b-hpcrb86f5k] { font-size: 18px; gap: 9px; }
  .wordmark small[b-hpcrb86f5k] { font-size: 11px; }
  .masthead .text-button[b-hpcrb86f5k] { font-size: 12px; gap: 7px; }
  .title-row[b-hpcrb86f5k] { margin: 4px 0 12px; align-items: center; }
  .title-row p[b-hpcrb86f5k] { display: none; }
  .title-row .primary[b-hpcrb86f5k] { font-size: 12px; padding: 7px 14px; gap: 6px; margin-top: 4px; }
  .play-area[b-hpcrb86f5k] { margin-inline: -16px; border-radius: 0; padding: 10px 0 12px; }
  .player-row[b-hpcrb86f5k] { padding-inline: 16px; }
  .player-name[b-hpcrb86f5k] { min-width: 0; }
  .opponent-row[b-hpcrb86f5k] { margin-bottom: 8px; }
  .own-row[b-hpcrb86f5k] { margin-top: 8px; }
  .own-row .player-name small[b-hpcrb86f5k] { display: none; }
  .board-coordinates[b-hpcrb86f5k] { margin-left: 0; height: 20px; }
  .ranks[b-hpcrb86f5k] { display: none; }
  .board[b-hpcrb86f5k] { width: 100%; }
  .turn-section[b-hpcrb86f5k] { padding: 8px 14px; }
  .turn-heading[b-hpcrb86f5k] { margin: 0; }
  .turn-heading h2[b-hpcrb86f5k] { line-height: 1.6; }
  .turn-section p[b-hpcrb86f5k] { font-size: 12px; line-height: 1.6; }
  .player-name .counter[b-hpcrb86f5k] { width: 26px; height: 26px; }
  .player-name[b-hpcrb86f5k] { gap: 8px; }
  .player-name small[b-hpcrb86f5k] { font-size: 11px; }
  .piece-count[b-hpcrb86f5k] { gap: 6px; }
  .piece-count strong[b-hpcrb86f5k] { font-size: 20px; }
  .piece-count span[b-hpcrb86f5k] { font-size: 11px; }
  .board-key[b-hpcrb86f5k] { font-size: 11px; gap: 12px; padding-inline: 16px; }
  .square .green[b-hpcrb86f5k], .square .ivory[b-hpcrb86f5k] { border-width: 1px; }
  .square .counter[b-hpcrb86f5k]::after { border-width: 1px; }
  footer[b-hpcrb86f5k] { flex-direction: column; gap: 4px; margin-top: 32px; }
  dialog[b-hpcrb86f5k] { padding: 22px; }
  .segmented span[b-hpcrb86f5k] { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *[b-hpcrb86f5k] { scroll-behavior: auto !important; } }
.pending-capture .counter[b-hpcrb86f5k] { opacity: .35; }
.turn-dot.ivory[b-hpcrb86f5k] { background: #e6e6e6; }
@media (any-pointer: coarse), (max-width: 480px) {
  .primary[b-hpcrb86f5k], .secondary[b-hpcrb86f5k], .text-button[b-hpcrb86f5k], .wordmark[b-hpcrb86f5k] { min-height: 44px; }
  .close-button[b-hpcrb86f5k] { width: 44px; height: 44px; }
  .segmented span[b-hpcrb86f5k] { min-height: 44px; display: grid; place-items: center; }
}
