:root {
  --ink: #0c0c0c;
  --panel: rgba(0, 0, 0, 0.78);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f7f4ef;
  --muted: rgba(247, 244, 239, 0.72);
  --orange: #f47745;
  --yellow: #f3c95f;
  --blue: #4f88ff;
  --cyan: #37e0ef;
  --green: #45e09a;
  --paper: #f7f4ef;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #111;
}

body.body-lock {
  overflow: hidden;
}

.admin-toast {
  position: fixed;
  top: 84px;
  left: 50%;
  z-index: 1000;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: rgba(12, 12, 12, 0.94);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.admin-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  background: #000;
  border-bottom: 1px solid var(--line);
}

.topbar-session {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  color: var(--yellow);
  transform: rotate(180deg);
}

nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

nav a,
footer a {
  color: var(--muted);
  text-decoration: none;
}

nav a {
  white-space: nowrap;
}

.topbar-auth-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--yellow);
  color: #111;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.topbar-auth-action:hover,
.topbar-auth-action:focus-visible {
  filter: brightness(1.08);
}

.topbar-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  place-items: center;
  padding: 9px;
}

.topbar-menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

@media (max-width: 900px) {
  .topbar {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .topbar nav {
    display: none;
    order: 5;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 4px;
  }

  .topbar.is-menu-open nav {
    display: grid;
  }

  .topbar nav a {
    min-height: 40px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .topbar-session {
    max-width: 32vw;
    padding: 6px 8px;
    font-size: 12px;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-auth-action {
    width: auto;
    margin-left: auto;
  }

  .topbar-menu-button {
    display: inline-grid;
    gap: 4px;
  }
}

.tv-body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.88)),
    url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=2200&q=80") center / cover fixed;
}

.tv-shell {
  min-height: 100vh;
  padding: clamp(14px, 2vw, 28px);
}

.tv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(12px, 1.8vw, 24px);
}

.tv-header h1 {
  max-width: none;
  font-size: clamp(34px, 5.2vw, 88px);
}

.tv-header-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 900;
}

.tv-header-actions a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.54);
}

.tv-header-button {
  min-width: 180px;
}

.tv-header-actions span {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.46);
}

#boardRefreshCountdown.is-live {
  color: var(--yellow);
}

.tv-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -6px 0 clamp(12px, 1.6vw, 22px);
  color: var(--muted);
  font-weight: 900;
}

.tv-mode.tv-data-loaded .tv-auth-panel,
.tv-mode.tv-data-loaded .tv-controls {
  transition: opacity 180ms ease, transform 180ms ease;
}

.tv-mode.tv-data-loaded:not(.tv-controls-visible) .tv-auth-panel,
.tv-mode.tv-data-loaded:not(.tv-controls-visible) .tv-controls {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.tv-controls label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.54);
}

.tv-controls input {
  width: 22px;
  height: 22px;
  accent-color: var(--orange);
}

.tv-controls .tv-range-input {
  width: 72px;
  height: 36px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.48);
  color: var(--text);
  font: inherit;
}

.tv-auth-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.76);
}

.tv-auth-panel.is-signed-in {
  padding: 10px 14px;
}

.tv-auth-panel.is-signed-in h2,
.tv-auth-panel.is-signed-in p:not(.status),
.tv-auth-panel.is-signed-in input,
.tv-auth-panel.is-signed-in #boardSignInButton {
  display: none;
}

.tv-auth-fields {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tv-auth-fields input {
  min-width: 220px;
}

.tv-scoreboard {
  display: grid;
  gap: clamp(12px, 1.8vw, 24px);
}

.tv-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  min-width: 0;
}

.tv-board-grid.is-single-hunt {
  grid-template-columns: minmax(0, 1fr);
}

.tv-board-grid.is-single-hunt .tv-hunt-board {
  min-height: auto;
}

.tv-board-grid.is-single-hunt .tv-hunt-map-panel {
  min-height: min(48vh, 560px);
}

.tv-hunt-board,
.tv-schedule-card,
.tv-empty {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
}

.tv-hunt-board {
  display: grid;
  gap: clamp(8px, 1vw, 14px);
  min-width: 0;
  padding: clamp(12px, 1.5vw, 18px);
}

.tv-hunt-board > *,
.tv-schedule-card > * {
  min-width: 0;
  max-width: 100%;
}

.tv-hunt-board[role="link"],
.tv-schedule-card[role="link"] {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tv-hunt-board[role="link"]:hover,
.tv-hunt-board[role="link"]:focus-visible,
.tv-schedule-card[role="link"]:hover,
.tv-schedule-card[role="link"]:focus-visible {
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px rgba(243, 201, 95, 0.24), 0 18px 48px rgba(0, 0, 0, 0.28);
  outline: none;
  transform: translateY(-1px);
}

.tv-hunt-board.status-live,
.tv-schedule-card.status-live {
  border-color: rgba(83, 230, 128, 0.58);
}

.tv-hunt-board.status-upcoming,
.tv-schedule-card.status-upcoming {
  border-color: rgba(85, 190, 255, 0.58);
}

.tv-hunt-board.status-expired,
.tv-schedule-card.status-expired {
  opacity: 0.78;
}

.tv-hunt-board-header,
.tv-schedule-card-header,
.tv-section-heading,
.tv-schedule-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.tv-hunt-board h2,
.tv-schedule-card h2,
.tv-section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 46px);
  line-height: 1.04;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.tv-hunt-board-header > div,
.tv-section-heading > div {
  min-width: 0;
  flex: 1 1 auto;
}

.tv-hunt-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: 1 1 260px;
  min-width: 0;
  max-width: 100%;
}

.tv-hunt-meta strong,
.tv-section-heading strong,
.tv-status-pill {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
}

.tv-hunt-meta span,
.tv-schedule,
.tv-prize,
.tv-schedule-card-footer {
  color: var(--muted);
  font-weight: 800;
}

.tv-hunt-meta span {
  max-width: 100%;
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.tv-hunt-id {
  margin: -4px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.tv-open-hint {
  margin: -6px 0 0;
  color: var(--yellow);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 900;
  text-transform: uppercase;
}

.tv-open-hunt-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(243, 201, 95, 0.46);
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(243, 201, 95, 0.13);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.tv-open-hunt-link::after {
  content: "↗";
  font-size: 1.05em;
}

.tv-open-hunt-link:hover,
.tv-open-hunt-link:focus-visible {
  border-color: var(--yellow);
  background: rgba(243, 201, 95, 0.2);
  outline: none;
}

.tv-hunt-map-panel {
  min-height: 240px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.tv-hunt-map-panel.is-compact {
  min-height: 180px;
}

.tv-pin-info-window {
  display: grid;
  gap: 5px;
  max-width: 260px;
  color: #172022;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
}

.tv-pin-info-window strong {
  font-size: 15px;
  color: #071316;
}

.tv-pin-info-window span,
.tv-pin-info-window p,
.tv-pin-info-window small {
  margin: 0;
  font-size: 12px;
}

.tv-pin-info-window small {
  color: #536265;
}

.tv-schedule {
  margin: 0;
  font-size: clamp(15px, 1.35vw, 24px);
}

.tv-timer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(8px, 1vw, 12px) 12px;
  border: 1px solid rgba(243, 201, 95, 0.38);
  border-radius: 8px;
  color: var(--yellow);
  background: rgba(243, 201, 95, 0.13);
  font-weight: 900;
}

.tv-timer-strip::before {
  content: "⏱";
  font-size: 24px;
  line-height: 1;
}

.tv-timer-strip strong {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tv-timer-strip span {
  font-size: clamp(18px, 1.8vw, 30px);
}

.tv-timer-strip.is-live {
  border-color: rgba(83, 230, 128, 0.58);
  color: rgba(83, 230, 128, 0.98);
  background: rgba(83, 230, 128, 0.12);
}

.tv-sponsor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tv-sponsor-badge {
  padding: 8px 10px;
  border: 1px solid rgba(243, 201, 95, 0.5);
  border-radius: 8px;
  color: var(--yellow);
  background: rgba(243, 201, 95, 0.12);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.tv-live-board {
  display: grid;
  gap: 8px;
}

.tv-mini-heading {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tv-standing-section {
  display: grid;
  gap: 10px;
  padding: clamp(10px, 1.1vw, 14px);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
}

.tv-standing-section.is-points {
  border-color: rgba(38, 235, 255, 0.44);
}

.tv-standing-section.is-race {
  border-color: rgba(243, 201, 95, 0.38);
}

.tv-standing-section.is-progress {
  border-color: rgba(83, 230, 128, 0.38);
}

.tv-board-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tv-board-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 900;
}

.tv-board-chip.is-primary {
  color: var(--yellow);
  background: rgba(243, 201, 95, 0.14);
}

.tv-board-chip strong {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72em;
  text-transform: uppercase;
}

.tv-standings-list {
  display: grid;
  gap: 10px;
}

.tv-standing-row {
  display: grid;
  grid-template-columns: clamp(48px, 4.8vw, 70px) minmax(0, 1fr) minmax(210px, auto);
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  min-width: 0;
  padding: clamp(9px, 1.1vw, 14px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.tv-standing-row.is-highlighted {
  border-color: rgba(243, 201, 95, 0.7);
  background: rgba(243, 201, 95, 0.16);
}

.tv-standing-row.is-winner {
  border-color: rgba(38, 235, 255, 0.96);
  background:
    linear-gradient(135deg, rgba(38, 235, 255, 0.30), rgba(18, 182, 255, 0.22)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(38, 235, 255, 0.34),
    0 14px 32px rgba(38, 235, 255, 0.12);
}

.tv-standing-row.is-current-user {
  border-color: rgba(83, 230, 128, 0.72);
  background: rgba(83, 230, 128, 0.14);
}

.tv-standing-row.is-winner.is-current-user {
  border-color: rgba(38, 235, 255, 0.96);
  background:
    linear-gradient(135deg, rgba(38, 235, 255, 0.30), rgba(18, 182, 255, 0.22)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(38, 235, 255, 0.34),
    0 14px 32px rgba(38, 235, 255, 0.12);
}

.tv-standing-row.is-progress {
  opacity: 0.78;
}

.tv-rank {
  display: grid;
  width: clamp(48px, 4.8vw, 70px);
  height: clamp(46px, 4.5vw, 64px);
  place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 900;
}

.tv-standing-row.is-winner .tv-rank {
  background: rgba(38, 235, 255, 0.96);
}

.tv-standing-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tv-standing-title-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.tv-standing-text strong,
.tv-standing-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-standing-text strong {
  font-size: clamp(18px, 2vw, 34px);
  line-height: 1.05;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.tv-standing-text span {
  color: var(--muted);
  font-weight: 800;
}

.tv-standing-title-row .tv-winner-pill {
  margin-top: 2px;
}

.tv-standing-score {
  display: grid;
  grid-template-columns: repeat(2, minmax(82px, auto));
  justify-content: end;
  align-items: stretch;
  gap: 8px;
  min-width: 210px;
}

.tv-standing-metric {
  display: grid;
  justify-items: end;
  align-content: center;
  min-width: 82px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.tv-standing-metric strong {
  color: var(--yellow);
  font-size: clamp(19px, 2vw, 34px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.tv-standing-metric.is-time strong {
  color: var(--cyan);
}

.tv-standing-metric span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.tv-trophy {
  flex: 0 0 auto;
  font-size: clamp(18px, 1.7vw, 28px);
  line-height: 1;
}

.tv-winner-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(38, 235, 255, 0.96);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tv-you-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(83, 230, 128, 0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tv-more-row {
  padding: 12px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 900;
  text-align: center;
}

.tv-hunt-section {
  display: grid;
  gap: 14px;
}

.tv-schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tv-schedule-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
}

.tv-status-pill {
  background: rgba(243, 201, 95, 0.94);
  text-transform: uppercase;
}

.tv-prize {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 26px);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.tv-schedule-card-footer {
  align-items: flex-end;
  flex-wrap: wrap;
  font-size: 16px;
}

.tv-schedule-card-footer > span {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.tv-empty {
  padding: 22px;
  color: var(--muted);
  font-size: 24px;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.82));
}

.hero-content {
  position: relative;
  width: min(940px, calc(100% - 32px));
  margin: 0 auto 54px;
}

.product-hero .hero-content {
  width: min(1120px, calc(100% - 32px));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.96;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
}

h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.lede {
  max-width: 680px;
  font-size: 20px;
  color: var(--muted);
}

.product-hero .lede {
  max-width: 760px;
  font-size: clamp(19px, 2vw, 24px);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.primary {
  background: var(--orange);
  color: #fff;
}

.secondary {
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid var(--line);
  color: #fff;
}

.payment-actions .secondary {
  background: #ffffff;
  border-color: #ffffff;
  color: #111111;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  filter: grayscale(0.35);
}

.danger-button {
  border-color: rgba(255, 119, 119, 0.72);
  color: #ffd0d0;
}

.danger-button:hover,
.danger-button:focus-visible {
  background: rgba(255, 80, 80, 0.16);
  border-color: rgba(255, 156, 156, 0.88);
}

.legal-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
}

.legal-gate-overlay[hidden] {
  display: none;
}

.legal-gate-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.legal-gate-dialog h2 {
  margin-bottom: 12px;
}

.date-time-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--text);
  background: #111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.54);
}

.payment-return-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--text);
  background: #111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.54);
}

.date-time-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.payment-return-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.payment-return-panel {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.payment-return-panel h2,
.payment-return-panel p {
  margin: 0;
}

.payment-return-panel .button {
  justify-self: start;
}

.date-time-dialog-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.date-time-dialog-panel h2,
.date-time-dialog-panel p {
  margin: 0;
}

.date-time-dialog-panel input {
  width: 100%;
}

.calendar-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.calendar-picker-header {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
}

.calendar-picker-header strong {
  text-align: center;
  font-size: 18px;
}

.calendar-nav-button {
  min-height: 42px;
  padding: 0;
  font-size: 28px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.calendar-day.is-empty {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

.calendar-day.is-today {
  border-color: rgba(243, 201, 95, 0.72);
}

.calendar-day.is-selected {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.date-time-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.date-time-dialog-actions .secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.date-time-dialog-actions .secondary:hover,
.calendar-nav-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.legal-gate-scroll {
  max-height: 320px;
  overflow: auto;
  padding: 18px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.legal-gate-scroll p {
  color: var(--muted);
}

.legal-gate-scroll a {
  color: var(--yellow);
  font-weight: 900;
}

.legal-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0;
  color: var(--text);
  font-weight: 800;
}

.legal-check-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--orange);
}

.legal-gate-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.danger {
  background: rgba(255, 70, 55, 0.18);
  border: 1px solid rgba(255, 120, 110, 0.54);
  color: #fff;
}

.auth-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.sign-out-button {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.sign-out-button:hover,
.sign-out-button:focus-visible {
  background: #fff;
  border-color: #fff;
}

#signOutButton {
  background: #fff;
  border: 2px solid var(--yellow);
  color: #000;
  box-shadow: 0 0 0 3px rgba(243, 201, 95, 0.24);
}

.hero-actions,
.download {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 900px;
  margin-top: 28px;
}

.hero-proof-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.48);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 900;
}

.hero-proof-strip strong {
  color: var(--cyan);
  font-size: 18px;
}

.section {
  padding: 72px 22px;
  max-width: 1120px;
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.intro-section,
.creator-section,
.sponsor-story-section,
.trust-section {
  max-width: 1180px;
}

.audience-grid,
.process-grid,
.sponsor-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.audience-card,
.process-grid article,
.sponsor-story-grid article {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.025)),
    rgba(8, 11, 15, 0.88);
}

.audience-card::before,
.process-grid article::before,
.sponsor-story-grid article::before {
  content: "";
  position: absolute;
  inset: auto -40px -68px auto;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(55, 224, 239, 0.32);
  border-radius: 50%;
  background: rgba(55, 224, 239, 0.08);
}

.audience-card h3,
.audience-card p,
.audience-number,
.process-grid h3,
.process-grid p,
.process-grid span,
.sponsor-story-grid strong,
.sponsor-story-grid h3,
.sponsor-story-grid p {
  position: relative;
  z-index: 1;
}

.audience-number,
.process-grid span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(55, 224, 239, 0.14);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.sponsor-story-grid strong {
  display: block;
  color: var(--yellow);
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.95;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-strip span {
  flex: 1 1 210px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(69, 224, 154, 0.26);
  border-radius: 8px;
  background: rgba(69, 224, 154, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
}

.feature-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.admin-grid article,
.legal-card,
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.feature-card p,
.admin-grid p,
.section p {
  color: var(--muted);
}

.popular-experiences-section {
  max-width: 1180px;
}

.popular-experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.popular-experience-card {
  position: relative;
  min-height: 238px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(9, 11, 15, 0.92);
}

.popular-experience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, 0.16) 42% 43%, transparent 43% 100%),
    radial-gradient(circle at 88% 18%, rgba(55, 224, 239, 0.26), transparent 30%);
  pointer-events: none;
}

.popular-experience-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.popular-experience-card h3,
.popular-experience-card p,
.experience-type {
  position: relative;
  z-index: 1;
}

.popular-experience-card h3 {
  max-width: 260px;
  margin-top: 44px;
  font-size: 27px;
  line-height: 1.05;
}

.popular-experience-card p {
  max-width: 330px;
}

.experience-type {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.experience-bourbon {
  border-color: rgba(243, 201, 95, 0.46);
}

.experience-bourbon::before {
  background:
    linear-gradient(145deg, transparent 0 48%, rgba(243, 201, 95, 0.24) 48% 49%, transparent 49% 100%),
    radial-gradient(circle at 88% 18%, rgba(243, 201, 95, 0.34), transparent 30%);
}

.experience-home {
  border-color: rgba(55, 224, 239, 0.38);
}

.experience-gallery {
  border-color: rgba(214, 49, 238, 0.4);
}

.experience-gallery::before {
  background:
    linear-gradient(145deg, transparent 0 46%, rgba(214, 49, 238, 0.22) 46% 47%, transparent 47% 100%),
    radial-gradient(circle at 86% 18%, rgba(214, 49, 238, 0.28), transparent 31%);
}

.experience-yard {
  border-color: rgba(244, 119, 69, 0.48);
}

.experience-yard::before {
  background:
    linear-gradient(145deg, transparent 0 44%, rgba(244, 119, 69, 0.22) 44% 45%, transparent 45% 100%),
    radial-gradient(circle at 86% 18%, rgba(244, 119, 69, 0.30), transparent 31%);
}

.experience-food {
  border-color: rgba(69, 224, 154, 0.42);
}

.experience-food::before {
  background:
    linear-gradient(145deg, transparent 0 46%, rgba(69, 224, 154, 0.20) 46% 47%, transparent 47% 100%),
    radial-gradient(circle at 86% 18%, rgba(69, 224, 154, 0.28), transparent 31%);
}

.experience-campus {
  border-color: rgba(255, 255, 255, 0.24);
}

.discovery-modes-section {
  max-width: 1180px;
}

.discovery-modes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.discovery-mode-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(55, 224, 239, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(10, 12, 16, 0.9);
}

.discovery-mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 34%, rgba(55, 224, 239, 0.16), transparent 38%);
  pointer-events: none;
}

.discovery-mode-card h3,
.discovery-mode-card p,
.mode-label,
.mode-visual {
  position: relative;
}

.discovery-mode-card h3 {
  margin-top: 16px;
  font-size: 26px;
  line-height: 1.05;
}

.mode-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #020407;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.mode-visual {
  display: grid;
  place-items: center;
  height: 174px;
  margin-bottom: 18px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(0, 0, 0, 0.32);
  background-size: 28px 28px;
}

.mode-beacon {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7b8 0 18%, var(--orange) 20% 48%, rgba(55, 224, 239, 0.7) 50% 100%);
  box-shadow:
    0 0 0 18px rgba(55, 224, 239, 0.16),
    0 0 34px rgba(55, 224, 239, 0.78),
    0 0 54px rgba(244, 119, 69, 0.46);
  animation: modeBeaconPulse 1.7s ease-in-out infinite;
}

.mode-beacon::before,
.mode-beacon::after {
  content: "";
  position: absolute;
  inset: -44px;
  border: 3px solid rgba(55, 224, 239, 0.42);
  border-radius: 50%;
  transform: scaleY(0.24) rotate(0deg);
  animation: modeBeaconSpin 2.8s linear infinite;
}

.mode-beacon::after {
  inset: -64px;
  border-color: rgba(244, 119, 69, 0.38);
  animation-duration: 4s;
  animation-direction: reverse;
}

.mode-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(243, 201, 95, 0.9);
}

.spark-one {
  transform: translate(-64px, -24px);
}

.spark-two {
  transform: translate(72px, 12px);
  background: var(--blue);
}

.spark-three {
  transform: translate(18px, -62px);
  background: var(--orange);
}

.mode-map .mode-visual {
  background:
    linear-gradient(135deg, rgba(33, 80, 47, 0.45), rgba(3, 8, 12, 0.68)),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(255, 255, 255, 0.07) 50px 52px),
    rgba(14, 25, 24, 0.92);
}

.mode-map-road {
  position: absolute;
  width: 240px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.road-one {
  transform: rotate(-26deg);
}

.road-two {
  transform: rotate(34deg) translateY(24px);
}

.mode-map-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  background: var(--blue);
  transform: rotate(-45deg);
  box-shadow: 0 0 18px rgba(55, 224, 239, 0.6);
}

.mode-map-pin::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}

.pin-one {
  translate: -70px -38px;
}

.pin-two {
  translate: 52px 18px;
  background: var(--orange);
}

.pin-three {
  translate: -16px 58px;
  background: var(--yellow);
}

.mode-radar .mode-visual {
  background:
    radial-gradient(circle at center, rgba(55, 224, 239, 0.18), transparent 34%),
    rgba(1, 7, 12, 0.88);
}

.mode-radar-ring {
  position: absolute;
  width: 118px;
  height: 118px;
  border: 2px solid rgba(55, 224, 239, 0.36);
  border-radius: 50%;
}

.ring-two {
  width: 168px;
  height: 168px;
  border-color: rgba(55, 224, 239, 0.2);
}

.mode-radar-sweep {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 100% 0 0;
  background: linear-gradient(45deg, rgba(55, 224, 239, 0.44), transparent 70%);
  transform-origin: 100% 100%;
  animation: modeRadarSweep 2.4s linear infinite;
}

.mode-chevron {
  position: absolute;
  width: 28px;
  height: 28px;
  border-top: 6px solid var(--orange);
  border-right: 6px solid var(--orange);
  transform: rotate(-45deg);
  filter: drop-shadow(0 0 12px rgba(244, 119, 69, 0.8));
}

.chev-one {
  translate: 0 -58px;
}

.chev-two {
  translate: 0 -20px;
  opacity: 0.7;
}

.chev-three {
  translate: 0 18px;
  opacity: 0.45;
}

@keyframes modeBeaconPulse {
  0%,
  100% {
    transform: scale(0.92);
  }
  50% {
    transform: scale(1.12);
  }
}

@keyframes modeBeaconSpin {
  to {
    transform: scaleY(0.24) rotate(360deg);
  }
}

@keyframes modeRadarSweep {
  to {
    transform: rotate(360deg);
  }
}

.pricing-hero {
  padding-top: 96px;
  padding-bottom: 44px;
}

.pricing-promo-burst {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-top: 22px;
  padding: 14px 18px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: linear-gradient(135deg, #ff7a18 0%, #ffd166 48%, #36e6ff 100%);
  color: #111;
  box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.22), 0 16px 40px rgba(0, 0, 0, 0.34);
  transform: none;
  transform-origin: center;
  animation: pricing-promo-burst-pop 780ms cubic-bezier(0.18, 0.9, 0.2, 1.15) both;
}

.pricing-promo-burst strong,
.pricing-promo-burst span {
  color: #111;
  line-height: 1;
  letter-spacing: 0;
}

.pricing-promo-burst strong {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 950;
  text-transform: uppercase;
}

.pricing-promo-burst span {
  max-width: 260px;
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 950;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.pricing-promo-burst-inline {
  margin: 0 0 24px;
  transform: none;
  animation-name: pricing-promo-burst-pop-level;
}

@keyframes pricing-promo-burst-pop {
  0% {
    border-radius: 999px;
    opacity: 0;
    transform: rotate(-540deg) scaleX(0.32) scaleY(0.58);
  }
  62% {
    border-radius: 999px;
    opacity: 1;
    transform: rotate(8deg) scaleX(1.08) scaleY(0.94);
  }
  100% {
    border-radius: 8px;
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes pricing-promo-burst-pop-level {
  0% {
    border-radius: 999px;
    opacity: 0;
    transform: rotate(-540deg) scaleX(0.32) scaleY(0.58);
  }
  62% {
    border-radius: 999px;
    opacity: 1;
    transform: rotate(8deg) scaleX(1.08) scaleY(0.94);
  }
  100% {
    border-radius: 8px;
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.pricing-card.is-featured {
  border-color: rgba(243, 201, 95, 0.76);
  box-shadow: inset 0 0 0 1px rgba(243, 201, 95, 0.18);
}

.pricing-card h2,
.pricing-card p {
  margin: 0;
}

.pricing-price {
  color: #fff;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  font-weight: 950;
}

.pricing-price span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 850;
}

.pricing-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.pricing-list li {
  position: relative;
  padding-left: 20px;
  font-weight: 750;
}

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--yellow);
}

.pricing-card .button {
  justify-self: start;
  margin-top: auto;
}

.ai-hunt-generator-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.ai-hunt-generator-card h2,
.ai-hunt-generator-card > .form-help,
.ai-hunt-generator-card > label,
.ai-hunt-generator-card > textarea,
.ai-hunt-generator-card > .ai-task-options,
.ai-hunt-generator-card > .admin-inline-actions,
.ai-hunt-generator-card > .payment-status,
.ai-hunt-generator-card > .draft-pins-list,
.ai-hunt-generator-card > .ai-hunt-review-panel {
  grid-column: 1 / -1;
}

.ai-hunt-generator-card > .two-column-fields {
  grid-column: span 2;
  margin: 0;
}

.ai-hunt-generator-card > .admin-card-header {
  grid-column: 1 / -1;
  align-items: center;
}

.media-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  object-fit: cover;
}

.media-video-poster {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 22%, rgba(54, 230, 255, 0.32), transparent 28%),
    radial-gradient(circle at 78% 70%, rgba(243, 201, 95, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(7, 14, 24, 0.96), rgba(22, 28, 42, 0.98));
  color: #111;
  text-decoration: none;
  overflow: hidden;
}

.media-video-poster::before {
  content: "VGRAFFITI VIDEO";
  position: absolute;
  left: 18px;
  top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.media-video-poster span {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.36);
}

.media-video-poster:hover,
.media-video-poster:focus-visible {
  border-color: rgba(243, 201, 95, 0.78);
  outline: none;
}

.media-hero-section {
  padding-top: 96px;
}

.media-video-grid,
.media-resource-grid {
  display: grid;
  gap: 18px;
}

.media-video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-video-card,
.media-resource-card,
.media-contact-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.media-video-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.media-card-copy {
  display: grid;
  gap: 8px;
}

.media-card-copy h3,
.media-card-copy p,
.media-resource-card h3,
.media-resource-card p,
.media-contact-band h2,
.media-contact-band p {
  margin: 0;
}

.media-card-copy h3 {
  color: #fff;
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1;
}

.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.media-resource-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

.media-resource-card .button {
  justify-self: start;
  margin-top: auto;
}

.media-contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
}

.media-contact-band > div {
  max-width: 720px;
}

.media-contact-band .button {
  flex: 0 0 auto;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(244, 119, 69, 0.18);
  color: var(--yellow);
  font-weight: 900;
}

.app-preview,
.download {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 32px;
  align-items: center;
}

.phone-frame {
  border: 10px solid #050505;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  min-height: 520px;
}

.phone-map {
  position: relative;
  min-height: 520px;
  background:
    linear-gradient(135deg, rgba(33, 80, 47, 0.86), rgba(105, 98, 78, 0.86)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80");
  background-size: cover;
}

.pin {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.pin::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
}

.pin-blue {
  left: 42%;
  top: 38%;
  background: var(--blue);
}

.pin-orange {
  left: 55%;
  top: 45%;
  background: var(--orange);
}

.pin-yellow {
  left: 48%;
  top: 54%;
  background: var(--yellow);
}

.dashboard-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 6px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.82);
  border-radius: 8px;
}

.grabber {
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  margin: 0 auto 8px;
}

.admin-band {
  background: #000;
  max-width: none;
  padding-left: max(22px, calc((100vw - 1120px) / 2));
  padding-right: max(22px, calc((100vw - 1120px) / 2));
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 34px 22px;
  border-top: 1px solid var(--line);
  background: #000;
  color: var(--muted);
}

.page {
  min-height: 100vh;
  padding: 52px 22px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.88)),
    url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-attachment: fixed;
}

.page-inner {
  width: min(960px, 100%);
  margin: 0 auto;
}

.legal-card {
  white-space: pre-wrap;
  color: var(--text);
}

.admin-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
}

.admin-horizontal-card {
  grid-column: 1 / -1;
}

.admin-horizontal-card .admin-card-header {
  align-items: center;
}

.admin-horizontal-card .card-collapse-toggle {
  min-width: 150px;
}

.sign-in-card:not(.is-collapsed) {
  display: block;
}

.sign-in-card .auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-horizontal-card.photo-review-card:not(.is-collapsed) {
  display: block;
}

.admin-horizontal-card.photo-review-card > strong {
  display: inline-flex;
  margin: 10px 0 14px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 210, 112, 0.36);
  border-radius: 8px;
  background: rgba(255, 210, 112, 0.10);
  color: var(--yellow);
}

.admin-horizontal-card.photo-review-card .photo-review-list {
  display: grid;
  gap: 12px;
}

.admin-features-card h2,
.admin-features-card p,
.admin-features-card ul {
  margin-top: 0;
}

.admin-features-card ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 18px;
  padding-left: 18px;
}

.account-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items: start;
}

.profile-card {
  grid-column: span 1;
}

.upgrade-card {
  grid-column: 1 / -1;
}

.upgrade-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.upgrade-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.upgrade-option {
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.upgrade-option h3 {
  margin: 4px 0 8px;
  font-size: clamp(22px, 2.5vw, 30px);
}

.upgrade-option p {
  color: var(--muted);
}

.upgrade-price {
  margin: 0 0 10px;
  color: var(--yellow) !important;
  font-size: 24px;
  font-weight: 900;
}

.upgrade-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.two-column-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.readonly-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.readonly-field-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.readonly-field-value {
  color: var(--text);
  font-size: 16px;
  word-break: break-word;
}

.field-help {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.verification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 10px 0 18px;
}

.verification-row-phone {
  margin-bottom: 12px;
}

.verification-status {
  margin: 0;
}

.verification-code-row {
  margin-top: 10px;
}

.verification-code-action {
  display: flex;
  align-items: flex-end;
}

.verification-code-action .button {
  width: 100%;
}

.sms-consent-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin: 16px 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.sms-consent-row input {
  width: auto;
  margin-top: 3px;
}

.sms-consent-row a {
  color: var(--yellow);
  font-weight: 900;
}

.hunt-builder-card {
  grid-column: 1 / -1;
}

.hunt-list-card {
  grid-column: 1 / -1;
}

.section-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-card-header {
  margin-bottom: 0;
}

.card-collapse-toggle {
  flex: 0 0 auto;
  min-width: 120px;
}

.admin-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.auth-card.is-collapsed > :not(:first-child) {
  display: none;
}

.section-row p {
  margin: 8px 0 0;
  color: var(--muted);
}

.hunt-map-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin: 18px 0 12px;
}

.hunt-map-header h3,
.hunt-map-header p {
  margin: 0;
}

.hunt-map-header p {
  color: var(--muted);
}

.map-coordinate {
  max-width: 360px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-align: right;
}

.hunt-map-shell {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.hunt-map {
  width: 100%;
  min-height: 620px;
}

.sponsor-map-card {
  grid-column: 1 / -1;
}

.leaderboard-card {
  grid-column: 1 / -1;
}

.safety-zone-card {
  grid-column: 1 / -1;
}

.user-admin-card {
  grid-column: 1 / -1;
}

.user-admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 16px;
  margin-top: 18px;
}

.user-list-panel,
.user-editor {
  min-width: 0;
}

.user-list-panel {
  display: grid;
  gap: 10px;
  align-content: start;
}

.user-list {
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.user-list-row {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.user-list-row:hover,
.user-list-row:focus-visible,
.user-list-row.is-selected {
  border-color: rgba(255, 210, 112, 0.72);
  background: rgba(255, 210, 112, 0.12);
  outline: none;
}

.user-list-row.has-duplicate-email {
  border-color: rgba(255, 190, 91, 0.78);
}

.user-list-identity {
  font-weight: 900;
}

.duplicate-email-badge {
  justify-self: start;
  padding: 4px 8px;
  border: 1px solid rgba(255, 190, 91, 0.74);
  border-radius: 999px;
  background: rgba(255, 190, 91, 0.16);
  color: #ffd68a;
  font-size: 12px;
  font-weight: 900;
}

.user-list-meta,
.user-list-document {
  color: var(--muted);
  font-size: 13px;
  word-break: break-word;
}

.user-editor {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
}

.user-editor h3 {
  margin: 0;
}

.user-editor-actions {
  justify-content: flex-start;
}

.leaderboard-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.event-board {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(243, 201, 95, 0.34);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.46);
}

.event-board-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.event-board-heading h3,
.event-board-heading p {
  margin: 0;
}

.event-board-heading h3 {
  font-size: 28px;
}

.event-board-heading strong {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
}

.leaderboard-list {
  display: grid;
  gap: 14px;
}

.leaderboard-list p {
  margin: 0;
  color: var(--muted);
}

.leaderboard-hunt-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(45, 212, 255, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.leaderboard-hunt-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.leaderboard-hunt-group-header > div {
  min-width: 0;
}

.leaderboard-hunt-group-header .eyebrow,
.leaderboard-hunt-group-header h4 {
  margin: 0;
}

.leaderboard-hunt-group-header h4 {
  color: #fff;
  font-size: 20px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.leaderboard-hunt-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.leaderboard-hunt-actions > span {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(45, 212, 255, 0.16);
  color: #9eefff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.leaderboard-hunt-group-list {
  display: grid;
  gap: 8px;
}

.participant-dropdown {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.participant-dropdown summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--yellow);
  font-weight: 900;
}

.participant-list {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  padding: 0 12px 12px;
}

.participant-list p {
  margin: 0;
  color: var(--muted);
}

.participant-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.participant-row strong,
.participant-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-row strong {
  color: #fff;
}

.participant-row span {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 800;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) minmax(86px, auto);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.leaderboard-row.is-highlighted {
  border-color: rgba(243, 201, 95, 0.66);
  background: rgba(243, 201, 95, 0.14);
}

.leaderboard-rank {
  display: grid;
  width: 50px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.leaderboard-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.leaderboard-text strong,
.leaderboard-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-text strong {
  color: #fff;
  font-size: 19px;
}

.leaderboard-text span {
  color: var(--muted);
  font-weight: 700;
}

.leaderboard-score {
  display: grid;
  justify-items: end;
  gap: 0;
  min-width: 92px;
}

.leaderboard-score strong {
  color: var(--yellow);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.leaderboard-score span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.sponsor-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hunt-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.inline-filter-input {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.inline-filter-input input {
  width: 62px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-weight: 900;
  padding: 6px 8px;
}

.sponsor-filter {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sponsor-filter.is-active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #050505;
}

.sponsor-map-shell {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.sponsor-map {
  width: 100%;
  min-height: 620px;
}

.safety-zone-editor {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.safety-zone-editor.is-editing-zone {
  border-color: rgba(45, 212, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(45, 212, 255, 0.18);
  background: rgba(45, 212, 255, 0.06);
}

.coordinate-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coordinate-input-row input[readonly] {
  color: rgba(255, 255, 255, 0.78);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.rotation-input-row {
  max-width: 180px;
}

.rotation-input-row input {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.icon-button.rotation-button {
  display: inline-grid;
  flex: 0 0 54px;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.icon-button.rotation-button:hover {
  border-color: var(--yellow);
  background: rgba(244, 119, 69, 0.18);
  color: var(--yellow);
}

.safety-zone-rotation-controls {
  position: absolute;
  top: 42px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.safety-zone-rotation-controls .rotation-button {
  width: 58px;
  height: 58px;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(244, 119, 69, 0.94);
  color: #070707;
  font-size: 34px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.safety-zone-map-save-button {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  min-width: 124px;
  height: 52px;
  transform: translateX(-50%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.unit-pill {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 900;
}

.inline-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
}

.inline-toggle-row input {
  width: auto;
  margin: 0;
}

.safety-zone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zone-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.zone-list p {
  margin: 0;
  color: var(--muted);
}

.zone-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.zone-row-header,
.zone-row-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.zone-row h3,
.zone-row p {
  margin: 0;
}

.zone-row p {
  color: var(--muted);
}

.zone-status-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(243, 201, 95, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.zone-row-delete-button {
  min-width: 48px;
  padding: 12px;
  font-size: 20px;
  line-height: 1;
}

.zone-status-pill.is-inactive {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.zone-meta {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
}

.sponsor-pin-strip {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.84);
}

.sponsor-pin-strip-list {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.sponsor-pin-strip-list p {
  margin: 0;
  color: var(--muted);
}

.sponsor-pin-chip {
  display: grid;
  flex: 0 0 150px;
  gap: 4px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.sponsor-pin-chip strong,
.sponsor-pin-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sponsor-pin-chip span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}

.sponsor-editor {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.sponsor-editor h3,
.sponsor-selected-pin,
.sponsor-save-target,
.sponsor-existing-list p {
  margin: 0;
}

.sponsor-selected-pin,
.sponsor-save-target,
.payment-status,
.sponsor-existing-list {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.payment-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.payment-status {
  margin: 8px 0 0;
  font-size: 14px;
}

.payment-status.is-success {
  color: #8de5ae;
}

.payment-status.is-error {
  color: #ff9f94;
}

.sponsor-existing-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-zoom-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  gap: 10px;
  z-index: 2;
}

.map-zoom-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.76);
  color: #fff;
  font: inherit;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.map-zoom-controls .location-control-button {
  border-color: rgba(255, 196, 57, 0.5);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.9);
  color: #ffcb45;
  font-size: 23px;
  box-shadow: 0 0 0 1px rgba(255, 196, 57, 0.18);
}

.hunt-pin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.hunt-edit-actions,
.pin-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.draft-pins-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 4px;
}

.draft-pins-list p {
  margin: 0;
  color: var(--muted);
}

.draft-pin-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, auto);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.draft-pin-row input {
  margin: 0;
}

.draft-pin-fields {
  display: grid;
  gap: 8px;
}

.draft-pin-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.draft-pin-media-button {
  min-height: 42px;
  padding: 9px 12px;
}

.draft-pin-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.draft-pin-coordinates {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-align: right;
}

.draft-pin-remove {
  min-height: 40px;
  padding: 8px 12px;
}

.draft-pin-media {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hunts-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.hunts-list p,
.sponsors-list p {
  margin: 0;
  color: var(--muted);
}

.sponsors-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.sponsor-row {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.sponsor-row h3 {
  margin: 0;
}

.sponsor-row a {
  color: var(--yellow);
  overflow-wrap: anywhere;
}

.sponsor-details,
.sponsor-contact {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.sponsor-contact {
  color: var(--muted);
}

.sponsor-meta {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.admin-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hunt-row {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: inherit;
  text-align: left;
}

.hunt-row.is-joined {
  border-color: rgba(255, 54, 70, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 54, 70, 0.28);
}

.hunt-row:hover,
.hunt-row:focus-within {
  border-color: rgba(243, 201, 95, 0.72);
  background: rgba(255, 255, 255, 0.1);
}

.hunt-row.is-joined:hover,
.hunt-row.is-joined:focus-within {
  border-color: rgba(255, 54, 70, 1);
}

.hunt-row-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.hunt-row-joined-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 54, 70, 0.94);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 54, 70, 0.36);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.hunt-row h3,
.hunt-row p {
  margin: 0;
}

.hunt-row p {
  color: var(--muted);
}

.hunt-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.hunt-row .hunt-row-location {
  color: var(--primary);
  font-size: 15px;
  font-weight: 900;
}

.hunt-qr-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.hunt-qr-block {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.hunt-qr-block img {
  width: 112px;
  height: 112px;
  border-radius: 6px;
  background: #fff;
}

.hunt-qr-block strong {
  color: var(--text);
}

.hunt-qr-block span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.hunt-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.hunt-qr-copy-button {
  padding: 7px 10px;
  font-size: 12px;
}

.hunt-overview-shell {
  display: grid;
  gap: 12px;
}

.hunt-overview-map {
  width: 100%;
  min-height: min(62vh, 620px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.hunt-map-details {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(243, 201, 95, 0.45);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
}

.hunt-map-details.is-joined {
  border-color: rgba(255, 54, 70, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 54, 70, 0.24);
}

.hunt-map-details h3,
.hunt-map-details p {
  margin: 0;
}

.hunt-map-details p {
  color: var(--muted);
}

.hunt-map-popup {
  display: grid;
  gap: 6px;
  max-width: 260px;
  color: #111;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hunt-map-popup strong {
  font-size: 15px;
}

.hunt-map-popup span {
  font-size: 12px;
  font-weight: 700;
}

.hunt-map-popup button {
  border: 0;
  border-radius: 8px;
  background: #f3c95f;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.hunt-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hunt-row-action {
  min-width: 118px;
  white-space: nowrap;
}

.hunt-details-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.pin-edit-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.hunt-details-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}

.pin-edit-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(5px);
}

.hunt-details-dialog-panel {
  display: grid;
  gap: 14px;
  max-height: inherit;
  padding: 18px;
  overflow: auto;
}

.pin-edit-dialog-panel {
  display: grid;
  gap: 12px;
  max-height: inherit;
  padding: 18px;
  overflow: auto;
}

.hunt-details-dialog-panel h3,
.hunt-details-dialog-panel p,
.pin-edit-dialog-panel h3,
.pin-edit-dialog-panel p {
  margin: 0;
}

.hunt-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.hunt-pins-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.hunt-pins-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}

.hunt-pins-dialog-panel {
  display: grid;
  gap: 12px;
  max-height: inherit;
  padding: 18px;
  overflow: auto;
}

.hunt-pins-dialog-panel h3,
.hunt-pins-dialog-panel p {
  margin: 0;
}

.hunt-preview-map {
  min-height: min(520px, 52vh);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #050505;
}

.hunt-debug-status {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(243, 201, 95, 0.4);
  border-radius: 8px;
  background: rgba(243, 201, 95, 0.12);
  color: #f8e3a5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.hunt-edit-panel {
  display: grid;
  gap: 10px;
}

.hunt-edit-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.pin-info-window {
  max-width: 260px;
  color: #111;
  font: 14px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pin-info-window strong {
  display: block;
  margin-bottom: 6px;
  color: #000;
  font-size: 15px;
}

.pin-info-window p {
  margin: 0 0 8px;
  color: #222;
}

.pin-info-sponsored {
  margin: 8px 0;
  padding: 8px;
  border-radius: 8px;
  background: #fff4c2;
  color: #111;
  font-weight: 800;
}

.pin-info-sponsored a {
  color: #7c3f00;
}

.pin-info-muted,
.pin-info-coordinates {
  margin-top: 6px;
  color: #555;
  font-size: 12px;
}

.pin-info-coordinates {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pin-info-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.pin-info-actions button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}

.pin-info-actions [data-pin-action="edit"] {
  background: #f3c95f;
  color: #111;
}

.pin-info-actions [data-pin-action="delete"] {
  background: #b91c1c;
  color: #fff;
}

.pin-edit-tasks {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.compact-section-row {
  align-items: flex-start;
  gap: 12px;
}

.compact-section-row h4,
.compact-section-row p {
  margin: 0;
}

.compact-section-row h4 {
  color: #fff;
  font-size: 18px;
}

.compact-section-row p {
  color: var(--muted);
  font-size: 13px;
}

.pin-edit-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pin-edit-tasks-list {
  display: grid;
  gap: 12px;
}

.pin-edit-task-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(45, 212, 255, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.pin-edit-task-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.pin-edit-task-header label {
  flex: 1 1 220px;
}

.pin-edit-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.pin-edit-task-grid label:first-child {
  grid-column: 1 / -1;
}

.pin-edit-task-grid label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.photo-review-card {
  align-content: start;
}

.photo-review-card .section-row h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.admin-horizontal-card.photo-review-card .section-row h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.photo-review-card .section-row p {
  max-width: 38ch;
  font-size: 0.95rem;
  line-height: 1.35;
}

.admin-horizontal-card.photo-review-card .admin-card-header {
  align-items: center;
}

.admin-horizontal-card.photo-review-card .admin-card-header .button {
  min-height: 40px;
  min-width: 148px;
  padding: 8px 14px;
  font-size: 0.9rem;
  line-height: 1.15;
}

.photo-review-list {
  display: grid;
  gap: 12px;
}

.photo-review-list > p {
  margin: 0;
  color: var(--muted);
}

.photo-review-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.photo-review-row-rejected {
  border-color: rgba(255, 120, 97, 0.45);
  background: rgba(128, 32, 24, 0.18);
}

.photo-review-thumb {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.photo-review-thumb:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.photo-review-thumb span {
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.photo-review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-review-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.photo-review-body h3,
.photo-review-body p {
  margin: 0;
}

.photo-review-body p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.photo-review-body h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.photo-review-meta {
  color: var(--muted) !important;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.35;
}

.photo-review-moderation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.photo-review-detail {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.photo-review-detail span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.photo-review-detail strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.photo-review-actions,
.photo-review-zoom-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-review-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--text);
}

.photo-review-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.photo-review-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.photo-review-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.photo-review-dialog-header h2,
.photo-review-dialog-header p {
  margin: 0;
}

.photo-review-image-frame {
  max-height: 70vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  background: #050505;
  text-align: center;
}

.photo-review-image-frame img {
  max-width: 100%;
  height: auto;
  transform-origin: center top;
}

label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 92px;
}

.status {
  color: var(--yellow);
  font-weight: 800;
}

.sponsor-package-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.sponsor-package-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 210, 112, 0.45);
  border-radius: 8px;
  background: rgba(255, 210, 112, 0.12);
}

.sponsor-package-option strong {
  color: #ffffff;
  font-size: 1rem;
}

.sponsor-package-option span {
  color: #ffd66f;
  font-weight: 800;
  white-space: nowrap;
}

.hunt-sponsor-panel {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hunt-sponsor-panel h3 {
  margin-bottom: 0;
}

.hunt-sponsor-panel p {
  margin: 0;
  color: var(--muted);
}

.hunt-player-shell {
  display: grid;
  gap: 18px;
}

.hunt-player-card {
  display: grid;
  gap: 14px;
}

.hunt-player-list {
  display: grid;
  gap: 10px;
}

.hunt-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-align: left;
}

.hunt-player-row.is-active {
  border-color: rgba(255, 210, 112, 0.72);
  background: rgba(255, 210, 112, 0.12);
}

.hunt-player-row-summary {
  padding: 10px 12px;
}

.hunt-player-change-hunt-button {
  flex: 0 0 auto;
  padding: 8px 10px;
  font-size: 12px;
}

.hunt-player-row strong,
.hunt-player-row small {
  display: block;
}

.hunt-player-row small,
.hunt-player-stop span {
  color: var(--muted);
}

.hunt-player-map {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.hunt-player-map-fullscreen-button {
  justify-self: stretch;
}

.hunt-player-pin-info-window {
  display: grid;
  gap: 5px;
  max-width: 260px;
  color: #172022;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
}

.hunt-player-pin-info-window strong {
  font-size: 15px;
  color: #071316;
}

.hunt-player-pin-info-window span,
.hunt-player-pin-info-window p,
.hunt-player-pin-info-window small {
  margin: 0;
  font-size: 12px;
}

.hunt-player-pin-info-window small {
  color: #536265;
}

body.hunt-player-map-fullscreen {
  overflow: hidden;
}

body.hunt-player-map-fullscreen .hunt-player-map {
  position: fixed;
  z-index: 10000;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  border: 0;
  border-radius: 0;
}

body.hunt-player-map-fullscreen .hunt-player-map-fullscreen-button {
  position: fixed;
  z-index: 10001;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: auto;
  min-width: 156px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.hunt-player-radar {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 12px;
  border: 1px solid rgba(45, 212, 255, 0.34);
  border-radius: 18px;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 62%, rgba(45, 212, 255, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.88), rgba(12, 16, 22, 0.82));
  box-shadow: inset 0 0 24px rgba(45, 212, 255, 0.08);
}

.hunt-player-radar.is-sun-mode {
  border-color: rgba(255, 209, 102, 0.9);
  background:
    radial-gradient(circle at 50% 62%, rgba(255, 209, 102, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(6, 8, 8, 0.96));
  box-shadow:
    inset 0 0 0 2px rgba(255, 209, 102, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.72);
}

.hunt-player-radar h3,
.hunt-player-radar p {
  margin: 0;
}

.hunt-player-radar h3 {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
}

.hunt-player-radar-readout {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100%, 360px);
}

.hunt-player-radar-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hunt-player-radar-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

.hunt-player-radar-readout p {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 68px;
  max-height: 68px;
  overflow: auto;
  overscroll-behavior: contain;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hunt-player-radar.is-sun-mode .hunt-player-radar-readout p {
  min-height: 78px;
  max-height: 78px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
}

.hunt-player-radar-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.hunt-player-radar-method {
  display: block;
  min-height: 58px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  appearance: none;
}

.hunt-player-radar-method.is-active {
  border-color: rgba(45, 212, 255, 0.46);
  background: rgba(45, 212, 255, 0.13);
  color: #ffffff;
}

.hunt-player-radar.is-sun-mode .hunt-player-radar-method {
  min-height: 66px;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 950;
}

.hunt-player-radar.is-sun-mode .hunt-player-radar-method.is-active {
  border-color: #ffd166;
  background: #ffd166;
  color: #000000;
}

.hunt-player-radar.is-sun-mode .hunt-player-radar-pill {
  background: rgba(255, 209, 102, 0.18);
  color: #ffd166;
}

.hunt-player-radar-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hunt-player-radar-debug {
  width: 100%;
  max-width: 320px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.hunt-player-radar-debug summary {
  cursor: pointer;
  padding: 8px 10px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.hunt-player-radar-debug pre {
  margin: 0;
  padding: 0 10px 10px;
  overflow-x: auto;
  color: rgba(255, 255, 255, 0.74);
  font: 700 0.68rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.hunt-player-radar-dial {
  position: relative;
  width: 216px;
  height: 216px;
  display: grid;
  place-items: center;
  overflow: hidden;
  justify-self: center;
  border: 2px solid rgba(45, 212, 255, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(45, 212, 255, 0.28) 0 5px, transparent 6px),
    radial-gradient(circle, transparent 0 22px, rgba(45, 212, 255, 0.26) 23px 24px, transparent 25px 39px, rgba(45, 212, 255, 0.2) 40px 41px, transparent 42px),
    rgba(0, 10, 14, 0.82);
  box-shadow:
    0 0 22px rgba(45, 212, 255, 0.28),
    inset 0 0 28px rgba(45, 212, 255, 0.16);
}

.hunt-player-radar-sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, rgba(45, 212, 255, 0.2), transparent 44deg, transparent 360deg);
  animation: hunt-player-radar-sweep 4.2s linear infinite;
}

.hunt-player-radar-spinner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: rotate(var(--compass-bearing, 0deg));
  transition: transform 0.22s ease;
}

.hunt-player-radar-axis {
  position: absolute;
  background: rgba(255, 255, 255, 0.42);
}

.hunt-player-radar-axis-vertical {
  width: 2px;
  height: 172px;
}

.hunt-player-radar-axis-horizontal {
  width: 172px;
  height: 2px;
}

.hunt-player-radar-compass {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.36);
}

.hunt-player-radar-compass-n {
  top: 8px;
  left: calc(50% - 15px);
}

.hunt-player-radar-compass-e {
  top: calc(50% - 15px);
  right: 8px;
}

.hunt-player-radar-compass-s {
  bottom: 8px;
  left: calc(50% - 15px);
}

.hunt-player-radar-compass-w {
  top: calc(50% - 15px);
  left: 8px;
}

.hunt-player-radar-north {
  position: absolute;
  z-index: 5;
  top: 29px;
  left: calc(50% - 6px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 0 8px rgba(45, 212, 255, 0.62);
}

.hunt-player-radar-center {
  position: absolute;
  z-index: 6;
  width: 11px;
  height: 11px;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px rgba(45, 212, 255, 0.85);
}

.hunt-player-radar:not(.has-radar-target) .hunt-player-radar-target,
.hunt-player-radar:not(.has-radar-target) .hunt-player-radar-arrow {
  opacity: 0;
}

.hunt-player-radar-target {
  position: absolute;
  z-index: 9;
  top: calc(50% - var(--target-radius, 42px) - 10px);
  left: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border: 3px solid #2dd4ff;
  border-radius: 50%;
  background:
    radial-gradient(circle, #dffbff 0 3px, #2dd4ff 4px 6px, rgba(45, 212, 255, 0.18) 7px);
  box-shadow:
    0 0 10px rgba(45, 212, 255, 0.86),
    0 0 20px rgba(45, 212, 255, 0.38);
  transform-origin: 50% calc(var(--target-radius, 42px) + 10px);
  transform: rotate(var(--target-bearing, 0deg));
  animation: hunt-player-radar-target-pulse 0.9s ease-in-out infinite alternate;
  opacity: 1;
  transition: transform 0.42s ease-out, opacity 0.2s ease;
}

.hunt-player-radar-arrow {
  position: absolute;
  z-index: 7;
  top: calc(50% - var(--target-radius, 42px));
  left: calc(50% - 1px);
  width: 2px;
  height: var(--target-radius, 42px);
  border-radius: 999px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(45, 212, 255, 0.9) 0 5px,
    transparent 5px 10px
  );
  transform-origin: 50% 100%;
  transform: rotate(var(--target-bearing, 0deg));
  filter: drop-shadow(0 0 8px rgba(45, 212, 255, 0.72));
  opacity: 1;
  transition: transform 0.42s ease-out, opacity 0.2s ease;
}

@keyframes hunt-player-radar-sweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hunt-player-radar-target-pulse {
  from {
    opacity: 0.92;
    box-shadow:
      0 0 8px rgba(45, 212, 255, 0.78),
      0 0 15px rgba(45, 212, 255, 0.3);
  }
  to {
    opacity: 0.55;
    box-shadow:
      0 0 13px rgba(45, 212, 255, 0.9),
      0 0 26px rgba(45, 212, 255, 0.46);
  }
}

.hunt-player-stop {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.hunt-player-claim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.hunt-player-claim-row span {
  color: var(--yellow);
  font-weight: 800;
}

.hunt-player-task-list {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.hunt-player-task-list li {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.hunt-player-task-list span,
.hunt-player-task-list small {
  color: rgba(255, 255, 255, 0.78);
}

.hunt-player-task-list strong {
  color: #2dd4ff;
}

.hunt-player-task-list small {
  font-weight: 800;
}

.hunt-player-evidence-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.hunt-player-trivia-controls {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.hunt-player-trivia-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(45, 212, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  padding: 10px 12px;
  position: relative;
  z-index: 2;
}

.hunt-player-trivia-input:focus {
  border-color: #2dd4ff;
  box-shadow: 0 0 0 3px rgba(45, 212, 255, 0.18);
  outline: none;
}

.hunt-player-evidence-button,
.hunt-player-evidence-clear {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(45, 212, 255, 0.42);
  border-radius: 8px;
  background: rgba(45, 212, 255, 0.14);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.hunt-player-evidence-clear {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.hunt-player-evidence-name {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  min-height: 40px;
  color: #9ca3af;
  font-size: 0.84rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hunt-player-evidence-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.hunt-player-claim-sheet {
  width: min(560px, calc(100vw - 24px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid rgba(45, 212, 255, 0.48);
  border-radius: 8px;
  background: rgba(4, 12, 18, 0.98);
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58), 0 0 32px rgba(45, 212, 255, 0.2);
}

.hunt-player-claim-sheet::backdrop {
  background: rgba(0, 0, 0, 0.64);
}

.hunt-player-claim-sheet-panel {
  display: grid;
  gap: 12px;
  max-height: inherit;
  padding: 18px;
  overflow: auto;
}

.hunt-player-claim-sheet-panel h2,
.hunt-player-claim-sheet-panel p {
  margin: 0;
}

.hunt-player-claim-sheet-panel h2 {
  color: #ffffff;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.08;
}

.hunt-player-claim-sheet-panel > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.hunt-player-claim-sheet-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
  background: linear-gradient(to top, rgba(4, 12, 18, 1), rgba(4, 12, 18, 0.82));
}

.hunt-player-found-notice {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1200;
  display: grid;
  gap: 4px;
  width: min(420px, calc(100vw - 28px));
  padding: 16px 18px;
  border: 1px solid rgba(45, 212, 255, 0.52);
  border-radius: 8px;
  background: rgba(4, 12, 18, 0.96);
  color: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46), 0 0 28px rgba(45, 212, 255, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.hunt-player-found-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hunt-player-found-notice strong {
  color: #2dd4ff;
  font-size: 1.1rem;
  font-weight: 950;
}

.hunt-player-found-notice span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.ai-task-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.ai-task-options legend {
  padding: 0 6px;
  color: var(--yellow);
  font-weight: 900;
}

.ai-task-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.ai-hunt-draft-row strong {
  color: #ffffff;
}

.ai-hunt-draft-prompt {
  max-width: 78ch;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.88);
}

.ai-hunt-review-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.ai-hunt-review-map-shell {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.ai-hunt-review-map {
  width: 100%;
  min-height: 360px;
}

.ai-hunt-map-pin-info-window {
  display: grid;
  gap: 5px;
  max-width: 280px;
  color: #172022;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
}

.ai-hunt-map-pin-info-window strong {
  font-size: 15px;
  color: #071316;
}

.ai-hunt-map-pin-info-window span,
.ai-hunt-map-pin-info-window p,
.ai-hunt-map-pin-info-window small {
  margin: 0;
  font-size: 12px;
}

.ai-hunt-map-pin-info-window small {
  color: #536265;
}

.ai-hunt-review-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 14px;
  align-items: start;
}

.ai-hunt-review-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.ai-hunt-review-metric {
  display: grid;
  gap: 4px;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.ai-hunt-review-metric span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-hunt-review-metric strong {
  color: #fff;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.ai-hunt-review-block,
.ai-hunt-review-pin {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.ai-hunt-review-pins {
  grid-column: 2;
  grid-row: span 4;
}

.ai-hunt-edit-block {
  grid-column: 1;
}

.ai-hunt-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ai-hunt-edit-grid label,
.ai-hunt-edit-task-row label {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.ai-hunt-edit-grid input,
.ai-hunt-edit-grid textarea,
.ai-hunt-edit-task-row input,
.ai-hunt-edit-task-row textarea {
  width: 100%;
  min-width: 0;
  font-size: 0.88rem;
}

.ai-hunt-edit-grid textarea,
.ai-hunt-edit-task-row textarea {
  min-height: 74px;
}

.ai-hunt-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-hunt-edit-task-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.ai-hunt-edit-sheet {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #111827;
}

.ai-hunt-edit-sheet::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.ai-hunt-edit-sheet-panel {
  display: grid;
  max-height: calc(100vh - 28px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.ai-hunt-edit-sheet-header,
.ai-hunt-edit-sheet-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.ai-hunt-edit-sheet-actions {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.ai-hunt-edit-sheet-header h3,
.ai-hunt-edit-sheet-header p,
.ai-hunt-edit-sheet-actions p {
  margin: 0;
}

.ai-hunt-edit-sheet-header p,
.ai-hunt-edit-sheet-actions p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.ai-hunt-edit-sheet-body {
  display: grid;
  gap: 14px;
  padding: 16px;
  overflow: auto;
}

.ai-hunt-edit-pins {
  grid-column: auto;
  grid-row: auto;
}

.ai-hunt-review-sponsors,
.ai-hunt-review-notes {
  grid-column: 1 / -1;
}

.ai-hunt-review-sponsor-lead {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.ai-hunt-review-sponsor-lead h5,
.ai-hunt-review-sponsor-lead p {
  margin: 0;
}

.ai-hunt-review-sponsor-lead h5 {
  color: #ffffff;
  font-size: 0.98rem;
}

.ai-hunt-review-sponsor-lead p {
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.ai-hunt-review-sponsor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.ai-hunt-review-block h4 {
  margin: 0;
  color: var(--yellow);
}

.ai-hunt-review-pin {
  background: rgba(255, 255, 255, 0.04);
}

.ai-hunt-review-pin-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.ai-hunt-review-pin h5 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

.ai-hunt-review-pin p {
  margin: 0;
}

.ai-hunt-review-pin span,
.ai-hunt-review-pin li {
  color: var(--muted);
  font-size: 0.9rem;
}

.ai-hunt-review-pin ul {
  margin: 0;
  padding-left: 18px;
}

.ai-hunt-review-pin li {
  display: grid;
  gap: 3px;
}

.ai-hunt-review-pin li strong {
  color: var(--yellow);
  font-size: 0.86rem;
}

.admin-activity-card {
  grid-column: 1 / -1;
}

.admin-log-search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-activity-log-list {
  display: grid;
  gap: 10px;
}

.admin-activity-log-row {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-activity-log-header,
.admin-activity-log-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-activity-log-header strong {
  color: #fff;
}

.admin-activity-log-summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.admin-activity-log-header span,
.admin-activity-log-meta span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-activity-log-row details {
  display: grid;
  gap: 8px;
}

.admin-activity-log-row summary {
  width: max-content;
  cursor: pointer;
  color: var(--yellow);
  font-size: 0.86rem;
  font-weight: 900;
}

.admin-activity-log-row pre {
  max-height: 170px;
  margin: 0;
  overflow: auto;
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.78);
  font: 700 0.78rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.admin-ai-chat-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.admin-ai-chat-card > .admin-card-header {
  align-items: center;
}

.admin-ai-chat-messages {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.admin-ai-chat-message {
  display: grid;
  gap: 5px;
  width: min(86%, 760px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-ai-chat-message.user {
  justify-self: end;
  border-color: rgba(45, 212, 255, 0.36);
  background: rgba(45, 212, 255, 0.1);
}

.admin-ai-chat-message.assistant {
  justify-self: start;
}

.admin-ai-chat-message.is-working {
  border-color: rgba(250, 204, 21, 0.72);
  background: rgba(250, 204, 21, 0.12);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.12);
}

#sendAdminAiChatButton.is-working,
.button.is-working {
  border-color: rgba(250, 204, 21, 0.9);
  background: #facc15;
  color: #111111;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

.admin-ai-chat-message.is-working p::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  animation: admin-chat-working 1.1s steps(4, end) infinite;
}

.admin-ai-chat-message strong {
  color: var(--yellow);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.admin-ai-chat-message p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  white-space: pre-wrap;
}

.public-ai-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  justify-items: end;
  gap: 12px;
  pointer-events: none;
}

.public-ai-chat-toggle,
.public-ai-chat-panel {
  pointer-events: auto;
}

.public-ai-chat-toggle {
  display: grid;
  gap: 1px;
  min-width: 94px;
  border: 1px solid rgba(45, 212, 255, 0.55);
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(45, 212, 255, 0.96), rgba(168, 85, 247, 0.94));
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.public-ai-chat-toggle span {
  font-size: 1rem;
  font-weight: 900;
}

.public-ai-chat-toggle small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.public-ai-chat-panel {
  display: grid;
  width: min(390px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 120px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 15, 28, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.public-ai-chat-panel[hidden] {
  display: none;
}

.public-ai-chat-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
}

.public-ai-chat-panel header div {
  display: grid;
  gap: 2px;
}

.public-ai-chat-panel header strong {
  color: #ffffff;
  font-size: 1rem;
}

.public-ai-chat-panel header span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
}

.public-ai-chat-panel header button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.public-ai-chat-messages {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
}

.public-ai-chat-message {
  display: grid;
  gap: 5px;
  width: min(88%, 310px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.07);
}

.public-ai-chat-message.user {
  justify-self: end;
  border-color: rgba(45, 212, 255, 0.38);
  background: rgba(45, 212, 255, 0.12);
}

.public-ai-chat-message.assistant {
  justify-self: start;
}

.public-ai-chat-message.is-working {
  border-color: rgba(250, 204, 21, 0.62);
  background: rgba(250, 204, 21, 0.12);
}

.public-ai-chat-message.is-working p::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  animation: admin-chat-working 1.1s steps(4, end) infinite;
}

.public-ai-chat-message strong {
  color: var(--yellow);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.public-ai-chat-message p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  white-space: pre-wrap;
}

.public-ai-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.public-ai-chat-composer textarea {
  width: 100%;
  min-height: 48px;
  resize: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.public-ai-chat-composer textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.public-ai-chat-composer .button {
  align-self: stretch;
}

.public-ai-chat-status {
  margin: 0;
  padding: 0 14px 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.public-ai-chat-status.is-success {
  color: #7dd3fc;
}

.public-ai-chat-status.is-error {
  color: #fca5a5;
}

.ai-generation-progress {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
  padding: 14px;
  border: 1px solid rgba(48, 227, 255, 0.42);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.ai-generation-progress[hidden] {
  display: none;
}

.ai-generation-progress__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #f5f7fb;
  font-size: 0.95rem;
  font-weight: 800;
}

.ai-generation-progress__header span:last-child {
  color: #36e6ff;
  white-space: nowrap;
}

.ai-generation-progress__track {
  position: relative;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.ai-generation-progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #36e6ff, #4ade80, #ffd166);
  animation: ai-generation-progress 1.35s ease-in-out infinite;
}

@keyframes ai-generation-progress {
  0% {
    transform: translateX(-115%);
  }
  55% {
    transform: translateX(80%);
  }
  100% {
    transform: translateX(245%);
  }
}

@keyframes admin-chat-working {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75%,
  100% {
    content: "...";
  }
}

@media (max-width: 840px) {
  .tv-header,
  .tv-controls,
  .tv-auth-panel,
  .tv-hunt-board-header,
  .tv-schedule-card-header,
  .tv-schedule-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .tv-header-actions,
  .tv-hunt-meta {
    justify-items: start;
  }

  .tv-board-grid,
  .tv-schedule-grid {
    grid-template-columns: 1fr;
  }

  .tv-board-grid.is-single-hunt .tv-standings-list {
    grid-template-columns: 1fr;
  }

  .tv-standing-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .tv-standing-score {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    min-width: 0;
    padding-left: 60px;
  }

  .tv-standing-metric {
    justify-items: start;
    min-width: 0;
  }

  .leaderboard-row {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .leaderboard-score {
    grid-column: 2;
    justify-items: start;
    min-width: 0;
  }

  .leaderboard-hunt-group-header {
    align-items: stretch;
    flex-direction: column;
  }

  .leaderboard-hunt-actions {
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .leaderboard-hunt-actions > span {
    align-self: flex-start;
  }

  .tv-timer-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .feature-grid,
  .admin-grid,
  .audience-grid,
  .process-grid,
  .sponsor-story-grid,
  .discovery-modes-grid,
  .popular-experience-grid,
  .media-video-grid,
  .media-resource-grid,
  .app-preview,
  .download,
  .admin-layout,
  .account-layout,
  .leaderboard-layout,
  .upgrade-status-grid,
  .upgrade-options,
  .two-column-fields {
    grid-template-columns: 1fr;
  }

  .user-admin-layout {
    grid-template-columns: 1fr;
  }

  .media-contact-band {
    align-items: stretch;
    flex-direction: column;
  }

  .sign-in-card,
  .ai-hunt-generator-card,
  .admin-horizontal-card.photo-review-card,
  .admin-features-card,
  .admin-features-card ul,
  .hunt-player-radar {
    grid-template-columns: 1fr;
  }

  .ai-hunt-generator-card > .two-column-fields {
    grid-column: 1;
  }

  .ai-hunt-review-content {
    grid-template-columns: 1fr;
  }

  .ai-hunt-review-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-log-search-grid {
    grid-template-columns: 1fr;
  }

  .ai-hunt-review-pins,
  .ai-hunt-edit-block,
  .ai-hunt-review-sponsors,
  .ai-hunt-review-notes {
    grid-column: 1;
  }

  .ai-hunt-edit-grid,
  .ai-hunt-edit-task-row {
    grid-template-columns: 1fr;
  }

  .hunt-player-radar-dial {
    justify-self: center;
  }

  .sign-in-card .auth-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .sign-in-card .auth-actions .button {
    flex: 1 1 180px;
  }

  .admin-horizontal-card.photo-review-card .photo-review-list {
    grid-column: auto;
    grid-row: auto;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow-x: visible;
  }

  .admin-features-card .admin-link-actions {
    justify-content: stretch;
  }

  .verification-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  nav {
    justify-content: flex-end;
  }

  .hunt-map-header,
  .section-row,
  .hunt-pin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-coordinate {
    max-width: 100%;
    text-align: left;
  }

  .hunt-map-shell,
  .hunt-map,
  .sponsor-map-shell,
  .sponsor-map {
    min-height: 520px;
  }

  .draft-pin-row {
    grid-template-columns: 1fr;
  }

  .photo-review-row {
    grid-template-columns: 1fr;
  }

  .draft-pin-actions {
    justify-items: stretch;
  }

  .draft-pin-coordinates,
  .draft-pin-media {
    text-align: left;
  }

  .leaderboard-row {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .leaderboard-rank {
    width: 50px;
    height: 50px;
  }

  .leaderboard-score {
    grid-column: 1 / -1;
    justify-items: start;
    padding-left: 64px;
  }

  .sponsor-package-strip {
    grid-template-columns: 1fr;
  }

  .public-ai-chat {
    right: 14px;
    bottom: 14px;
  }

  .public-ai-chat-panel {
    max-height: calc(100vh - 94px);
  }

  .public-ai-chat-composer {
    grid-template-columns: 1fr;
  }
}
