: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;
  --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;
}

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;
}

.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);
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .topbar-session {
    width: 100%;
    text-align: left;
  }

  .topbar-auth-action {
    width: 100%;
  }
}

.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-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);
}

.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-standings-list {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.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[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;
}

.tv-hunt-board h2,
.tv-schedule-card h2,
.tv-section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 46px);
  line-height: 1;
}

.tv-hunt-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: 0 0 auto;
}

.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-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-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-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(96px, 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(243, 201, 95, 0.92);
  background:
    linear-gradient(135deg, rgba(243, 201, 95, 0.28), rgba(244, 119, 69, 0.22)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(243, 201, 95, 0.28);
}

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

.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-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;
  justify-items: end;
  min-width: 96px;
}

.tv-standing-score strong {
  color: var(--yellow);
  font-size: clamp(24px, 2.7vw, 46px);
  font-weight: 900;
  line-height: 1;
}

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

.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(243, 201, 95, 0.92);
  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(280px, 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);
}

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

.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;
}

.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);
}

.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;
}

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

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

.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);
}

.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;
}

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

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

.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(2, 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: 10px;
}

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

.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: 58px minmax(0, 1fr) minmax(92px, auto);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  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: 58px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 18px;
  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: 22px;
}

.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: 34px;
  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;
  gap: 8px;
  margin: 14px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.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;
}

.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;
}

.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:hover,
.hunt-row:focus-within {
  border-color: rgba(243, 201, 95, 0.72);
  background: rgba(255, 255, 255, 0.1);
}

.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-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.hunt-preview {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.hunt-preview[hidden] {
  display: none;
}

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

.hunt-edit-panel,
.hunt-current-pins,
.pin-edit-list {
  display: grid;
  gap: 10px;
}

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

.hunt-current-pins h3 {
  margin: 0;
}

.pin-edit-list {
  margin-top: 4px;
}

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

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

.pin-edit-row h4 {
  margin: 0;
}

.pin-edit-actions .button {
  min-height: 42px;
  padding: 9px 12px;
}

.pin-edit-meta {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.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;
}

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

.photo-review-card .section-row h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.photo-review-card .section-row p {
  max-width: 38ch;
}

.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: 8px;
  min-width: 0;
}

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

.photo-review-body p {
  color: var(--text);
  overflow-wrap: anywhere;
}

.photo-review-meta {
  color: var(--muted) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.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: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  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);
}

@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;
    justify-items: start;
    min-width: 0;
    padding-left: 60px;
  }

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

  .feature-grid,
  .admin-grid,
  .app-preview,
  .download,
  .admin-layout,
  .account-layout,
  .leaderboard-layout,
  .two-column-fields {
    grid-template-columns: 1fr;
  }

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

  .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;
  }
}
