/* Tableland — warm cardstock & letterpress.
   Cream paper, warm ink, rust accent. Fraunces display / Alegreya Sans body. */

:root {
  --paper: #f7f1e5;
  --card: #fffcf4;
  --ink: #221c14;
  --ink-soft: #5c5344;
  --rust: #b4432c;
  --rust-dark: #93361f;
  --line: #d9cfba;
  --shadow: #d3c5a8;
  --good: #3e6b42;
  --good-bg: #eef3ea;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Alegreya Sans", ui-sans-serif, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(90, 70, 40, 0.055) 1px, transparent 1px);
  background-size: 5px 5px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 50;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust-dark); }

/* --- header / footer --- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 2px solid var(--ink);
}

.wordmark {
  font-size: 1.6rem;
  font-weight: 640;
  color: var(--ink);
  text-decoration: none;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }

/* rubber-stamp badge: rust outline, slight tilt, paper-plane glyph */
.pilot-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  border: 1.5px solid var(--rust);
  border-radius: 4px;
  padding: 0.13rem 0.45rem 0.1rem;
  white-space: nowrap;
  transform: rotate(-4deg) translateY(1px);
  text-decoration: none;
}
.pilot-pill svg { width: 0.7rem; height: 0.7rem; }
.pilot-pill:hover { color: var(--paper); background: var(--rust); }

.site-nav { display: flex; align-items: center; gap: 1.1rem; }
.site-nav a { color: var(--ink); white-space: nowrap; }
.site-nav a.btn { color: var(--paper); }
/* Admin sits to the right of the account menu; same type as the other
   links, only red, so it reads as staff-only at a glance. */
.site-nav a.nav-admin { color: var(--rust); }
.site-nav a.nav-admin:hover { color: var(--rust-dark); }
/* Phones/narrow: one row can't hold wordmark + six links, so the header
   stacks and links wrap as whole units (nowrap above keeps "Find a game"
   from breaking mid-phrase). No scroll strip — it would clip the user
   dropdown. */
@media (max-width: 800px) {
  .site-header { flex-wrap: wrap; row-gap: 0.55rem; padding: 0.9rem 1rem; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 0.45rem 1rem; }
}

.linklike {
  background: none;
  border: none;
  font: inherit;
  color: var(--rust);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.site-main {
  flex: 1;
  width: 100%;
  padding: 2.5rem 1.5rem 4rem;
  /* Scanning surfaces (the board) fill the window, with a ceiling for
     ultrawide monitors. Single-thing pages set their own tighter caps. */
  max-width: 96rem;
  margin: 0 auto;
}

/* Game detail: two panes (Luma-style) — narrow left pane carries the cover
   and the people (GM, who's in); wide right pane carries the pitch and the
   declare card. Wide because the hour grid needs the room. */
.game-page {
  max-width: 76rem;
  margin: 0 auto;
}
.game-kicker { margin-bottom: 1rem; }
.game-cols {
  display: grid;
  grid-template-columns: 21rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "cover main" "side main";
  gap: 1.3rem 2.4rem;
  align-items: start;
}
.cover-hero {
  grid-area: cover;
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  background: var(--card);
  border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--shadow);
}
.game-side { grid-area: side; display: grid; gap: 1.2rem; align-content: start; }
/* The host's backstage pass — sits directly under the cover, only for the
   host/admin. Deliberately not a .card: no ink border, no shadow, a slightly
   deeper paper tint and a dashed rust hairline, so it reads as a quiet note
   for a few people rather than page content. */
.host-pass {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label label" "text btn";
  align-items: center;
  column-gap: 0.9rem;
  row-gap: 0.2rem;
  padding: 0.8rem 1rem 0.9rem;
  background: rgba(180, 67, 44, 0.05);
  border: 1px dashed rgba(180, 67, 44, 0.45);
  border-radius: var(--radius);
}
.host-pass-label {
  grid-area: label;
  margin: 0;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rust);
}
.host-pass-text { grid-area: text; margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
/* .host-pass scoping outranks the later .btn rules (same class specificity
   otherwise, and .btn wins by source order). */
.host-pass .host-pass-btn {
  grid-area: btn;
  white-space: nowrap;
  color: var(--rust-dark);
  background: transparent;
  border-color: var(--rust);
  box-shadow: none;
}
.host-pass .host-pass-btn:hover { color: var(--paper); background: var(--rust); border-color: var(--rust); }
.host-pass .host-pass-btn:active { transform: translate(1px, 1px); box-shadow: none; }
.game-main { grid-area: main; min-width: 0; }
.game-title-row { align-items: baseline; }
.game-main h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
/* When hero — the poster when/where under the title. Event-poster date
   treatment inside the letterpress system: small-caps day in rust, the date
   set big in Fraunces, the venue's street address one quiet line below. */
.when-hero { margin-top: 0.55rem; }
.when-line { display: flex; flex-direction: column; }
.when-day {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rust);
}
.when-date {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 50;
  font-weight: 640;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}
/* nowrap: on narrow screens the time drops to its own line as one piece —
   never "6:00–" orphaned at a line end. The worst-case time string is well
   under a phone column's width, so this can't force horizontal scroll. */
.when-time { color: var(--ink-soft); font-weight: 500; white-space: nowrap; }
.when-date-flex { font-size: clamp(1.25rem, 2.5vw, 1.55rem); }
/* history, not an invitation: the past hero trades rust for quiet ink */
.when-line-past .when-day { color: var(--ink-soft); }
.when-line-past .when-date { color: var(--ink-soft); }
.when-directions { white-space: nowrap; }
.venue-line { font-size: 1.12rem; color: var(--ink-soft); margin-top: 0.35rem; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.9rem 0 1.3rem; }
.meta-chip {
  padding: 0.2rem 0.7rem; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink-soft); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 999px;
}
.forecast-line {
  margin: -0.5rem 0 1.3rem; font-size: 0.95rem; font-weight: 600;
  color: var(--good);
}
.forecast-kicker {
  display: inline-block; margin-right: 0.35rem; padding: 0.12rem 0.55rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; vertical-align: 1px;
  color: var(--good); background: var(--good-bg);
  border: 1px solid var(--good); border-radius: 999px;
}
.forecast-how { margin-left: 0.5rem; font-size: 0.85rem; font-weight: 400; }
/* a miss is information, not celebration: quiet ink instead of green */
.forecast-line.miss { color: var(--ink-soft); }
.forecast-line.miss .forecast-kicker {
  color: var(--ink-soft); background: var(--card); border-color: var(--line);
}
@media (max-width: 900px) {
  .game-cols { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "cover" "main" "side"; }
  /* Stacked: the cover reads as a poster, so center it — left-aligned with
     dead space to the right looks accidental. */
  .cover-hero { max-width: 19rem; margin-inline: auto; }
}
@media (max-width: 560px) {
  /* Phones: the poster fills the column edge-to-edge within page padding. */
  .cover-hero { max-width: none; }
  /* A long title pushes Share to its own row; keep that row snug. */
  .game-title-row { row-gap: 0.35rem; }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* honeypot form field: hidden from people, visible to bots */
.trap { position: absolute; left: -9999px; }

/* --- hero --- */

.hero { padding: 3rem 0 2.5rem; max-width: 40rem; }

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.9rem;
}

.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.3rem); margin-bottom: 1.1rem; }

.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 34rem; }

.hero-actions { display: flex; gap: 0.8rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.6rem; color: var(--good); font-weight: 500; }

/* --- cards --- */

.three-up {
  display: grid;
  /* auto-fill (not auto-fit) keeps empty tracks, so a lone card stays
     card-sized instead of stretching across the whole row. 320px min ≈ four
     tracks at the 96rem page cap. */
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: 4px 4px 0 var(--shadow);
}
.card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* --- forms --- */

.form-card {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--shadow);
  max-width: 26rem;
  margin: 2rem auto;
  padding: 2rem 2.1rem 1.6rem;
}
.form-card h2 { margin-bottom: 1.1rem; font-size: 1.6rem; }
.form-card > p { color: var(--ink-soft); margin-bottom: 1rem; }

form label { display: block; margin-bottom: 1rem; font-weight: 500; }
.hint { font-weight: 400; color: var(--ink-soft); font-size: 0.88rem; }

input[type="email"], input[type="password"], input[type="text"], input[type="tel"] {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
}
input:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
}

label.check {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  font-weight: 400;
  margin-bottom: 0.7rem;
}
label.check input { accent-color: var(--rust); }

.form-foot {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* --- buttons --- */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 0.55rem 1.3rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--shadow);
  transition: transform 60ms ease, box-shadow 60ms ease;
}
.btn:hover { color: var(--paper); background: #000; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }

/* Keyboard focus: the same rust ring inputs already use, extended to every
   button-shaped control. :focus-visible so mouse clicks stay quiet. */
.btn:focus-visible,
.linklike:focus-visible,
.hour-block:focus-visible,
.chip:focus-visible,
.share-opt:focus-visible,
.picker-close:focus-visible,
.venue-pick:focus-visible,
.filter-toggle:has(input:focus-visible),
a:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { color: var(--ink); background: var(--card); }
.btn.danger { color: var(--paper); background: var(--rust-dark); border-color: var(--rust-dark); }
.btn.danger:hover { color: var(--paper); background: var(--rust); border-color: var(--rust); }
.btn-small { padding: 0.3rem 0.9rem; font-size: 0.95rem; }
.btn-full { display: block; width: 100%; margin-top: 0.4rem; }

/* --- flashes --- */

.flash {
  max-width: 26rem;
  margin: 0 auto 1rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1.5px solid;
  font-weight: 500;
}
.flash-error { border-color: var(--rust); color: var(--rust-dark); background: #fbeae5; }
.flash-info { border-color: var(--good); color: var(--good); background: #eef3ea; }

/* --- prose / account --- */

.prose { max-width: 38rem; }
.prose h1 { font-size: 2.2rem; margin-bottom: 1.4rem; }
.prose h2 { font-size: 1.4rem; margin: 1.7rem 0 0.4rem; }
.prose h3 { margin: 1.5rem 0 0.4rem; }
.prose p { color: var(--ink-soft); }

.account-info { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.4rem; }
.account-info dt { font-weight: 700; }
.account-info dd { color: var(--ink-soft); }

/* --- page heads, tables, badges (venues & admin) --- */

.page-head { padding: 1rem 0 1.6rem; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head .lede { font-size: 1.05rem; margin-top: 0.3rem; }
.page-head .kicker a { color: var(--rust); text-decoration: none; }

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

.data-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.data-table th {
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.data-table td, .data-table th { padding: 0.4rem 0.6rem 0.4rem 0; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: none; }
.cell-right { text-align: right; }

.card-table {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 0.5rem 1rem;
}
.card-table td, .card-table th { padding: 0.55rem 0.8rem; }

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border: 1.5px solid var(--ink-soft);
  border-radius: 999px;
  color: var(--ink-soft);
}
.badge-good { border-color: var(--good); color: var(--good); background: #eef3ea; }
.badge-bad { border-color: var(--rust-dark); color: var(--rust-dark); background: #f6ebe6; }

/* --- role picker (admin user page) --- */
fieldset { border: none; padding: 0; margin: 0 0 1rem; }
fieldset legend { font-weight: 700; margin-bottom: 0.4rem; }
fieldset:disabled label.radio { color: var(--ink-soft); }
label.radio { display: flex; gap: 0.5rem; align-items: baseline; font-weight: 400; margin-bottom: 0.35rem; }
label.radio input { width: auto; margin: 0; }

.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { color: inherit; box-shadow: 6px 6px 0 var(--shadow); }

.muted { color: var(--ink-soft); }
.danger { color: var(--rust-dark); }
.empty { color: var(--ink-soft); padding: 2rem 0; }
.mt { margin-top: 1.2rem; }
.plain-list { list-style: none; }
.plain-list li { padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: none; }

select, input[type="date"] {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
}
select:focus-visible, input[type="date"]:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
}

.hours-table td { border-bottom: none; padding: 0.25rem 0.4rem 0.25rem 0; }

/* Availability grid: dayparts × weekdays, one checkbox per cell rendered as
   a toggle block (the input stays real for no-JS form posts). */
.avail-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0.3rem; margin-top: 0.75rem; }
.avail-grid tr:first-child th:first-child { width: 6rem; }
.avail-grid th { font-weight: 600; font-size: 0.85rem; text-align: center; padding: 0; }
.avail-grid td { padding: 0; }
.avail-part { text-align: right !important; padding-right: 0.35rem !important; white-space: nowrap; line-height: 1.15; }
.avail-part span { display: block; font-weight: 400; font-size: 0.72rem; color: var(--ink-soft); }
.avail-cell { display: block; cursor: pointer; }
.avail-cell input { position: absolute; opacity: 0; width: 0; height: 0; }
.avail-cell span {
  display: block; height: 2.1rem;
  border: 1.5px solid var(--line); border-radius: 6px;
  background: var(--card);
}
.avail-cell:hover span { border-color: var(--ink-soft); }
.avail-cell input:checked + span {
  background: var(--good-bg); border-color: var(--good);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3 8.5 6.5 12 13 4.5" fill="none" stroke="%233e6b42" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat; background-position: center; background-size: 0.9rem;
}
.avail-cell input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 1px; }
.hours-closed { white-space: nowrap; font-size: 0.85rem; color: var(--ink-soft); }
.hours-closed input[type="checkbox"] { width: auto; margin: 0 0.25rem 0 0.5rem; vertical-align: middle; }

.tables-editable input[type="text"] {
  display: inline-block; width: 100%; max-width: 12rem; min-width: 6rem;
  margin-top: 0; padding: 0.35rem 0.55rem;
}
.tables-editable input[type="text"].input-narrow { width: 3.5rem; min-width: 0; }
.tables-editable .inline-form { display: inline-block; margin-left: 0.6rem; }

.row-form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.row-form input[type="text"], .row-form input[type="tel"] { width: auto; flex: 1; min-width: 8rem; margin-top: 0; display: inline-block; }
.row-form .input-narrow { flex: 0; min-width: 5rem; }

.form-card-wide { max-width: 32rem; }
.form-card-thread { max-width: 38rem; margin-left: 0; }

/* --- games board --- */

.game-list { display: flex; flex-direction: column; gap: 1rem; }
.game-card h3 { font-size: 1.25rem; }
.game-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.game-card p { margin-top: 0.25rem; }

.tier-needs  { border-color: var(--ink-soft); color: var(--ink-soft); }
.tier-bubble { border-color: #b07d1a; color: #8a6114; background: #f9efd8; }
.tier-likely { border-color: var(--good); color: var(--good); background: #eef3ea; }
.tier-hot    { border-color: var(--rust); color: var(--rust-dark); background: #fbeae5; }

.filter-row { margin-bottom: 1.2rem; }
.chip {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--ink-soft);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  background: var(--card);
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip-active { border-color: #b07d1a; background: #f9efd8; color: #8a6114; }

.section-title {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row label { flex: 1; min-width: 7rem; }
.field-row .input-narrow { width: 5rem; }

/* Table size: label line, then Min/Max dropdowns, then the live translation. */
.table-size-field { margin-bottom: 1rem; font-weight: 500; }
.ts-row { display: flex; align-items: center; gap: 1.1rem; margin-top: 0.4rem; }
.ts-row .ts-num { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0; }
.ts-row select { padding: 0.2rem 0.5rem; color: var(--rust); font-weight: 600; }
.ts-line { color: var(--ink-soft); font-size: 0.92rem; font-weight: 400; font-style: italic; margin: 0.45rem 0 0; }

textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  resize: vertical;
}
textarea:focus-visible { outline: 2px solid var(--rust); outline-offset: 1px; }

input[type="number"] {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  width: 5rem;
  margin-top: 0.3rem;
}
input[type="number"]:focus-visible { outline: 2px solid var(--rust); outline-offset: 1px; }

.hint-block { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0.7rem; }
.prose-body { white-space: pre-line; }
.mb { margin-bottom: 1.1rem; }
.mb-small { margin-bottom: 0.5rem; }

/* --- guides (knowledge base) --- */

.crumbs { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.8rem; }
.crumbs a { color: var(--rust); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumb-sep { margin: 0 0.15rem; }
.guide-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.guide-list li { padding: 0.25rem 0; }
.guide-list a { text-decoration: none; }
.guide-list a:hover { text-decoration: underline; }
.tree-indent { display: inline-block; width: 1.4rem; }

/* --- venue photos --- */

/* The run-games recruiting banner keeps its wide shape. */
.promo-photo {
  display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 20rem;
  object-fit: cover; background: var(--card); border: 2px solid var(--ink);
  border-radius: var(--radius); box-shadow: 6px 6px 0 var(--shadow);
  margin-bottom: 1.6rem;
}

.venue-photo {
  display: block;
  /* The cover is square (owner call 2026-08-30) — capped so the tables
     stay above the fold. Older wide uploads center-crop gracefully. */
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--shadow);
  margin-bottom: 1.6rem;
}
.venue-card-photo {
  display: block;
  width: calc(100% + 2.8rem);
  margin: -1.3rem -1.4rem 1rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-bottom: 1.5px solid var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
}
.venue-photo-thumb {
  display: block;
  width: 100%;
  max-width: 14rem;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

/* --- cover images --- */

.cover-sq {
  width: 96px;
  height: 96px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
  background: var(--card);
  flex-shrink: 0;
}

.cover-lg {
  width: 160px;
  height: 160px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 4px 4px 0 var(--shadow);
  flex-shrink: 0;
}

.game-head { display: flex; gap: 1.4rem; align-items: flex-start; }
.game-head-body { flex: 1; min-width: 0; }

.game-card-media { display: flex; gap: 1.1rem; align-items: flex-start; }
.game-card-body { flex: 1; min-width: 0; }

input[type="file"] { font: inherit; font-size: 0.9rem; }

@media (max-width: 600px) {
  .game-head { flex-direction: column; }
  .cover-sq { width: 72px; height: 72px; }
}

.stat-big {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.8rem;
  font-weight: 640;
  line-height: 1.1;
  margin: 0.3rem 0;
}

.json-dump {
  font-size: 0.78rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

@media (max-width: 600px) {
  .site-main { padding-top: 1.5rem; }
  .hero { padding-top: 1.5rem; }
  .form-card { padding: 1.5rem 1.3rem 1.2rem; }
}

/* --- homepage: the game finder --- */

.finder-head { padding: 0.6rem 0 1.1rem; align-items: flex-end; }
.finder-head h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.drop-note { margin-top: 0.25rem; font-size: 0.95rem; }

/* signup: pilot reinforcement under the heading */
.pilot-note {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: -0.4rem 0 1.1rem;
}

/* homepage countdown: the quiet focal point above the board */
.drop-banner {
  display: block;
  width: fit-content;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: -1.25rem auto 0.9rem;
  text-decoration: none;
}
.drop-banner:hover { color: var(--rust); text-decoration: underline; }

/* The drop page's latest-schedule list: a timetable, not cards — the page is
   a publication, so it reads like one. */
.drop-latest {
  margin: 1.4rem 0 1.8rem; padding: 1rem 1.2rem;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--radius);
}
.drop-latest h3 { margin-top: 0; }
.drop-sessions { list-style: none; margin: 0.8rem 0 0.6rem; padding: 0; }
.drop-session {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.8rem;
  padding: 0.5rem 0; border-top: 1px solid var(--line);
}
.drop-session:first-child { border-top: none; }
.drop-session-time { font-weight: 700; white-space: nowrap; min-width: 8.5rem; }
.drop-session-where { color: var(--ink-soft); }
.drop-session-open {
  margin-left: auto;
  padding: 0.1rem 0.6rem; font-size: 0.8em; font-weight: 700; white-space: nowrap;
  color: var(--good); background: var(--good-bg);
  border: 1px solid var(--good); border-radius: 999px; text-decoration: none;
}
.drop-session-open:hover { color: var(--good); text-decoration: underline; }
@media (max-width: 640px) {
  .drop-session-time { min-width: 0; }
}
/* First-visit orientation: one sentence, logged-out only. */
/* logged-out hero: explainer beside a compact Tampa-pilot card. Deliberately
   short — the board below is the point, the hero shouldn't push it down. */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.2rem;
  align-items: center;
  max-width: 64rem;
  margin: 0.9rem auto 0.8rem;
}
.home-hero-explainer { color: var(--ink-soft); }
.home-hero-pilot {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.home-hero-pilot img {
  display: block;
  width: 16rem;
  height: 5rem;
  flex: none;
  object-fit: cover;
  object-position: center 35%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 2px 2px 0 var(--shadow);
}
.home-hero-pilot:hover img { border-color: var(--rust); }
.home-hero-pilot-text {
  display: block;
  width: 13rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.home-hero-pilot-text strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 50;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.1rem;
}
.home-hero-pilot-more { color: var(--rust); white-space: nowrap; }
.home-hero-pilot:hover .home-hero-pilot-more { text-decoration: underline; }
@media (max-width: 900px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}
@media (max-width: 560px) {
  .home-hero-pilot { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .home-hero-pilot img { width: 100%; }
  .home-hero-pilot-text { width: auto; }
}
.verified-mark { color: var(--good); font-weight: 700; font-size: 0.9em; margin-left: 0.3rem; }
.signup-fineprint { font-size: 0.85em; text-align: center; margin-top: 0.7rem; }

.loop-strip {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.loop-item {
  display: block;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--good);
  border-radius: var(--radius);
  padding: 0.55rem 0.9rem;
}
a.loop-item:hover { border-color: var(--ink); }
.loop-urgent { border-left-color: var(--rust); background: #fbeae5; }
.loop-quiet { border-left-color: var(--line); color: var(--ink-soft); }

/* filter bar: one tight horizontal row, wraps on small screens */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow);
  margin-bottom: 1.6rem;
}
.filter-bar select {
  font-size: 0.92rem;
  padding: 0.28rem 0.45rem;
  border-width: 1.5px;
  max-width: 12rem;
}
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1.5px solid var(--ink-soft);
  border-radius: 999px;
  padding: 0.22rem 0.8rem;
  background: #fff;
  cursor: pointer;
  user-select: none;
}
.filter-toggle:has(input:checked) {
  border-color: #b07d1a;
  background: #f9efd8;
  color: #8a6114;
}
.filter-toggle input { accent-color: var(--rust); }
.filter-clear {
  font-size: 0.92rem;
  margin-left: auto;
  white-space: nowrap;
}

/* far-future games collapsed below the board */
.board-later { margin-top: 2rem; }
.board-later > summary {
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.3rem;
}
.board-later > summary:hover { color: var(--ink); }

/* game grid: cover-forward tiles */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.3rem;
}
.game-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow);
  overflow: hidden;
}
.game-tile:hover { box-shadow: 6px 6px 0 var(--shadow); color: inherit; }
.game-tile-media { position: relative; }
.game-tile-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 1.5px solid var(--ink);
}
.game-tile-badge {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
}
/* tier-needs has no tint of its own; over an image it needs a backing */
.game-tile-badge.tier-needs { background: var(--card); }
.game-tile-body { padding: 0.8rem 0.95rem 0.95rem; }
.game-tile-body h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.game-tile-body p { font-size: 0.92rem; margin-top: 0.15rem; }
.game-tile-when { font-weight: 500; }
.game-tile-pitch { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-pitch { font-size: 1.1rem; margin: 0.4rem 0 0.6rem; max-width: 42rem; }
.game-tile-venues { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* grouped board card: one game, several groups forming */
.game-tile-grouped { cursor: default; }
.game-tile-grouped:hover { box-shadow: 4px 4px 0 var(--shadow); }
.game-tile-groups { list-style: none; margin: 0.5rem 0 0.15rem; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.game-tile-groups > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid var(--ink);
  border-radius: calc(var(--radius) - 3px);
  background: var(--bg);
}
.game-tile-groups > li > a:hover { box-shadow: 3px 3px 0 var(--shadow); color: inherit; }
.game-tile-group-when { font-weight: 500; font-size: 0.9rem; }

/* game page: "another group is forming" note */
.sibling-note {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  border: 1.5px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
}
.sibling-note-head { font-weight: 600; margin-bottom: 0.5rem; }
.sibling-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.sibling-list > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid var(--ink);
  border-radius: calc(var(--radius) - 3px);
  background: var(--card);
}
.sibling-list > li > a:hover { box-shadow: 3px 3px 0 var(--shadow); color: inherit; }
.sibling-when { font-weight: 500; }

/* my games: horizontal row cards with cover thumbnails */
.game-rows { display: flex; flex-direction: column; gap: 1rem; }
.game-row {
  display: flex;
  gap: 1rem;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow);
  overflow: hidden;
}
a.game-row { text-decoration: none; color: inherit; }
a.game-row:hover { box-shadow: 6px 6px 0 var(--shadow); color: inherit; }
.game-row-media { flex: 0 0 6.5rem; }
.game-row-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 6.5rem;
  object-fit: cover;
  border-right: 1.5px solid var(--ink);
}
.game-row-body {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem 0.9rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  justify-content: center;
}
.game-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.game-row-top h3 { font-size: 1.12rem; }
.game-row-top .badge { flex-shrink: 0; }
.game-row-body p { font-size: 0.92rem; margin-top: 0; }

/* --- account menu (nav dropdown) --- */
[x-cloak] { display: none !important; }
.nav-menu { position: relative; display: inline-block; }
.nav-menu-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font: inherit; color: var(--ink); background: none; border: 0;
  padding: 0; cursor: pointer;
}
.nav-menu-btn .caret { font-size: 0.7em; }
.nav-dropdown {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 50;
  min-width: 12rem; padding: 0.4rem 0;
  background: var(--card); border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
}
.nav-dropdown a, .nav-dropdown button {
  display: block; width: 100%; text-align: left;
  padding: 0.45rem 1rem; color: var(--ink); text-decoration: none;
  font: inherit; background: none; border: 0; cursor: pointer;
}
.nav-dropdown a:hover, .nav-dropdown button:hover { background: var(--paper); }
.nav-dropdown form { margin: 0; border-top: 1px solid var(--shadow); padding-top: 0.2rem; margin-top: 0.2rem; }
/* An <a> carries its own 0.45rem padding, so the separated link needs
   0.2 + 0.45 above the rule's far side to match the form's rhythm. */
.nav-dropdown a.nav-dropdown-split { border-top: 1px solid var(--shadow); margin-top: 0.2rem; padding-top: 0.65rem; }

/* --- avatars --- */
.avatar { border-radius: 50%; object-fit: cover; background: var(--paper); }
.avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--ink); border: 2px solid var(--ink);
}
.avatar-xs { width: 1.6rem; height: 1.6rem; font-size: 0.8rem; }
.avatar-sm { width: 2.4rem; height: 2.4rem; font-size: 1rem; }
.avatar-lg { width: 5.5rem; height: 5.5rem; font-size: 2.2rem; }
img.avatar { border: 2px solid var(--ink); }

/* --- game-page roster (who's in / seated) --- */
/* The heading's denominators ("3 needed to run · 18 seats") — quiet math
   under the count, so "· 1" reads against something. */
.roster-note { font-size: 0.85rem; margin: -0.3rem 0 0.7rem; }
.roster { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 0; padding: 0; }
.roster-item { display: flex; align-items: center; gap: 0.5rem; }
.roster-name { font-weight: 600; }
.profile-head { display: flex; align-items: center; gap: 1.1rem; }
.gm-card { display: flex; align-items: center; gap: 1.1rem; }
.gm-card-body { min-width: 0; }
.gm-name { font-weight: 700; margin: 0; }
.gm-record { margin: 0.15rem 0 0; }
.gm-bio {
  margin: 0.8rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

/* --- settings sub-navigation --- */
.subnav {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  max-width: 34rem; margin: 0 auto 1.2rem;
  border-bottom: 2px solid var(--shadow); padding-bottom: 0.5rem;
}
.subnav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--ink); font-weight: 700; border-bottom: 3px solid var(--ink); padding-bottom: 0.45rem; margin-bottom: -0.62rem; }

/* --- declare interaction (tap your hours + live session preview) --- */
[x-cloak] { display: none !important; }
.declare-date { margin-top: 1.3rem; }
.declare-date-label { margin: 0 0 0.4rem; }
.declare-day { font-weight: 700; font-size: 1.1em; }
.declare-daydate { color: var(--ink-soft); font-size: 0.9em; }
/* Hour blocks + session tracks share one column grid of 30-min cells, so
   bars sit flush under exactly the hours that enable them. Color grammar:
   ink/shadow = interactive, rust = selected input, green = derived good
   state (never tappable), soft ink = empty/quiet. */
.hour-blocks { display: grid; gap: 0.4rem; }
.hour-block {
  padding: 0.55rem 0.2rem; min-width: 0;
  font: inherit; font-weight: 600; text-align: center; cursor: pointer;
  color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: calc(var(--radius) - 3px);
}
.hour-block.half { font-size: 0.85em; }
.hour-block:hover { border-color: var(--ink-soft); }
.hour-block[aria-pressed="true"] {
  background: var(--rust); border-color: var(--rust-dark);
  color: var(--paper);
}

/* Live session preview: a read-out, not a control — no shadow, no hover. */
.session-tracks { display: grid; gap: 0.4rem; margin-top: 0.55rem; }
.session-bar {
  height: 1.5rem; border-radius: 999px;
  background: var(--good-bg); border: 1.5px solid var(--good);
  color: var(--good); font-size: 0.78rem; font-weight: 700;
  display: flex; align-items: center; padding-left: 0.7rem;
  box-shadow: none; white-space: nowrap; overflow: hidden;
  transform-origin: left; animation: bar-in 160ms ease-out;
}
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.session-pills { display: none; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.session-pill {
  padding: 0.25rem 0.6rem; font-size: 0.85em; font-weight: 700; white-space: nowrap;
  color: var(--good); background: var(--good-bg);
  border: 1.5px solid var(--good); border-radius: 999px; box-shadow: none;
}
.session-empty { margin-top: 0.55rem; font-size: 0.9em; color: var(--ink-soft); }
@media (max-width: 640px) {
  .session-tracks { display: none !important; }
  .session-pills { display: flex; }
  /* Phones: the one-row time axis can't fit 20+ 30-min columns, so hour
     blocks become wrapping chips (flex ignores the inline grid geometry).
     Bars are already replaced by pills, which don't need the shared grid. */
  .hour-blocks { display: flex; flex-wrap: wrap; }
  /* min-height keeps every chip a real thumb target (~44px), including the
     smaller-type half-hour chips in precision mode. */
  .hour-block { flex: 1 0 auto; min-width: 4.6rem; min-height: 2.75rem; padding: 0.55rem 0.5rem; }
}
.declare-bar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  margin: 0.9rem -1.4rem -1.3rem; padding: 0.8rem 1.4rem 1rem;
  background: var(--card); border-top: 1.5px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
}
.declare-commit:disabled { opacity: 0.45; cursor: not-allowed; }
/* The locked-in receipt: what the player told the solver + what happens
   next. State lives on the data (green chips), not the box — the card
   border stays neutral. Chips are read-only: no shadow (shadow = pressable
   in this system), no hover, no cursor. */
.declare-actions { display: flex; align-items: baseline; gap: 0.5rem; }
/* Honest scarcity on the join card — the pre-join stake ("Needs 2 more and
   it's on"). Rust because it's the ask, one line because it's a fact. */
.card p.join-need { color: var(--rust-dark); font-weight: 600; margin: 0.1rem 0 0.35rem; }
.stake-line { margin-top: 0.15rem; }
.locked-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.locked-chip {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  padding: 0.32rem 0.8rem;
  color: var(--good); background: var(--good-bg);
  border: 1px solid var(--good); border-radius: var(--radius);
  box-shadow: none; /* receipt, not button */
}
.locked-chip .ts-d {
  font-weight: 700; font-size: 0.78em; letter-spacing: 0.07em;
  text-transform: uppercase; white-space: nowrap;
}
.locked-chip .ts-t { font-weight: 600; font-size: 0.95em; white-space: nowrap; }
.ts-updated { color: var(--good); margin-left: 0.4rem; }
.declare-status { font-size: 0.9em; }
/* A plain button-plus-caption row inside a card (no sticky, no bleed —
   unlike .declare-bar). Used by the placed-game signup CTA. */
.cta-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.declare-error { color: var(--rust-dark); margin-top: 0.6rem; font-weight: 600; }
/* The stranger's what-is-this line: one quiet sentence at the card's foot.
   Extra top margin clears the sticky commit bar's negative bottom margin. */
.guest-context { font-size: 0.9em; margin-top: 2rem; }

/* --- venue picker (tap to add, tap order = preference) --- */
.venue-pick-list { list-style: none; margin: 0.4rem 0 0.8rem; padding: 0; display: grid; gap: 0.6rem; }
.venue-pick {
  display: flex; align-items: center; gap: 0.85rem; width: 100%;
  padding: 0.7rem 0.9rem; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.venue-pick:hover { border-color: var(--ink); }
.venue-pick.picked { border-color: var(--ink); box-shadow: 2px 2px 0 var(--shadow); }
.venue-pick-badge {
  flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); color: var(--ink-soft); font-weight: 700;
}
.venue-pick.picked .venue-pick-badge { background: var(--rust); border-color: var(--rust); color: var(--paper); }
.venue-pick-info { display: flex; flex-direction: column; }

/* --- cover picker (post a game) & cover library (admin) --- */

.game-new-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  max-width: 62rem;
  margin: 0 auto;
}
.game-new-side { position: sticky; top: 1.5rem; }
.game-new-side .hint-block { margin-top: 0.9rem; text-align: center; }
.game-new-main { margin: 0; max-width: none; }

.cover-picker {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 5px 5px 0 var(--shadow);
  cursor: pointer;
  overflow: hidden;
}
.cover-picker img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-picker:hover img { opacity: 0.88; }
.cover-picker:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
.cover-picker-icon {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--paper);
}

.file-hidden { display: none; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(34, 28, 20, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.picker-modal {
  width: 100%;
  max-width: 44rem;
  max-height: min(85dvh, 42rem);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--shadow);
  padding: 1.1rem 1.2rem;
}
.picker-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; }
.picker-head h3 { font-size: 1.25rem; }
.picker-close {
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.1rem 0.4rem;
}
.picker-close:hover { color: var(--ink); }

/* Who's going: one panel per session inside the shared modal shell.
   Names and photos, each one a way into that person's profile. */
.roster-modal { max-width: 32rem; }
.roster-when { margin: -0.5rem 0 0.9rem; font-size: 0.9rem; }
.roster-panel { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.roster-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem 1rem;
}
.roster-grid .roster-item { min-width: 0; }
.roster-grid .roster-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.picker-drop {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-align: center;
  cursor: pointer;
  margin-bottom: 1rem;
  background: var(--paper);
}
.picker-drop:hover { border-color: var(--ink-soft); }
.picker-drop strong { display: block; }
.picker-drop span { color: var(--ink-soft); font-size: 0.9rem; }

.picker-body {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1rem;
  min-height: 0;
  overflow: hidden;
  flex: 1;
}
.picker-cats { display: flex; flex-direction: column; align-items: stretch; gap: 0.15rem; overflow-y: auto; }
.picker-cats button {
  font: inherit;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 0.35rem 0.6rem;
  border-radius: 7px;
  white-space: nowrap;
}
.picker-cats button:hover { color: var(--ink); background: var(--paper); }
.picker-cats button.active { color: var(--ink); background: var(--paper); font-weight: 700; }

.picker-panes { overflow-y: auto; min-height: 12rem; }
.picker-cat-label { font-weight: 700; margin-bottom: 0.6rem; }
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.6rem;
}
.picker-img {
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1;
}
.picker-img:hover { border-color: var(--ink); box-shadow: 3px 3px 0 var(--shadow); }
.picker-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* admin: cover library */
.cover-thumbs { display: flex; gap: 0.4rem; margin-top: 0.7rem; }
.cover-thumbs img {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.8rem;
}
.library-item { position: relative; }
.library-item > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
}
.library-x {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.7rem;
  height: 1.7rem;
  line-height: 1;
  font: inherit;
  font-weight: 700;
  background: var(--card);
  color: var(--rust-dark);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
}
.library-x:hover { background: #fbeae5; }

@media (max-width: 760px) {
  .game-new-layout { grid-template-columns: 1fr; }
  .game-new-side { position: static; width: 100%; max-width: 20rem; margin: 0 auto; }
  .picker-body { grid-template-columns: 1fr; }
  .picker-cats { flex-direction: row; overflow-x: auto; }
}

/* --- boards (Table talk) --- */
.board-cat-blurb { margin: -0.6rem 0 1.2rem; max-width: 38rem; }
.thread-list { max-width: 44rem; }
.thread-row { padding: 0.75rem 0; }
.thread-title { font-weight: 700; font-size: 1.08rem; text-decoration: none; color: var(--ink); }
.thread-title:hover { text-decoration: underline; }
.thread-meta { font-size: 0.92rem; margin-top: 0.2rem; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: baseline; }
.tag-chip { text-decoration: none; padding: 0.08rem 0.55rem; font-size: 0.72rem; }
.tag-chip-active { border-color: var(--ink); color: var(--ink); }
.thread-posts { display: grid; gap: 1rem; max-width: 44rem; }
.post { padding: 1rem 1.2rem; }
.post-head { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.6rem; font-size: 0.95rem; }
.post-author-name { font-weight: 700; color: var(--ink); text-decoration: none; }
a.post-author-name:hover { text-decoration: underline; }
.post-body { overflow-wrap: anywhere; }
.post-body blockquote {
  margin: 0.4rem 0;
  padding: 0.15rem 0.9rem;
  border-left: 3px solid var(--line);
  color: var(--ink-soft);
}
.reply-preview { max-width: 44rem; }
.post-actions { display: flex; gap: 1rem; align-items: baseline; margin-top: 0.6rem; font-size: 0.9rem; }
.post-edit summary { cursor: pointer; font-size: 0.9rem; }
.board-cats { border: none; margin: 1rem 0; display: grid; gap: 0.55rem; }
.board-cats legend { font-weight: 700; margin-bottom: 0.4rem; }
.board-cat-option { display: flex; gap: 0.55rem; align-items: baseline; font-weight: 400; }
.board-cat-option input { width: auto; margin: 0; }
.admin-row { align-items: baseline; }
/* Board directory — a masthead and ruled rows, like the contents page of a
   local paper: these are Tableland's boards, not a generic forum list. */
.board-masthead { padding-bottom: 0.4rem; border-bottom: 5px double var(--ink); margin-bottom: 1.6rem; }
.masthead-sub { margin: 0.15rem 0 0; }
.board-dir { border-spacing: 0; }
.board-dir thead th { border-bottom: 2px solid var(--ink); }
.board-dir tbody tr + tr td { border-top: 1px solid var(--line); }
.board-dir td { vertical-align: top; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.board-dir .thread-title, .thread-list .thread-title { font-family: "Fraunces", Georgia, serif; font-weight: 640; font-size: 1.25rem; letter-spacing: -0.01em; }
.board-dir-name p, .board-dir-last p { font-size: 0.88rem; margin-top: 0.15rem; }
.board-dir-name { max-width: 26rem; }
.board-dir-last a { text-decoration: none; font-weight: 500; color: var(--ink); }
.board-dir-last a:hover { text-decoration: underline; }

/* Share modal (game manage): social intents + copy-link row */
/* overflow-y: on short viewports (landscape phones) the modal's 85dvh cap
   bites, and unlike the cover picker it has no scrolling pane inside. */
.share-modal { max-width: 26rem; overflow-y: auto; }
.share-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.share-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 5.2rem;
  padding: 0.7rem 0.2rem 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
.share-opt:hover { border-color: var(--ink); background: var(--paper); }
.share-opt svg { width: 1.7rem; height: 1.7rem; }
.share-link-label { margin-bottom: 0.3rem; }
.share-copy { display: flex; gap: 0.5rem; align-items: center; }
.share-copy input[type="text"] { flex: 1; margin-top: 0; font-size: 0.92rem; }

/* Game URL editor: host prefix glued to the slug input */
.url-form { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.url-form .url-prefix { color: var(--ink-soft); white-space: nowrap; }
.url-form input[type="text"] { width: auto; flex: 1; min-width: 8rem; margin-top: 0; }

/* Game page share affordances */
.game-title-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; margin-left: auto; }
.share-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1.5px solid var(--line);
}
.social-actions { display: flex; align-items: center; gap: 0.5rem; }
.party-line { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }

/* --- presenter states (#61): one line, one urgency, everywhere --- */
.state-line { margin: 0.15rem 0 0.3rem; font-weight: 500; }
.state-banner {
  font-family: var(--font-display, inherit);
  font-weight: 600;
  font-size: 1.15rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  margin-bottom: 1.2rem;
  background: var(--card);
}
.state-urgent { color: var(--rust-dark); }
.state-banner.state-urgent { border-color: var(--rust-dark); background: #f6ebe6; }
.state-soon { color: var(--good); }
.state-waiting { color: var(--soft-brown, #5c5344); }
.state-quiet { color: #8a8172; }
/* A host row's scheduled sessions, stacked — one line each. */
.host-session + .host-session { margin-top: 0.45rem; }
.feas-warn { font-size: 0.85rem; margin: 0.15rem 0 0; width: 100%; }

/* --- declare summary + precision (#58/#59) --- */
.declare-summary .locked-chips { margin: 0.5rem 0 0.3rem; }
.declare-date-tools { margin-left: auto; display: inline-flex; gap: 0.8rem; font-size: 0.82rem; }
.declare-date-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; }
.hour-block.half { font-size: 0.68rem; padding-inline: 0.1rem; }

/* --- availability composer (#56) --- */
.composer-date {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.6rem;
}
.composer-date .row-between { align-items: baseline; }
.composer-receipt { margin: 0.6rem 0 0.9rem; color: var(--ink-soft); }

/* --- composer calendar (#56) --- */
.cal {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
  max-width: 21rem;
  background: var(--card);
}
.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.cal-head .linklike { text-decoration: none; font-size: 1.1rem; padding: 0 0.4rem; }
.cal-head .linklike:disabled { color: var(--line); cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--ink-soft); padding-bottom: 0.2rem; }
.cal-day {
  aspect-ratio: 1; border: 1px solid transparent; border-radius: 6px;
  background: none; font: inherit; font-size: 0.85rem; cursor: pointer; color: var(--ink);
}
.cal-day:hover:not(:disabled) { border-color: var(--ink); }
.cal-day.cal-on { background: var(--ink); color: var(--paper); font-weight: 700; }
.cal-day.cal-disabled { color: var(--line); cursor: default; }
.cal-day.cal-off { cursor: default; }
.cal-hint { font-size: 0.8rem; margin-top: 0.5rem; }

/* --- @mentions (boards) --- */
.mention { font-weight: 700; text-decoration: none; }
.mention:hover { text-decoration: underline; }
.form-hint { font-size: 0.8rem; color: var(--ink-soft); margin: -0.4rem 0 0.8rem; }
.mention-menu {
  list-style: none; margin: 0; padding: 0.25rem;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: var(--card); min-width: 14rem; max-width: 21rem;
  position: absolute; z-index: 20; box-shadow: 2px 2px 0 var(--line);
}
.mention-menu li {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.5rem; border-radius: 6px; cursor: pointer;
}
.mention-menu li.is-active { background: var(--ink); color: var(--paper); }
.mention-menu img { width: 1.5rem; height: 1.5rem; border-radius: 50%; object-fit: cover; }
.mention-menu span { color: var(--ink-soft); font-size: 0.85rem; }
.mention-menu li.is-active span { color: var(--paper); }
.mention-fallback {
  width: 1.5rem; height: 1.5rem; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--line); font-size: 0.75rem; font-weight: 700;
}

/* --- admin mail (outreach templates) --- */
.prewrap { white-space: pre-wrap; font-family: inherit; font-size: 0.97rem; margin: 0.5rem 0 0; }
.mail-preview { border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.25rem; background: #fff; }
.mail-preview p:first-child { margin-top: 0; }
.mail-preview p:last-child { margin-bottom: 0; }

/* --- admin footnote (game page aside) --- */
.admin-footnote { font-size: 0.85rem; margin-top: 0.5rem; }
.admin-footnote .linklike { font-size: inherit; padding: 0; }

/* --- my games: hosting work table --- */
.section-split { margin: 1.2rem 0 0.8rem; padding-top: 0.9rem; border-top: 2px solid var(--ink); }
.table-scroll { overflow-x: auto; }
.host-table td { vertical-align: middle; }
.host-table .cell-check { width: 2rem; }
.host-table .cell-actions { text-align: right; white-space: nowrap; }
.host-table .cell-actions .btn + .btn { margin-left: 0.35rem; }
.th-sort {
  background: none; border: none; padding: 0; font: inherit; font-weight: 600;
  color: inherit; cursor: pointer; letter-spacing: inherit; text-transform: inherit;
}
.th-sort[data-dir="asc"]::after { content: " ↑"; }
.th-sort[data-dir="desc"]::after { content: " ↓"; }

/* --- hosting tabs --- */
/* Post-a-game fork: a centered, modal-like choice — heading, one line,
   two equal doors. */
.fork-page {
  max-width: 46rem;
  margin: 3.5rem auto 0;
  text-align: center;
}
.fork-page > p { margin: 0.4rem auto 2rem; max-width: 34rem; }
.fork-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  text-align: left;
}
.fork-card { display: flex; flex-direction: column; }
.fork-card p { margin-bottom: 1rem; }
.fork-card select { width: 100%; }
.fork-action .btn { width: 100%; }
.fork-alt { display: block; margin-top: 0.7rem; text-align: center; font-size: 0.9rem; }
@media (max-width: 640px) {
  .fork-grid { grid-template-columns: 1fr; }
}

/* Template gallery (the alternate posting fork): covers as the choice. */
.tpl-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1.3rem;
  text-align: left;
}
.tpl-tile {
  display: flex; flex-direction: column; gap: 0.5rem;
  color: inherit; text-decoration: none;
}
.tpl-tile-media {
  display: block; aspect-ratio: 1; overflow: hidden;
  background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow);
}
.tpl-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpl-tile:hover .tpl-tile-media { box-shadow: 6px 6px 0 var(--shadow); }
.tpl-tile-title { font-weight: 600; line-height: 1.25; }
.tpl-tile-new {
  align-items: center; justify-content: center; gap: 0.3rem;
  aspect-ratio: 1; align-self: start;
  border: 1.5px dashed var(--ink); border-radius: var(--radius);
  color: var(--ink-soft);
}
.tpl-tile-new:hover { background: var(--paper); }
.tpl-tile-plus { font-size: 2.4rem; line-height: 1; }
.crumb-sep { color: var(--ink-soft); margin: 0 0.15rem; }

/* GitHub-style settings shell: grouped side nav + content column. */
.account-layout {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  max-width: 64rem;
  margin: 1.5rem auto 0;
}
.account-sidenav { position: sticky; top: 1.5rem; }
.account-sidenav a {
  display: block; padding: 0.45rem 0.7rem;
  color: var(--ink-soft); text-decoration: none; font-weight: 500;
}
.account-sidenav a:hover { color: var(--ink); }
.account-sidenav a.active { color: var(--ink); font-weight: 700; }
.account-main { min-width: 0; }
.account-main .form-card { margin: 0; }
@media (max-width: 700px) {
  .account-layout { grid-template-columns: 1fr; gap: 1.2rem; }
  .account-sidenav { position: static; display: flex; flex-wrap: wrap; gap: 0.2rem; }
}

.form-card-orgs { max-width: 42rem; }

/* Org badge: a circle, GitHub-style. (Tried a hexagon 2026-08-03; real
   cover art crops badly against the points — retired same day.) */
.org-hex-wrap { width: fit-content; }
.org-hex {
  width: 9rem; height: 9rem; object-fit: cover; display: block;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
  background: var(--paper);
}
.org-hex-lg { width: 7.5rem; height: 7.5rem; flex-shrink: 0; }
.org-hex-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 700; color: var(--ink-soft);
  background: var(--card); border: none;
}
.org-head { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 0.8rem; }
.org-socials { display: flex; gap: 0.55rem; margin-top: 0.45rem; }
.org-social-icon {
  display: inline-flex; width: 1.65rem; height: 1.65rem;
  color: var(--ink-soft);
}
.org-social-icon:hover { color: var(--ink); }
.org-social-icon svg { width: 100%; height: 100%; }
.org-socials-edit { margin-bottom: 1rem; }
.org-socials-label { font-weight: 500; margin-bottom: 0.4rem; }
.org-social-input { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.5rem; }
.org-social-glyph { display: inline-flex; width: 1.35rem; height: 1.35rem; color: var(--ink-soft); flex-shrink: 0; }
.org-social-glyph svg { width: 100%; height: 100%; }
.org-social-input input { flex: 1; }
.org-head-body { min-width: 0; flex: 1; }
.org-head-body h1 { margin-bottom: 0.1rem; }

.org-hex-sm { width: 3.2rem; height: 3.2rem; box-shadow: 2px 2px 0 var(--shadow); }
.org-hex-sm.org-hex-empty { font-size: 1.3rem; }
.org-dir { display: flex; flex-direction: column; }
.org-dir-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.org-dir-row:hover .org-dir-name { text-decoration: underline; }
.org-dir-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.org-dir-name { font-weight: 700; }

/* Public org page: main (games + discussion) beside the member roster. */
.org-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: 3rem;
  align-items: start;
  margin-top: 1rem;
}
.org-page-main { min-width: 0; }
.org-page-main > .section-title:not(:first-child) { margin-top: 2.2rem; }
.org-threads { display: flex; flex-direction: column; }
.org-thread-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.org-thread-row:hover .org-thread-title { text-decoration: underline; }
.org-thread-title { font-weight: 600; }
.org-new-thread { margin-top: 1rem; }
.org-new-thread summary { display: inline-block; cursor: pointer; list-style: none; }
.org-new-thread summary::-webkit-details-marker { display: none; }
.org-new-thread form { max-width: 34rem; }
.org-member-list { display: flex; flex-direction: column; gap: 0.55rem; }
.org-member-row { display: flex; align-items: center; gap: 0.6rem; }
.org-member-name a { color: var(--ink); text-decoration: none; }
.org-member-name a:hover { text-decoration: underline; }
.org-posts { display: flex; flex-direction: column; gap: 1.1rem; margin: 1.2rem 0; max-width: 44rem; }
.org-post { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.org-post-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.org-post-del { margin-left: auto; }
.org-post-del .linklike { font-size: 0.85rem; }
.org-post-body { white-space: pre-wrap; }
.org-reply { max-width: 44rem; }
@media (max-width: 760px) {
  .org-page-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Organizations settings section: one row per membership. */
.org-list { display: flex; flex-direction: column; }
.org-list-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  padding: 0.8rem 0; border-bottom: 1px solid var(--line);
}
.org-list-name a { font-weight: 700; text-decoration: none; color: var(--ink); }
.org-list-name a:hover { text-decoration: underline; }
.org-list-name .badge { margin-left: 0.5rem; }
.org-list-actions { display: flex; gap: 0.5rem; align-items: center; }
.org-list-actions form { margin: 0; }

/* Org settings: general tab spreads form + explainer; members tab adds
   an inline add-member row. */
.org-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 30rem) minmax(14rem, 1fr);
  gap: 3rem;
  align-items: start;
}
.org-settings-aside h3 { margin-bottom: 0.5rem; }
.org-settings-aside { max-width: 16rem; }
.org-settings-aside input[type="file"] { display: block; margin-top: 0.35rem; }
.org-settings-aside .org-hex-wrap { margin-bottom: 1rem; }
.org-settings-main select { display: block; width: 100%; margin-top: 0.35rem; }
.org-add-member select { display: block; width: 100%; margin-top: 0.35rem; }
.org-add-member {
  display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap;
  max-width: 40rem;
}
.org-add-member label { flex: 1 1 14rem; margin-bottom: 0; }
.org-add-member .btn { margin-bottom: 0.2rem; }
@media (max-width: 700px) {
  .org-settings-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.fork-manage {
  margin: 3.5rem auto 0; padding-top: 1.1rem; max-width: 20rem;
  border-top: 1px solid var(--line);
  text-align: center; font-size: 0.9rem;
}

.tab-row { display: flex; gap: 0.4rem; margin-bottom: 0.8rem; }
.tab {
  padding: 0.25rem 0.75rem; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: inherit; font-size: 0.92rem;
}
.tab-on { background: var(--ink); border-color: var(--ink); color: var(--paper, #fff); }

/* --- admin games-area tab rail --- */
.admin-tabs {
  display: flex; gap: 1.75rem; border-bottom: 2px solid var(--line);
  margin: 0.35rem 0 1.4rem;
}
.admin-tab {
  padding: 0.45rem 0.1rem; margin-bottom: -2px;
  text-decoration: none; color: inherit; opacity: 0.62;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
}
.admin-tab:hover { opacity: 0.85; }
.admin-tab-on { opacity: 1; border-bottom-color: var(--rust, #b3442e); }

/* Venue photo gallery (#93): real photographs, one disciplined set. */
.venue-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem; margin-top: 0.75rem;
}
.venue-gallery-item { margin: 0; }
.venue-gallery-item img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border: 1.5px solid var(--ink, #2b2b2b); border-radius: 8px;
  box-shadow: 3px 3px 0 rgba(43, 43, 43, 0.18);
}
.venue-gallery-item figcaption { font-size: 0.85rem; margin-top: 0.35rem; }
.venue-gallery-quiet { margin-top: 1.5rem; }
.venue-gallery-caption { font-size: 0.85rem; margin-top: 0.35rem; }

/* The manage console (Luma-shaped): sub-nav tabs + capacity bar. */
.manage-head .kicker a { color: inherit; }
.subnav { display: flex; gap: 1.25rem; margin-top: 0.75rem; border-bottom: 1.5px solid rgba(43,43,43,0.15); }
.subnav a { padding: 0.4rem 0.1rem 0.55rem; color: inherit; text-decoration: none; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; }
.subnav a:hover { border-bottom-color: rgba(43,43,43,0.3); }
.subnav a.subnav-on { font-weight: 700; border-bottom-color: var(--rust, #b3502d); }
.cap-line { margin-top: 0.9rem; }
.cap-line .cap-cap { float: right; color: rgba(43,43,43,0.55); }
.cap-track { height: 8px; border-radius: 4px; background: rgba(43,43,43,0.12); margin-top: 0.4rem; overflow: hidden; }
.cap-fill { height: 100%; border-radius: 4px; background: var(--rust, #b3502d); }
.row-selected td:first-child { font-weight: 700; }
.danger-zone h3 { color: #8c2f1b; }
.danger-btn { background: #8c2f1b; }

/* Fixed game page: the demoted next-session line + numbered session blocks. */
.next-line { margin: 0.55rem 0 0.75rem; font-size: 1.02rem; }
.next-line strong { color: var(--rust-dark); letter-spacing: 0.01em; }
.session-when { font-family: inherit; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.roster-inline { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin-top: 0.55rem; }
.roster-inline .roster-item { margin: 0; }

/* From the table — the game's feed of comments and photos. */
.table-composer textarea { width: 100%; }
.table-composer-tag { font-size: 0.85rem; white-space: nowrap; }
.table-photo-input { font-size: 0.85rem; max-width: 55%; }
.table-post { border-top: 1px solid var(--line, #e4dccb); padding-top: 0.7rem; }
.table-post-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.table-post-meta { font-size: 0.85rem; }
.table-post-remove { margin-left: auto; }
.table-post-body { margin-top: 0.4rem; white-space: pre-line; }
.table-post-photo { display: block; max-width: 100%; border-radius: 8px; margin-top: 0.55rem; }

/* ---- game systems: the public shelf and one system's page ---- */
.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
  margin: 0.6rem 0 2rem;
}
.system-tile {
  display: block; text-decoration: none; color: inherit;
  background: var(--card);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow);
  overflow: hidden;
}
.system-tile:hover { box-shadow: 6px 6px 0 var(--shadow); color: inherit; }
.system-tile-media {
  aspect-ratio: 1 / 1; background: var(--paper-deep, var(--card));
  border-bottom: 1.5px solid var(--ink);
  display: grid; place-items: center;
}
.system-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.system-tile-initial { font-family: var(--display, inherit); font-size: 3rem; color: var(--ink-soft); }
.system-tile-body { padding: 0.75rem 0.9rem 0.9rem; }
.system-tile-body h3 { font-size: 1.08rem; margin-bottom: 0.2rem; }
.system-tile-body p { font-size: 0.9rem; margin-top: 0.1rem; }
.cover-hero-empty { display: grid; place-items: center; font-size: 5rem; color: var(--ink-soft); }
.system-facts { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.9rem; font-size: 0.95rem; }
.system-facts dt { color: var(--ink-soft); }
.system-facts dd { margin: 0; overflow-wrap: anywhere; }
a.meta-chip-link { text-decoration: none; }
a.meta-chip-link:hover { text-decoration: underline; }

/* ---- browse: directory links under the board ---- */
.browse { margin-top: 3rem; }
.browse-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; }
.browse-list a { font-size: 1.02rem; }

/* --- the picture page (/welcome/photo, /account/photo) --- */
.avatar-xl { width: 10rem; height: 10rem; font-size: 4rem; }
.photo-current { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; margin-bottom: 1.6rem; }
.photo-name { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; color: var(--ink-soft); }
.form-card-photo { margin-left: 0; max-width: 32rem; }
.photo-section { margin-top: 1.8rem; margin-bottom: 0.8rem; font-size: 1.2rem; }
.photo-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr));
  gap: 0.6rem;
  max-width: 38rem;
}
.photo-choice {
  padding: 0; margin: 0; border: 2px solid transparent; border-radius: 10px;
  background: transparent; cursor: pointer; line-height: 0;
}
.photo-choice img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  border: 1.5px solid var(--ink); border-radius: 8px;
}
.photo-choice:hover, .photo-choice:focus-visible { border-color: var(--rust); outline: none; }
.photo-choice.is-current { border-color: var(--ink); box-shadow: 0 0 0 2px var(--rust); }
.photo-foot { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule, #d9d2c5); }

/* The home rail: the board keeps the floor, the feed takes a quarter.
   Boxless, PA-style: avatar left, time inline, hairlines between items. */
.home-cols { display: grid; grid-template-columns: 1fr minmax(230px, 25%); gap: 1.5rem; align-items: start; }
.home-cols-solo { grid-template-columns: 1fr; }
.home-rail { min-width: 0; }
.feed .section-title { margin-bottom: 0.4rem; }
.feed-item { display: flex; gap: 0.55rem; align-items: flex-start; border-top: 1px solid var(--line, #e4dccb); padding: 0.65rem 0 0.55rem; }
.feed-item:first-of-type { border-top: 0; }
.feed-item .avatar { flex: none; margin-top: 0.1rem; }
.feed-body { min-width: 0; }
.feed-line { font-size: 0.92rem; line-height: 1.4; }
.feed-ago { font-size: 0.72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; margin-left: 0.15rem; }
.feed-snippet { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.15rem; font-style: italic; }
@media (max-width: 900px) {
  .home-cols { grid-template-columns: 1fr; }
  .home-rail { order: 2; }
}

/* ---- post-a-game form: players stepper, when row, short description ---- */
.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden; background: #fff; }
.stepper button {
  border: 0; background: var(--card); color: var(--ink); width: 2rem; font-size: 1.15rem; line-height: 1;
  cursor: pointer; padding: 0;
}
.stepper button:hover { background: var(--paper-deep, var(--card)); }
.stepper input[type="number"] {
  width: 3.6rem; margin: 0; padding: 0.3rem 0.2rem; text-align: center; border: 0;
  border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); border-radius: 0;
  color: var(--rust); font-weight: 600; -moz-appearance: textfield; appearance: textfield;
}
.stepper input[type="number"]::-webkit-outer-spin-button,
.stepper input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input[type="number"]:focus-visible { outline: 2px solid var(--rust); outline-offset: -2px; }
.when-row select { margin-top: 0; }
.ends-line { font-size: 0.95rem; margin: 0.15rem 0 0.4rem; }
.desc-field textarea { min-height: 9rem; overflow: hidden; }
/* Field help sits between the label and its control: a sentence on what
   the field is for, in the hint voice. */
.field-help { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.88rem; margin: 0.1rem 0 0.35rem; }
.audience-field { margin-bottom: 0.9rem; }
.audience-field legend { font-weight: 700; margin-bottom: 0.3rem; }
.audience-field .field-help { margin-top: 0; }
.audience-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.audience-row label.radio { margin-bottom: 0; }

/* ---- game-system combobox ---- */
.system-field { margin-bottom: 0.9rem; }
.combo { position: relative; margin-top: 0.3rem; }
.combo input[type="text"] { margin-top: 0; padding-right: 4.2rem; }
.combo-clear, .combo-toggle {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--ink-soft); cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 0.3rem 0.45rem;
}
.combo-toggle { right: 0.35rem; }
.combo-clear { right: 2rem; }
.combo-clear:hover, .combo-toggle:hover { color: var(--ink); }
.combo-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 16rem; overflow-y: auto; list-style: none; margin: 0; padding: 0.25rem 0;
  background: #fff; border: 1.5px solid var(--ink); border-radius: 6px;
  box-shadow: 4px 4px 0 var(--shadow);
}
.combo-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem;
  padding: 0.42rem 0.75rem; cursor: pointer; font-size: 0.98rem; }
.combo-list li.combo-hi { background: var(--paper-deep, #f3ede2); }
.combo-list li.combo-on { font-weight: 600; }
.combo-cat { color: var(--ink-soft); font-size: 0.8rem; white-space: nowrap; }
.combo-empty { color: var(--ink-soft); font-size: 0.9rem; cursor: default; }

/* Experience: stacked radios, each carrying its own quiet hint. */
.audience-stack { display: flex; flex-direction: column; gap: 0.35rem; }
.audience-stack label.radio { margin-bottom: 0; }
.radio-hint { color: var(--ink-soft); font-weight: 400; font-size: 0.9rem; }

/* The When row, Luma-shaped: one height across the three controls, a
   compact calendar popover, and a type-or-pick time field. */
.when-row input[type="date"], .when-row select, .date-btn, .time-input {
  height: 2.55rem; box-sizing: border-box; margin-top: 0;
  padding: 0 0.7rem; font: inherit; font-size: 0.98rem;
}
.date-pick, .time-pick { position: relative; display: inline-block; }
.date-native-off { display: none; }
.date-btn {
  background: #fff; border: 1.5px solid var(--ink, #2b2115);
  border-radius: 6px; cursor: pointer; min-width: 0; text-align: left;
}
.date-btn:hover { border-color: var(--rust-dark, #8c2f1b); }
.date-pop {
  position: absolute; z-index: 40; top: calc(100% + 0.35rem); left: 0;
  display: block; width: 15.5rem; padding: 0.65rem 0.7rem 0.7rem;
  background: var(--paper, #faf6ec); border: 1px solid var(--line, #d8cfba);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(43, 33, 21, 0.16);
}
.date-pop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.date-pop-head strong { font-size: 0.98rem; }
.date-nav-group { display: flex; align-items: center; gap: 0.1rem; }
.date-nav {
  background: none; border: 0; border-radius: 6px; color: var(--ink-soft);
  font-size: 1.05rem; line-height: 1; padding: 0.2rem 0.4rem; cursor: pointer;
}
.date-nav:hover:not(:disabled) { color: var(--ink, #2b2115); background: rgba(43, 33, 21, 0.06); }
.date-nav:disabled { opacity: 0.3; cursor: default; }
.date-nav-dot { font-size: 0.85rem; }
.date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.date-grid-head { color: var(--ink-soft); font-size: 0.68rem; font-weight: 600; text-align: center; margin-bottom: 0.1rem; }
.date-grid-head span { padding: 0.1rem 0; }
.date-cell {
  background: none; border: 0; border-radius: 7px;
  font: inherit; font-size: 0.88rem; padding: 0.32rem 0; text-align: center; cursor: pointer;
}
.date-cell:hover:not(:disabled) { background: rgba(43, 33, 21, 0.07); }
.date-cell:disabled { color: var(--ink-soft); opacity: 0.35; cursor: default; }
.date-out { color: var(--ink-soft); opacity: 0.5; }
.date-sel, .date-sel:hover:not(:disabled) { background: var(--rust-dark, #8c2f1b); color: var(--paper, #faf6ec); font-weight: 600; }

/* The generic .row-form text-input rule wants flex:1 — pin this one. */
.when-row .time-input, .row-form .time-input { flex: 0 0 auto; width: 6.2rem; min-width: 0; }
.time-list {
  position: absolute; z-index: 40; top: calc(100% + 0.35rem); left: 0;
  display: flex; flex-direction: column; width: 7.6rem; max-height: 15rem;
  overflow-y: auto; padding: 0.3rem;
  background: var(--paper, #faf6ec); border: 1px solid var(--line, #d8cfba);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(43, 33, 21, 0.16);
}
.time-opt {
  background: none; border: 0; border-radius: 6px; font: inherit;
  font-size: 0.92rem; padding: 0.3rem 0.55rem; text-align: left; cursor: pointer;
}
.time-opt:hover { background: rgba(43, 33, 21, 0.07); }
.time-opt-sel, .time-opt-sel:hover { background: var(--rust-dark, #8c2f1b); color: var(--paper, #faf6ec); }

/* Venue cards: the Where section knows about your When. */
.venue-cards { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.3rem; }
.venue-card {
  position: relative; display: flex; align-items: center; gap: 0.75rem;
  cursor: pointer; overflow: hidden; margin: 0;
  border: 2px solid var(--line, #d8cfba); border-radius: 8px; padding: 0.55rem 0.7rem;
  background: var(--paper, #faf6ec);
}
.venue-card:hover { border-color: var(--ink, #2b2115); }
.venue-card:has(input:checked) { border-color: var(--rust-dark, #8c2f1b); box-shadow: 0 0 0 1px var(--rust-dark, #8c2f1b); }
.venue-card input { position: absolute; opacity: 0; pointer-events: none; }
.venue-pick-photo { display: block; width: 64px; height: 64px; max-width: 64px; border-radius: 7px; object-fit: cover; flex: none; margin: 0; }
.venue-pick-photo-blank {
  display: flex; align-items: center; justify-content: center;
  background: rgba(43, 33, 21, 0.08); color: var(--ink-soft);
  font-size: 1.4rem; font-weight: 700;
}
.venue-card-body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.venue-card-addr { color: var(--ink-soft); font-size: 0.85rem; }
.venue-card-hours { font-size: 0.85rem; color: var(--ink-soft); }
.venue-card-closed { opacity: 0.55; }
.venue-card-closed .venue-card-hours, .venue-card-tight .venue-card-hours { color: var(--rust-dark, #8c2f1b); font-weight: 600; }

/* ---- markdown-rendered host text (game description) ---- */
.md-body { color: var(--ink-soft); }
.md-body > * + * { margin-top: 0.8rem; }
.md-body p { margin: 0; }
.md-body p + p { margin-top: 0.8rem; }
.md-body h1, .md-body h2, .md-body h3, .md-body h4 { color: var(--ink); font-size: 1.08rem; margin-top: 1.1rem; }
.md-body ul, .md-body ol { padding-left: 1.4rem; }
.md-body li + li { margin-top: 0.2rem; }
.md-body blockquote { border-left: 3px solid var(--line, #d9cfbd); padding-left: 0.9rem; color: var(--ink-soft); }
.md-body code { font-size: 0.92em; background: var(--paper-deep, #f3ede2); padding: 0.05em 0.3em; border-radius: 3px; }
.md-body pre { background: var(--paper-deep, #f3ede2); padding: 0.7rem 0.9rem; border-radius: 6px; overflow-x: auto; }
.md-body table { border-collapse: collapse; font-size: 0.95rem; }
.md-body th, .md-body td { border: 1px solid var(--line, #d9cfbd); padding: 0.3rem 0.6rem; }
.md-body img { max-width: 100%; }
.avatar-link { display: inline-flex; flex-shrink: 0; border-radius: 50%; text-decoration: none; }
.avatar-link:hover .avatar { box-shadow: 0 0 0 2px var(--rust); }

/* ---- replies under a from-the-table post ---- */
.table-replies { margin: 0.6rem 0 0 1.1rem; padding-left: 0.9rem; border-left: 2px solid var(--line, #e4dccb); }
.table-reply + .table-reply { margin-top: 0.55rem; }
.table-reply .table-post-body { margin-top: 0.2rem; font-size: 0.96rem; }
.table-reply-form { margin-top: 0.5rem; }
.table-reply-form summary { cursor: pointer; font-size: 0.9rem; list-style: none; }
.table-reply-form summary::-webkit-details-marker { display: none; }
.table-reply-form[open] summary { color: var(--ink-soft); }
.table-reply-form textarea { min-height: 3.2rem; }

/* The picker: a vertical list you tick through. Day and date lead in
   bold; the session's name (when it has one) follows. Ticking a row
   fills its box, tints the row, and lights a rust edge — a checklist
   that feels good to work down. Held rows lock in ink. */
.picker-head { align-items: baseline; margin-bottom: 0.55rem; }
.picker-head h3 { margin: 0; }
.picker-bulk { display: flex; gap: 0.9rem; font-size: 0.85rem; }
.slist { display: flex; flex-direction: column; border-top: 1px solid var(--line, #d8cfba); }
/* Four lanes, identical on every row: box · when · who · badge. Pinning
   the left edge of each lane gives the eye a line to ride down. */
.srow {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 2.2rem minmax(0, 1fr) 12.2rem 5.5rem; column-gap: 0.45rem;
  margin: 0; padding: 0.72rem 0.75rem 0.72rem 0.45rem; cursor: pointer;
  border-bottom: 1px solid var(--line, #d8cfba);
  border-left: 3px solid transparent;
  transition: background 110ms ease, border-color 110ms ease, transform 110ms ease;
}
@media (max-width: 820px) {
  /* Narrow: the two right lanes drop under the date, still left-pinned. */
  .srow { grid-template-columns: 2.5rem minmax(0, 1fr) 5.5rem; }
  .swho { grid-column: 2 / 4; }
}
.srow-static { cursor: default; }
.srow:not(.srow-static):hover { background: rgba(43, 33, 21, 0.035); }
.srow input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.sbox {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 7px;
  border: 2px solid var(--line, #d8cfba); background: #fff;
  color: transparent; font-size: 0.9rem; line-height: 1;
  transition: background 110ms ease, border-color 110ms ease, transform 130ms ease;
}
.srow:not(.srow-static):hover .sbox { border-color: var(--ink, #2b2115); }
.srow:has(input:checked) { background: rgba(140, 47, 27, 0.06); border-left-color: var(--rust-dark, #8c2f1b); transform: translateX(1px); }
.srow:has(input:checked) .sbox {
  background: var(--rust-dark, #8c2f1b); border-color: var(--rust-dark, #8c2f1b);
  color: var(--paper, #faf6ec); transform: scale(1.06);
}
.srow:has(input:checked) .sbox::after { content: "✓"; }
/* A seat you hold: ink box, tinted row. Unticking one stages a leave —
   the row goes quiet and says so, and nothing happens until the button. */
.srow-held:has(input:checked) { background: rgba(43, 33, 21, 0.04); border-left-color: var(--ink, #2b2115); }
.srow-held:has(input:checked) .sbox { background: var(--ink, #2b2115); border-color: var(--ink, #2b2115); color: var(--paper, #faf6ec); }
.srow-held:has(input:checked) .sbox::after { content: "✓"; }
.srow-held:has(input:not(:checked)) { opacity: 0.6; }
.srow-held:has(input:not(:checked)) .sdate { text-decoration: line-through; }

.srow-past { opacity: 0.5; }
.sbody { min-width: 0; display: flex; flex-direction: column; gap: 0.12rem; }
.sline { display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: nowrap; min-width: 0; }
/* Scanning order: date, then what it is, then when it starts. */
.sdate { flex: none; width: 5.5rem; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; white-space: nowrap; }
/* The number is a reference, not a label — the heading names the noun. */
.snum { flex: none; width: 2.1rem; color: var(--ink-soft); font-weight: 600; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.sname { font-weight: 600; font-size: 0.97rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stime { flex: none; width: 3.6rem; color: var(--ink-soft); font-size: 0.82rem; white-space: nowrap; }
.snote { grid-column: 2 / -1; color: var(--ink-soft); font-size: 0.86rem; margin-top: 0.15rem; }
/* Who's in: its own lane, left-pinned, clipped rather than pushed. The
   count leads so it survives the ellipsis. */
/* The faces are the anchor: right-aligned in their own area so the last
   avatar always lands on the same edge, with the count starting just
   after it. Both stable, and the warm part gets the strong line. */
.swho { display: grid; grid-template-columns: 1fr 4.3rem; align-items: center; column-gap: 0.55rem; min-width: 0; }
.sfaces { justify-self: end; }
.sgoing { justify-self: start; }
.swho-text { grid-column: 1 / -1; justify-self: end; }
/* The count is the scannable part, so it leads and holds a fixed lane;
   the faces hold a constant width whether two or three; the names come
   last and quietest. */
.sgoing { flex: none; font-size: 0.85rem; font-weight: 650; white-space: nowrap; }
.sfaces { flex: none; }
.sright { display: flex; align-items: center; gap: 0.4rem; justify-content: flex-start; }
.sfaces { display: inline-flex; padding-left: 0.28rem; }
.sface {
  width: 1.35rem; height: 1.35rem; border-radius: 50%; object-fit: cover;
  margin-left: -0.28rem; border: 2px solid var(--card, #fffdf7); background: var(--card, #fffdf7);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: var(--ink-soft);
}
.sface-fallback { background: rgba(43, 33, 21, 0.1); }
.swho-text { font-size: 0.8rem; color: var(--ink-soft); opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.swho-empty { font-style: italic; opacity: 0.8; }
/* The face stack is a button: it opens the roster rather than ticking
   the row. Styled as nothing — the faces and the count are the affordance. */
.swho-btn {
  font: inherit; color: inherit; background: none; border: none;
  margin: 0; padding: 0; text-align: inherit; cursor: pointer;
}
.swho-btn:hover .sgoing { text-decoration: underline; }
.swho-btn:focus-visible { outline: 2px solid var(--rust-dark, #8c2f1b); outline-offset: 3px; border-radius: 6px; }
.srow:has(input:checked) .sface, .srow-held .sface { border-color: var(--card, #fffdf7); }
/* Scarcity only when it's real: a fraction all day says nothing, but
   "1 spot left" the moment it's true says everything. */
.sfull, .sleft {
  flex: none; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  border-radius: 99px; padding: 0.08rem 0.5rem; white-space: nowrap;
  color: var(--ink-soft); border: 1px solid var(--line, #d8cfba);
}
.sleft { color: var(--rust-dark, #8c2f1b); border-color: var(--rust-dark, #8c2f1b); }
.sin { flex: none; font-size: 0.75rem; color: var(--ink, #2b2115); font-weight: 600; white-space: nowrap; }
.srow-held:has(input:not(:checked)) .sin { display: none; }
.sleaving { display: none; font-size: 0.75rem; font-weight: 600; color: var(--rust-dark, #8c2f1b); }
.srow-held:has(input:not(:checked)) .sleaving { display: inline; }

.held-line { margin-top: 0.85rem; font-size: 0.9rem; color: var(--ink-soft); }
.held-line .linklike { font-size: inherit; }
.pick-actions { display: flex; align-items: center; gap: 0.9rem; margin-top: 1rem; flex-wrap: wrap; }
.pick-actions .btn { margin: 0; }
.pick-actions .btn:disabled { opacity: 0.45; cursor: default; }
.pick-actions-note { font-size: 0.85rem; }
.ticket-anchor { position: absolute; top: -4rem; }
