/* readinkpot. One dark "forest" ground, one warm accent (glow), Newsreader for words, IBM Plex Mono for labels.
   Square corners everywhere except round icon buttons and switches. */

:root {
  --surface: #1D211F;
  --raised: #232724;
  --deep: #151816;
  --ink: #F3EDE3;
  --ink-soft: #D9D3CA;
  --muted: #A9A4A6;
  --faint: #7D797B;
  --line: #3A3D38;
  --line-soft: #2E322F;
  --glow: #D9A35B;
  --on-glow: #1D211F;
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --side: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { background: var(--surface); color-scheme: dark; }
/* Browsers paint autofilled fields white or pale blue; keep them on the page's own ground and ink. */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  box-shadow: 0 0 0 1000px var(--surface) inset;
  transition: background-color 9999s ease-out 0s;
}
.key-form__input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--raised) inset; box-shadow: 0 0 0 1000px var(--raised) inset; }
input:autofill { background: var(--surface); color: var(--ink); }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:hover { opacity: 0.85; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--side); padding-right: var(--side); }
main { flex: 1; }

/* ---------- Type helpers ---------- */
.label { font-family: var(--mono); font-size: 11px; line-height: 16px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.meta { font-family: var(--mono); font-size: 11px; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.fine { font-family: var(--mono); font-size: 10px; line-height: 16px; letter-spacing: 0.06em; color: var(--muted); }

/* ---------- Header ---------- */
.site-header { padding-top: 24px; }
.site-header__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--glow); }
.brand span { font-size: 24px; line-height: 1; letter-spacing: 0.02em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; font-size: 18px; }
.nav-link { padding: 12px 0; text-decoration: none; color: var(--muted); border-bottom: 1px solid transparent; }
.nav-link:hover { color: var(--ink); opacity: 1; }
.nav-link.is-current { color: var(--ink); border-bottom-color: var(--glow); }
.account { min-height: 40px; padding: 0 16px; display: flex; align-items: center; border: 1px solid var(--line); background: transparent; text-decoration: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 20px; padding-bottom: 28px; }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn-glow, .btn-light, .btn-outline { min-height: 44px; padding: 0 24px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 0; text-decoration: none; font-family: var(--serif); font-size: 18px; cursor: pointer; }
.btn-glow { border: 1px solid var(--glow); background: var(--glow); color: var(--on-glow); }
.btn-light { border: 1px solid var(--ink); background: var(--ink); color: var(--surface); }
.btn-outline { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.btn-big { height: 56px; font-size: 20px; }
.btn-glow[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; }
.text-btn { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: none; background: transparent; color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 19px; text-decoration: none; cursor: pointer; }
.text-btn--glow { color: var(--glow); }
.text-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.mono-btn { min-height: 44px; padding: 0; border: none; background: transparent; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glow); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }

.switch { flex: 0 0 auto; width: 52px; height: 30px; padding: 3px; border: 1px solid var(--muted); border-radius: 999px; background: transparent; display: flex; justify-content: flex-start; cursor: pointer; }
.switch span { width: 22px; height: 22px; border-radius: 50%; background: var(--muted); }
.switch[aria-checked="true"] { border-color: var(--glow); background: var(--glow); justify-content: flex-end; }
.switch[aria-checked="true"] span { background: var(--on-glow); }

.chip { padding: 6px 12px; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.field { height: 44px; width: 100%; padding: 0; border: none; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--serif); font-size: 20px; }
.field::placeholder { color: var(--muted); opacity: 1; }
.field:focus { outline: none; border-color: var(--glow); }

.notice { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--glow); }

/* ---------- Animations ---------- */
@keyframes caretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0.2); opacity: 0; } 60% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 163, 91, 0.5); } 50% { box-shadow: 0 0 0 10px rgba(217, 163, 91, 0); } }
@keyframes flick { 0% { transform: scaleY(1); } 50% { transform: scaleY(0.6); } 100% { transform: scaleY(1); } }
.caret { display: inline-block; width: 2px; height: 0.95em; margin-left: 3px; vertical-align: -0.12em; background: var(--glow); animation: caretBlink 1s steps(1) infinite; }
.fade { animation: fadeUp .6s ease both; }
.fade2 { animation: fadeUp .6s .15s ease both; }
.pop { animation: pop .55s cubic-bezier(.3, 1.5, .5, 1) both; }
.pulse { animation: glowPulse 1.6s ease-in-out infinite; }
.spin { animation: flick .1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .caret, .fade, .fade2, .pop, .pulse, .spin { animation: none; } }

/* ---------- Reading (today's ten, a poem) ---------- */
.prize-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; margin-top: 14px; text-decoration: none; }
.prize-strip span { display: flex; gap: 10px; flex-wrap: wrap; }
.reading { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 26px; text-align: center; min-height: 520px; padding-top: 40px; padding-bottom: 40px; }
.poem-title { margin: 0; min-height: 1.2em; font-weight: 400; font-style: italic; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.2; }
.poem-body { margin: 0; max-width: 640px; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.reading__meta { min-height: 18px; }
.reading-bar { padding-bottom: 40px; }
.reading-bar__row { max-width: 640px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); }
.reading-bar__count { display: flex; justify-content: center; gap: 10px; padding-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.heart { width: 60px; height: 60px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.heart[aria-pressed="true"] { color: var(--glow); }
.heart[aria-pressed="true"] svg { fill: currentColor; }
.heart[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 0; text-align: center; }
.empty-state p { margin: 0; font-style: italic; font-size: 22px; color: var(--muted); }

.back-link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; text-decoration: none; font-style: italic; font-size: 18px; }
.poem-page { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 26px; text-align: center; padding-top: 32px; padding-bottom: 32px; min-height: 480px; }
.poem-page__by { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.poem-actions { padding-bottom: 40px; }
.poem-actions__row { max-width: 640px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.poem-actions__row .btn-outline { font-style: italic; }
.poem-actions__row .btn-outline[aria-pressed="true"], .poem-actions__row .btn-outline.is-done { color: var(--glow); }
.poem-actions__row .btn-outline[aria-pressed="true"] svg { fill: currentColor; }
.poem-actions__note { margin: 14px 0 0; text-align: center; }

/* ---------- After the ten ---------- */
.recap { padding-top: 40px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
.recap__top { display: flex; justify-content: space-between; align-items: center; }
.recap__top button { min-height: 44px; padding: 0; border: none; background: transparent; color: var(--muted); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.recap h1 { margin: 0; font-weight: 400; font-style: italic; font-size: clamp(36px, 4vw, 48px); line-height: 1.1; }
.recap__grid { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.recap__board-col { flex: 1 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.recap__side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 28px; }
.board { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--deep); border: 1px solid var(--line); overflow: hidden; }
.board__row { display: flex; gap: 4px; justify-content: center; }
.tile { position: relative; flex: 0 1 32px; min-width: 0; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--raised); border-radius: 3px; font-family: var(--mono); font-weight: 500; font-size: 24px; color: var(--ink); }
.tile::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--deep); }
.tile.is-spinning { color: var(--faint); }
.tile.is-done { color: var(--glow); }
@media (max-width: 640px) { .board { padding: 12px; } .tile { height: 32px; font-size: 15px; } .board__row { gap: 2px; } }
.reveal { width: 100%; height: 56px; border: 1px solid var(--glow); border-radius: 0; background: transparent; color: var(--glow); font-family: var(--serif); font-style: italic; font-size: 20px; cursor: pointer; }
.recap__status { margin: 0; min-height: 56px; display: flex; align-items: center; justify-content: center; text-align: center; }
.recap__line { font-style: italic; font-size: 22px; line-height: 1.35; color: var(--glow); }
.streak { display: flex; flex-direction: column; gap: 12px; }
.streak__head { display: flex; justify-content: space-between; align-items: baseline; }
.streak__head h2 { margin: 0; font-weight: 400; }
.week { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.week__ring { width: 44px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.week__ring.is-today { border-color: var(--glow); }
.week__dot { width: 70%; height: 70%; border-radius: 50%; background: var(--glow); }
.week__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted); }
.week__label.is-today { color: var(--ink); }
.streak__goal { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.countdown { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.countdown__time { font-family: var(--mono); font-size: 34px; font-variant-numeric: tabular-nums; }
.recap__cta { display: flex; flex-direction: column; gap: 8px; text-align: center; }

/* ---------- Sign up ---------- */
.signup { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 96px; }
.signup__intro { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.signup__intro h1 { margin: 0; font-weight: 400; font-style: italic; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.signup__intro p { margin: 0; max-width: 460px; font-size: 20px; line-height: 1.6; color: var(--ink-soft); }
.signup__form { flex: 1 1 380px; max-width: 440px; display: flex; flex-direction: column; gap: 22px; }
.signup__providers { display: flex; flex-direction: column; gap: 10px; }
.signup__providers a { height: 54px; }
.or { display: flex; align-items: center; gap: 14px; }
.or span { flex: 1; height: 1px; background: var(--line); }
.stack { display: flex; flex-direction: column; gap: 4px; }
.signup__switch { align-self: center; }
.signup__legal { text-align: center; }

/* ---------- Write ---------- */
.write { padding-top: 40px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 40px 64px; }
.write__form, .write__preview { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.write__title { height: 60px; font-style: italic; font-size: 36px; }
.write__body { height: 340px; padding: 8px 0; font-size: 21px; line-height: 1.6; resize: none; }
.write__lines { display: flex; justify-content: flex-end; }
.write__lines .is-full { color: var(--glow); }
.tags { position: relative; display: flex; flex-direction: column; gap: 10px; }
.tags__row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-on { min-height: 36px; padding: 0 10px 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--surface); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.tag-add { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px dashed var(--muted); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.menu { position: absolute; z-index: 5; max-height: 320px; overflow-y: auto; margin: 0; padding: 4px 0; list-style: none; background: var(--raised); border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); }
.menu button { width: 100%; min-height: 44px; padding: 0 14px; display: flex; justify-content: space-between; align-items: center; border: none; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; text-align: left; cursor: pointer; }
.menu button:hover, .menu button.is-on { background: var(--line-soft); }
.tags .menu { top: 76px; left: 0; width: 260px; }
.confirm { margin: 0; padding: 12px 0 0; border: none; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.confirm legend { padding: 0 0 8px; }
.confirm__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; font-size: 18px; line-height: 1.35; }
.confirm p { margin: 2px 0 0; font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--muted); }
.write__post { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 8px; }
.write__post .btn-glow { height: 56px; padding: 0 40px; font-size: 20px; }
.write__helper { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.preview { flex: 1; min-height: 520px; padding: 48px 32px; background: var(--raised); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; text-align: center; }
.preview__title { font-style: italic; font-size: 32px; line-height: 1.25; overflow-wrap: anywhere; }
.preview__body { font-size: 21px; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.preview__body.is-empty { color: var(--muted); }
.posted { flex: 1; min-height: 520px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; text-align: center; }
.posted h1 { margin: 0; font-weight: 400; font-style: italic; font-size: 44px; line-height: 1.2; }
.posted p { margin: 0; font-size: 20px; color: var(--ink-soft); }
.posted__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; padding-top: 10px; }
.gate { flex: 1; min-height: 480px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; max-width: 560px; }
.gate h1 { margin: 0; font-weight: 400; font-style: italic; font-size: clamp(36px, 4vw, 52px); line-height: 1.1; }
.gate p { margin: 0; font-size: 20px; line-height: 1.6; color: var(--ink-soft); }
.gate form { width: 100%; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Library ---------- */
.library { padding-top: 48px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.library__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.library__head h1 { margin: 0 0 6px; font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.toggle { min-height: 44px; padding: 0; border: none; background: transparent; color: var(--muted); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.toggle[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--glow); text-underline-offset: 7px; }
.filters { position: sticky; top: 0; z-index: 3; display: flex; flex-direction: column; gap: 14px; padding: 14px 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.search .field { flex: 1; min-width: 0; font-style: italic; font-size: 19px; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill { height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.pill[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.pills__rule { width: 1px; height: 22px; margin: 0 8px; background: var(--line); }
.tag-filter { position: relative; }
.tag-filter__btn { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.tag-filter .menu { top: 42px; left: 0; width: 240px; max-height: 380px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; display: inline-block; }
.menu__label { display: inline-flex; align-items: center; gap: 10px; }
.menu__count { color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; font-family: var(--mono); font-size: 12px; }
.jump a { text-decoration: none; padding: 8px 0; }
.jump a span { color: var(--muted); }
.letters { display: flex; flex-wrap: wrap; gap: 0 4px; font-family: var(--mono); font-size: 13px; }
.letters a, .letters span { display: inline-flex; justify-content: center; min-width: 26px; padding: 8px 0; text-decoration: none; }
.letters span { color: #5A5D58; }
.month { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 220px; animation: fadeUp .5s ease both; }
.month__head { display: flex; align-items: baseline; gap: 14px; }
.month__head h2 { margin: 0; font-weight: 400; font-style: italic; font-size: 34px; line-height: 1; }
.index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); column-gap: 56px; }
.row { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.row__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; line-height: 1.3; }
.row__meta { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.row:hover .row__title, .az-row:hover .row__title { text-decoration: underline; text-decoration-color: var(--glow); text-underline-offset: 5px; }
.row:hover { opacity: 1; }
.leaves { columns: 3 280px; column-gap: 20px; }
.leaf { display: flex; flex-direction: column; gap: 14px; break-inside: avoid; margin: 0 0 20px; padding: 24px 24px 20px; background: var(--raised); border-top: 2px solid var(--muted); text-decoration: none; animation: fadeUp .5s ease both; }
.leaf:hover { background: #272C29; opacity: 1; }
.leaf__top { display: flex; justify-content: space-between; gap: 12px; }
.leaf__title { font-style: italic; font-size: 23px; line-height: 1.25; }
.leaf__body { font-size: 18px; line-height: 1.7; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; }
.az { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 36px 56px; }
.az__group { display: flex; flex-direction: column; gap: 4px; scroll-margin-top: 220px; }
.az__letter { font-size: 40px; line-height: 1; color: var(--glow); }
.az-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px dotted var(--line); text-decoration: none; }
.az-row .row__title { font-size: 19px; white-space: normal; }
.more { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 8px; }
.more__bar { width: 200px; height: 2px; background: var(--line); }
.more__bar div { height: 2px; background: var(--glow); }
.more button { height: 50px; padding: 0 28px; border: 1px solid var(--muted); background: transparent; color: var(--ink); font-family: var(--serif); font-size: 18px; cursor: pointer; }
.library__foot { margin: 0; text-align: center; font-style: italic; font-size: 17px; color: var(--muted); }

/* ---------- Prize ---------- */
.prize { padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 56px; }
.prize__top { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; }
.prize__pot { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; }
.prize__figure { font-size: clamp(80px, 10vw, 144px); line-height: 1.1; color: var(--glow); font-variant-numeric: lining-nums tabular-nums; }
.prize__statement { font-style: italic; font-size: 21px; color: var(--ink-soft); }
.ledger { display: flex; flex-direction: column; padding-top: 12px; }
.ledger__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 19px; }
.ledger__row span:last-child { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.ledger__row.is-total { border-top-color: var(--ink); }
.ledger__row.is-total span:first-child { font-style: italic; }
.ledger__row.is-total span:last-child { color: var(--glow); }
.prize__you { flex: 1 1 420px; display: flex; flex-direction: column; gap: 22px; }
.prize__you h1 { margin: 0; font-weight: 400; font-style: italic; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.25; }
.split { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.split__n { font-size: 38px; line-height: 1; }
.split__text { display: flex; flex-direction: column; gap: 4px; }
.split__text span:first-child { font-size: 20px; line-height: 1.4; }
.split__note { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-style: italic; font-size: 18px; color: var(--muted); }
.support { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.support .btn-glow { min-width: min(100%, 380px); height: 56px; font-size: 20px; }
.how { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; border-top: 1px solid var(--ink); }
.how h2 { margin: 0; font-weight: 400; font-style: italic; font-size: 30px; }
.how ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.how li { display: flex; flex-direction: column; gap: 6px; }
.how li span:first-child { font-family: var(--mono); font-size: 28px; color: var(--glow); }
.how li span:last-child { font-size: 18px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Legal ---------- */
.legal { width: 100%; max-width: 760px; margin: 0 auto; padding: 56px clamp(24px, 6vw, 64px) 72px; display: flex; flex-direction: column; gap: 32px; }
.legal > header { display: flex; flex-direction: column; gap: 10px; }
.legal h1 { margin: 0; font-weight: 400; font-size: clamp(44px, 6vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.legal section { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h2 { margin: 0; font-weight: 400; font-style: italic; font-size: 28px; }
.legal p, .legal li { margin: 0; font-size: 19px; line-height: 1.65; color: var(--ink-soft); }
.legal ul { margin: 0; padding-left: 1.2em; }
.legal a { color: var(--glow); }

/* ---------- Cookie prompt ---------- */
.cookie { position: fixed; left: 24px; bottom: 24px; width: 360px; max-width: calc(100vw - 32px); z-index: 20; padding: 18px 18px 12px; background: var(--raised); border: 1px solid var(--line); border-top: 2px solid var(--glow); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; gap: 12px; }
.cookie h2 { margin: 0; font-weight: 400; font-style: italic; font-size: 20px; line-height: 1.2; }
.cookie p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.cookie__details { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.cookie__details li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cookie__what { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.cookie__what small { font-family: var(--mono); font-size: 10px; line-height: 14px; color: var(--muted); }
.cookie__always { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cookie .switch { width: 48px; height: 28px; }
.cookie .switch span { width: 20px; height: 20px; }
.cookie__buttons { display: flex; gap: 8px; }
.cookie__buttons button { flex: 1; padding: 0 12px; font-size: 16px; }
.cookie__buttons .btn-outline { border-color: var(--ink); }
.cookie__save { min-height: 40px; font-size: 16px; }
.cookie__foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.cookie__foot button { min-height: 36px; padding: 0; border: none; background: transparent; color: var(--glow); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.cookie__foot a { min-height: 36px; display: flex; align-items: center; color: var(--muted); }
.cookie-done { position: fixed; left: 24px; bottom: 24px; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 14px; background: var(--raised); border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; }
.cookie-done button { min-height: 32px; padding: 0; border: none; background: transparent; color: var(--glow); font: inherit; cursor: pointer; }
@media (max-width: 480px) { .cookie, .cookie-done { left: 16px; bottom: 16px; } }

/* ---------- Avatars ---------- */
.avatar { flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--glow); background: var(--raised); color: var(--glow); display: flex; align-items: center; justify-content: center; text-decoration: none; overflow: visible; position: relative; padding: 0; cursor: pointer; }
.avatar--small { width: 40px; height: 40px; font-size: 18px; }
.avatar--big { width: 88px; height: 88px; font-size: 40px; }
.avatar__inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; }
.avatar__photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar__pen { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--glow); color: var(--on-glow); display: flex; align-items: center; justify-content: center; }

/* ---------- Profile ---------- */
.profile { padding-top: 48px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; }
.profile__main { flex: 1 1 420px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.profile__who { display: flex; align-items: center; gap: 18px; }
.profile__name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.profile__name h1 { margin: 0; font-weight: 400; font-style: italic; font-size: clamp(34px, 4vw, 44px); line-height: 1.1; overflow-wrap: anywhere; }
.picker { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--raised); border: 1px solid var(--line); }
.picker__icons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.picker__icons button { aspect-ratio: 1; min-height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--glow); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.picker__icons button[aria-pressed="true"] { border-color: var(--glow); }
.picker__row { display: flex; flex-wrap: wrap; gap: 8px; }
.picker__row > * { flex: 1 1 140px; font-size: 17px; }
.picker__upload { position: relative; border-color: var(--ink); }
.picker__upload:focus-within { outline: 2px solid var(--glow); outline-offset: 3px; }
.picker__done { align-self: flex-end; min-height: 40px; padding: 0 16px; font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.stats > div { display: flex; flex-direction: column; gap: 6px; }
.stats dd { margin: 0; font-size: 44px; line-height: 1; }
.stats dd.is-glow { color: var(--glow); }
.stats dd small { font-size: 0.45em; color: var(--muted); }
.profile__poems { height: 56px; justify-content: space-between; padding: 0 18px; font-size: 19px; }
.settings { flex: 1 1 420px; display: flex; flex-direction: column; }
.settings h2 { margin: 0 0 10px; font-weight: 400; }
.settings__row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 0; border: none; border-top: 1px solid var(--line); background: transparent; text-decoration: none; color: var(--ink); text-align: left; cursor: pointer; font-family: var(--serif); }
.settings__text { display: flex; flex-direction: column; gap: 2px; }
.settings__text > span { font-size: 20px; }
.settings__text small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.settings__go { color: var(--muted); }
.settings__form { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 18px; }
.settings__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.settings__buttons > * { min-height: 44px; font-size: 17px; }
.settings__foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.settings__foot button { min-height: 44px; padding: 0; border: none; background: transparent; color: var(--ink); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.settings__foot button.is-quiet { color: var(--muted); }
.settings__confirm { display: flex; flex-direction: column; gap: 12px; padding: 16px; margin-top: 12px; background: var(--raised); border: 1px solid var(--line); border-top: 2px solid var(--glow); }
.settings__confirm p { margin: 0; font-size: 18px; line-height: 1.45; }
.settings__confirm .notice { font-size: 12px; }

/* ---------- Your poems ---------- */
.mine { padding-top: 48px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.mine .back-link { align-self: flex-start; }
.mine__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.mine__head h1 { margin: 0; font-weight: 400; font-style: italic; font-size: clamp(40px, 5vw, 56px); line-height: 1; }
.mine__filters { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mine__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.mine__row .toggle { min-height: 40px; }
.mine__quiet { margin: 0; font-style: italic; font-size: 19px; color: var(--muted); }
.link-btn { padding: 0; border: none; background: transparent; color: var(--glow); font: inherit; cursor: pointer; }
.mine__list { margin: 0; padding: 0; list-style: none; columns: 2 420px; column-gap: 20px; }
.mine__card { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--raised); border-top: 2px solid var(--glow); break-inside: avoid; margin-bottom: 16px; position: relative; }
.mine__top { display: flex; justify-content: space-between; gap: 12px; }
.mine__title { font-style: italic; font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.mine__preview { font-size: 19px; line-height: 1.6; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; }
.mine__ask { margin: 0; font-size: 20px; line-height: 1.45; }
.mine__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.mini-btn { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.mini-btn.is-strong { border-color: var(--ink); }
.mini-btn.is-glow { border-color: var(--glow); background: var(--glow); color: var(--on-glow); }
.mini-btn[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; }
.mine__edit-title { height: 48px; font-style: italic; font-size: 26px; }
.mine__edit-body { height: 260px; padding: 6px 0; font-size: 20px; line-height: 1.6; resize: none; }
.mine__tags { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.mine__tags .tag-on, .mine__tags .tag-add { min-height: 34px; padding: 0 10px; }
.mine__tags .menu { background: var(--surface); }

/* ---------- Prize pool picker (Write) ---------- */
.pool { position: relative; display: flex; flex-direction: column; gap: 8px; }
.pool__btn { min-height: 48px; padding: 6px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--glow); border-radius: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.pool__value { display: flex; flex-direction: column; gap: 2px; font-family: var(--serif); font-size: 18px; text-transform: none; letter-spacing: 0; }
.pool__value small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pool__menu { top: 76px; left: 0; right: 0; z-index: 7; }
.pool__menu button { min-height: 56px; padding: 8px 14px; }

/* ---------- Wallpaper ---------- */
.wall { padding-top: 40px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.wall .back-link { align-self: flex-start; }
.wall__grid { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: center; }
.wall__stage { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; align-items: center; min-height: 640px; padding: 24px; background: var(--deep); }
.wall__device { position: relative; box-sizing: border-box; border: 8px solid #0E100F; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); container-type: size; }
.wall__device.is-phone { width: min(300px, 100%); aspect-ratio: 390 / 844; border-radius: 36px; }
.wall__device.is-desktop { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; }
.wall__text { position: absolute; inset: 0; padding: 0 10%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; text-align: center; }
.wall__title { font-style: italic; font-size: min(7.2cqw, 3.4cqh); line-height: 1.2; }
.wall__body { font-size: min(4.9cqw, 2.3cqh); line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.wall__by { font-family: var(--mono); font-size: min(2.6cqw, 1.25cqh); letter-spacing: 0.14em; text-transform: uppercase; }
.is-desktop .wall__title { font-size: min(3.4cqw, 6cqh); }
.is-desktop .wall__body { font-size: min(2.2cqw, 3.9cqh); }
.is-desktop .wall__by { font-size: min(1.1cqw, 2cqh); }
.wall__mark { position: absolute; left: 0; right: 0; bottom: 5%; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: min(3.4cqw, 1.6cqh); }
.is-desktop .wall__mark { font-size: min(1.5cqw, 2.6cqh); }
.wall__controls { flex: 1 1 360px; display: flex; flex-direction: column; gap: 26px; }
.wall__controls h1 { margin: 0; font-weight: 400; font-style: italic; font-size: clamp(36px, 4vw, 52px); line-height: 1.05; }
.wall__controls p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink-soft); }
.wall__choices { display: flex; gap: 10px; }
.wall__choice { flex: 1; min-height: 56px; padding: 8px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-family: var(--serif); }
.wall__choice[aria-pressed="true"] { border-color: var(--glow); }
.wall__swatch { width: 32px; height: 20px; border-radius: 3px; border: 1px solid var(--line); }
.wall__choice-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.wall__px { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.wall__done { margin: 0; height: 56px; display: flex; align-items: center; font-style: italic; font-size: 20px; color: var(--glow); overflow-wrap: anywhere; }
@media (max-width: 640px) { .wall__stage { min-height: 0; } }
.mine__filters .search { flex: none; }

/* ---------- Stats (private) ---------- */
.stats-page { width: 100%; max-width: 1120px; margin: 0 auto; padding: 40px clamp(24px, 6vw, 80px) 80px; display: flex; flex-direction: column; gap: 48px; }
.stats-page__head { display: flex; flex-direction: column; gap: 16px; }
.stats-page__head h1 { margin: 0; font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -0.02em; }
.stats-page__head p { margin: 0; font-style: italic; font-size: 23px; line-height: 1.5; color: var(--muted); }
.key-form { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.key-form__row { display: flex; }
.key-form__input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 1px solid var(--ink); border-right: none; border-radius: 0; background: var(--raised); color: var(--ink); font-family: var(--mono); font-size: 16px; }
.key-form__input:focus { outline: none; border-color: var(--glow); }
.key-form .btn-glow { height: 52px; padding: 0 26px; }
.key-form p { margin: 0; min-height: 18px; }
.stats-body { display: flex; flex-direction: column; gap: 56px; }
.stats-controls { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; background: var(--raised); }
.stats-controls__row { display: flex; align-items: center; flex-wrap: wrap; gap: 0 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.stats-controls__label { flex: 0 0 72px; color: var(--muted); }
.stats-toggle { border-bottom: 1px solid transparent; }
.stats-toggle[aria-pressed="true"] { text-decoration: none; border-bottom-color: var(--glow); color: var(--ink); }
.stats-toggle:disabled { cursor: default; color: var(--muted); }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 32px; margin: 0; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.totals > div { display: flex; flex-direction: column; gap: 6px; }
.totals dt { font-size: 12px; }
.totals dd { margin: 0; font-size: clamp(36px, 4.4vw, 52px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.totals dd.is-glow { color: var(--glow); }
.stats-sec { display: flex; flex-direction: column; gap: 16px; }
.stats-sec h2 { margin: 0; font-weight: 400; font-style: italic; font-size: 32px; }
.stats-sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.stats-sub { margin: 6px 0 0; font-style: italic; font-size: 19px; color: var(--muted); }
.stats-readout { font-family: var(--mono); font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 200px; padding-top: 8px; border-bottom: 1px solid var(--ink); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 50%; }
.bars--dots { height: 10px; padding: 0; border: none; background: none; align-items: center; }
.bars__col { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bars--dots .bars__col { align-items: center; }
.bars__bar { width: 100%; display: flex; flex-direction: column; overflow: hidden; }
.bars.is-hovering .bars__col:not(.is-on) .bars__bar { opacity: 0.45; }
.stats-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.stats-axis--week { gap: 6px; }
.stats-axis--week span { flex: 1; text-align: center; }
.stats-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.stats-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 10px; height: 10px; }
.sw--dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.funnel { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.funnel li { display: grid; grid-template-columns: minmax(130px, 220px) 1fr 120px; align-items: center; gap: 16px; }
.funnel__label { font-size: 18px; }
.funnel__track { height: 22px; background: var(--raised); }
.funnel__track span { display: block; height: 22px; }
.funnel__n { text-align: right; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .funnel li { grid-template-columns: 1fr auto; } .funnel__track { grid-column: 1 / -1; grid-row: 2; } }
.stats-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.stats-small { display: flex; flex-direction: column; gap: 12px; }
.stats-small h2 { margin: 0; font-weight: 400; }
.minibars { display: flex; align-items: flex-end; gap: 2px; height: 120px; border-bottom: 1px solid var(--ink); }
.minibars div { flex: 1; background: var(--glow); }
.minibars--week { gap: 6px; }
.table-wrap { overflow-x: auto; }
.stats-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 17px; }
.stats-table th { padding: 10px 0 10px 16px; font-weight: 400; text-align: right; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stats-table td { padding: 12px 0 12px 16px; text-align: right; font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line); }
.stats-table .is-left { text-align: left; padding-left: 0; font-family: var(--serif); font-size: 18px; }
.stats-table th.is-left { font-family: var(--mono); font-size: 11px; }
.sort-btn { min-height: 44px; padding: 0; border: none; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.sort-btn.is-on { color: var(--ink); border-bottom-color: var(--glow); }
.race__poem { display: flex; align-items: center; gap: 12px; }
.race__rank { width: 22px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.stats-empty { font-style: italic; color: var(--muted); font-family: var(--serif); }
.split-bar { display: flex; height: 28px; background: var(--raised); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 0; }
.facts > div, .signals > div { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); background: var(--raised); }
.facts dd { margin: 0; font-size: 34px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.facts__note { font-style: italic; font-size: 15px; line-height: 1.4; color: var(--muted); }
.lines, .panel { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.lines li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.lines__rate { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 48px; align-items: start; }
.panel li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 10px 0 12px; border-top: 1px solid var(--line); }
.panel__name { font-size: 18px; overflow-wrap: anywhere; }
.panel__n { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.panel__track { grid-column: 1 / -1; height: 4px; background: var(--line); }
.panel__track span { display: block; height: 100%; background: var(--glow); }
.signals { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.signals > div { padding: 24px; gap: 8px; }
.signals__v { font-size: 40px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stats-foot { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats-foot button { min-height: 44px; padding: 0; border: none; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.stats-foot button:hover { color: var(--ink); }

/* ---------- Create your profile ---------- */
.create { width: 100%; max-width: 640px; margin: 0 auto; padding: 56px clamp(20px, 5vw, 40px) 72px; display: flex; flex-direction: column; gap: 32px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; gap: 8px; }
.steps li { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.steps__bar { height: 3px; background: var(--line); }
.steps__bar.is-on { background: var(--glow); }
.steps__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.steps__label.is-now { color: var(--ink); }
.create__step { display: flex; flex-direction: column; gap: 18px; }
.create__intro { display: flex; flex-direction: column; gap: 6px; }
.create__intro h1, .create__welcome { margin: 0; font-weight: 400; font-style: italic; font-size: 42px; line-height: 1.1; }
.create__welcome { font-size: 48px; }
.create__intro p, .create__lead { margin: 0; font-size: 19px; line-height: 1.5; color: var(--ink-soft); }
.create__names { display: flex; flex-wrap: wrap; gap: 18px; }
.create__names .create__field { flex: 1 1 140px; }
.create__field .field { height: 48px; }
.create__age { width: 120px; }
.create__age::-webkit-inner-spin-button, .create__age::-webkit-outer-spin-button { opacity: 0.4; }
.create__hint { font-family: var(--mono); font-size: 11px; line-height: 16px; color: var(--muted); }
.create__hint.is-alert { color: var(--glow); }
.create__shown { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.create__shown span:last-child { font-style: italic; font-size: 22px; color: var(--glow); overflow-wrap: anywhere; text-align: right; }
.create__code.field { height: 64px; font-family: var(--mono); font-size: 32px; letter-spacing: 0.4em; text-align: center; }
.create__links { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.create__links button { min-height: 44px; padding: 0; border: none; background: transparent; color: var(--muted); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.create__links button.is-glow { color: var(--glow); }
.create__profile-link { align-self: center; color: var(--muted); font-size: 11px; }

/* ---------- Stats: leader card ---------- */
.leader { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: stretch; padding: 28px; background: var(--raised); border-top: 2px solid var(--glow); }
.leader__poem { flex: 1 1 300px; display: flex; flex-direction: column; gap: 8px; }
.leader__title { font-style: italic; font-size: 40px; line-height: 1.1; overflow-wrap: anywhere; }
.leader__facts { flex: 2 1 420px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px; margin: 0; }
.leader__facts > div { display: flex; flex-direction: column; gap: 6px; }
.leader__facts dd { margin: 0; font-size: 34px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.minibars--votes { height: 90px; }
