@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-sans-sc-400.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/noto-sans-sc-500.woff2") format("woff2");
}

:root {
  --paper: #f4f0e7;
  --ink: #1a1714;
  --quiet: #5c564c;
  --line: #d4ccbe;
  --alarm: #f4212e;
  --orange: #ff8200;
  --blue: #1d4ed8;
  --sans: "Sora", "Noto Sans SC", "PingFang SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
  --measure: 40rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
::selection { background: #f0d2cf; color: var(--ink); }

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 2;
}
.skip:focus { transform: none; }

.bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.word {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.home-link {
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.home-link:hover, .word:hover { text-decoration: underline; text-underline-offset: 0.2em; }

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px 72px;
}

.kicker {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}
.hero { padding-top: 48px; }
.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 48px;
  align-items: end;
}
h1 {
  margin: 0;
  font-size: clamp(64px, 9vw, 112px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.specimen {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
}
.specimen li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 72px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--quiet);
}
.spec {
  width: 64px;
  height: 64px;
  position: relative;
  color: var(--ink);
}
.spec::before, .spec::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.spec.plus::before { left: 30px; top: 8px; width: 4px; height: 48px; }
.spec.plus::after { left: 8px; top: 30px; width: 48px; height: 4px; }
.spec.dot::before {
  left: 26px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.spec.minus { color: var(--alarm); }
.spec.minus::before { left: 8px; top: 30px; width: 48px; height: 4px; }

.lede {
  max-width: var(--measure);
  margin: 36px 0 0;
  font-size: 20px;
  line-height: 1.6;
}
.lede a { text-underline-offset: 0.18em; }
.vee { font-weight: 500; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.cta.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.cta:hover { text-decoration: underline; text-underline-offset: 0.22em; }
.repos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--quiet);
}
.repos a { overflow-wrap: anywhere; }

.plate { margin: 42px 0 0; }
.plate img { width: 100%; background: var(--paper); }
.plate figcaption, .note {
  margin: 10px 0 0;
  max-width: 46rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--quiet);
}

.block { margin-top: 88px; }
h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
h3 {
  margin: 28px 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prose {
  max-width: var(--measure);
  margin: 18px 0 0;
}
.prose code, .note code, .bounds code { font-family: var(--sans); font-size: 0.92em; }

.rules {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  margin-top: 22px;
  font-size: 16px;
}
.radios { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.rules label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.rules input { width: 16px; height: 16px; accent-color: var(--ink); }

.stage {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.seat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.words {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  color: var(--quiet);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-name {
  margin: 0;
  color: var(--quiet);
  font-size: 14px;
}
.cluster { display: flex; align-items: center; gap: 2px; }
.vee.big {
  width: 44px;
  text-align: center;
  font-size: 20px;
  color: var(--quiet);
}
.stage[data-platform="x"] .seat-wb { display: none; }
.stage[data-platform="weibo"] .seat-x { display: none; }

.glyph {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}
.glyph:disabled { cursor: progress; }
.stage[data-platform="x"] .glyph[data-phase="idle"]:hover,
.stage[data-platform="x"] .glyph[data-phase="idle"]:focus-visible {
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
.stage[data-platform="weibo"] .glyph[data-phase="idle"]:hover,
.stage[data-platform="weibo"] .glyph[data-phase="idle"]:focus-visible {
  background: var(--orange);
  color: var(--ink);
  box-shadow: none;
}
.mark { width: 16px; height: 16px; position: relative; display: none; }
.mark::before, .mark::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.glyph[data-phase="idle"] .plus,
.glyph[data-phase="busy"] .busy,
.glyph[data-phase="following"] .dot,
.glyph[data-phase="confirm"] .minus { display: block; }
.plus::before { left: 7px; top: 1px; width: 2px; height: 14px; }
.plus::after { left: 1px; top: 7px; width: 14px; height: 2px; }
.dot::before {
  left: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%;
}
.minus { color: var(--alarm); }
.minus::before { left: 1px; top: 6px; width: 14px; height: 3px; }
.busy::before {
  left: 1px;
  top: 1px;
  width: 12px;
  height: 12px;
  background: transparent;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.glyph[data-phase="confirm"] .minus { color: var(--alarm); }
@media (hover: hover) {
  .glyph[data-phase="following"]:hover .dot,
  .glyph[data-phase="following"]:focus-visible .dot { display: none; }
  .glyph[data-phase="following"]:hover .minus,
  .glyph[data-phase="following"]:focus-visible .minus { display: block; }
}
@media (hover: none) {
  .glyph[data-phase="following"] .dot { display: none; }
  .glyph[data-phase="following"] .minus { display: block; }
}
.glyph[data-phase="confirm"] { animation: breathe 1.6s ease-in-out infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.readout {
  margin: 16px 0 0;
  max-width: var(--measure);
  min-height: 3.3em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 48px;
  margin-top: 8px;
}
.plain { margin: 0; padding-left: 1.1em; }
.plain li { margin: 0.35em 0; }
.plain li::marker { color: var(--quiet); }

.steps { max-width: 42rem; padding-left: 1.3em; }
.steps li { margin: 0.45em 0; }
.steps a, .bounds a, .prose a { overflow-wrap: anywhere; }

.config {
  max-width: 100%;
  margin: 18px 0 0;
  padding: 16px 18px;
  overflow-x: auto;
  background: #ebe6dc;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}
.config code { font-family: inherit; }

.bounds { margin: 22px 0 0; }
.bounds div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 8px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.bounds div:last-child { border-bottom: 1px solid var(--line); }
.bounds dt { margin: 0; font-weight: 500; }
.bounds dd { margin: 0; }

.colophon {
  margin-top: 72px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--quiet);
}
.colo-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.colo-links a { color: var(--ink); }

@media (max-width: 800px) {
  .hero-head { grid-template-columns: 1fr; align-items: start; }
  .specimen { padding-bottom: 0; }
  .split { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  .bar, main { padding-left: 16px; padding-right: 16px; }
  .bar { padding-top: 16px; }
  .hero { padding-top: 32px; }
  h1 { font-size: 56px; }
  .lede { font-size: 18px; }
  .actions { display: grid; }
  .cta { width: 100%; }
  .block { margin-top: 64px; }
  .bounds div { grid-template-columns: 1fr; gap: 4px; }
  .words { letter-spacing: 0.04em; }
}
@media (prefers-reduced-motion: reduce) {
  .glyph[data-phase="confirm"] { animation: none; }
  .busy::before { animation: none; }
}
