/* 20 Player Catan — shared styles
   Palette: brick red, wood brown, parchment, wheat gold, ore slate.
   Swap values here to restyle the whole site. */

:root {
  --brick: #9c2f2f;
  --brick-dark: #6e1f1f;
  --brick-light: #c45c3e;
  --wood: #5c3a21;
  --wood-dark: #2d1a0e;
  --wood-mid: #7a4e2d;
  --wood-light: #8b5a2b;
  --parchment: #f3e6c9;
  --parchment-deep: #e4d0a4;
  --parchment-card: #f8eed8;
  --ink: #2a1a10;
  --ink-soft: #4a3426;
  --wheat: #d4a017;
  --wheat-light: #e8c547;
  --gold: #dab046;
  --ore: #5a6b7a;
  --ore-dark: #3d4a56;
  --sheep: #6b8f4e;
  --forest: #2d5a34;
  --water: #2e5a7a;
  --header-h: 4.35rem;
  --max: 72rem;
  --narrow: 46rem;
  --radius: 0.4rem;
  --shadow: 0 0.6rem 1.4rem rgba(45, 26, 14, 0.18);
  --font-display: "Cinzel Decorative", "Cinzel", Palatino, "Palatino Linotype", serif;
  --font-title: "Cinzel", Palatino, "Palatino Linotype", serif;
  --font-body: "Crimson Pro", Palatino, Georgia, serif;
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64.4' viewBox='0 0 84 96.6'%3E%3Cpath fill='none' stroke='%235c3a21' stroke-opacity='0.07' stroke-width='1.2' d='M42 1.2 82.5 24.6v47.4L42 95.4 1.5 72V24.6z'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--parchment);
  background-image: var(--hex), linear-gradient(180deg, #f7edd4 0%, var(--parchment) 18rem);
  background-attachment: fixed;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brick);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brick-dark);
}

:focus-visible {
  outline: 3px solid var(--wheat);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--wood-dark);
  letter-spacing: 0.02em;
  text-wrap: balance;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin: 0 0 0.6rem;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1rem; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--wheat);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(180deg, rgba(218, 176, 70, 0.18), transparent 40%),
    linear-gradient(90deg, #3a2412 0%, var(--wood) 40%, #4a2e18 100%);
  color: var(--parchment);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 0.35rem 0.9rem rgba(20, 10, 4, 0.28);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand:hover { color: inherit; }

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: var(--wood-dark);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-kicker {
  font-family: var(--font-title);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  color: var(--parchment);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--parchment);
  border-radius: 1px;
  position: relative;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  color: var(--parchment);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--wood-dark);
  background: var(--gold);
  outline: none;
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.site-nav a[aria-current="page"]:hover {
  color: var(--wood-dark);
  box-shadow: none;
}

/* ---------- Layout ---------- */
.site-main {
  flex: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

.wrap-narrow {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

.section-kicker {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 0.4rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--brick);
  color: #f8eed8;
  border-color: var(--brick-dark);
}

.btn-primary:hover {
  background: var(--brick-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--parchment);
  border-color: var(--gold);
}

.btn-ghost:hover {
  background: var(--gold);
  color: var(--wood-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(70vh, 38rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--parchment);
  background-color: var(--wood-dark);
  background-image:
    linear-gradient(180deg, rgba(20, 10, 4, 0.55) 0%, rgba(20, 10, 4, 0.62) 50%, rgba(20, 10, 4, 0.78) 100%),
    url("/assets/hero.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--gold);
}

.hero-inner {
  max-width: 46rem;
  padding: 4.5rem 1.25rem 4rem;
}

.hero .section-kicker {
  color: var(--gold);
}

.hero h1 {
  color: #f8eed8;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero .lead {
  color: #efe0bf;
  margin-bottom: 0;
}

/* ---------- Cards, stats, panels ---------- */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.25rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--parchment-card);
  border: 1px solid rgba(92, 58, 33, 0.22);
  border-left: 4px solid var(--brick);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.15rem;
  box-shadow: var(--shadow);
}

.card:nth-child(2) { border-left-color: var(--wood-mid); }
.card:nth-child(3) { border-left-color: var(--wheat); }
.card:nth-child(4) { border-left-color: var(--ore); }
.card:nth-child(5) { border-left-color: var(--sheep); }
.card:nth-child(6) { border-left-color: var(--forest); }

.card p:last-child { margin-bottom: 0; }

.stat {
  text-align: center;
  background: var(--parchment-card);
  border: 1px solid rgba(92, 58, 33, 0.22);
  border-radius: var(--radius);
  padding: 1.35rem 0.8rem 1.15rem;
  box-shadow: var(--shadow);
  position: relative;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  color: var(--brick);
  line-height: 1.1;
  margin: 0 0 0.35rem;
}

.stat-label {
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.placeholder-tag,
.placeholder-banner strong {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.placeholder-tag {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--wheat);
  color: var(--wood);
  background: rgba(232, 197, 71, 0.25);
  border-radius: 2px;
}

.placeholder-banner {
  background: repeating-linear-gradient(
    -45deg,
    #f3d98a,
    #f3d98a 12px,
    #efe0a8 12px,
    #efe0a8 24px
  );
  border: 2px solid var(--wheat);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 0 0 2rem;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.placeholder-banner p { margin: 0.35rem 0 0; }
.placeholder-banner p:first-child { margin: 0; }

.panel {
  background: var(--parchment-card);
  border: 1px solid rgba(92, 58, 33, 0.22);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}

.rule-section {
  margin: 0 0 2.25rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px dashed rgba(92, 58, 33, 0.28);
}

.rule-section:last-of-type {
  border-bottom: 0;
}

.rule-section h2 {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.figure {
  margin: 0 0 1.5rem;
  background: var(--wood-dark);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.figure img {
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
}

.figure figcaption {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--parchment);
  background: var(--wood);
  padding: 0.7rem 1rem 0.85rem;
}

.page-title {
  margin-bottom: 0.35rem;
}

.divider {
  width: 4.5rem;
  height: 3px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.5rem;
}

.update {
  background: var(--parchment-card);
  border: 1px solid rgba(92, 58, 33, 0.22);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.2rem;
  margin: 0 0 1.25rem;
  box-shadow: var(--shadow);
}

.update header {
  margin-bottom: 0.7rem;
}

.update-meta {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 0.25rem;
}

.update h2 {
  font-size: 1.35rem;
  margin: 0;
}

.update p:last-child { margin-bottom: 0; }

.site-footer {
  background: var(--wood-dark);
  color: var(--parchment-deep);
  border-top: 3px solid var(--gold);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.25rem;
  display: grid;
  gap: 0.75rem;
}

.footer-brand {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.footer-note {
  margin: 0;
  max-width: 42rem;
  font-size: 0.98rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.4rem;
}

.footer-nav a {
  color: var(--parchment);
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-nav a:hover { color: var(--gold); }

/* 404 */
.error-page {
  text-align: center;
  padding: 4.5rem 1.25rem 5rem;
}

.error-page h1 { margin-bottom: 0.75rem; }

/* Tables in rules */
.rules-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 1.05rem;
  background: var(--parchment-card);
}

.rules-table th,
.rules-table td {
  text-align: left;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(92, 58, 33, 0.22);
}

.rules-table th {
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--wood);
  color: var(--parchment);
}

.rules-table tbody tr:nth-child(even) {
  background: rgba(92, 58, 33, 0.05);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--wood-dark);
    border-bottom: 3px solid var(--gold);
    padding: 0.5rem 1.25rem 1rem;
    box-shadow: 0 0.6rem 1rem rgba(0, 0, 0, 0.3);
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }

  .site-nav a { padding: 0.7rem 0.5rem; }

  .site-header { position: sticky; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .hero { min-height: 28rem; }
  .hero-inner { padding: 3.25rem 1.15rem 3rem; }
}

@media (max-width: 420px) {
  .brand-kicker { display: none; }
  .brand-name { font-size: 0.92rem; }
}

/* ---------- Hero photo (real board crop) ---------- */
.hero {
  background-image: none;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(20, 10, 4, 0.42) 0%,
    rgba(20, 10, 4, 0.58) 48%,
    rgba(20, 10, 4, 0.78) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

/* ---------- Board photo + size callout ---------- */
.board-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.75fr);
  gap: 1.5rem;
  align-items: center;
  margin: 0 0 2.75rem;
}

.figure-photo {
  margin: 0;
}

.figure-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  background: var(--wood-dark);
}

.size-callout {
  background: var(--parchment-card);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.size-callout .section-kicker { margin-bottom: 0.15rem; }

.size-value {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5rem);
  color: var(--brick);
  line-height: 0.95;
  margin: 0.15rem 0 0.35rem;
}

.size-inches {
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood);
  margin: 0 0 1rem;
}

.size-callout p:last-child { margin-bottom: 0; }

.size-facts {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px dashed rgba(92, 58, 33, 0.3);
  text-align: left;
}

.size-facts li {
  margin: 0 0 0.4rem;
  padding-left: 0;
}

.size-facts strong {
  font-family: var(--font-title);
  font-weight: 700;
}

@media (max-width: 800px) {
  .board-spotlight { grid-template-columns: 1fr; }
}

/* ---------- Live page (live.html) ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.live-stream { margin: 0 0 2.5rem; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--wood-dark);
  border: 3px solid var(--wood);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--parchment);
  background-image: var(--hex);
}

.video-placeholder .placeholder-tag { color: var(--parchment); }
.video-placeholder p { margin: 0.5rem 0 0; }

.live-video-note {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.scoreboard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.scoreboard-head h2 { margin-bottom: 0.25rem; }

.scoreboard-meta {
  margin: 0 0 0.5rem;
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.scoreboard .placeholder-banner { margin: 0.75rem 0 1rem; }

.scoreboard-note {
  margin: 0.5rem 0 1rem;
  font-style: italic;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.75rem 0 0;
}

.score-table td { vertical-align: middle; }
.score-table .score-rank { width: 2.5rem; text-align: center; color: var(--ink-soft); }
.score-table .score-vp {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brick-dark);
  text-align: center;
}
.score-table .score-name { white-space: nowrap; }
.score-table .score-color { color: var(--ink-soft); font-size: 0.9rem; }
.score-table .score-awards { font-size: 0.95rem; }

.score-swatch {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 0.5rem;
  vertical-align: -0.1rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--parchment-deep);
}

.scoreboard-foot {
  margin-top: 1rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .score-table th:nth-child(6),
  .score-table td:nth-child(6),
  .score-table th:nth-child(7),
  .score-table td:nth-child(7) { display: none; }
}

@media (max-width: 460px) {
  .score-table th:nth-child(4),
  .score-table td:nth-child(4),
  .score-table th:nth-child(5),
  .score-table td:nth-child(5) { display: none; }
}

/* ---------- Sign Up page + homepage "Next game" card ---------- */
.signup [hidden] { display: none !important; }

.signup-title { margin-bottom: 0.25rem; }

.signup-when {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--wood);
  margin: 0 0 0.9rem;
}

.signup-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 1rem;
  padding: 0.8rem 1.1rem;
  margin: 0.75rem 0 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(92, 58, 33, 0.3);
  border-left-width: 6px;
  background: var(--parchment-card);
  box-shadow: var(--shadow);
}

.signup-status-main {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signup-status-count { color: var(--ink-soft); font-size: 1rem; }

.signup-status.is-open { border-left-color: var(--forest); }
.signup-status.is-open .signup-status-main { color: var(--forest); }
.signup-status.is-closed { border-left-color: var(--brick); background: #efd9c8; }
.signup-status.is-closed .signup-status-main { color: var(--brick-dark); }
.signup-status.is-full { border-left-color: var(--wheat); }
.signup-status.is-full .signup-status-main { color: var(--wood); }
.signup-status.is-soon { border-left-color: var(--ore); }
.signup-status.is-soon .signup-status-main { color: var(--ore-dark); }

.signup-form { margin: 0 0 1.5rem; }

.signup-form label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 0.35rem;
}

.signup-form-row { display: flex; gap: 0.6rem; }

.signup-form input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 1.1rem;           /* 16px+ stops iOS zooming into the field */
  color: var(--ink);
  background: #fffaf0;
  border: 2px solid var(--wood-light);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
}

.signup-form input[type="text"]:focus-visible { outline: 3px solid var(--wheat); outline-offset: 1px; }

.signup-form .btn { flex: 0 0 auto; cursor: pointer; }
.signup-form .btn:disabled { opacity: 0.6; cursor: wait; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.signup-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-msg {
  margin: 0.7rem 0 0;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  background: #efd9c8;
  border: 1px solid var(--brick-light);
  color: var(--brick-dark);
  font-size: 1rem;
}

.signup-msg.is-ok { background: #e1ecd2; border-color: var(--sheep); color: #24421f; }

.roster {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  background: var(--parchment-card);
  border: 1px solid rgba(92, 58, 33, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.roster-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3rem;
  padding: 0.35rem 0.9rem 0.35rem 0.6rem;
  border-bottom: 1px solid rgba(92, 58, 33, 0.18);
}

.roster-row:last-child { border-bottom: 0; }
.roster-row:nth-child(even) { background: rgba(228, 208, 164, 0.3); }

.roster-num {
  flex: 0 0 2.2rem;
  text-align: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--parchment);
  background: var(--wood-mid);
  border-radius: 999px;
  line-height: 2rem;
  height: 2rem;
}

.roster-row:not(.is-filled) .roster-num { background: transparent; color: var(--wood-mid); border: 2px dashed rgba(92, 58, 33, 0.4); line-height: 1.7rem; }

.roster-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.15rem;
  font-weight: 500;
  overflow-wrap: anywhere;      /* long names wrap instead of pushing the page sideways */
}

.roster-row.is-mine { box-shadow: inset 4px 0 0 var(--wheat); }

.roster-you {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--wheat-light);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  vertical-align: 0.1rem;
}

.roster-remove {
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.9rem;
  color: var(--brick-dark);
  background: transparent;
  border: 1px solid var(--brick);
  border-radius: var(--radius);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

.roster-remove:hover { background: var(--brick); color: var(--parchment); }
.roster-remove:disabled { opacity: 0.55; cursor: wait; }

.signup-note { font-size: 0.98rem; color: var(--ink-soft); }

.next-game {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "kicker go" "title go" "status go";
  align-items: center;
  column-gap: 1rem;
  margin: 0 0 2.5rem;
  padding: 1rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--parchment-card);
  border: 1px solid rgba(92, 58, 33, 0.25);
  border-left: 6px solid var(--wheat);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.next-game:hover { color: var(--ink); border-left-color: var(--brick); }

.next-game-kicker {
  grid-area: kicker;
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brick);
}

.next-game-title {
  grid-area: title;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--wood-dark);
  line-height: 1.25;
}

.next-game-status { grid-area: status; color: var(--ink-soft); font-size: 1rem; }

.next-game-go {
  grid-area: go;
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment);
  background: var(--brick);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  white-space: nowrap;
}

.next-game:hover .next-game-go { background: var(--brick-dark); }

@media (max-width: 480px) {
  .signup-form-row { flex-direction: column; }
  .signup-form .btn { width: 100%; padding-top: 0.8rem; padding-bottom: 0.8rem; }
  .roster-row { flex-wrap: wrap; }
  .roster-remove { margin-left: 3rem; }
  .next-game { grid-template-columns: 1fr; grid-template-areas: "kicker" "title" "status" "go"; row-gap: 0.15rem; }
  .next-game-go { justify-self: start; margin-top: 0.6rem; }
}

/* Six nav items: keep each label on one line, and tighten a little on mid-width screens. */
.site-nav a { white-space: nowrap; }

@media (min-width: 721px) and (max-width: 900px) {
  .site-nav ul { gap: 0; }
  .site-nav a { padding: 0.55rem 0.5rem; letter-spacing: 0.05em; font-size: 0.78rem; }
  .brand-kicker { display: none; }
}

/* ---------- Backup list (Sign Up page) ---------- */
.backup-wrap[hidden],
.signup-backup-note[hidden] { display: none !important; }

.backup-wrap { margin: 0 0 1.25rem; }

.backup-heading {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}

.backup-roster .roster-num {
  flex: 0 0 2.6rem;
  background: var(--ore);
  font-size: 0.85rem;
}

.signup-backup-note {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.signup-backup-note:not([hidden]) + .signup-msg { margin-top: 0.55rem; }

/* ---------- Next-game details under the Sign Up heading ---------- */
.game-when[hidden] { display: none !important; }

.game-when {
  margin: 0.85rem 0 0;
  padding: 0.9rem 1.15rem 1rem;
  background: var(--parchment-card);
  border: 1px solid rgba(92, 58, 33, 0.25);
  border-left: 6px solid var(--wheat);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.game-when-date {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.25rem, 4.5vw, 1.7rem);
  color: var(--wood-dark);
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0;
}

.game-when-parts {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.game-when-parts[hidden] { display: none !important; }

.game-when-kicker {
  display: block;
  font-family: var(--font-title);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.1rem;
}

.game-when-parts [data-value] {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--wood-dark);
}

.game-when-label {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}


.game-when-label[hidden] { display: none !important; }

/* ---------- Lunch notice, order fields, and payment ---------- */
.lunch-notice {
  margin: 1rem 0 0;
  padding: 0.95rem 1.15rem 1.1rem;
  background: #fff6e8;
  border: 1px solid rgba(92, 58, 33, 0.25);
  border-left: 6px solid var(--brick);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lunch-notice p { margin: 0.35rem 0 0; color: var(--ink); font-size: 1.05rem; line-height: 1.45; }
.lunch-notice p:first-child { margin-top: 0; }

.lunch-notice-kicker {
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 0.35rem;
}

.lunch-notice-lead {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--wood-dark);
  letter-spacing: 0.01em;
}

.lunch-notice-heads {
  color: var(--wood-dark);
}

.lunch-notice-only {
  margin-top: 0.75rem !important;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brick);
}

.lunch-notice-extras {
  margin-top: 0.65rem !important;
  color: var(--wood-dark);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.lunch-field[hidden] { display: none !important; }
.lunch-field { margin: 0.15rem 0 1rem; }

.lunch-field-heading, .signup-form .lunch-field-heading {
  display: block;
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--wood-dark);
  margin: 0.85rem 0 0.45rem;
  font-weight: 700;
}

.lunch-price { font-weight: 500; color: var(--ink-soft); }

.lunch-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.lunch-choice {
  min-height: 2.85rem;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  background: #fffaf0;
  border: 2px solid rgba(92, 58, 33, 0.28);
  border-radius: var(--radius);
  cursor: pointer;
}

.lunch-choice[aria-pressed="true"] {
  border-color: var(--wood);
  box-shadow: 0 0 0 3px var(--wheat);
  background: #fff6e0;
}

.lunch-stepper {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lunch-stepper button {
  flex: 0 0 2.85rem;
  width: 2.85rem;
  height: 2.85rem;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--wood-dark);
  background: #fffaf0;
  border: 2px solid rgba(92, 58, 33, 0.28);
  border-radius: var(--radius);
  cursor: pointer;
}

.lunch-stepper button:disabled { opacity: 0.4; cursor: default; }

.lunch-toast-count {
  min-width: 2.2rem;
  text-align: center;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--wood-dark);
}

.lunch-total {
  margin: 0.75rem 0 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--wood-dark);
}

.lunch-pay[hidden] { display: none !important; }

.lunch-pay {
  margin: 0 0 1.5rem;
  padding: 0.95rem 1.15rem 1.15rem;
  background: var(--parchment-card);
  border: 1px solid rgba(92, 58, 33, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lunch-pay-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--wood-dark);
}

.lunch-pay-note {
  margin: 0.4rem 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.lunch-pay-methods { display: grid; gap: 1rem; }

.lunch-pay-method {
  margin: 0;
  padding: 0;
  text-align: center;
}

.lunch-pay-method figcaption {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 0.5rem;
}

.lunch-pay-qr {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  margin: 0 auto;
  border-radius: 0.6rem;
  background: #000;
}

.lunch-pay-text {
  margin: 0.7rem 0 0;
  font-size: 1.02rem;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
}

.lunch-pay-tel { color: var(--wood-dark); font-weight: 600; }

.lunch-pay-copy {
  font: inherit;
  font-size: 0.9rem;
  color: var(--wood-dark);
  background: #fffaf0;
  border: 1px solid var(--wood-mid);
  border-radius: var(--radius);
  padding: 0.3rem 0.65rem;
  cursor: pointer;
}

.lunch-pay-copy:hover { background: var(--wheat-light); }

.roster-edit-panel .lunch-field { margin: 0.2rem 0 0.4rem; }
.roster-edit-panel .lunch-field-heading { margin-top: 0.6rem; }
.roster-edit-panel .lunch-total { font-size: 1.1rem; }

/* ---------- Color picker + roster swatches ---------- */

.color-field[hidden] { display: none !important; }
.color-field { margin: 0.9rem 0 1rem; }

.color-label, .signup-form .color-label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wood);
  margin: 0 0 0.45rem;
}

.color-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.color-choice {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.3rem 0.55rem;
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  color: var(--ink);
  background: #fffaf0;
  border: 2px solid rgba(92, 58, 33, 0.28);
  border-radius: var(--radius);
  cursor: pointer;
}

.color-choice.is-selected {
  border-color: var(--wood);
  box-shadow: 0 0 0 3px var(--wheat);
  background: #fff6e0;
}

.swatch {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--swatch, var(--parchment-deep));
  border: 1px solid rgba(42, 26, 16, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.swatch.is-light { border-color: rgba(42, 26, 16, 0.7); box-shadow: 0 0 0 1px rgba(42, 26, 16, 0.25); }

.roster-row .swatch { flex: 0 0 1.05rem; width: 1.05rem; height: 1.05rem; }

.roster-color {
  font-size: 0.88rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.roster-nocolor {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-soft);
}

.roster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-left: auto;
}

.roster-edit {
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.9rem;
  color: var(--wood-dark);
  background: transparent;
  border: 1px solid var(--wood-mid);
  border-radius: var(--radius);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

.roster-edit:hover { background: var(--wheat-light); }
.roster-edit:disabled { opacity: 0.55; cursor: wait; }

.roster-edit-panel {
  flex: 1 1 100%;
  margin: 0.35rem 0 0.2rem 0;
  padding: 0.7rem 0.75rem 0.8rem;
  background: #fffaf0;
  border: 1px solid rgba(92, 58, 33, 0.25);
  border-radius: var(--radius);
}

.roster-edit-panel label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 0.3rem;
}

.roster-edit-panel input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--wood-light);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.7rem;
}

.roster-edit-actions { display: flex; gap: 0.45rem; margin-top: 0.7rem; }
.roster-edit-actions .btn { cursor: pointer; }

.signup-form input[type="text"] { width: 100%; }
.signup-form .btn { width: 100%; margin-top: 0.15rem; padding-top: 0.8rem; padding-bottom: 0.8rem; cursor: pointer; }

@media (min-width: 560px) {
  .color-picker { grid-template-columns: repeat(3, 1fr); }
  .signup-form .btn { width: auto; }
  .signup-form input[type="text"] { width: 100%; }
}

@media (min-width: 720px) {
  .color-picker { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Live page roster + waiting stream (live.html, 2026-12-02) ---------- */
.score-swatch.is-empty {
  background: var(--parchment-deep);
  border-style: dashed;
  border-color: var(--ink-soft);
}

.score-table .score-nocolor {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-style: italic;
}

.score-table .score-blank {
  color: var(--ink-soft);
  text-align: center;
}

.scoreboard-backups {
  margin: 0.75rem 0 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* ---------- Lunch payment modal (signup.html, 2026-12-01) ---------- */
.lunch-pay-modal[hidden] { display: none !important; }

body.lunch-pay-open { overflow: hidden; }

.lunch-pay-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.lunch-pay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 18, 10, 0.55);
}

.lunch-pay-dialog {
  position: relative;
  z-index: 1;
  width: min(26rem, calc(100vw - 1.5rem));
  max-height: min(92vh, 46rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--parchment-card);
  border: 1px solid rgba(92, 58, 33, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(28, 18, 10, 0.35);
  padding: 1.1rem 1.15rem 1.2rem;
}

.lunch-pay-close {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  background: transparent;
  color: var(--wood-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius);
}

.lunch-pay-close:hover,
.lunch-pay-close:focus {
  background: var(--wheat-light);
}

.lunch-pay-modal .lunch-pay-title {
  margin: 0 1.6rem 0 0;
  padding-right: 0;
}

.lunch-pay-due {
  margin: 0.45rem 0 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--wood-dark);
}

.lunch-pay-modal .lunch-pay-note {
  margin: 0.3rem 0 0.55rem;
}

.lunch-pay-modal .lunch-pay-methods { gap: 0.65rem; }

.lunch-pay-modal .lunch-pay-qr {
  width: min(100%, 8.5rem);
}

.lunch-pay-complete {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.lunch-pay-complete .btn {
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.lunch-pay-modal .btn-ghost {
  color: var(--wood-dark);
  border-color: var(--wood-mid);
  background: #fffaf0;
}

.lunch-pay-modal .btn-ghost:hover {
  background: var(--wheat-light);
  color: var(--wood-dark);
  border-color: var(--wood-dark);
}

.roster-pay {
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.9rem;
  color: var(--wood-dark);
  background: transparent;
  border: 1px solid var(--wood-mid);
  border-radius: var(--radius);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

.roster-pay:hover { background: var(--wheat-light); }
