/* Public site chrome and pages. Mobile first; the tab bar is the nav on phones
   and moves into the top bar at 768px. */
:root {
  --bg: #081a15;
  --bg-2: #0c2a22;
  --card: #0f2c24;
  --card-2: #123328;
  --green: #1f9d55;
  --green-dark: #15803d;
  --gold: #c9a05c;
  --text: #f2eeea;
  --muted: #9db3a8;
  --border: #1e4436;
  --nav-h: 60px;
  --tab-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
/* The filters and lightbox toggle `hidden`; a component's own display rule
   (e.g. .fix { display: grid }) would otherwise keep it on screen. */
[hidden] { display: none !important; }
body.pub {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
/* Zero specificity so buttons, pills, and nav links keep their own colors. */
:where(body.pub) a { color: var(--green); }
.display {
  font-family: "Anton", "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.92;
}
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 18px; }
.eyebrow {
  color: var(--gold); font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; font-size: 0.72rem; margin: 0 0 10px;
}

/* ---------- Top bar ---------- */
.pub-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  height: var(--nav-h); padding: 0 14px;
  background: rgba(8, 26, 21, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 160, 92, 0.35);
}
.pub-brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.06em;
}
.pub-brand img { width: 34px; height: 34px; border-radius: 50%; display: block; }
.pub-links { display: none; gap: 22px; margin-left: 18px; }
.pub-links a {
  color: var(--muted); text-decoration: none; font-weight: 700;
  font-size: 0.92rem; letter-spacing: 0.04em; padding: 6px 0;
}
.pub-links a.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--gold); }
.pub-links a:hover { color: var(--text); }
.signup-pill {
  margin-left: auto;
  background: var(--green); color: #04270f; text-decoration: none;
  font-weight: 800; font-size: 0.88rem;
  padding: 8px 14px; border-radius: 999px; min-height: 36px;
  display: inline-flex; align-items: center;
}
.signup-pill:hover { background: var(--green-dark); color: #04270f; }

/* ---------- Bottom tabs (phones) ---------- */
.pub-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(8, 26, 21, 0.96);
  border-top: 1px solid var(--border);
}
.pub-tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-decoration: none; color: var(--muted);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  min-height: 44px;
}
.pub-tabbar a.on { color: var(--gold); }
.pub-tabbar svg { width: 22px; height: 22px; }

@media (min-width: 768px) {
  body.pub { padding-bottom: 0; }
  .pub-links { display: flex; }
  .pub-tabbar { display: none; }
  .wrap { padding: 0 24px; }
}

/* ---------- Footer ---------- */
.pub-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 36px 0 28px; text-align: center; color: var(--muted); font-size: 0.9rem;
}
.pub-footer .fname {
  font-family: "Anton", sans-serif; letter-spacing: .04em; color: var(--text); font-size: 1.2rem;
}
.pub-footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border); }
.pub-footer .dot { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: flex-end;
  padding: 28px 0 32px;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(31,157,85,0.28), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 42px, transparent 42px 84px);
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.hero.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,26,21,0.15) 0%, rgba(8,26,21,0.55) 42%, rgba(8,26,21,0.94) 100%);
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3.2rem, 16vw, 6.4rem); margin: 0 0 14px; }
.hero h1 span { display: block; }
.hero h1 .gold { color: var(--gold); }
.lede { color: var(--text); font-size: 1.05rem; margin: 0 0 18px; max-width: 28rem; }
.fine { color: var(--muted); font-size: 0.88rem; margin: 12px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 420px; box-sizing: border-box;
  padding: 15px 22px; font-size: 1.02rem; font-weight: 800;
  color: #04270f; background: var(--green); border-radius: 12px; text-decoration: none;
}
.btn:hover { background: var(--green-dark); color: #04270f; }
@media (min-width: 768px) {
  .hero { min-height: 86vh; align-items: flex-end; padding-bottom: 64px; }
  .btn { width: auto; }
  /* The copy sits on the left third of a wide photo, over players' faces;
     shade that side so the headline and eyebrow read against the net. */
  .hero.has-photo::after {
    background:
      linear-gradient(90deg, rgba(8,26,21,0.94) 0%, rgba(8,26,21,0.82) 28%, rgba(8,26,21,0.35) 55%, rgba(8,26,21,0) 75%),
      linear-gradient(180deg, rgba(8,26,21,0) 55%, rgba(8,26,21,0.9) 100%);
  }
  .hero-photo { object-position: 70% 30%; }
}

/* ---------- Sections ---------- */
.block { padding: 48px 0; }
.block h2 { font-size: clamp(1.8rem, 7vw, 2.8rem); margin: 0; }
.support { color: var(--muted); margin: 10px 0 0; max-width: 36rem; }
.statement { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; }
.statement .hl { color: var(--green); }

/* Next match */
.match-card {
  display: block; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: 16px;
  border-top: 3px solid var(--gold);
  padding: 16px; margin-top: 8px;
  position: relative;
}
.match-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.venue-link {
  position: relative; z-index: 2;
  color: inherit; text-decoration: underline; text-underline-offset: 2px;
}
.match-card .kicker { color: var(--gold); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; }
.match-vs {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center;
  margin: 12px 0;
}
.match-side { text-align: center; }
.match-side strong { display: block; font-family: "Anton", sans-serif; font-size: 1.15rem; letter-spacing: 0.03em; }
.match-side span { color: var(--muted); font-size: 0.75rem; }
.vs {
  font-family: "Anton", sans-serif; color: var(--gold); font-size: 1.6rem;
}
.crest-ph {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 6px;
  background: #2a2f33; border: 1px solid var(--border);
}
/* League crests arrive in every shape (round badges, square JPEGs with white
   backgrounds); a white disc with the crest contained inside reads as one set. */
.crest-ph.crest-img { background: #fff; border: none; overflow: hidden; }
.crest-ph.crest-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.crest-ph.ours { background: transparent; border: none; width: 48px; height: 48px; }
.crest-ph.ours img { width: 48px; height: 48px; border-radius: 50%; display: block; }
.match-meta { color: var(--muted); font-size: 0.9rem; margin: 0; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pill {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(201,160,92,0.55); color: var(--gold);
  border-radius: 999px; padding: 4px 8px;
}
.countdown { display: flex; gap: 10px; margin-top: 14px; }
.countdown > div { min-width: 34px; }
.countdown .countdown-done {
  font-family: "Anton", sans-serif; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gold); font-size: 1.2rem;
}
.countdown b { display: block; font-family: "Anton", sans-serif; font-size: 1.4rem; color: var(--text); }
.countdown span { color: var(--muted); font-size: 0.65rem; letter-spacing: 0.08em; }

/* Laptop: fixture on the left, a proper countdown panel on the right. */
@media (min-width: 768px) {
  .match-card {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    column-gap: 40px; padding: 24px 28px;
  }
  .match-info { max-width: 560px; }
  .match-vs { grid-template-columns: auto auto auto; justify-content: start; gap: 28px; margin: 16px 0 14px; }
  .match-side strong { font-size: 1.5rem; }
  .crest-ph { width: 56px; height: 56px; }
  .crest-ph.ours, .crest-ph.ours img { width: 60px; height: 60px; }
  .vs { font-size: 2.2rem; }
  .countdown {
    margin: 0; gap: 10px; padding-left: 40px; border-left: 1px solid var(--border);
  }
  .countdown > div {
    min-width: 78px; text-align: center; padding: 14px 8px 10px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px;
  }
  .countdown b { font-size: 2.4rem; line-height: 1; margin-bottom: 6px; }
  .countdown span { font-size: 0.7rem; }
  .countdown.is-done > div { padding: 18px 24px; }
}

/* Swipe cards */
.scroller {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; margin: 0 -18px; padding-left: 18px; padding-right: 18px;
}
.scroller a, .scroller .chip-card {
  scroll-snap-align: start; flex: 0 0 72%;
  text-decoration: none; color: inherit;
}
.shot {
  margin: 0;
  position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  background: var(--card);
}
.shot img { display: block; width: 100%; height: 180px; object-fit: cover; }
.shot figcaption, .chip-card {
  padding: 10px 12px; font-weight: 800; letter-spacing: 0.04em;
}
.chip-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: 14px; border-top: 3px solid var(--gold);
}
.chip-card small { display: block; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-top: 4px; }
@media (min-width: 768px) {
  .scroller { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .scroller a, .scroller .chip-card { flex: none; }
}

/* How it works */
.steps { display: grid; gap: 12px; }
/* Phones: number beside the text, so three steps read as one short list. */
.step {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-items: start;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
}
.step-num {
  grid-row: span 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-family: "Anton", sans-serif; color: var(--green);
  background: rgba(31,157,85,0.15); border: 1px solid rgba(31,157,85,0.45);
}
.step h3 { font-family: "Anton", sans-serif; font-weight: 400; margin: 2px 0 2px; letter-spacing: 0.02em; font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.92rem; line-height: 1.45; }
@media (min-width: 768px) {
  .step { display: block; padding: 20px; border-radius: 16px; }
  .step-num { margin-bottom: 10px; }
  .step h3 { font-size: 1.2rem; margin: 0 0 4px; }
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Club wall ---------- */
.wall {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.wall-item {
  display: block; width: 100%;
  margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: 12px; overflow: hidden;
}
.wall-item img { display: block; width: 100%; height: 150px; object-fit: cover; }
.wall-item.is-anchor { grid-column: 1 / -1; }
.wall-item.is-anchor img { height: 230px; }
/* Phones: after the full-width anchor, photos pair up. An odd one out at the
   end goes full width instead of leaving a hole. */
.wall-item:last-child:nth-child(even) { grid-column: 1 / -1; }
.wall-item:last-child:nth-child(even) img { height: 200px; }
.wall-chip {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(201,160,92,0.92); color: #1a1200;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px;
}
/* Laptop: column count and anchor size depend on how many photos there are,
   so no count leaves a hole in the middle of the wall. */
@media (min-width: 768px) {
  .wall { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 12px; }
  .wall-item, .wall-item img,
  .wall-item.is-anchor img,
  .wall-item:last-child:nth-child(even) img { height: 100%; }
  .wall-item:last-child:nth-child(even) { grid-column: auto; }
  .wall-item.is-anchor { grid-column: span 2; grid-row: span 2; }

  .wall-n1 { grid-template-columns: 1fr; grid-auto-rows: 460px; }
  .wall-n1 .wall-item.is-anchor { grid-column: auto; grid-row: auto; }
  .wall-n2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 360px; }
  .wall-n2 .wall-item.is-anchor { grid-column: auto; grid-row: auto; }
  .wall-n3 { grid-template-columns: repeat(3, 1fr); }
  .wall-n4 { grid-template-columns: repeat(3, 1fr); }
  .wall-n4 .wall-item.is-anchor { grid-column: 1 / -1; }

  /* 5+: anchor and four tiles fill two rows, then rows of four. Stretch the
     tail of an incomplete last row across it. */
  .wall-n5 .wall-item:last-child:nth-child(4n+6) { grid-column: 1 / -1; }
  .wall-n5 .wall-item:nth-last-child(2):nth-child(4n+6),
  .wall-n5 .wall-item:last-child:nth-child(4n+7) { grid-column: span 2; }
  .wall-n5 .wall-item:last-child:nth-child(4n+8) { grid-column: span 2; }
}
.empty {
  color: var(--muted); border: 1px dashed var(--border); border-radius: 16px;
  padding: 28px 16px; text-align: center;
}

.week { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.day {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  text-align: center; padding: 12px 6px; border-top: 3px solid var(--green);
}
.day.match { border-top-color: var(--gold); }
.day b { display: block; font-family: "Anton", sans-serif; font-size: 1.15rem; }
.day span { color: var(--muted); font-size: 0.75rem; }
@media (min-width: 768px) { .week { grid-template-columns: repeat(6, 1fr); } }

.leagues { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.league {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: 14px; padding: 14px;
  border-top: 3px solid var(--gold);
}
.league .tag { color: var(--gold); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.league h3 { font-family: "Anton", sans-serif; font-weight: 400; margin: 6px 0 4px; }
.league p { color: var(--muted); margin: 0; font-size: 0.88rem; }
.league.future { border-style: dashed; }
@media (min-width: 768px) { .leagues { grid-template-columns: repeat(4, 1fr); } .leagues.future { grid-template-columns: 1fr 1fr; max-width: 560px; } }

.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  flex: 1; min-width: 140px; text-align: center; text-decoration: none; color: var(--text); font-weight: 800;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px;
}

/* ---------- Schedule ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.filters button {
  flex: 0 0 auto; min-height: 40px;
  background: transparent; color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 14px; font-weight: 800; font-family: inherit; cursor: pointer;
}
.filters button.on { background: var(--gold); color: #1a1200; border-color: var(--gold); }
.month-label {
  color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em;
  margin: 22px 0 8px;
}
.fix {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px; margin-bottom: 8px; text-decoration: none; color: inherit;
}
.fix.is-final { opacity: 0.72; }
.fix-date { text-align: center; }
.fix-date b { display: block; font-family: "Anton", sans-serif; font-size: 1.45rem; line-height: 1; }
.fix-date span { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.06em; }
.fix-main .who { font-family: "Anton", sans-serif; letter-spacing: 0.02em; font-size: 1.05rem; }
.fix-crest {
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  object-fit: contain; vertical-align: -3px; margin-right: 5px;
}
.fix-main .where { color: var(--muted); font-size: 0.8rem; }
.time-pill, .score-pill {
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px;
  font-weight: 800; font-size: 0.82rem; white-space: nowrap;
}
.score-pill { background: var(--green); color: #04270f; border-color: var(--green); }
.pending-pill { color: var(--muted); font-weight: 700; font-size: 0.75rem; }
.fix-side { text-align: right; }
/* Own row under the fixture so the button never squeezes a long opponent name. */
.fix-watch { grid-column: 2 / -1; }
/* Played games fade, but their replay button stays at full strength. */
.fix.is-final.has-watch { opacity: 1; }
.fix.is-final.has-watch > :not(.fix-watch) { opacity: 0.72; }

/* Stream links */
.watch-btn {
  position: relative; z-index: 2; /* above .match-card-link */
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; box-sizing: border-box; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--green);
  background: transparent; color: var(--text);
  font-weight: 800; font-size: 0.85rem; text-decoration: none; white-space: nowrap;
}
.watch-btn:hover { background: rgba(31,157,85,0.14); }
.watch-btn .watch-icon { width: 14px; height: 14px; color: var(--green); flex: 0 0 auto; }
.watch-btn.is-live, .watch-btn.is-soon { background: var(--green); color: #04270f; }
.watch-btn.is-live:hover, .watch-btn.is-soon:hover { background: var(--green-dark); }
.watch-btn.is-live .watch-icon, .watch-btn.is-soon .watch-icon { color: #04270f; }
.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #e5484d; color: #fff; border-radius: 4px; padding: 2px 6px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em;
}
.live-badge i {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .live-badge i { animation: none; } }
.match-watch { margin-top: 12px; }
.match-card.is-live { border-top-color: #e5484d; }
.match-card .live-kicker .live-badge { font-size: 0.78rem; padding: 4px 9px; }
.match-card.is-live .watch-btn {
  display: flex; justify-content: center; width: 100%; max-width: 360px;
  min-height: 52px; font-size: 1.05rem;
}
.match-card.is-live .watch-btn .live-badge { display: none; }
.match-card.is-live .watch-btn .watch-icon { width: 18px; height: 18px; }
.match-card.is-live + .match-card { margin-top: 12px; }
.standings { margin-top: 26px; }
.standings-team { margin: 0; font-size: 1.4rem; }
.standings-league { color: var(--muted); font-size: 0.85rem; margin: 2px 0 10px; }
.standings-scroll {
  overflow-x: auto; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px;
}
.standings-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.standings-table th {
  color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 10px 8px; border-bottom: 1px solid var(--border);
}
.standings-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); }
.standings-table tbody tr:last-child td { border-bottom: 0; }
.standings-table .num { text-align: center; font-variant-numeric: tabular-nums; width: 2.6em; }
.standings-table .team { text-align: left; font-weight: 700; }
.standings-table .pts { font-weight: 800; }
.standings-table tr.is-us td { background: var(--card-2); color: var(--gold); }
.standings-table tr.is-us td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
@media (max-width: 479px) { .standings-table .wide { display: none; } }
.ft { display: block; text-align: center; color: var(--muted); font-size: 0.65rem; letter-spacing: 0.08em; margin-top: 3px; }
/* One card with the photo showing through it, not a card inside a frame. */
.featured {
  position: relative; overflow: hidden;
  border-radius: 16px; margin: 16px 0 8px;
}
.featured .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.featured .inner { position: relative; }
.featured .match-card {
  margin: 0;
  background: linear-gradient(180deg, rgba(15,44,36,0.8), rgba(18,51,40,0.94));
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox button {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 1.4rem; cursor: pointer;
}
.lightbox .prev, .lightbox .next {
  top: auto; bottom: 24px; right: auto; width: auto; border-radius: 999px;
  padding: 8px 16px; font-size: 0.9rem; font-weight: 800;
}
.lightbox .prev { left: 16px; }
.lightbox .next { right: 16px; left: auto; }

/* ---------- Join (sign-up + player login) ---------- */
/* The tab bar would sit over the form fields on phones; the brand link in the
   top bar still goes home. */
body.pub.join { padding-bottom: env(safe-area-inset-bottom); }
.join .pub-tabbar { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.join-hero {
  position: relative; overflow: hidden;
  padding: 22px 0 16px;
  background:
    radial-gradient(700px 360px at 50% -20%, rgba(31,157,85,0.3), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.join-hero.has-photo { padding-top: 64px; }
.join-hero.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,26,21,0.2) 0%, rgba(8,26,21,0.7) 45%, var(--bg) 100%);
}
.join-hero-copy { position: relative; z-index: 1; }
.join-hero h1 { font-size: clamp(2.3rem, 11vw, 4.4rem); margin: 0 0 8px; }
.join-hero h1 .gold { color: var(--gold); }
.join-hero .lede { font-size: 1rem; margin-bottom: 12px; }
.proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.proof li {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(8,26,21,0.7); border: 1px solid rgba(201,160,92,0.55); color: var(--text);
}
.proof li::before { content: "\2713"; color: var(--green); margin-right: 6px; }

.join-main { max-width: 560px; padding-top: 0; padding-bottom: 32px; }
.login-link { color: var(--muted); font-size: 0.92rem; margin: 0 0 6px; }
.login-link a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  font-weight: 800;
}
.join-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-top: 3px solid var(--gold);
  border-radius: 16px; padding: 18px 16px 20px;
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
.join-card h1, .join-card h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); margin: 0 0 6px; }
.join-card .support { margin: 0 0 18px; }

.progress { margin-bottom: 16px; }
.progress span {
  display: block; color: var(--gold); font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.progress-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.progress-fill { width: 50%; height: 100%; background: var(--green); border-radius: inherit; transition: width .25s ease; }

.join-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { margin-bottom: 14px; min-width: 0; }
.field-pair { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.join label, .join .label {
  display: block; font-size: 0.84rem; font-weight: 700; color: var(--text);
  margin-bottom: 6px; letter-spacing: 0.02em;
}
.join label em, .join .label em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 4px; }
.join input[type="text"], .join input[type="tel"], .join input[type="email"],
.join input[type="url"], .join input[type="password"], .join textarea {
  display: block; width: 100%; min-width: 0; min-height: 50px;
  padding: 12px 14px; font-size: 16px; font-family: inherit; color: var(--text);
  background: rgba(8,26,21,0.65); border: 1px solid var(--border); border-radius: 12px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s;
}
.join textarea { min-height: 88px; resize: vertical; }
.join input::placeholder, .join textarea::placeholder { color: #6f8a7e; }
.join input:focus, .join textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,157,85,0.25); }
.join input[aria-invalid="true"] { border-color: #ef4444; }
.field-error { color: #f87171; font-size: 0.84rem; margin: 6px 0 0; }
.field-error:empty { display: none; }
.field-hint { color: var(--muted); font-size: 0.8rem; margin: 6px 0 0; }
.field-error:not(:empty) + .field-hint { display: none; }

.level-options { display: grid; gap: 8px; }
.join .level-opt, .join .chip { position: relative; margin: 0; cursor: pointer; }
.level-opt input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.level-opt span {
  display: flex; align-items: center; min-height: 48px; padding: 10px 14px 10px 44px;
  border: 1px solid var(--border); border-radius: 12px; background: rgba(8,26,21,0.65);
  font-weight: 700; font-size: 0.95rem; position: relative;
}
.level-opt span::before {
  content: ""; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted);
}
.level-opt input:checked + span { border-color: var(--green); background: rgba(31,157,85,0.14); }
.level-opt input:checked + span::before { border-color: var(--green); background: radial-gradient(circle, var(--green) 45%, transparent 50%); }
.level-opt input:focus-visible + span, .chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(31,157,85,0.35); }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chip span {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  border: 1px solid var(--border); border-radius: 999px; background: rgba(8,26,21,0.65);
  font-weight: 800; font-size: 0.88rem;
}
.chip input:checked + span { background: var(--green); border-color: var(--green); color: #04270f; }

.join .submit-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 54px; margin-top: 6px; padding: 14px;
  font-size: 1.05rem; font-weight: 800; font-family: inherit; color: #04270f; text-decoration: none;
  background: var(--green); border: none; border-radius: 12px; cursor: pointer;
}
.join .submit-btn:hover { background: var(--green-dark); }
.join .submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.back-btn {
  display: block; margin: 8px auto 0; min-height: 44px; padding: 0 14px;
  background: none; border: 0; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer;
}
.fine-print { color: var(--muted); font-size: 0.84rem; text-align: center; margin: 12px 0 0; }
.join .form-error { color: #f87171; font-size: 0.88rem; text-align: center; margin: 10px 0 0; display: none; }

.join-next { margin-top: 28px; }
.join-next h2 { font-size: 1.5rem; margin: 0 0 12px; }
.join-next ol { margin: 0; padding: 0; list-style: none; counter-reset: next; display: grid; gap: 10px; }
.join-next li {
  counter-increment: next; position: relative; padding-left: 40px; color: var(--muted); font-size: 0.94rem;
}
.join-next li b { color: var(--text); }
.join-next li::before {
  content: counter(next); position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Anton", sans-serif; color: var(--green);
  background: rgba(31,157,85,0.15); border: 1px solid rgba(31,157,85,0.45);
}

.join-done { text-align: center; margin-top: 16px; }
.join-done p { color: var(--muted); margin: 0 0 20px; }
.join-done a:not(.wa-cta) { font-weight: 700; text-decoration: none; }
.wa-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 56px; padding: 14px 20px;
  font-size: 1.05rem; font-weight: 800; color: #04270f; text-decoration: none;
  background: #25d366; border-radius: 14px;
  box-shadow: 0 12px 34px rgba(37,211,102,0.3);
}
.wa-cta svg { width: 24px; height: 24px; flex: none; }

.login-view { padding-top: 32px; }
.login-view .login-link { text-align: center; margin-top: 18px; }

@media (min-width: 768px) {
  .join-hero { padding: 64px 0 36px; }
  .join-hero.has-photo { padding-top: 200px; }
  .join-hero-copy, .join-main { max-width: 560px; }
  .join-card { padding: 24px 24px 26px; }
}
