/* Chud or Chad — front-end styles (feedback build)
   Design: Alicia's treatment v1 + addenda. Ground navy-black; Chad gold
   and Chud slime are VERDICT colors — they appear on vote slabs, split
   bars, and the definition cards, never decoratively elsewhere, and
   never anywhere in the sponsor band. */

@font-face {
  font-family: "Anton";
  src: url("assets/fonts/anton-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ground: #0b1020;
  --ground-lift: #121a30;
  --ground-card: #16203a;
  --gold: #f5b921;
  --gold-light: #ffd34d;
  --slime: #7a8b6f;
  --slime-light: #a8bfa0;
  --text: #ffffff;
  --text-dim: #b9c2d0;
  --hairline: rgba(255, 255, 255, 0.14);
  --sponsor-ring: rgba(255, 255, 255, 0.25);
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--gold-light); }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }

/* The hidden attribute must always win. Author display rules (grid,
   flex, block) override the UA's [hidden] rule by origin, so without
   this guard a hidden element renders anyway — the boards Bench label
   (display:grid via .board-scope label) and the browse Load more
   button (display:block) both did. (Layout grade F1, 2026-12-02.) */
[hidden] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; max-width: 1160px; margin: 0 auto;
}
.site-header .brand { display: block; line-height: 0; }
.site-header .brand img { height: 44px; width: auto; }
.header-search { flex: 1; display: flex; gap: 8px; }
.header-search input {
  flex: 1; min-height: 48px; border-radius: 10px; border: 1px solid var(--hairline);
  background: var(--ground-lift); color: var(--text); padding: 0 14px; font-size: 16px;
}
.header-search button, .btn-play {
  min-height: 48px; border: 0; border-radius: 10px; cursor: pointer;
  font-family: var(--display); letter-spacing: 0.04em; font-size: 17px;
  padding: 0 20px; background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #191200; text-decoration: none; display: inline-flex; align-items: center;
}
.header-signin { color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; }

/* ---------- hero / hook ---------- */
.hero { text-align: center; padding: 24px 0 8px; background: #0E1447; }
.hero .banner { width: min(880px, 100%); height: auto; }
.hook-line {
  font-family: var(--display); font-size: clamp(30px, 6vw, 52px);
  line-height: 1.08; margin: 18px 0 8px; letter-spacing: 0.01em;
}
.hook-sub { color: var(--text-dim); font-size: clamp(16px, 2.6vw, 20px); margin: 0 auto; max-width: 640px; }

.section-label {
  font-family: var(--display); letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 20px; margin: 40px 0 14px;
}
.section-head {
  font-family: var(--display); font-size: clamp(26px, 4.6vw, 38px);
  margin: 44px 0 12px; letter-spacing: 0.01em;
}
.lede { color: var(--text-dim); max-width: 720px; }

/* ---------- example tallies + subject cards (Marquee) ---------- */
.examples { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .examples { grid-template-columns: repeat(3, 1fr); } }

.subject-card {
  background: var(--ground-card);
  border: 1px solid var(--hairline); border-radius: 16px;
  padding: 20px 18px 16px; display: flex; flex-direction: column; gap: 10px;
  min-height: 240px;
}
.subject-card .chip {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 4px 10px;
}
/* Marquee portrait zone (image approach §5): the name as a typographic
   portrait, centered in the frame on both axes, with a soft radial glow
   behind the type in the subject's standing color — neutral navy before
   any votes exist, gold when Chad leads, slime when Chud leads. */
.portrait {
  flex: 1 1 auto; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 12px 6px;
  background: radial-gradient(62% 64% at 50% 50%, #1c2947 0%, rgba(28, 41, 71, 0) 72%);
}
.portrait.standing-chad {
  background: radial-gradient(62% 64% at 50% 50%, rgba(245, 185, 33, 0.17) 0%, rgba(245, 185, 33, 0) 72%);
}
.portrait.standing-chud {
  background: radial-gradient(62% 64% at 50% 50%, rgba(122, 139, 111, 0.30) 0%, rgba(122, 139, 111, 0) 72%);
}
.subject-card .name {
  font-family: var(--display); line-height: 1.02; letter-spacing: 0.01em;
  margin: 0; overflow-wrap: break-word; text-align: center;
}
/* River scale steps: the §5 vote-card steps (44/36/30/26px) at ~70%. */
.subject-card .name.step-1 { font-size: 31px; }
.subject-card .name.step-2 { font-size: 25px; }
.subject-card .name.step-3 { font-size: 21px; }
.subject-card .name.step-4 { font-size: 18px; }
.subject-card .name-upper { text-transform: uppercase; }
/* The 2px rule under the name, in the standing color (§5). */
.standing-rule {
  display: block; width: 64px; height: 2px; border-radius: 2px;
  margin-top: 14px; background: #46587f;
}
.standing-chad .standing-rule { background: var(--gold); }
.standing-chud .standing-rule { background: var(--slime); }
/* Imaged portrait (Step 4): the subject's filed photo/art cover-fits
   the same frame the Marquee name occupies — identical geometry, only
   the zone's content differs (Alicia §5). The name rides directly
   under the frame so every card carries it, imaged or not. */
.portrait.portrait-imaged { padding: 0; overflow: hidden; border-radius: 6px; }
.portrait-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.subject-card .card-name-line {
  font-family: var(--display); font-size: 19px; line-height: 1.1;
  letter-spacing: 0.01em; margin: 10px 0 0; text-align: center;
  overflow-wrap: break-word;
}
.subject-card .tally-zone { margin-top: auto; }
.split-bar {
  display: flex; height: 16px; border-radius: 8px; overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.split-bar .seg-chad { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.split-bar .seg-chud { background: linear-gradient(90deg, var(--slime), var(--slime-light)); }
.tally-line { color: var(--text-dim); font-size: 14px; margin: 8px 0 0; }
.tally-line strong { color: var(--text); }

.vote-slabs { display: flex; gap: 10px; margin-top: 12px; }
.slab {
  flex: 1; min-height: 56px; border: 0; border-radius: 12px; cursor: pointer;
  font-family: var(--display); font-size: 22px; letter-spacing: 0.08em;
}
.slab-chad { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #191200; }
.slab-chud { background: linear-gradient(180deg, var(--slime-light), var(--slime)); color: #101408; }
.slab:active { transform: translateY(1px); }
.card-prompt { font-weight: 700; margin: 4px 0 0; }

/* ---------- definition cards ---------- */
.definitions { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .definitions { grid-template-columns: 1fr 1fr; } }
.def-card { border-radius: 16px; padding: 22px; border: 1px solid var(--hairline); background: var(--ground-lift); }
.def-card .def-word { font-family: var(--display); font-size: clamp(40px, 7vw, 58px); line-height: 1; margin: 0; }
.def-chad .def-word { color: var(--gold); }
.def-chud .def-word { color: var(--slime-light); }
.def-card .kicker { font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; font-size: 13px; color: var(--text-dim); margin: 8px 0; }
.def-card .examples-line { color: var(--text-dim); }
.def-card .closer { font-weight: 700; margin-bottom: 0; }

/* ---------- how it works ---------- */
.steps { display: grid; gap: 14px; grid-template-columns: 1fr; padding: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--ground-lift); border: 1px solid var(--hairline); border-radius: 16px; padding: 20px; }
.steps .step-title { font-family: var(--display); font-size: 22px; margin: 0 0 6px; }
.steps p { color: var(--text-dim); margin: 0; }

/* ---------- sponsor band (separate markup; quiet by rule) ---------- */
.sponsor-band { margin: 48px 0 8px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 14px 0 18px; }
.sponsor-label {
  font-size: 12px; letter-spacing: 0.28em; color: var(--text-dim);
  text-transform: uppercase; margin: 0 0 4px; padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.sponsor-row {
  display: flex; align-items: center; gap: 14px; min-height: 68px;
  padding: 8px 6px; text-decoration: none; color: var(--text); border-radius: 10px;
}
.sponsor-row:hover { background: rgba(255, 255, 255, 0.04); }
.sponsor-medallion {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--sponsor-ring); overflow: hidden; background: #fff;
}
.sponsor-medallion img { width: 100%; height: 100%; display: block; }
.sponsor-medallion.cover { background: transparent; }
.sponsor-text { flex: 1; min-width: 0; }
.sponsor-name { font-family: var(--display); font-size: 20px; letter-spacing: 0.02em; line-height: 1.15; }
.sponsor-desc { color: var(--text-dim); font-size: 14px; }
.sponsor-visit { color: var(--text-dim); font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) {
  .sponsor-medallion { width: 48px; height: 48px; }
  .sponsor-row { min-height: 64px; }
}

/* ---------- house ad slots (never blank) ---------- */
.house-ad {
  border: 1px dashed var(--hairline); border-radius: 16px; padding: 22px;
  background: var(--ground-lift); display: flex; flex-direction: column; gap: 8px;
}
.house-ad .ad-tag { font-size: 11px; letter-spacing: 0.24em; color: var(--text-dim); text-transform: uppercase; }
.house-ad .ad-head { font-family: var(--display); font-size: 26px; margin: 0; line-height: 1.1; }
.house-ad .ad-head.gold { color: var(--gold); }
.house-ad .ad-head.slime { color: var(--slime-light); }
.house-ad p { color: var(--text-dim); margin: 0; }
.house-ad .ad-cta {
  align-self: flex-start; margin-top: 6px; min-height: 48px; padding: 0 18px;
  display: inline-flex; align-items: center; border-radius: 10px;
  border: 1px solid var(--hairline); color: var(--text); text-decoration: none; font-weight: 700;
}

/* ---------- account panel ---------- */
.account-panel {
  margin: 48px 0; text-align: center; background: var(--ground-lift);
  border: 1px solid var(--hairline); border-radius: 20px; padding: 32px 20px;
}
.account-panel .lockup { width: min(300px, 70%); height: auto; }
.account-panel h2 { font-family: var(--display); font-size: clamp(28px, 5vw, 40px); margin: 14px 0 8px; }
.account-panel .lede { margin: 0 auto 20px; }
.account-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* Left-aligned pages (My Verdicts, Google completion): the lone CTA
   aligns with the heading and lede above it, not with the centred
   pattern of the account panel and the auth cards, which keep the
   default. (Layout grade F4, 2026-12-02.) */
body.left-actions .account-actions { justify-content: flex-start; }
.account-actions button {
  min-height: 56px; padding: 0 26px; border-radius: 12px; cursor: pointer;
  font-family: var(--display); font-size: 19px; letter-spacing: 0.03em; border: 0;
}
.btn-signup { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #191200; }
.btn-google { background: #fff; color: #14213d; }
.account-fineprint { color: var(--text-dim); font-size: 14px; max-width: 560px; margin: 16px auto 0; }
.preview-notice {
  margin: 20px auto 0; max-width: 560px; border: 1px solid var(--gold);
  color: var(--gold-light); border-radius: 10px; padding: 10px 14px; font-size: 14px;
}
.preview-notice.flash { animation: flash 0.9s ease-in-out 2; }
@keyframes flash { 50% { background: rgba(245, 185, 33, 0.16); } }

/* ---------- auth forms (Stage 1 account surface) ---------- */
.auth-form {
  max-width: 440px; margin: 8px auto 0; text-align: left;
  display: grid; gap: 12px;
}
.auth-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.auth-form input[type="email"], .auth-form input[type="password"],
.auth-form input[type="text"], .auth-form input[type="date"] {
  min-height: 52px; border-radius: 10px; border: 1px solid var(--hairline);
  background: var(--ground); color: var(--text); padding: 0 14px; font-size: 16px;
  font-family: var(--body); font-weight: 400;
}
.auth-form .check-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-weight: 400; font-size: 14px; color: var(--text-dim);
}
.auth-form .check-row input { width: 22px; height: 22px; margin-top: 1px; flex: 0 0 auto; }
.auth-form button[type="submit"] {
  min-height: 56px; border: 0; border-radius: 12px; cursor: pointer;
  font-family: var(--display); font-size: 19px; letter-spacing: 0.03em; padding: 0 26px;
}
.gate-head { font-family: var(--display); font-size: 24px; margin: 4px 0 0; text-align: center; }
.auth-note { color: var(--text-dim); max-width: 560px; margin: 0 auto 14px; }
.auth-fine { color: var(--text-dim); font-size: 13px; margin: -4px 0 0; }
.auth-error { color: #ffab9e; max-width: 560px; margin: 14px auto 0; font-weight: 600; }
.auth-who { font-size: 17px; margin: 0 0 6px; }
.auth-switch { color: var(--text-dim); margin: 14px 0 0; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--gold-light); font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.account-actions .btn-link {
  display: inline-flex; align-items: center; text-decoration: none;
  min-height: 56px; padding: 0 26px; border-radius: 12px;
  font-family: var(--display); font-size: 19px; letter-spacing: 0.03em;
}
.account-panel .auth-refusal, .account-panel .auth-verify {
  max-width: 560px; margin: 0 auto; text-align: center;
}
.account-panel .auth-refusal p, .account-panel .auth-verify p { color: var(--text-dim); }
.account-actions button[data-auth-action], .account-actions button[data-auth-go] {
  background: var(--ground-card); color: var(--text); border: 1px solid var(--hairline);
}
.account-actions button.btn-signup, .account-actions button.btn-google { border: 0; }
.account-actions .btn-linklike {
  display: inline-flex; align-items: center; text-decoration: none;
  min-height: 56px; padding: 0 26px; border-radius: 12px;
  background: var(--ground-card); color: var(--text); border: 1px solid var(--hairline);
  font-family: var(--display); font-size: 19px; letter-spacing: 0.03em;
}

/* ---------- vote flow: Call It + reveal (Stage 2) ---------- */
/* Call targets are a different species from vote slabs (Alicia §2.3):
   ghost/outline in the side's color, the crowd as the label's subject,
   visibly subordinate height. A call never wears full verdict color. */
.call-zone { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.call-targets { display: flex; gap: 10px; }
.call-target {
  flex: 1; min-height: 52px; border-radius: 12px; cursor: pointer;
  background: transparent; font-family: var(--display); font-size: 17px;
  letter-spacing: 0.05em; color: var(--text);
}
.call-target.call-chad { border: 1.5px solid var(--gold); }
.call-target.call-chud { border: 1.5px solid var(--slime-light); }
.call-target:active { transform: translateY(1px); }
.call-skip {
  align-self: center; min-height: 48px; padding: 0 18px; cursor: pointer;
  background: none; border: 0; color: var(--text-dim); font: inherit; font-weight: 600;
}
.change-vote {
  width: 100%; min-height: 52px; border-radius: 12px; cursor: pointer;
  background: var(--ground-lift); color: var(--text); border: 1px solid var(--hairline);
  font-family: var(--display); font-size: 18px; letter-spacing: 0.04em;
}
.call-line { color: var(--text-dim); font-size: 14px; margin: 6px 0 0; font-weight: 600; }
.call-line.hit { color: var(--gold-light); }
.tally-line.dim { font-size: 13px; opacity: 0.8; }

/* ---------- boards (Stage 2) ---------- */
.board-switch { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 4px; }
.board-scope { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0 4px; }
.board-scope label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--text-dim); }
.board-scope select {
  min-height: 48px; border-radius: 10px; border: 1px solid var(--hairline);
  background: var(--ground-lift); color: var(--text); padding: 0 12px; font-size: 16px;
}
.board-rows { display: grid; gap: 10px; margin-top: 8px; }
.board-row {
  display: flex; gap: 14px; align-items: center;
  background: var(--ground-card); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 14px 16px;
}
.board-rank {
  font-family: var(--display); font-size: 24px; color: var(--text-dim);
  min-width: 34px; text-align: center;
}
.board-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.board-name {
  font-family: var(--display); font-size: 21px; color: var(--text);
  text-decoration: none; line-height: 1.15;
}
.board-cat { color: var(--text-dim); font-size: 13px; }
.board-bar { height: 14px; position: relative; }
.center-tick {
  position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px;
  background: var(--text); opacity: 0.75; transform: translateX(-1px);
}
.board-stat { text-align: right; display: flex; flex-direction: column; }
.board-pct { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.board-pct.pair { font-size: 19px; }
.board-gap { color: var(--text-dim); font-size: 13px; }
.board-disclaimer { margin-top: 36px; }

/* ---------- most wanted (Step 6) — Alicia §2: dashed is the
   product-wide signifier for "not yet a subject"; no side colors,
   no bars, no percentages anywhere on a nominee row ---------- */
.wanted-row {
  border: 1.5px dashed rgba(185, 194, 208, 0.6);
  background: transparent;
}
.wanted-chip {
  display: inline-block; padding: 1px 8px; border-radius: 4px;
  border: 1px solid var(--text); color: var(--text);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  vertical-align: 2px; margin-right: 6px;
}
.wanted-count { color: var(--text-dim); font-size: 14px; }
.request-too {
  min-height: 48px; padding: 0 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--hairline); background: var(--ground-lift);
  color: var(--text); font-size: 15px; font-weight: 600;
}
.wanted-explainer { color: var(--text-dim); margin-top: 22px; }
.suggest-card {
  border: 1.5px dashed rgba(185, 194, 208, 0.6); border-radius: 14px;
  padding: 18px 16px; margin-top: 22px;
}
.suggest-card h3 { font-family: var(--display); font-size: 21px; margin: 0 0 10px; }
.suggest-form { display: grid; gap: 12px; }
.suggest-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--text-dim); }
.suggest-form input[type="text"], .suggest-form select {
  min-height: 48px; border-radius: 10px; border: 1px solid var(--hairline);
  background: var(--ground-lift); color: var(--text); padding: 0 12px; font-size: 16px;
}
.suggest-form .check { display: flex; gap: 8px; align-items: center; color: var(--text); }
.suggest-form .check input { width: 20px; height: 20px; }
.btn-suggest {
  min-height: 48px; padding: 0 22px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--hairline); background: var(--ground-lift);
  color: var(--text); font-size: 15px; font-weight: 700; justify-self: start;
}
.suggest-note { color: var(--text-dim); margin: 0; }
.suggest-note a { color: var(--text); }

/* ---------- my verdicts (Stage 2) ---------- */
.verdict-row {
  background: var(--ground-card); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 16px; margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.verdict-top { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.your-vote { font-weight: 700; margin-left: auto; }
.your-vote.chad { color: var(--gold-light); }
.your-vote.chud { color: var(--slime-light); }
.history-line { color: var(--text-dim); margin: 6px 0; }
.history-line strong { color: var(--text); }

/* ---------- browse ---------- */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  text-align: left; cursor: pointer; border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--ground-lift); color: var(--text); padding: 16px; min-height: 96px;
}
.tile .tile-name { font-family: var(--display); font-size: 21px; display: block; line-height: 1.15; }
.tile .tile-count { color: var(--text-dim); font-size: 14px; }
.tile[aria-pressed="true"] { border-color: var(--gold); }
.feature-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; padding: 0; list-style: none; }
.feature-list li {
  min-height: 40px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--ground-lift);
  font-size: 15px; font-weight: 600; display: inline-flex; align-items: center;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; }
.chip-btn {
  min-height: 48px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hairline); background: var(--ground-lift); color: var(--text);
  font-size: 15px; font-weight: 600;
}
.chip-btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-light); }
.river { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 760px) { .river { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .river { grid-template-columns: repeat(3, 1fr); } }
.river .house-ad { min-height: 240px; justify-content: center; }
.load-more {
  display: block; margin: 24px auto 8px; min-height: 56px; padding: 0 34px;
  border-radius: 12px; border: 1px solid var(--hairline); cursor: pointer;
  background: var(--ground-lift); color: var(--text);
  font-family: var(--display); font-size: 19px; letter-spacing: 0.04em;
}
.browse-search { display: flex; gap: 8px; margin: 18px 0 6px; }
.browse-search input {
  flex: 1; min-height: 52px; border-radius: 10px; border: 1px solid var(--hairline);
  background: var(--ground-lift); color: var(--text); padding: 0 14px; font-size: 16px;
}
.empty-note { color: var(--text-dim); text-align: center; padding: 28px 0; }
.empty-note .empty-head { font-family: var(--display); color: var(--text); font-size: 24px; }

/* ---------- layout with rail (desktop front door) ---------- */
.front-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 1024px) {
  .front-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .rail { padding-top: 40px; }
}
.rail .house-ad { position: sticky; top: 16px; }

/* ---------- image credits page ---------- */
.credits-list { margin-top: 18px; }
.credit-row {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline;
  padding: 10px 2px; border-bottom: 1px solid var(--hairline);
}
.credit-subject { font-weight: 600; flex: 0 0 220px; }
.credit-text { color: var(--text-dim); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 56px; padding: 26px 16px 40px; }
.site-footer .wrap { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.site-footer .seal { width: 48px; height: 48px; border-radius: 50%; }
.site-footer .disclaimer { color: var(--text-dim); font-size: 14px; max-width: 720px; margin: 0; }
.site-footer nav { margin-left: auto; display: flex; gap: 18px; }
.site-footer nav a { color: var(--text-dim); text-decoration: none; font-weight: 600; }

/* ---------- sharing + invites (Step 5) ---------- */
/* The ONE share element (Alicia §1): a neutral pill, 48px minimum,
   ground-toned with the secondary hairline — verdict colors never
   touch the resting pill; the post-share confirmation may borrow
   the payload side's color for its check, and only for that. */
.share-pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  background: var(--ground-lift); color: var(--text);
  border: 1px solid rgba(185, 194, 208, 0.4);
  font-family: var(--body); font-size: 15px; font-weight: 600;
}
.share-pill svg { flex: 0 0 auto; }
.share-pill:active { transform: translateY(1px); }
.share-pill.tint-chad { border-color: var(--gold); color: var(--gold-light); }
.share-pill.tint-chud { border-color: var(--slime-light); color: var(--slime-light); }
/* The vote card's footer row (Alicia §1.4): the category chip left,
   the share pill right, in the card's quietest zone. */
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 12px;
}
.card-foot .chip { align-self: center; }
/* The reveal footer (Alicia §2.1b): Share left, Next/Change primary. */
.reveal-foot { display: flex; gap: 10px; align-items: stretch; width: 100%; }
.reveal-foot .change-vote { flex: 1; width: auto; }
.hook-share { margin: 18px auto 6px; }
.hook-prompt { max-width: 640px; margin: 14px auto 0; }
/* The share tray (Alicia §1.2 fallback): bottom sheet on phone,
   a compact anchored popover on desktop. One tray, product-wide. */
.share-backdrop {
  position: fixed; inset: 0; background: rgba(4, 6, 12, 0.62); z-index: 59;
}
.share-tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--ground-card); border-top: 1px solid var(--hairline);
  border-radius: 16px 16px 0 0; padding: 18px 18px 22px;
}
@media (min-width: 760px) {
  .share-tray {
    left: 50%; right: auto; bottom: 24px; transform: translateX(-50%);
    width: min(430px, 92vw); border: 1px solid var(--hairline);
    border-radius: 16px;
  }
}
.share-tray-head { display: flex; align-items: flex-start; gap: 12px; }
.share-tray-title { font-family: var(--display); font-size: 21px; margin: 0; flex: 1; }
.share-tray-sub { color: var(--text-dim); font-size: 14px; margin: 2px 0 10px; }
.share-close {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 10px; cursor: pointer;
  background: var(--ground-lift); color: var(--text); border: 1px solid var(--hairline);
  font-size: 18px; line-height: 1;
}
.share-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 52px; padding: 0 4px; cursor: pointer; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--hairline);
  color: var(--text); font: inherit; font-weight: 600; text-decoration: none;
}
.share-row:last-of-type { border-bottom: 0; }
.share-tray-note { color: var(--text-dim); font-size: 13px; margin: 12px 0 0; }
/* Boards: the board header row carries the board's one pill (§2.3a). */
.board-title-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 40px 0 14px;
}
.board-title-row .section-label { margin: 0; }
/* The invite panel (Alicia §3.1): a panel, not a pill — the
   account area is where deliberate acts live. Left-aligned inside
   the centred account panel by design. */
.invite-panel {
  text-align: left; max-width: 560px; margin: 28px auto 0;
  border-top: 1px solid var(--hairline); padding-top: 22px;
}
.invite-panel .gate-head { text-align: left; }
.invite-honesty { color: var(--text-dim); font-size: 15px; margin: 8px 0 14px; }
.invite-row { display: grid; gap: 8px; margin-bottom: 10px; }
@media (min-width: 760px) {
  .invite-row { grid-template-columns: 1fr 1.4fr 48px; align-items: end; }
}
.invite-row label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.invite-row input {
  min-height: 52px; border-radius: 10px; border: 1px solid var(--hairline);
  background: var(--ground); color: var(--text); padding: 0 14px; font-size: 16px;
  font-family: var(--body); font-weight: 400; width: 100%;
}
.invite-remove {
  width: 48px; height: 48px; border-radius: 10px; cursor: pointer;
  background: var(--ground-card); color: var(--text-dim);
  border: 1px solid var(--hairline); font-size: 16px;
}
.invite-add {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  color: var(--gold-light); font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.invite-send {
  display: block; width: 100%; margin-top: 12px; min-height: 56px;
  border: 0; border-radius: 12px; cursor: pointer; padding: 0 26px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #191200; font-family: var(--display); font-size: 19px;
  letter-spacing: 0.03em;
}
.invite-send[disabled] { opacity: 0.55; cursor: default; }
.invite-note { color: var(--text-dim); font-size: 14px; margin: 12px 0 0; }
.invite-results { margin-top: 12px; display: grid; gap: 6px; }
.invite-result { margin: 0; font-size: 15px; }
.invite-result.bad { color: #ffab9e; font-weight: 600; }
/* The in-feed invite card (Alicia §3.3b): house-slot furniture,
   dismissible, once per session. */
.invite-ad { position: relative; }
.invite-dismiss {
  position: absolute; top: 10px; right: 10px; width: 48px; height: 48px;
  border-radius: 10px; cursor: pointer; background: none;
  border: 1px solid var(--hairline); color: var(--text-dim); font-size: 16px;
}
.share-row-line { margin: 0 0 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .preview-notice.flash { animation: none; }
  .slab:active { transform: none; }
  .share-pill:active { transform: none; }
}

/* ---------- legal pages (Step 7) ----------
   Reading surfaces, plainly set on the page ground. The text is
   Anthony's, assembled verbatim (build/assemble_legal.py); this
   block is furniture only — measure, spacing, the agent block. */
.legal-nav {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin: 4px 0 10px; font-size: 14px;
}
.legal-nav a { color: var(--text-dim); }
.legal-nav a[aria-current="page"] {
  color: var(--text); font-weight: 600; text-decoration: none;
}
.legal { line-height: 1.65; }
.legal h2 {
  font-family: var(--display); font-weight: 400; font-size: 22px;
  letter-spacing: 0.02em; margin: 30px 0 8px;
}
.legal p { margin: 0 0 12px; max-width: 760px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; max-width: 760px; }
.legal li { margin-bottom: 6px; }
.legal-agent {
  background: var(--ground-lift); border: 1px solid var(--hairline);
  border-radius: 10px; padding: 14px 18px; margin: 0 0 12px;
  max-width: 760px;
}
.legal-agent p { margin: 0; }
