:root {
  --bg: #f6f4fb;
  --surface: #ffffff;
  --well: #ebe8f4;
  --tray: #e4e0f0;
  --hole: #d9d4e8;
  --line: #dfdbeb;
  --ink: #221a3a;
  --ink-2: #554e6e;
  --ink-3: #6f6889;
  --accent: #4b32e0;
  --accent-hi: #3a23c2;
  --accent-soft: #ece8ff;
  --danger: #c0283f;
  --easy-bg: #e3f4ee;
  --easy-ink: #115e46;
  --hard-bg: #fdecef;
  --hard-ink: #a31b32;
  --night: var(--ink);
  --night-ink: var(--bg);
  --night-ink-2: var(--foot-text);
  --night-ink-3: var(--foot-dim);
  --night-line: rgb(255 255 255 / 0.13);
  --night-tray: rgb(255 255 255 / 0.07);
  --night-hole: rgb(255 255 255 / 0.06);
  --focus: #4b32e0;
  --tile-h0: 290;
  --tile-step: 36;
  --tile-l0: 0.89;
  --tile-l-step: 0.021;
  --tile-c0: 0.085;
  --tile-c-step: 0.009;
  --tile-ink-l: 0.27;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-word: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --f-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --r: 12px;
  --r-tile: 14px;
  --shadow-1: 0 1px 2px rgb(34 26 58 / 0.08);
  --shadow-2: 0 1px 2px rgb(34 26 58 / 0.05), 0 12px 32px -8px rgb(34 26 58 / 0.14);
  --shadow-lift: 0 10px 18px -6px rgb(34 26 58 / 0.35);
  --shadow-drag: 0 18px 30px -10px rgb(34 26 58 / 0.45);
  --shadow-win: 0 18px 36px -10px rgb(34 26 58 / 0.45);
  --on-accent: #ffffff;
  --foot-text: var(--hole);
  --foot-dim: #bdb8d3;
  --foot-faint: #a7a2bf;
  --foot-rule: rgb(255 255 255 / 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wrap: 1120px;
  --read: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s7); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent-soft); color: var(--ink); }
h1, h2, h3 { font-family: var(--f-word); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: 46px; font-weight: 700; line-height: 1.05; }
h2 { font-size: 40px; font-weight: 700; line-height: 1.1; }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 var(--s4); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
table { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.skip { position: absolute; left: var(--s4); top: -64px; background: var(--ink); color: var(--on-accent); padding: var(--s2) var(--s4); border-radius: var(--r); z-index: 10; }
.skip:focus { top: var(--s4); }
.skip:hover { color: var(--on-accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s5);
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s var(--ease-out);
}
.btn:hover { border-color: var(--ink-3); color: var(--ink); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-main:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--on-accent); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 30px; }
  h3 { font-size: 18px; }
  .wrap { padding: 0 var(--s4); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: var(--s2); font: 700 21px/1 var(--f-word); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-tld { color: var(--accent); }
.foot .brand-tld { color: var(--foot-dim); }
.brand-mark { width: 30px; height: 30px; overflow: visible; }
.brand-mark .m-back { fill: oklch(0.8 0.11 254); }
.brand-mark .m-front { fill: var(--accent); stroke: var(--bg); stroke-width: 2.5; }
.brand-mark .m-spark { fill: var(--on-accent); }
.foot .brand-mark .m-front { stroke: var(--ink); }
.top-in { flex-wrap: wrap; }
.top-nav {
  display: flex; align-items: center; gap: 2px; margin: 0 0 0 auto;
  position: static; inset: auto; width: auto; height: auto; padding: 0; border: 0; background: none; color: inherit; overflow: visible;
}
.top-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  color: var(--ink-2); font: 600 15px/1 var(--f-word); text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.top-nav a:hover { background: var(--well); color: var(--ink); }
.top-nav a[aria-current] { background: var(--accent-soft); color: var(--accent-hi); }
.top-play {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 18px 0 var(--s4);
  border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 15px/1 var(--f-word); text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, transform 0.15s var(--ease-out);
}
.top-play::before { content: ""; width: 9px; height: 10px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.top-play:hover { background: var(--accent-hi); color: var(--on-accent); }
.top-play:active { transform: scale(0.97); }
.menu-btn { display: none; }

@media (max-width: 960px) {
  @supports selector(:popover-open) {
    .top-in { flex-wrap: nowrap; gap: var(--s2); }
    .top-play { margin-left: auto; }
    .menu-btn {
      display: grid; place-items: center; width: 44px; height: 44px; margin: 0 calc(-1 * var(--s2)) 0 0; padding: 0;
      border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; transition: background-color 0.15s;
    }
    .top-play + .menu-btn { margin-left: 0; }
    .brand + .top-nav + .menu-btn { margin-left: auto; }
    .menu-btn:hover { background: var(--well); }
    .menu-btn svg { width: 22px; height: 22px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
    .menu-btn path { transform-origin: 12px 12px; transition: transform 0.25s var(--ease-out), opacity 0.15s; }
    .top:has(.top-nav:popover-open) .menu-btn { background: var(--well); }
    .top:has(.top-nav:popover-open) .mb-1 { transform: translateY(5px) rotate(45deg); }
    .top:has(.top-nav:popover-open) .mb-2 { opacity: 0; }
    .top:has(.top-nav:popover-open) .mb-3 { transform: translateY(-5px) rotate(-45deg); }
    .top-nav:not(:popover-open) { display: none; }
    .top-nav:popover-open {
      position: fixed; inset: 61px 0 auto; margin: 0; padding: var(--s2) var(--s4) var(--s4);
      flex-direction: column; align-items: stretch; gap: 2px;
      background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 32px -24px rgb(34 26 58 / 0.35);
      animation: menu-in 0.22s var(--ease-out);
    }
    .top-nav:popover-open a { min-height: 52px; padding: 0 var(--s4); border-radius: var(--r); font-size: 18px; }
    .top-nav::backdrop { background: rgb(34 26 58 / 0.18); }
  }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

.foot { margin-top: var(--s8); background: var(--ink); color: var(--foot-text); }
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); padding-top: var(--s4); padding-bottom: var(--s4);
  border-bottom: 1px solid var(--foot-rule); font-size: 14px; line-height: 1.4; color: var(--foot-dim);
}
.crumbs a { color: var(--foot-dim); text-decoration: none; }
.crumbs a:hover { color: var(--on-accent); text-decoration: underline; }
.crumbs > * + *::before { content: "›"; content: "›" / ""; margin-right: var(--s2); color: var(--foot-faint); }
.crumbs [aria-current] { color: var(--on-accent); }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s6) var(--s6); padding-top: var(--s7); padding-bottom: var(--s6); }
.foot .brand { color: var(--on-accent); margin-bottom: var(--s3); }
.foot-about p { max-width: 40ch; font-size: 15px; color: var(--foot-dim); }
.foot-col { display: grid; gap: var(--s2); align-content: start; justify-items: start; }
.foot-h { margin: 0 0 var(--s1); font: 600 14px/1.3 var(--f-word); color: var(--foot-faint); }
.foot-col a { color: var(--on-accent); font-size: 15px; text-decoration: none; }
.foot-col a:hover { color: var(--on-accent); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { grid-column: 1 / -1; margin: 0; padding-top: var(--s4); border-top: 1px solid var(--foot-rule); font-size: 14px; color: var(--foot-faint); }

.page-head { padding-top: var(--s7); padding-bottom: var(--s5); text-align: center; }
.page-head h1 { margin: 0; font: 700 46px/1.08 var(--f-word); letter-spacing: -0.02em; text-wrap: balance; }

.doc { max-width: calc(var(--read) + 2 * var(--s5)); }
.doc .prose > p:first-child { margin-top: calc(-1 * var(--s2)); margin-bottom: var(--s6); font-size: 15px; color: var(--ink-3); text-align: center; }
.doc .prose h2 { font-size: 28px; margin: var(--s7) 0 var(--s3); }
.prose h2 { font-size: 28px; margin: var(--s6) 0 var(--s3); }
@media (min-width: 1024px) { .doc { font-size: 18px; } }
.prose h3 { margin: var(--s5) 0 var(--s2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 var(--s4); }
.prose li { margin-bottom: var(--s2); }
.prose li::marker { color: var(--ink-3); }
.lost { text-align: center; padding-bottom: var(--s7); }

@media (max-width: 640px) {
  .brand { font-size: 18px; }
  .brand-mark { width: 26px; height: 26px; }
  .page-head { padding-top: var(--s6); padding-bottom: var(--s4); }
  .page-head h1 { font-size: 28px; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s5); }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .top-play-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 360px) {
  .brand { font-size: 16px; gap: 6px; }
  .top-play { padding: 0 var(--s3); }
}

.sb-tile, .rules li, .thumb i, .chain i, .li-seg b, .clocks li, .ans-chip {
  --l: calc(var(--tile-l0) - var(--lv, 0) * var(--tile-l-step));
  --c: calc(var(--tile-c0) + var(--lv, 0) * var(--tile-c-step));
  --h: calc(var(--tile-h0) - var(--lv, 0) * var(--tile-step));
  --face: oklch(var(--l) var(--c) var(--h));
  --face-top: oklch(calc(var(--l) + 0.035) calc(var(--c) - 0.01) var(--h));
  --edge: oklch(calc(var(--l) - 0.12) calc(var(--c) + 0.02) var(--h));
  --digit: oklch(var(--tile-ink-l) calc(var(--c) * 0.9) var(--h));
}

.sb-game {
  --gap: 10px;
  --pad: 20px;
  position: relative;
  width: 100%;
  background: var(--surface);
  border-radius: 24px;
  padding: var(--pad);
  box-shadow: var(--shadow-2);
}
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); height: 44px; }
.sb-tabs { display: inline-flex; padding: var(--s1); background: var(--well); border-radius: 999px; }
.sb-tab {
  min-height: 36px; padding: 0 var(--s4); border: 0; border-radius: 999px; background: transparent;
  font-weight: 600; font-size: 15px; color: var(--ink-2); cursor: pointer; transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.sb-tab:hover { color: var(--ink); }
.sb-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.sb-clock {
  min-width: 64px; padding: 0 var(--s3); height: 36px; display: grid; place-items: center;
  border-radius: 999px; background: var(--well);
  font: 600 18px/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink);
}
.sb-sub { display: flex; align-items: center; height: 36px; margin: var(--s2) 0 var(--s3); }
.sb-chip { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sb-name { margin: 0; font: 700 17px/1.2 var(--f-word); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-chip.is-done { color: var(--accent); }
.sb-chip[hidden], .sb-sizes[hidden] { display: none; }
.sb-sizes { display: flex; gap: var(--s2); }
.sb-size {
  min-height: 32px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; font-variant-numeric: tabular-nums;
}
.sb-size:hover { border-color: var(--ink-3); color: var(--ink); }
.sb-size[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-accent); }

.sb-stage { position: relative; container-type: inline-size; }
.sb-board {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  grid-template-rows: repeat(var(--n), minmax(0, 1fr));
  gap: var(--gap);
  padding: var(--gap);
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--tray);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.sb-cell, .sb-board > i { position: relative; border-radius: var(--r-tile); background: var(--hole); box-shadow: inset 0 2px 3px rgb(34 26 58 / 0.1); }
.sb-cell { display: grid; }

.sb-tile {
  position: relative;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  padding: 0; border: 0; border-radius: var(--r-tile);
  background: linear-gradient(var(--face-top), var(--face) 60%);
  color: var(--digit);
  box-shadow: 0 4px 0 var(--edge), 0 6px 12px -4px rgb(34 26 58 / 0.25);
  font: 800 calc(100cqi / var(--n) * 0.36) / 1 var(--f-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  cursor: grab;
  touch-action: none;
  translate: 0 -2px;
  transition: translate 0.22s var(--ease-spring), scale 0.18s var(--ease-out);
}
.sb-tile.is-long { font-size: calc(100cqi / var(--n) * 0.28); }
.sb-tile.is-xlong { font-size: calc(100cqi / var(--n) * 0.22); letter-spacing: -0.05em; }
@property --sb-spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.sb-tile.is-x2 {
  --face: var(--accent);
  --edge: color-mix(in oklab, var(--accent) 55%, var(--hole));
  border: 4px solid transparent;
  background:
    linear-gradient(var(--surface), var(--accent-soft)) padding-box,
    conic-gradient(from var(--sb-spin), oklch(0.78 0.13 290), oklch(0.78 0.13 218), oklch(0.8 0.13 146), oklch(0.84 0.13 74), oklch(0.76 0.14 2), oklch(0.78 0.13 290)) border-box;
  color: var(--accent);
  font-size: calc(100cqi / var(--n) * 0.3);
  letter-spacing: -0.02em;
  animation: sb-spin 6s linear infinite;
}
@keyframes sb-spin { to { --sb-spin: 360deg; } }
@media (prefers-reduced-motion: reduce) { .sb-tile.is-x2 { animation: none; } }
@media (hover: hover) { .sb-tile:hover { translate: 0 -4px; } }
.sb-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sb-tile.is-sel { translate: 0 -6px; scale: 1.05; box-shadow: 0 4px 0 var(--edge), var(--shadow-lift); }
.sb-tile.is-sel::after { opacity: 1; border-color: var(--ink); }

.sb-tile.is-drag { z-index: 3; cursor: grabbing; scale: 1.08; transition: scale 0.12s var(--ease-out); box-shadow: 0 4px 0 var(--edge), var(--shadow-drag); will-change: translate; }
.sb-tile.is-return { z-index: 2; }
.sb-tile.is-flying { z-index: 3; scale: 0.94; transition: translate 0.12s cubic-bezier(0.3, 0, 0.6, 1), scale 0.12s; }
.sb-tile::after { content: ""; position: absolute; inset: -6px; border-radius: calc(var(--r-tile) + 6px); border: 3px solid var(--edge); opacity: 0; pointer-events: none; transition: opacity 0.12s; }
.sb-tile.is-target { scale: 1.06; }
.sb-tile.is-target::after { opacity: 1; }
.sb-tile.is-nope { opacity: 0.55; transition: translate 0.22s var(--ease-spring), scale 0.18s var(--ease-out), opacity 0.12s; }

.sb-tile.is-hint { animation: sb-bob 1.1s var(--ease-out) infinite; box-shadow: 0 4px 0 var(--edge), 0 0 0 3px var(--surface), 0 0 0 6px var(--accent); }
.sb-tile.is-hint-to { box-shadow: 0 4px 0 var(--edge), 0 0 0 3px var(--surface), 0 0 0 6px var(--accent); animation: sb-breathe 1.1s ease-in-out infinite; }

.sb-tile.is-pop { animation: sb-pop 0.4s var(--ease-out); }
.sb-tile.is-pop::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  animation: sb-ring 0.4s var(--ease-out) forwards;
}
.sb-cell.is-hole::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--surface); animation: sb-hole 0.32s var(--ease-out) forwards;
}
.sb-tile.is-deal { animation: sb-deal 0.5s var(--ease-spring) backwards; }
.sb-tile.is-last { animation: sb-win 0.9s var(--ease-out) both; }

.sb-cell.is-dead::after {
  content: ""; position: absolute; inset: 36%;
  background:
    linear-gradient(45deg, transparent 43%, var(--danger) 43% 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, var(--danger) 43% 57%, transparent 57%);
  opacity: 0.8;
}
.sb-game.is-stuck .sb-board { animation: sb-shake 0.42s var(--ease-out); }

.sb-sub { position: relative; }
.sb-toast {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  margin: 0; padding: 0 var(--s4);
  border-radius: 999px; background: var(--ink); color: var(--on-accent);
  font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  translate: 0 6px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, translate 0.25s var(--ease-out);
}
.sb-toast.is-on { opacity: 1; translate: 0 0; }
.sb-game.is-stuck .sb-toast { background: var(--danger); }

.sb-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); height: 60px; margin-top: var(--s3); }
.sb-tool {
  display: grid; place-items: center; align-content: center; gap: 2px;
  border: 0; border-radius: var(--r); background: transparent;
  font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: background-color 0.15s, color 0.15s, scale 0.15s var(--ease-out);
}
.sb-tool svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .sb-tool:hover:not(:disabled) { background: var(--well); color: var(--ink); } }
.sb-tool:active:not(:disabled) { scale: 0.94; }
.sb-tool:disabled { opacity: 0.35; cursor: not-allowed; }
.sb-tool.is-cue { color: var(--accent); background: var(--accent-soft); animation: sb-breathe 1.1s ease-in-out infinite; }

.sb-layer {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center; padding: var(--s3);
  border-radius: inherit;
  background: color-mix(in oklab, var(--tray) 72%, transparent);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: sb-fade 0.2s ease-out;
}
.sb-layer[hidden] { display: none; }
.sb-card {
  width: min(100%, 360px); padding: var(--s5);
  border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-drag);
  text-align: center;
  animation: sb-rise 0.35s var(--ease-spring) both;
}
.sb-card-kicker { margin: 0 0 var(--s1); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sb-card-title { margin: 0 0 var(--s4); font: 800 22px/1.2 var(--f-display); letter-spacing: -0.02em; color: var(--ink); }
.is-win .sb-card-title { font-size: 28px; }
.sb-final { width: 72px; height: 72px; margin: calc(-1 * var(--s1)) auto var(--s3); font-size: 28px; cursor: default; animation: sb-pop 0.5s 0.15s var(--ease-out) backwards; }
.sb-final.is-long { font-size: 22px; }
.sb-final.is-xlong { font-size: 18px; }
.sb-stats { display: flex; justify-content: center; gap: var(--s5); margin: 0 0 var(--s5); }
.sb-stats div { display: flex; flex-direction: column-reverse; }
.sb-stats dt { font-size: 13px; color: var(--ink-2); }
.sb-stats dd { margin: 0; font: 800 24px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.sb-rate { margin: 0 0 var(--s4); }
.sb-rate-q { margin: 0 0 var(--s2); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sb-rate-opts { display: flex; justify-content: center; gap: var(--s2); }
.sb-rate-opt { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 6px 14px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--ink); cursor: pointer; }
.sb-rate-opt:active { scale: 0.97; }
@media (hover: hover) { .sb-rate-opt:hover { border-color: var(--ink-3); } }
.sb-card-actions { display: grid; gap: var(--s2); }
.sb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-weight: 700; font-size: 16px; color: var(--ink); cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, scale 0.15s var(--ease-out);
}
.sb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sb-btn:active { scale: 0.97; }
@media (hover: hover) { .sb-btn:hover { border-color: var(--ink-3); } }
.sb-btn-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (hover: hover) { .sb-btn-main:hover { background: var(--accent-hi); border-color: var(--accent-hi); } }
.sb-link { margin-top: var(--s3); border: 0; background: none; padding: var(--s1); font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.is-rules .sb-btn-main { width: 100%; margin-top: var(--s2); }
.sb-link:has(svg) { display: inline-flex; align-items: center; gap: var(--s1); }
.sb-link svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.is-win { overflow-y: auto; place-items: safe center; }


.sb-demo { --cell: 64px; --cols: 3; position: relative; display: grid; grid-template-columns: repeat(var(--cols), var(--cell)); gap: 8px; padding: 8px; margin: 0 auto var(--s4); width: max-content; border-radius: 14px; background: var(--tray); --n: 3; container-type: normal; }
.sb-demo .sb-cell, .sb-finger { width: var(--cell); height: var(--cell); }
.sb-demo .sb-cell { border-radius: 12px; }
.sb-demo .sb-tile { font-size: calc(var(--cell) * 0.44); border-radius: 12px; cursor: default; transition: translate 0.4s var(--ease-out); }
.sb-finger {
  position: absolute; left: 8px; top: 8px; pointer-events: none; z-index: 4;
  transition: translate 0.4s var(--ease-out);
}
.sb-finger::after {
  content: ""; position: absolute; left: 50%; top: 58%; width: 26px; height: 26px; margin: -13px;
  border-radius: 50%; background: rgb(34 26 58 / 0.25); border: 2px solid var(--surface);
  transition: scale 0.15s;
}
.sb-finger.is-down::after { scale: 0.8; background: rgb(34 26 58 / 0.4); }
.sb-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 var(--s3); text-align: left; display: grid; gap: var(--s2); }
.sb-steps li { counter-increment: step; position: relative; padding-left: 32px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.sb-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent); font: 800 13px/1 var(--f-display);
}

.sb-ghost .g-head { display: block; height: 44px; }
.sb-ghost .g-sub { display: block; height: 36px; margin: var(--s2) 0 var(--s3); }
.sb-ghost .g-tools { display: block; height: 60px; margin-top: var(--s3); }
.sb-game.is-live .sb-ghost { display: none; }
.sb-noscript { margin: var(--s4) 0 0; text-align: center; color: var(--ink-2); }

@keyframes sb-deal { from { opacity: 0; transform: translateY(16px) scale(0.7); } }
@keyframes sb-pop { 0% { transform: scale(0.82); } 45% { transform: scale(1.14); } 75% { transform: scale(0.97); } 100% { transform: scale(1); } }
@keyframes sb-ring { 0% { box-shadow: 0 0 0 0 var(--face); opacity: 0.9; } 100% { box-shadow: 0 0 0 16px var(--face); opacity: 0; } }
@keyframes sb-hole { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(0.6); } }
@keyframes sb-bob { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-4px); } }
@keyframes sb-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes sb-shake { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } }
@keyframes sb-win {
  0% { transform: scale(1); }
  40% { transform: scale(1.18) rotate(-2deg); box-shadow: 0 4px 0 var(--edge), var(--shadow-win); }
  100% { transform: scale(1.06); box-shadow: 0 4px 0 var(--edge), var(--shadow-lift); }
}
@keyframes sb-fade { from { opacity: 0; } }
@keyframes sb-rise { from { opacity: 0; transform: translateY(14px) scale(0.96); } }

@media (max-width: 640px) {
  .sb-game { --gap: 7px; --pad: 12px; border-radius: 20px; }
  .sb-board { border-radius: 14px; }
  .sb-tab { padding: 0 var(--s3); }
  .sb-tools { height: 56px; margin-top: var(--s2); }
  .sb-ghost .g-tools { height: 56px; margin-top: var(--s2); }
  .sb-sub, .sb-ghost .g-sub { margin: var(--s1) 0 var(--s2); height: 32px; }
  .sb-layer { padding: var(--s2); }
  .sb-card { padding: var(--s4); }
  .sb-card-title { margin-bottom: var(--s3); }
  .is-win .sb-card-title { font-size: 24px; }
  .sb-final { width: 56px; height: 56px; font-size: 22px; margin-bottom: var(--s2); }
  .sb-final.is-long { font-size: 17px; }
  .sb-final.is-xlong { font-size: 14px; }
  .sb-stats { margin-bottom: var(--s4); }
  .sb-demo { --cell: 52px; }
  .sb-steps li { font-size: 14px; }
}

.sb-tools[hidden], .sb-game.is-watch .sb-tools:not(.sb-answer-tools) { display: none; }
.sb-tool.is-main { background: var(--accent); color: var(--on-accent); }
@media (hover: hover) { .sb-tool.is-main:hover:not(:disabled) { background: color-mix(in oklab, var(--accent) 88%, var(--ink)); color: var(--on-accent); } }
.sb-tool.is-on { background: var(--accent-soft); color: var(--accent); }
.sb-game.is-watch .sb-sub { height: auto; min-height: 44px; }
.sb-game.is-watch .sb-chip { font-size: 15px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sb-game.is-watch .sb-chip.is-done { color: var(--accent); }
.sb-game.is-watch .sb-tile { cursor: default; }
.sb-stage.has-axes { --axis: 18px; padding: var(--axis) 0 0 var(--axis); }
.sb-axis { position: absolute; display: grid; font: 600 12px/1 var(--f-display); color: var(--ink-3); pointer-events: none; }
.sb-axis span { display: grid; place-items: center; }
.sb-axis-cols { top: 0; left: var(--axis); right: 0; height: var(--axis); grid-template-columns: repeat(var(--n), 1fr); column-gap: var(--gap); padding: 0 var(--gap); }
.sb-axis-rows { top: var(--axis); left: 0; bottom: 0; width: var(--axis); grid-template-rows: repeat(var(--n), 1fr); row-gap: var(--gap); padding: var(--gap) 0; }

.rm { border-radius: 16px; background: var(--accent-soft); padding: var(--s3); text-align: left; }
.rm.is-on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.rm-head { display: flex; align-items: center; gap: var(--s3); }
.rm-badge { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.rm.is-on .rm-badge { background: var(--accent-soft); color: var(--accent); }
.rm-words { flex: 1; min-width: 0; }
.rm-title { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--ink); }
.rm-text { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.rm-cta, .rm-send {
  flex: none; min-height: 40px; padding: 0 var(--s4); border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background-color 0.15s, scale 0.15s var(--ease-out);
}
.rm-cta:active, .rm-send:active { scale: 0.97; }
@media (hover: hover) { .rm-cta:hover, .rm-send:hover { background: var(--accent-hi); border-color: var(--accent-hi); } }
.rm-cta.is-quiet { background: var(--surface); border-color: var(--line); color: var(--ink-2); font-weight: 600; }
@media (hover: hover) { .rm-cta.is-quiet:hover { background: var(--surface); border-color: var(--ink-3); } }
.rm-cta[aria-busy="true"], .rm-send:disabled { opacity: 0.6; cursor: progress; }
.rm-more { margin-top: var(--s3); }
.rm-note { margin: 0 0 var(--s2); font-size: 13px; color: var(--ink-2); text-wrap: pretty; }
.rm-mail { display: flex; gap: var(--s2); }
.rm-mail input { flex: 1; min-width: 0; min-height: 40px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); }
.rm-mail input:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.rm-msg { margin: var(--s2) 0 0; font-size: 13px; color: var(--ink-2); }
.rm-msg:empty { display: none; }

.sb-remind { margin-top: var(--s3); padding: var(--s2) var(--s2) var(--s2) var(--s3); }
.sb-remind .rm-text { display: none; }
.sb-remind .rm-badge { width: 32px; height: 32px; }
.sb-remind .rm-badge .ic { width: 18px; height: 18px; }
.sb-remind .rm-title { font-size: 14px; }
.sb-remind .rm-cta { padding: 0 var(--s3); }
.sb-card { position: relative; }
.sb-close { position: absolute; top: var(--s2); right: var(--s2); display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink-3); cursor: pointer; }
.sb-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) { .sb-close:hover { background: var(--bg); color: var(--ink); } }

.ans-remind {
  container-type: inline-size;
  display: grid; grid-template-columns: 1fr; gap: var(--s4);
  margin: var(--s6) 0; padding: var(--s5); border-radius: 20px;
  background: var(--accent); color: var(--on-accent);
}
.ans-remind .rm { background: none; padding: 0; box-shadow: none; }
.ans-remind .rm-badge { display: none; }
.ans-remind .rm-title { font: 700 22px/1.25 var(--f-word); color: var(--on-accent); }
.ans-remind .rm-text, .ans-remind .rm-note, .ans-remind .rm-msg { color: var(--on-accent); opacity: 0.85; font-size: 15px; }
.ans-remind .rm-head { flex-direction: column; align-items: flex-start; gap: var(--s4); }
.ans-remind .rm-cta, .ans-remind .rm-send { min-height: 48px; padding: 0 var(--s5); border-color: var(--surface); background: var(--surface); color: var(--accent-hi); font-size: 16px; }
@media (hover: hover) { .ans-remind .rm-cta:hover, .ans-remind .rm-send:hover { background: var(--accent-soft); border-color: var(--accent-soft); } }
.ans-remind .rm-cta.is-quiet { background: none; border-color: rgb(255 255 255 / 0.5); color: var(--on-accent); }
.ans-remind .rm-mail { max-width: 480px; }
.ans-remind .rm-mail input { min-height: 48px; border-color: var(--surface); }
.ans-remind .rm-mail input:focus { outline-color: var(--surface); }
.rm-preview {
  display: grid; grid-template-columns: 36px 1fr; column-gap: var(--s3); align-items: center;
  padding: var(--s3) var(--s4); border-radius: 16px; background: var(--surface); color: var(--ink);
  box-shadow: 0 12px 28px -12px rgb(20 10 60 / 0.5);
}
.rm-pv-app { grid-column: 1; grid-row: 1 / span 3; width: 36px; height: 36px; border-radius: 9px; background: var(--accent); position: relative; }
.rm-pv-app::after { content: ""; position: absolute; inset: 8px; background: var(--on-accent); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.rm-pv-title { grid-column: 2; font-weight: 700; font-size: 15px; }
.rm-pv-title::before { content: "Today's Sumbreak hints are up"; }
.rm-preview::before { content: "sumbreak.app · tomorrow"; grid-column: 2; grid-row: 1; font-size: 12px; color: var(--ink-3); }
.rm-pv-body { grid-column: 2; font-size: 14px; color: var(--ink-2); }
.rm-pv-body::before { content: "Start with a small nudge, and stop as soon as you are unstuck."; }
@media (min-width: 761px) {
  .ans-remind { grid-template-columns: 1.15fr 1fr; align-items: center; padding: var(--s6); }
  .ans-remind .rm { grid-column: 1; grid-row: 1; }
  .rm-preview { grid-column: 2; grid-row: 1; transform: rotate(1.5deg); }
  .ans-remind .rm-foot { grid-column: 1 / -1; }
}
.ans-remind .rm-foot { margin: 0; }
.ans-remind .rm-share { color: var(--on-accent); opacity: 0.85; }
.ans-remind .rm-foot .share-menu { color: var(--ink); }

.share-host { position: relative; }
.share-menu {
  position: absolute; left: 0; right: 0; z-index: 3; margin: 0 auto; max-width: 320px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: var(--s2);
  border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-2), 0 0 0 1px var(--line);
  animation: sb-fade 0.15s ease-out;
}
.rm-foot .share-menu { margin: 0; }
.share-item {
  display: flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3);
  border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  text-align: left; text-decoration: none; cursor: pointer;
}
.share-item:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
@media (hover: hover) { .share-item:hover { background: var(--accent-soft); color: var(--ink); } }

/* Tabler Icons, MIT License, tabler.io/icons */
.ic { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic-bell { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5a2 2 0 0 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6'/%3E%3Cpath d='M9 17v1a3 3 0 0 0 6 0v-1'/%3E%3Cpath d='M21 6.727a11.05 11.05 0 0 0 -2.794 -3.727'/%3E%3Cpath d='M3 6.727a11.05 11.05 0 0 1 2.792 -3.727'/%3E%3C/svg%3E"); }
.ic-bell-on { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.5 17h-7.5a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3c.016 .129 .037 .256 .065 .382'/%3E%3Cpath d='M9 17v1a3 3 0 0 0 2.502 2.959'/%3E%3Cpath d='M15 19l2 2l4 -4'/%3E%3C/svg%3E"); }
.ic-linkedin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 11v5'/%3E%3Cpath d='M8 8v.01'/%3E%3Cpath d='M12 16v-5'/%3E%3Cpath d='M16 16v-3a2 2 0 1 0 -4 0'/%3E%3Cpath d='M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10'/%3E%3C/svg%3E"); }
.ic-x { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4l11.733 16h4.267l-11.733 -16l-4.267 0'/%3E%3Cpath d='M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772'/%3E%3C/svg%3E"); }
.ic-reddit { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8c2.648 0 5.028 .826 6.675 2.14a2.5 2.5 0 0 1 2.326 4.36c0 3.59 -4.03 6.5 -9 6.5c-4.875 0 -8.845 -2.8 -9 -6.294l-1 -.206a2.5 2.5 0 0 1 2.326 -4.36c1.646 -1.313 4.026 -2.14 6.674 -2.14l.999 0'/%3E%3Cpath d='M12 8l1 -5l6 1'/%3E%3Cpath d='M18 4a1 1 0 1 0 2 0a1 1 0 1 0 -2 0'/%3E%3Cpath d='M8.5 13a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0' fill='black'/%3E%3Cpath d='M14.5 13a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0' fill='black'/%3E%3Cpath d='M10 17c.667 .333 1.333 .5 2 .5s1.333 -.167 2 -.5'/%3E%3C/svg%3E"); }
.ic-whatsapp { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9'/%3E%3Cpath d='M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1'/%3E%3C/svg%3E"); }
.ic-mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10'/%3E%3Cpath d='M3 7l9 6l9 -6'/%3E%3C/svg%3E"); }
.ic-link { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 15l6 -6'/%3E%3Cpath d='M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464'/%3E%3Cpath d='M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463'/%3E%3C/svg%3E"); }

.stage {
  padding: var(--s6) var(--s5) var(--s7);
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.stage-in { max-width: 540px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.stage-title { font: 700 46px/1.05 var(--f-word); letter-spacing: -0.02em; margin: 0; text-align: center; text-wrap: balance; }
.stage-sub { margin: var(--s2) 0 var(--s5); font-size: 17px; color: var(--ink-2); text-align: center; text-wrap: balance; }
.engage { position: relative; display: flex; align-items: center; justify-content: center; gap: var(--s2); margin-top: var(--s4); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 40px; padding: 0 var(--s3);
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-weight: 600; font-size: 15px; color: var(--ink-2); cursor: pointer; font-variant-numeric: tabular-nums;
}
.chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[data-gf-liked] { color: var(--danger); border-color: var(--danger); }
.chip[data-gf-liked] svg { fill: currentColor; }
.chip [data-gf-like-count]:empty { display: none; }
.chip-msg { position: absolute; left: 50%; top: 100%; translate: -50% 4px; white-space: nowrap; font-size: 14px; color: var(--ink-2); }


.read-col, .block-in { max-width: calc(var(--read) + 2 * var(--s5)); }
.intro { padding: 0 var(--s5) var(--s8); text-align: center; }
.lead { max-width: 60ch; margin: 0 auto; font-size: 20px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.block { padding: 96px 0; }
.block-in > h2 { margin-bottom: var(--s5); }
.block .prose > :last-child { margin-bottom: 0; }
.sec-lead { font-size: 19px; }

.block-how-to-play {
  --ink: var(--night-ink); --ink-2: var(--night-ink-2); --ink-3: var(--night-ink-3);
  --line: var(--night-line); --tray: var(--night-tray); --hole: var(--night-hole);
  background: var(--night); color: var(--ink);
}
.block-linkedin-sumbreak, .block-talk { background: var(--surface); }
.block-tips { background: var(--accent-soft); }

.loop { margin: var(--s6) 0 var(--s7); text-align: center; }
.loop .sb-demo { margin-bottom: var(--s3); box-shadow: inset 0 0 0 1px var(--line); }
.loop .sb-finger::after { background: rgb(255 255 255 / 0.35); border-color: rgb(255 255 255 / 0.8); }
.loop .sb-finger.is-down::after { background: rgb(255 255 255 / 0.55); }
.loop figcaption { font-size: 15px; color: var(--ink-3); }
.prose .rules { list-style: none; padding: 0; margin: 0 0 var(--s6); counter-reset: rule; display: grid; gap: var(--s5); }
.prose .rules li { counter-increment: rule; position: relative; margin: 0; padding-left: 60px; color: var(--ink-2); }
.rules li b { display: block; margin-bottom: 2px; color: var(--ink); font: 600 20px/1.3 var(--f-word); }
.rules li::before {
  content: counter(rule); position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(var(--face-top), var(--face) 60%); color: var(--digit); box-shadow: 0 3px 0 var(--edge);
  font: 800 20px/1 var(--f-display);
}
.rules li:nth-child(1) { --lv: 0; } .rules li:nth-child(2) { --lv: 1; } .rules li:nth-child(3) { --lv: 2; } .rules li:nth-child(4) { --lv: 3; } .rules li:nth-child(5) { --lv: 4; }

.thumb { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; width: 88px; height: 88px; padding: 5px; border-radius: 14px; background: var(--tray); }
.thumb i { border-radius: 3px; background: var(--face); }
.chain i {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  background: linear-gradient(var(--face-top), var(--face) 60%); color: var(--digit); box-shadow: 0 2px 0 var(--edge);
  font: 800 16px/1 var(--f-display); font-style: normal;
}
.chain i::after { content: attr(data-v); }

.modes { display: grid; margin-bottom: var(--s6); border-block: 1px solid var(--line); }
.mode { display: grid; grid-template-columns: 88px 1fr; gap: 0 var(--s5); padding: var(--s6) 0; }
.mode + .mode { border-top: 1px solid var(--line); }
.mode .thumb { grid-row: span 3; }
.prose .mode h3 { margin: 0 0 var(--s2); }
.mode p { margin: 0 0 var(--s4); color: var(--ink-2); }
.btn-play {
  justify-self: start; display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s5);
  border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
  transition: background-color 0.15s, transform 0.15s var(--ease-out);
}
.btn-play::after { content: "→"; }
.btn-play:hover { background: var(--accent-hi); color: var(--on-accent); }
.btn-play:active { transform: scale(0.97); }
.mode + .mode .btn-play { background: var(--surface); color: var(--accent-hi); box-shadow: inset 0 0 0 1px var(--line); }
.mode + .mode .btn-play:hover { box-shadow: inset 0 0 0 1px var(--accent); }

.compare-wrap { overflow-x: auto; margin-top: var(--s5); }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 600 15px/1.3 var(--f-word); color: var(--ink-2); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 24%; }
.compare td:last-child { color: var(--ink); background: var(--accent-soft); }
.compare thead th:last-child { background: var(--accent-soft); color: var(--accent-hi); border-radius: 10px 10px 0 0; }

.block-tips .block-in { max-width: var(--wrap); }
.block-tips h2 { text-align: center; margin-inline: auto; }
.prose .tips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.prose .tips li { margin: 0; padding: var(--s4) var(--s4) var(--s5); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-2); color: var(--ink-2); }
.tip-art { display: grid; place-items: center; min-height: 172px; margin-bottom: var(--s4); padding: var(--s4); border-radius: 12px; background: var(--bg); container-type: inline-size; }
.tip-art .sb-demo { --cell: min(52px, (100cqi - 16px - (var(--cols) - 1) * 8px) / var(--cols)); margin: 0; }
.tips b { display: block; margin-bottom: var(--s1); color: var(--ink); font: 600 20px/1.3 var(--f-word); }

.cta { padding: 96px 0; background: var(--accent); color: var(--on-accent); text-align: center; }
.chain { display: flex; justify-content: center; gap: 6px; margin-bottom: var(--s5); }
.chain i { width: 40px; height: 40px; font-size: 17px; }
.cta-title { margin: 0 0 var(--s2); font: 700 40px/1.1 var(--f-word); letter-spacing: -0.02em; text-wrap: balance; }
.cta-sub { margin: 0 0 var(--s5); color: rgb(255 255 255 / 0.82); text-wrap: balance; }
.cta-go { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s3); }
.cta .btn-play { background: var(--surface); color: var(--accent-hi); }
.cta .btn-play:hover { background: var(--accent-soft); color: var(--accent-hi); }
.cta .btn-play.is-ghost { background: transparent; color: var(--on-accent); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.6); }
.cta .btn-play.is-ghost:hover { background: rgb(255 255 255 / 0.1); }
.cta :focus-visible { outline-color: var(--on-accent); }
.block-how-to-play .btn-play, .band-night .btn-play { background: var(--surface); color: var(--accent-hi); }
.block-how-to-play .btn-play:hover, .band-night .btn-play:hover { background: var(--accent-soft); color: var(--accent-hi); }
.block-how-to-play :focus-visible, .band-night :focus-visible { outline-color: var(--night-ink); }
main:has(.read) + .foot { margin-top: 0; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s4) var(--s6) var(--s4) 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: var(--s1); top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary h3 { font-size: 20px; display: inline; }
.faq details p { margin: 0 0 var(--s4); color: var(--ink-2); max-width: 70ch; }

.talk-form { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.field { display: grid; gap: var(--s1); }
.field-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3);
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
.talk-actions { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.talk-form [data-gf-reply-cancel], .talk-to:empty { display: none; }
.talk-form[data-gf-replying] [data-gf-reply-cancel] { display: inline-flex; }
.talk-msg { font-size: 14px; color: var(--ink-2); }
.talk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
.talk-list[data-gf-empty]::before { content: "No comments yet. Share your time or a tip for today's board."; color: var(--ink-3); }
.talk-list[data-gf-off] { display: none; }
.talk-item { padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.talk-head { margin: 0 0 var(--s1); font-size: 14px; color: var(--ink-3); }
.talk-head b { color: var(--ink); }
.talk-owner { display: none; font-size: 12px; font-weight: 600; color: var(--accent); }
.talk-item[data-gf-owner] > .talk-head .talk-owner { display: inline; }
.talk-text { margin: 0 0 var(--s2); }
.talk-reply { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; }
.talk-replies { list-style: none; padding: 0 0 0 var(--s5); margin: var(--s3) 0 0; display: grid; gap: var(--s3); }

@media (min-width: 1024px) {
  .read { font-size: 18px; }
}
@media (max-width: 960px) {
  .prose .tips { grid-template-columns: 1fr; max-width: var(--read); margin-inline: auto; }
}
@media (max-width: 640px) {
  .stage { padding: var(--s3) var(--s3) var(--s6); }
  .stage-title { font-size: 28px; }
  .stage-sub { font-size: 14px; margin: var(--s1) 0 var(--s3); }
  .intro { padding: 0 var(--s4) var(--s7); }
  .lead { font-size: 17px; }
  .block, .cta { padding: 64px 0; }
  .sec-lead { font-size: 17px; }
  .prose .rules li { padding-left: 52px; }
  .rules li::before { width: 36px; height: 36px; font-size: 17px; }
  .rules li b, .tips b { font-size: 18px; }
  .tip-art { min-height: 148px; }
  .mode { grid-template-columns: 64px 1fr; gap: 0 var(--s4); }
  .thumb { width: 64px; height: 64px; gap: 2px; padding: 4px; border-radius: 11px; }
  .chain { gap: 4px; }
  .chain i { width: 34px; height: 34px; font-size: 14px; }
  .chain i:nth-child(n+7) { display: none; }
  .cta-title { font-size: 28px; }
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: var(--s2); }
}

.band-night {
  --ink: var(--night-ink); --ink-2: var(--night-ink-2); --ink-3: var(--night-ink-3);
  --line: var(--night-line); --tray: var(--night-tray); --hole: var(--night-hole);
  background: var(--night); color: var(--ink);
}
.band-surface { background: var(--surface); }
.band-soft { background: var(--accent-soft); }

.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin: 0 0 var(--s6); }
.size {
  display: grid; justify-items: center; align-content: start; gap: var(--s1); padding: var(--s5) var(--s2) var(--s4);
  border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  color: var(--ink-2); text-decoration: none; text-align: center;
  transition: background-color 0.15s, translate 0.2s var(--ease-out);
}
.size:hover { background: var(--accent-soft); color: var(--ink-2); translate: 0 -2px; }
.size:active { translate: 0 0; }
.size .ar-thumb { width: 96px; height: 96px; gap: 3px; padding: 5px; border-radius: 14px; margin-bottom: var(--s3); }
.size b { font: 800 26px/1 var(--f-display); color: var(--ink); margin-bottom: var(--s1); }
.size span { font-size: 14px; line-height: 1.45; }
.size .size-best { margin-top: var(--s1); padding: 2px var(--s2); border-radius: 999px; background: var(--accent-soft); color: var(--accent-hi); font-weight: 600; font-size: 13px; }
.size:hover .size-best { background: var(--surface); }

.solo { margin: 0 0 var(--s6); display: grid; justify-items: center; gap: var(--s3); text-align: center; }
.solo .sb-demo { --cell: 72px; margin: 0; padding: 10px; gap: 10px; }
.solo figcaption { max-width: 40ch; font-size: 15px; line-height: 1.5; color: var(--ink-3); text-wrap: balance; }
.band-surface .solo .sb-demo { box-shadow: var(--shadow-2); }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); margin: var(--s6) 0; }
.pair:last-child { margin-bottom: 0; }
.pair figure { margin: 0; display: grid; justify-items: center; align-content: start; gap: var(--s3); text-align: center; container-type: inline-size; }
.pair .sb-demo { --cell: min(64px, (100cqi - 16px - (var(--cols) - 1) * 8px) / var(--cols)); margin: 0; }
.pair figcaption { max-width: 28ch; font-size: 15px; line-height: 1.5; color: var(--ink-3); text-wrap: balance; }

.li-today {
  width: 100%; display: grid; justify-items: center; gap: var(--s3); padding: var(--s5) var(--s5) var(--s5);
  border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-2); text-align: center;
}
.li-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.li-tag { font: 600 15px/1.2 var(--f-word); color: var(--ink-2); }
.li-num { padding: var(--s1) var(--s3); border-radius: 999px; background: var(--accent-soft); color: var(--accent-hi); font: 800 15px/1.2 var(--f-display); }
.li-num:empty { display: none; }
.li-label { margin: var(--s3) 0 0; font: 600 18px/1.2 var(--f-word); color: var(--ink); }
.li-clock { margin: 0; display: flex; gap: var(--s3); }
.li-seg { display: grid; justify-items: center; gap: var(--s2); }
.li-seg b {
  --lv: 4; display: grid; place-items: center; width: 92px; height: 92px; border-radius: var(--r-tile);
  font: 800 44px/1 var(--f-display); font-variant-numeric: tabular-nums;
  background: linear-gradient(var(--face-top), var(--face) 60%); color: var(--digit); box-shadow: 0 4px 0 var(--edge);
}
.li-seg:nth-child(2) b { --lv: 5; }
.li-seg:nth-child(3) b { --lv: 6; }
.li-seg i { font-style: normal; font-size: 13px; color: var(--ink-3); }
.li-when { margin: 0; font-size: 15px; color: var(--ink-2); text-wrap: balance; }
.li-go {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); width: 100%; min-height: 52px; margin-top: var(--s2);
  border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 17px/1 var(--f-word); text-decoration: none;
  transition: background-color 0.15s, scale 0.15s var(--ease-out);
}
.li-go:hover { background: var(--accent-hi); color: var(--on-accent); }
.li-go:active { scale: 0.98; }
.li-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.li-today .today-card { margin-top: 0; text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.li-solver { font-size: 15px; font-weight: 600; }

.prose .week { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin: var(--s5) 0 var(--s4); }
.prose .week li { margin: 0; }
.prose .week a {
  height: 100%; display: grid; justify-items: center; align-content: start; gap: 2px; padding: var(--s4) var(--s3);
  border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); text-align: center; text-decoration: none;
  font-size: 14px; line-height: 1.4; color: var(--ink-2); transition: box-shadow 0.15s, translate 0.15s var(--ease-out);
}
.prose .week a:hover { box-shadow: inset 0 0 0 2px var(--accent); translate: 0 -2px; }
.week .ar-thumb { width: 96px; height: 96px; gap: 3px; padding: 5px; border-radius: 14px; margin-bottom: var(--s2); }
.week b { font: 700 16px/1.3 var(--f-word); color: var(--ink); }
.week-more { margin: 0; font-weight: 600; }
.prose .clocks { list-style: none; padding: 0; margin: var(--s5) 0 var(--s6); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
.prose .clocks li {
  margin: 0; padding: var(--s3) var(--s4); border-radius: var(--r-tile); font: 800 22px/1.2 var(--f-display);
  background: linear-gradient(var(--face-top), var(--face) 60%); color: var(--digit); box-shadow: 0 4px 0 var(--edge);
}
.clocks b { display: block; margin-bottom: 2px; font: 600 14px/1.3 var(--f-word); color: var(--digit); opacity: 0.8; }

.block-tips .sec-lead { max-width: var(--read); margin: 0 auto var(--s6); text-align: center; text-wrap: balance; }

.sb-demo.is-still .sb-cell.is-from { outline: 3px solid var(--accent); outline-offset: 0; }
.sb-demo.is-still .sb-cell.is-to { outline: 3px dashed var(--accent); outline-offset: 0; }

.quiz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin: var(--s5) 0 var(--s3); }
.q { margin: 0; display: grid; align-content: start; justify-items: center; gap: var(--s3); padding: var(--s5) var(--s4); border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.q .sb-demo { --cell: 52px; margin: 0 0 var(--s2); }
.q figcaption { display: grid; gap: var(--s2); justify-items: center; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.q figcaption b { font: 600 17px/1.3 var(--f-word); color: var(--ink); text-wrap: balance; }
.q-go { display: flex; gap: var(--s2); }
.q-go button { min-width: 72px; min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 600 15px/1 var(--f-word); color: var(--ink); cursor: pointer; transition: background-color 0.15s; }
.q-go button:hover { background: var(--accent-soft); }
.q-go button:active { scale: 0.96; }
.q-go button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.quiz.is-live .q:not(.is-done) .q-why { display: none; }
.q.is-done .q-go button { cursor: default; }
.q.is-done .q-go button:not([aria-pressed="true"]) { opacity: 0.5; }
.q.is-wrong .q-go button.is-answer { opacity: 1; box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent-hi); }
.q-why { max-width: 30ch; text-wrap: pretty; overflow-wrap: anywhere; }
.q.is-right { box-shadow: inset 0 0 0 2px var(--accent); }
.q.is-wrong { box-shadow: inset 0 0 0 2px var(--danger); }
.q.is-wrong .q-go button[aria-pressed="true"] { background: var(--danger); border-color: var(--danger); }
.quiz-score { min-height: 1.5em; margin: 0 0 var(--s5); text-align: center; font-weight: 600; color: var(--accent-hi); }

.share-msg {
  max-width: 340px; margin: 0 auto var(--s6); padding: var(--s4) var(--s5); border-radius: 20px 20px 20px 6px;
  background: var(--surface); box-shadow: var(--shadow-2); font-size: 15px; line-height: 1.5; color: var(--ink); white-space: pre-line;
}
.share-msg span { display: block; margin-top: var(--s2); color: var(--accent); font-weight: 600; word-break: break-all; }

.sv { width: 100%; }
.sv-edit[hidden], .sv-out[hidden], .sv-actions [hidden] { display: none; }
.sv-edit .sb-head { justify-content: center; margin-bottom: var(--s3); }
.sv-edit .sb-stage, .sv-pal { max-width: 400px; margin-inline: auto; }
.sv-cell { padding: 0; border: 0; cursor: pointer; font: inherit; }
.sv-cell .sb-tile { cursor: pointer; box-shadow: 0 3px 0 var(--edge); }
.sv-cell.is-pick { outline: 3px solid var(--accent); outline-offset: 2px; }
.sv-cell.is-pick.is-empty { background: var(--accent-soft); }
.sv-cell:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sv-bad { display: grid; place-items: center; width: 100%; height: 100%; border-radius: var(--r-tile); background: var(--surface); box-shadow: inset 0 0 0 3px var(--danger); color: var(--danger); font: 800 calc(100cqi / var(--n) * 0.3) / 1 var(--f-display); }
.sv-pal { display: grid; grid-template-columns: repeat(var(--pal-cols, 6), minmax(0, 1fr)); gap: var(--s2); margin-block: var(--s4); }
.sv-pick { display: grid; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; container-type: inline-size; }
.sv-pick .sb-tile { --n: 1; font-size: 38cqi; border-radius: 10px; cursor: pointer; box-shadow: 0 3px 0 var(--edge); }
.sv-pick .sb-tile.is-long { font-size: 30cqi; }
.sv-pick:active { scale: 0.94; }
.sv-erase { display: grid; place-items: center; border-radius: 10px; background: var(--hole); box-shadow: inset 0 2px 3px rgb(34 26 58 / 0.1); }
.sv-erase::after { content: "Empty"; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.sv-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.sv-msg { min-height: 1.6em; margin: var(--s3) auto 0; max-width: 46ch; text-align: center; font-weight: 600; color: var(--ink-2); text-wrap: balance; }
.sv-out .ans-game { margin: 0 auto; }
.sv-after { display: flex; justify-content: center; margin-top: var(--s4); }
.sv-all { margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); text-align: left; }
.sv-all summary { cursor: pointer; font-weight: 600; color: var(--accent-hi); }
.sv-all .ans-steps { margin: var(--s3) 0 0; }

@media (max-width: 960px) {
  .quiz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .li-today { padding: var(--s4); border-radius: 20px; }
  .li-seg b { width: 76px; height: 76px; font-size: 36px; }
  .prose .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week .ar-thumb { width: 84px; height: 84px; }
  .prose .clocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz { gap: var(--s3); }
  .q { padding: var(--s4) var(--s2); min-width: 0; }
  .q .sb-demo { --cell: 36px; gap: 6px; padding: 6px; }
  .q .sb-demo .sb-tile { border-radius: 9px; }
  .q figcaption { font-size: 14px; }
  .q figcaption b { font-size: 16px; }
  .q-go button { min-width: 60px; padding: 0 var(--s3); }
  .sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .size .ar-thumb { width: 80px; height: 80px; }
  .solo .sb-demo { --cell: 60px; padding: 8px; gap: 8px; }
  .solo figcaption { font-size: 14px; }
  .sv-edit { --pad: 14px; }
  .pair { gap: var(--s3); }
  .pair .sb-demo { --cell: min(52px, (100cqi - 16px - (var(--cols) - 1) * 8px) / var(--cols)); }
  .pair figcaption { font-size: 14px; }
  .sv-edit .sb-stage, .sv-pal { max-width: 290px; }
  .sv-pal { gap: 6px; margin-block: var(--s3); }
}

.ans { padding-bottom: var(--s8); }
.ans:has(> .cta) { padding-bottom: 0; }
.ans:has(> .cta) .ans-body { padding-bottom: var(--s7); }
.ans .h1-sep { font-size: 0; }
.ans .h1-date { display: block; margin-top: 2px; font: 600 19px/1.25 var(--f-word); letter-spacing: -0.01em; color: var(--ink-2); }
.ans-stage { padding-top: var(--s4); padding-bottom: var(--s6); }
.ans-stage .stage-in { max-width: 760px; }
.ans-stage .stage-title { font-size: 40px; }
.ans-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;
  margin: 6px 0 var(--s2); font-size: 15px; line-height: 1.35; color: var(--ink-2);
}
.ans-stamp { font-size: 14px; color: var(--ink-3); }
.ans-diff, .ar-diff {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  font: 700 12px/1.35 var(--f-body); letter-spacing: 0.02em; text-transform: uppercase;
}
.ans-diff.is-easy, .ar-meta .ar-diff.is-easy { background: var(--easy-bg); color: var(--easy-ink); }
.ans-diff.is-medium, .ar-meta .ar-diff.is-medium { background: var(--accent-soft); color: var(--accent-hi); }
.ans-diff.is-hard, .ar-meta .ar-diff.is-hard { background: var(--hard-bg); color: var(--hard-ink); }
.ans-switch {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px;
  margin: 0 0 var(--s3);
}
.ans-switch::before {
  content: "Recent"; margin-right: 2px;
  font: 600 12px/1 var(--f-word); letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-3);
}
.ans-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 30px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font: 700 14px/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink-2); text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.ans-switch a:hover { border-color: var(--accent); color: var(--accent-hi); }
.ans-switch a[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-hi); }
.ans-game { max-width: 484px; }
.ans-solver { margin: var(--s4) 0 0; font-size: 15px; color: var(--ink-2); text-align: center; text-wrap: balance; }
.ans-solver a { color: var(--accent); font-weight: 600; }
.ans-lead { margin: var(--s6) 0 var(--s7); font-size: 19px; line-height: 1.6; color: var(--ink-2); text-align: center; text-wrap: pretty; }
.ans-verify {
  margin: calc(-1 * var(--s4)) 0 var(--s6); padding: var(--s3) var(--s4);
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  font-size: 15px; line-height: 1.5; color: var(--ink-2); text-align: center; text-wrap: pretty;
}

.ans-block { margin: 0 0 var(--s7); }
.ans-block h2, .ans-about h2 { margin: 0 0 var(--s4); font: 700 30px/1.15 var(--f-word); letter-spacing: -0.01em; }
.ans-block > p { color: var(--ink-2); }
.ans-block a, .ans-more a, .ans-upnext a { color: var(--accent); }

.ans-hint { margin: 0 0 var(--s2); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.ans-hint summary, .ans-solution summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s3);
  min-height: 56px; padding: var(--s2) var(--s7) var(--s2) var(--s4); position: relative;
  font: 600 18px/1.3 var(--f-word); color: var(--ink);
}
.ans-hint summary::-webkit-details-marker, .ans-solution summary::-webkit-details-marker { display: none; }
.ans-hint-n {
  flex: none;
  display: inline-grid; place-items: center; min-width: 64px; height: 30px; padding: 0 var(--s2); border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font: 700 13px/1 var(--f-body); letter-spacing: 0.02em; text-transform: uppercase;
}
.ans-hint summary::after, .ans-solution summary::after, .ans-final summary::after {
  content: ""; position: absolute; right: var(--s4); top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s var(--ease-out);
}
.ans-hint[open] summary::after, .ans-solution[open] summary::after, .ans-final[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.ans-hint p { margin: 0; padding: 0 var(--s4) var(--s4); color: var(--ink-2); }
.ans-hint[open] { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--accent-soft); }

.ans-final { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ans-final summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: var(--s2) var(--s7) var(--s2) var(--s5); position: relative;
  border-radius: 15px; background: var(--accent); color: var(--on-accent);
  font: 600 18px/1.3 var(--f-word); transition: background-color 0.15s;
}
.ans-final summary:hover { background: var(--accent-hi); }
.ans-final summary::-webkit-details-marker { display: none; }
.ans-final summary::after { border-color: var(--on-accent); }
.ans-final[open] summary { border-radius: 15px 15px 0 0; }
.ans-final-body { padding: var(--s5); display: grid; gap: var(--s3); }
.ans-final-main { display: flex; align-items: center; gap: var(--s4); }
.ans-final-tile {
  flex: none; display: grid; place-items: center; min-width: 68px; height: 68px; padding: 0 var(--s3);
  border-radius: var(--r-tile); background: var(--accent-soft); color: var(--accent-hi);
  box-shadow: 0 3px 0 var(--line); font: 800 28px/1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.ans-final-main p { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.5; }
.ans-final-facts { margin: 0; padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }

.ans-handoff {
  margin-top: var(--s4); padding: var(--s4) var(--s5); border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4);
}
.ans-handoff p { margin: 0; flex: 1 1 280px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.ans-handoff .btn-play { color: var(--on-accent); flex: none; }
.ans-handoff .btn-play:hover { color: var(--on-accent); }
.ans-week-band .ans-nav { margin-top: var(--s4); }

.ans-solution { border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-2); }
.ans-solution summary { background: var(--accent); color: var(--on-accent); border-radius: 16px; min-height: 60px; justify-content: center; }
.ans-solution summary::after { border-color: var(--on-accent); }
.ans-solution[open] summary { border-radius: 16px 16px 0 0; }
.ans-phase { padding: var(--s5) var(--s5) var(--s4); border-bottom: 1px solid var(--line); }
.ans-phase h3 { margin: 0; font: 700 21px/1.25 var(--f-word); color: var(--ink); }
.ans-moves { margin: var(--s1) 0 var(--s3); font-size: 14px; font-weight: 600; color: var(--ink-3); }
.ans-table { width: 100%; margin: 0 0 var(--s4); border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.ans-table th:nth-child(1) { width: 11%; } .ans-table th:nth-child(2) { width: 14%; } .ans-table th:nth-child(3) { width: 11%; }
.ans-table th:nth-child(4) { width: 19%; } .ans-table th:nth-child(6) { width: 14%; }
.ans-table th { padding: 0 var(--s1) var(--s1); text-align: center; font: 600 12px/1.2 var(--f-body); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); }
.ans-table td { padding: 6px var(--s1); border-top: 1px solid var(--line); text-align: center; color: var(--ink); font: 700 16px/1 var(--f-display); }
.ans-table th:first-child, .ans-table td:first-child { padding-left: 0; color: var(--ink-3); }
.ans-table td.ans-dir { text-align: left; font: 600 15px/1.2 var(--f-body); color: var(--ink-2); }
.ans-table th:nth-child(5), .ans-table td.ans-dir { text-align: left; padding-left: var(--s2); }
.ans-dir::before { display: inline-block; width: 1.2em; margin-right: 4px; text-align: center; font: 800 17px/1 var(--f-body); color: var(--accent); }
.ans-dir.is-left::before { content: "←"; }
.ans-dir.is-right::before { content: "→"; }
.ans-dir.is-up::before { content: "↑"; }
.ans-dir.is-down::before { content: "↓"; }
.ans-chip {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 5px; border-radius: 8px;
  background: linear-gradient(var(--face-top), var(--face) 60%); color: var(--digit); box-shadow: 0 2px 0 var(--edge);
  font: 800 15px/1 var(--f-display); letter-spacing: -0.03em;
}
.ans-chip.is-x2 { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent), 0 2px 0 var(--accent-soft); }
@media (max-width: 400px) {
  .ans-table th { letter-spacing: 0; }
  .ans-table td { padding: 5px 2px; }
  .ans-chip { min-width: 28px; height: 28px; font-size: 14px; }
}
.ans-ways { margin: 0; padding: var(--s4) var(--s5) var(--s5); color: var(--ink-2); }

.sb-mini {
  --gap: 4px; container-type: inline-size;
  display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: var(--gap);
  width: 168px; padding: var(--gap); margin-left: 44px; border-radius: 12px; background: var(--tray);
}
.sb-mini .sb-cell { aspect-ratio: 1; border-radius: 7px; }
.sb-mini .sb-tile { border-radius: 7px; cursor: default; translate: 0 -1px; box-shadow: 0 2px 0 var(--edge); font-size: calc(100cqi / var(--n) * 0.36); }
.sb-mini .sb-tile.is-long { font-size: calc(100cqi / var(--n) * 0.28); }
.sb-mini .sb-tile.is-xlong { font-size: calc(100cqi / var(--n) * 0.22); }
.sb-mini .sb-tile.is-x2 { border-width: 2px; animation: none; font-size: calc(100cqi / var(--n) * 0.3); }

.ans-openings { margin: 0 0 var(--s4); padding-left: var(--s5); color: var(--ink-2); }
.ans-openings li { margin: var(--s1) 0; }

.ans-feedback:empty { display: none; }
.ans-feedback { margin: var(--s7) 0 0; padding: var(--s4) var(--s5); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.fb-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.fb-q { margin: 0; flex: 1; font: 600 18px/1.3 var(--f-word); color: var(--ink); }
.fb-btn {
  min-height: 40px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer;
}
.fb-btn:hover { border-color: var(--ink-3); }
.fb-btn.is-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fb-more { display: grid; gap: var(--s2); margin-top: var(--s3); }
.fb-more textarea { width: 100%; min-height: 88px; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r); font: inherit; color: var(--ink); background: var(--bg); resize: vertical; }
.fb-more textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.fb-more .fb-btn { justify-self: start; }
.fb-msg { margin: 0; color: var(--ink-2); }

.ans-faq { margin-top: var(--s7); }
.ans-nav { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); }
.ans-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4);
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none;
}
.ans-nav a:hover { border-color: var(--ink-3); }
.ans-nav .ans-prev::before { content: "←"; margin-right: var(--s2); }
.ans-nav .ans-next::after { content: "→"; margin-left: var(--s2); }
.ans-more, .ans-upnext { margin-top: var(--s4); color: var(--ink-2); }
.ans-week { margin-top: 0; }
.ans-about { margin-top: var(--s7); color: var(--ink-2); }
.ans-about h2 { color: var(--ink); }
.ans-about a { color: var(--accent); }

.ar-index { padding-bottom: var(--s7); }
.ar-month { margin: var(--s6) 0 var(--s3); font: 700 22px/1.2 var(--f-word); color: var(--ink); }
.ar-month:first-child { margin-top: 0; }
.ar-list { list-style: none; margin: 0 0 var(--s6); padding: 0; display: grid; gap: var(--s2); }
.ar-row {
  display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; align-items: center; gap: var(--s3) var(--s4);
  padding: var(--s3) var(--s4); border-radius: 16px; background: var(--surface);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none;
  transition: box-shadow 0.15s, translate 0.15s var(--ease-out);
}
@media (hover: hover) { .ar-row:hover { translate: 0 -2px; box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); } }
.ar-thumb { --n: 3; display: grid; grid-template: repeat(var(--n), minmax(0, 1fr)) / repeat(var(--n), minmax(0, 1fr)); gap: 2px; width: 56px; height: 56px; padding: 3px; border-radius: 10px; background: var(--tray); }
.ar-thumb i { border-radius: 3px; background: linear-gradient(var(--face-top), var(--face) 60%); }
.ar-thumb i.is-empty { background: var(--hole); box-shadow: inset 0 1px 2px rgb(34 26 58 / 0.22); }
.ar-thumb i.is-x2 {
  box-sizing: border-box; border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--accent-soft)) padding-box,
    conic-gradient(oklch(0.72 0.15 290), oklch(0.72 0.15 218), oklch(0.75 0.15 146), oklch(0.8 0.15 74), oklch(0.7 0.16 2), oklch(0.72 0.15 290)) border-box;
}
.ar-thumb i { --l: calc(var(--tile-l0) - var(--lv, 0) * var(--tile-l-step)); --c: calc(var(--tile-c0) + var(--lv, 0) * var(--tile-c-step)); --h: calc(var(--tile-h0) - var(--lv, 0) * var(--tile-step)); --face: oklch(var(--l) var(--c) var(--h)); --face-top: oklch(calc(var(--l) + 0.035) calc(var(--c) - 0.01) var(--h)); }
.ar-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ar-main b { font: 700 18px/1.2 var(--f-word); }
.ar-date { font-size: 14px; color: var(--ink-3); }
.ar-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.ar-meta span { padding: 3px 9px; border-radius: 999px; background: var(--well); white-space: nowrap; }
.ar-meta .ar-diff { padding: 3px 9px; font-size: 12px; }
.ar-solved {
  display: inline-block; margin-left: var(--s2); padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
  background: var(--accent-soft); color: var(--accent); font: 700 12px/1.4 var(--f-body); letter-spacing: 0.02em; text-transform: uppercase;
}

@media (max-width: 640px) {
  .ans-stage { padding: var(--s2) var(--s3) var(--s5); }
  .ans .stage-title { font-size: 23px; line-height: 1.08; }
  .ans .h1-date { margin-top: 1px; font-size: 15px; }
  .ans-stage .stage-sub { margin: 4px 0 6px; font-size: 13px; }
  .ans-meta { gap: 2px 8px; font-size: 12.5px; line-height: 1.3; }
  .ans-stamp { font-size: 12px; }
  .ans-switch { gap: 5px; margin: 0 0 8px; }
  .ans-switch a { min-width: 40px; height: 28px; padding: 0 9px; font-size: 13px; }
  .ans-game { --pad: 12px; }
  .ans-game.is-watch .sb-sub { min-height: 28px; margin: 2px 0 6px; }
  .ans-game .sb-tools { height: 52px; gap: 4px; margin-top: 6px; }
  .ans-game .sb-tool { padding: 4px 2px; font-size: 12px; white-space: nowrap; }
  .ans-game .sb-tool svg { width: 20px; height: 20px; }
  .ans-lead { margin-top: var(--s5); font-size: 17px; }
  .ans-verify { margin: calc(-1 * var(--s3)) 0 var(--s5); padding: var(--s3); font-size: 14px; }
  .ans-block h2, .ans-about h2 { font-size: 24px; }
  .ans-phase { padding: var(--s4) var(--s3) var(--s3); }
  .ans-final-body, .ans-handoff { padding: var(--s4); }
  .ans-final-tile { min-width: 56px; height: 56px; font-size: 22px; }
  .sb-mini { margin-left: 0; }
  .ar-row { grid-template-columns: auto 1fr; gap: var(--s2) var(--s3); padding: var(--s3); }
  .ar-meta { grid-column: 1 / -1; justify-content: flex-start; gap: 6px; font-size: 12.5px; }
  .ar-meta span { padding: 3px 8px; }
  .ar-main b { font-size: 17px; }
}
@media (max-width: 640px) and (max-height: 720px) {
  .ans-game { max-width: 324px; }
}

.ans-steps { margin: 0 var(--s4) var(--s4); padding: 0; list-style: none; counter-reset: move; display: grid; gap: var(--s1); }
.ans-steps li { counter-increment: move; position: relative; margin: 0; padding: var(--s2) 0 var(--s2) 48px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ans-steps li:last-child { border-bottom: 0; }
.ans-steps li::before {
  content: counter(move); position: absolute; left: 0; top: var(--s2);
  width: 32px; height: 28px; display: grid; place-items: center; border-radius: 8px;
  background: var(--well); color: var(--ink); font: 800 14px/1 var(--f-display);
}

.today-card {
  display: flex; align-items: center; gap: var(--s3); width: 100%; margin-top: var(--s5); padding: var(--s3) var(--s4);
  border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  color: var(--ink); text-decoration: none; transition: box-shadow 0.15s, translate 0.15s var(--ease-out);
}
@media (hover: hover) { .today-card:hover { translate: 0 -2px; box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); } }
.today-card .ar-thumb { width: 48px; height: 48px; flex: none; }
.today-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.today-text b { font: 700 17px/1.25 var(--f-word); }
.today-text .today-kicker { font-size: 13px; font-weight: 600; color: var(--accent); }
.today-text span { font-size: 14px; color: var(--ink-3); }
.today-card svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
