/* Fonts served from our own domain (no Google Fonts request). Latin only. */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/anton.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/fonts/jetbrains-mono.woff2) format('woff2'); }

/* Game search on the landing page: hero search, filters, list, map, game
   sheet and the step before another app's game. Uses the landing's tokens
   (--accent, --font-display...). Loaded by landing.html. */

/* ---------- Hero search ---------- */
.hero-search {
  position: relative;
  /* Above .hero-links and the ticker, so the suggestions cover them. */
  z-index: 5;
  width: 100%;
  max-width: 760px;
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.hs-row {
  position: relative;
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  padding: 0.45rem;
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.78);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hs-field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.8rem;
  min-width: 0;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}
.hs-field:focus-within { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.1); }
.hs-field svg { flex-shrink: 0; color: var(--text-muted); }
.hs-field input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font: 500 1rem var(--font-body);
}
.hs-field input::placeholder { color: rgba(255, 255, 255, 0.45); }
.hs-near, .hs-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 48px;
  padding: 0 1.1rem;
  border-radius: 11px;
  font: 600 0.95rem var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}
.hs-near {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.hs-near.active { background: var(--accent); color: var(--ink); border-color: var(--accent); }
/* When (landing search): required, like the dates of a flight search. */
.hs-when {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 48px;
  min-width: 170px;
  padding: 0 0.85rem;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font: 600 0.95rem var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}
.hs-when > span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.hs-when svg { flex-shrink: 0; color: var(--text-muted); }
.hs-when .fg-chev { opacity: 0.6; }
.hs-when.empty > span { color: rgba(255, 255, 255, 0.55); font-weight: 500; }
.hs-when.need { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.25); }
.hs-when[aria-expanded="true"] { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.1); }
.hs-when:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hs-go { background: var(--accent); color: var(--ink); border: 0; }
.hs-go:hover { background: var(--accent-bright); }
.hs-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.6rem);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  z-index: 20;
}
.hs-suggest button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font: 500 0.95rem var(--font-body);
  text-align: left;
  cursor: pointer;
}
.hs-suggest button:hover, .hs-suggest button.on { background: rgba(255, 255, 255, 0.06); }
.hs-suggest .count { color: var(--text-muted); font: 500 0.75rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.hs-hint { margin: 0; font: 500 0.85rem var(--font-body); color: var(--text-secondary); min-height: 1.2em; }
.hero-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.1rem; position: relative; z-index: 3; }
.hero-links a { color: var(--text-secondary); font: 500 0.92rem var(--font-body); text-decoration: underline; text-underline-offset: 3px; }
.hero-links a:hover { color: var(--accent); }

/* ---------- Chips and pills (shared) ---------- */
.fg-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 38px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.55);
  color: var(--text-primary);
  font: 600 0.85rem var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}
.fg-chip:hover { border-color: var(--border-strong); }
.fg-chip.on { background: var(--accent); border-color: var(--accent); color: var(--ink); }
/* ---------- Dropdowns: our own menus, not the browser's ---------- */
.fg-select {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 38px;
  max-width: 230px;
  padding: 0 0.8rem 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font: 600 0.85rem var(--font-body);
  cursor: pointer;
}
.fg-select > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fg-select .fg-chev { flex-shrink: 0; opacity: 0.6; transition: transform 0.15s ease; }
.fg-select:hover { border-color: var(--border-strong); }
.fg-select[aria-expanded="true"] { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.08); }
.fg-select[aria-expanded="true"] .fg-chev { transform: rotate(180deg); }
.fg-select.on { border-color: var(--accent); color: var(--accent); }
.fg-select:focus-visible, .fg-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fg-pop-back { position: fixed; inset: 0; z-index: 1090; }
.fg-pop {
  position: fixed;
  z-index: 1100;
  min-width: 220px;
  max-width: min(340px, calc(100vw - 24px));
  max-height: min(72vh, 560px);
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #161616;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  animation: fg-pop-in 0.12s ease-out;
}
@keyframes fg-pop-in { from { opacity: 0; transform: translateY(-4px); } }
.fg-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 40px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font: 500 0.9rem var(--font-body);
  text-align: left;
  cursor: pointer;
}
.fg-opt:hover, .fg-opt:focus-visible { background: rgba(255, 255, 255, 0.07); color: #fff; }
.fg-opt.on { color: #fff; font-weight: 600; }
.fg-opt svg { flex-shrink: 0; color: var(--accent); }
/* The day picker: quick picks, then From / To on a calendar. */
.fg-pop-cal { width: min(580px, calc(100vw - 24px)); max-width: calc(100vw - 24px); }
.fg-when { display: grid; grid-template-columns: 170px minmax(0, 1fr); }
.fg-when-quick { padding-right: 6px; }
.fg-cal { padding: 6px 6px 4px 14px; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.fg-cal-or { display: block; margin: 0 2px 8px; font: 600 0.75rem var(--font-body); color: var(--text-muted); }
.fg-cal-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.fg-cal-box { padding: 7px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); }
.fg-cal-box.active { border-color: var(--accent); }
.fg-cal-box small { display: block; font: 600 0.7rem var(--font-body); color: var(--text-muted); }
.fg-cal-box b { font: 600 0.9rem var(--font-body); color: #fff; }
.fg-cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; }
.fg-cal-head b { font: 400 1.1rem var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.fg-cal-head button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: #fff; cursor: pointer; }
.fg-cal-head button:hover:not([disabled]) { background: rgba(255, 255, 255, 0.08); }
.fg-cal-head button[disabled] { opacity: 0.25; cursor: default; }
.fg-cal-dow, .fg-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px 0; }
.fg-cal-dow span { text-align: center; font: 600 0.68rem var(--font-body); color: var(--text-muted); padding-bottom: 6px; }
.fg-cal-grid button { position: relative; height: 38px; border: 0; border-radius: 10px; background: transparent; color: #fff; font: 600 0.86rem var(--font-body); cursor: pointer; }
.fg-cal-grid button:hover:not([disabled]) { background: rgba(255, 255, 255, 0.09); }
.fg-cal-grid button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fg-cal-grid button[disabled] { color: rgba(255, 255, 255, 0.2); cursor: default; }
.fg-cal-grid button.today { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.fg-cal-grid button.has::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.fg-cal-grid button.mid { background: rgba(255, 212, 0, 0.16); border-radius: 0; }
.fg-cal-grid button.end { background: var(--accent); color: var(--ink); box-shadow: none; }
.fg-cal-grid button.end::after { background: var(--ink); }
.fg-cal-hint { margin: 10px 2px 2px; font: 500 0.78rem var(--font-body); color: var(--text-muted); }
@keyframes fg-sheet-in { from { transform: translateY(24px); opacity: 0; } }
@media (max-width: 640px) {
  .fg-pop-back { background: rgba(0, 0, 0, 0.55); }
  .fg-pop.sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; max-height: 80vh; border-radius: 18px 18px 0 0; padding: 10px 10px calc(14px + env(safe-area-inset-bottom)); animation: fg-sheet-in 0.18s ease-out; }
  .fg-pop.sheet .fg-opt { min-height: 48px; font-size: 1rem; }
  .fg-pop.sheet .fg-cal-grid button { height: 44px; }
  .fg-when { grid-template-columns: minmax(0, 1fr); }
  .fg-when-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0; }
  .fg-when-quick .fg-opt { border: 1px solid rgba(255, 255, 255, 0.12); }
  .fg-cal { margin-top: 10px; padding: 12px 2px 4px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
}
@media (prefers-reduced-motion: reduce) {
  .fg-pop, .fg-pop.sheet { animation: none; }
  .fg-select .fg-chev { transition: none; }
}

/* ---------- Results section ---------- */
.find-section { padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(3rem, 6vw, 5rem); background: var(--bg-primary); border-top: 1px solid var(--border); }
.find-head { margin-bottom: 1.4rem; }
.fg-bar {
  position: sticky;
  top: 64px;
  z-index: 15;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 0;
  margin-bottom: 0.4rem;
  background: var(--bg-primary);
  /* Every filter on screen: wrap onto a second row, never slide sideways. */
  flex-wrap: wrap;
}
.fg-bar > * { flex-shrink: 0; }
.fg-clear { background: transparent; border: 0; color: var(--accent); font: 600 0.85rem var(--font-body); cursor: pointer; padding: 0 0.4rem; height: 38px; }
.fg-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0.4rem 0 0.8rem;
  min-height: 36px;
}
.fg-count { font: 500 0.75rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.fg-toggle { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); }
.fg-toggle button { height: 30px; padding: 0 0.85rem; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); font: 600 0.8rem var(--font-body); cursor: pointer; }
.fg-toggle button.on { background: #fff; color: var(--ink); }
.fg-sub-right { display: flex; gap: 0.5rem; align-items: center; }
.fg-sub-left { display: flex; gap: 0.6rem; align-items: center; }
.fg-clear-sub { display: none; }
.fg-viewtoggle { display: none; }

.fg-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 1.4rem; align-items: start; }
.fg-mapwrap { position: sticky; top: 130px; height: calc(100vh - 160px); min-height: 420px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #111; }
/* maplibre-gl.css sets .maplibregl-map { position: relative }, which would
   collapse the map to zero height: out-rank it. */
.fg-mapwrap > .fg-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.fg-map-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font: 500 0.9rem var(--font-body); text-align: center; padding: 1rem; pointer-events: none; }
/* display:flex above would otherwise beat the hidden attribute and leave an
   invisible layer over the map that swallows every tap on a pin. */
.fg-map-msg[hidden] { display: none; }

.fg-day { display: flex; align-items: baseline; gap: 0.6rem; margin: 1.4rem 0 0.7rem; padding-bottom: 0.45rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.fg-day:first-child { margin-top: 0.2rem; }
.fg-day b { font: 400 1.35rem var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-primary); }
.fg-day span { font: 500 0.72rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

.fg-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  padding: 0.95rem 1.05rem;
  margin-bottom: 0.65rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.fg-card:hover, .fg-card.hl { border-color: var(--border-strong); background: var(--bg-card-hover); }
.fg-card.hidden-app { border-style: dashed; border-color: rgba(255, 212, 0, 0.4); }
/* A private group's game: sunk below the live cards and muted, so it reads as
   "not open to everyone". The pill is the one bright thing and says why. */
.fg-card.locked { background: rgba(255, 255, 255, 0.015); border-color: rgba(255, 255, 255, 0.06); }
.fg-card.locked:hover, .fg-card.locked.hl { background: rgba(255, 255, 255, 0.035); border-color: rgba(255, 255, 255, 0.14); }
.fg-card.locked .fg-title { color: #959CAA; }
.fg-card.locked .fg-meta { color: #7B8290; }
.fg-card.locked .fg-foot, .fg-card.locked .fg-src { color: #7B8290; }
.fg-card.locked .fg-level { border-color: rgba(255, 255, 255, 0.12); color: #7B8290; }
.fg-access { margin: 0.9rem 0 0.2rem; }
.fg-access .fg-toggle button { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; }
@media (max-width: 760px) {
  .fg-access .fg-toggle { display: flex; width: 100%; }
  .fg-access .fg-toggle button { flex: 1 1 0; justify-content: center; }
}
.fg-private { display: inline-flex; align-items: center; gap: 0.3rem; flex-shrink: 0; padding: 3px 8px; border-radius: 7px; border: 1px solid rgba(255, 212, 0, 0.55); color: var(--accent); font: 600 0.72rem var(--font-body); white-space: nowrap; }
.fg-sheet > .fg-private { margin: 0.1rem 0 0.9rem; }
.fg-src { display: flex; align-items: center; gap: 0.4rem; font: 500 0.68rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.fg-tag-hidden { margin-left: auto; border: 1px solid rgba(255, 212, 0, 0.55); color: var(--accent); border-radius: 4px; padding: 1px 6px; letter-spacing: 0.06em; }
.fg-top { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.fg-title { font: 600 1.05rem var(--font-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fg-spots { flex-shrink: 0; padding: 4px 9px; border-radius: 7px; font: 600 0.75rem var(--font-body); background: var(--accent); color: var(--ink); }
.fg-spots.full { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }
.fg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; font: 600 0.88rem var(--font-body); color: rgba(255, 255, 255, 0.86); }
.fg-level { border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 4px; padding: 0 6px; font: 600 0.7rem var(--font-body); color: var(--text-secondary); }
.fg-foot { display: flex; align-items: center; gap: 1rem; padding-top: 0.6rem; margin-top: 0.15rem; border-top: 1px solid rgba(255, 255, 255, 0.08); font: 400 0.85rem var(--font-body); color: var(--text-secondary); min-width: 0; }
.fg-foot > .venue { flex: 1 1 auto; min-width: 0; flex-shrink: 1; }
.fg-foot .venue .vt { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fg-foot svg { flex-shrink: 0; }
.fg-foot > span { display: inline-flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.fg-foot svg { opacity: 0.6; }
.fg-empty, .fg-loading { padding: 3rem 1rem; text-align: center; color: var(--text-secondary); font: 500 0.95rem var(--font-body); }
.fg-empty button { margin-top: 1rem; }
.fg-fair { margin: 1.6rem 0 0; text-align: center; color: var(--text-muted); font: 400 0.82rem/1.5 var(--font-body); }

/* Map pins */
.fg-pin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font: 700 12px var(--font-body);
  border: 2px solid #0A0A0A;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  white-space: nowrap;
}
.fg-pin.full { background: #3a3a3a; color: #ddd; }
.fg-pin .pp { background: #0A0A0A; color: #FFD400; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.fg-pin.full .pp { color: #ddd; }
.fg-pin.sel .pp { background: #0A0A0A; }
.fg-pin.sel { background: #fff; }
.fg-me { width: 14px; height: 14px; border-radius: 50%; background: #3b82f6; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.25); }
/* At the top of the map: the map is taller than the screen, so a card at its
   bottom edge would open out of sight. Leaves room for the zoom buttons. */
.fg-map-card {
  position: absolute;
  left: 12px;
  right: 56px;
  top: 12px;
  max-height: 62%;
  overflow: auto;
  background: rgba(20, 20, 20, 0.97);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem 0.8rem 0.2rem;
  z-index: 5;
}
.fg-map-card h4 { margin: 0 2rem 0.6rem 0.2rem; font: 600 0.95rem var(--font-body); color: #fff; }
.fg-map-card .x { position: absolute; top: 6px; right: 8px; background: transparent; border: 0; color: #fff; font-size: 22px; cursor: pointer; width: 34px; height: 34px; }

/* ---------- Game sheet ---------- */
/* If a sheet is ever taller than the screen, the backdrop scrolls from its
   top (margin: auto on the sheet) instead of cutting off both ends. */
.fg-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.72); overflow-y: auto; overscroll-behavior: contain; }
.fg-modal.open { display: flex; }
.fg-sheet {
  position: relative;
  box-sizing: border-box; /* the max-height below includes the padding */
  width: 100%;
  max-width: 560px;
  /* dvh = the height actually visible on a phone, with the address bar
     showing (vh is the taller one, address bar hidden, and cut the sheet). */
  max-height: 92vh;
  max-height: calc(100dvh - 48px);
  margin: auto;
  overflow: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.4rem 1.4rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-body);
}
.fg-sheet .x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: transparent; color: #fff; font-size: 26px; cursor: pointer; }
.fg-sheet h3 { margin: 0.3rem 2.2rem 0.9rem 0; font: 400 1.9rem/1.05 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.fg-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; margin-bottom: 1rem; }
.fg-fact { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 0.6rem 0.7rem; background: rgba(255, 255, 255, 0.03); }
.fg-fact small { display: block; font: 500 0.62rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.25rem; }
.fg-fact b { font: 600 0.95rem var(--font-body); }
.fg-block { margin: 1rem 0; }
.fg-block > small { display: block; font: 500 0.66rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.45rem; }
.fg-block p { margin: 0 0 0.5rem; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.5; }
.fg-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fg-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 42px;
  padding: 0 1rem;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: 600 0.88rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.fg-btn:hover { border-color: var(--border-strong); }
.fg-btn.primary { width: 100%; height: 52px; border: 0; background: var(--accent); color: var(--ink); font-size: 1rem; font-weight: 700; }
.fg-btn.primary:hover { background: var(--accent-bright); }
.fg-btn.primary[disabled] { opacity: 0.6; cursor: default; }
.fg-also .fg-card { margin-bottom: 0.5rem; }
.fg-note { font-size: 0.8rem !important; color: var(--text-muted) !important; }

/* Lead form */
.fg-form .lbl { display: block; font: 500 0.66rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin: 0.8rem 0 0.35rem; }
.fg-form input[type=email], .fg-form input[type=tel], .fg-form input[type=text], .fg-form select {
  width: 100%;
  height: 46px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 0 0.85rem;
  font: 500 0.98rem var(--font-body);
  box-sizing: border-box;
}
.fg-form select { color-scheme: dark; }
.fg-form .fg-dial { width: 100%; max-width: none; height: 46px; justify-content: space-between; border-radius: 11px; border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.045); color: #fff; font: 500 0.98rem var(--font-body); padding: 0 0.85rem; }
.fg-phone { display: grid; grid-template-columns: 112px 1fr; gap: 0.5rem; }
/* Saved details: shown back to the player to confirm, with a way to change them. */
.fg-saved { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin: 0.9rem 0 0.2rem; padding: 0.8rem 0.9rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); }
.fg-saved[hidden], .fg-fields[hidden] { display: none; }
.fg-saved-who { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.fg-saved-who small { font: 600 0.75rem var(--font-body); color: var(--text-muted); }
.fg-saved-who b { font: 600 0.95rem var(--font-body); color: #fff; overflow-wrap: anywhere; }
.fg-saved-who span { font: 500 0.88rem var(--font-body); color: var(--text-secondary); }
.fg-saved .fg-btn { flex-shrink: 0; height: 36px; padding: 0 0.9rem; }
.fg-check { display: flex; gap: 0.65rem; align-items: flex-start; margin: 0.8rem 0 0; font-size: 0.88rem; line-height: 1.45; color: var(--text-secondary); cursor: pointer; }
.fg-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #FFD400; flex-shrink: 0; }
/* Tap form: Go stays shaded until the required box is ticked; tapping it
   anyway flashes that box. */
.fg-btn.primary.is-off { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.45); }
.fg-btn.primary.is-off:hover { background: rgba(255, 255, 255, 0.16); }
.fg-check.fg-need { color: #fff; animation: fg-need 0.9s ease 2; border-radius: 10px; }
@keyframes fg-need { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 212, 0, 0); } 40% { box-shadow: 0 0 0 6px rgba(255, 212, 0, 0.35); } }
.fg-ts { min-height: 70px; margin: 0.9rem 0 0.4rem; display: flex; justify-content: center; }
.fg-err { color: #f87171; font: 500 0.88rem var(--font-body); margin: 0.4rem 0; min-height: 1.2em; }
.fg-privacy { display: block; text-align: center; margin-top: 0.7rem; color: var(--text-muted); font-size: 0.8rem; }

@media (max-width: 1000px) {
  .fg-layout { grid-template-columns: minmax(0, 1fr); }
  .fg-mapwrap { position: relative; top: 0; height: 68vh; display: none; }
  .fg-layout.show-map .fg-mapwrap { display: block; }
  .fg-layout.show-map .fg-list { display: none; }
  .fg-viewtoggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .hs-row { flex-wrap: wrap; }
  .hs-field { flex-basis: 100%; }
  .hs-near, .hs-go { flex: 1; }
  .hs-when { flex-basis: 100%; }
  .fg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fg-sheet { padding: 1.2rem 1.05rem 1rem; }
  .fg-sheet h3 { font-size: 1.6rem; }
  .fg-bar { top: 56px; }
  .fg-clear-sub { display: inline-flex; align-items: center; }
}

/* ---------- Landing: "Every game, one place" explainer ---------- */
.find-explain .find-head { max-width: 760px; }
.fx-stats { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.8rem 0 0.4rem; }
.fx-stats[hidden] { display: none; }
.fx-tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 150px;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.15s;
}
.fx-tile:hover { border-color: var(--accent); }
.fx-tile b { font: 400 2.4rem/1 var(--font-display); color: var(--accent); }
.fx-tile span { font: 500 0.85rem var(--font-body); color: var(--text-secondary); }
.fx-total { background: rgba(255, 212, 0, 0.08); border-color: rgba(255, 212, 0, 0.35); }
.fx-orgs { flex-basis: 100%; margin: 0.2rem 0 0; color: var(--text-muted); font: 500 0.85rem var(--font-body); }
.fx-steps { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; counter-reset: fx; }
.fx-steps li { counter-increment: fx; padding: 1.2rem; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-card); display: flex; flex-direction: column; gap: 0.45rem; }
.fx-steps li::before { content: "0" counter(fx); font: 500 0.75rem var(--font-mono); letter-spacing: 0.14em; color: var(--accent); }
.fx-steps b { font: 400 1.6rem var(--font-display); text-transform: uppercase; color: var(--text-primary); }
.fx-steps span { color: var(--text-secondary); font: 400 0.95rem/1.5 var(--font-body); }
.fx-fair { max-width: 640px; margin: -0.6rem 0 1.6rem; font: 500 0.95rem var(--font-body); line-height: 1.5; color: var(--text-secondary); }
.fx-cta { display: inline-flex; }
@media (max-width: 760px) {
  .fx-steps { grid-template-columns: minmax(0, 1fr); }
  .fx-tile { flex: 1 1 calc(50% - 0.7rem); min-width: 0; }
}

/* ---------- The results page (public/search.html) ---------- */
.find-page {
  --bg-primary: #0A0A0A; --bg-surface: #141414; --bg-card: rgba(255, 255, 255, 0.04); --bg-card-hover: rgba(255, 255, 255, 0.07);
  --accent: #FFD400; --accent-bright: #FFE14D; --ink: #0A0A0A; --text-primary: #FFFFFF; --text-secondary: rgba(255, 255, 255, 0.74);
  --text-muted: rgba(255, 255, 255, 0.5); --border: rgba(255, 255, 255, 0.15); --border-strong: rgba(255, 255, 255, 0.4);
  --font-display: 'Anton', Impact, 'Arial Narrow', sans-serif; --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace; --gutter: clamp(1rem, 3.7vw, 3.4rem);
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
}
.fp-head { padding: 0.9rem var(--gutter) 0.4rem; max-width: 1280px; margin: 0 auto; box-sizing: border-box; }
.fp-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fp-logo img { height: 40px; width: auto; display: block; }
.fp-right { display: flex; align-items: center; gap: 0.8rem; }
.fp-lang { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.fp-lang button { height: 34px; min-width: 42px; border: 0; background: transparent; color: var(--text-secondary); font: 600 0.8rem var(--font-mono); cursor: pointer; }
.fp-lang button.on { background: var(--accent); color: var(--ink); }
.fp-login { height: 38px; display: inline-flex; align-items: center; padding: 0 1rem; border-radius: 10px; background: var(--accent); color: var(--ink); font: 700 0.88rem var(--font-body); text-decoration: none; }
.fp-search { max-width: none; margin-top: 0.9rem; }
.find-page .hero-search .hs-chips, .find-page .hero-search .hs-hint { display: none; }
.fp-main { padding: 0 var(--gutter) 3rem; max-width: 1280px; margin: 0 auto; box-sizing: border-box; }
.find-page .fg-bar { top: 0; }
.find-page .fg-mapwrap { top: 70px; height: calc(100vh - 100px); }
/* Phones and tablets: the map sits right under List | Map and leaves room
   above and below it, so a swipe can still scroll the page. */
@media (max-width: 1000px) {
  .find-page .fg-mapwrap { top: 0; height: 58vh; height: min(58svh, 540px); min-height: 300px; }
}

/* ---------- Phones: search summary, Filters | Map, and the Filters panel ---------- */
/* Like a hotel or flight search on a phone: the search is one line (place,
   dates) until tapped, and the filters wait behind one button. */
.hs-summary, .fg-tools { display: none; }
.hs-summary {
  width: 100%;
  align-items: center;
  gap: 0.7rem;
  height: 54px;
  padding: 0 1rem;
  border-radius: 14px;
  border: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font: 600 1rem var(--font-body);
  text-align: left;
  cursor: pointer;
}
.hs-summary svg { flex-shrink: 0; color: var(--text-muted); }
.hs-sum-place { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-sum-when { flex-shrink: 0; padding-left: 0.7rem; border-left: 1px solid var(--border-strong); color: var(--text-secondary); font-weight: 500; }
.fg-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font: 600 0.95rem var(--font-body);
  cursor: pointer;
}
.fg-tool.on { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) {
  .find-page .fp-search .hs-summary { display: flex; }
  .find-page .fp-search.open .hs-summary, .find-page .fp-search:not(.open) .hs-row { display: none; }
  .find-page .fg-bar, .find-page .fg-viewtoggle { display: none; }
  .find-page .fg-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; position: sticky; top: 0; z-index: 15; padding: 0.7rem 0 0.4rem; background: var(--bg-primary); }
  .find-page .fg-sub { margin-top: 0.2rem; }
  /* Map view: the map takes the rest of the screen, minus a strip to scroll on. */
  .find-page .fg-mapwrap { height: calc(100vh - 290px); height: calc(100svh - 290px); min-height: 300px; }
}

/* The Filters panel: slides in from the left, chips for every option. */
.fg-modal.filt { justify-content: flex-start; align-items: stretch; padding: 0; }
.fg-filtsheet {
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-width: 0 1px 0 0;
  border-radius: 0 20px 20px 0;
  animation: fg-filt-in 0.2s ease-out;
}
@keyframes fg-filt-in { from { transform: translateX(-28px); opacity: 0; } }
.fg-fhead { position: relative; padding: 1.1rem 1.2rem 0.3rem; }
.fg-fhead h3 { margin: 0.2rem 2.4rem 0.4rem 0; }
.fg-fbody { flex: 1; overflow-y: auto; padding: 0.2rem 1.2rem 1rem; overscroll-behavior: contain; }
.fg-fsec { padding: 0.9rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.fg-fsec:last-child { border-bottom: 0; }
.fg-fsec > b { display: block; margin-bottom: 0.6rem; font: 600 0.95rem var(--font-body); color: var(--text-primary); }
.fg-fchips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.fg-ffoot { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; padding: 0.8rem 1.2rem calc(0.9rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg-surface); }
.fg-ffoot .fg-btn { height: 50px; }
.fg-ffoot .fg-btn[disabled] { opacity: 0.4; cursor: default; }
@media (max-width: 480px) {
  .fg-filtsheet { width: 100%; border-radius: 0; border-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fg-filtsheet { animation: none; }
}
/* Big screens: the list keeps a readable width and the map takes the rest. */
@media (min-width: 1400px) {
  .find-page .fp-head, .find-page .fp-main { max-width: 2400px; }
  .find-page .fg-layout { grid-template-columns: minmax(560px, 700px) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fp-logo img { height: 32px; }
  .find-page .fg-bar { top: 0; }
}

/* "No game near you?" card, the link under the results, and its sheet */
.fg-ask { margin: 0 auto 2rem; max-width: 520px; padding: 1.3rem 1.3rem 1.2rem; border: 1px solid rgba(255, 212, 0, 0.35); border-radius: 18px; background: rgba(255, 212, 0, 0.06); text-align: center; }
.fg-ask b { display: block; font: 400 1.7rem/1.05 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; color: #fff; margin-bottom: 0.55rem; }
.fg-ask p { margin: 0 0 1rem; color: var(--text-secondary); font: 400 0.95rem/1.5 var(--font-body); }
.fg-asklink { margin: 0.7rem 0 0; text-align: center; color: var(--text-muted); font: 400 0.85rem/1.5 var(--font-body); }
.fg-asklink button { border: 0; background: none; padding: 0.4rem 0.2rem; color: var(--accent); font: 600 0.85rem var(--font-body); text-decoration: underline; cursor: pointer; }
.fg-ask-intro { color: var(--text-secondary); margin: 0 0 0.4rem; line-height: 1.5; font-size: 0.95rem; }
.fg-asksub { display: block; margin: 0.15rem 0 0.4rem; color: var(--text-muted); font-size: 0.8rem; }
.fg-askdays, .fg-askslots { display: grid; gap: 0.4rem; margin-bottom: 0.7rem; }
.fg-askdays { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.fg-askslots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fg-askdays .fg-chip, .fg-askslots .fg-chip { justify-content: center; padding: 0 0.3rem; height: 38px; font-size: 0.82rem; white-space: nowrap; min-width: 0; }
@media (max-width: 420px) { .fg-askslots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fg-asksheet .fg-btn.primary { margin-top: 0.4rem; }

/* ---------------------------------------------------------------- organiser pages
   /organisers (A to Z list) and /o/<slug> (one profile), drawn by organisers.js,
   plus the "Who runs it" card on the game sheet. */
.og-main { max-width: 760px; padding-top: 0.6rem; }
.og-wait { color: var(--text-secondary); font-size: 0.95rem; margin: 1.5rem 0; }
.og-sample { margin: 0 0 1.1rem; padding: 0.7rem 1rem; border: 1px solid var(--accent); border-radius: 12px; color: var(--accent); font-size: 0.9rem; line-height: 1.4; }
.og-intro h1 { font: 400 clamp(2rem, 6vw, 2.8rem)/1.05 var(--font-display); letter-spacing: 0.01em; text-transform: uppercase; margin: 0.4rem 0 0.5rem; }
.og-intro p { color: var(--text-secondary); font-size: 1rem; line-height: 1.5; margin: 0 0 1.4rem; max-width: 60ch; }
.og-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.og-card { display: flex; align-items: center; gap: 0.9rem; padding: 0.95rem 1rem; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); color: var(--text-primary); text-decoration: none; }
.og-card:hover, .og-card:focus-visible { border-color: var(--border-strong); background: var(--bg-card-hover); }
.og-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.og-card-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.og-card-body b { font-size: 1.05rem; }
.og-tag { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.4; }
.og-meta { color: var(--accent); font-size: 0.82rem; font-weight: 600; margin-top: 0.15rem; }
/* Organiser rating: average of players Ballers sent who played (5+ ratings). */
.og-rate { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.15rem; }
.og-rate.big { font-size: 0.95rem; margin: 0.6rem 0 0; }
.og-rate b { color: var(--text-primary); }
.og-stars { display: inline-flex; gap: 1px; letter-spacing: 0; line-height: 1; }
.og-star { color: var(--border-strong); }
.og-star.on { color: var(--accent); }
/* Half star: a grey star with the left half of a yellow one laid over it. */
.og-star.half { position: relative; }
.og-star.half::after { content: '★'; position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; color: var(--accent); }
.og-arrow { color: var(--text-muted); font-size: 1.6rem; line-height: 1; }
.og-logo { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font: 700 0.85rem var(--font-body); letter-spacing: 0.02em; object-fit: cover; overflow: hidden; }
.og-logo.big { width: 72px; height: 72px; border-radius: 16px; font-size: 1.05rem; }
.og-back { display: inline-block; color: var(--text-secondary); text-decoration: none; font-size: 0.92rem; margin: 0.2rem 0 1rem; }
.og-back:hover { color: var(--text-primary); }
.og-head { display: flex; align-items: center; gap: 1rem; }
.og-head h1 { font: 400 clamp(2rem, 7vw, 2.8rem)/1 var(--font-display); letter-spacing: 0.01em; margin: 0 0 0.3rem; }
.og-site { color: var(--accent); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.og-site:hover { text-decoration: underline; }
.og-tagline { font-size: 1.08rem; line-height: 1.45; color: var(--text-primary); margin: 1rem 0 0.4rem; max-width: 60ch; }
.og-sec { margin: 1.4rem 0 0; }
.og-sec h2 { font: 600 0.78rem var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 0.6rem; }
.og-about { color: var(--text-secondary); font-size: 0.98rem; line-height: 1.6; margin: 0; max-width: 62ch; white-space: pre-line; }
.og-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.og-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 0.8rem; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 0.88rem; color: var(--text-primary); }
.og-chip.y { border-color: rgba(255, 212, 0, 0.65); color: var(--accent); }
.og-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.og-games a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0.9rem; border: 1px solid var(--border); border-radius: 12px; color: var(--text-primary); text-decoration: none; font-size: 0.92rem; }
.og-games a:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.og-games span { color: var(--text-secondary); text-align: right; }
.og-all { display: flex; align-items: center; justify-content: center; margin-top: 0.8rem; text-decoration: none; }
@media (max-width: 520px) {
  .og-games a { flex-direction: column; gap: 0.15rem; }
  .og-games span { text-align: left; }
}
/* Game sheet: the organiser's card, linking to their profile. */
.fg-who { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.85rem; margin: 0 0 0.7rem; border: 1px solid var(--border); border-radius: 14px; color: var(--text-primary); text-decoration: none; }
.fg-who:hover, .fg-who:focus-visible { border-color: var(--border-strong); background: var(--bg-card-hover); }
.fg-who .og-logo { width: 42px; height: 42px; border-radius: 11px; font-size: 0.78rem; }
.fg-who-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fg-who-body b { font-size: 0.95rem; }
.fg-who-body span { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.35; }
.fg-who-more { color: var(--accent); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.fx-orgs a { color: var(--accent); text-decoration: none; font-weight: 600; }
.fx-orgs a:hover { text-decoration: underline; }
.og-card.bare .og-tag { color: var(--text-muted); font-style: italic; }

/* Search header: "Organisers", shown by find.js only where profiles are on. */
.fp-orgs { color: var(--text-primary); text-decoration: none; font: 600 0.88rem var(--font-body); padding: 0.4rem 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.fp-orgs:hover { border-bottom-color: var(--accent); }
.fp-orgs[hidden] { display: none; }
@media (max-width: 420px) { .fp-right { gap: 0.6rem; } .fp-orgs { font-size: 0.82rem; } }

/* Organiser logo next to "On <app>" on game cards, map cards and the sheet. */
.fg-src-logo { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.fg-sheet .fg-src .fg-src-logo { width: 22px; height: 22px; border-radius: 6px; }

.fg-spot { width: 14px; height: 14px; border-radius: 50%; background: #ffd400; border: 3px solid #0a0a0a; box-shadow: 0 0 0 6px rgba(255, 212, 0, 0.25); }
.fg-nearhead { margin-top: 0.4rem; }
/* The suggestion list drops over the sticky filter bar (z-index 15), not under it. */
.find-page .hero-search { z-index: 30; }
