/* ============================================================
   The Frog Goes to MSG — lewisbong.com
   assets/style.css — dark arena theme. No external fonts/assets.
   ============================================================ */

:root {
  --bg: #08110b;
  --bg-2: #0a140d;
  --panel: #0e1a12;
  --panel-2: #12211733;
  --line: #1d3527;
  --line-2: #2a4a37;
  --ink: #e9f5ec;
  --ink-dim: #a8c2b0;
  --ink-faint: #6f8b7a;
  --green: #2fd37a;
  --green-2: #17a05a;
  --green-3: #0d6b3c;
  --gold: #f5c14b;
  --gold-2: #d99a1f;
  --red: #e35d4f;
  --blue: #4f9fe3;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47, 211, 122, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(79, 159, 227, 0.05), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 17, 11, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 15px;
}
.frog-dot {
  font-size: 20px;
  background: radial-gradient(circle at 30% 30%, #35664a, var(--green-3));
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
}
.nav-cta {
  text-decoration: none;
  color: var(--bg);
  background: linear-gradient(180deg, var(--green), var(--green-2));
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(23, 160, 90, 0.35);
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(23, 160, 90, 0.5); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 44px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--line-2);
  background: var(--green-33) rgba(47, 211, 122, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
}
.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 900;
}
.gradient-word {
  background: linear-gradient(92deg, var(--green) 10%, #9ff2c4 45%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy {
  color: var(--ink-dim);
  font-size: 18px;
  max-width: 56ch;
  margin: 0 0 26px;
}
.hero-copy strong { color: var(--gold); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary {
  color: #06130b;
  background: linear-gradient(180deg, var(--green), var(--green-2));
  box-shadow: 0 10px 26px rgba(23, 160, 90, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(23, 160, 90, 0.5); }
.btn-secondary {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(29, 53, 39, 0.7), rgba(20, 36, 26, 0.7));
  border-color: var(--line-2);
}
.btn-secondary:hover { background: var(--line); border-color: var(--green-3); }

/* ---------- arena card (opening-night photo, full bleed) ---------- */
.arena-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.arena-card {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #0b1810;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.arena-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.arena-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 17, 11, 0.18) 0%, rgba(8, 17, 11, 0.02) 40%, rgba(8, 17, 11, 0.2) 68%, rgba(8, 17, 11, 0.8) 100%);
  z-index: 1;
}
.arena-card > .ticker { position: relative; z-index: 2; }

.ticker {
  overflow: hidden;
  white-space: nowrap;
  margin-top: auto;
  border-top: 1px solid rgba(29, 53, 39, 0.5);
  padding: 10px 4px 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker span {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  background: rgba(8, 17, 11, 0.55);
  padding: 4px 2px;
  animation: marquee 22s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.arena-cta {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--gold);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(245, 193, 75, 0.4);
  background: rgba(245, 193, 75, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.arena-cta:hover { background: rgba(245, 193, 75, 0.16); border-color: var(--gold); transform: translateY(-1px); }

/* ---------- generic sections ---------- */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid rgba(29, 53, 39, 0.5); }
.section-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}
.section h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 900;
}

.card {
  background: linear-gradient(180deg, var(--panel), rgba(14, 26, 18, 0.6));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

/* ---------- countdown ---------- */
.countdown-shell { text-align: center; }
.countdown {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 18px;
}
.time-box {
  min-width: 108px;
  padding: 18px 14px;
  background: linear-gradient(180deg, rgba(29, 53, 39, 0.55), rgba(14, 26, 18, 0.85));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow);
}
.time-box strong {
  display: block;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1;
}
.time-box span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.game-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  font-size: 14px;
  color: var(--ink-dim);
  font-weight: 600;
}
.countdown-caption {
  margin: 16px auto 0;
  max-width: 62ch;
  color: var(--ink-faint);
  font-size: 14px;
  min-height: 1em;
}

/* ---------- fund + mission grid ---------- */
.fund-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 26px;
  align-items: start;
}
.fund-card .amount-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}
.raised {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 900;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.raised[data-state="error"] { color: var(--red); }
.raised-estimate {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  vertical-align: middle;
}
.goal { font-size: 16px; color: var(--ink-dim); font-weight: 600; }
.progress {
  height: 14px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
}
.progress > div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green-3), var(--green) 60%, var(--gold));
  border-radius: 999px;
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.status-line { font-size: 14px; }
#lastUpdated { color: var(--ink-faint); }

.wallet-intro { margin-top: 26px; }
.wallet-intro-title { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.wallet-intro p { margin: 0; color: var(--ink-dim); font-size: 15px; }

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.wallet-skeleton {
  height: 150px;
  border-radius: 12px;
  background: linear-gradient(100deg, var(--panel) 40%, var(--line) 50%, var(--panel) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -80% 0; } }

.wallet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, rgba(29, 53, 39, 0.35), rgba(14, 26, 18, 0.2));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.wallet:hover, .wallet:focus-within { border-color: var(--green-3); transform: translateY(-2px); }
.wallet-head { display: flex; align-items: center; gap: 10px; }
.wallet-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  flex: none;
}
.wallet-icon img { width: 30px; height: 30px; object-fit: contain; }
.wallet-id { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.wallet-name { font-weight: 800; font-size: 15px; }
.wallet-net { font-size: 11.5px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-addr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  background: rgba(8, 17, 11, 0.75);
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  padding: 7px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wallet-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-faint);
}
.wallet-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); flex: none; }
.wallet-status[data-state="tracking"] .dot { background: var(--green); }
.wallet-status[data-state="unavailable"] .dot { background: var(--gold); }
.wallet-status[data-state="needs_baseline"] .dot { background: var(--gold); }
.wallet-warn {
  font-size: 12px;
  color: var(--gold);
  background: rgba(245, 193, 75, 0.08);
  border: 1px solid rgba(245, 193, 75, 0.3);
  border-radius: 8px;
  padding: 7px 9px;
  margin: 0;
}
.wallet-actions { display: flex; gap: 8px; margin-top: auto; }
.wallet-actions .btn { padding: 8px 13px; font-size: 13px; flex: 1; }
.wallet-balance { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* mission card */
.mission-card { position: sticky; top: 80px; }
.mission-copy { color: var(--ink-dim); font-size: 15px; }
.mission-copy strong { color: var(--ink); }
.why-grid { display: grid; gap: 12px; margin-top: 18px; }
.why {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(29, 53, 39, 0.3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink-dim);
}
.why b { font-size: 18px; }

/* ---------- battle card ---------- */
.battle-card h2 { margin-bottom: 26px; }
.matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
}
.team { text-align: center; }
.team-icon {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}
.team-icon img { width: 84px; height: 84px; object-fit: contain; }
.team h3 { margin: 0; font-size: 22px; font-weight: 900; }
.team p { margin: 4px 0 0; color: var(--ink-faint); font-size: 14px; }
.vs {
  font-size: 26px;
  font-weight: 900;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  text-align: center;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  background: linear-gradient(180deg, rgba(29, 53, 39, 0.3), rgba(14, 26, 18, 0.15));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #06130b;
  background: linear-gradient(180deg, var(--green), var(--green-2));
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(23, 160, 90, 0.4);
}
.step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.step p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: linear-gradient(180deg, rgba(29, 53, 39, 0.28), rgba(14, 26, 18, 0.18));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
}
.faq details[open] { border-color: var(--green-3); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--green); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--ink-dim); font-size: 14.5px; }
.faq code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: rgba(8, 17, 11, 0.8);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--gold);
}

/* ---------- noscript / coming ---------- */
.coming {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(79, 159, 227, 0.07);
  border: 1px solid rgba(79, 159, 227, 0.3);
  border-radius: 10px;
  color: var(--ink-dim);
  font-size: 14px;
}
.coming code { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }

/* ---------- share ---------- */
.share-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.share-note { color: var(--ink-faint); font-size: 13.5px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--ink-faint);
  font-size: 13.5px;
  line-height: 1.7;
  background: rgba(8, 17, 11, 0.6);
}

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 9, 6, 0.75);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: min(680px, 100%);
  max-height: min(90vh, 780px);
  overflow: auto;
  background: linear-gradient(180deg, #10231a, #0c1811);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.modal-title-wrap { display: flex; align-items: center; gap: 12px; }
.qr-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  object-fit: contain;
  padding: 5px 0 0 7px;
}
.modal h2 { margin: 0; font-size: 19px; font-weight: 800; }
.qr-network { color: var(--ink-faint); font-size: 13px; font-weight: 600; }
.modal-close {
  background: rgba(29, 53, 39, 0.5);
  color: var(--ink-dim);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 15px;
  cursor: pointer;
  flex: none;
}
.modal-close:hover { color: var(--ink); border-color: var(--green-3); }

.qr-warning {
  margin: 14px 22px 0;
  padding: 12px 14px;
  background: rgba(227, 93, 79, 0.1);
  border: 1px solid rgba(227, 93, 79, 0.4);
  border-radius: 10px;
  color: #f2b6ae;
  font-size: 13.5px;
}
.qr-warning[hidden] { display: none; }

.qr-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 20px 22px;
}
.qr-frame { margin: 0; text-align: center; }
.qr-frame figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-faint);
  max-width: 250px;
}
.qr-frame .qr-img, .qr-canvas-wrap canvas {
  display: block;
  width: 260px;
  height: 260px;
  max-width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  border: 1px solid var(--line-2);
}
.qr-canvas-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  border: 1px solid var(--line-2);
}
.qr-canvas-wrap canvas { background: transparent; border: none; padding: 0; width: 244px; height: 244px; }

.qr-meta { display: flex; flex-direction: column; gap: 12px; }
.qr-meta-label { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.qr-address {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  word-break: break-all;
  background: rgba(6, 12, 8, 0.85);
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  line-height: 1.5;
}
.qr-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.qr-verify { margin: 0; font-size: 12.5px; color: var(--ink-faint); }

.qr-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 13.5px;
}
.qr-footer strong { color: var(--ink); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #10241a;
  color: var(--ink);
  border: 1px solid var(--green-3);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .fund-grid { grid-template-columns: 1fr; }
  .mission-card { position: static; }
  .steps { grid-template-columns: 1fr; }
  .qr-body { grid-template-columns: 1fr; justify-items: center; }
  .qr-meta { align-items: center; width: 100%; }
  .time-box { min-width: 86px; flex: 1; }
}
@media (max-width: 520px) {
  .hero { padding-top: 40px; }
  .section { padding: 40px 0; }
  .card { padding: 18px; }
  .matchup { grid-template-columns: 1fr; }
  .vs { display: none; }
  .countdown { gap: 8px; }
  .time-box { min-width: 70px; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
