/* ==========================================================================
   ChessGL design system v2 · "Paper Club"
   Opt-in: loaded only by pages that set $cgl_ui = 'e' before header.php.
   Cream, ink and one oxblood accent. Newsreader headings, Inter controls and data.
   Everything reads from the tokens in the first two blocks; light and dark share them.
   Fonts and pieces are self-hosted (see fonts/OFL-1.1.txt and img/pieces/cburnett/NOTICE.txt).
   ========================================================================== */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader-latin-ext-opsz-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* six type sizes */
  --fs-1: 0.875rem;
  --fs-2: 1rem;
  --fs-3: 1.125rem;
  --fs-4: 1.625rem;
  --fs-5: clamp(2rem, 1.4rem + 1.5vw, 2.75rem);
  --fs-6: clamp(2.75rem, 1.65rem + 4vw, 4.75rem);

  /* 4px spacing scale */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;

  /* two radii, two elevations */
  --r-1: 6px;
  --r-2: 12px;
  --e-1: 0 2px 3px rgba(31, 26, 23, 0.04);
  --e-2: 0 14px 30px rgba(31, 26, 23, 0.16);

  --wrap: 72rem;
  --gutter: 1.25rem;
  --measure: 40rem;
  --tap: 2.75rem;
  --motion: 160ms ease;

  /* colour: light */
  --bg: #f8f4ea;
  --surface: #fffdf7;
  --surface-2: #efe8d8;
  --text: #1f1a17;
  --text-2: #5c5249;
  --line: #ddd3c0;
  --line-2: #a79b89;
  --accent: #7a1f24;
  --accent-hover: #5f171b;
  --on-accent: #fffdf7;
  --accent-ink: #7a1f24;
  --accent-soft: #f0e5dc;
  --ok: #2f5f3a;
  --ok-soft: #e3ecdd;
  --warn: #7a4a00;
  --warn-soft: #f5e7cb;
  --danger: #9b2c1f;
  --danger-soft: #f6dfd8;
  --focus: #1f1a17;
  --backdrop: rgba(31, 26, 23, 0.55);
  --board-l: #f6efdf;
  --board-d: #b9ab92;
  --board-hl-l: #ebd39b;
  --board-hl-d: #d4b579;
  --board-ink: #1f1a17;
  --vr-last: #6b3f00;
  --vr-top: #1f4a2a;
  --vr-mine: #7a1f24;
  color-scheme: light;
}
html[data-theme="dark"] {
  --e-1: 0 2px 3px rgba(0, 0, 0, 0.12);
  --e-2: 0 14px 30px rgba(0, 0, 0, 0.55);
  --bg: #211d1a;
  --surface: #2b2521;
  --surface-2: #352d27;
  --text: #f5ebdc;
  --text-2: #c0b2a1;
  --line: #493d33;
  --line-2: #8e7e6c;
  --accent: #e2a092;
  --accent-hover: #eeb4a6;
  --accent-ink: #eab0a0;
  --accent-soft: #382925;
  --on-accent: #211d1a;
  --ok: #9cc7a1;
  --ok-soft: #1b281d;
  --warn: #e5b565;
  --warn-soft: #2c2110;
  --danger: #f08f7e;
  --danger-soft: #2f1814;
  --focus: #f5ebdc;
  --backdrop: rgba(0, 0, 0, 0.7);
  --board-l: #e5dcc9;
  --board-d: #a4977f;
  --board-hl-l: #d9c185;
  --board-hl-d: #c1a263;
  --board-ink: #211d1a;
  color-scheme: dark;
}
@media (min-width: 40rem) { :root { --gutter: 2rem; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-2)/1.65 var(--font-sans); font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; }
body > main { flex: 1 0 auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-serif); font-optical-sizing: auto; font-feature-settings: normal; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: var(--s-4); top: -4rem; z-index: 30; padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--text); border-radius: var(--r-1); }
.skip:focus { top: var(--s-2); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ic { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* small label: the one uppercase style */
.eyebrow, .footcol__title, .post__tag, .nav__label, .journey-eyebrow, .hub-label {
  font: 600 var(--fs-1)/1.5 var(--font-sans); text-transform: uppercase; letter-spacing: 0.08em;
}
.eyebrow { color: var(--accent-ink); }
.lead { max-width: 42rem; font-size: var(--fs-3); line-height: 1.7; color: var(--text-2); text-wrap: pretty; }
.link { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); min-width: var(--tap); color: var(--accent-ink); font-weight: 550; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.link:hover { text-decoration-thickness: 2px; }
.prose p a:not(.btn) { color: var(--accent-ink); text-underline-offset: 0.22em; }

/* ---------- buttons: Inter in a flex-centred line box, equal vertical padding ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3rem; min-width: var(--tap); padding: var(--s-3) var(--s-5);
  border: 1px solid transparent; border-radius: var(--r-1);
  font: 600 var(--fs-2)/1.5 var(--font-sans); letter-spacing: 0; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--motion), border-color var(--motion), box-shadow var(--motion);
}
.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: var(--e-1); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--text); background: var(--surface-2); }
.btn--ghost { background: transparent; color: var(--text-2); font-weight: 500; }
.btn--ghost:hover { color: var(--text); background: var(--surface-2); }
.btn--sm { min-height: var(--tap); padding: var(--s-2) var(--s-4); font-size: var(--fs-1); }
.btn--block { width: 100%; }
.btn:active:not([disabled]) { box-shadow: none; }
.btn[disabled] { background: var(--surface-2); border-color: var(--line); color: var(--text-2); box-shadow: none; cursor: not-allowed; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); padding: 0; border: 0; border-radius: var(--r-1); background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }

/* ---------- header and navigation ---------- */
.site-header { position: relative; z-index: 20; background: var(--bg); }
.site-header__in { display: flex; align-items: center; gap: var(--s-3); min-height: 4.5rem; border-bottom: 1px solid var(--line-2); }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; min-height: var(--tap); font: 600 var(--fs-2)/1.25 var(--font-serif); letter-spacing: -0.01em; text-decoration: none; }
.brand__name { max-width: 12rem; }
.brand__mark { position: relative; width: 1.5rem; height: 1.5rem; flex: none; border-radius: var(--r-1); background: var(--accent-soft); overflow: hidden; }
.brand__mark::before, .brand__mark::after { content: ""; position: absolute; width: 50%; height: 50%; background: var(--accent); }
.brand__mark::before { top: 0; right: 0; }
.brand__mark::after { left: 0; bottom: 0; }
.site-header__tools { display: flex; flex: none; margin-left: auto; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 5; max-height: calc(100vh - 4.5rem); overflow-y: auto; padding: var(--s-2) var(--gutter) var(--s-5); background: var(--surface); border-bottom: 1px solid var(--line-2); box-shadow: var(--e-2); }
.site-header[data-open] .nav { display: block; }
.nav__link { display: flex; align-items: center; width: 100%; min-height: 3rem; min-width: var(--tap); padding: 0; border: 0; background: none; color: var(--text-2); font: 550 var(--fs-1)/1.4 var(--font-sans); text-align: left; text-decoration: none; cursor: pointer; }
.nav__link:hover, .nav__link[aria-current] { color: var(--text); }
.nav__link[aria-current] { color: var(--accent-ink); }
.nav__link .badge { margin-left: auto; }
.nav__list--account { margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.nav__list--account .btn { margin-top: var(--s-3); width: 100%; font-size: var(--fs-1); }
.nav__label { display: block; padding: var(--s-3) 0 var(--s-1); color: var(--text-2); }
.nav__trigger { display: none; }
.nav__panel { margin-bottom: var(--s-2); padding-left: var(--s-3); border-left: 1px solid var(--line); }
.nav__panel form { margin: 0; }
.nav__sub { padding: var(--s-2) 0 0; color: var(--text-2); font: 600 var(--fs-1)/1.5 var(--font-sans); }
.nav__trigger .ic { width: 1rem; height: 1rem; transition: transform var(--motion); }
.nav__group[data-open] .nav__trigger .ic { transform: rotate(180deg); }
.ic--close, .menu-btn[aria-expanded="true"] .ic--menu { display: none; }
.menu-btn[aria-expanded="true"] .ic--close { display: block; }
html[data-theme="light"] .ic--sun, html[data-theme="dark"] .ic--moon { display: none; }

.badge { display: inline-flex; align-items: center; padding: 0 var(--s-2); border: 1px solid var(--line-2); border-radius: var(--r-1); color: var(--text); font: 550 var(--fs-1)/1.5 var(--font-sans); white-space: nowrap; }
.badge--accent { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-ink); }
.badge--ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.badge--warn { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.badge--danger { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }

@media (min-width: 60rem) {
  .site-header__in { min-height: 5rem; gap: var(--s-7); }
  .brand { gap: var(--s-3); font-size: var(--fs-3); }
  .brand__name { max-width: none; white-space: nowrap; }
  .menu-btn { display: none; }
  .site-header__tools { margin-left: 0; }
  .nav, .site-header[data-open] .nav { display: flex; flex: 1; align-items: center; justify-content: space-between; position: static; max-height: none; overflow: visible; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav__list { display: flex; align-items: center; gap: var(--s-5); }
  .nav__list--account { margin: 0; padding: 0; border: 0; gap: var(--s-5); }
  .nav__list--account .btn { margin: 0; width: auto; }
  .nav__link { position: relative; width: auto; min-height: var(--tap); }
  .nav__list--primary > li > .nav__link[aria-current]::after,
  .nav__group[data-current] > .nav__trigger::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; border-bottom: 2px solid var(--accent); }
  .nav__label { display: none; }
  .nav__group { position: relative; }
  .nav__trigger { display: inline-flex; gap: var(--s-2); }
  .nav__panel { display: none; position: absolute; top: calc(100% + var(--s-2)); left: calc(-1 * var(--s-3)); z-index: 10; min-width: 15rem; max-height: calc(100vh - 7rem); overflow-y: auto; margin: 0; padding: var(--s-2); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); box-shadow: var(--e-2); }
  .nav__panel--end { left: auto; right: calc(-1 * var(--s-3)); }
  .nav__group[data-open] > .nav__panel { display: block; }
  .nav__panel .nav__link { min-height: var(--tap); padding: 0 var(--s-3); border-radius: var(--r-1); color: var(--text); white-space: nowrap; }
  .nav__panel .nav__link:hover { background: var(--surface-2); }
  .nav__panel .nav__link[aria-current] { color: var(--accent-ink); font-weight: 650; }
  .nav__sub { padding: var(--s-3) var(--s-3) var(--s-1); }
  .nav__rule { margin: var(--s-2) 0; border-top: 1px solid var(--line); }
}

/* ---------- chess board: a printed diagram, coordinates outside the frame ---------- */
.boardfig figcaption { margin: var(--s-2) 0 0 1.5rem; font: 400 var(--fs-1)/1.6 var(--font-sans); color: var(--text-2); }
.moves { display: block; margin-bottom: var(--s-2); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line-2); font: 500 var(--fs-1)/1.65 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--text); }
.board { display: grid; grid-template-columns: repeat(8, 1fr); width: calc(100% - 1.5rem); aspect-ratio: 1; margin: 0 0 1.5rem 1.5rem; border: 1px solid var(--text-2); container-type: inline-size; }
.sq { position: relative; background-repeat: no-repeat; background-position: center; background-size: 94%; font: 500 var(--fs-1)/1 var(--font-sans); color: var(--text); }
.sq--light { background-color: var(--board-l); }
.sq--dark { background-color: var(--board-d); }
.sq--hl.sq--light { background-color: var(--board-hl-l); }
.sq--hl.sq--dark { background-color: var(--board-hl-d); }
.sq[data-rank]::before { content: attr(data-rank); position: absolute; top: 50%; left: -1.5rem; width: 1.5rem; margin-top: -0.5em; text-align: center; }
.sq[data-file]::after { content: attr(data-file); position: absolute; left: 0; right: 0; bottom: -1.4rem; text-align: center; }
.pc-wK { background-image: url("../img/pieces/cburnett/wK.svg"); } .pc-wQ { background-image: url("../img/pieces/cburnett/wQ.svg"); }
.pc-wR { background-image: url("../img/pieces/cburnett/wR.svg"); } .pc-wB { background-image: url("../img/pieces/cburnett/wB.svg"); }
.pc-wN { background-image: url("../img/pieces/cburnett/wN.svg"); } .pc-wP { background-image: url("../img/pieces/cburnett/wP.svg"); }
.pc-bK { background-image: url("../img/pieces/cburnett/bK.svg"); } .pc-bQ { background-image: url("../img/pieces/cburnett/bQ.svg"); }
.pc-bR { background-image: url("../img/pieces/cburnett/bR.svg"); } .pc-bB { background-image: url("../img/pieces/cburnett/bB.svg"); }
.pc-bN { background-image: url("../img/pieces/cburnett/bN.svg"); } .pc-bP { background-image: url("../img/pieces/cburnett/bP.svg"); }

/* ---------- hero: introduction, primary choice, board, secondary choice ---------- */
.hero { padding-block: var(--s-7); }
.hero__in { display: grid; gap: var(--s-5); }
.hero__copy { display: grid; gap: var(--s-4); justify-items: start; text-align: left; }
.hero__copy .eyebrow { max-width: 32rem; text-wrap: balance; }
.hero__copy .lead { font-size: var(--fs-2); }
.hero__title { max-width: 10em; font-size: var(--fs-6); font-weight: 450; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.hero__board { width: 100%; max-width: 27rem; margin-inline: auto; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface-2); box-shadow: var(--e-1); }

.doors { display: contents; }
.door { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.door--primary { order: 1; border-top: 3px solid var(--accent); background: var(--accent-soft); }
.door:not(.door--primary) { order: 3; }
.hero__board { order: 2; }
.door__title { font-size: var(--fs-4); font-weight: 550; line-height: 1.15; }
.door__text { font-size: var(--fs-2); line-height: 1.65; color: var(--text-2); }
.door .btn { width: 100%; margin-top: var(--s-2); }
.door__note { max-width: 24em; font-size: var(--fs-1); line-height: 1.6; color: var(--text-2); }
@media (min-width: 40rem) {
  .hero__copy { justify-items: center; text-align: center; }
  .hero__copy .lead { font-size: var(--fs-3); }
  .hero__title { max-width: 14em; }
  .doors { display: grid; gap: var(--s-4); order: 1; }
  .door .btn { width: auto; margin-top: auto; }
}
@media (min-width: 40rem) and (max-width: 59.99rem) {
  .doors { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 60rem) {
  .hero { padding-block: var(--s-8); }
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem) minmax(0, 1fr); grid-template-areas: "copy copy copy" "one board two"; column-gap: var(--s-6); row-gap: var(--s-7); align-items: center; }
  .hero__copy { grid-area: copy; gap: var(--s-5); }
  .doors { display: contents; }
  .door--primary { grid-area: one; order: 0; }
  .door:not(.door--primary) { grid-area: two; order: 0; }
  .doors > .door { align-self: center; }
  .door .btn { margin-top: var(--s-2); }
  .hero__board { grid-area: board; order: 0; }
}

/* ---------- sections: heading in the margin, content beside it ---------- */
.section > .wrap { padding-block: var(--s-7); border-top: 1px solid var(--line); }
.section__head { display: grid; gap: var(--s-2); align-content: start; margin-bottom: var(--s-5); }
.section__head--row { justify-items: start; }
.section__title { font-size: var(--fs-5); font-weight: 450; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.section__more { margin-top: var(--s-5); color: var(--text-2); }
.section__more .link { margin-left: var(--s-2); }
.section__more .link:first-child { margin-left: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.split > * { min-width: 0; }
.split__main > p + p { margin-top: var(--s-4); }
.split__main > p { max-width: var(--measure); }
@media (min-width: 60rem) {
  .section > .wrap { display: grid; grid-template-columns: 14rem minmax(0, 1fr); column-gap: var(--s-7); padding-block: var(--s-8); }
  .section > .wrap > * { grid-column: 2; }
  .section > .wrap > .section__head { grid-column: 1; grid-row: 1 / span 4; margin-bottom: 0; }
  .section--train > .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s-9); }
  .section--train > .wrap > * { grid-column: auto; }
  .section--train .section__head { margin-bottom: var(--s-4); }
  .section .split { row-gap: var(--s-7); }
}

.steps { counter-reset: step; display: grid; gap: var(--s-5); }
.step { counter-increment: step; display: grid; row-gap: var(--s-2); align-content: start; }
.step::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: var(--s-2); border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--surface); color: var(--accent-ink); font: 500 var(--fs-2)/1 var(--font-sans); }
.step__title { font-size: var(--fs-4); font-weight: 550; line-height: 1.25; }
.step p { font-size: var(--fs-2); color: var(--text-2); }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(3, 1fr); column-gap: var(--s-6); } }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font: 400 var(--fs-1)/1.6 var(--font-sans); }
.table th, .table td { padding: var(--s-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font: 600 var(--fs-1)/1.5 var(--font-sans); color: var(--text-2); background: var(--surface-2); border-bottom-color: var(--line-2); vertical-align: bottom; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font-weight: 600; }
.table .win a { font-weight: 650; }
.table a { text-underline-offset: 0.2em; }
.table--links { min-width: 28rem; }
.table--links th, .table--links td { padding-block: 0; vertical-align: middle; }
.table--links thead th { padding-block: var(--s-3); }
.table--links td a { display: inline-flex; align-items: center; min-width: var(--tap); min-height: var(--tap); }
.table .num { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.table--cross { min-width: 20rem; }
.table--cross th, .table--cross td { padding: var(--s-3) var(--s-1); }
.table--cross th:first-child, .table--cross td:first-child { padding-left: var(--s-3); white-space: nowrap; }
.table--cross .num { text-align: center; }
.table--cross .self, .table--cross .todo { color: var(--text-2); }
.table--cross .self { background: var(--surface-2); }
.table .center { text-align: center; }
.seed { display: inline-block; width: 1.25rem; font-size: var(--fs-1); color: var(--text-2); }
.example figcaption, .note { margin-top: var(--s-3); font-size: var(--fs-1); line-height: 1.45; color: var(--text-2); }

/* ---------- home blocks ---------- */
.duo { display: grid; gap: var(--s-6); }
.panel { display: grid; gap: var(--s-3); justify-items: start; align-content: start; }
.panel__icon { display: block; width: 1.5rem; height: 1.5rem; margin-bottom: var(--s-2); color: var(--accent-ink); }
.panel__title { font-size: var(--fs-4); font-weight: 550; line-height: 1.2; }
.panel p { color: var(--text-2); }
@media (min-width: 40rem) {
  .duo { grid-template-columns: 1fr 1fr; column-gap: 0; }
  .panel:first-child { padding-right: var(--s-6); }
  .panel + .panel { padding-left: var(--s-6); border-left: 1px solid var(--line-2); }
}

.toollist { border-top: 1px solid var(--line-2); }
.toollist li { border-bottom: 1px solid var(--line); }
.toollist__item { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--s-1) var(--s-4); min-height: var(--tap); padding: var(--s-4) var(--s-2); border-radius: var(--r-1); text-decoration: none; }
.toollist__item .ic { display: block; grid-row: span 2; margin-top: var(--s-1); color: var(--accent-ink); }
.toollist__name { font-weight: 550; }
.toollist__desc { grid-column: 2; font-size: var(--fs-1); color: var(--text-2); }
.toollist__item:hover { background: var(--surface-2); }
.toollist__item:hover .toollist__name { color: var(--accent-ink); }

.posts { border-top: 1px solid var(--line-2); }
.posts li { border-bottom: 1px solid var(--line); }
.post { display: grid; gap: var(--s-1); padding-block: var(--s-5); text-decoration: none; }
.post__tag { color: var(--accent-ink); }
.post__title { font-family: var(--font-serif); font-size: var(--fs-4); font-weight: 550; line-height: 1.2; }
.post__sub { font-size: var(--fs-1); color: var(--text-2); }
.post__meta { font-size: var(--fs-1); color: var(--text-2); }
.post:hover .post__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
@media (min-width: 48rem) {
  .post { grid-template-columns: 9rem minmax(0, 1fr) auto; column-gap: var(--s-5); align-items: baseline; }
  .post__tag { grid-row: span 2; }
  .post__title, .post__sub { grid-column: 2; }
  .post__meta { grid-column: 3; grid-row: 1; }
}

.closing { background: var(--surface-2); }
.closing > .wrap { padding-block: var(--s-7); }
.closing__in { display: grid; gap: var(--s-3); justify-items: center; text-align: center; }
.closing__title { font-size: var(--fs-6); font-weight: 450; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.closing__text { max-width: 32rem; font-size: var(--fs-2); line-height: 1.65; color: var(--text-2); }
.closing .btn { width: 100%; max-width: 24rem; margin-top: var(--s-4); }
@media (min-width: 40rem) { .closing .btn { width: auto; } }
@media (min-width: 60rem) { .closing > .wrap { padding-block: var(--s-8); } }

/* ---------- member modules (signed-in home) ---------- */
.member { padding-block: var(--s-7) var(--s-5); }
.member__in { display: grid; gap: var(--s-4); justify-items: start; }
.member__title { font-size: var(--fs-5); font-weight: 450; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.member__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.member__actions .btn { flex: 1 1 10rem; }
.member__links { display: flex; flex-wrap: wrap; column-gap: var(--s-5); }
@media (min-width: 40rem) { .member__actions .btn { flex: none; } }
.band { padding-bottom: var(--s-7); }
.band__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.band__in > * { max-width: 48rem; }
.notice { display: flex; gap: var(--s-3); align-items: flex-start; margin-block: var(--s-5) 0; padding-block: var(--s-4); border-block: 1px solid var(--line-2); font-size: var(--fs-1); max-width: var(--measure); }
.notice .ic { margin-top: 2px; color: var(--accent-ink); }
.deadline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.deadline__main { display: flex; align-items: center; gap: var(--s-3); }
.deadline__title { font: 550 var(--fs-2)/1.4 var(--font-sans); }
.deadline__text { font-size: var(--fs-1); color: var(--text-2); }
.card { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.card__title { margin-bottom: var(--s-3); font-size: var(--fs-4); font-weight: 550; line-height: 1.2; }
.card .table-scroll { border-radius: var(--r-1); }
.league-journey, .training-start { border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); overflow-wrap: anywhere; }
.league-journey { border-top: 3px solid var(--accent); }
.league-journey > summary, .training-start > summary { display: block; min-height: var(--tap); padding: var(--s-4) var(--s-5); cursor: pointer; }
.journey-title { display: block; margin-top: var(--s-1); font-family: var(--font-serif); font-size: var(--fs-4); font-weight: 550; line-height: 1.2; }
.training-start > summary { font-family: var(--font-serif); font-size: var(--fs-4); font-weight: 550; line-height: 1.2; }
.journey-eyebrow { color: var(--accent-ink); }
.journey-body, .training-start-body { display: grid; gap: var(--s-3); justify-items: start; padding: 0 var(--s-5) var(--s-5); }
.journey-steps { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.journey-steps li { padding: var(--s-1) var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-1); font-size: var(--fs-1); }
.journey-steps [aria-current="step"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.league-journey time { white-space: nowrap; }
.journey-small, .training-start-note { font-size: var(--fs-1); color: var(--text-2); }
.journey-tip { display: flex; align-items: center; min-height: var(--tap); cursor: pointer; text-decoration: underline; text-underline-offset: 0.22em; }
.journey-more { display: grid; gap: var(--s-2); }
.journey-primary { max-width: 100%; white-space: normal; }
.training-start--compact > summary { font-size: var(--fs-3); }
.training-start-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.training-start-storage { margin: 0 var(--s-5) var(--s-4); font-size: var(--fs-1); }

/* ---------- footer ---------- */
.site-footer__in { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); padding-block: var(--s-7) var(--s-5); font-size: var(--fs-1); }
.site-footer__about { grid-column: 1 / -1; display: grid; gap: var(--s-2); justify-items: start; max-width: 18rem; color: var(--text-2); line-height: 1.7; }
.site-footer__about .brand { color: var(--text); font-size: var(--fs-3); }
.footcol__title { margin-bottom: var(--s-1); color: var(--text-2); }
.footcol a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); text-decoration: none; }
.footcol a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 0.22em; }
.site-footer__legal { grid-column: 1 / -1; padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-1); color: var(--text-2); }
.site-footer__version { margin-left: var(--s-3); font-variant-numeric: tabular-nums; }
@media (min-width: 60rem) {
  .site-footer__in { grid-template-columns: 1.6fr repeat(5, minmax(0, 1fr)); }
  .site-footer__about { grid-column: auto; }
}

/* ---------- dialog and form fields ---------- */
.dialog { width: min(100% - 2 * var(--gutter), 26rem); max-height: calc(100vh - 2 * var(--s-4)); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--surface); color: var(--text); box-shadow: var(--e-2); overflow-y: auto; }
.dialog::backdrop { background: var(--backdrop); }
.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-3) var(--s-5); }
.dialog__title { font-size: var(--fs-4); font-weight: 550; line-height: 1.2; }
.dialog__sub { margin-top: var(--s-1); font-size: var(--fs-1); color: var(--text-2); }
.dialog__body { display: grid; gap: var(--s-4); padding: 0 var(--s-5) var(--s-5); }
.dialog__form { display: grid; gap: var(--s-4); }
.dialog__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.dialog__actions .btn { flex: 1 1 10rem; }
.dialog__foot { font-size: var(--fs-1); color: var(--text-2); }
.dialog__foot a { color: var(--accent-ink); text-underline-offset: 0.22em; }
.field { display: grid; gap: var(--s-1); }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.field__label { font-size: var(--fs-1); font-weight: 600; }
.field__aside { font-size: var(--fs-1); color: var(--accent-ink); text-underline-offset: 0.22em; }
.input { width: 100%; min-height: 3rem; padding: var(--s-2) var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); font: 400 var(--fs-2)/1.5 var(--font-sans); }
.input:hover { border-color: var(--text-2); }
.input:focus-visible { outline-offset: 0; border-color: var(--text); }
.check { display: flex; align-items: center; gap: var(--s-3); min-height: var(--tap); font-size: var(--fs-1); line-height: 1.65; cursor: pointer; }
.check__box { width: 1.25rem; height: 1.25rem; margin: 0; flex: none; accent-color: var(--accent); }
.alert { padding: var(--s-3) var(--s-4); border: 1px solid var(--danger); border-radius: var(--r-1); background: var(--danger-soft); color: var(--danger); font-size: var(--fs-1); }
.alert--ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.trap { position: absolute; left: -9999px; width: 0; height: 0; overflow: hidden; }
.impersonation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-2) var(--gutter); background: var(--danger); color: var(--bg); font-size: var(--fs-1); }
.impersonation a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }

/* ---------- article (blog posts) ---------- */
.article__head { padding-block: var(--s-5) var(--s-6); }
.article__head-in { display: grid; gap: var(--s-3); }
.crumbs { font: 600 var(--fs-1)/1.5 var(--font-sans); color: var(--text-2); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s-2); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); }
.article__title { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); font-weight: 450; line-height: 1.08; letter-spacing: -0.03em; max-width: 20em; hyphens: auto; overflow-wrap: break-word; text-wrap: balance; }
.article__subtitle { display: block; margin-top: var(--s-2); font-size: 0.5em; font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; color: var(--text-2); }
.article__meta { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); font-size: var(--fs-1); color: var(--text-2); }

.prose { padding-bottom: var(--s-8); font: 400 1.1875rem/1.75 var(--font-serif); }
.prose > * { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-5); }
.prose > h2 { margin-top: var(--s-7); font-size: var(--fs-5); font-weight: 450; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; scroll-margin-top: var(--s-5); }
.prose > h2 + * { margin-top: var(--s-4); }
.prose strong { font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.4em; list-style: revert; }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--accent-ink); }
.prose > .lead { max-width: var(--measure); font-size: 1.375rem; line-height: 1.6; color: var(--text); }
.prose > .table-scroll + .note, .prose > .table-scroll + p { margin-top: var(--s-4); }
.prose .table-scroll { font-size: 1rem; }
.table--wide { min-width: 34rem; }
.table small { color: var(--text-2); }
@media (min-width: 40rem) { .prose { font-size: 1.25rem; } }

.toc { padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); font: 400 var(--fs-2)/1.45 var(--font-sans); }
.toc__title { font: 600 var(--fs-1)/1.5 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.toc__list { counter-reset: toc; }
.prose .toc__list { padding-left: 0; list-style: none; }
.toc__list li { counter-increment: toc; }
.prose .toc__list li { margin: 0; }
.toc__list a { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); align-items: center; min-height: var(--tap); padding-block: var(--s-2); color: var(--text-2); text-decoration: none; }
.toc__list a::before { content: counter(toc, decimal-leading-zero); font: 500 var(--fs-1)/1.5 var(--font-sans); font-variant-numeric: tabular-nums; }
.toc__list a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 0.2em; }

.callout { padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-1); background: var(--surface); font: 400 var(--fs-2)/1.65 var(--font-sans); }
.callout--alert { border-left-color: var(--danger); }
.callout ol, .callout ul { padding-left: 1.4em; list-style: revert; }
.callout li + li { margin-top: var(--s-2); }

.signals { border-top: 1px solid var(--line-2); font: 400 var(--fs-2)/1.6 var(--font-sans); }
.signals li { padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.prose > .signals { padding-left: 0; list-style: none; }
.prose > .signals li + li { margin-top: 0; }
.signals strong { display: inline-flex; align-items: center; gap: var(--s-2); }
.signal__dot { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--ok); }
.signal--mid .signal__dot { background: var(--warn); }
.signal--stop .signal__dot { background: var(--danger); }

.faq { border-top: 1px solid var(--line-2); font-family: var(--font-sans); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 3.25rem; padding-block: var(--s-3); font: 550 var(--fs-2)/1.5 var(--font-sans); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin-right: var(--s-1); border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: var(--s-4); font: 400 var(--fs-2)/1.6 var(--font-sans); color: var(--text-2); }

.nextstep { display: grid; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); font: 400 var(--fs-2)/1.65 var(--font-sans); }
.nextstep__title { font: 550 var(--fs-4)/1.2 var(--font-serif); }
.nextstep > p { color: var(--text-2); }
.nextstep a:not(.btn) { color: var(--accent-ink); text-underline-offset: 0.22em; }
.nextstep__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); }
.nextstep__more { padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--fs-1); }
@media (max-width: 39.99rem) { .nextstep .btn { width: 100%; } }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line-2); font: 400 var(--fs-1)/1.5 var(--font-sans); }
.share__label { font-weight: 600; }
.share .btn.is-copied { border-color: var(--ok); color: var(--ok); }
.share__status:not(.sr-only) { width: 100%; padding: var(--s-2) var(--s-3); border: 1px solid var(--warn); border-radius: var(--r-1); background: var(--warn-soft); color: var(--warn); }
.share__manual { width: 100%; }
.share__manual label { display: grid; gap: var(--s-1); font-weight: 600; }

.like { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); min-width: var(--tap); padding: 0 var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); color: var(--text-2); font: 600 var(--fs-1)/1 var(--font-sans); cursor: pointer; transition: border-color var(--motion), color var(--motion); }
.like:hover { border-color: var(--text); color: var(--text); }
.like[data-liked="1"] { border-color: var(--accent); color: var(--accent-ink); }
.like[data-liked="1"] .ic { fill: currentColor; }
.like[disabled] { opacity: 0.6; cursor: wait; }
.like--sm { min-height: var(--tap); padding: 0 var(--s-2); border-color: transparent; background: none; }

.comments { display: grid; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--line-2); font: 400 var(--fs-2)/1.6 var(--font-sans); }
.comments__title { display: flex; align-items: center; gap: var(--s-3); font: 450 var(--fs-4)/1.2 var(--font-serif); }
.comments__count { min-width: 1.75rem; padding: 0 var(--s-2); border-radius: var(--r-1); background: var(--surface-2); font: 600 var(--fs-1)/1.75 var(--font-sans); text-align: center; }
.comments__rating { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-1); color: var(--text-2); }
.comments__rating .ic { fill: var(--warn); color: var(--warn); }
.comments__rating strong { color: var(--text); font-size: var(--fs-2); }
.comment-list { display: grid; gap: var(--s-5); }
.comment { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--s-3); }
.comment__avatar { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font: 650 var(--fs-1)/1 var(--font-sans); object-fit: cover; }
.comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-3); font-size: var(--fs-1); color: var(--text-2); }
.comment__head strong { color: var(--text); }
.comment__body { margin-top: var(--s-1); white-space: pre-wrap; overflow-wrap: anywhere; }
.comment__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-2); margin-top: var(--s-1); }
.comment__btn { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap); padding: 0 var(--s-2); border: 0; background: none; color: var(--text-2); font: 500 var(--fs-1)/1 var(--font-sans); cursor: pointer; }
.comment__btn:hover { color: var(--text); text-decoration: underline; text-underline-offset: 0.2em; }
.comment__btn--danger:hover { color: var(--danger); }
.comment__edit { display: grid; gap: var(--s-2); margin-top: var(--s-1); }
.comment__edit-actions, .comments__form-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.comments__form { display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.comments__empty, .comments__login p { color: var(--text-2); }
.comments__login { display: grid; gap: var(--s-3); justify-items: start; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.input--area { min-height: 7rem; resize: vertical; }
.input.is-invalid { border-color: var(--danger); }
.stars { display: flex; gap: 0; }
.stars__btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 0; background: none; color: var(--line-2); cursor: pointer; }
.stars__btn .ic { width: 1.5rem; height: 1.5rem; }
.stars__btn.is-on { color: var(--warn); }
.stars__btn.is-on .ic { fill: currentColor; }
.article__back { display: flex; justify-content: center; padding-top: var(--s-3); font: 550 var(--fs-2)/1.5 var(--font-sans); }
.prose > .article__back { max-width: none; }
.ic--flip { transform: scaleX(-1); }

/* batch-A: how-elo-rating-works */
.prose > .elo-formula { padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-1); background: var(--surface-2); font: 500 var(--fs-3)/1.7 var(--font-sans); font-variant-numeric: tabular-nums; overflow-x: auto; }
.callout > hr { height: 0; border: 0; border-top: 1px solid var(--line-2); }
.table .is-hl { background: var(--accent-soft); font-weight: 600; }
.table tr.is-hl > * { background: var(--accent-soft); }
.calc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--s-3); }
.calc > .calc__btn, .calc > #calc-result { margin-top: var(--s-4); }
.calc__label { white-space: nowrap; }
.calc__label .signal__dot { display: inline-block; margin-right: var(--s-2); }
.calc__label--draw .signal__dot { background: var(--warn); }
.calc__label--loss .signal__dot { background: var(--danger); }
.calc .table td:nth-child(2) { font-weight: 600; }
.calc .note { margin-top: var(--s-2); }
@media (max-width: 39.99rem) { .calc > .calc__btn { width: 100%; } }
/* @batch-A */
/* batch-B: benefits (stat tiles, numbered headings, long index) and endgame tables */
.ben-n { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.toc .ben-n { display: none; }
.ben-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.ben-stat { display: grid; align-content: start; gap: var(--s-1); padding: var(--s-4); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r-1); background: var(--surface); font: 400 var(--fs-1)/1.45 var(--font-sans); color: var(--text-2); overflow-wrap: anywhere; hyphens: auto; }
.prose .ben-stat strong { font: 450 var(--fs-5)/1.1 var(--font-serif); letter-spacing: -0.02em; color: var(--text); }
.ben-stat small { color: var(--text-2); }
@media (max-width: 39.99rem) {
  .ben-stats { grid-template-columns: 1fr; }
  .ben-stat { grid-template-columns: 5rem minmax(0, 1fr); align-items: center; gap: var(--s-3); }
}
.prose > h2 { overflow-wrap: anywhere; hyphens: auto; }
.page--long .prose > h2 { margin-top: var(--s-6); }
@media (min-width: 40rem) {
  .page--long .toc__list { columns: 2; column-gap: var(--s-6); }
  .page--long .toc__list li { break-inside: avoid; }
}
@media (min-width: 64rem) {
  .page--long .toc__list { columns: 1; }
  .page--long .prose > .toc { max-height: calc(100vh - var(--s-7)); overflow-y: auto; }
}
.table .tone-ok, .table .tone-warn, .table .tone-bad { font-weight: 600; }
.table .tone-ok { color: var(--ok); }
.table .tone-warn { color: var(--warn); }
.table .tone-bad { color: var(--danger); }
.table .tone-mute { color: var(--text-2); }
.table .ic { width: 1em; height: 1em; margin-right: var(--s-1); vertical-align: -0.125em; }
.callout__title .ic { margin-right: var(--s-1); vertical-align: -0.2em; }
/* @batch-B */
/* @batch-C */
/* batch-D: speedrun */
.srun-list { border-top: 1px solid var(--line-2); font: 400 var(--fs-2)/1.6 var(--font-sans); counter-reset: srun; }
.prose > .srun-list { padding-left: 0; list-style: none; }
.srun-item { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: var(--s-2); padding-block: var(--s-4); border-bottom: 1px solid var(--line); counter-increment: srun; }
.prose .srun-item + .srun-item { margin-top: 0; }
.srun-item::before { content: counter(srun) "."; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-2); }
.srun-item__name { font: 600 var(--fs-3)/1.35 var(--font-sans); overflow-wrap: anywhere; }
.srun-item__name a { color: var(--accent-ink); text-underline-offset: 0.2em; }
.srun-item__by { margin-left: var(--s-1); font-size: var(--fs-1); font-weight: 400; color: var(--text-2); }
.srun-item p { margin-top: var(--s-1); color: var(--text-2); }
.srun-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s-3); font: 400 var(--fs-2)/1.6 var(--font-sans); }
.prose > .srun-tiles { max-width: none; padding-left: 0; list-style: none; }
.prose .srun-tiles > li { margin-top: 0; }
.srun-tile { padding: var(--s-4); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r-1); background: var(--surface); }
.srun-tile__title { display: flex; align-items: center; gap: var(--s-2); color: var(--accent-ink); }
.srun-tile__title strong { color: var(--text); }
.srun-tile p + p { margin-top: var(--s-2); color: var(--text-2); }
/* batch-D: code blocks, numbered trap cards, inline code, closing actions */
.codebox { padding: var(--s-4); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-1); background: var(--surface-2); font: 500 var(--fs-1)/1.7 ui-monospace, SFMono-Regular, Consolas, Menlo, monospace; white-space: pre; tab-size: 2; overflow-x: auto; }
.codebox__c { color: var(--text-2); }
.prose .nowrap { white-space: nowrap; }
.prose p code, .prose li code { padding: 0.1em 0.35em; border-radius: var(--r-1); background: var(--surface-2); font: 0.82em ui-monospace, SFMono-Regular, Consolas, Menlo, monospace; overflow-wrap: anywhere; }
.prose sup { line-height: 0; }
.prose > h3.prose__sub { margin-top: var(--s-6); font: 550 var(--fs-3)/1.3 var(--font-serif); }
.callout__no { display: inline-grid; place-items: center; min-width: 1.75rem; height: 1.75rem; margin-right: var(--s-2); border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font: 650 var(--fs-1)/1 var(--font-sans); }
.callout .link { font-size: var(--fs-1); }
.prose__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); }
@media (max-width: 39.99rem) { .prose__actions .btn { width: 100%; } }
/* @batch-D */
/* batch E1: step/callout titles, move lines, related links, and Paper Club skins for the shared Rate My Chess, trap-trail and analysis blocks */
.callout__title { font: 650 var(--fs-3)/1.3 var(--font-serif); }
.callout > * + * { margin-top: var(--s-2); }
.prose > .callout + .callout { margin-top: var(--s-3); }
.linebox { padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface-2); font: 500 var(--fs-3)/1.6 var(--font-sans); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.prose > .toollist { padding-left: 0; list-style: none; font: 400 var(--fs-2)/1.5 var(--font-sans); }
.prose > .toollist li + li { margin-top: 0; }
.page--article .rmc { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r-2); background: var(--surface); color: var(--text); box-shadow: var(--e-1); font: 400 var(--fs-2)/1.6 var(--font-sans); margin-bottom: 0; }
.page--article .rmc-head h3 { font: 450 var(--fs-4)/1.2 var(--font-serif); letter-spacing: 0; }
.page--article .rmc-head h3 .a { background: none; -webkit-text-fill-color: currentColor; }
.page--article .rmc-head p, .page--article .rmc-progress, .page--article .rmc-pct, .page--article .rmc-note, .page--article .rmc-meta { color: var(--text-2); }
.page--article .rmc-start-btn { min-height: 3rem; padding: var(--s-3) var(--s-5); border-radius: var(--r-1); background: var(--accent); color: var(--on-accent); font: 600 var(--fs-2)/1.5 var(--font-sans); }
.page--article .rmc-start-btn:hover, .page--article .rmc-cta a.rmc-cta-btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.page--article .rmc-track, .page--article .rmc-bar { background: var(--surface-2); }
.page--article .rmc-track > i, .page--article .rmc-bar > i { background: var(--accent); }
.page--article .rmc-feed.ok { color: var(--ok); }
.page--article .rmc-feed.bad { color: var(--danger); }
.page--article .rmc-result > p:first-child { color: var(--accent-ink) !important; font: 600 var(--fs-1)/1.5 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.page--article .rmc-score-ring { color: var(--accent-ink); font-family: var(--font-serif); font-weight: 450; }
.page--article .rmc-title { font: 550 var(--fs-3)/1.3 var(--font-serif); }
.page--article .rmc-cta { border: 1px solid var(--line); border-radius: var(--r-2); background: var(--accent-soft); color: var(--text); }
.page--article .rmc-cta p { font: 550 var(--fs-3)/1.35 var(--font-serif); }
.page--article .rmc-cta a.rmc-cta-btn { min-height: 3rem; border-radius: var(--r-1); background: var(--accent); color: var(--on-accent); font: 600 var(--fs-2)/1.5 var(--font-sans); box-shadow: none; }
.page--article .rmc-share, .page--article .rmc-retry { border-radius: var(--r-1); border-color: var(--line-2); color: var(--text); font: 600 var(--fs-1)/1.5 var(--font-sans); }
.page--article .rmc-retry { color: var(--text-2); }
.page--article #blog-analysis-cta { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); color: var(--text); font: 400 var(--fs-2)/1.65 var(--font-sans); }
.page--article #blog-analysis-cta > * + * { margin-top: var(--s-3); }
.page--article #blog-analysis-title { font: 550 var(--fs-4)/1.2 var(--font-serif); }
.page--article #blog-analysis-cta .small { font-size: var(--fs-1); color: var(--text-2); }
.page--article #blog-analysis-cta .btn { border-radius: var(--r-1); }
.page--article #blog-analysis-cta .blog-analysis-primary { border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); }
.page--article #blog-analysis-cta .blog-analysis-login { border: 1px solid var(--line-2); background: var(--surface); color: var(--text); }
.callout[id] { scroll-margin-top: var(--s-5); }
.meter { display: inline-flex; gap: 2px; color: var(--warn); }
.meter .ic { width: 1em; height: 1em; fill: currentColor; }
/* @batch-E1 */
/* batch E2: vote-chess guide: external-site tiles, stat pills, link list in a next-step block */
.table .is-key { font-weight: 600; }
.prose > .vote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s-3); max-width: none; font: 400 var(--fs-2)/1.6 var(--font-sans); }
.vote-link { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r-1); background: var(--surface); color: var(--text); text-decoration: none; }
.vote-link:hover { border-color: var(--line-2); border-top-color: var(--accent); background: var(--surface-2); }
.vote-link__body { display: flex; flex: 1 1 auto; align-items: flex-start; gap: var(--s-3); padding: var(--s-4); }
.vote-link__icon { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: var(--r-1); background: var(--accent-soft); color: var(--accent-ink); }
.vote-link__text { display: grid; gap: var(--s-1); justify-items: start; min-width: 0; }
.vote-link__title { font-weight: 600; overflow-wrap: anywhere; }
.vote-link__desc { color: var(--text-2); font-size: var(--fs-1); line-height: 1.5; }
.vote-link__text .badge { margin-top: var(--s-1); white-space: normal; }
.vote-link__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--tap); padding: 0 var(--s-4); border-top: 1px solid var(--line); color: var(--accent-ink); font-size: var(--fs-1); font-weight: 600; }
.vote-link__foot .ic { width: 1rem; height: 1rem; }
.vote-stats { display: flex; flex-wrap: wrap; gap: var(--s-2); font: 400 var(--fs-1)/1.4 var(--font-sans); }
.vote-stat { display: inline-flex; align-items: baseline; gap: var(--s-2); padding: var(--s-2) var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); color: var(--text-2); }
.vote-stat strong { color: var(--accent-ink); font-weight: 650; }
.prose .nextstep__links { display: grid; padding-left: 0; list-style: none; }
.prose .nextstep__links li + li { margin-top: 0; }
/* @batch-E2 */
/* batch-F1: opening-trap pages (hub, family, detail) and the trap cards the blog shares */
.trap-page { padding-block: var(--s-5) var(--s-8); }
.trap--narrow { width: min(100% - 2 * var(--gutter), 50rem); }
.trap-page > * + * { margin-top: var(--s-4); }
.trap-page > h2 { margin-top: var(--s-7); font-size: var(--fs-4); font-weight: 550; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.trap-page > h2 + * { margin-top: var(--s-3); }
.trap-page > p { max-width: var(--measure); }
.trap__head { display: grid; gap: var(--s-3); justify-items: start; }
.trap__head > * { margin: 0; max-width: 100%; }
.trap__title { font-size: var(--fs-5); font-weight: 450; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.trap__sub { font-size: var(--fs-3); color: var(--text-2); }
.trap__none, .trap__more { color: var(--text-2); }
.trap__more { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.trap--center { text-align: center; }
.trap--center > * { margin-inline: auto; }
.trap__social { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.trap-stats { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.trap-stats li { flex: 1 1 6rem; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface); }
.trap-stats strong { display: block; font: 450 var(--fs-5)/1.1 var(--font-serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.trap-stats span { font-size: var(--fs-1); color: var(--text-2); }
.tchips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tchip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); font: 550 var(--fs-1)/1.3 var(--font-sans); text-decoration: none; }
.tchip:hover { border-color: var(--text); background: var(--surface-2); }
.tchip small { color: var(--text-2); font-size: var(--fs-1); font-variant-numeric: tabular-nums; }
.tcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--s-3); }
.tcard { display: flex; flex-direction: column; gap: var(--s-2); min-height: var(--tap); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface); color: var(--text); font: 400 var(--fs-1)/1.5 var(--font-sans); text-decoration: none; }
.tcard:hover { border-color: var(--line-2); background: var(--surface-2); }
.tcard__title { font: 550 var(--fs-3)/1.3 var(--font-serif); overflow-wrap: anywhere; }
.tcard:hover .tcard__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.tcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); color: var(--text-2); }
.trap-filter { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.trap-filter .input { flex: 1 1 12rem; width: auto; }
.trap-filter input.input { flex: 2 1 16rem; }
.trap-fam + .trap-fam { margin-top: var(--s-6); }
.trap-fam > h3 { margin-bottom: var(--s-3); font: 550 var(--fs-3)/1.3 var(--font-serif); }
.trap-fam > h3 a { display: inline-flex; align-items: center; min-height: var(--tap); text-underline-offset: 0.2em; }
.trap-fam > h3 small { font: 400 var(--fs-1)/1.5 var(--font-sans); color: var(--text-2); }
.trap-badges { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.trap-panel { padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.trap-panel > .note { margin-top: var(--s-3); }
.trap-facts { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: var(--s-2) var(--s-4); }
.trap-facts dt { font-size: var(--fs-1); font-weight: 600; color: var(--text-2); }
.trap-facts dd { overflow-wrap: anywhere; }
.trap-facts a { text-underline-offset: 0.2em; }
.trap-fen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.trap-fen code { flex: 1 1 14rem; padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface-2); font: 500 0.8125rem/1.5 ui-monospace, SFMono-Regular, Consolas, Menlo, monospace; overflow-wrap: anywhere; }
@media (max-width: 39.99rem) {
  .trap-facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .trap-facts dd { margin-bottom: var(--s-3); }
}
/* interactive viewer (js/trap-viewer.js draws these classes) */
.tv { max-width: 32rem; margin-inline: auto; }
.tv-tabs { display: flex; margin-bottom: var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-1); overflow: hidden; }
.tv-tab { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-3); border: 0; background: var(--surface); color: var(--text-2); font: 600 var(--fs-1)/1.3 var(--font-sans); cursor: pointer; }
.tv-tab + .tv-tab { border-left: 1px solid var(--line-2); }
.tv-tab:hover { background: var(--surface-2); color: var(--text); }
.tv-tab.is-on, .tv-tab.is-on:hover { background: var(--accent); color: var(--on-accent); }
.tv-tab .ic { width: 1rem; height: 1rem; }
.tv-board-wrap { width: 100%; max-width: 30rem; margin-inline: auto; }
.tv-status { min-height: 3.5rem; margin-top: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: var(--r-1); background: var(--surface-2); font: 400 var(--fs-1)/1.5 var(--font-sans); }
.tv-status.is-bad { border-left-color: var(--danger); }
.tv-status.is-good { border-left-color: var(--ok); }
.tv-ctrls { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-3); }
.tv-btn { flex: 1 1 0; max-width: 6rem; display: inline-grid; place-items: center; min-height: var(--tap); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); color: var(--text); cursor: pointer; }
.tv-btn:hover:not(:disabled) { border-color: var(--text); background: var(--surface-2); }
.tv-btn.is-main { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.tv-btn.is-main:hover:not(:disabled) { border-color: var(--accent-hover); background: var(--accent-hover); }
.tv-btn:disabled { color: var(--text-2); background: var(--surface-2); cursor: not-allowed; }
.tv-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-top: var(--s-3); }
.tv-actions:empty { display: none; }
.tv-moves { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: var(--s-1) var(--s-3); }
.tv-moves li { display: flex; align-items: center; gap: var(--s-1); font: 500 var(--fs-1)/1.4 var(--font-sans); font-variant-numeric: tabular-nums; }
.tv-n { flex: none; width: 2rem; color: var(--text-2); text-align: right; }
.tv-mv { flex: 1 1 0; min-width: 0; min-height: var(--tap); padding: 0 var(--s-2); border: 1px solid transparent; border-radius: var(--r-1); background: none; color: var(--text); text-align: left; cursor: pointer; }
.tv-mv:hover { border-color: var(--line-2); }
.tv-mv.is-cur { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.tv-mv.is-bait { color: var(--danger); font-weight: 700; }
.tv-mv.is-bait::after { content: "?"; }
/* chessboard.js board on the page tokens: squares, coordinates, highlights, move dots, pieces dragged by the cursor */
.page--trap .tv .cgl-board .white-1e1d7 { background-color: var(--board-l); color: var(--board-ink); }
.page--trap .tv .cgl-board .black-3c85d { background-color: var(--board-d); color: var(--board-ink); }
.page--trap .tv .cgl-board .notation-322f9 { opacity: 1; color: var(--board-ink); }
.page--trap .tv .board-b72b1 { border: 1px solid var(--text-2); }
.page--trap .tv .cgl-board .square-55d63.cgl-hl-last, .page--trap .tv .cgl-board .square-55d63.cgl-hl-sel, .page--trap .tv .cgl-board .square-55d63.cgl-hl-hover { box-shadow: inset 0 0 0 4px var(--accent); }
.page--trap .tv .cgl-board .square-55d63.highlight1-32417, .page--trap .tv .cgl-board .square-55d63.highlight2-9c5d2 { box-shadow: inset 0 0 0 4px var(--accent) !important; }
.page--trap .tv .cgl-board .square-55d63.cgl-hl-legal::after { background: var(--accent); opacity: 0.6; }
.page--trap .tv .cgl-board .square-55d63.cgl-hl-legal-cap::after { border-color: var(--accent); opacity: 0.8; }
.page--trap.cgl-dark { background: var(--bg); color: var(--text); }
.trap-page > .share { margin-top: var(--s-6); }
body > img[data-piece] { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }
/* @batch-F1 */
/* batch-G1: trainer hub (public landing and member dashboard) */
.hub { padding-block: var(--s-5) var(--s-8); }
.hub > * + * { margin-top: var(--s-4); }
.hub__head { display: grid; gap: var(--s-3); justify-items: start; }
.hub__head > * { margin: 0; max-width: 100%; }
.hub__title { font-size: var(--fs-5); font-weight: 450; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.hub__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); width: 100%; }
.hub__actions .btn { flex: 1 1 12rem; }
.hub__note { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-1); color: var(--text-2); }
.hub__note .ic { color: var(--ok); }
@media (min-width: 40rem) { .hub__actions { width: auto; } .hub__actions .btn { flex: none; } }
.hub-block { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.hub-block--plain { padding-top: 0; border-top: 0; }
.hub-block > * + * { margin-top: var(--s-4); }
.hub-block__title { font: 550 var(--fs-4)/1.2 var(--font-serif); letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.hub-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--s-3); }
.hub-stat, .hub-fig { display: grid; gap: var(--s-1); align-content: start; min-width: 0; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface); }
.hub-stat__val { font: 450 var(--fs-4)/1.1 var(--font-serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hub-stat__val small { font: 600 var(--fs-1)/1.5 var(--font-sans); letter-spacing: 0; color: var(--text-2); }
.hub-stat__label, .hub-stat__hint, .hub-fig__sub { font-size: var(--fs-1); color: var(--text-2); overflow-wrap: anywhere; }
.hub-meter { display: block; width: 100%; height: var(--s-3); margin-top: var(--s-1); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface-2); -webkit-appearance: none; appearance: none; overflow: hidden; }
.hub-meter::-webkit-progress-bar { background: var(--surface-2); }
.hub-meter::-webkit-progress-value { background: var(--accent); }
.hub-meter::-moz-progress-bar { background: var(--accent); }
.hub-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r-2); background: var(--surface); }
.hub-banner__text { display: grid; gap: var(--s-1); flex: 1 1 16rem; min-width: 0; }
.hub-banner__text strong { font: 550 var(--fs-3)/1.3 var(--font-serif); }
.hub-banner__text span { font-size: var(--fs-1); color: var(--text-2); }
.hub-banner__actions { display: flex; align-items: center; gap: var(--s-2); }
@media (max-width: 39.99rem) { .hub-banner__actions { width: 100%; } .hub-banner__actions .btn { flex: 1 1 auto; } }
.hub-prompt { display: flex; align-items: center; gap: var(--s-3); min-height: var(--tap); padding: var(--s-3) var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); font-size: var(--fs-1); text-decoration: none; }
.hub-prompt > span { flex: 1 1 auto; min-width: 0; }
.hub-prompt .ic { color: var(--accent-ink); }
.hub-prompt:hover { border-color: var(--text); background: var(--surface-2); }
.hub-tools { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-2); }
.hub-tools li { border-bottom: 1px solid var(--line); }
.hub-tool { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--s-1) var(--s-4); min-height: var(--tap); height: 100%; padding: var(--s-4) var(--s-2); border-radius: var(--r-1); text-decoration: none; }
.hub-tool > .ic:first-child { grid-row: span 3; margin-top: var(--s-1); color: var(--accent-ink); }
.hub-tool__name { font-weight: 550; overflow-wrap: anywhere; }
.hub-tool__desc { grid-column: 2; font-size: var(--fs-1); color: var(--text-2); overflow-wrap: anywhere; }
.hub-tool__go { grid-column: 2; display: inline-flex; align-items: center; gap: var(--s-1); margin-top: var(--s-1); font: 600 var(--fs-1)/1.5 var(--font-sans); color: var(--accent-ink); }
.hub-tool:hover { background: var(--surface-2); }
.hub-tool:hover .hub-tool__name { color: var(--accent-ink); }
@media (min-width: 48rem) { .hub-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); } }
.hub-why { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5) var(--s-6); }
.hub-why li { display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-3); border-top: 1px solid var(--line-2); }
.hub-why h3 { font: 550 var(--fs-3)/1.3 var(--font-serif); overflow-wrap: anywhere; }
.hub-why p { color: var(--text-2); }
@media (min-width: 40rem) { .hub-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hub-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--s-3); }
.hub-figs--trend { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .hub-figs--trend { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hub-fig--wide { grid-column: 1 / -1; } }
@media (min-width: 64rem) { .hub-figs--trend { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hub-fig--wide { grid-column: auto; } }
.hub-fig__val { font: 450 var(--fs-5)/1.1 var(--font-serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hub-heat { display: grid; grid-template-rows: repeat(7, auto); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; width: 100%; max-width: 22rem; margin-top: var(--s-2); }
.hub-heat__cell { aspect-ratio: 1; border-radius: 2px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.hub-heat__cell--1, .hub-heat__cell--2, .hub-heat__cell--3 { background: var(--accent-soft); box-shadow: none; }
.hub-heat__cell--1 { background: color-mix(in srgb, var(--accent) 25%, var(--surface-2)); }
.hub-heat__cell--2 { background: color-mix(in srgb, var(--accent) 45%, var(--surface-2)); }
.hub-heat__cell--3 { background: color-mix(in srgb, var(--accent) 70%, var(--surface-2)); }
.hub-heat__cell--4 { background: var(--accent); box-shadow: none; }
.hub-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-2); margin-top: var(--s-2); }
.hub-chart__scale { display: flex; flex-direction: column; justify-content: space-between; font-size: var(--fs-1); line-height: 1.2; color: var(--text-2); font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 7.5rem; }
.spark__area { fill: var(--accent-soft); stroke: none; }
.spark__line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hub-empty { padding-block: var(--s-4); font-size: var(--fs-1); color: var(--text-2); }
.hub-ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--s-3); }
.hub-ach li { display: grid; justify-items: start; align-content: start; gap: var(--s-1); min-width: 0; padding: var(--s-4); border: 1px dashed var(--line-2); border-radius: var(--r-1); }
.hub-ach li.is-earned { border: 1px solid var(--accent); background: var(--surface); }
.hub-ach__icon { display: grid; place-items: center; width: var(--tap); height: var(--tap); margin-bottom: var(--s-1); border-radius: var(--r-1); background: var(--surface-2); color: var(--text-2); }
.is-earned .hub-ach__icon { background: var(--accent); color: var(--on-accent); }
.hub-ach__name { font-weight: 600; overflow-wrap: break-word; hyphens: auto; }
.hub-ach__desc { font-size: var(--fs-1); color: var(--text-2); overflow-wrap: break-word; hyphens: auto; }
/* @batch-G1 */
/* batch-H1: sign-in flow (register, login, forgot, reset, resend) */
.auth { display: grid; justify-items: center; padding-block: var(--s-5) var(--s-8); }
.auth__card { display: grid; gap: var(--s-4); width: 100%; max-width: 28rem; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--e-1); }
@media (min-width: 40rem) { .auth { padding-top: var(--s-7); } .auth__card { padding: var(--s-6); } }
.auth__head { display: grid; gap: var(--s-2); justify-items: start; }
.auth__icon { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: var(--r-1); background: var(--accent-soft); color: var(--accent-ink); }
.auth__title { font-size: var(--fs-4); font-weight: 550; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.auth__sub { font-size: var(--fs-1); color: var(--text-2); overflow-wrap: anywhere; }
.auth__form { display: grid; gap: var(--s-4); }
.auth__gate { display: grid; gap: var(--s-3); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.auth__gate > p:first-child { font-size: var(--fs-1); }
.auth__actions { display: grid; }
.auth__foot { font-size: var(--fs-1); color: var(--text-2); text-align: center; }
.auth__foot a, .auth .field__aside { display: inline-flex; align-items: center; min-width: var(--tap); min-height: var(--tap); color: var(--accent-ink); text-underline-offset: 0.22em; }
.auth .field__row { align-items: center; }
.auth__note { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-1); line-height: 1.5; color: var(--text-2); }
.auth__note .ic { margin-top: 1px; }
.field__msg { font-size: var(--fs-1); line-height: 1.45; color: var(--danger); overflow-wrap: anywhere; }
.field__msg--ok { color: var(--ok); }
.field__hint { font-size: var(--fs-1); line-height: 1.5; color: var(--text-2); }
.input.is-invalid { border-color: var(--danger); }
.input.is-valid { border-color: var(--ok); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 3.25rem; }
.input-wrap__btn { position: absolute; top: 0; right: 0; display: grid; place-items: center; min-width: var(--tap); height: 100%; padding: 0; border: 0; border-radius: 0 var(--r-1) var(--r-1) 0; background: none; color: var(--text-2); cursor: pointer; }
.input-wrap__btn:hover { color: var(--text); }
.input-wrap__btn .ic:last-child, .input-wrap__btn.is-on .ic:first-child { display: none; }
.input-wrap__btn.is-on .ic:last-child { display: block; }
.meter { --meter: var(--text-2); --meter-w: 0%; display: grid; gap: var(--s-1); }
.meter--weak { --meter: var(--danger); --meter-w: 25%; }
.meter--fair { --meter: var(--warn); --meter-w: 55%; }
.meter--strong { --meter: var(--ok); --meter-w: 100%; }
.meter__track { height: var(--s-2); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface-2); overflow: hidden; }
.meter__fill { display: block; width: var(--meter-w); height: 100%; background: var(--meter); transition: width var(--motion); }
.meter__text { font-size: var(--fs-1); color: var(--meter); }
.alert--info { border-color: var(--line-2); background: var(--surface-2); color: var(--text); }
.alert--icon { display: flex; align-items: flex-start; gap: var(--s-3); }
.alert--icon .ic { margin-top: 2px; }
.alert a { color: inherit; text-underline-offset: 0.22em; }
/* @batch-H1 */
/* batch-I1: member pages (my round, standings, history, submit result) */
.mp { padding-block: var(--s-5) var(--s-8); }
.mp > * + * { margin-top: var(--s-4); }
.mp__head { display: grid; gap: var(--s-2); justify-items: start; }
.mp__head > * { margin: 0; max-width: 100%; }
.mp__title { font-size: var(--fs-5); font-weight: 450; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.mp__sub { max-width: var(--measure); color: var(--text-2); overflow-wrap: anywhere; }
.mp__sub .ic { display: inline-block; width: 1rem; height: 1rem; margin-right: var(--s-1); vertical-align: -0.15em; }
.mp__sub strong { color: var(--text); font-weight: 600; }
.mp__jump { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.mp__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.mp__bar .card__title { margin-bottom: 0; }
.mp__more { font-size: var(--fs-1); }
.mp__narrow { width: 100%; max-width: 36rem; }
.mp .card > * + * { margin-top: var(--s-3); }
.badge .ic { width: 1rem; height: 1rem; margin-right: var(--s-1); }
.badge { gap: var(--s-1); }
.tabs { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); border-bottom: 1px solid var(--line-2); }
.tabs__link { display: inline-flex; align-items: center; min-height: var(--tap); margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--text-2); font-weight: 550; text-decoration: none; }
.tabs__link:hover { color: var(--text); }
.tabs__link[aria-current="page"] { border-bottom-color: var(--accent); color: var(--text); }
.lg__level { margin-top: var(--s-6); font: 550 var(--fs-4)/1.2 var(--font-serif); letter-spacing: -0.01em; scroll-margin-top: var(--s-5); }
.table--league { min-width: 44rem; }
.table--league td, .table--league th { vertical-align: middle; }
.table--league .num small { margin-left: var(--s-1); }
.lgt__name { min-width: 10rem; }
.table--league th:nth-child(2), .table--league td:nth-child(2) { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.table--league thead th:nth-child(2) { background: var(--surface-2); }
.table--league tr.is-hl > td:nth-child(2) { background: var(--accent-soft); }
.lgt__name > a { display: inline-flex; align-items: center; min-height: var(--tap); }
.lgt__act { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); color: var(--accent-ink); }
.lgt__act .ic { width: 1.1rem; height: 1.1rem; margin: 0; }
.lgt__act sup { font-size: 0.7em; }
.lgt__pending .lgt__score { font-style: italic; text-decoration: underline dotted; text-underline-offset: 0.25em; }
.lgt__admin { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-1); }
.lgt__admin form { margin: 0; }
.lgt__admin .btn .ic { margin: 0; }
.res { display: grid; }
.res__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; grid-template-areas: "p1 score p2 link"; align-items: center; gap: var(--s-3); border-top: 1px solid var(--line); }
.res__p { display: inline-flex; align-items: center; gap: var(--s-1); grid-area: p1; min-height: var(--tap); text-decoration: none; overflow-wrap: anywhere; }
.res__p--2 { grid-area: p2; justify-content: flex-end; text-align: right; }
.res__p.is-win { font-weight: 650; }
.res__p .ic { width: 1rem; height: 1rem; color: var(--warn); }
.res__score { grid-area: score; font-variant-numeric: tabular-nums; }
.res__row .icon-btn { grid-area: link; }
@media (max-width: 29.99rem) {
  .res__row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "p1 score link" "p2 score link"; row-gap: 0; }
  .res__p--2 { justify-content: flex-start; text-align: left; }
}
.venues { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
@media (min-width: 40rem) { .venues { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.venue__name { display: flex; align-items: center; gap: var(--s-2); font: 550 var(--fs-3)/1.3 var(--font-serif); }
.opp__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
@media (min-width: 40rem) { .opp__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opp__item { display: grid; gap: var(--s-2); align-content: start; min-width: 0; padding: var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-1); }
.opp__item > * { margin: 0; }
.opp__name { font: 550 var(--fs-3)/1.3 var(--font-serif); overflow-wrap: anywhere; }
.opp__state { font-size: var(--fs-1); font-weight: 600; }
.opp__links { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
@media (min-width: 40rem) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
select.input { padding-right: var(--s-3); }
.field__msg--info { color: var(--text-2); }
.field__msg--warn { color: var(--warn); }
.game { display: grid; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-1); }
.game__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.seg { display: inline-flex; flex-wrap: wrap; gap: var(--s-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg__opt span { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); font-weight: 550; }
.seg__opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.seg__opt .ic { width: 1rem; height: 1rem; }
.game__pgn { display: grid; gap: var(--s-2); }
/* @batch-I1 */
/* batch-J1: people (my profile, edit profile, change password, players, player profile) */
.who { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-4) var(--s-5); }
.who__text { display: grid; gap: var(--s-1); flex: 1 1 14rem; min-width: 0; }
.who__text > * { margin: 0; }
.avatar { width: 6rem; height: 6rem; flex: none; border: 1px solid var(--line-2); border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.avatar--text { display: grid; place-items: center; border-color: var(--accent-soft); background: var(--accent-soft); color: var(--accent-ink); font: 550 var(--fs-4)/1 var(--font-serif); }
.dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 0 var(--s-4); }
.dl dt { font-weight: 600; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.dl dt, .dl dd { min-height: var(--tap); display: flex; align-items: center; }
.dl a { display: inline-flex; align-items: center; min-height: var(--tap); text-underline-offset: 0.22em; }
.card--danger { border-color: var(--danger); }
.card--danger .card__title { display: flex; align-items: center; gap: var(--s-2); color: var(--danger); font-size: var(--fs-3); }
.btn--danger { color: var(--danger); border-color: var(--danger); }
.btn--danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.input-pre { display: flex; }
.input-pre__t { display: flex; align-items: center; padding: 0 var(--s-2); border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r-1) 0 0 var(--r-1); background: var(--surface-2); color: var(--text-2); font-size: var(--fs-1); white-space: nowrap; }
.input-pre .input { min-width: 0; padding-inline: var(--s-2); border-radius: 0 var(--r-1) var(--r-1) 0; }
.field__req { color: var(--danger); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.form-actions .btn { flex: 1 1 10rem; }
.mp__sect { margin-top: var(--s-2); font: 550 var(--fs-3)/1.3 var(--font-serif); }
.auth__form .mp__sect { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.mp .card .share { padding-top: 0; border-top: 0; }
.table--stats { min-width: 40rem; }
.table--stats td:nth-child(2) { white-space: nowrap; }
.mp__search { max-width: 26rem; }
.table--players { min-width: 46rem; }
.table--players th, .table--players td { vertical-align: middle; }
.table--players tbody th { font-weight: 400; }
.table--players th:nth-child(2) { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.table--players thead th:nth-child(2) { background: var(--surface-2); }
.table--players .lgt__name a { gap: var(--s-2); }
.table--players tr.is-off > * { color: var(--text-2); }
.mp__inline { display: flex; margin: 0; }
.mp__title--off { color: var(--text-2); }
.avatar--off { border-color: var(--line-2); background: var(--surface-2); color: var(--text-2); }
.avatar--off .ic { width: 2.25rem; height: 2.25rem; }
.who__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.who__help { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); color: var(--text-2); }
.who__help:hover { color: var(--text); }
.admin__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.admin { display: grid; gap: var(--s-3); }
.pstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: var(--s-3); }
.pstat { display: grid; gap: var(--s-1); align-content: start; min-width: 0; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-1); }
.pstat dt { font-size: var(--fs-1); color: var(--text-2); overflow-wrap: anywhere; }
.pstat dd { margin: 0; font: 450 var(--fs-4)/1.1 var(--font-serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pstat--zero dd { color: var(--text-2); }
.table--split { min-width: 22rem; }
.table--h2h { min-width: 34rem; }
.table--h2h tbody th { font-weight: 400; white-space: nowrap; }
.table--h2h th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.table--h2h thead th:first-child { background: var(--surface-2); }
.charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
@media (min-width: 40rem) { .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chart { display: grid; gap: var(--s-2); margin: 0; }
.chart__title { font-weight: 600; font-size: var(--fs-1); color: var(--text-2); }
.chart__range { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-3); font-size: var(--fs-1); color: var(--text-2); }
.chart__range strong { color: var(--text); font-variant-numeric: tabular-nums; }
.msgbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.msgbar__stats { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); font-size: var(--fs-1); color: var(--text-2); }
.msgbar__stats strong { color: var(--text); font-variant-numeric: tabular-nums; }
.msgbar__per { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-1); }
.msgbar__per .input { width: auto; }
.card__title .badge { margin-left: var(--s-2); vertical-align: middle; }
.card__title > .ic { display: inline-block; margin-right: var(--s-2); vertical-align: -0.1em; }
.msgs { display: grid; border-top: 1px solid var(--line); }
.msgs__all { padding-inline: var(--s-3); }
.msg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); padding-left: var(--s-1); border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.msg.is-unread { border-left-color: var(--accent); background: var(--accent-soft); }
.msg__sel { justify-content: center; min-width: var(--tap); }
.msg__main { display: grid; gap: var(--s-1); min-width: 0; padding-block: var(--s-2); }
.msg__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); font-size: var(--fs-1); color: var(--text-2); }
.msg__who { color: var(--text); font-weight: 550; }
.msg.is-unread .msg__who, .msg.is-unread .msg__link { font-weight: 700; }
.msg__link { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text); overflow-wrap: anywhere; text-underline-offset: 0.22em; }
.msg__del { color: var(--danger); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); padding-top: var(--s-3); font-size: var(--fs-1); color: var(--text-2); }
.pager__btns { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pager__btn { min-width: var(--tap); min-height: var(--tap); padding: 0 var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); color: var(--text); font: 600 var(--fs-1)/1.5 var(--font-sans); cursor: pointer; }
.pager__btn:hover:not([disabled]) { border-color: var(--text); background: var(--surface-2); }
.pager__btn[aria-current="page"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.pager__btn[disabled] { background: var(--surface-2); color: var(--text-2); cursor: not-allowed; }
.msg-body { padding: var(--s-4); border-left: 3px solid var(--accent); border-radius: 0 var(--r-1) var(--r-1) 0; background: var(--surface-2); line-height: 1.7; overflow-wrap: anywhere; }
.bc { border-top: 1px solid var(--line); }
.bc > summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); min-height: var(--tap); padding-block: var(--s-2); font-size: var(--fs-1); cursor: pointer; }
.bc__date { color: var(--text-2); }
.bc__body { display: grid; gap: var(--s-2); padding-bottom: var(--s-3); }
.bc__who { display: flex; flex-wrap: wrap; gap: var(--s-2); }
/* @batch-J1 */
.recipient { display: grid; gap: var(--s-2); margin: 0; padding: var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface-2); overflow-wrap: anywhere; }
.recipient__note { display: flex; align-items: center; gap: var(--s-2); margin: 0; font-size: var(--fs-1); color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; gap: var(--s-2); max-width: 100%; padding: var(--s-1) var(--s-3) var(--s-1) var(--s-1); border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: var(--fs-1); font-weight: 600; overflow-wrap: anywhere; }
.chip__ini { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: var(--fs-1); font-weight: 650; }
.compose__proposal { padding: var(--s-3) var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-1); }
.compose__fields { display: grid; gap: var(--s-4); padding-top: var(--s-2); }
.compose__fields .btn { justify-self: start; max-width: 100%; white-space: normal; }
/* @batch-K1 */
/* e-Trainer shell (lib/cgl_trainer.php, js/cgl-trainer.js): tool column, board stage, step panes, board on the page tokens */
.tr { padding-block: var(--s-5) var(--s-8); align-content: start; }
.tr, .tr__grid { display: grid; gap: var(--s-5); }
.tr__back { transform: rotate(180deg); }
.tr__step { display: grid; gap: var(--s-4); }
.tr__note { max-width: var(--measure); font-size: var(--fs-1); color: var(--text-2); }
.tr__q { font: 550 var(--fs-3)/1.3 var(--font-serif); }
.tr__choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
@media (min-width: 40rem) { .tr__choices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); align-content: start; gap: var(--s-1) var(--s-4); min-height: var(--tap); padding: var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.choice:hover { border-color: var(--accent); background: var(--accent-soft); }
.choice__icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--r-1); background: var(--accent-soft); color: var(--accent-ink); }
.choice__name { font: 600 var(--fs-3)/1.3 var(--font-serif); }
.choice__desc { font-size: var(--fs-1); color: var(--text-2); }
.tr__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "stage" "feedback"; }
.tr__info { grid-area: info; display: grid; gap: var(--s-3); align-content: start; }
.tr__stage { grid-area: stage; display: grid; gap: var(--s-2); }
.tr__grid > .tr__status { grid-area: feedback; }
@media (min-width: 48rem) {
  .tr__grid { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); grid-template-areas: "stage info" "stage feedback"; grid-template-rows: auto 1fr; align-items: start; column-gap: var(--s-6); }
}
.tr__progress-text { display: flex; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-1); font-size: var(--fs-1); color: var(--text-2); }
.tr__bar { appearance: none; width: 100%; height: 0.5rem; border: 0; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.tr__bar::-webkit-progress-bar { background: var(--line-2); }
.tr__bar::-webkit-progress-value { background: var(--accent); }
.tr__bar::-moz-progress-bar { background: var(--accent); }
.tr__turn { display: flex; align-items: center; gap: var(--s-2); margin: 0; padding: var(--s-1) var(--s-2); border-radius: var(--r-1); font: 600 var(--fs-3)/1.3 var(--font-sans); }
.tr__turn:focus-visible { outline-offset: 0; }
.tr__dot { width: 0.875rem; height: 0.875rem; flex: none; border: 1px solid var(--text-2); border-radius: 50%; }
.tr__dot--w { background: var(--board-l); }
.tr__dot--b { background: var(--board-ink); }
.tr__status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); min-height: 3.5rem; margin: 0; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: var(--r-1); background: var(--surface-2); font: 600 var(--fs-2)/1.5 var(--font-sans); overflow-wrap: anywhere; }
.tr__status:empty { visibility: hidden; }
.tr__status.is-good { border-left-color: var(--ok); }
.tr__status.is-bad { border-left-color: var(--danger); }
.tr__tools { display: flex; justify-content: flex-end; gap: var(--s-1); }
.tr__tools .icon-btn { border: 1px solid var(--line-2); color: var(--text-2); }
.tr__tools .icon-btn:hover, .tr__tools .icon-btn.is-on { color: var(--text); }
.tr__fs { display: none; }
@media (max-width: 47.99rem) { .tr__fs { display: inline-flex; } }
.tr__snd .ic:last-child, .tr__snd.is-muted .ic:first-child { display: none; }
.tr__snd.is-muted .ic:last-child { display: block; }
.tr .cgl-board-wrap { max-width: 30rem; }
.tr__stage.is-fs { position: fixed; inset: 0; z-index: 3000; align-content: center; justify-items: center; padding: var(--s-3); background: var(--bg); overflow: hidden; }
.tr__stage.is-fs .tr__tools { position: absolute; top: var(--s-2); right: var(--s-2); }
.tr__stage.is-fs .cgl-board-wrap { max-width: min(100vw - 2rem, 100vh - 6rem); max-width: min(100vw - 2rem, 100dvh - 6rem); }
body.tr-fs-active { overflow: hidden; touch-action: none; overscroll-behavior: none; }
body.tr-fs-active > img[data-piece] { z-index: 3300 !important; }
.tr__result { display: grid; justify-items: center; gap: var(--s-3); max-width: 36rem; margin-inline: auto; padding: var(--s-6) var(--s-5); text-align: center; }
.tr__result > * { margin: 0; max-width: 100%; }
.tr__result:focus-visible { outline-offset: 4px; }
.tr__elo { display: grid; place-items: center; gap: var(--s-1); min-width: 10rem; max-width: 100%; padding: var(--s-4) var(--s-5); border: 2px solid var(--accent); border-radius: var(--r-2); background: var(--accent-soft); }
.tr__elo-num { font: 550 var(--fs-5)/1 var(--font-serif); color: var(--accent-ink); }
.tr__elo-lbl { font: 600 var(--fs-1)/1.3 var(--font-sans); color: var(--accent-ink); }
.tr__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
.tr__actions .btn { flex: 1 1 12rem; white-space: normal; }
.tr__loading { display: flex; align-items: center; justify-content: center; gap: var(--s-3); padding: var(--s-6); color: var(--text-2); }
.tr__spin { width: 1.5rem; height: 1.5rem; border: 3px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: tr-spin 0.8s linear infinite; }
@keyframes tr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tr__spin { animation: none; } }
.page--tool .cgl-board .white-1e1d7 { background-color: var(--board-l); color: var(--board-ink); }
.page--tool .cgl-board .black-3c85d { background-color: var(--board-d); color: var(--board-ink); }
.page--tool .cgl-board .notation-322f9 { opacity: 1; color: var(--board-ink); }
.page--tool .board-b72b1 { border: 1px solid var(--text-2); }
.page--tool .cgl-board .square-55d63.cgl-hl-last, .page--tool .cgl-board .square-55d63.cgl-hl-sel, .page--tool .cgl-board .square-55d63.cgl-hl-hover { box-shadow: inset 0 0 0 4px var(--accent); }
.page--tool .cgl-board .square-55d63.highlight1-32417, .page--tool .cgl-board .square-55d63.highlight2-9c5d2 { box-shadow: inset 0 0 0 4px var(--accent) !important; }
.page--tool .cgl-board .square-55d63.cgl-hl-legal::after { background: var(--accent); opacity: 0.6; }
.page--tool .cgl-board .square-55d63.cgl-hl-legal-cap::after { border-color: var(--accent); opacity: 0.8; }
/* @batch-L1 */
/* @batch-M1 */
/* e-Trainer tools: chips row, feedback column and the daily puzzle result card */
.tr__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; }
.tr__chips .badge { gap: var(--s-1); min-height: 1.75rem; align-items: center; white-space: normal; }
.tr__chips .ic { width: 1rem; height: 1rem; }
.tr__grid > .tr__after { grid-area: feedback; display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.tr__after > .btn { justify-self: start; max-width: 100%; white-space: normal; }
.pz__result { display: grid; gap: var(--s-3); border-left: 3px solid var(--line-2); }
.pz__result > * { margin: 0; }
.pz__result.is-solved { border-left-color: var(--ok); }
.pz__result.is-failed { border-left-color: var(--danger); }
.pz__result:focus-visible { outline-offset: 4px; }
.pz__rewards { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pz__result .btn { justify-self: start; max-width: 100%; white-space: normal; }
/* Free practice: setup form, session buttons and summary */
.pr__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); align-items: end; gap: var(--s-4); }
.pr__start { white-space: normal; }
.pr__actions { justify-content: flex-start; }
.pr__sum-stats { font: 550 var(--fs-3)/1.3 var(--font-serif); }
/* Play vs engine: mode and colour pickers, game buttons and the move list */
.sp__setup { display: grid; gap: var(--s-5); max-width: 48rem; }
.sp__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.sp__group legend { padding: 0; margin-bottom: var(--s-2); }
.sp__start { justify-self: start; max-width: 100%; white-space: normal; }
.pick { position: relative; display: block; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick .choice { height: 100%; }
.pick input:checked + .choice { border-color: var(--accent); background: var(--accent-soft); }
.pick input:focus-visible + .choice { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice__meta { grid-column: 2; font-size: var(--fs-1); font-weight: 600; color: var(--accent-ink); }
.sp__actions { justify-content: flex-start; }
.sp__moves { padding: var(--s-3) var(--s-4); }
.sp__moves-title { margin-bottom: var(--s-2); font: 600 var(--fs-1)/1.3 var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
.sp__scroll { max-height: 14rem; overflow-y: auto; }
.sp__list { margin: 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.sp__list li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-2); padding: var(--s-1) 0; }
.sp__list li + li { border-top: 1px solid var(--line); }
.sp__n { color: var(--text-2); }
/* Endgames: scenario list, drill header, idea card and result */
.eg__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: var(--s-4); }
.eg__tile { display: grid; grid-template-rows: auto 1fr auto; gap: var(--s-3); padding: var(--s-4); }
.eg__tile.is-solved { border-color: var(--ok); }
.eg__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-2); }
.eg__nm { min-width: 0; font: 600 var(--fs-3)/1.3 var(--font-serif); overflow-wrap: anywhere; }
.eg__solved { flex: none; }
.eg__ex { font-size: var(--fs-1); color: var(--text-2); }
.eg__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); }
.eg__meta .btn { max-width: 100%; white-space: normal; }
.eg__name { font: 550 var(--fs-4)/1.2 var(--font-serif); overflow-wrap: anywhere; }
.eg__name:focus-visible { outline-offset: 4px; }
.eg__goal { display: flex; align-items: flex-start; gap: var(--s-2); font-weight: 600; }
.eg__goal .ic { flex: none; margin-top: 0.25em; color: var(--accent-ink); }
.eg__idea { padding: var(--s-3) var(--s-4); }
.eg__lbl { margin-bottom: var(--s-1); font: 600 var(--fs-1)/1.3 var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
.eg__idea p { font-size: var(--fs-1); color: var(--text-2); }
.eg__result.is-good { border-color: var(--ok); }
.eg__result.is-bad { border-color: var(--danger); }
/* Openings: repertoire stats, catalogue and search tiles, saved lines, legend and the drill header */
.op__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: 0; }
.op__stat { display: grid; gap: var(--s-1); align-content: start; min-width: 0; padding: var(--s-3) var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); }
.op__stat dt { font-size: var(--fs-1); color: var(--text-2); overflow-wrap: anywhere; }
.op__stat dd { grid-row: 1; margin: 0; font: 550 var(--fs-4)/1.1 var(--font-serif); }
.op__start { display: grid; gap: var(--s-2); }
.op__go { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.op__go .btn { max-width: 100%; white-space: normal; }
.op__sect { display: grid; gap: var(--s-3); align-content: start; }
.op__cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.op__tile { display: grid; grid-template-rows: auto 1fr auto; gap: var(--s-3); min-width: 0; padding: var(--s-4); }
.op__tile[data-rep-id] { border-color: var(--ok); }
.op__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-2); }
.op__nm { min-width: 0; margin: 0; font: 600 var(--fs-3)/1.3 var(--font-serif); overflow-wrap: anywhere; }
.op__eco { flex: none; }
.op__mv { margin: 0; font-size: var(--fs-1); color: var(--text-2); overflow-wrap: anywhere; }
.op__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); }
.op__depth { margin: 0; font-size: var(--fs-1); color: var(--text-2); }
.op__add { max-width: 100%; white-space: normal; }
.op__added { white-space: normal; }
.op__more { justify-self: start; }
.op__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
@media (min-width: 48rem) { .op__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.op__col { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.op__colh { display: flex; align-items: center; gap: var(--s-2); margin: 0; font: 600 var(--fs-3)/1.3 var(--font-sans); }
.op__lines { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.op__line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--s-2) var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); }
.op__line[aria-busy="true"] { opacity: 0.6; }
.op__meta { display: grid; gap: var(--s-1); min-width: 0; }
.op__meta p { margin: 0; }
.op__badges { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; }
.op__badges .badge { white-space: normal; }
.op__rm { grid-column: 2; grid-row: 1; margin: calc(var(--s-2) * -1) calc(var(--s-3) * -1) 0 0; color: var(--text-2); }
.op__rm:hover { color: var(--danger); }
.op__none { margin: 0; color: var(--text-2); }
.op__legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--s-3) var(--s-5); margin: 0; }
.op__lg { display: grid; gap: var(--s-1); align-content: start; }
.op__lg dt { justify-self: start; }
.op__lg dd { margin: 0; font-size: var(--fs-1); color: var(--text-2); }
.op__search { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); align-items: end; gap: var(--s-4); }
.op__q { grid-column: 1 / -1; }
.op__name { margin: 0; font: 550 var(--fs-4)/1.2 var(--font-serif); overflow-wrap: anywhere; }
.op__name:focus-visible { outline-offset: 4px; }
.op__toast { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0; }
.op__actions { justify-content: flex-start; }
.op__score { font: 550 var(--fs-3)/1.3 var(--font-serif); }
.op__won { display: grid; gap: var(--s-2); padding: 0; list-style: none; }
.op__rm-name { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
/* Opening traps: stats, trap of the day, tier buttons, library tiles, the board stage with story controls, quick-fire timer and move list */
.tr__status.is-warn { border-left-color: var(--warn); }
.tp__public { margin: 0; }
.tp__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: 0; }
.tp__stat { display: grid; gap: var(--s-1); align-content: start; min-width: 0; padding: var(--s-3) var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); }
.tp__stat dt { font-size: var(--fs-1); color: var(--text-2); overflow-wrap: anywhere; }
.tp__stat dd { grid-row: 1; margin: 0; font: 550 var(--fs-4)/1.1 var(--font-serif); }
.tp__of { font-size: var(--fs-3); color: var(--text-2); }
.tp__daily { display: grid; gap: var(--s-3); justify-items: start; border-color: var(--accent); }
.tp__daily > * { margin: 0; max-width: 100%; }
.tp__daily-nm { font: 550 var(--fs-4)/1.2 var(--font-serif); overflow-wrap: anywhere; }
.tp__daily-done { white-space: normal; }
.tp__level { min-width: 0; margin: 0; padding: 0; border: 0; }
.tp__level legend { margin-bottom: var(--s-2); padding: 0; }
.tp__sect { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.tp__sect > .mp__sect { margin: 0; }
.tp__sect > .tr__note { margin: 0; }
.tp__due { margin: 0; }
.tp__due .btn { max-width: 100%; white-space: normal; }
.tp__coll { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.tp__tier { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s-2) var(--s-3); width: 100%; min-height: var(--tap); padding: var(--s-3) var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tp__tier:hover { border-color: var(--accent); }
.tp__tier[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.tp__tier-nm { font-weight: 600; }
.tp__tier-txt { grid-column: 1 / -1; font-size: var(--fs-1); color: var(--text-2); overflow-wrap: anywhere; }
.tp__libhead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.tp__libhead .mp__sect { margin: 0; }
.tp__libhead .mp__sect:focus-visible { outline-offset: 4px; }
.tp__search { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); align-items: end; gap: var(--s-4); }
.tp__q { grid-column: 1 / -1; }
.tp__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.tp__more { justify-self: start; }
.tp__tile { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; padding: var(--s-4); }
.tp__tile p { margin: 0; }
.tp__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-2); }
.tp__nm { min-width: 0; margin: 0; font: 600 var(--fs-3)/1.3 var(--font-serif); overflow-wrap: anywhere; }
.tp__eco { flex: none; }
.tp__side { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-1); }
.tp__who { font-size: var(--fs-1); color: var(--text-2); overflow-wrap: anywhere; }
.tp__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.tp__out { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-1); color: var(--text-2); }
.tp__out .ic { width: 1rem; height: 1rem; }
.tp__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: auto; padding-top: var(--s-2); }
.tp__status, .tp__learn { max-width: 100%; white-space: normal; }
.tp__stage { scroll-margin-top: var(--s-3); }
.tp__name { margin: 0; font: 550 var(--fs-4)/1.2 var(--font-serif); overflow-wrap: anywhere; }
.tp__name:focus-visible, .tp__prompt:focus-visible { outline-offset: 4px; }
.tp__quick { display: grid; gap: var(--s-3); }
.tp__timer { height: 0.5rem; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.tp__timer-bar { display: block; width: 100%; height: 100%; background: var(--accent); }
.tp__prompt { margin: 0; font: 550 var(--fs-3)/1.4 var(--font-serif); overflow-wrap: anywhere; }
.tp__stage > .tr__after { grid-template-columns: minmax(0, 1fr); }
.tp__ctrl { display: grid; grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr)); gap: var(--s-2); }
.tp__c { min-width: 0; }
.tp__c-play .ic:last-child, .tp__c-play.is-playing .ic:first-child { display: none; }
.tp__c-play.is-playing .ic:last-child { display: block; }
.tp__actions { justify-content: flex-start; }
.tp__answers .btn { flex-basis: 8rem; }
.tp__toasts { display: grid; gap: var(--s-2); }
.tp__toasts:empty { display: none; }
.tp__toasts > * { margin: 0; }
.tp__moves { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); max-height: 11rem; overflow-y: auto; padding: var(--s-2) var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); }
.tp__n { font-size: var(--fs-1); color: var(--text-2); }
.tp__mv { min-width: var(--tap); min-height: var(--tap); padding: 0 var(--s-2); border: 1px solid transparent; border-radius: var(--r-1); background: none; color: var(--text); font: 550 var(--fs-2)/1 var(--font-sans); cursor: pointer; }
.tp__mv:hover { border-color: var(--line-2); }
.tp__mv--bait { border: 1px dashed var(--warn); }
.tp__mv[aria-current="step"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.tp__score { margin: 0; font: 550 var(--fs-3)/1.3 var(--font-serif); }
.tp__won { display: grid; gap: var(--s-2); justify-items: center; }
.tp__won:empty { display: none; }
/* Analysis trainer (trainer-analysis.php): feedback strip, steps, import, charts, game rows, bulk analysis, mistake puzzles, review */
.an__card { display: grid; gap: var(--s-4); align-content: start; min-width: 0; }
.an__card > * { margin: 0; min-width: 0; }
.an__feedback { display: grid; gap: var(--s-2); }
.an__feedback > p { margin: 0; }
.an__fb-text { display: flex; align-items: flex-start; gap: var(--s-2); font-weight: 600; }
.an__fb-text .ic { margin-top: 2px; }
.an__fb-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); font-size: var(--fs-1); color: var(--text-2); }
.an__steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.an__step { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0 var(--s-3); align-items: start; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.an__n { grid-row: 1 / span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.an__st { font-weight: 600; }
.an__sd { font-size: var(--fs-1); color: var(--text-2); }
.an__imp { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.an__box { display: grid; gap: var(--s-3); align-content: start; min-width: 0; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface-2); }
.an__box > * { margin: 0; min-width: 0; }
.an__box .input { background: var(--surface); }
.an__accts { display: grid; gap: var(--s-2); }
.an__acct { display: flex; align-items: center; gap: var(--s-2); }
.an__sync { flex: 1 1 auto; min-width: 0; justify-content: flex-start; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.an__sync.is-unlinked { border-style: dashed; }
.an__edit { flex: none; border: 1px solid var(--line-2); color: var(--text-2); }
.an__edit:hover { color: var(--text); }
.an__go { justify-self: start; max-width: 100%; white-space: normal; }
.an__msg { margin: 0; font-size: var(--fs-1); line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.an__msg:empty { display: none; }
.an__msg.is-ok { color: var(--ok); }
.an__msg.is-err { color: var(--danger); }
.an__prog { display: grid; gap: var(--s-2); }
.an__bar.is-busy { background: var(--accent); animation: an-busy 1.2s ease-in-out infinite alternate; }
.an__bar.is-busy::-webkit-progress-bar { background: var(--accent); }
@keyframes an-busy { from { opacity: 0.35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .an__bar.is-busy { animation: none; opacity: 0.6; } }
.an__bulk { display: grid; gap: var(--s-3); }
.an__engine { display: grid; gap: var(--s-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.an__act { justify-content: flex-start; }
.an__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: var(--s-3); margin: 0; }
.an__stat { display: grid; gap: var(--s-1); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface-2); }
.an__stat dt { font-size: var(--fs-1); color: var(--text-2); }
.an__stat dd { margin: 0; font: 550 var(--fs-4)/1.2 var(--font-serif); }
.an__v--bad { color: var(--danger); }
.an__finds { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.an__finds li { display: flex; align-items: flex-start; gap: var(--s-2); }
.an__finds .ic { margin-top: 2px; color: var(--accent-ink); }
.an__line { display: flex; align-items: flex-start; gap: var(--s-2); margin: 0; font-size: var(--fs-1); color: var(--text-2); }
.an__chart { width: 100%; max-width: 22rem; margin-inline: auto; }
.an__chart--wide { max-width: 32rem; }
.an__chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.an__r-grid { fill: none; stroke: var(--line-2); stroke-width: 1; }
.an__r-data { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.an__r-lbl { fill: var(--text); font: 550 12px var(--font-sans); }
.an__r-val { fill: var(--accent-ink); font-weight: 700; }
.an__t-area { fill: var(--accent-soft); stroke: none; }
.an__t-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.an__t-dot { fill: var(--accent); }
.an__t-lbl { fill: var(--text-2); font: 400 10px var(--font-sans); }
.an__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.an__tile { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: var(--s-1) var(--s-2); align-items: center; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface-2); }
.an__tile .ic { color: var(--accent-ink); }
.an__tile-v { font: 550 var(--fs-4)/1.2 var(--font-serif); }
.an__tile-k { grid-column: 1 / -1; font-size: var(--fs-1); color: var(--text-2); }
.an__cta { flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-3); text-align: left; white-space: normal; }
.an__cta > span { display: inline-flex; align-items: center; gap: var(--s-2); }
.an__cta > span:first-child { flex: 1 1 14rem; }
.an__puz > .tr__after { grid-template-columns: minmax(0, 1fr); }
.an__prompt { margin: 0; font: 550 var(--fs-3)/1.4 var(--font-serif); overflow-wrap: anywhere; }
.an__prompt:empty { display: none; }
.an__games { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.an__row { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); min-height: 3.5rem; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface); color: var(--text); text-decoration: none; }
.an__row:hover { border-color: var(--accent); background: var(--accent-soft); }
.an__chip { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface-2); color: var(--text); font-weight: 650; }
.an__chip--w { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.an__chip--l { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.an__meta { display: grid; gap: 2px; min-width: 0; }
.an__title { font-weight: 600; overflow-wrap: anywhere; }
.an__sub, .an__open { font-size: var(--fs-1); color: var(--text-2); overflow-wrap: anywhere; }
.an__nb { white-space: nowrap; }
.an__acc { max-width: 7rem; justify-content: center; text-align: center; white-space: normal; }
@media (max-width: 30rem) {
  .an__card { padding: var(--s-4); }
  .an__row { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .an__acc { grid-column: 2; justify-self: start; }
}
.an__match { display: flex; align-items: center; gap: var(--s-3); margin: 0; font: 550 var(--fs-3)/1.3 var(--font-serif); overflow-wrap: anywhere; }
.an__match > span:last-child { min-width: 0; }
.an__ctrl { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--s-2); }
.an__ctrl .btn { min-width: 0; padding-inline: var(--s-3); white-space: normal; }
.an__hint { width: 100%; }
.an__stage.is-fs > .an__ctrl, .an__stage.is-fs > .an__hint { width: 100%; max-width: min(100vw - 2rem, 30rem); }
.an__stage.is-fs .cgl-board-wrap { max-width: min(100vw - 2rem, 100vh - 12.5rem); max-width: min(100vw - 2rem, 100dvh - 12.5rem); }
.an__side { gap: var(--s-3); }
.an__cur { display: grid; gap: var(--s-1); align-content: start; min-height: 5.5rem; padding: var(--s-3) var(--s-4); }
.an__cm-san { margin: 0; font: 550 var(--fs-4)/1.2 var(--font-serif); }
.an__cm-sub { display: grid; gap: var(--s-1); }
.an__cm-line { margin: 0; font-size: var(--fs-1); }
.an__mtf { font-weight: 600; }
.an__analyse, .an__practice { display: grid; gap: var(--s-3); }
.an__analyse > *, .an__practice > * { margin: 0; }
.an__analyse > .btn, .an__practice > .btn { justify-self: start; max-width: 100%; white-space: normal; }
.an__sum { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.an__sum-item { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); color: var(--text); font: 550 var(--fs-1)/1 var(--font-sans); cursor: pointer; }
.an__sum-item:hover:not(:disabled) { border-color: var(--text); }
.an__sum-item:disabled { color: var(--text-2); cursor: not-allowed; }
.an__q { display: inline-block; width: 0.75rem; height: 0.75rem; flex: none; border: 2px solid var(--text-2); border-radius: 50%; background: var(--text-2); }
.an__q--best { border-color: var(--ok); background: var(--ok); }
.an__q--good { border-color: var(--ok); background: transparent; }
.an__q--inaccuracy { border-color: var(--warn); background: transparent; }
.an__q--mistake { border-color: var(--warn); background: var(--warn); }
.an__q--blunder { border-color: var(--danger); background: var(--danger); }
.an__moves { display: grid; align-content: start; gap: 2px; max-height: 18rem; overflow-y: auto; padding: var(--s-1); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); }
.an__moves:empty { display: none; }
.an__ply { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-3); border: 1px solid transparent; border-radius: var(--r-1); background: none; color: var(--text); font: 550 var(--fs-2)/1.2 var(--font-sans); text-align: left; cursor: pointer; }
.an__ply:hover { border-color: var(--line-2); }
.an__ply[aria-current="step"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.an__pn { font-size: var(--fs-1); font-weight: 500; }
.an__pw { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-2); min-width: 0; }
.an__pm { font-size: var(--fs-1); font-weight: 400; }
.an__pq { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-1); font-weight: 500; }
.an__legend { display: grid; gap: var(--s-2); margin: 0; font-size: var(--fs-1); }
.an__legend > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); }
.an__legend dt { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 7rem; font-weight: 600; }
.an__legend dd { flex: 1 1 12rem; margin: 0; color: var(--text-2); }
@media (min-width: 40rem) {
  .an__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 48rem) {
  .an__imp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an__moves { max-height: 24rem; }
}
@media (min-width: 64rem) {
  .an__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .article__head { padding-block: var(--s-7); }
  .prose { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 17rem); column-gap: var(--s-9); align-content: start; }
  .prose > * { grid-column: 1; max-width: none; }
  .prose > .toc { grid-column: 2; grid-row: 1 / span 80; align-self: start; position: sticky; top: var(--s-5); margin-top: 0; padding: 0 0 0 var(--s-5); border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; }
}

/* batch-N1: public pages (rules) */
.prose > .rl-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); font-family: var(--font-sans); }
.prose > .rl-points { display: grid; gap: var(--s-3); padding-left: 0; list-style: none; font: 400 var(--fs-2)/1.6 var(--font-sans); }
.prose > .rl-points > li + li { margin-top: 0; }
.rl-point { padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-1); background: var(--surface); }
.rl-point__title { font: 550 var(--fs-3)/1.3 var(--font-serif); letter-spacing: -0.01em; text-wrap: balance; }
.rl-point p { margin-top: var(--s-2); color: var(--text-2); }
.rl-points--small .rl-point__title { font-size: var(--fs-2); }
.rl-points--small .rl-point p { font-size: var(--fs-1); }
.prose > .rl-sub { margin-top: var(--s-6); font: 550 var(--fs-4)/1.25 var(--font-serif); text-wrap: balance; }
.prose > .rl-sub + * { margin-top: var(--s-3); }
.prose > .rl-venues { display: flex; flex-wrap: wrap; gap: var(--s-2); padding-left: 0; list-style: none; font: 500 var(--fs-1)/1.4 var(--font-sans); }
.prose > .rl-venues > li + li { margin-top: 0; }
.rl-venues li { padding: var(--s-2) var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); }
.rl-red, .rl-gray { font-weight: 650; }
.rl-red { color: var(--danger); }
.rl-gray { color: var(--text-2); }
.prose > .rl-enjoy { margin-top: var(--s-6); color: var(--text-2); font-style: italic; }
@media (min-width: 40rem) {
  .prose > .rl-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 39.99rem) {
  .rl-actions .btn { width: 100%; }
}
/* @batch-N1 */
/* batch-N2: leagues directory */
.lg-intro { display: grid; gap: var(--s-3); max-width: var(--measure); }
.lg-intro__more { font-size: var(--fs-1); color: var(--text-2); }
.lg-none { color: var(--text-2); }
.lg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.lg-card.is-current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.lg-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.lg-card__title { font: 550 var(--fs-3)/1.3 var(--font-serif); overflow-wrap: anywhere; }
.lg-card__head .badge { flex: none; }
.lg-card__meta { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-1); color: var(--text-2); }
.lg-card__meta .ic { width: 1rem; height: 1rem; }
.lg-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.lg-faq { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.lg-faq .faq { max-width: var(--measure); }
@media (min-width: 40rem) {
  .lg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* @batch-N2 */
/* batch-N3: city league landing page */
.prose > .lg-grid { max-width: none; padding-left: 0; list-style: none; font: 400 var(--fs-2)/1.6 var(--font-sans); }
.prose > .lg-grid > li + li { margin-top: 0; }
.prose > .alert { max-width: none; font-family: var(--font-sans); line-height: 1.6; }
.prose > .share { margin-top: var(--s-6); }
/* @batch-N3 */
/* batch-N4: coach directory */
.avatar--sm { width: 3.5rem; height: 3.5rem; font-size: var(--fs-3); }
.lg-grid--3 { grid-template-columns: minmax(0, 1fr); }
.cc-empty p { max-width: var(--measure); color: var(--text-2); }
.cc-card { position: relative; display: flex; flex-direction: column; }
.cc-card:hover, .cc-card:focus-within { border-color: var(--accent); }
.cc-card.is-featured { border-top: 3px solid var(--warn); }
.cc-card__who { display: flex; align-items: flex-start; gap: var(--s-3); }
.cc-card__name { display: grid; gap: var(--s-1); justify-items: start; min-width: 0; }
.cc-card__title { color: var(--text-2); font: 650 var(--fs-1)/1.3 var(--font-sans); }
.cc-card__link { color: inherit; text-decoration: none; }
.cc-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-2); }
.cc-card__link:focus-visible { outline: none; }
.cc-card__link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.cc-card__bio { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; color: var(--text-2); font-size: var(--fs-1); line-height: 1.6; }
.cc-card__stats { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.mp .cc-card .cc-card__go { margin-top: auto; padding-top: var(--s-2); color: var(--accent-ink); font-size: var(--fs-1); font-weight: 600; }
@media (min-width: 40rem) {
  .lg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .lg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* @batch-N4 */
/* batch-N5: coach profile */
.cp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.cp-main, .cp-side { display: grid; gap: var(--s-4); min-width: 0; }
.cp-honorific { margin-right: var(--s-1); vertical-align: middle; }
.cp-bio { max-width: var(--measure); white-space: pre-line; line-height: 1.75; overflow-wrap: anywhere; }
.cp-stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.cp-stats .card__title { margin-bottom: var(--s-1); }
.cp-links { display: grid; gap: var(--s-1); list-style: none; padding: 0; }
.cp-links a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); overflow-wrap: anywhere; }
.cp-links .ic { width: 1rem; height: 1rem; }
.cp-contact { display: grid; gap: var(--s-3); }
.cp-contact .btn { width: 100%; }
@media (min-width: 52rem) {
  .cp-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
/* @batch-N5 */
/* batch-N6: teachers page */
.prose > .rl-note { color: var(--text-2); font: 400 var(--fs-1)/1.6 var(--font-sans); }
.rl-point__title .ic { display: inline-block; margin-right: var(--s-2); vertical-align: -0.15em; color: var(--accent-ink); }
.rl-point a { color: var(--accent-ink); text-underline-offset: 0.22em; }
/* @batch-N6 */
/* batch-N7: donate page */
.lg-card__title .ic { display: inline-block; margin-right: var(--s-2); vertical-align: -0.15em; color: var(--accent-ink); }
.dn-coins { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.dn-coin { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface-2); }
.dn-coin__main { flex: 1 1 auto; min-width: 0; display: grid; gap: var(--s-1); }
.dn-coin__name { font: 550 var(--fs-3)/1.3 var(--font-serif); }
.dn-coin__net { color: var(--text-2); font-size: var(--fs-1); }
.dn-coin__row { display: flex; gap: var(--s-2); margin-top: var(--s-2); }
.dn-coin__addr { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; min-height: 3rem; padding: var(--s-2) var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: var(--fs-1); overflow-wrap: anywhere; user-select: all; }
.dn-coin__copy { flex: none; min-width: var(--tap); padding-inline: var(--s-3); }
.dn-coin__status { min-height: 1.45em; }
.dn-coin__qr { flex: none; width: 6rem; height: 6rem; padding: var(--s-1); border-radius: var(--r-1); background: #fff; /* a QR code needs a light ground in both themes */ }
@media (max-width: 39.99rem) {
  .dn-coin { flex-direction: column-reverse; }
}
/* @batch-N7 */
/* batch-N8: shareable passport page */
.sh-card { display: block; width: 100%; max-width: 46rem; height: auto; border: 1px solid var(--line); border-radius: var(--r-2); }
.sh-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 39.99rem) {
  .sh-actions .btn { width: 100%; }
}
/* @batch-N8 */
/* batch-N9: blog index */
.bl-card { position: relative; display: flex; flex-direction: column; }
.bl-card:hover, .bl-card:focus-within { border-color: var(--accent); }
.bl-card__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.bl-card__link { color: inherit; text-decoration: none; }
.bl-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-2); }
.bl-card__link:focus-visible { outline: none; }
.bl-card__link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.bl-card__summary { color: var(--text-2); font-size: var(--fs-1); line-height: 1.6; }
.bl-card__meta { flex-wrap: wrap; gap: var(--s-1) var(--s-4); }
.bl-card__meta span { display: inline-flex; align-items: center; gap: var(--s-1); }
.bl-card__go { margin-top: auto; padding-top: var(--s-3); color: var(--accent-ink); font-weight: 600; font-size: var(--fs-1); }
.bl-soon { border-style: dashed; justify-content: center; color: var(--text-2); }
.bl-soon p { font-size: var(--fs-1); }
/* @batch-N9 */
/* batch-N10: change-photo page */
.ep-preview { display: grid; justify-items: center; gap: var(--s-2); text-align: center; color: var(--text-2); font-size: var(--fs-1); }
.ep-preview .avatar, .ep-preview .image-preview { width: 8rem; height: 8rem; border: 1px solid var(--line-2); border-radius: 50%; object-fit: cover; }
.ep-file::file-selector-button { margin-right: var(--s-3); padding: var(--s-1) var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface-2); color: var(--text); font: 600 var(--fs-1)/1.5 var(--font-sans); cursor: pointer; }
/* @batch-N10 */
/* batch-N11: coach application form */
.field__opt { font-weight: 400; color: var(--text-2); }
/* @batch-N11 */
/* batch-N12: delete-account page */
.del-list { display: grid; gap: var(--s-2); padding-left: 1.2em; list-style: disc; font-size: var(--fs-1); color: var(--text-2); }
/* @batch-N12 */
/* batch-N13: vote chess leaderboard */
.vl-grid { display: grid; gap: var(--s-5); align-items: start; margin-top: var(--s-5); }
@media (min-width: 60rem) { .vl-grid { grid-template-columns: 1fr 1fr; } }
.vl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-1) var(--s-3); font-size: var(--fs-3); }
.vl-head .ic { display: inline-block; width: 1.1rem; height: 1.1rem; margin-right: var(--s-2); vertical-align: -0.15em; }
.vl-note { color: var(--text-2); font: 400 var(--fs-1)/1.4 var(--font-sans); }
.vl-empty { color: var(--text-2); }
.lb { display: grid; }
.lb__row { display: grid; grid-template-columns: 2rem 2.5rem minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); min-height: var(--tap); padding: var(--s-2) 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.lb li:first-child .lb__row { border-top: 0; }
.lb__row:hover .lb__name { color: var(--accent-ink); text-decoration: underline; }
.lb__rank { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.lb__rank--top { background: var(--accent-soft); color: var(--accent-ink); }
.lb .avatar { width: 2.5rem; height: 2.5rem; font-size: var(--fs-2); }
.lb__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lb__stats { display: flex; gap: var(--s-3); }
.lb__stat { display: grid; justify-items: end; min-width: 3.5rem; line-height: 1.25; }
.lb__stat strong { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.lb__stat span { color: var(--text-2); font-size: var(--fs-1); }
.lb__stat--2 strong { color: var(--text-2); font-weight: 600; }
@media (max-width: 30rem) {
  .lb__row { grid-template-columns: 1.75rem 2rem minmax(0, 1fr); gap: var(--s-1) var(--s-2); }
  .lb__rank { width: 1.75rem; height: 1.75rem; font-size: var(--fs-1); }
  .lb .avatar { width: 2rem; height: 2rem; font-size: var(--fs-1); }
  .lb__rank, .lb .avatar { grid-row: 1 / span 2; }
  .lb__stats { grid-column: 3; min-width: 0; flex-wrap: wrap; gap: 0 var(--s-3); }
  .lb__stat { display: block; min-width: 0; }
  .lb__stat span { margin-left: var(--s-1); }
}
/* @batch-N13 */
/* batch-N14: vote chess lobby */
.vc-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }
.vc-steps { margin-top: var(--s-6); }
@media (min-width: 48rem) { .vc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); } }
.vc-rooms-sect, .vc-faq-sect { margin-top: var(--s-7); }
.vc-rooms-title { display: flex; align-items: center; gap: var(--s-3); }
.vc-rooms { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.vc-room { --vc-accent: var(--accent); display: grid; gap: var(--s-2); height: 100%; border-top: 4px solid var(--vc-accent); color: inherit; text-decoration: none; transition: border-color var(--motion), box-shadow var(--motion); }
.vc-room:hover { box-shadow: var(--e-2); }
.vc-room--blitz { --vc-accent: var(--danger); }
.vc-room--rapid { --vc-accent: var(--warn); }
.vc-room--daily { --vc-accent: var(--ok); }
.vc-room__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.vc-room__title { font: 550 var(--fs-3)/1.3 var(--font-serif); overflow-wrap: anywhere; }
.vc-room__top .badge { flex: none; }
.vc-room__interval { font: 500 var(--fs-5)/1.1 var(--font-serif); font-variant-numeric: tabular-nums; }
.vc-room__interval span { color: var(--text-2); font: 400 var(--fs-1)/1.4 var(--font-sans); }
.vc-room__meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); color: var(--text-2); font-size: var(--fs-1); }
.vc-dot { display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: var(--s-2); border-radius: 50%; background: var(--text-2); }
.vc-dot--live { background: var(--ok); }
.vc-dot--paused { background: var(--warn); }
.vc-room__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--fs-1); }
.vc-count { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.vc-count .ic, .vc-open .ic { width: 1rem; height: 1rem; }
.vc-count .is-urgent { color: var(--danger); }
.vc-open { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--accent-ink); font-weight: 600; }
.vc-room:hover .vc-open { text-decoration: underline; }
/* @batch-N14 */
/* batch-N15: venues page (own suggestions fit a phone without scrolling) */
.vmine { display: grid; }
.vmine__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding-block: var(--s-2); border-bottom: 1px solid var(--line); }
.vmine__row:last-child { border-bottom: 0; }
.vmine__name { flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; }
.vmine__edit { display: inline-flex; align-items: center; min-width: var(--tap); min-height: var(--tap); }
/* @batch-N15 */
/* batch-N16: community chat */
.chat { display: grid; gap: var(--s-3); max-width: 46rem; }
.chat__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.chat__online { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--ok); font: 600 var(--fs-1)/1.5 var(--font-sans); }
.chat__online .vc-dot { margin-right: 0; }
.chat__box { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.chat__msgs { display: flex; flex-direction: column; gap: var(--s-3); height: clamp(18rem, 62vh, 32rem); padding: var(--s-4); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); }
.chat__older { flex: none; text-align: center; }
.chat__empty { margin: auto; color: var(--text-2); font-size: var(--fs-1); text-align: center; }
.cm { display: flex; flex: none; align-items: flex-start; gap: var(--s-2); transition: opacity var(--motion); }
.cm--mine { flex-direction: row-reverse; }
.cm.is-leaving { opacity: 0; }
.cm__av { display: grid; flex: none; place-items: center; width: 2.25rem; height: 2.25rem; overflow: hidden; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font: 600 0.75rem/1 var(--font-sans); }
.cm__av img { width: 100%; height: 100%; object-fit: cover; }
.cm__col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: min(34rem, calc(100% - 3rem)); }
.cm--mine .cm__col { align-items: flex-end; }
.cm__name { margin-bottom: var(--s-1); color: var(--text-2); font: 600 var(--fs-1)/1.4 var(--font-sans); }
.cm__bubble { max-width: 100%; padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); overflow-wrap: anywhere; }
.cm--other .cm__bubble { border-top-left-radius: var(--r-1); }
.cm--mine .cm__bubble { border-color: var(--accent); border-top-right-radius: var(--r-1); background: var(--accent); color: var(--on-accent); }
.cm__bubble--react { cursor: pointer; }
.cm__text { white-space: pre-wrap; }
.cm__quote { display: grid; margin-bottom: var(--s-2); padding-left: var(--s-2); border-left: 3px solid currentColor; font-size: var(--fs-1); line-height: 1.4; }
.cm__qn { font-weight: 700; }
.cm__qt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.85; }
.cm__rx { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-1); }
.cm--mine .cm__rx { justify-content: flex-end; }
.cm__pill { min-width: var(--tap); min-height: var(--tap); padding: 0 var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--surface); cursor: pointer; font-variant-numeric: tabular-nums; }
.cm__pill:hover { background: var(--surface-2); }
.cm__pill.is-mine { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.cm__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-1); }
.cm--mine .cm__meta { justify-content: flex-end; }
.cm__time { margin-right: var(--s-1); color: var(--text-2); font-size: var(--fs-1); }
.cm__act { display: grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 0; border-radius: var(--r-1); background: none; color: var(--text-2); cursor: pointer; }
.cm__act:hover { background: var(--surface-2); color: var(--text); }
.cm__act:disabled { cursor: default; opacity: 0.5; }
.cm__act.is-done { color: var(--danger); }
.cm__act .ic { width: 1rem; height: 1rem; }
.chat__grip { position: relative; flex: none; height: 0.75rem; border-top: 1px solid var(--line); background: var(--surface-2); cursor: ns-resize; touch-action: none; }
.chat__grip::after { content: ""; position: absolute; top: 50%; left: 50%; width: 2.5rem; height: 3px; transform: translate(-50%, -50%); border-radius: 2px; background: var(--line-2); }
.chat__grip:focus-visible { outline-offset: -2px; }
@media (pointer: coarse) { .chat__grip { display: none; } }
.chat__foot { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); padding: var(--s-3); background: var(--surface); }
.chat__form { display: flex; align-items: center; gap: var(--s-2); }
.chat__form .icon-btn { flex: none; }
.chat__field { position: relative; flex: 1 1 auto; min-width: 0; }
.chat__field .input { padding-right: 4rem; }
.chat__count { position: absolute; top: 50%; right: var(--s-3); transform: translateY(-50%); color: var(--text-2); font-size: var(--fs-1); font-variant-numeric: tabular-nums; pointer-events: none; }
.chat__count.is-warn { color: var(--warn); }
.chat__count.is-danger { color: var(--danger); }
.chat__send { flex: none; width: 3rem; padding: 0; }
.chat__reply { display: flex; align-items: center; gap: var(--s-2); padding-left: var(--s-3); border-left: 3px solid var(--accent); border-radius: var(--r-1); background: var(--accent-soft); color: var(--accent-ink); font-size: var(--fs-1); }
.chat__rn { font-weight: 700; white-space: nowrap; }
.chat__rt { flex: 1; min-width: 0; overflow: hidden; color: var(--text-2); text-overflow: ellipsis; white-space: nowrap; }
.chat__emoji { position: absolute; right: var(--s-3); bottom: 100%; left: var(--s-3); z-index: 5; padding: var(--s-2); border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--e-2); }
.chat__egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr)); max-height: 12rem; overflow-y: auto; }
.chat__ebtn { min-height: var(--tap); border: 0; border-radius: var(--r-1); background: none; cursor: pointer; font-size: 1.375rem; line-height: 1; }
.chat__ebtn:hover { background: var(--surface-2); }
.chat__react { position: fixed; z-index: 40; display: flex; padding: var(--s-1) var(--s-2); border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--e-2); }
.chat__rbtn { width: var(--tap); }
.chat__login { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-3); }
@media (max-width: 40rem) { .chat__msgs { padding: var(--s-3); } }
/* @batch-N16 */
/* batch-N17: vote chess room */
.vr-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: var(--s-4) 0; }
.vr-tools .btn .ic { margin-right: var(--s-2); }
.vr-tools .btn.vr-sound .ic { margin-right: 0; }
.vr-sound .ic:last-child { display: none; }
.vr-sound.is-off .ic:first-child { display: none; }
.vr-sound.is-off .ic:last-child { display: inline-block; }
.btn.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.vr-tools ~ .alert { margin-bottom: var(--s-4); }
.vr-status--paused { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.vr-status--finished { border-color: var(--line-2); background: var(--surface-2); color: var(--text); }
.vr { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.vr > .card { min-width: 0; }
@media (min-width: 56rem) {
  .vr { grid-template-columns: minmax(0, 1fr) 21rem; }
  .vr__board { grid-column: 1; grid-row: 1 / span 3; }
  .vr__votes { grid-column: 2; grid-row: 1; }
  .vr__history { grid-column: 2; grid-row: 2; }
  .vr__chat { grid-column: 2; grid-row: 3; }
}
.vr__stage { position: relative; width: 100%; max-width: 42rem; margin: 0 auto; }
.vr-board { width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.vr-board .white-1e1d7 { background-color: var(--board-l); color: var(--board-ink); }
.vr-board .black-3c85d { background-color: var(--board-d); color: var(--board-ink); }
.vr-board .notation-322f9 { opacity: 1; color: var(--board-ink); }
.vr-board .board-b72b1 { border-color: var(--text-2); }
.vr-board [class*="square-"] { position: relative; }
.vr-board .vc-hl-last { outline: 0.22rem solid var(--vr-last); outline-offset: -0.22rem; }
.vr-board .vc-hl-top { outline: 0.22rem solid var(--vr-top); outline-offset: -0.22rem; }
.vr-board .vc-hl-mine, .vr-board .vc-hl-sel { outline: 0.22rem solid var(--vr-mine); outline-offset: -0.22rem; }
.vr-board .vc-hl-hover { outline: 0.16rem solid var(--board-ink); outline-offset: -0.16rem; }
.vr-board .vc-hl-legal::after, .vr-board .vc-hl-legal-cap::after { content: ""; position: absolute; z-index: 2; pointer-events: none; }
.vr-board .vc-hl-legal::after { top: 36%; left: 36%; width: 28%; height: 28%; border-radius: 50%; background: var(--board-ink); opacity: 0.7; }
.vr-board .vc-hl-legal-cap::after { inset: 6%; border: 0.18rem solid var(--board-ink); border-radius: 50%; opacity: 0.8; }
body.vc-dragging { overscroll-behavior: contain; }
img[src*="chesspieces"] { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.vr-arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vr-arrows line.arr-mine { stroke: var(--vr-mine); stroke-linecap: round; opacity: 0.85; }
.vr-arrows polygon.arr-mine { fill: var(--vr-mine); opacity: 0.85; }
.vr-over { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: var(--s-4); background: var(--backdrop); }
.vr-over__card { max-width: 100%; padding: var(--s-5); border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--surface); box-shadow: var(--e-2); text-align: center; }
.vr-over__title { margin: 0; font: 450 var(--fs-4)/1.2 var(--font-serif); }
.vr-over__reason { margin: var(--s-2) 0; color: var(--text-2); }
.vr-over__card p:last-child { margin: 0; }
.vr-over__count { font-variant-numeric: tabular-nums; }
.vr__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--s-4); }
.vr__meta p { margin: var(--s-3) 0 0; }
.vr-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin: var(--s-3) 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: var(--fs-1); }
.vr-legend__dot { display: inline-block; width: 1rem; height: 1rem; margin-right: var(--s-2); border-radius: 3px; background: var(--board-l); vertical-align: -0.2em; }
.vr-legend__dot--last { box-shadow: inset 0 0 0 0.22rem var(--vr-last); }
.vr-legend__dot--top { box-shadow: inset 0 0 0 0.22rem var(--vr-top); }
.vr-legend__dot--mine { box-shadow: inset 0 0 0 0.22rem var(--vr-mine); }
.vr-clock__label { margin: 0; color: var(--text-2); font-size: var(--fs-1); }
.vr-clock { margin: 0; font: 450 var(--fs-5)/1.1 var(--font-serif); font-variant-numeric: tabular-nums; }
.vr-clock.is-urgent { color: var(--danger); }
.vr-clock__side { min-height: 1.5em; margin: var(--s-1) 0 var(--s-4); color: var(--text-2); }
.vr-votes { display: grid; gap: var(--s-2); margin: 0 0 var(--s-3); padding: 0; list-style: none; }
.vr-votes__none { color: var(--text-2); }
.vr-vote { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-3); width: 100%; min-height: var(--tap); padding: var(--s-2) var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); color: var(--text); cursor: pointer; text-align: left; }
.vr-vote:hover:not(:disabled) { background: var(--surface-2); }
.vr-vote:disabled { cursor: default; }
.vr-vote.is-mine { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.vr-vote__san { font-weight: 650; }
.vr-vote__n { font-variant-numeric: tabular-nums; }
.vr-vote__track { grid-column: 1 / -1; height: 0.375rem; border-radius: 3px; background: var(--line); overflow: hidden; }
.vr-vote__fill { display: block; height: 100%; background: var(--accent); }
.vr-mine { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-3); color: var(--accent-ink); }
.vr-fen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.vr-fen .input { flex: 1 1 8rem; min-width: 0; font-size: var(--fs-1); }
.vr-fen .btn .ic { margin-right: var(--s-1); }
.vr-hist__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); }
.vr-hist__head .card__title { margin: 0; }
.vr-review { display: flex; flex-wrap: wrap; align-items: center; }
.vr-live { min-height: var(--tap); padding: 0 var(--s-3); border: 1px solid var(--warn); border-radius: var(--r-1); background: var(--warn-soft); color: var(--warn); cursor: pointer; font: 600 var(--fs-1)/1 var(--font-sans); }
.vr-live.is-live { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.vr-hist { max-height: 15rem; margin-top: var(--s-3); overflow-y: auto; }
.vr-hist table { width: 100%; border-collapse: collapse; }
.vr-hist td { padding: 0; }
.vr-hist td.num { width: 2.5rem; padding-right: var(--s-2); color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
.vr-hist .move { width: 100%; min-width: var(--tap); min-height: var(--tap); padding: 0 var(--s-2); border: 1px solid transparent; border-radius: var(--r-1); background: none; color: var(--text); cursor: pointer; font: inherit; text-align: left; }
.vr-hist .move:hover { background: var(--surface-2); }
.vr-hist .move.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.vr-hist .move.is-bot { font-style: italic; }
.vr-hist__none { margin: 0; color: var(--text-2); }
.vrc__msgs { display: flex; flex-direction: column; gap: var(--s-2); height: 14rem; margin: var(--s-3) 0; padding: var(--s-2); overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface-2); }
.vrc__row { display: flex; flex-direction: column; align-items: flex-start; }
.vrc__row.is-mine { align-items: flex-end; }
.vrc__name { padding: 0 var(--s-2); color: var(--text-2); font-size: var(--fs-1); font-weight: 600; }
.vrc__msg { max-width: 85%; padding: var(--s-1) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); overflow-wrap: anywhere; }
.vrc__row.is-mine .vrc__msg { border-color: var(--accent-soft); background: var(--accent-soft); color: var(--accent-ink); }
.vrc__form { display: flex; align-items: center; gap: var(--s-2); }
.vrc__send { flex: none; width: 3rem; padding: 0; }
.vrc__login { margin: 0; color: var(--text-2); text-align: center; }
.vr-toast { position: fixed; bottom: var(--s-5); left: 50%; z-index: 60; max-width: min(90vw, 26rem); padding: var(--s-3) var(--s-4); border-radius: var(--r-1); background: var(--danger); color: var(--on-accent); box-shadow: var(--e-2); opacity: 0; pointer-events: none; transform: translate(-50%, 1rem); transition: opacity var(--motion), transform var(--motion); }
.vr-toast--ok { background: var(--ok); }
.vr-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
/* @batch-N17 */

/* batch-N18: bitcoin chess */
.bc-head__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-3); }
.bc-warn { margin-bottom: var(--s-4); }
.bc { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.bc__main, .bc__side { display: grid; gap: var(--s-4); min-width: 0; }
.bc .card, .bc-explain { min-width: 0; }
@media (min-width: 56rem) {
  .bc { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
.bc-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 40rem) {
  .bc-boards { grid-template-columns: minmax(0, 1fr); }
}
.bc-board-wrap { min-width: 0; }
.bc-tag { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-2); font-weight: 600; }
.bc-tag__n { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: var(--fs-1); }
.bc-board { width: 100%; max-width: 26rem; margin: 0 auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.bc-board .white-1e1d7 { background-color: var(--board-l); color: var(--board-ink); }
.bc-board .black-3c85d { background-color: var(--board-d); color: var(--board-ink); }
.bc-board .notation-322f9 { opacity: 1; color: var(--board-ink); }
.bc-board .board-b72b1 { border-color: var(--text-2); }
.bc-fen { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.bc-fen .input { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: var(--fs-1); }
.bc-fen__msg { min-height: 1.5em; margin: var(--s-1) 0 0; font-size: var(--fs-1); color: var(--text-2); }
.bc-fen__msg.is-ok { color: var(--ok); }
.bc-fen__msg.is-bad { color: var(--danger); }
.bc-hint { margin: var(--s-4) 0; color: var(--text-2); }
.bc-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.bc-actions .btn .ic { margin-right: var(--s-2); }
.bc-note { min-height: 1.5em; margin: var(--s-2) 0 0; color: var(--ok); font-size: var(--fs-1); }
.bc-h3 { margin: 0 0 var(--s-3); font: 450 var(--fs-3)/1.25 var(--font-serif); }
.bc-explain .bc-h3 { margin-top: var(--s-4); }
.bc-explain__cols > div > .bc-h3:first-child { margin-top: 0; }
.bc-steps { margin: 0; padding-left: var(--s-5); list-style: decimal; }
.bc-steps li { margin-bottom: var(--s-3); }
.bc-small { margin: 0 0 var(--s-3); color: var(--text-2); font-size: var(--fs-1); }
.bc-small.is-ok, .bc-status.is-ok { color: var(--ok); }
.bc-small.is-bad, .bc-status.is-bad { color: var(--danger); }
.bc-small .ic, .bc-status .ic, .bc-fen__msg .ic { display: inline-block; width: 1rem; height: 1rem; vertical-align: -0.15em; }
.bc-copy { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); padding: 0; }
.bc-copy .ic:last-child { display: none; }
.bc-copy.is-copied .ic:first-child { display: none; }
.bc-copy.is-copied .ic:last-child { display: inline-block; color: var(--ok); }
.bc-out { margin-bottom: var(--s-3); padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface-2); }
.bc-out__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.bc-out__lbl { color: var(--text-2); font-size: var(--fs-1); font-weight: 600; }
.bc-out__val { display: block; margin: 0 0 var(--s-2); color: var(--text); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: var(--fs-1); word-break: break-all; }
.bc-status { margin: var(--s-2) 0 0; color: var(--text-2); font-size: var(--fs-1); }
.bc-decode { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-2); }
.bc-decode .input { flex: 1 1 12rem; min-width: 0; }
.bc-famous { display: grid; gap: var(--s-2); }
.bc-fb { display: grid; gap: var(--s-1); width: 100%; min-height: var(--tap); padding: var(--s-2) var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--surface); color: var(--text); cursor: pointer; text-align: left; }
.bc-fb:hover { border-color: var(--accent); background: var(--accent-soft); }
.bc-fb__ti { font-weight: 600; }
.bc-fb__sb { color: var(--text-2); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: var(--fs-1); overflow-wrap: anywhere; }
.bc-explain__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
@media (min-width: 48rem) {
  .bc-explain__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bc-more { margin: var(--s-4) 0 0; }
/* @batch-N18 */

@media (prefers-reduced-motion: reduce) {
  :root { --motion: 0s; }
}
