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

:root {
  --bg:        #111111;
  --card:      #1a1a10;
  --card2:     #161610;
  --accent:    #14b8a6;
  --accent-dim:#0d9488;
  --text:      #f0e8d0;
  --muted:     #888878;
  --border:    #2a2a1a;
}

html { scroll-behavior: smooth; }
@media (min-width: 769px) { html { font-size: 106.25%; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  /* Sticky footer: short pages (draft, logins, opt-out) would otherwise end
     mid-viewport, leaving a dead band under the footer. */
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ── NAV ── */
body > nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 64px;
  background: rgba(17,17,11,0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; }
.nav-coords {
  font-size: 0.6rem; letter-spacing: 0.1em; line-height: 1;
  color: var(--muted); font-family: 'Rajdhani', monospace, sans-serif;
  margin-top: 0.18rem;
}
.gg-mark {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-weight: 800; font-size: 1.35rem;
  letter-spacing: -0.04em; color: var(--accent);
  line-height: 1; user-select: none; text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 4px;
  background: none; border: none; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease, background 0.2s;
}
.nav-hamburger:hover span { background: var(--accent); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: rgba(17,17,11,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.mobile-menu.open { max-height: 300px; }
.mobile-menu ul { list-style: none; padding: 0.25rem 0 0.5rem; }
.mobile-menu ul li a {
  display: block; padding: 0.45rem 1.5rem; text-align: right;
  text-decoration: none; color: var(--muted);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.2s;
}
.mobile-menu ul li a:hover { color: var(--accent); }

/* ── COMMON ── */
main { padding-top: 64px; flex: 1 0 auto; display: flex; flex-direction: column; }
section { padding: 5rem 2.5rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem;
}
.section-title {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  text-transform: uppercase; color: #fff; margin-bottom: 2.5rem;
}

/* ── HERO ── */
#hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  padding: 6rem 2.5rem 4rem;
  background: #0a0a08;
  overflow: hidden;
  margin: 50px;
}
.hero-mosaic {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 30px;
  z-index: 0;
}
.hero-mosaic-panel {
  background-size: cover;
  background-position: center;
  filter: blur(5px);
  opacity: 0.3;
}
.hero-mosaic-panel.p1 { background-image: url('/static/hero_bg_p1.jpg'); }
.hero-mosaic-panel.p2 { background-image: url('/static/hero_bg_p3.jpg'); background-size: 135%; }
.hero-mosaic-panel.p3 { background-image: url('/static/hero_bg_p2.jpg'); }

.hero-mosaic-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,8,0.55) 0%, rgba(10,10,8,0.72) 100%);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; width: 100%; }
.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.25rem;
}
.hero-heading {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: clamp(3rem, 9vw, 7rem); font-weight: 800;
  line-height: 0.93; text-transform: uppercase; color: #fff;
  max-width: 14ch; margin-bottom: 1.5rem;
}
.hero-sub { font-size: 1rem; color: var(--text); letter-spacing: 0.05em; margin-bottom: 2.5rem; }
.hero-blr { color: var(--accent); }
.btn-primary {
  display: inline-block; padding: 0.8rem 2.2rem;
  background: var(--accent); color: #111;
  /* Bebas Neue only ships one weight — requesting 700 forces the browser to
     fake-bold it, which roughens/closes up this condensed face at small
     sizes and reads as blurry rather than bold. */
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-weight: 400;
  font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
}
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn-outline {
  display: inline-block; padding: 0.8rem 2.2rem;
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-weight: 400; /* see .btn-primary */
  font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.btn-outline:hover { background: var(--accent); color: #111; transform: translateY(-1px); }

/* ── GAME CARD ── */
#game { padding: 0 2.5rem 5rem; }
.game-card {
  max-width: 1100px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--border);
  border-top: 3px solid var(--accent); padding: 2rem 2.5rem;
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
}
/* Stretched-anchor pattern, shared by the live-game card and any card that
   links out to a full page instead of showing its content inline (the
   experimental team-draft card links to /game — see .game-card--linked). */
.game-card--live, .game-card--linked { position: relative; }
.game-card--live > *:not(.game-card-live-link),
.game-card--linked > *:not(.game-card-live-link) { position: relative; z-index: 2; pointer-events: none; }
.game-card--live .game-watch-live,
.game-card--linked .btn-submit { pointer-events: auto; display: inline-block; text-decoration: none; }
.game-card-live-link { position: absolute; inset: 0; z-index: 1; }
.game-card--live:hover, .game-card--linked:hover { border-color: var(--accent); }
.game-card--live .game-highlight::before { animation: game-live-pulse 1.5s ease-in-out infinite; }
.game-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.game-edition {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent-dim); padding: 0.15rem 0.6rem;
}
.game-date { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; margin-top: 0.25rem; }
.game-title { font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
/* Host's line about the edition, set as a pull-quote.
   It used to be accent-coloured like everything else here, which is exactly
   why it melded: on this card teal is the LABEL colour (.game-edition,
   .game-location), so accent type reads as metadata. The flair is the one
   piece of human voice on the card, so it takes the content colour and a size
   above the metadata, and the accent moves to the quote mark instead — framing
   the line rather than tinting it.
   max-width holds a readable measure on desktop; the text arrives already
   capped (wg.truncate_flair) so it can't run past a few lines. */
.game-flair {
  position: relative;
  margin-top: 0.9rem; padding-left: 2rem; max-width: 46ch;
  font-size: 0.88rem; font-style: italic; line-height: 1.55;
  color: var(--text); opacity: 0.9;
}
.game-flair::before {
  content: '\201C';
  position: absolute; left: -0.1rem; top: -0.5rem;
  /* The only serif on the card, and only ever this one glyph: a sans quote
     mark is a limp rectangle at this size. */
  font-family: Georgia, 'Times New Roman', serif;
  font-style: normal; font-size: 3.4rem; line-height: 1;
  color: var(--accent); opacity: 0.3;
  pointer-events: none;
}
/* Team-draft badge. Only ever appears on /game now — it was on the home card
   too, at outline weight, where it read as more metadata and got skipped. On a
   page whose whole job is explaining this mode it earns a solid fill: it's the
   one element here that inverts the accent instead of outlining it, so nothing
   else on the page competes with it. */
.game-tag {
  display: inline-block;
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 0.95rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bg); background: var(--accent);
  padding: 0.3rem 0.85rem;
}
.game-location { font-size: 0.75rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem; opacity: 0.8; }
.game-when { font-family: 'Inter', system-ui, sans-serif; font-size: 0.85rem; font-weight: 400; color: #fff; opacity: 0.75; margin-bottom: 0.25rem; }
.game-date-time, .game-hub-header .game-when {
  font-family: 'Rajdhani', 'Inter', sans-serif; font-size: 1.15rem; font-weight: 600;
  letter-spacing: 0.035em; color: var(--text); opacity: 1; margin-top: 0.15rem;
}
.game-attendees { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; line-height: 1.6; }
.game-spots { text-align: center; min-width: 165px; }
.spots-label { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.spots-draw-date { font-size: 0.68rem; color: var(--muted); opacity: 0.75; margin-top: 0.3rem; }
.team-slot-open {
  display: flex; align-items: center; justify-content: center; gap: 0.38rem;
  margin-top: 0.35rem; color: #35d07f; font-size: 0.68rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.team-slot-open::before {
  content: ''; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%;
  background: #35d07f; box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.5);
  animation: team-slot-pulse 2.4s ease-in-out infinite;
}
@keyframes team-slot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.5); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(53, 208, 127, 0); }
}
.spots-bar-track { width: 100%; height: 5px; background: var(--border); margin-bottom: 0.45rem; overflow: hidden; }
.spots-bar-fill { height: 100%; background: var(--accent); box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 55%, transparent); }
.spots-bar-fill--warm { background: #f59e0b; box-shadow: 0 0 8px color-mix(in srgb, #f59e0b 55%, transparent); }
.spots-number { font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; }

/* Card accent tracks the game's lifecycle stage: a live/upcoming game keeps
   the brand teal; an open host call runs warm amber (act now); a closed
   edition fades to the same gold already used for archive-row hover
   (memory, not urgency). Scoped custom properties so every var(--accent)
   already used inside the card — badge, location, join CTA — retints for free. */
.game-card--announce { --accent: #f59e0b; --accent-dim: #b45309; }
.game-card--recap    { --accent: #c9a43c; --accent-dim: #8c732a; }

/* The state line — the one sentence that says where the edition stands. Loudest
   type on the card; the game name below it stays white so the two don't fight.
   Its square marker goes live once the guestlist is drafted. */
.game-highlight {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 1.35rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.35rem;
}
.game-highlight::before {
  content: ''; width: 7px; height: 7px; flex: 0 0 auto; background: var(--accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.game-card--drafted .game-highlight::before { animation: game-live-pulse 2.4s ease-in-out infinite; }
@keyframes game-live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* Hosted by — faces only. Names live on hover (title), so the row reads as a
   place rather than a credit line. Couples resolve to two overlapping faces. */
.game-hosts { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.1rem; }
.game-hosts-label {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.game-host-faces { display: flex; }
.game-host-face {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--accent-dim); background: var(--card2);
  box-shadow: 0 0 0 3px var(--card);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.game-host-face + .game-host-face { margin-left: -0.6rem; }
.game-host-face:hover { transform: translateY(-2px) scale(1.06); border-color: var(--accent); z-index: 1; }
.game-host-face img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }

/* ── GAME JOIN (CTA on the card) ── */
.game-join { grid-column: 1 / -1; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.game-join-invite { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.86rem; }
.join-prompt {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 0.95rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.game-warning {
  font-family: 'Inter', system-ui, sans-serif; font-size: 0.85rem; font-weight: 400;
  color: var(--text); opacity: 0.85; line-height: 1.5; margin-bottom: 1rem;
  padding-left: 0.7rem; border-left: 2px solid #f59e0b;
}
.join-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.85rem; }
.join-form .form-field { flex: 1 1 200px; margin-bottom: 0; }
.form-field select {
  width: 100%; background-color: var(--card); border: 1px solid var(--border);
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.95rem;
  padding: 0.75rem 2.2rem 0.75rem 1rem; outline: none; cursor: pointer;
  transition: border-color 0.2s;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888878' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
}
.form-field select:focus { border-color: var(--accent-dim); }
.form-field select option { background: var(--card); color: var(--text); }
.join-form .btn-submit { width: auto; margin-top: 0; padding: 0.78rem 1.9rem; white-space: nowrap; flex: 0 0 auto; }
.join-msg {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 1.1rem;
  letter-spacing: 0.06em; color: var(--accent); line-height: 1.5; margin: 0;
}
.join-tabs {
  display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem;
}
.join-tab {
  background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted); font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.45rem 1rem 0.55rem; cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.join-tab:hover { color: var(--text); }
.join-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.join-panel.hidden { display: none; }
.join-form-cold .form-field { flex: 1 1 220px; }
.join-form-cold .form-field-wide { flex: 1 1 100%; }

/* Join gateway. The game card remains the invitation; this surface handles
   identity without making the three membership types look like dense tabs. */
.join-page { min-height: 75vh; padding: 7rem 1.5rem 5rem; }
.join-page-inner { max-width: 820px; }
.join-page-back, .join-back {
  color: var(--muted); font-size: 0.8rem; text-decoration: none;
}
.join-page-back:hover, .join-back:hover { color: var(--accent); }
.join-game-summary {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin: 1.4rem 0 1rem; padding: 1.8rem; border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--card), var(--card2));
}
.join-game-summary h1, .join-gateway-copy h2 {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-weight: 400;
  letter-spacing: 0.04em; margin: 0.2rem 0 0.45rem;
}
.join-game-summary h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.join-summary-location { color: var(--accent); margin: 0; }
.join-summary-date { color: var(--muted); font-size: 0.86rem; margin: 0.25rem 0 0; }
.join-summary-status { min-width: 90px; text-align: right; }
.join-summary-status strong { display: block; color: var(--accent); font: 2.4rem 'Bebas Neue', sans-serif; line-height: 1; }
.join-summary-status span { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; }
.join-page-gateway {
  border: 1px solid var(--border); background: var(--card); padding: 2rem; margin-top: 1rem;
}
.join-gateway-copy h2 { font-size: 2rem; }
.join-gateway-copy > p:last-child { color: var(--muted); margin: 0 0 1.4rem; }
.join-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.join-path {
  min-height: 160px; display: flex; flex-direction: column; align-items: flex-start;
  text-align: left; padding: 1.15rem; border: 1px solid var(--border); background: var(--bg);
  color: var(--text); cursor: pointer; transition: transform 0.16s, border-color 0.16s, background 0.16s;
}
.join-path:hover, .join-path.active { transform: translateY(-2px); border-color: var(--accent-dim); background: var(--card2); }
.join-path-kicker { color: var(--accent); font: 0.68rem 'Rajdhani', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.join-path strong { margin: auto 0 0.35rem; font: 1.25rem 'Bebas Neue', 'Rajdhani', sans-serif; letter-spacing: 0.04em; }
.join-path small { color: var(--muted); line-height: 1.4; }
.join-panel-form { margin-top: 1rem; padding: 1.4rem; border: 1px solid var(--accent-dim); background: var(--card2); }
.join-back { display: inline-block; border: 0; background: none; padding: 0; margin-bottom: 1rem; cursor: pointer; }

/* Team-preference radio (experimental team draft, §7) — solo is preselected,
   teaming is the upsell. Legend, each option, and the aside note each get
   their own row so the label never shares a line with "Solo". */
.team-pref-field { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
/* Claim the whole form row. Without this the generic `.join-form .form-field`
   200px basis applies and the field gets squeezed next to other fields. */
.join-form .team-pref-field { flex: 1 1 100%; }
.team-pref-legend {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.team-pref-option { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--text); cursor: pointer; }
.team-pref-option input { accent-color: var(--accent); }
.team-pref-aside { align-self: stretch; font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }

/* ── GAME HUB (/game — experimental team-draft opt-in page, §7) ── */
.game-hub-inner { max-width: 720px; }
.game-hub-header { margin-bottom: 2rem; }
.game-hub-header .game-title { margin-top: 0.4rem; }
.game-hub-pool { margin-bottom: 1.5rem; }
.pool-reserved-names {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-bottom: 0.6rem;
}
.pool-reserved-names li { font-size: 0.95rem; color: var(--text); }
.pool-count { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }
/* Pre-draft pool counts sit below the open-slot line as compact supporting
   facts, rather than competing with the countdown as headline cards. */
.pool-stats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: -0.25rem 0 0.8rem; opacity: 0.72; }
.pool-stat { display: flex; align-items: baseline; gap: 0.6rem; }
.pool-stat--filled { display: block; }
.pool-stat--filled .team-slot-open { justify-content: flex-start; }
.pool-stat-val { font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 1.8rem; color: var(--accent); }
.pool-stat-label {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.pool-stats .pool-stat {
  gap: 0.35rem; font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 1.3rem; letter-spacing: 0.03em; color: var(--muted);
}
.pool-stats .pool-stat-val { font-size: 1.3rem; line-height: 1; color: var(--muted); }
.pool-stats .pool-stat-label { font-size: inherit; letter-spacing: inherit; text-transform: none; color: var(--muted); opacity: 0.8; }

/* The countdown is what brings people back to this page, so it carries the
   block: accent rule, oversized ticker, everything else deferring to it. */
.draw-countdown-block {
  margin-bottom: 1.5rem; padding: 1.15rem 1.35rem;
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}
.draw-slots {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 1.3rem;
  letter-spacing: 0.03em; color: var(--accent); margin-bottom: 0.75rem;
}
.draw-countdown-label {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.15rem;
}
.draw-countdown {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 2.8rem; line-height: 1.05; letter-spacing: 0.02em; color: var(--accent);
}
/* Only once JS is driving it: tabular figures stop the digits jittering on
   every tick, and the accent marks it as live rather than a static date. */
.draw-countdown.is-ticking {
  color: var(--accent); font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
.draw-countdown-at { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
.draw-countdown-at[hidden] { display: none; }
.teaming-blurb { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 2rem; }
.teaming-blurb a { color: var(--accent); text-decoration: none; }
.teaming-blurb a:hover { text-decoration: underline; }
.slot-list { margin-bottom: 1.5rem; }
.slot-rows { list-style: none; }
.slot-row { padding: 0.35rem 0; font-size: 0.95rem; color: var(--text); }
.slot-host-tag {
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent-dim); padding: 0.1rem 0.5rem; margin-left: 0.5rem;
}
.waitlist-block { margin-bottom: 1rem; }
.waitlist-count { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.6rem; }
.waitlist-names { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin-bottom: 0.6rem; }
.waitlist-names li { font-size: 0.9rem; color: var(--text); }
.waitlist-note { font-size: 0.78rem; color: var(--muted); font-style: italic; }

/* Post-draft late opt-in invitation copy (§Part 2 of the late-join gap fix) —
   names the actual situation (free slot / team vacancy / waitlist-only) so
   the ask matches reality instead of assuming the table is closed. */
.post-draft-invite { margin-bottom: 1.5rem; }
.invite-copy {
  font-size: 0.9rem; color: var(--text); line-height: 1.5;
  padding-left: 0.7rem; border-left: 2px solid var(--accent);
}
/* Plain-language draft-mechanics recap, shared by both /game modes via the
   draft_brief() macro — the long version stays at /draft. */
.draft-brief {
  margin-bottom: 2rem; border-top: 1px solid var(--border);
}
.draft-brief-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 0; color: var(--text); cursor: pointer; list-style: none;
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 1.05rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.draft-brief-summary::-webkit-details-marker { display: none; }
.draft-brief-summary::after {
  content: 'Show rules  +'; color: var(--accent); font-family: 'Inter', sans-serif;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; white-space: nowrap;
}
.draft-brief[open] .draft-brief-summary::after { content: 'Hide rules  −'; }
.draft-brief-content { padding: 0.25rem 0 0.2rem; }
.draft-brief .teaming-blurb { margin-bottom: 1rem; }
.draft-brief .draft-rules a { color: var(--accent); text-decoration: none; }
.draft-brief .draft-rules a:hover { text-decoration: underline; }

/* ── DRAFT EXPLAINER (standalone /draft page, linked from the bot) ── */
#draft {
  /* Short page: centre the block in whatever height main is given, so the
     slack splits above and below instead of pooling over the footer. */
  flex: 1 0 auto;
  display: flex; align-items: center;
  padding: 3rem 2.5rem;
}
.draft-inner { max-width: 62ch; }
#draft .section-title { margin-bottom: 1.25rem; }
.draft-subhead {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 1.25rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: #fff;
  margin: 2rem 0 0.75rem;
}
.draft-lede { color: var(--text); margin-bottom: 1.5rem; }
.draft-rules { list-style: none; }
.draft-rules li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.85rem;
  color: var(--muted);
}
.draft-rules li::before {
  content: '\25B8'; position: absolute; left: 0; top: 0;
  color: var(--accent);
}
.draft-back { margin-top: 2.5rem; }
.draft-back a { color: var(--muted); font-size: 0.8rem; }

/* ── ABOUT / ELIKA ── */
#about {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.about-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 200px 1fr;
  gap: 3rem; align-items: start;
}
.about-portrait { text-align: center; }
.about-avatar {
  width: 150px; height: 150px; border-radius: 50%;
  margin: 0 auto 1.1rem; overflow: hidden;
  border: 2px solid var(--accent-dim);
  box-shadow: 0 0 0 5px rgba(20,184,166,0.06), 0 12px 32px rgba(0,0,0,0.55);
  animation: about-watch 3.6s ease-in-out infinite;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes about-watch {
  0%, 100% { box-shadow: 0 0 0 5px rgba(20,184,166,0.05), 0 12px 32px rgba(0,0,0,0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(20,184,166,0.13), 0 12px 32px rgba(0,0,0,0.55); }
}
.about-name {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 1.5rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #fff; line-height: 1;
}
.about-role {
  display: inline-block; margin-top: 0.55rem;
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent-dim);
  padding: 0.2rem 0.6rem;
}
/* Elika's voice lines. Sits under the role pill and borrows its shape, but reads
   as a control: filled on hover, waves animate only while a clip plays. */
.about-voice {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin: 0.9rem auto 0; padding: 0.32rem 0.7rem;
  background: transparent; border: 1px solid var(--accent-dim);
  color: var(--accent); cursor: pointer;
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.about-voice svg { width: 15px; height: 15px; flex: none; overflow: visible; }
.about-voice svg path:first-child { fill: currentColor; }
.about-voice svg .wave {
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; opacity: 0.35;
}
.about-voice:hover {
  background: var(--accent); border-color: var(--accent); color: #000;
}
.about-voice:hover svg .wave { opacity: 0.85; }
.about-voice.speaking { border-color: var(--accent); }
.about-voice.speaking svg .wave-1 { animation: voice-wave 1.1s ease-in-out infinite; }
.about-voice.speaking svg .wave-2 { animation: voice-wave 1.1s ease-in-out 0.18s infinite; }
@keyframes voice-wave {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 1; }
}
/* Reserve the line's height so cycling clips never shifts the page. */
.about-voice-line {
  min-height: 2.4em; margin: 0.55rem 0 0;
  font-size: 0.9rem; line-height: 1.35; font-style: italic;
  color: var(--muted); transition: opacity 0.2s;
}
.about-voice-line:empty { opacity: 0; }

.about-dialogue { max-width: 58ch; }
.about-line {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.7;
  color: var(--text); margin-bottom: 0.85rem;
}
.about-line:last-child { margin-bottom: 0; }
.about-line.is-typing::after,
.about-line.is-current::after {
  content: ''; display: inline-block;
  width: 0.55ch; height: 1.05em; margin-left: 2px;
  background: var(--accent); vertical-align: -0.18em;
}
.about-line.is-current::after { animation: about-caret 1.05s steps(1) infinite; }
@keyframes about-caret { 50% { opacity: 0; } }
.about-more {
  display: none; margin-top: 1.4rem;
  background: var(--accent); border: 1px solid var(--accent);
  color: #000; font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.65rem 1.6rem; cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
  animation: about-more-pulse 2.4s ease-in-out infinite;
}
.about-more.is-ready { display: inline-block; }
.about-more:hover { filter: brightness(1.12); transform: translateY(-1px); animation: none; }
@keyframes about-more-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .about-avatar { animation: none; }
  .about-voice.speaking svg .wave-1,
  .about-voice.speaking svg .wave-2 { animation: none; opacity: 0.85; }
  .about-line.is-typing::after, .about-line.is-current::after { display: none; }
  .game-card--drafted .game-highlight::before { animation: none; }
  .team-slot-open::before { animation: none; }
}

/* ── LORE TOAST ── */
.lore-toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 300;
  width: clamp(260px, 30vw, 360px);
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1rem 2.5rem 1.25rem 1rem;
  display: flex; gap: 0.75rem; align-items: flex-start;
  overflow: hidden;
  transform: translateY(calc(100% + 2rem)); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2,0,0,1), opacity 0.35s ease;
}
.lore-toast.visible  { transform: translateY(0); opacity: 1; }
.lore-toast.dismissed { transform: translateY(calc(100% + 2rem)); opacity: 0; }
.lore-toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.05rem; }
.lore-toast-text {
  flex: 1; font-size: 0.85rem; line-height: 1.6; color: var(--text);
}
.lore-toast-close {
  position: absolute; top: 0.6rem; right: 0.7rem;
  background: none; border: none; color: var(--muted);
  font-size: 1rem; cursor: pointer; line-height: 1; padding: 0;
  transition: color 0.15s;
}
.lore-toast-close:hover { color: var(--text); }
.lore-toast-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform-origin: left; transform: scaleX(0);
}
.lore-toast.visible .lore-toast-bar {
  animation: lore-bar 9s linear forwards;
}
@keyframes lore-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ── COMMUNITY ── */
#community { background: var(--bg); }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.member-card {
  background: var(--card); border: 1px solid var(--border);
  padding: 1.75rem 1.25rem; text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.member-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
.member-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  border: 2px solid var(--accent-dim);
  margin: 0 auto 1rem; overflow: hidden;
  background: #1e1e14;
}
.member-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
/* Per-avatar framing nudges (eyeballed px; live-tweakable). Targeted by avatar filename.
   Square/exact-fit crops have no overflow to slide into, so they use a small scale to make room. */
.member-avatar img[src$="/1147049746.jpg"] { object-position: center -4px; }               /* Poornima — up */
.member-avatar img[src$="/1143562455.jpg"] { transform: translateY(8px) scale(1.25); }      /* Eldrida — down */
.member-avatar img[src$="/5879283575.jpg"] { transform: translate(-4px, -4px) scale(1.15); } /* Reuben — left + up */
.member-name {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 1.05rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: #fff; margin-bottom: 0.5rem;
}
.member-interests { font-size: 1.1rem; letter-spacing: 0.06em; }
.member-card { cursor: pointer; }
.member-detail {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.25s ease;
  width: 100%; margin-top: 0;
}
.member-card.expanded .member-detail {
  max-height: 200px; opacity: 1; margin-top: 0.8rem;
}
.member-detail-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.7rem; padding: 0.25rem 0;
  border-top: 1px solid var(--border);
}
.detail-label {
  color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.62rem;
}
.detail-val { color: var(--text); text-align: right; max-width: 58%; }
.member-stamp {
  margin-top: 0.6rem; padding: 0.25rem 0.65rem;
  border: 1px solid var(--accent); color: var(--accent);
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-block; transform: rotate(-2deg); transform-origin: left center;
}
.community-profile-link { margin: 1.4rem 0 0; text-align: center; }
.community-profile-link a { color: var(--accent); text-decoration: none; font-size: 0.86rem; }

/* Community directory and public contribution board. */
.community-page { min-height: 75vh; padding-top: 7rem; }
.community-page .section-label, .community-page .section-title { text-align: center; }
.community-tabs { display: flex; justify-content: center; gap: 0.35rem; margin: 1.5rem 0 2.4rem; border-bottom: 1px solid var(--border); }
.community-tab { padding: 0.75rem 1.1rem; color: var(--muted); text-decoration: none; font-family: 'Bebas Neue', 'Rajdhani', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.community-tab:hover { color: var(--text); }
.community-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.community-profile-grid { align-items: start; }
.community-wall {
  max-width: 1180px; margin: 0 auto; padding: 0.55rem;
  background: #e8dfca; border: 1px solid #756d5d;
  box-shadow: 0 18px 50px rgba(0,0,0,0.38), 0 2px 8px rgba(0,0,0,0.45);
  transform: rotate(-0.18deg);
}
.community-wall img { display: block; width: 100%; height: auto; }

.karma-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.65rem 1.25rem; margin: 0 auto 2rem; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.karma-legend-item { display: inline-flex; align-items: center; gap: 0.42rem; }
.karma-swatch { width: 0.72rem; height: 0.72rem; display: inline-block; border-radius: 2px; }
.karma-swatch--hosting, .karma-score-segment--hosting { background: #d96c4f; }
.karma-swatch--attendance, .karma-score-segment--attendance { background: #d8b65a; }
.karma-swatch--mvp, .karma-score-segment--mvp { background: #efe2b2; }
.karma-swatch--memory, .karma-score-segment--memory { background: #b38cb4; }
.karma-swatch--voting, .karma-score-segment--voting { background: #7e9e62; }
.karma-swatch--selflessness, .karma-score-segment--selflessness { background: #55a9a6; }
.karma-intro { max-width: 720px; margin: 0 auto 1.5rem; text-align: center; color: var(--muted); }
.karma-help { position: relative; display: inline-block; color: var(--muted); }
.karma-help summary { display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; width: 1.1rem; height: 1.1rem; cursor: pointer; list-style: none; }
.karma-help summary::-webkit-details-marker { display: none; }
.karma-help span { position: absolute; z-index: 5; right: 0; top: 1.45rem; width: min(16rem, 75vw); padding: 0.65rem 0.75rem; background: var(--card); border: 1px solid var(--border); border-radius: 5px; color: var(--text); font-size: 0.75rem; line-height: 1.4; letter-spacing: normal; text-transform: none; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.karma-board { max-width: 920px; margin: 0 auto; border-top: 1px solid var(--border); }
.karma-score-row { display: grid; grid-template-columns: 8rem 1fr; gap: 1.2rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.karma-score-name { color: #fff; font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; }
.karma-score-track { height: 1.05rem; background: rgba(255,255,255,0.045); overflow: hidden; }
.karma-score-stack { display: flex; height: 100%; min-width: 2px; overflow: hidden; }
.karma-score-segment { display: block; height: 100%; }
.karma-empty { padding: 2rem 0; color: var(--muted); text-align: center; }
.karma-pagination { max-width: 920px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 1.5rem auto 0; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.karma-pagination a { color: var(--accent); text-decoration: none; }
.karma-pagination a:last-child { text-align: right; }

/* Karma admin: intentionally denser than the public profiles. */
.admin-karma-shell { padding: 5rem 1.5rem; }
.admin-karma-container { max-width: 820px; }
.admin-karma-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem 1.4rem; margin-bottom: 1rem; }
.admin-karma-card[data-current-draft="1"] { border-left: 3px solid var(--accent); }
.admin-notice { background: var(--card); border: 1px solid var(--accent-dim); border-radius: 6px; padding: 0.9rem 1.2rem; text-align: center; margin-bottom: 1.3rem; font-size: 0.85rem; }
.admin-notice--error { background: #3a1010; border-color: #7a2020; color: #e08080; }
.admin-karma-form { display: grid; grid-template-columns: 1.1fr 0.55fr 1.7fr auto; gap: 0.8rem; align-items: end; }
.admin-karma-form .form-field { margin: 0; }
.admin-karma-form input, .admin-karma-form select { width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 0.65rem 0.75rem; }
.admin-karma-list details summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.admin-karma-list details summary em { color: var(--accent); font-style: normal; font-size: 0.68rem; margin-left: 0.5rem; text-transform: uppercase; letter-spacing: 0.08em; }
.admin-karma-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; margin-top: 1rem; }
.admin-karma-breakdown span { background: var(--bg); padding: 0.65rem; color: var(--muted); font-size: 0.72rem; }
.admin-karma-breakdown b { display: block; margin-top: 0.2rem; color: var(--text); font-size: 0.95rem; }
.admin-karma-history { margin: 1rem 0 0; padding-left: 1.4rem; color: var(--muted); font-size: 0.78rem; }
.admin-karma-history small { float: right; }
.admin-karma-confirm h3 { margin: 0.2rem 0 1rem; }
.admin-karma-math { display: flex; gap: 1rem; align-items: baseline; font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; }
.admin-karma-math strong { color: var(--accent); }
.admin-karma-reason { color: var(--muted); }
.admin-karma-confirm form { display: flex; gap: 0.9rem; align-items: center; }
.admin-karma-cancel { color: var(--muted); text-decoration: none; }

/* ── HOSTS ── */
#hosts { background: var(--card2); }
.host-grid {
  display: flex; gap: 2px; align-items: stretch;
}
.host-card {
  flex: 0 0 64px; cursor: pointer; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  transition: flex 0.42s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s, background 0.2s;
  position: relative;
}
.host-card.expanded { flex: 1; border-top-color: var(--accent); }
.host-card:not(.expanded):hover { border-top-color: var(--accent-dim); background: #1e1e14; }
.host-card:not(.expanded):hover .host-tab { color: var(--text); }
/* Tab is an absolute overlay so the content below can stay in flow and define
   the card's height even while collapsed — that keeps every card the same
   (tallest) height regardless of which one is expanded. */
.host-tab {
  position: absolute; inset: 0;
  writing-mode: vertical-rl; transform: rotate(180deg);
  white-space: nowrap; font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  padding: 1.5rem 1.3rem;
  transition: opacity 0.15s, color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.host-card.expanded .host-tab { opacity: 0; pointer-events: none; }
/* Fixed width (independent of the animating card width) means the content's
   height never changes — collapsed or expanded, during or after the slide. */
.host-content {
  width: min(560px, calc(100vw - 610px));
  padding: 1.75rem 1.5rem;
  opacity: 0; transition: opacity 0.22s ease 0.25s;
  pointer-events: none; display: flex; flex-direction: column; gap: 0.9rem;
}
.host-card.expanded .host-content { opacity: 1; pointer-events: auto; }
.host-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.host-name {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: #fff;
}
.host-badge {
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent-dim);
  padding: 0.15rem 0.55rem; white-space: nowrap;
}
.host-locale { font-size: 0.78rem; color: var(--accent); letter-spacing: 0.06em; }
.host-flair { font-size: 0.88rem; color: var(--text); line-height: 1.65; opacity: 0.85; }
.host-tags-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--border);
}
.host-tag-badge {
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent-dim); padding: 0.15rem 0.55rem; white-space: nowrap;
}

.host-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem;
  padding: 1rem 0; border-top: 1px solid var(--border);
}
.host-stat-val {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 1.5rem; color: var(--accent); line-height: 1;
}
.host-stat-label {
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.2rem;
}
.host-last-session { }
.host-last-session-label {
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.2rem;
}
.host-last-session-text {
  font-size: 0.8rem; color: var(--text); opacity: 0.75; line-height: 1.55;
}
.host-game-cloud {
  margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1px solid var(--border);
}
.host-cloud-label {
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.45rem;
}
.host-cloud-tags {
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.65rem; align-items: baseline;
}
.host-cloud-tags span {
  color: var(--accent);
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  letter-spacing: 0.07em; line-height: 1.3; white-space: nowrap;
}

/* ── ARCHIVES ── */
#archives { background: var(--bg); }
.archive-list { list-style: none; border-top: 1px solid var(--border); }
.archive-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.archive-row:hover { background: rgba(201,164,60,0.04); padding-left: 0.5rem; }
.archive-num { font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 0.88rem; color: var(--accent); letter-spacing: 0.1em; min-width: 1.8rem; }
.archive-date { font-size: 0.88rem; color: var(--muted); min-width: 5rem; }
.archive-games { flex: 1; font-size: 1rem; color: var(--text); }
.archive-note { font-size: 0.88rem; color: var(--muted); font-style: italic; margin-top: 0.2rem; }
.archive-count { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.archive-list--collapsed .archive-row:nth-child(n+5) { display: none; }
.archive-toggle, .member-toggle {
  margin-top: 1.5rem; background: none; border: 1px solid var(--border);
  color: var(--accent); font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.4rem 1.2rem; cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.archive-toggle:hover, .member-toggle:hover { border-color: var(--accent); color: var(--text); }
.member-grid--collapsed .member-card:nth-child(n+9) { display: none; }
.archive-pagination { display: flex; gap: 2rem; margin-top: 2rem; }
.page-link {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); text-decoration: none; transition: color 0.2s;
}
.page-link:hover { color: var(--text); }

/* ── CONNECT ── */
#connect { background: var(--bg); min-height: 60vh; display: flex; align-items: center; }
#connect .container { width: 100%; }
.connect-form { max-width: 420px; }
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block; font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem;
}
.form-field input:not([type="radio"]):not([type="checkbox"]), .form-field textarea {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.95rem;
  padding: 0.75rem 1rem; outline: none; transition: border-color 0.2s;
  box-sizing: border-box; resize: vertical;
}
.form-field input:not([type="radio"]):not([type="checkbox"]):focus { border-color: var(--accent-dim); }
.btn-submit {
  margin-top: 0.5rem; width: 100%; padding: 0.85rem;
  background: var(--accent); color: #111;
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-weight: 400; /* see .btn-primary */
  font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: none; cursor: pointer; transition: filter 0.2s;
}
.btn-submit:hover { filter: brightness(1.12); }
.success-msg {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 2rem;
  font-weight: 700; color: var(--accent); letter-spacing: 0.05em;
}
.form-error { font-size: 0.8rem; color: #e05a5a; margin-bottom: 1rem; }

/* ── PHOTOS ── */
#photos {
  background: #0a0a08;
  padding: 5rem 2.5rem;
  position: relative;
  overflow: hidden;
  margin: 50px;
}
#photos::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/static/hero_background_blackboard.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: blur(7px);
  z-index: 0;
  pointer-events: none;
}
#photos::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,8,0.66) 0%, rgba(10,10,8,0.86) 100%);
  z-index: 0;
  pointer-events: none;
}
#photos .photos-inner {
  position: relative;
  z-index: 1;
}
.photos-inner { max-width: 1100px; margin: 0 auto; }
.photos-joke {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text); line-height: 1.55;
}
.photos-joke em { color: var(--accent); font-style: normal; }

/* ── NETWORK ── */
#network { background: #080808; padding: 5rem 2.5rem; }
.network-wrap { max-width: 1100px; margin: 0 auto; }
.network-svg-container {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.5rem;
  margin-top: 0;
}
#network-svg { width: 100%; height: auto; display: block; }
.map-expand-btn {
  position: absolute; top: 0.6rem; right: 0.6rem;
  background: rgba(8,8,8,0.75); border: 1px solid var(--border);
  color: var(--accent); font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.25rem 0.65rem; cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.map-expand-btn:hover { border-color: var(--accent); color: var(--text); }
#map-overlay {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.93);
  align-items: center; justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  overflow: auto;
}
#map-overlay.visible { display: flex; }
#map-overlay-inner { width: 100%; max-height: 90vh; }
#map-overlay svg { width: 100%; height: auto; max-height: 90vh; cursor: default; }
@media (max-width: 768px) {
  #map-overlay { padding: 3rem 0 0; align-items: flex-start; }
  #map-overlay-inner { min-width: 640px; }
  #map-overlay svg { max-height: none; }
}
.map-overlay-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: 1px solid var(--border);
  color: var(--accent); font-size: 1rem; line-height: 1;
  width: 2rem; height: 2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.map-overlay-close:hover { border-color: var(--accent); color: var(--text); }
.net-note {
  font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em;
  margin-top: 1rem; text-align: center;
}

/* ── RECAP REACTIONS ── */
.recap-reactions-block {
  margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.recap-reactions-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.reaction-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.42rem 0.85rem; border-radius: 6px;
  border: 1px solid var(--border); background: transparent; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.reaction-chip:hover { border-color: var(--accent-dim); transform: translateY(-1px); }
.reaction-chip.is-mine { border-color: var(--accent); background: rgba(20,184,166,0.12); }
.reaction-chip:disabled { opacity: 0.6; cursor: default; transform: none; }
.reaction-emoji { font-size: 1.05rem; line-height: 1; }
.reaction-label {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.reaction-chip.is-mine .reaction-label { color: var(--accent); }
.reaction-count { font-family: 'Inter', sans-serif; font-size: 0.72rem; color: var(--muted); }
.reaction-chip.is-mine .reaction-count { color: var(--accent); }

/* ── RECAP COMMUNITY HOST ── */
.recap-community-host {
  margin-bottom: 1.8rem; padding: 1.4rem;
  border: 1px solid var(--accent-dim); border-radius: 8px;
  background: rgba(20,184,166,0.07); text-align: center;
}
.recap-community-host-label {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.recap-community-hosts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.recap-community-host-person { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.recap-community-host-avatar {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--accent);
}
.recap-community-host-avatar img { width: 100%; height: 100%; object-fit: cover; }
.recap-community-host-name {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 1.35rem;
  letter-spacing: 0.04em; color: var(--text);
}
.recap-community-host-copy {
  max-width: 540px; margin: 1rem auto 0; color: var(--muted);
  font-size: 0.86rem; line-height: 1.55;
}

/* ── RECAP GUESTLIST ── */
.recap-guestlist {
  margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  text-align: center;
}
.recap-guestlist-label {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 0.66rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.9rem;
}
.recap-guestlist-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.guestlist-chip {
  display: inline-flex; align-items: center;
  padding: 0.32rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card2);
  font-family: 'Inter', sans-serif; font-size: 0.82rem; color: var(--text);
}

/* ── MVP HONORABLE MENTIONS ── */
.mvp-mentions {
  margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.mvp-mentions-label {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1rem;
}
.mvp-mentions-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.mvp-mention-chip {
  display: inline-flex; align-items: center;
  padding: 0.4rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
}
.mvp-mention-name {
  font-family: 'Bebas Neue', 'Rajdhani', sans-serif; font-size: 1.1rem;
  letter-spacing: 0.03em; color: var(--text);
}

/* ── FOOTER ── */
footer {
  padding: 2rem 2.5rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.footer-logo .gg-mark { font-size: 1rem; opacity: 0.5; }
.footer-tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  body > nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-coords { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: block; }
  #hero { min-height: 65vh; }
  section { padding: 3.5rem 1.25rem; }
  #game { padding: 0 1.25rem 3.5rem; }
  #lore { padding: 3rem 1.25rem; }
  .member-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .community-page { padding-top: 5.5rem; }
  .community-tabs { margin-bottom: 1.8rem; }
  .community-tab { padding: 0.7rem 0.75rem; font-size: 0.9rem; }
  .community-wall { padding: 0.3rem; transform: none; }
  .karma-score-row { grid-template-columns: 5.4rem 1fr; gap: 0.75rem; }
  .karma-score-name { font-size: 0.9rem; }
  .admin-karma-form { grid-template-columns: 1fr; }
  .admin-karma-breakdown { grid-template-columns: repeat(2, 1fr); }
  .member-grid--collapsed .member-card:nth-child(n+5) { display: none; }
  .archive-list--collapsed .archive-row:nth-child(n+3) { display: none; }
  .host-grid { flex-direction: column; min-height: unset; }
  .host-card { flex: unset !important; height: 56px; }
  .host-card.expanded { height: auto; }
  .host-content { width: 100%; }
  .host-tab { writing-mode: horizontal-tb; transform: none; padding: 0 1.25rem; }
  .archive-row { flex-wrap: wrap; gap: 0.5rem; }
  .game-card { grid-template-columns: 1fr; }
  .game-card .game-highlight::before { display: none; }
  .game-card .game-highlight { gap: 0; }
  /* On a narrow screen the linked game card reads as one vertical story:
     game details, availability, then hosts.  Flatten the info wrapper so
     availability does not land visually underneath the host faces, and keep
     the status treatment left-aligned with the rest of the card. */
  .game-card--linked > div:first-of-type { display: contents; }
  .game-card--linked .game-spots {
    grid-column: 1; order: 10; min-width: 0; margin-top: 0.4rem;
    padding-top: 0.85rem; border-top: 1px solid var(--border);
    text-align: left;
  }
  .game-card--linked .game-hosts {
    grid-column: 1; order: 20; margin-top: 0.8rem;
  }
  .game-card--linked .game-join { order: 30; }
  .game-card--linked .team-slot-open { justify-content: flex-start; }
  .join-page { padding: 5.5rem 0.8rem 3rem; }
  .join-game-summary { align-items: flex-start; padding: 1.25rem; }
  .join-page-gateway { padding: 1.25rem; }
  .join-paths { grid-template-columns: 1fr; }
  .join-path { min-height: 112px; }
  .join-form .form-field { flex-basis: 100%; }
  .join-form .btn-submit { width: 100%; }
  .about-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .about-avatar { width: 112px; height: 112px; }
  .about-dialogue { max-width: none; }
  .about-more { min-height: 44px; }
  .about-voice { min-height: 44px; padding: 0.4rem 0.9rem; }
}
/* Live game-night audience */
.live-empty{text-align:center;max-width:620px;margin:0 auto;padding:2.5rem 1.5rem}.live-empty h2{font:2rem 'Bebas Neue',sans-serif;letter-spacing:.05em;margin:0 0 .35rem}
.live-player-badges{grid-column:2;display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.25rem}.live-player-badges span{border:1px solid rgba(200,169,110,.4);border-radius:999px;padding:.16rem .45rem;color:var(--accent);font-size:.68rem;letter-spacing:.03em}
.live-shell{min-height:75vh;padding:7rem 1.5rem 4rem}.live-container{max-width:1040px}.live-container>.section-label,.live-container>.section-title{text-align:center}.live-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.8fr);gap:1.2rem;align-items:start}.live-card,.live-audience{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:1.5rem}.live-heading{display:flex;justify-content:space-between;gap:1rem;align-items:start}.live-heading h2{font:2rem 'Bebas Neue',sans-serif;letter-spacing:.05em;margin:.2rem 0}.live-status{border:1px solid var(--accent);color:var(--accent);border-radius:999px;padding:.35rem .7rem;text-transform:uppercase;font:700 .72rem 'Rajdhani',sans-serif;letter-spacing:.12em}.live-status.is-stale{border-color:#d27b62;color:#d27b62}.live-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem;margin:1.4rem 0}.live-stats>div{background:var(--bg);padding:.8rem;border-radius:6px}.live-stats small,.live-turn small,.live-player small,.live-final small{display:block;color:var(--muted);text-transform:uppercase;font-size:.68rem;letter-spacing:.1em}.live-stats strong{display:block;margin-top:.25rem}.live-turn{padding:1.3rem 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.live-turn h3,.live-final h3{font:2rem 'Bebas Neue',sans-serif;letter-spacing:.05em;margin:.25rem 0}.live-turn p,.live-muted,.live-stale-note{color:var(--muted);font-size:.86rem}.live-players{display:flex;gap:.65rem;flex-wrap:wrap;margin-top:1.2rem}.live-player{display:grid;grid-template-columns:auto 1fr;column-gap:.5rem;align-items:center;border:1px solid var(--border);border-radius:6px;padding:.55rem .7rem;min-width:120px}.live-player.is-current{border-color:var(--accent);background:rgba(200,169,110,.08)}.live-player small{grid-column:2}.live-color{width:10px;height:28px;border-radius:3px;grid-row:1/3}.live-color-red{background:#b7473f}.live-color-blue{background:#4778ae}.live-color-green{background:#5f8f5a}.live-color-yellow{background:#cfaa46}.live-audience h2{font:1.5rem 'Bebas Neue',sans-serif;letter-spacing:.06em}.live-verify label{display:block;color:var(--muted);font-size:.75rem;margin-bottom:.35rem}.live-verify>div{display:flex}.live-verify input{min-width:0;flex:1;background:var(--bg);color:var(--text);border:1px solid var(--border);padding:.65rem}.live-verify button,.live-cheer,.live-recap{background:var(--accent);color:var(--bg);border:0;padding:.7rem .85rem;font-weight:700;text-decoration:none}.live-verify small{display:block;color:var(--muted);margin-top:.4rem}.live-verified{color:var(--accent);font-size:.82rem}.live-reactions{display:flex;gap:.45rem;margin:1.2rem 0}.live-reaction{background:var(--bg);border:1px solid var(--border);border-radius:999px;color:var(--text);font-size:1.2rem;padding:.45rem .7rem}.live-reaction span{font-size:.7rem;color:var(--muted);margin-left:.3rem}.live-reaction:disabled,.live-cheer:disabled{opacity:.45}.live-cheer{width:100%;border-radius:5px;cursor:pointer}.live-feed{list-style:none;margin:1.2rem 0 0;padding:1rem 0 0;border-top:1px solid var(--border);color:var(--muted);font-size:.8rem}.live-feed li+li{margin-top:.55rem}.live-final{text-align:center;padding:2rem 0}.live-final>p{color:var(--muted);text-transform:uppercase;letter-spacing:.1em}.live-final>span{display:block;margin-bottom:1.4rem}.live-final .live-recap{display:inline-block;border-radius:5px}.live-final small{margin-top:1rem}.live-stale-note{margin-top:1rem;color:#d27b62}@media(max-width:760px){.live-grid{grid-template-columns:1fr}.live-stats{grid-template-columns:repeat(2,1fr)}.live-shell{padding-top:5.5rem}}

/* Host panel: draft-mode chooser on the create-game form (the web equivalent of
   /expgame). Stacked rather than inline — each option needs a line of
   explanation, since the choice changes how the whole edition behaves. */
.host-mode-option {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.6rem 0; cursor: pointer;
}
.host-mode-option input { margin-top: 0.25rem; accent-color: var(--accent); flex: 0 0 auto; }
.host-mode-option strong {
  display: block; font-weight: 400; font-size: 0.95rem; color: var(--text);
}
.host-mode-option em {
  display: block; font-style: normal; font-size: 0.8rem; color: var(--muted);
  line-height: 1.45; margin-top: 0.15rem;
}
/* Sub-label under a form field — the flair character count and what the card
   will actually show of it. */
.field-hint {
  font-size: 0.78rem; color: var(--muted); line-height: 1.45;
  margin: 0.35rem 0 0;
}
