:root {
  --ground:  #0B0A0C;
  --ink:     #F4EFE9;
  --muted:   #A2988E;
  --faint:   #6E655D;
  --ember:   #FF6B35;
  --gold:    #E8B04B;
  --lake:    #5BC8F5;
  --glass:   rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .075);
  --line:    rgba(255, 255, 255, .10);
  --line-2:  rgba(255, 255, 255, .18);
  --serif: "Instrument Serif", Georgia, serif;
  --sans:  "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grade: saturate(.72) contrast(.88) brightness(.78);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden;
  background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-weight: 300; line-height: 1.6;
}
button, input, textarea { font: inherit; }
a { color: inherit; }

.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero {
  position: relative; min-height: 72svh; overflow: hidden;
  display: flex; align-items: flex-end; padding: 0 24px 70px;
  background:
    radial-gradient(circle at 78% 20%, rgba(91,200,245,.13), transparent 28%),
    radial-gradient(circle at 12% 85%, rgba(255,107,53,.17), transparent 34%),
    var(--ground);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 38%; pointer-events: none;
  background: linear-gradient(transparent, var(--ground));
}
.hero-copy { position: relative; z-index: 1; width: min(1040px, 100%); margin: 0 auto; }
.eyebrow {
  margin: 0 0 18px; color: rgba(244,239,233,.72);
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.hero h1 {
  margin: 0; font-family: var(--serif); font-size: clamp(64px, 12vw, 126px);
  font-weight: 400; line-height: .9; letter-spacing: -.015em;
}
.hero h1 em { color: var(--gold); font-weight: 400; }
.hero h1 span { display: inline-block; font-size: .38em; transform: translateY(-.65em) rotate(7deg); }
.lede { max-width: 34em; margin: 28px 0 0; color: rgba(244,239,233,.88); font-size: clamp(17px, 2vw, 20px); }
.pill {
  display: inline-block; margin-top: 28px; padding: 13px 26px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}
.pill:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); transform: translateY(-1px); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 68px 24px 48px; }
.filters {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.filter-label {
  font-size: 11px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--faint);
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 7px 14px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-2); color: var(--muted);
  cursor: pointer; font-family: var(--sans); font-size: 13.5px;
  transition: background .18s, border-color .18s, color .18s;
}
.chip:hover { border-color: rgba(255,255,255,.36); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--glass-2); color: var(--ink); border-color: rgba(255,255,255,.44); }
.chip:focus-visible, .btn:focus-visible, .linkish:focus-visible, .talk:focus-visible, .source:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

.challenge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.challenge {
  position: relative; min-width: 0; padding: 26px 26px 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.028));
  border: 1px solid var(--line-2); border-radius: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column;
  transition: border-color .25s, box-shadow .25s;
}
.challenge.is-linked { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(232,176,75,.24), 0 22px 70px rgba(0,0,0,.35); }
.challenge-head { display: flex; gap: 14px; align-items: flex-start; }
.challenge-emoji { flex: none; font-size: 34px; line-height: 1; }
.challenge h2 {
  margin: -3px 0 0; font-family: var(--serif); font-size: clamp(27px, 3.4vw, 36px);
  font-weight: 400; line-height: 1.04; letter-spacing: -.01em;
}
.where { margin: 9px 0 0; color: var(--gold); font-size: 12px; font-weight: 500; }
.blurb { margin: 20px 0 0; color: rgba(244,239,233,.92); font-size: 15px; }
.details { margin: 13px 0 0; padding-left: 19px; color: var(--muted); font-size: 13.5px; }
.details li + li { margin-top: 4px; }
.details a { color: var(--lake); text-underline-offset: 3px; }
.prize { margin: 18px 0 0; color: var(--ink); font-size: 13.5px; font-weight: 500; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.verified, .original { font-size: 11.5px; color: var(--muted); }
.unverified { color: var(--gold); }
.original { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
.source { font-size: 11.5px; color: var(--muted); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.source:hover { color: var(--gold); }

.board { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.board-title { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.board-list { list-style: none; margin: 13px 0 0; padding: 0; }
.completion { padding: 9px 0; border-top: 1px solid var(--line); }
.completion:first-child { border-top: 0; }
.completion-line { margin: 0; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.completion-name { color: var(--ink); font-weight: 500; }
.report {
  float: right; margin-left: 8px; padding: 0; border: 0; background: none;
  color: var(--faint); cursor: pointer; font-size: 12px;
}
.report:hover { color: var(--ember); }
.report:disabled { cursor: default; opacity: .5; }
.board-empty { margin: 13px 0 0; color: var(--faint); font-size: 13.5px; font-style: italic; }
.show-all { margin-top: 7px; }

.btn {
  padding: 11px 21px; border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; font-family: var(--sans); font-size: 14px; font-weight: 500;
  transition: background .2s, border-color .2s, color .2s, transform .15s, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn-go { background: var(--ember); color: #14100E; border-color: var(--ember); font-weight: 600; }
.btn-go:hover:not(:disabled) { background: #ff835a; border-color: #ff835a; }
.btn-quiet { background: var(--glass-2); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: rgba(255,255,255,.12); }
.done-button { margin-top: 16px; }
.done-form { margin-top: 15px; padding: 15px; border-radius: 14px; background: rgba(0,0,0,.23); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: minmax(120px, .75fr) minmax(150px, 1.25fr); gap: 9px; }
.done-form input {
  min-width: 0; width: 100%; padding: 10px 13px; border-radius: 10px;
  background: rgba(0,0,0,.28); border: 1px solid var(--line-2); color: var(--ink); font-size: 13px;
}
.done-form input::placeholder { color: var(--faint); }
.done-form input:focus { outline: none; border-color: var(--gold); }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.form-error { margin: 0; color: var(--ember); font-size: 12px; }
.town-status { margin: 11px 0 0; color: var(--gold); font-size: 12.5px; }
.linkish {
  border: 0; padding: 0; background: none; color: var(--muted); cursor: pointer;
  font-family: var(--sans); font-size: 12.5px; text-decoration: underline;
  text-decoration-color: var(--line-2); text-underline-offset: 3px;
}
.linkish:hover { color: var(--gold); text-decoration-color: var(--gold); }
.talk { display: inline-block; margin-top: auto; padding-top: 22px; color: var(--muted); font-size: 12.5px; text-decoration: none; }
.talk:hover { color: var(--gold); }

.celebrate {
  position: absolute; left: 50%; bottom: 90px; z-index: 2; pointer-events: none;
  font-size: 34px; animation: float-up 1s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes float-up {
  from { opacity: 0; transform: translate(-50%, 8px) scale(.7) rotate(-8deg); }
  25% { opacity: 1; }
  to { opacity: 0; transform: translate(-50%, -80px) scale(1.2) rotate(8deg); }
}

.foot {
  max-width: 1040px; margin: 0 auto; padding: 36px 24px 60px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--line); color: var(--faint); font-size: 13px;
}
.foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.foot a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .hero { min-height: 66svh; padding: 0 20px 52px; }
  .hero h1 { font-size: clamp(60px, 18vw, 92px); }
  .wrap { padding: 48px 16px 34px; }
  .challenge-grid { grid-template-columns: 1fr; }
  .challenge { padding: 23px 20px 20px; }
}
@media (max-width: 440px) {
  .filters { align-items: flex-start; flex-direction: column; gap: 10px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .celebrate { animation: none; display: none; }
}
