:root {
  --bg: #0a131d;
  --surface: #0f1b29;
  --raised: #142334;
  --rule: #1f3246;
  --rule-strong: #2e4861;
  --text: #e6eff5;
  --text-2: #a9bfcf;
  --text-3: #6f8aa0;
  --ice: #9ccfe0;
  --amber: #d8b672;
  --good: #7fbf98;
  --bad: #d98572;
  --sq-light: #e3ecf1;
  --sq-dark: #7c9bb2;
  --sq-coord-l: #6d8ca3;
  --sq-coord-d: #dfe9ef;
  --piece-w: #fbfdfe;
  --piece-w-line: #17273a;
  --piece-b: #17273a;
  --piece-b-line: #050b12;
  --piece-b-detail: #c7d8e3;
  --l-storm: #cf6a4f;
  --l-attack: #d9a441;
  --l-proph: #6ea3d8;
  --l-grind: #6fb08a;
  --arrow-reply: #1c2f44;
  /* What a theme changes besides the colours above: text on an accent-coloured button, the bar at the top, the tint of glows (r,g,b). */
  --on-accent: #0a131d;
  --header-bg: rgba(10,19,29,.78);
  --glow: 156,207,224;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
/* The themes of the whole application (Settings); the dark one is the default above. The board keeps its own colours. */
body[data-theme="light"] {
  --bg: #f3f5f7; --surface: #ffffff; --raised: #e7edf2; --rule: #d6dee6; --rule-strong: #b0bfcc;
  --text: #15212d; --text-2: #3f5568; --text-3: #647a8d; --ice: #1c6f90; --amber: #96630c; --good: #2a7a52; --bad: #b4452d;
  --on-accent: #ffffff; --header-bg: rgba(243,245,247,.86); --glow: 28,111,144; --arrow-reply: #93a6b7;
}
body[data-theme="wood"] {
  --bg: #17110b; --surface: #20170f; --raised: #2b2016; --rule: #3b2c1e; --rule-strong: #5a442f;
  --text: #f2e8d9; --text-2: #cfbda4; --text-3: #9c8870; --ice: #e2bd7c; --amber: #dd946a;
  --header-bg: rgba(23,17,11,.82); --glow: 226,189,124; --arrow-reply: #3b2c1e;
}
body[data-theme="green"] {
  --bg: #0d1611; --surface: #131f18; --raised: #19291f; --rule: #23382b; --rule-strong: #375541;
  --text: #e7f1ea; --text-2: #b1c6b7; --text-3: #7a9382; --ice: #a3d6b0; --amber: #d8b672;
  --header-bg: rgba(13,22,17,.82); --glow: 163,214,176; --arrow-reply: #23382b;
}
body[data-board="green"] {
  --sq-light: #e9edcc;
  --sq-dark: #779954;
  --sq-coord-l: #779954;
  --sq-coord-d: #e9edcc;
  --piece-w: #ffffff;
  --piece-w-line: #1d1d1d;
  --piece-b: #2a2a2a;
  --piece-b-line: #000000;
  --piece-b-detail: #d8d8d8;
}
body[data-board="walnut"] {
  --sq-light: #e6cfa8;
  --sq-dark: #a3764e;
  --sq-coord-l: #a3764e;
  --sq-coord-d: #f0dfc2;
  --piece-w: #fbf6ea;
  --piece-w-line: #2a1c10;
  --piece-b: #2a2019;
  --piece-b-line: #0d0906;
  --piece-b-detail: #d9c8ae;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans);
  min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
}
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

/* Header */
header { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; padding: 0 24px; border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; padding: 9px 0; background: none; border: 0; cursor: pointer; color: var(--text); }
.brand svg { width: 24px; height: 32px; color: var(--ice); --rose-w: 2.3; --rose-d: 1.1; flex: none; }
.brand b { font-weight: 600; letter-spacing: 0.3em; font-size: 14px; }
.brand b i { font-style: normal; color: var(--ice); }
nav { display: flex; align-self: stretch; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
nav button {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 0 14px; cursor: pointer; white-space: nowrap;
  color: var(--text-3); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; min-height: 50px;
}
nav button:hover { color: var(--text); }
nav button[aria-current="page"] { color: var(--ice); border-bottom-color: var(--ice); }
.grow { flex: 1; }
.status { color: var(--text-3); font-size: 12.5px; }
.status strong { color: var(--text-2); font-weight: 600; }
.tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 0; }
.btn, select.btn {
  background: transparent; border: 1px solid var(--rule-strong); border-radius: 2px;
  padding: 5px 12px; font-size: 12.5px; color: var(--text-2); cursor: pointer; white-space: nowrap;
}
.btn:hover:not(:disabled) { color: var(--text); border-color: var(--text-3); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn[aria-pressed="true"] { background: var(--raised); color: var(--ice); border-color: var(--ice); position: relative; }
.btn.primary { background: var(--ice); border-color: var(--ice); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.1); color: var(--on-accent); }
.btn.big { padding: 9px 18px; font-size: 14px; }
select.btn option { background: var(--surface); color: var(--text); }
.seg { display: inline-flex; }
.seg .btn + .btn { margin-left: -1px; }
#lang .btn { padding: 5px 9px; font-weight: 600; letter-spacing: 0.06em; }
body[data-view="page"] #b-flip, body[data-view="page"] .status { display: none; }
body[data-view="page"] main, body[data-view="board"] .page { display: none; }
@media (max-width: 620px) {
  header { padding: 0 16px; }
  nav { order: 3; width: 100%; border-top: 1px solid var(--rule); margin: 0 -16px; padding: 0 6px; width: calc(100% + 32px); max-width: none; }
  nav button { min-height: 42px; padding: 0 6px; font-size: 11px; letter-spacing: 0.03em; flex: 1; }
  .scale .lbl:not(.start):not(.end) { display: none; }
  .status { order: 4; width: 100%; padding: 6px 0; }
  .tools { margin-left: auto; }
}

/* Layout */
main {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 32px;
  padding: 24px; max-width: 1500px; width: 100%; margin: 0 auto; align-items: start;
}
@media (max-width: 1000px) { main { grid-template-columns: 1fr; padding: 16px; } }

/* Board column */
.stage { width: 100%; max-width: min(100%, calc(100vh - 250px)); min-width: 280px; margin: 0 auto; }
.seat { display: flex; align-items: center; gap: 10px; padding: 8px 2px; font-size: 13px; color: var(--text-2); min-height: 36px; }
.seat .dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--text-3); flex: none; }
.seat .dot.w { background: var(--piece-w); }
.seat .dot.b { background: var(--piece-b); }
.seat .who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat .tomove { color: var(--ice); font-size: 12px; visibility: hidden; white-space: nowrap; }
.seat.active .tomove { visibility: visible; }
.seat .mat { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text-3); font-size: 12px; }
.boardrow { display: flex; gap: 10px; }
.evalbar { width: 8px; flex: none; background: #1b2c3e; position: relative; overflow: hidden; border-radius: 1px; }
.evalbar div { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: #dfe9ef; transition: height 0.35s ease; }
.evalbar.flip div { bottom: auto; top: 0; }
.evalbar::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--amber); }
.evalbar.off { visibility: hidden; }
.board {
  flex: 1; aspect-ratio: 1; position: relative; display: grid;
  grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
  box-shadow: 0 0 0 1px var(--rule-strong), 0 18px 40px rgba(0, 0, 0, 0.4); user-select: none;
}
.sq { position: relative; }
.board.live .sq { cursor: pointer; }
.sq.l { background: var(--sq-light); }
.sq.d { background: var(--sq-dark); }
.sq .co { position: absolute; font-size: 10px; font-weight: 600; line-height: 1; pointer-events: none; }
.sq.l .co { color: var(--sq-coord-l); }
.sq.d .co { color: var(--sq-coord-d); }
.sq .co.f { right: 3px; bottom: 3px; }
.sq .co.r { left: 3px; top: 3px; }
.sq::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.sq.last::before { background: rgba(216, 182, 114, 0.42); }
.sq.hint::before { background: rgba(127, 191, 152, 0.6); }
.sq.sel::before { background: rgba(var(--glow), 0.6); }
.sq.chk::before { background: radial-gradient(circle, rgba(207, 80, 60, 0.85) 0%, rgba(207, 80, 60, 0) 72%); }
.sq.tgt::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 26%; height: 26%;
  transform: translate(-50%, -50%); border-radius: 50%; background: rgba(15, 27, 41, 0.34); pointer-events: none;
}
.sq.tgt.occ::after { width: 86%; height: 86%; background: none; border: 4px solid rgba(15, 27, 41, 0.34); }
.pc { position: absolute; inset: 4%; width: 92%; height: 92%; pointer-events: none; filter: drop-shadow(0 1.5px 1px rgba(5, 11, 18, 0.35)); }
.pc.w { --pf: var(--piece-w); --ps: var(--piece-w-line); --pd: var(--piece-w-line); }
.pc.b { --pf: var(--piece-b); --ps: var(--piece-b-line); --pd: var(--piece-b-detail); }
/* Above the square a moved piece slides onto (it is raised to 3 while it slides), so that an arrow ending there keeps its head. */
svg.arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
svg.arrows .nb { stroke: var(--on-accent); stroke-width: 2.5; }
svg.arrows .nt { font: 700 18px var(--sans); fill: var(--on-accent); }
svg.arrows .rp .nb { stroke: #e6eff5; }
svg.arrows .rp .nt { fill: #e6eff5; }
.board.mini { box-shadow: 0 0 0 1px var(--rule-strong); }

/* Depth gauge */
.depth { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
.depth .row1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kicker { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.depth .num { font-family: var(--serif); font-size: 22px; font-variant-numeric: tabular-nums; }
.depth .num sup { font-size: 0.6em; }
.depth .cap { color: var(--text-3); font-size: 12.5px; }
.scale { position: relative; height: 34px; margin-top: 10px; }
.scale .track { position: absolute; left: 0; right: 0; top: 6px; height: 4px; background: linear-gradient(to right, #cfe3ec, #5d8aa6 35%, #1d3850 70%, #0d1a28); border-radius: 1px; }
.scale .mark { position: absolute; top: 0; width: 2px; height: 16px; background: var(--amber); transition: left 0.35s ease; }
.scale .tick { position: absolute; top: 4px; width: 1px; height: 8px; background: var(--text-3); }
.scale .lbl { position: absolute; top: 18px; font-size: 10.5px; color: var(--text-3); white-space: nowrap; transform: translateX(-50%); }
.scale .lbl.end { transform: translateX(-100%); }
.scale .lbl.start { transform: none; }

/* Panel */
.panel { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bar label { color: var(--text-3); font-size: 12px; margin-left: 6px; }
.sec-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
.sec-head .no { font-family: var(--serif); color: var(--ice); font-size: 13px; }
.sec-head .aside { margin-left: auto; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
h2.head { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.01em; }
p.body { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.62; max-width: 62ch; }
p.body + p.body { margin-top: 10px; }
p.body b { color: var(--text); font-weight: 600; }
.meta { color: var(--text-3); font-size: 13px; margin: -4px 0 12px; }
blockquote {
  margin: 18px 0 0; padding: 2px 0 2px 16px; border-left: 2px solid var(--amber);
  font-family: var(--serif); font-size: 18px; line-height: 1.4; max-width: 54ch;
}
blockquote footer { font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-top: 8px; }

/* The four plans */
.verdict { margin: 0 0 12px; color: var(--text-2); font-size: 14px; line-height: 1.55; max-width: 70ch; padding-left: 12px; border-left: 2px solid var(--rule-strong); }
.verdict b { color: var(--text); font-weight: 600; }
.verdict.tilt { border-left-color: var(--ice); }
.verdict.forced { border-left-color: var(--amber); color: var(--text); font-size: 15px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.plans.one { grid-template-columns: 1fr; }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--surface); border: 0; text-align: left; cursor: pointer; padding: 13px 16px 14px 18px;
  display: flex; flex-direction: column; gap: 3px; position: relative; min-height: 196px;
}
.plan.solo { min-height: 0; }
.plan::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.plan:hover:not(:disabled), .plan:focus-visible { background: var(--raised); }
.plan:focus-visible { outline-offset: -2px; }
.plan:disabled { cursor: default; }
.plan:disabled > * { opacity: 0.6; }
.plan .pname { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--c); }
.plan .pwho { font-size: 11.5px; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.plan .pwho .flag { margin-right: 0; }
.plan .mv { display: flex; align-items: baseline; gap: 10px; margin: 5px 0 4px; flex-wrap: wrap; }
.plan .mv b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1; color: var(--text); }
.plan .mv span { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.plan .pl { display: grid; grid-template-columns: 62px 1fr; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.plan .pl i { font-style: normal; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; padding-top: 3px; }
.plan .pl b { color: var(--text); font-weight: 600; }
.plan .pl.line span { font-family: var(--serif); font-size: 14.5px; color: var(--text); }
.plan .pstate { font-size: 12.5px; color: var(--text-3); margin-top: auto; padding-top: 6px; }

/* Rows: book moves, master continuations, lists */
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.row { display: flex; align-items: baseline; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--rule); }
.row .mv { font-family: var(--serif); font-size: 18px; min-width: 64px; }
.row .txt { color: var(--text-2); font-size: 13.5px; flex: 1; min-width: 0; }
.row .txt b { color: var(--text); font-weight: 600; }
.row .acts { display: flex; gap: 6px; flex: none; }
.link { background: none; border: 0; padding: 0; color: var(--ice); cursor: pointer; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 2px; padding: 4px 10px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.chip b { color: var(--text); font-weight: 600; margin-right: 6px; }
.chip:hover:not(:disabled) { border-color: var(--ice); }
.chip:disabled { cursor: default; opacity: 0.6; }
.empty { color: var(--text-3); font-size: 13.5px; }

.moves { display: grid; grid-template-columns: 38px 1fr 1fr; max-height: 220px; overflow-y: auto; font-variant-numeric: tabular-nums; position: relative; overscroll-behavior: contain; }
.moves span, .moves button { padding: 4px 8px; font-size: 13.5px; text-align: left; background: none; border: 0; color: var(--text); }
.moves button { cursor: pointer; }
.moves button:hover { background: var(--surface); }
.moves .n { color: var(--text-3); padding-left: 0; }
.moves .cur { background: var(--raised); color: var(--ice); }
.moves .hidden { color: var(--text-3); }
.moves .mom::after { content: "◆"; color: var(--amber); font-size: 9px; margin-left: 7px; vertical-align: 1px; }

/* Catalogue cards (library, openings, puzzles) */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 0; text-align: left; cursor: pointer; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.card:hover { background: var(--raised); }
.card .t { font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.card .s { font-size: 12px; color: var(--amber); letter-spacing: 0.04em; }
.card .d { font-size: 13px; color: var(--text-2); }
.card .tag { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.card .tag.done { color: var(--good); }
.group { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin: 18px 0 8px; }
.group:first-child { margin-top: 0; }

.stepper { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.stepper .btn { min-width: 40px; font-size: 15px; line-height: 1.1; padding: 6px 10px; }
.stepper .pos { color: var(--text-3); font-size: 12.5px; margin: 0 8px; font-variant-numeric: tabular-nums; }
.msg { padding: 10px 14px; border-left: 3px solid var(--rule-strong); background: var(--surface); font-size: 14px; color: var(--text-2); }
.msg.good { border-left-color: var(--good); color: var(--text); }
.msg.bad { border-left-color: var(--bad); color: var(--text); }
.msg b { color: var(--text); }
.note { font-size: 11.5px; color: var(--text-3); border-top: 1px solid var(--rule); padding-top: 12px; }
.moves { scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; }
.cards .card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Library: critical moments and variations */
.moment { border-left: 2px solid var(--amber); padding: 2px 0 2px 16px; }
.moment.dim { border-left-color: var(--rule-strong); }
.moment.dim h3, .moment.dim p.body { opacity: 0.55; }
.mhead { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 6px; }
.mtag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--amber); }
.moment.dim .mtag { color: var(--text-3); }
.mrec { font-size: 11.5px; color: var(--text-3); font-style: italic; }
.moment h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.2; margin: 0 0 6px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; color: var(--text-3); }
.legend span::before { content: ""; display: inline-block; width: 16px; height: 3px; background: var(--c); margin-right: 6px; vertical-align: middle; }
.vars { margin-top: 14px; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.vlabel { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; padding: 8px 0 6px; }
.var { background: var(--surface); border: 0; border-bottom: 1px solid var(--rule); text-align: left; cursor: pointer; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; }
.var:hover, .var:focus-visible { background: var(--raised); }
.var .vt { font-size: 13.5px; color: var(--text); font-weight: 600; }
.var .vt em { font-style: normal; font-weight: 400; color: var(--amber); }
.var .vm { font-family: var(--serif); font-size: 15px; color: var(--ice); }
.var .vv { font-size: 12.5px; color: var(--text-2); }
.varline { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 12px; }
.varline button { background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 2px; padding: 4px 9px 4px 5px; cursor: pointer; font-family: var(--serif); font-size: 15px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.varline button i { font: 700 10px var(--sans); font-style: normal; width: 16px; height: 16px; border-radius: 50%; background: var(--rule-strong); color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.varline button:hover { border-color: var(--ice); }
.varline button.cur { border-color: var(--ice); color: var(--ice); background: var(--raised); }
.varline button.cur i { background: var(--ice); color: var(--on-accent); }
.mnav { display: inline-flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.stepper .mnav .btn { font-size: 12.5px; min-width: 0; padding: 6px 10px; line-height: 1.3; }

/* Openings: finder and groups */
.finder { display: flex; flex-direction: column; gap: 10px; }
.search {
  width: 100%; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 2px; padding: 9px 12px;
  font: inherit; font-size: 14px; color: var(--text);
}
.search::placeholder { color: var(--text-3); }
.search:focus { outline: none; border-color: var(--ice); }
.chip[aria-pressed="true"] { border-color: var(--ice); color: var(--ice); background: var(--raised); }
.chip small { margin-left: 6px; color: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.gtools { display: flex; gap: 16px; }
.ogroup { border-top: 1px solid var(--rule); }
.ogroup:last-child { border-bottom: 1px solid var(--rule); }
.ghead { width: 100%; background: none; border: 0; display: flex; align-items: baseline; gap: 10px; padding: 11px 2px; cursor: pointer; text-align: left; color: var(--text); }
.ghead:disabled { cursor: default; }
.ghead:hover:not(:disabled) .gn { color: var(--ice); }
.ghead .tw { font-family: var(--serif); color: var(--ice); width: 12px; flex: none; text-align: center; }
.ghead .gn { font-family: var(--serif); font-size: 18px; flex: 1; min-width: 0; }
.ghead .gc { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.ogroup .cards { margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 4px; }
.tags i, .tags b { font-style: normal; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--rule-strong); border-radius: 2px; padding: 0 5px; line-height: 1.6; font-weight: 600; }
.tags b { color: var(--amber); border-color: transparent; padding-left: 0; }
.tags.big { margin: 0 0 12px; }

/* Flags: small drawings next to player names, always 3:2 with a hairline edge */
.flag { display: inline-block; width: 18px; height: 12px; flex: none; box-sizing: content-box; border: 1px solid var(--rule-strong); border-radius: 1px; margin-right: 7px; vertical-align: -1px; background: var(--surface); }
span.flag.txt { width: auto; min-width: 18px; padding: 0 2px; font: 600 9px/12px var(--sans); letter-spacing: 0.04em; color: var(--text-3); text-align: center; }
.pd { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--text-3); margin-right: 8px; flex: none; }
.pd.w { background: #e6eff5; }
.pd.b { background: #0a131d; }
.cno { font: 600 11px/1.4 var(--sans); letter-spacing: 0.12em; color: var(--amber); font-variant-numeric: tabular-nums; white-space: nowrap; }
.res { font-family: var(--serif); font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Pages without a board: the entrance, the catalogue, the player index, the concepts shelf */
.page { max-width: 1180px; width: 100%; margin: 0 auto; padding: 40px 24px 48px; display: flex; flex-direction: column; gap: 30px; }
.phead h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; letter-spacing: -0.012em; margin: 8px 0 12px; }
.phead h1.pname { display: flex; align-items: center; gap: 4px; }
.phead h1.pname .flag { width: 30px; height: 20px; margin-right: 12px; }
.phead .lede { margin: 0; font-size: 16px; max-width: 74ch; }
.tabs { display: flex; gap: 0 28px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 8px 0 9px; cursor: pointer; white-space: nowrap;
  font-family: var(--serif); font-size: 17px; font-variant-caps: all-small-caps; letter-spacing: 0.09em; color: var(--text-3);
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-current="page"] { color: var(--ice); border-bottom-color: var(--ice); }
.frow { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.frow select.btn { max-width: 250px; }
.frow .gtools { margin-left: auto; }
.gtools { align-items: baseline; flex-wrap: wrap; }
.gtools .count { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; margin-right: auto; }
/* Result lists keep at least a screenful of height, so the page cannot jump while a search narrows them. */
.tall { min-height: 100vh; }

/* Shelves: one per era */
.shelf { border-top: 1px solid var(--rule-strong); }
.shelf:last-child { border-bottom: 1px solid var(--rule-strong); }
.shead {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left; color: var(--text); padding: 15px 2px 14px;
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 16px; column-gap: 12px; align-items: baseline;
}
.shead:disabled { cursor: default; }
.shead:hover:not(:disabled) .sn { color: var(--ice); }
.shead .rn, .era .rn { font-family: var(--serif); color: var(--amber); font-variant-numeric: lining-nums; }
.shead .rn { font-size: 21px; }
.shead .sn { font-family: var(--serif); font-size: 24px; line-height: 1.2; grid-column: 2; }
.shead .sr { grid-column: 2; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin-top: 3px; }
.shead .sc { grid-column: 3; grid-row: 1; color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shead .tw { grid-column: 4; grid-row: 1; font-family: var(--serif); color: var(--ice); text-align: center; }
.sdesc { margin: 0 0 18px 58px; max-width: 80ch; font-family: var(--serif); font-size: 15.5px; line-height: 1.6; color: var(--text-2); }

/* Catalogue cards */
.gcards, .kcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 0 0 26px; }
.gcard, .kcard {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 2px; padding: 0 16px 14px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px; color: var(--text); min-width: 0;
}
.gcard:hover, .kcard:hover { background: var(--raised); border-color: var(--rule-strong); }
.gcard:focus-visible, .kcard:focus-visible, .era:focus-visible { outline-offset: -2px; }
.chead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0 7px; border-bottom: 1px solid var(--rule); margin-bottom: 7px; }
.gcard:hover .chead, .kcard:hover .chead { border-bottom-color: var(--rule-strong); }
.gcard .t, .kcard .t { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.gcard .pp { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; color: var(--text-2); margin: 3px 0 2px; }
.gcard .p, .rplayers .p { display: flex; align-items: center; min-width: 0; }
.gcard .p.win, .rplayers .p.win { color: var(--text); font-weight: 600; }
.gcard .ev { font-size: 12.5px; color: var(--text-3); }
.gcard .op { font-size: 12.5px; color: var(--text-2); }
.gcard .op b, .rmeta dd b { font-weight: 600; font-size: 11px; letter-spacing: 0.08em; color: var(--amber); margin-right: 7px; }
.gcard .d { font-size: 13px; line-height: 1.5; color: var(--text-2); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kcard .d { font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.gcard .tag { margin-top: auto; padding-top: 7px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.kcard .res { font-family: var(--sans); font-size: 11.5px; color: var(--text-3); }

/* Player index */
.pindex { columns: 3 250px; column-gap: 40px; }
.pletter { font-family: var(--serif); font-size: 22px; color: var(--amber); border-bottom: 1px solid var(--rule-strong); padding: 0 0 3px; margin-top: 16px; break-after: avoid; }
.pgroup:first-child .pletter { margin-top: 0; }
.prow {
  width: 100%; display: flex; align-items: baseline; gap: 10px; padding: 7px 2px; background: none; border: 0; border-bottom: 1px solid var(--rule);
  cursor: pointer; text-align: left; color: var(--text); font-size: 14px; break-inside: avoid;
}
.prow:hover { background: var(--surface); }
.prow:hover .pn { color: var(--ice); }
.prow .pn { flex: 1; min-width: 0; }
.prow .py { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prow .pk { min-width: 20px; text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* The reader: a game or a concept set as a page to read */
.reader .sec-head { align-items: center; }
.rplayers { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 15px; color: var(--text-2); margin: -2px 0 14px; }
.rplayers .vs { color: var(--text-3); }
.rmeta { margin: 0 0 18px; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; font-size: 13.5px; }
.rmeta > div { display: contents; }
.rmeta dt { font-family: var(--serif); font-variant-caps: all-small-caps; letter-spacing: 0.09em; font-size: 14.5px; color: var(--text-3); }
.rmeta dd { margin: 0; color: var(--text-2); min-width: 0; }
.rmeta .link { font-size: inherit; }
p.read { margin: 0; font-family: var(--serif); font-size: 16.5px; line-height: 1.68; color: var(--text); max-width: 64ch; }
p.read + p.read { margin-top: 12px; }
p.read b { font-weight: 600; }
p.short { margin: -2px 0 14px; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.45; color: var(--ice); max-width: 56ch; }
.moment.dim p.read { opacity: 0.55; }
.conlinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.conlink { background: none; border: 1px solid var(--rule-strong); border-radius: 2px; padding: 5px 11px; cursor: pointer; color: var(--ice); font-family: var(--serif); font-size: 15px; }
.conlink:hover { border-color: var(--ice); background: var(--surface); }
.conlink i { font: 600 10.5px var(--sans); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-right: 9px; }
.moves.prose { display: block; max-height: 250px; font-family: var(--serif); font-size: 16px; line-height: 1.95; padding-right: 6px; }
.moves.prose .mp { white-space: nowrap; padding: 0; font-size: inherit; }
.moves.prose .n { padding: 0 3px 0 0; font: 12px var(--sans); color: var(--text-3); }
.moves.prose button, .moves.prose .mp > span:not(.n) { padding: 2px 5px; font: inherit; border-radius: 2px; }
.moves.prose .mom::after { margin-left: 3px; font-size: 7px; vertical-align: 5px; }
.moves.prose .end { font-size: inherit; color: var(--text-2); padding: 0 4px; white-space: nowrap; }
.moves .con::before { content: ""; display: inline-block; width: 5px; height: 5px; border: 1px solid var(--ice); border-radius: 50%; margin-right: 5px; vertical-align: 2px; }
.sq.mark::before { background: rgba(216, 182, 114, 0.3); box-shadow: inset 0 0 0 3px rgba(216, 182, 114, 0.95); }
.legend .mk::before { height: 9px; width: 9px; background: rgba(216, 182, 114, 0.3); box-shadow: inset 0 0 0 2px var(--amber); }
.exnav { margin-bottom: 14px; }
.stepper .btn.num { min-width: 34px; font-family: var(--serif); }
.cite { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.cite .ct { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; min-width: 0; font-size: 13px; color: var(--text-2); }
.cite .ct b { font-family: var(--serif); font-weight: 400; font-size: 17px; color: var(--text); }
.cite .cp { color: var(--text); }
.cite .cno { align-self: flex-start; padding-top: 4px; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.points { margin: 0; padding: 0; list-style: none; }
.points li { position: relative; padding: 7px 0 7px 18px; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.5; color: var(--text-2); }
.points li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 6px; height: 1px; background: var(--amber); }
.row .names { color: var(--text); }
body[data-sub="concept"] .depth { display: none; }

/* The entrance */
.hero { display: flex; align-items: center; gap: 44px; }
.hero .rose { width: 150px; height: 200px; flex: none; color: var(--ice); --rose-w: 0.75; --rose-d: 0.45; }
.htext { min-width: 0; max-width: 800px; flex: 1; }
.wordmark { font-weight: 600; letter-spacing: 0.34em; font-size: 13px; margin-bottom: 14px; }
.wordmark i { font-style: normal; color: var(--ice); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 16px; }
.lede { margin: 0 0 22px; color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 64ch; }
.eras { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.era {
  background: var(--surface); border: 0; text-align: left; cursor: pointer; color: var(--text); padding: 20px 22px 20px 18px;
  display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 8px; align-items: start;
}
.era:hover { background: var(--raised); }
.era:hover .en { color: var(--ice); }
.era .rn { font-size: 28px; line-height: 1.05; }
.era .eb { display: flex; flex-direction: column; min-width: 0; }
.era .en { font-family: var(--serif); font-size: 23px; line-height: 1.2; }
.era .es { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); font-weight: 600; margin: 5px 0 10px; }
.era .ed { font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.era .er { display: flex; flex-wrap: wrap; gap: 5px 18px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--text); }
.era .er span { display: inline-flex; align-items: center; white-space: nowrap; }
.era .er .more { color: var(--text-3); font-style: italic; }
.klist { margin: 16px 0 14px; }
.klist .chip { font-family: var(--serif); font-size: 15px; color: var(--text); padding: 4px 11px; }
.klist .chip small { margin: 0 8px 0 0; font-family: var(--sans); color: var(--amber); font-weight: 600; }
@media (max-width: 900px) { .eras { grid-template-columns: 1fr; } .twocol { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .page { padding: 24px 16px 40px; gap: 26px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero .rose { width: 84px; height: 112px; --rose-w: 1.1; --rose-d: 0.6; }
  .hero h1 { font-size: 31px; }
  .phead h1 { font-size: 31px; }
  .lede { font-size: 15.5px; }
  h2.head { font-size: 25px; }
  .mnav { margin-left: 0; }
  .tabs { gap: 0 15px; }
  .tabs button { font-size: 15px; letter-spacing: 0.06em; }
  .shead { grid-template-columns: 34px minmax(0, 1fr) 16px; column-gap: 8px; }
  .shead .sn { font-size: 20px; }
  .shead .sc { grid-column: 2; grid-row: auto; margin-top: 2px; }
  .shead .tw { grid-column: 3; }
  .sdesc { margin-left: 0; font-size: 15px; }
  .gcards, .kcards { grid-template-columns: 1fr; }
  .era { grid-template-columns: 34px minmax(0, 1fr); padding: 16px 14px 16px 12px; }
  .era .rn { font-size: 22px; }
  .era .en { font-size: 20px; }
  .frow select.btn { max-width: 100%; }
  p.read { font-size: 16px; }
}

/* ---------- The opening book ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hsec .bar { margin-top: 14px; }
.hsec > p.body { margin-bottom: 14px; }

/* Contents: two parts set as a table of contents */
.toc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 48px; align-items: start; }
.tlist { list-style: none; margin: -14px 0 0; padding: 0; }
.tentry {
  width: 100%; background: none; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer; text-align: left; color: var(--text);
  display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 10px; padding: 12px 2px 13px; align-items: baseline;
}
.tentry:hover { background: var(--surface); }
.tentry:hover .tt { color: var(--ice); }
.tentry:focus-visible { outline-offset: -2px; }
.tentry .tn { font-family: var(--serif); font-size: 21px; color: var(--amber); font-variant-numeric: lining-nums tabular-nums; text-align: right; padding-right: 4px; }
.tentry .tb { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tentry .tt { font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.tentry .tm { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tentry .th { font-size: 13.5px; line-height: 1.5; color: var(--text-2); margin-top: 2px; max-width: 62ch; }
.tseen { font: 600 11px var(--sans); font-style: normal; color: var(--good); opacity: 0.75; margin-left: 9px; vertical-align: 2px; }
.card .tseen { vertical-align: 1px; }

/* "From here": the moves that lead on from a position */
.fhlist { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.fhlist.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 32px; border-top: 0; }
.fhlist.cols .fhrow { border-top: 1px solid var(--rule); border-bottom: 0; }
.fhrow {
  background: none; border: 0; border-bottom: 1px solid var(--rule); border-left: 2px solid transparent; cursor: pointer; text-align: left; color: var(--text);
  display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline; padding: 8px 6px 8px 8px;
}
.fhrow:hover, .fhrow:focus-visible { background: var(--raised); }
.fhrow:focus-visible { outline-offset: -2px; }
.fhrow .fm { font-family: var(--serif); font-size: 17px; white-space: nowrap; }
.fhrow .fn { font-size: 13.5px; color: var(--text-2); min-width: 0; }
.fhrow:hover .fn { color: var(--text); }
.fhrow .fn i { font-style: normal; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--text-3); border: 1px solid var(--rule-strong); border-radius: 2px; padding: 0 5px; margin-left: 7px; white-space: nowrap; }
.fhrow .fn i.own { color: var(--ice); border-color: var(--ice); }
.fhrow .fn i.tr { color: var(--amber); border-color: var(--amber); }
.fhrow .fc { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fhrow .fw { grid-column: 2 / -1; font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--text); margin-top: 3px; }
.fhrow .fw b { font-weight: 400; color: var(--ice); white-space: nowrap; }
.fhrow.own { border-left-color: var(--ice); }
.fhrow.own .fm { color: var(--ice); }

/* The block by the board: path, stepper, note, the roads on */
.walk:empty { display: none; }
.walk { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wback { display: none; align-self: flex-start; }
.whead { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.whead .wname { font-family: var(--serif); font-size: 19px; line-height: 1.2; color: var(--text); }
.whead .wside { margin-left: auto; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 2px; }
.crumbs button { background: none; border: 0; border-radius: 2px; padding: 1px 5px; cursor: pointer; font-family: var(--serif); font-size: 15.5px; color: var(--text-2); }
.crumbs button:first-child { font: 600 11px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding: 3px 6px 3px 0; }
.crumbs button:hover { color: var(--text); background: var(--surface); }
.crumbs button.cur { color: var(--ice); background: var(--raised); }
.crumbs button:first-child.cur { background: none; }
.crumbs .n { font-size: 12px; color: var(--text-3); margin-left: 5px; font-variant-numeric: tabular-nums; }
.wnote { border-left: 2px solid var(--amber); padding: 1px 0 2px 14px; }
.wnote p, .wtext { margin: 3px 0 0; font-family: var(--serif); font-size: 15.5px; line-height: 1.6; color: var(--text); max-width: 68ch; }
.wtext { margin: 0; }
.fhead { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.fhead .aside { margin-left: auto; font-size: 12px; color: var(--text-3); }
.fhead + .fhlist, .fhead + .empty { margin-top: -4px; }
.walk .empty { margin: 0; padding-top: 6px; }
.wtrans { border-left: 2px solid var(--rule-strong); padding: 1px 0 2px 14px; }
.wtrans p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.wtrans p b { font-weight: 400; font-family: var(--serif); font-size: 14.5px; color: var(--text); }
.wtrans .link { font-size: inherit; }
body[data-sub="opn"] .seat, body[data-sub="opn"] .depth { display: none; }
@media (min-width: 1001px) {
  /* The board and its block stay in view while the chapter is read; when the block is long it scrolls on its own. */
  body[data-sub="opn"] .boardcol { position: sticky; top: calc(var(--hdr, 52px) + 12px); max-height: calc(100vh - var(--hdr, 52px) - 40px); display: flex; flex-direction: column; padding: 1px; }
  body[data-sub="opn"] .stage { flex: none; max-width: min(100%, calc(100vh - 400px)); }
  body[data-sub="opn"] .walk { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; padding-right: 4px; }
}

/* A chapter */
.runhead {
  position: sticky; top: 0; z-index: 3; background: var(--bg); border-bottom: 1px solid var(--rule); margin: -12px 0 -8px; padding: 7px 0 6px;
  display: flex; justify-content: space-between; gap: 16px; font-family: var(--serif); font-variant-caps: all-small-caps; letter-spacing: 0.09em; font-size: 14.5px; color: var(--text-3);
}
.runhead span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.runhead span:last-child { color: var(--text-2); }
.chap .chno { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--amber); margin-bottom: 2px; }
.chap h2.head { font-size: 36px; }
.partof { display: block; background: none; border: 0; padding: 0; margin: 0 0 14px; cursor: pointer; text-align: left; font-family: var(--serif); font-style: italic; font-size: 15.5px; color: var(--text-2); }
.partof b { font-weight: 400; font-style: normal; color: var(--ice); }
.partof:hover b { text-decoration: underline; text-underline-offset: 3px; }
p.read.first::first-letter { float: left; font-size: 3.05em; line-height: 0.86; padding: 5px 5px 0 0; color: var(--ice); }
p.read.sm { font-size: 15.5px; line-height: 1.62; }
.verdictbox { border-left: 2px solid var(--amber); padding: 2px 0 3px 16px; }
.verdictbox p { margin: 5px 0 0; font-family: var(--serif); font-size: 17.5px; line-height: 1.5; max-width: 60ch; }
.mnotes { list-style: none; margin: 14px 0 0; padding: 0; }
.mnotes li { display: grid; grid-template-columns: 74px minmax(0, 1fr); column-gap: 8px; align-items: baseline; padding: 7px 0 7px 12px; border-left: 2px solid var(--rule); }
.mnotes li.cur { border-left-color: var(--amber); background: var(--surface); }
.mnotes button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-family: var(--serif); font-size: 16.5px; color: var(--ice); white-space: nowrap; }
.mnotes button:hover { color: var(--text); }
.mnotes p { margin: 0; font-family: var(--serif); font-size: 15.5px; line-height: 1.6; color: var(--text); max-width: 62ch; }
.blist, .klines { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.brow, .krow { background: none; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer; text-align: left; color: var(--text); padding: 9px 4px; }
.brow:hover, .krow:hover { background: var(--surface); }
.brow:focus-visible, .krow:focus-visible, .pg:focus-visible { outline-offset: -2px; }
.brow { display: grid; grid-template-columns: 66px minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
.brow .bm { font-family: var(--serif); font-size: 17px; color: var(--amber); white-space: nowrap; }
.brow .bt { font-family: var(--serif); font-size: 15.5px; line-height: 1.55; max-width: 62ch; }
.brow .bn { grid-column: 2; font-size: 12.5px; color: var(--ice); margin-top: 2px; }
.krow { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; }
.krow .kn { font-family: var(--serif); font-size: 16.5px; flex: 1 1 220px; min-width: 0; }
.krow:hover .kn { color: var(--ice); }
.krow .km { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.traps { display: flex; flex-direction: column; gap: 12px; }
.trap { border: 1px solid var(--rule); border-left: 2px solid var(--rule-strong); background: var(--surface); padding: 12px 16px 14px; }
.trap.on { border-left-color: var(--amber); }
.trap h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.2; margin: 0 0 6px; }
.trap .meta { margin: 0 0 8px; }
.trap .bar { margin-top: 12px; }
.trap .stepper { margin-bottom: 10px; }
.trap .varline button { padding: 3px 8px; }
.trap .board.mini { display: none; width: 100%; max-width: 320px; flex: none; margin: 4px 0 12px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.pg { background: var(--surface); border: 0; cursor: pointer; text-align: left; color: var(--text); padding: 13px 16px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pg.none { cursor: default; background: var(--bg); }
.pg.next { text-align: right; align-items: flex-end; }
button.pg:hover { background: var(--raised); }
button.pg:hover .pt { color: var(--ice); }
.pg .pt { font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.pg .pt i { font-style: normal; color: var(--amber); margin-right: 8px; font-variant-numeric: lining-nums; }
.pg .ps { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* The library reader: what the game teaches, and the list of its moments */
.lessons { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule); }
.lessons .points { margin-top: 6px; }
.lessons .points li { font-family: var(--serif); font-size: 15.5px; color: var(--text); }
.mlist { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.mlist button { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--rule); border-left: 2px solid transparent; cursor: pointer; text-align: left; display: flex; align-items: baseline; gap: 10px; padding: 6px 6px 6px 8px; min-width: 0; }
.mlist button:hover { background: var(--surface); }
.mlist .mm { font-size: 11.5px; letter-spacing: 0.04em; color: var(--amber); white-space: nowrap; min-width: 78px; font-variant-numeric: tabular-nums; }
.mlist .mt { font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.mlist button.cur { border-left-color: var(--amber); background: var(--raised); }
.mlist button.cur .mt { color: var(--text); }
.mlist button.last .mt { color: var(--text); }

@media (max-width: 1000px) {
  .wback { display: inline; }
  .trap.on .board.mini { display: grid; }
}
@media (max-width: 900px) { .toc { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .chap h2.head { font-size: 29px; }
  .tentry { grid-template-columns: 30px minmax(0, 1fr); }
  .tentry .tn { font-size: 19px; }
  .fhrow { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .fhlist.cols { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pg.none { display: none; }
  .brow { grid-template-columns: 56px minmax(0, 1fr); }
  .mnotes li { grid-template-columns: 62px minmax(0, 1fr); }
}

/* Demo features on the home page: the masters' shelf (one spine per player). */
.bshelf { display: flex; align-items: flex-end; gap: 3px; padding: 14px 12px 0; overflow-x: auto; scrollbar-width: none; border-bottom: 10px solid #3a2a1a; background: linear-gradient(#0c1723, #101d2c); }
.spine { flex: 0 0 38px; height: var(--h); background: var(--c); color: #e6eff5; border: 0; border-left: 2px solid rgba(255,255,255,.14); border-right: 2px solid rgba(0,0,0,.3); border-radius: 2px 2px 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 8px 0 6px; cursor: pointer; transition: transform .15s; }
.spine:hover, .spine:focus-visible { transform: translateY(-8px); }
.spine b { writing-mode: vertical-rl; font-family: var(--serif); font-weight: 500; font-size: 15px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; max-height: calc(var(--h) - 40px); }
.spine i { font-style: normal; font-size: 10px; opacity: .8; }
.spine.full { box-shadow: inset 0 -4px 0 var(--amber); }
.spine.locked { opacity: .38; filter: saturate(.5); }
.mini { display: grid; grid-template-columns: repeat(8, 38px); grid-auto-rows: 38px; border: 1px solid var(--rule-strong); }
.mini span { display: flex; align-items: center; justify-content: center; font-size: 29px; line-height: 1; color: #12202e; }
.mini .l { background: #e4edf3; } .mini .d { background: #7f9fbd; } .mini .mk { box-shadow: inset 0 0 0 3px var(--amber); }
.mini .w { color: #fff; text-shadow: 0 0 2px #12202e, 0 0 2px #12202e, 0 1px 2px #12202e; }

/* Ice and library atmosphere. */
body { background: radial-gradient(1100px 520px at 12% -8%, rgba(var(--glow), .11), transparent 62%), radial-gradient(900px 420px at 100% 0, rgba(var(--glow), .05), transparent 60%),
  repeating-linear-gradient(118deg, rgba(255,255,255,.012) 0 1px, transparent 1px 46px), var(--bg); background-attachment: fixed; }
header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  border-bottom-color: transparent; box-shadow: 0 1px 0 rgba(var(--glow), .18), 0 8px 24px rgba(0,0,0,.25); }
.hero h1 { background: linear-gradient(180deg, #ffffff 20%, #b9dbe8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .rose { filter: drop-shadow(0 0 18px rgba(var(--glow), .35)); }
.card, .era, .gcard, .kcard { transition: box-shadow .18s, transform .18s; }
.card:hover, .era:hover, .gcard:hover, .kcard:hover { box-shadow: inset 0 0 0 1px rgba(var(--glow), .45), 0 0 24px rgba(var(--glow), .08); }
.sec-head .kicker { letter-spacing: .2em; }
#b-snd[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.hq { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid rgba(var(--glow), .28); border-radius: 4px;
  background: linear-gradient(160deg, rgba(var(--glow), .10), rgba(var(--glow), .02) 55%); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 40px rgba(0,0,0,.35); max-width: 338px; }
.hq .body { margin: 0; } .hq .bar { margin: 0; }
.mini { box-shadow: 0 0 0 4px #1a2c3f, 0 10px 24px rgba(0,0,0,.4); }
.bshelf { background: linear-gradient(#0b1622, #13202f 70%, #0d1823); border-bottom: 12px solid #4a3320; border-image: linear-gradient(#6b4a2c, #3a2716) 1; box-shadow: inset 0 18px 30px rgba(0,0,0,.45), 0 10px 18px rgba(0,0,0,.4); }
.spine { background-image: linear-gradient(90deg, rgba(255,255,255,.14), transparent 22%, transparent 78%, rgba(0,0,0,.28)), linear-gradient(transparent 12px, rgba(216,182,114,.75) 12px 14px, transparent 14px calc(100% - 26px), rgba(216,182,114,.75) calc(100% - 26px) calc(100% - 24px), transparent calc(100% - 24px)); background-color: var(--c); }
@media (max-width: 900px) { .hero { flex-wrap: wrap; } }
@media (max-width: 620px) {
  .hq { max-width: none; width: 100%; box-sizing: border-box; }
  .mini { grid-template-columns: repeat(8, 1fr); grid-auto-rows: auto; width: 100%; max-width: 320px; } .mini span { aspect-ratio: 1; font-size: 7.4vw; }
  header { position: static; }
}

/* Playing on the board: grab, drag, drop; feedback when a guess lands or misses. */
.board.live { touch-action: none; }
.board.live .sq { cursor: default; }
.board.live .sq:has(.pc) { cursor: grab; }
.board.live .sq.tgt { cursor: pointer; }
.board.live .sq.tgt:hover::before { background: rgba(var(--glow), 0.45); }
.sq.tgt::after { background: rgba(10, 60, 90, 0.38); box-shadow: 0 0 0 3px rgba(var(--glow), 0.35); animation: tgt-in .16s ease-out; }
.sq.tgt.occ::after { border-color: rgba(var(--glow), 0.75); box-shadow: none; }
.sq.sel::before { background: rgba(var(--glow), 0.7); box-shadow: inset 0 0 0 3px #fff; }
.sq.sel .pc { transform: translateY(-4%) scale(1.06); transition: transform .12s; }
.sq.lift .pc { opacity: .25; }
.ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; cursor: grabbing; }
.ghost .pc { filter: drop-shadow(0 10px 8px rgba(5, 11, 18, 0.5)); }
@keyframes tgt-in { from { transform: translate(-50%, -50%) scale(.2); opacity: 0; } }
.board.hit { animation: hit-glow .7s ease-out; }
.board.hit::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); background-size: 300% 100%; animation: ice-sweep .7s ease-out forwards; }
.board.miss { animation: miss-shake .35s; }
@keyframes hit-glow { 0% { box-shadow: 0 0 0 3px #9ccfe0, 0 0 60px rgba(var(--glow), .9); } 100% { box-shadow: 0 0 0 1px var(--rule-strong), 0 18px 40px rgba(0,0,0,.4); } }
@keyframes ice-sweep { from { background-position: 100% 0; } to { background-position: 0 0; opacity: 0; } }
@keyframes miss-shake { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .board.hit, .board.miss, .board.hit::after, .sq.tgt::after { animation: none; } }
.board, .board .pc { -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
/* After a miss the master's move stays on the board, marked, until the reader continues. */
.board.miss .sq.last::before { background: rgba(127, 191, 152, 0.55); box-shadow: inset 0 0 0 4px var(--good); animation: last-pulse 1.1s ease-in-out infinite alternate; }
@keyframes last-pulse { to { background: rgba(127, 191, 152, 0.3); } }

/* The end of a session. */
.done { text-align: center; padding: 28px 20px; border: 1px solid rgba(var(--glow), .35); border-radius: 4px; background: radial-gradient(600px 200px at 50% 0, rgba(var(--glow), .16), transparent 70%); animation: done-in .5s ease-out; }
.done h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 6px 0 8px; } .done .body { max-width: 560px; margin: 0 auto 16px; } .done .bar { justify-content: center; }
.dsc { font-size: 34px; letter-spacing: 10px; } .dsc span { color: var(--rule-strong); } .dsc .on { color: var(--ice); text-shadow: 0 0 18px rgba(var(--glow), .8); display: inline-block; animation: flake .6s ease-out backwards; }
.dsc .on:nth-child(2) { animation-delay: .15s; } .dsc .on:nth-child(3) { animation-delay: .3s; } .dsc .on:nth-child(n+4) { animation-delay: .45s; }
@keyframes flake { from { transform: scale(0) rotate(-90deg); opacity: 0; } } @keyframes done-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 620px) { .done h2 { font-size: 23px; } }
.moment.why { border-left: 3px solid var(--ice); background: linear-gradient(90deg, rgba(var(--glow), .09), transparent); padding: 12px 14px; margin-top: 12px; animation: done-in .4s ease-out; }
.moment.how { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--rule-strong); border-radius: 3px; }
.moment.how h3 { font-size: 17px; } .moment.how .bar { margin-top: 10px; }
.turn { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--rule-strong); border-radius: 3px; font-size: 15px; }
.turn.live { border-color: var(--ice); background: rgba(var(--glow), .08); box-shadow: 0 0 0 3px rgba(var(--glow), .08); }
.turn span { color: var(--text-3); font-size: 12px; }
.jdots { display: inline-flex; gap: 6px; } .jdots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--rule-strong); }
.jdots .ok { background: var(--ice); border-color: var(--ice); } .jdots .no { background: var(--bad); border-color: var(--bad); } .jdots .cur { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(var(--glow), .25); }
.board.nope { animation: miss-shake .35s; }
.drillbar { align-items: center; margin: 12px 0 4px; padding: 10px 12px; border: 1px solid rgba(var(--glow), .3); border-radius: 3px; background: rgba(var(--glow), .05); }

/* Profile, rating and the shelf. */
#b-me { border-color: rgba(216,182,114,.5); color: var(--amber); }
.me { display: flex; flex-direction: column; gap: 26px; }
.mehead { display: flex; align-items: center; gap: 28px; } .mehead .rose { width: 90px; height: 120px; color: var(--ice); filter: drop-shadow(0 0 16px rgba(var(--glow), .35)); flex: none; --rose-w: 1; --rose-d: .55; }
.mehead h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; margin: 2px 0 4px; } .mehead .lede { margin: 0 0 14px; color: var(--amber); }
.mestats { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.mestats div { background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.mestats b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; } .mestats span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.mestats .big b { font-size: 54px; color: var(--ice); text-shadow: 0 0 24px rgba(var(--glow), .35); }
.spark { color: var(--ice); } .spark svg { width: 100%; height: 90px; display: block; background: linear-gradient(rgba(var(--glow), .05), transparent); border-bottom: 1px solid var(--rule); }
.tiers { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 8px; font-family: var(--serif); font-size: 14px; color: var(--text-3); text-align: center; }
.tiers i { display: block; font-style: normal; font-family: var(--sans); font-size: 10px; } .tiers .past { color: var(--text-2); } .tiers .cur { color: var(--amber); font-size: 17px; }
.rkd { font-family: var(--serif); font-size: 26px; margin: 6px 0 0; } .rkd.up { color: var(--good); } .rkd.down { color: var(--bad); } .rkd b { color: var(--text); font-weight: 400; }
.rkd i { display: block; font: 12px var(--sans); color: var(--text-3); margin-top: 2px; }
/* The shelf wraps into rows; every row stands on its own wooden board. */
.bshelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); grid-auto-rows: 214px; align-items: end; gap: 0 3px; padding: 0 14px; overflow: visible; border: 0; border-image: none;
  background: repeating-linear-gradient(to bottom, #0b1622 0, #132030 150px, #0d1823 202px, #6b4a2c 202px, #3a2716 212px, #05090e 214px); box-shadow: inset 0 0 0 1px #1a2c3f, 0 14px 30px rgba(0,0,0,.45); border-radius: 2px; }
.spine { margin-bottom: 12px; flex: none; width: auto; }
.spine:not(.locked) { box-shadow: 0 0 14px rgba(var(--glow), .25); } .spine.full { box-shadow: inset 0 -4px 0 var(--amber), 0 0 18px rgba(216,182,114,.35); }
@media (max-width: 620px) { .mehead { flex-direction: column; align-items: flex-start; gap: 12px; } .mehead h1 { font-size: 29px; } .mestats { grid-template-columns: 1fr 1fr; } .mestats .big { grid-column: 1 / -1; } .tiers { font-size: 11px; } .tiers .cur { font-size: 12px; } }

/* Under the board on narrow screens: the state of a guess (see renderStrip). */
.gstrip { display: none; }
@media (max-width: 1000px) {
  .gstrip:not(:empty) { display: block; margin-top: 10px; }
  .gs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--surface); font-size: 15px; }
  .gs b.ok { color: var(--good); } .gs b.no { color: var(--bad); } .gs span { color: var(--text-3); font-size: 13px; } .gs .grow { flex: 1; }
  .gs .btn, .gs .link { min-height: 40px; }
}

/* Puzzle hall. */
.pzh1 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; margin: 6px 0 10px; }
.pzgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pzcard { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; color: var(--text); transition: box-shadow .18s; }
.pzcard:hover, .pzcard:focus-within { box-shadow: inset 0 0 0 1px rgba(var(--glow), .5), 0 0 24px rgba(var(--glow), .1); }
.pzgo { display: flex; gap: 8px; margin-top: 6px; } .pzgo .btn { flex: 1; min-height: 40px; justify-content: center; }
.pzgo input { flex: 2; min-width: 0; min-height: 40px; padding: 0 10px; background: var(--bg); color: var(--text); border: 1px solid var(--rule-strong); border-radius: 3px; font: 14px var(--sans); }
.pzgo input:focus { outline: 2px solid var(--ice); outline-offset: 1px; }
.pzr { font-family: var(--serif); font-size: 15px; color: var(--text-2); } .pzr b { font-weight: 400; font-size: 22px; color: var(--ice); }
.pzt { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.pzd { color: var(--text-2); font-size: 13px; line-height: 1.45; flex: 1; } .pzs { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.pzhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 14px; } .pzhead .aside { color: var(--text-2); font-size: 13px; }
.pzq { font-size: 18px; margin: 8px 0 4px; } .pzhint { color: var(--text-3); font-size: 13px; }
.pzsrc { color: var(--text-3); font-size: 13px; margin-top: 10px; }
.pzlink { width: 100%; box-sizing: border-box; margin: 6px 0; padding: 8px 10px; background: var(--surface); color: var(--text); border: 1px solid var(--rule-strong); border-radius: 3px; font: 12px ui-monospace, Menlo, monospace; }
/* Frozen: a misted pane of ice over the board, with frost growing in from the edges; the pieces are gone and the squares a selected
   piece could reach are not shown, since their pattern names the piece. */
.board.frozen .pc { opacity: 0; transition: opacity .6s; }
.board.frozen .sq.tgt::after { display: none; }
/* Every square looks and feels the same under the mist: one cursor, and a taken-up square, a hint or the opponent's reply shows through. */
.board.frozen.live .sq, .board.frozen.live .sq:has(.pc) { cursor: pointer; }
.board.frozen .sq.sel, .board.frozen .sq.mark, .board.frozen .sq.clear, .board.frozen svg.arrows { z-index: 5; }
/* What a thinner mist leaves: the reader's own pieces, the pieces of a wiped area, or a shadow of each piece's colour. */
.board.frozen .pc.keep { opacity: 1; z-index: 5; }
.shade { position: absolute; inset: 24%; border-radius: 50%; z-index: 5; pointer-events: none; }
.shade.w { background: rgba(255,255,255,.92); box-shadow: 0 0 0 2px rgba(23,39,58,.5); } .shade.b { background: rgba(23,39,58,.9); box-shadow: 0 0 0 2px rgba(255,255,255,.45); }
.board.frozen::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23fff' stroke-linecap='round'><path d='M0.0 0.0L79.2 76.6' stroke-width='1.60' stroke-opacity='0.52'/><path d='M27.7 26.8L21.1 67.9' stroke-width='0.96' stroke-opacity='0.42'/><path d='M25.4 41.2L35.7 53.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M23.7 51.5L34.5 61.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M23.7 51.5L10.4 57.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M22.3 60.5L32.5 69.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M22.3 60.5L11.0 67.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M47.5 46.0L85.0 38.1' stroke-width='0.96' stroke-opacity='0.42'/><path d='M60.7 43.2L67.5 30.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M60.7 43.2L71.5 52.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M70.0 41.2L75.0 28.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M78.3 39.5L88.0 47.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M47.5 46.0L39.3 83.4' stroke-width='0.96' stroke-opacity='0.42'/><path d='M44.7 59.1L55.4 68.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M44.7 59.1L32.2 66.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M42.6 68.4L52.2 77.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M42.6 68.4L29.7 71.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M40.8 76.7L29.1 80.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M64.9 62.8L99.9 57.2' stroke-width='0.96' stroke-opacity='0.42'/><path d='M77.2 60.8L82.8 48.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M77.2 60.8L87.7 69.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M85.9 59.4L91.5 48.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M93.6 58.2L97.3 47.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M93.6 58.2L102.5 65.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M64.9 62.8L62.9 98.2' stroke-width='0.96' stroke-opacity='0.42'/><path d='M64.2 75.2L75.0 83.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M64.2 75.2L53.5 83.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M63.7 84.0L72.6 92.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M63.7 84.0L52.8 89.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M63.3 91.8L73.0 97.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M63.3 91.8L53.9 98.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M400.0 0.0L330.0 68.7' stroke-width='1.60' stroke-opacity='0.52'/><path d='M375.5 24.0L383.0 60.3' stroke-width='0.96' stroke-opacity='0.42'/><path d='M378.1 36.7L391.5 41.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M378.1 36.7L368.4 46.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M380.0 45.8L391.7 51.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M380.0 45.8L371.7 55.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M381.7 53.8L392.0 59.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M381.7 53.8L373.2 62.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M358.0 41.2L368.2 73.8' stroke-width='0.96' stroke-opacity='0.42'/><path d='M361.6 52.6L354.5 63.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M366.4 67.9L376.9 71.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M366.4 67.9L358.9 75.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M358.0 41.2L324.3 35.6' stroke-width='0.96' stroke-opacity='0.42'/><path d='M346.2 39.3L336.0 47.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M337.8 37.9L330.4 47.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M330.4 36.6L323.6 45.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M330.4 36.6L326.0 26.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M342.6 56.3L351.9 86.5' stroke-width='0.96' stroke-opacity='0.42'/><path d='M345.9 66.9L357.3 70.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M348.2 74.4L359.0 76.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M348.2 74.4L342.6 83.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M350.2 81.0L359.6 84.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M350.2 81.0L343.2 88.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M0.0 400.0L66.0 338.6' stroke-width='1.60' stroke-opacity='0.52'/><path d='M23.1 378.5L18.8 344.7' stroke-width='0.96' stroke-opacity='0.42'/><path d='M21.6 366.7L11.1 359.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M20.5 358.2L10.5 351.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M20.5 358.2L30.3 351.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M19.6 350.8L9.7 346.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M19.6 350.8L28.2 344.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M23.1 378.5L56.7 384.4' stroke-width='0.96' stroke-opacity='0.42'/><path d='M34.9 380.6L43.0 370.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M34.9 380.6L39.7 392.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M43.3 382.0L47.3 393.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M50.6 383.3L58.2 375.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M50.6 383.3L53.9 393.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M39.6 363.1L33.2 332.4' stroke-width='0.96' stroke-opacity='0.42'/><path d='M37.4 352.4L26.8 347.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M37.4 352.4L46.4 344.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M35.7 344.7L25.7 340.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M35.7 344.7L44.2 337.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M34.3 338.0L25.4 333.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M34.3 338.0L40.7 330.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M54.1 349.6L49.9 320.9' stroke-width='0.96' stroke-opacity='0.42'/><path d='M52.7 339.6L43.2 334.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M52.7 339.6L60.1 331.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M50.7 326.1L42.6 321.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M50.7 326.1L58.0 320.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M54.1 349.6L82.1 357.2' stroke-width='0.96' stroke-opacity='0.42'/><path d='M63.9 352.3L72.6 345.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M70.9 354.2L79.2 348.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M77.1 355.8L83.9 349.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M77.1 355.8L81.1 364.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M400.0 400.0L337.6 341.3' stroke-width='1.60' stroke-opacity='0.52'/><path d='M378.2 379.5L346.9 387.8' stroke-width='0.96' stroke-opacity='0.42'/><path d='M367.2 382.4L358.2 374.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M359.4 384.5L356.7 395.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M359.4 384.5L350.2 378.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M352.5 386.3L349.1 396.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M352.5 386.3L345.3 378.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M378.2 379.5L381.1 347.2' stroke-width='0.96' stroke-opacity='0.42'/><path d='M379.2 368.2L369.3 360.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M379.2 368.2L389.9 362.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M379.9 360.1L371.3 352.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M379.9 360.1L390.2 355.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M380.5 353.0L372.8 346.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M380.5 353.0L390.1 348.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M362.5 364.8L333.0 368.8' stroke-width='0.96' stroke-opacity='0.42'/><path d='M352.2 366.2L346.5 375.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M344.8 367.2L337.2 360.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M338.3 368.0L334.2 376.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M338.3 368.0L332.7 360.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M348.8 351.9L321.5 355.4' stroke-width='0.96' stroke-opacity='0.42'/><path d='M339.2 353.1L335.6 362.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M339.2 353.1L332.9 344.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M332.4 354.0L327.7 362.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M332.4 354.0L326.0 346.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M326.4 354.8L321.7 362.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M326.4 354.8L320.3 348.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M348.8 351.9L353.0 324.6' stroke-width='0.96' stroke-opacity='0.42'/><path d='M350.3 342.3L342.5 335.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M350.3 342.3L360.1 339.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M351.3 335.5L344.5 328.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M351.3 335.5L359.7 330.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M352.2 329.5L346.0 323.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M352.2 329.5L360.1 325.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M200.0 0.0L208.5 102.3' stroke-width='1.60' stroke-opacity='0.52'/><path d='M203.0 35.8L174.8 62.5' stroke-width='0.96' stroke-opacity='0.42'/><path d='M193.1 45.2L193.9 59.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M193.1 45.2L179.0 41.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M186.1 51.8L187.2 65.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M186.1 51.8L172.7 50.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M179.9 57.7L182.4 69.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M179.9 57.7L167.5 56.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M205.1 61.4L236.9 77.6' stroke-width='0.96' stroke-opacity='0.42'/><path d='M216.2 67.1L228.4 61.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M216.2 67.1L219.0 80.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M224.2 71.1L235.3 65.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M224.2 71.1L224.3 83.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M231.2 74.7L241.3 69.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M207.0 83.9L236.1 99.6' stroke-width='0.96' stroke-opacity='0.42'/><path d='M217.2 89.4L228.2 83.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M217.2 89.4L217.9 101.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M224.4 93.3L234.4 87.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M230.8 96.7L232.4 107.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M207.0 83.9L179.2 101.8' stroke-width='0.96' stroke-opacity='0.42'/><path d='M197.3 90.2L186.0 84.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M190.3 94.6L190.9 106.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M190.3 94.6L179.3 91.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M184.2 98.6L183.4 109.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M184.2 98.6L174.3 94.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M0.0 200.0L103.4 218.0' stroke-width='1.60' stroke-opacity='0.52'/><path d='M36.2 206.3L56.2 240.6' stroke-width='0.96' stroke-opacity='0.42'/><path d='M43.2 218.3L58.0 220.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M48.2 226.9L62.0 227.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M48.2 226.9L42.2 239.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M52.6 234.4L65.1 236.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M52.6 234.4L47.6 246.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M62.0 210.8L88.5 185.6' stroke-width='0.96' stroke-opacity='0.42'/><path d='M71.3 202.0L70.4 188.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M71.3 202.0L84.7 205.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M77.9 195.7L76.3 183.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M77.9 195.7L90.4 198.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M83.7 190.1L94.8 193.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M62.0 210.8L77.2 244.0' stroke-width='0.96' stroke-opacity='0.42'/><path d='M67.3 222.4L61.1 234.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M71.1 230.7L83.3 234.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M71.1 230.7L63.5 240.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M74.5 238.1L86.1 239.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M74.5 238.1L67.2 247.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M84.8 214.8L105.5 188.1' stroke-width='0.96' stroke-opacity='0.42'/><path d='M92.0 205.4L87.6 193.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M92.0 205.4L104.8 205.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M97.2 198.8L108.9 199.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M101.7 192.9L99.0 182.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M400.0 220.0L298.7 202.4' stroke-width='1.60' stroke-opacity='0.52'/><path d='M364.6 213.8L350.0 177.8' stroke-width='0.96' stroke-opacity='0.42'/><path d='M359.5 201.2L367.4 188.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M355.9 192.2L342.5 190.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M355.9 192.2L362.8 180.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M352.7 184.3L340.7 180.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M352.7 184.3L359.2 173.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M339.2 209.4L311.4 231.9' stroke-width='0.96' stroke-opacity='0.42'/><path d='M329.5 217.3L332.2 230.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M322.5 222.9L323.4 235.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M322.5 222.9L311.0 218.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M316.4 227.9L316.9 239.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M316.4 227.9L305.4 224.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M339.2 209.4L320.4 179.0' stroke-width='0.96' stroke-opacity='0.42'/><path d='M327.9 191.2L315.6 189.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M323.8 184.5L312.3 184.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M323.8 184.5L328.2 173.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M317.0 205.6L296.8 231.8' stroke-width='0.96' stroke-opacity='0.42'/><path d='M309.9 214.7L315.0 226.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M309.9 214.7L297.5 213.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M304.9 221.3L308.5 232.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M304.9 221.3L293.4 222.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M300.4 227.1L304.3 237.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M300.4 227.1L289.9 225.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M317.0 205.6L301.8 176.2' stroke-width='0.96' stroke-opacity='0.42'/><path d='M311.7 195.3L316.8 183.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M307.9 188.0L296.6 185.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M307.9 188.0L314.4 178.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M304.5 181.5L294.0 180.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M304.5 181.5L310.7 172.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M180.0 400.0L164.0 292.5' stroke-width='1.60' stroke-opacity='0.52'/><path d='M174.4 362.4L137.5 344.3' stroke-width='0.96' stroke-opacity='0.42'/><path d='M161.5 356.0L147.9 363.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M161.5 356.0L161.0 340.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M152.3 351.5L140.1 359.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M144.1 347.5L131.8 352.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M174.4 362.4L202.9 332.8' stroke-width='0.96' stroke-opacity='0.42'/><path d='M184.4 352.0L183.5 336.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M184.4 352.0L199.7 354.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M191.5 344.6L188.1 330.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M197.8 338.1L196.6 324.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M197.8 338.1L211.0 338.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M170.4 335.5L135.6 320.6' stroke-width='0.96' stroke-opacity='0.42'/><path d='M158.2 330.3L153.9 316.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M149.5 326.6L137.6 332.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M149.5 326.6L146.1 313.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M141.9 323.3L138.4 311.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M170.4 335.5L195.8 307.4' stroke-width='0.96' stroke-opacity='0.42'/><path d='M179.3 325.6L176.1 311.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M179.3 325.6L193.2 328.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M185.6 318.6L182.6 305.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M185.6 318.6L198.7 319.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M191.2 312.4L188.5 300.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M166.9 311.8L135.9 295.6' stroke-width='0.96' stroke-opacity='0.42'/><path d='M156.1 306.1L145.2 313.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M148.3 302.1L147.8 289.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M141.5 298.5L132.0 304.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M141.5 298.5L139.1 287.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M120.0 0.0L160.7 120.8' stroke-width='1.60' stroke-opacity='0.52'/><path d='M134.2 42.3L180.4 56.0' stroke-width='0.96' stroke-opacity='0.42'/><path d='M150.4 47.1L165.1 36.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M150.4 47.1L154.0 64.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M162.0 50.5L176.3 41.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M162.0 50.5L167.2 66.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M172.1 53.5L183.9 43.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M172.1 53.5L176.8 68.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M144.4 72.5L185.2 90.0' stroke-width='0.96' stroke-opacity='0.42'/><path d='M158.7 78.6L172.4 69.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M158.7 78.6L162.2 95.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M168.9 83.0L182.4 75.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M168.9 83.0L172.8 97.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M177.8 86.8L181.1 100.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M144.4 72.5L113.6 104.3' stroke-width='0.96' stroke-opacity='0.42'/><path d='M133.6 83.6L137.8 99.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M125.9 91.6L110.7 88.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M119.1 98.6L122.7 112.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M153.4 99.0L191.4 114.4' stroke-width='0.96' stroke-opacity='0.42'/><path d='M166.7 104.4L179.8 96.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M166.7 104.4L171.1 119.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M176.2 108.3L188.9 102.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M176.2 108.3L180.0 122.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M184.5 111.7L196.1 105.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M184.5 111.7L186.7 124.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M153.4 99.0L128.3 131.5' stroke-width='0.96' stroke-opacity='0.42'/><path d='M144.6 110.4L147.3 125.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M144.6 110.4L129.1 109.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M138.3 118.5L124.1 117.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M132.8 125.6L137.7 137.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M400.0 90.0L288.6 122.6' stroke-width='1.60' stroke-opacity='0.52'/><path d='M361.0 101.4L346.4 142.8' stroke-width='0.96' stroke-opacity='0.42'/><path d='M355.9 115.9L365.7 129.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M355.9 115.9L339.9 120.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M352.2 126.3L337.3 129.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M349.0 135.4L355.6 147.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M361.0 101.4L328.8 71.6' stroke-width='0.96' stroke-opacity='0.42'/><path d='M349.7 91.0L333.2 92.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M349.7 91.0L352.6 74.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M341.7 83.5L326.6 85.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M341.7 83.5L344.7 68.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M334.6 77.0L336.5 63.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M333.1 109.6L322.9 148.7' stroke-width='0.96' stroke-opacity='0.42'/><path d='M329.5 123.3L340.1 134.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M329.5 123.3L314.7 126.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M327.0 133.0L336.1 143.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M327.0 133.0L313.9 138.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M324.7 141.6L332.8 151.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M333.1 109.6L304.5 81.1' stroke-width='0.96' stroke-opacity='0.42'/><path d='M316.0 92.5L302.5 96.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M309.7 86.2L311.4 73.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M308.6 116.8L276.8 97.1' stroke-width='0.96' stroke-opacity='0.42'/><path d='M297.5 109.9L284.1 114.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M297.5 109.9L295.3 95.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M289.6 105.0L277.1 108.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M289.6 105.0L287.1 92.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M282.6 100.7L271.6 105.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M282.6 100.7L281.9 88.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M0.0 300.0L117.1 252.4' stroke-width='1.60' stroke-opacity='0.52'/><path d='M41.0 283.3L53.0 237.1' stroke-width='0.96' stroke-opacity='0.42'/><path d='M45.2 267.2L34.0 253.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M45.2 267.2L61.9 260.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M48.2 255.6L38.4 242.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M48.2 255.6L63.2 248.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M50.8 245.4L41.4 233.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M50.8 245.4L64.7 238.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M41.0 283.3L80.0 310.9' stroke-width='0.96' stroke-opacity='0.42'/><path d='M54.7 293.0L71.9 287.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M54.7 293.0L53.9 311.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M64.4 299.9L79.8 293.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M64.4 299.9L65.5 316.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M73.0 305.9L87.0 299.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M73.0 305.9L70.9 321.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M70.3 271.4L84.2 229.7' stroke-width='0.96' stroke-opacity='0.42'/><path d='M75.1 256.8L91.5 253.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M78.6 246.4L69.2 234.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M78.6 246.4L93.6 243.2' stroke-width='0.58' stroke-opacity='0.32'/><path d='M81.7 237.2L73.5 225.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M70.3 271.4L109.3 291.7' stroke-width='0.96' stroke-opacity='0.42'/><path d='M93.7 283.6L106.7 275.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M93.7 283.6L97.3 298.5' stroke-width='0.58' stroke-opacity='0.32'/><path d='M102.3 288.1L114.7 281.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M102.3 288.1L104.9 302.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M96.0 261.0L108.5 222.3' stroke-width='0.96' stroke-opacity='0.42'/><path d='M100.4 247.4L90.2 235.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M103.5 237.8L93.5 227.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M103.5 237.8L116.4 231.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M106.3 229.2L98.6 218.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M106.3 229.2L118.3 224.1' stroke-width='0.58' stroke-opacity='0.32'/><path d='M96.0 261.0L128.6 285.4' stroke-width='0.96' stroke-opacity='0.42'/><path d='M107.4 269.5L121.6 263.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M115.6 275.6L128.7 270.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M115.6 275.6L114.2 289.7' stroke-width='0.58' stroke-opacity='0.32'/><path d='M122.7 281.0L124.0 294.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M300.0 400.0L260.5 301.3' stroke-width='1.60' stroke-opacity='0.52'/><path d='M286.2 365.5L246.8 357.3' stroke-width='0.96' stroke-opacity='0.42'/><path d='M253.9 358.8L243.9 367.0' stroke-width='0.58' stroke-opacity='0.32'/><path d='M253.9 358.8L248.0 347.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M286.2 365.5L310.6 333.6' stroke-width='0.96' stroke-opacity='0.42'/><path d='M294.7 354.3L291.1 339.6' stroke-width='0.58' stroke-opacity='0.32'/><path d='M306.2 339.3L319.1 338.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M276.3 340.8L239.9 334.1' stroke-width='0.96' stroke-opacity='0.42'/><path d='M263.6 338.5L254.2 348.8' stroke-width='0.58' stroke-opacity='0.32'/><path d='M263.6 338.5L257.4 325.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M254.5 336.8L245.0 345.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M246.5 335.3L240.1 325.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M276.3 340.8L300.6 312.9' stroke-width='0.96' stroke-opacity='0.42'/><path d='M284.8 331.0L280.0 317.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M284.8 331.0L298.7 332.9' stroke-width='0.58' stroke-opacity='0.32'/><path d='M290.9 324.1L288.6 311.4' stroke-width='0.58' stroke-opacity='0.32'/><path d='M290.9 324.1L303.6 326.3' stroke-width='0.58' stroke-opacity='0.32'/><path d='M296.2 317.9L294.1 306.2' stroke-width='0.58' stroke-opacity='0.32'/></svg>") center / 100% 100% no-repeat,
    radial-gradient(130% 130% at 50% 45%, rgba(236,247,253,.28), rgba(206,232,245,.52) 65%, rgba(244,251,255,.76)),
    linear-gradient(160deg, rgba(255,255,255,.26), rgba(186,222,240,.14) 50%, rgba(255,255,255,.28));
  -webkit-backdrop-filter: blur(2.5px) saturate(.55) brightness(1.06); backdrop-filter: blur(2.5px) saturate(.55) brightness(1.06);
  box-shadow: inset 0 0 70px rgba(255,255,255,.6), inset 0 0 0 1px rgba(255,255,255,.55); animation: frost-in 1.1s ease-out; }
@keyframes frost-in { from { opacity: 0; } }
.ghost .iceblock { display: block; width: 56%; height: 56%; margin: 22%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, rgba(190,225,242,.92) 60%, rgba(150,200,225,.88)); box-shadow: 0 6px 14px rgba(5,11,18,.35), inset 0 0 0 2px rgba(255,255,255,.7); }
@media (max-width: 620px) { .pzh1 { font-size: 29px; } }
.pzsrc a { color: var(--ice); }
.lvbar { margin-top: 18px; } .lvbar .chips { margin: 8px 0 4px; flex-wrap: wrap; } .lvbar .chip { min-width: 64px; justify-content: center; }
.duelset { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; } .duelset .btn { min-height: 52px; font-family: var(--serif); font-size: 20px; }
.duelclock { font-family: var(--serif); font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; } .pzmem { color: var(--amber); font-variant-numeric: tabular-nums; }
.pzeval { display: flex; gap: 8px; margin: 12px 0 4px; } .pzeval input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; background: var(--surface); color: var(--text); border: 1px solid var(--rule-strong); border-radius: 3px; font: 20px var(--serif); }
.lesson { font-size: 14.5px; line-height: 1.55; color: var(--text-2); margin: 10px 0 0; } .lesson p { margin: 0 0 8px; } .lesson b { color: var(--text); }
.evbar { position: relative; height: 62px; margin: 14px 4px 4px; font: 600 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.evbar .t { position: absolute; left: 0; right: 0; top: 19px; height: 4px; border-radius: 2px; background: linear-gradient(to right, #0d1a28, #5d8aa6 50%, #e6f1f6); }
.evbar .z { position: absolute; left: 50%; top: 14px; width: 1px; height: 14px; background: var(--text-3); }
.evbar b { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.evbar b::after { content: ""; position: absolute; left: 50%; width: 2px; height: 10px; margin-left: -1px; }
.evbar .me { top: 0; color: var(--amber); } .evbar .me::after { top: 13px; background: var(--amber); }
.evbar .en { top: 30px; color: var(--ice); } .evbar .en::after { bottom: 13px; background: var(--ice); }
.evbar .l, .evbar .r { position: absolute; top: 48px; color: var(--text-3); font-weight: 400; } .evbar .l { left: 0; } .evbar .r { right: 0; }
.pzeval input:focus { outline: 2px solid var(--ice); outline-offset: 1px; }
@media (max-width: 620px) { .rushset { grid-template-columns: repeat(2, 1fr); } }

/* Piece themes: chosen in the settings, they override the piece colours a board brings (so they come after the board rules). */
body[data-pieces="classic"] { --piece-w: #f4ead5; --piece-w-line: #3b2a1a; --piece-b: #2b2118; --piece-b-line: #0c0805; --piece-b-detail: #e2d3b6; }
body[data-pieces="contrast"] { --piece-w: #ffffff; --piece-w-line: #000000; --piece-b: #000000; --piece-b-line: #000000; --piece-b-detail: #ffffff; }
body[data-pieces="amber"] { --piece-w: #f3d58f; --piece-w-line: #4a3210; --piece-b: #5a2e17; --piece-b-line: #1e0e05; --piece-b-detail: #f0c98a; }

/* The sign-in screen the site opens with: nothing else in the header competes with it. */
/* Split in two: what the site is and what an account gives on one side, the card with the forms on the other. */
.auth { min-height: calc(100vh - var(--hdr, 60px) - 60px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 56px; align-items: center; max-width: 980px; margin: 0 auto; padding: 20px 0 40px; }
.authside .rose { width: 72px; height: 96px; color: var(--ice); filter: drop-shadow(0 0 16px rgba(var(--glow), .35)); }
.authside h1 { font-family: var(--serif); font-weight: 400; font-size: 46px; letter-spacing: .2em; margin: 10px 0 8px; } .authside h1 i { font-style: normal; color: var(--ice); }
.authside .lede { color: var(--text-2); font-size: 17px; margin: 0 0 18px; }
.authwhy { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); } .authwhy li::before { content: "❄"; color: var(--ice); margin-right: 10px; }
.authcard { width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.authcard h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0; } .authcard a.btn { text-decoration: none; justify-content: center; text-align: center; }
.authcard .fld input { background: var(--bg); } .authcard .forgot { align-self: flex-end; } .authcard > .link { align-self: flex-start; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; gap: 22px; } .authside { text-align: center; } .authside .rose { width: 52px; height: 70px; } .authside h1 { font-size: 32px; } .authwhy { display: none; } }
.authtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .authtabs .btn { min-height: 40px; justify-content: center; }
.authtabs .btn[aria-selected="true"] { background: rgba(var(--glow), .14); color: var(--text); border-color: var(--ice); }
.authcard .big { justify-content: center; } .authcard .guest { align-self: center; margin-top: 2px; font-size: 14px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12px; } .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
body[data-sub="auth"] #nav, body[data-sub="auth"] #usermenu, body[data-sub="auth"] #b-login, body[data-sub="auth"] #b-flip { visibility: hidden; }
.form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.form.inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; } .form.inline .fld { flex: 1 1 180px; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.fld input { min-height: 44px; padding: 0 12px; background: var(--surface); color: var(--text); border: 1px solid var(--rule-strong); border-radius: 3px; font: 16px var(--sans); letter-spacing: 0; text-transform: none; }
.fld input:focus { outline: 2px solid var(--ice); outline-offset: 1px; }
.form .btn { min-height: 44px; }
.btn.danger { color: var(--bad); border-color: rgba(217,133,114,.6); }
/* Settings and profile. */
.setpage { max-width: 780px; }
.setsec { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--rule); } .setsec h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 8px; }
.setrow { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; padding: 8px 0; } .setrow > span { color: var(--text-2); } .setrow .chips { flex-wrap: wrap; margin: 0; }
.lookprev { display: inline-grid; grid-template-columns: repeat(4, 48px); grid-auto-rows: 48px; border: 1px solid var(--rule-strong); }
.acctplan { display: inline-block; margin-left: 8px; padding: 2px 8px; border: 1px solid var(--rule-strong); border-radius: 2px; font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; vertical-align: middle; color: var(--text-2); }
.acctplan.premium { color: var(--amber); border-color: rgba(216,182,114,.6); }
.msg.verify .bad { color: var(--bad); } button.acctplan { background: none; cursor: pointer; } button.acctplan:hover { border-color: var(--ice); }
/* The legal pages and the Pro page: one column of text. */
.legal, .pro { max-width: 720px; } .legal h2 { margin: 26px 0 8px; font: 600 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.legal a { color: var(--ice); } .legalfoot { margin: 28px 0 0; font-size: 13px; color: var(--text-3); } .pro .bar { flex-wrap: wrap; }
.rkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.rkcard { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 14px 16px; color: var(--text-2); font-size: 13px; }
.rkbig { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.1; color: var(--ice); } .rkcard .spark svg { height: 40px; }
#meform { margin-top: 4px; }
@media (max-width: 620px) { .setrow { grid-template-columns: 1fr; gap: 6px; } .authcard h1 { font-size: 28px; } }

/* Puzzle hall: the lives of a mixed run, the tip on a theme, the practice block of the profile. */
.lives { color: var(--ice); letter-spacing: .1em; } .lives i { font-style: normal; opacity: .25; }
.tip { margin: 12px 0 4px; padding: 10px 12px; border-left: 3px solid var(--amber); background: rgba(216,182,114,.07); font-size: 14px; line-height: 1.5; color: var(--text-2); } .tip b { color: var(--amber); font-weight: 600; }
.practice p { margin: 4px 0; color: var(--text-2); } .practice b { color: var(--text); }
/* The report of the weak themes: the name, the share found as a bar, and the numbers. */
.thbars { list-style: none; margin: 8px 0; padding: 0; max-width: 520px; } .thbars li { display: grid; grid-template-columns: 150px 1fr 76px; gap: 10px; align-items: center; padding: 3px 0; font-size: 13px; color: var(--text-2); }
.thbars i { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; } .thbars i b { display: block; height: 100%; background: var(--ice); } .thbars li span:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* The reader's button in the header with its menu, and the avatar (a picture from Google or GitHub, else the initial). */
[hidden] { display: none !important; }
.usermenu { position: relative; }
#b-me { display: inline-flex; align-items: center; gap: 8px; } #b-me i { font-style: normal; font-size: 10px; opacity: .7; }
.umenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 180px; display: flex; flex-direction: column; padding: 6px; background: var(--raised, var(--surface)); border: 1px solid var(--rule-strong); border-radius: 4px; box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.umenu button { background: none; border: 0; border-radius: 3px; padding: 9px 12px; min-height: 40px; text-align: left; cursor: pointer; color: var(--text); font: 14px var(--sans); }
.umenu button:hover, .umenu button:focus-visible { background: rgba(var(--glow), .12); }
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover; background: rgba(var(--glow), .18); color: var(--ice); font: 600 12px var(--sans); }
.avatar.sm { width: 22px; height: 22px; } .avatar.lg { width: 96px; height: 96px; font-size: 40px; border: 1px solid var(--rule-strong); }
.mehead .flair { color: var(--amber); } .mehead .bio { margin: 0 0 6px; color: var(--text); max-width: 60ch; }
.fld.wide { flex: 2 1 320px; } .fld select { min-height: 44px; padding: 0 10px; background: var(--surface); color: var(--text); border: 1px solid var(--rule-strong); border-radius: 3px; font: 16px var(--sans); }

/* Duel rooms: the duel panel of the hall, the form that makes a room, and the lobby. */
.roomlist { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule-strong); }
.roomrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .roomrow .rn { flex: 1 1 200px; min-width: 0; } .roomrow .rn i { display: block; font-style: normal; color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roomrow .rh { color: var(--text-2); font-size: 13px; }
.room { max-width: 880px; } .roomform { max-width: 620px; margin-top: 14px; } .roomform .setrow { padding: 4px 0; } .roomform > .btn { align-self: flex-start; min-width: 200px; justify-content: center; }
.room .chip { min-height: 36px; } .room .chip[aria-pressed="true"]:disabled { opacity: 1; }
.invite { display: flex; gap: 8px; align-items: center; max-width: 620px; margin: 10px 0 14px; } .invite .pzlink { flex: 1; margin: 0; min-height: 40px; font-size: 13px; } .invite .btn { min-height: 40px; white-space: nowrap; }
.roomcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 18px; } .roomcols .bar { margin-top: 12px; }
@media (max-width: 820px) { .roomcols { grid-template-columns: 1fr; gap: 20px; } .invite { flex-wrap: wrap; } }
.roomboard { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.roomboard li { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 10px; background: var(--surface); border: 1px solid var(--rule); border-radius: 3px; }
.roomboard li.mine { border-color: var(--ice); } .roomboard li.away { opacity: .5; }
.roomboard .rk { width: 18px; font-family: var(--serif); color: var(--amber); font-variant-numeric: tabular-nums; } .roomboard .pn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roomboard .sc { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; } .roomboard .sc b { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--ice); } .roomboard .sc > i { font-style: normal; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.tagx { font: 600 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--rule-strong); border-radius: 2px; padding: 1px 5px; } .tagx.host { color: var(--amber); border-color: rgba(216,182,114,.5); } .tagx.pro { color: var(--bg); background: var(--amber); border-color: var(--amber); } .tagx.you { color: var(--ice); border-color: var(--ice); }
.roomboard.small { margin: 10px 0; } .roomboard.small li { min-height: 30px; padding: 2px 8px; font-size: 13px; } .roomboard.small .sc b { font-size: 16px; } .roomboard.small .tagx:not(.you) { display: none; }
.countdown { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 16px 0; padding: 18px; background: var(--raised); border: 1px solid var(--ice); border-radius: 4px; }
.countdown b { font-family: var(--serif); font-weight: 400; font-size: 84px; line-height: 1; color: var(--ice); font-variant-numeric: tabular-nums; } .countdown span { color: var(--text-2); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 20px); padding: 10px 18px; background: var(--ice); color: var(--on-accent); font-weight: 600; font-size: 14px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* The duel screen: the streak bar, the live board beside the puzzle, the ranking table and the puzzles of the round. */
.combo { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; } .combo .ctext { color: var(--text-2); font-size: 13px; white-space: nowrap; } .combo .ctext b { color: var(--amber); font-size: 15px; }
.cbar { position: relative; flex: 1; height: 10px; margin: 8px 14px 8px 0; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 5px; }
.cbar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--amber); border-radius: 4px; transition: width .25s ease; }
.cbar > span { position: absolute; top: -9px; transform: translateX(-50%); padding: 1px 5px; background: var(--bg); border: 1px solid var(--rule-strong); border-radius: 8px; font: 600 11px var(--sans); color: var(--text-3); font-variant-numeric: tabular-nums; }
.cbar > span.on { color: var(--on-accent); background: var(--amber); border-color: var(--amber); }
.bonus { color: var(--amber); }
.xs { color: var(--bad); letter-spacing: .12em; font-size: 13px; } .xs i { font-style: normal; color: var(--text-3); opacity: .45; }
.roomboard li { position: relative; overflow: hidden; } .roomboard li.out .pn { text-decoration: line-through; text-decoration-color: var(--bad); }
.roomboard .pbar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--ice); opacity: .8; transition: width .3s ease; } .roomboard li.mine .pbar { background: var(--amber); }
#roomscore .roomboard { max-height: 330px; overflow-y: auto; }
.histlist { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.hist { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 3px; color: var(--text); font: 13px var(--sans); cursor: pointer; }
.hist i { font-style: normal; font-weight: 700; } .hist.ok i { color: var(--good); } .hist.miss { border-color: rgba(217,133,114,.6); } .hist.miss i { color: var(--bad); } .hist.skip i { color: var(--amber); }
.hist:hover:not(:disabled) { border-color: var(--ice); } .hist:disabled { opacity: .5; cursor: default; }
@media (max-width: 620px) { .combo { flex-wrap: wrap; gap: 4px 12px; } .cbar { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .cbar > i, .roomboard .pbar { transition: none; } }
.setrow.reveal { animation: reveal .25s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .setrow.reveal { animation: none; } }

/* The light theme: the few places drawn for a dark page. */
body[data-theme="light"] .hero h1 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); }
body[data-theme="light"] .board { box-shadow: 0 0 0 1px var(--rule-strong), 0 12px 28px rgba(20, 40, 60, 0.18); }

/* The board as the settings want it: the coordinates outside or off, the last move left unmarked. */
body[data-coords="off"] .sq .co { display: none; }
body[data-coords="out"] .board { margin: 0 0 18px 18px; }
body[data-coords="out"] .sq .co { color: var(--text-3); font-size: 11px; }
body[data-coords="out"] .sq .co.r { left: -15px; top: 50%; transform: translateY(-50%); }
body[data-coords="out"] .sq .co.f { right: 50%; bottom: -16px; transform: translateX(50%); }
body[data-hl="off"] .board:not(.miss) .sq.last:not(.sel):not(.hint):not(.chk)::before { background: none; }
/* The choice of a piece when a pawn reaches the last rank (the automatic queen switched off). */
.promo { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(5, 11, 18, 0.5); }
.promo > div { display: flex; gap: 6px; padding: 8px; background: var(--surface); border: 1px solid var(--ice); border-radius: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
.promo button { position: relative; width: min(64px, 17vw); height: min(64px, 17vw); padding: 0; background: var(--sq-light); border: 1px solid var(--rule-strong); border-radius: 4px; cursor: pointer; }
.promo button:hover { background: var(--sq-dark); }
/* Under the mist the pieces of the board are hidden; the four to choose from are not. */
.board.frozen .promo .pc { opacity: 1; }
/* Zen: while a puzzle or a duel is on the board, nothing but the board, the question and the clock. */
body[data-zen="on"] header, body[data-zen="on"] .depth, body[data-zen="on"] #roomscore, body[data-zen="on"] .combo, body[data-zen="on"] .zenhide, body[data-zen="on"] .rkd, body[data-zen="on"] .pzsrc { display: none !important; }
.zenexit { margin-left: auto; }
#panel .iceopts { margin-left: auto; } #panel .zenexit + .iceopts { margin-left: 0; }
.iceset { margin-top: 12px; padding: 4px 14px 2px; border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--surface); }

/* Settings: the tabs down the left, the choices beside them, and on the first tab a board that shows them. */
.setwrap { max-width: 1060px; }
.setgrid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; margin-top: 18px; align-items: start; }
.settabs { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--hdr, 52px) + 16px); }
.settabs button { text-align: left; padding: 11px 14px; background: none; border: 0; border-left: 2px solid var(--rule); color: var(--text-2); font: 14px var(--sans); cursor: pointer; }
.settabs button:hover { color: var(--text); background: var(--surface); }
.settabs button[aria-selected="true"] { border-left-color: var(--ice); color: var(--ice); background: var(--raised); font-weight: 600; }
.setbody h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 6px; }
.setbody h3 { font: 600 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin: 22px 0 4px; padding-top: 14px; border-top: 1px solid var(--rule); }
.setbody .setrow { grid-template-columns: 190px minmax(0, 1fr); } .setbody .setrow + .pzhint { margin: -2px 0 6px 202px; }
.setlook { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.pvwrap { position: sticky; top: calc(var(--hdr, 52px) + 16px); } .pvwrap .kicker { display: block; margin-bottom: 8px; } .pvwrap .board { box-shadow: 0 0 0 1px var(--rule-strong); }
.vol { display: flex; align-items: center; gap: 12px; } .vol input { width: min(260px, 100%); accent-color: var(--ice); } .vol output { min-width: 36px; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .setgrid { grid-template-columns: 1fr; gap: 14px; }
  .settabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; position: static; border-bottom: 1px solid var(--rule); }
  .settabs button { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; padding: 10px 12px; }
  .settabs button[aria-selected="true"] { border-bottom-color: var(--ice); background: none; }
  .setlook { grid-template-columns: 1fr; } .pvwrap { position: static; max-width: 320px; }
}
@media (max-width: 620px) { .setbody .setrow { grid-template-columns: 1fr; } .setbody .setrow + .pzhint { margin-left: 0; } }

/* Less on the screen: in a puzzle the bar at the top says nothing about the position and the count of possible games is left out;
   the hall keeps ranked play and the level in one line; who cannot change a room's rules reads them as one. */
body[data-sub="pz"] .status, body[data-sub="pz"] .depth, body[data-sub="pz"] #b-flip { display: none !important; }
/* During a puzzle the seats keep only the mark of the side to move. */
body[data-sub="pz"] .seat .who, body[data-sub="pz"] .seat .mat { display: none; }
body[data-sub="pz"] .seat:not(.active) { visibility: hidden; }
.hallopts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0 0; color: var(--text-2); font-size: 13px; }
.hallopts .chip { min-height: 36px; padding: 4px 14px; } .hallopts label { display: inline-flex; align-items: center; gap: 8px; }
.hallopts [data-act="roomnew"] { margin-left: auto; }
.hallopts select { min-height: 36px; padding: 0 8px; background: var(--surface); color: var(--text); border: 1px solid var(--rule-strong); border-radius: 2px; font: 13px var(--sans); }
.rules { margin: 8px 0 4px; color: var(--text); font-size: 15px; }

/* Groups: the list of cards, a group's page, and the window that makes or changes a group. */
.grptop { display: flex; gap: 10px; align-items: center; margin: 6px 0 16px; } .grptop .search { flex: 1 1 auto; min-width: 0; }
.grpcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 8px 0 20px; }
.grpcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 4px; }
.grpcard .gn { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; } .grpcard .gn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; } .grpcard .gn i { font-style: normal; font-size: 12px; color: var(--text-3); }
.glogo { display: inline-grid; place-items: center; flex: none; border-radius: 22%; object-fit: cover; color: #fff; font: 600 18px var(--sans); } .glogo.md { width: 44px; height: 44px; } .glogo.lg { width: 72px; height: 72px; font-size: 30px; }
.grphead { display: flex; align-items: center; gap: 16px; margin: 16px 0 10px; } .grphead > div { flex: 1 1 auto; min-width: 0; } .grphead h1 { margin: 0 0 2px; overflow-wrap: anywhere; } .grphead div > span { color: var(--text-2); font-size: 13px; }
.grphead .gear { min-width: 44px; min-height: 44px; font-size: 18px; }
.grp .tabs { margin-top: 22px; }
.grprows { list-style: none; margin: 6px 0 0; padding: 0; } .grprows li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 2px; border-bottom: 1px solid var(--rule); }
.grprows .rk { width: 24px; color: var(--text-3); font-variant-numeric: tabular-nums; } .grprows .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .grprows b { font-variant-numeric: tabular-nums; } .grprows i { font-style: normal; font-size: 12px; color: var(--text-3); }
.btn.live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--good); vertical-align: 1px; }
.modalwrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(0, 0, 0, .6); }
.modal { width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--raised); border: 1px solid var(--rule-strong); border-radius: 6px; }
.mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .mhead h2 { margin: 0; font: 400 24px var(--serif); } .mhead .link { min-width: 44px; min-height: 44px; }
.logopick { display: flex; align-items: center; gap: 16px; } .logobtn { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; color: var(--text-2); font-size: 13px; }
.logobtn input { position: absolute; width: 1px; height: 1px; opacity: 0; } .logobtn:focus-within { outline: 2px solid var(--ice); outline-offset: 3px; }
.modal .invite { margin: 0; }
.modal .bar .danger { margin-left: auto; }
.grprows.reqs { margin-bottom: 14px; } .grprows.reqs li { border-bottom: 0; background: var(--surface); padding: 6px 10px; margin-bottom: 4px; border-radius: 3px; }
/* The ranking of a finished round. */
.ranktable { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.ranktable th { padding: 6px 8px; text-align: right; font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--rule-strong); }
.ranktable td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--rule); } .ranktable th:nth-child(2), .ranktable td.pn { text-align: left; } .ranktable .tagx { margin-left: 8px; }
.ranktable td:first-child, .ranktable th:first-child { width: 34px; text-align: left; color: var(--text-3); }
.ranktable td.pn { display: flex; align-items: center; gap: 8px; min-width: 0; } .ranktable td.pn span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranktable tr.mine td { background: rgba(var(--glow), .1); color: var(--text); }
