/* ============================================================
   ARENA — design tokens & components
   Ported from the Claude Design package ("Arena Quiz.dc.html").
   Light theme, gold accent, Barlow throughout, sharp corners.
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #111418;
  --sub: #5c6066;
  --mono: #8a8d93;
  --line: #d9d9d5;
  --card: #ffffff;
  --soft: #ececea;
  --evc: #3a3e44;
  --accent: #b08a3c; /* package "gold" accent */
  --font: "Barlow", system-ui, sans-serif;
  --mono-font: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); }

body {
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* no sideways scroll from a stray wide element */
}

a { color: var(--ink); }
a:hover { color: var(--accent); }

/* ---------- layout shell ---------- */
.wrap {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 30px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.brand { font-weight: 700; font-size: 17px; letter-spacing: 3px; }

.screen { flex: 1; display: flex; flex-direction: column; }
.center-screen { justify-content: center; gap: 18px; }

.footer {
  margin-top: 22px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--mono);
  text-align: center;
}

/* ---------- type helpers ---------- */
/* Technical labels — Barlow (not a monospace) tracked out to keep the "spec sheet" feel. */
.mono { font-family: var(--mono-font); font-weight: 500; letter-spacing: .04em; }
.accent { color: var(--accent); }
.dim { color: var(--mono); }
.center { text-align: center; }

.display {
  font-weight: 700;
  font-size: clamp(30px, 8.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -1px;
  text-wrap: pretty;
  margin: 0;
}
.display.sm { font-size: clamp(25px, 6.5vw, 32px); line-height: 1.1; letter-spacing: -0.7px; }

.lede {
  font-size: 15px;
  line-height: 1.6;
  color: var(--sub);
  max-width: 50ch;
  margin: 0;
}
.kicker { font-size: 11px; letter-spacing: 2px; }

/* ---------- buttons / links ---------- */
.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 17px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: opacity .12s;
}
.btn:hover { opacity: 0.88; }
.btn-ink { background: var(--accent); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn.big { padding: 18px; font-weight: 700; font-size: 16px; }

.navlink {
  font-family: var(--mono-font);
  font-size: 11px;
  color: var(--mono);
  cursor: pointer;
  padding: 8px 0;
  display: inline-block;
}
.navlink:hover { color: var(--ink); }
.navlink.off { opacity: 0.4; pointer-events: none; }
.navlink.center { display: block; text-align: center; }

/* ---------- intro ---------- */
.intro { display: flex; flex-direction: column; gap: 18px; }
.intro-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.meta-line { font-size: 10.5px; color: var(--mono); text-align: center; letter-spacing: 0.5px; }

/* ---------- question head + ticks ---------- */
.q-head {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--mono);
  margin-top: 14px;
}
.ticks { display: flex; gap: 3px; margin: 12px 0 34px; }
.tick { flex: 1; height: 4px; background: var(--line); }
.tick.done { background: var(--accent); }
.tick.now { background: var(--ink); }

.q-title {
  font-weight: 700;
  font-size: clamp(21px, 6vw, 27px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
  text-wrap: pretty;
  outline: none;
}
.q-sub { font-size: 13px; color: var(--sub); margin: 0 0 24px; }

/* ---------- option cards (list / grid / either) ---------- */
.opts { display: flex; flex-direction: column; gap: 10px; }
.opts.fmt-grid { display: grid; grid-template-columns: 1fr 1fr; }

.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 14px 16px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .12s;
}
.opt:hover { border-color: var(--accent); }
.opt.sel { border: 2px solid var(--accent); padding: 13px 15px; }
.opt-ic { flex: none; color: var(--mono); }
.opt.sel .opt-ic { color: var(--accent); }
.opt-t { font-weight: 600; font-size: 15px; line-height: 1.4; }

.opts.fmt-grid .opt { align-items: flex-start; }
.opts.fmt-grid .opt-t { font-size: 14px; line-height: 1.35; }

.opts.fmt-either .opt { padding: 18px 16px; }
.opts.fmt-either .opt-t { font-weight: 700; font-size: 19px; letter-spacing: -0.3px; }

/* ---------- slider (stepped, labelled options) ---------- */
.slider-card { border: 1px solid var(--line); background: var(--card); padding: 26px 20px 22px; }
.slider-hint { color: var(--mono); text-align: center; margin-top: 16px; font-size: 10px; letter-spacing: 1px; }

/* stepped slider (labelled options along the track) */
.slider-card.stepped { padding: 24px 20px 20px; }
.step-readout {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: clamp(17px, 4.6vw, 21px);
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: pretty;
  transition: opacity .12s;
}
.step-dots { display: flex; justify-content: space-between; margin-top: 12px; padding: 0 11px; }
.st-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--line); transition: background .12s, transform .12s; }
.st-dot.on { background: var(--accent); transform: scale(1.25); }

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  width: 100%;
  height: 44px;
  margin: 0;
  cursor: pointer;
}
input[type=range]::-webkit-slider-runnable-track { height: 4px; background: var(--line); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  margin-top: -11px;
  background: var(--accent);
  border: none;
}
input[type=range]::-moz-range-track { height: 4px; background: var(--line); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 0; background: var(--accent); border: none; }

/* ---------- multi-select (sports) ---------- */
.multi-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.age-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.age-chip { text-align: center; }
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--sub);
  padding: 12px 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .12s;
}
.chip:hover { border-color: var(--accent); }
.chip.sel { border: 2px solid var(--accent); color: var(--accent); padding: 11px 9px; }

/* ---------- question nav ---------- */
.q-nav {
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- transmission breaks ---------- */
.brk { display: flex; flex-direction: column; gap: 16px; }
.pg-card { border: 1px solid var(--line); padding: 15px 16px; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pg-head { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 1.5px; color: var(--mono); }
.pg-row { display: flex; align-items: center; gap: 12px; }
.pg-name { width: 96px; font-size: 10px; color: var(--mono); }
.pg-track { flex: 1; height: 5px; background: var(--soft); }
.pg-fill { height: 5px; background: var(--mono); }
.pg-fill.on { background: var(--accent); }
.pg-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 9.5px;
  letter-spacing: 1px;
  color: var(--mono);
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

/* ---------- essay ---------- */
.essay { display: flex; flex-direction: column; gap: 16px; }
.essay-cta { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }

.voice-card { position: relative; border: 1px solid var(--line); background: var(--card); }
.voice-card.rec { border-color: var(--accent); }
.transcript {
  width: 100%;
  min-height: 150px;
  border: none;
  background: transparent;
  color: var(--ink);
  padding: 14px 54px 14px 14px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}
.mic-wrap { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; }
.mic-ring { position: absolute; inset: 0; border-radius: 999px; border: 1.5px solid var(--accent); opacity: 0; }
.mic-wrap.rec .mic-ring.r1 { animation: micpulse 1.6s ease-out infinite; }
.mic-wrap.rec .mic-ring.r2 { animation: micpulse 1.6s ease-out infinite .8s; }
@keyframes micpulse { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.mic-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
}
.mic-wrap.rec .mic-btn { border-color: var(--accent); background: var(--accent); color: #fff; }

.voice-status { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 20px; }
.eq { display: flex; gap: 3px; align-items: flex-end; height: 16px; opacity: .25; }
.eq b { width: 3px; height: 6px; background: var(--accent); display: inline-block; }
.eq.on { opacity: 1; }
.eq.on b { animation: eq 0.9s ease-in-out infinite; }
.eq.on b:nth-child(2) { animation-delay: .15s; }
.eq.on b:nth-child(3) { animation-delay: .3s; }
.eq.on b:nth-child(4) { animation-delay: .45s; }
.eq.on b:nth-child(5) { animation-delay: .6s; }
@keyframes eq { 0%,100% { height: 5px; } 50% { height: 16px; } }
.rec-timer { font-family: var(--mono-font); font-size: 11px; color: var(--mono); }
.voice-note { margin: 0; font-family: var(--mono-font); font-size: 10px; letter-spacing: .5px; color: var(--mono); }

/* ---------- result ---------- */
.result { display: flex; flex-direction: column; margin-top: 22px; }

/* reveal animation on the ASSESSMENT COMPLETE page */
@keyframes arenaReveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.result > *, .result-cta { animation: arenaReveal .5s cubic-bezier(.2, .7, .2, 1) both; }
.result > *:nth-child(1) { animation-delay: .04s; }
.result > *:nth-child(2) { animation-delay: .10s; }
.result > *:nth-child(3) { animation-delay: .16s; }
.result > *:nth-child(4) { animation-delay: .22s; }
.result > *:nth-child(5) { animation-delay: .28s; }
.result > *:nth-child(6) { animation-delay: .34s; }
.result > *:nth-child(7) { animation-delay: .40s; }
.result > *:nth-child(8) { animation-delay: .46s; }
.result-cta { animation-delay: .52s; }
@media (prefers-reduced-motion: reduce) { .result > *, .result-cta { animation: none; } }
.arch-name { font-size: clamp(32px, 11vw, 46px); line-height: 1; letter-spacing: -1px; margin: 12px 0 6px; }
.arch-sec { font-size: 11px; color: var(--mono); }
.arch-tag { font-size: 15px; line-height: 1.55; color: var(--sub); margin: 14px 0 0; max-width: 44ch; }
.kw-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.kw {
  border: 1px solid var(--line);
  padding: 6px 12px;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}
.arch-prose { font-size: 14px; line-height: 1.7; color: var(--evc); margin: 18px 0 0; max-width: 58ch; text-wrap: pretty; }

.panels { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.panel { flex: 1; min-width: 250px; border: 1px solid var(--line); padding: 16px 14px; }
.panel-label { font-size: 10px; letter-spacing: 2px; color: var(--mono); margin-bottom: 12px; }
.radar { width: 100%; max-width: 250px; display: block; margin: 0 auto; }
.rad-ring, .rad-axis { fill: none; stroke: var(--line); stroke-width: 1; }
.rad-data { fill: var(--accent); fill-opacity: 0.16; stroke: var(--accent); stroke-width: 1.5; }
.rad-label { fill: var(--mono); font-size: 8.5px; letter-spacing: 1px; }

.bars { display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-name { width: 88px; font-size: 10px; color: var(--mono); }
.bar-track { flex: 1; height: 6px; background: var(--soft); }
.bar-fill { height: 6px; background: var(--mono); }
.bar-fill.on { background: var(--accent); }
.bar-pts { font-size: 10px; color: var(--mono); width: 22px; text-align: right; }

.evidence { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.ev-row { display: flex; gap: 12px; }
.ev-n { font-size: 10px; padding-top: 3px; }
.ev-t { font-size: 13.5px; line-height: 1.5; color: var(--evc); }

.result-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- claim / golden ticket ---------- */
.ticket {
  position: relative;
  display: flex;
  background: linear-gradient(115deg, #c9a34f, #e8d193 42%, #b08a3c);
  border-radius: 10px;
  overflow: hidden;
  color: #2b2208;
  box-shadow: 0 8px 24px rgba(176, 138, 60, 0.35);
  margin: 18px 0 24px;
}
.ticket-main { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.ticket-eyebrow { font-size: 8.5px; letter-spacing: 2.5px; color: rgba(43, 34, 8, 0.65); }
.ticket-brand { font-weight: 700; font-size: 27px; letter-spacing: 5px; line-height: 1.1; }
.ticket-arch { font-size: 11px; letter-spacing: 2px; margin-top: 2px; }
.ticket-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 8.5px; letter-spacing: 1.5px; color: rgba(43, 34, 8, 0.65); }
.ticket-stub {
  width: 110px;
  padding: 16px 12px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
  text-align: center;
  border-left: 2px dashed rgba(43, 34, 8, 0.35);
}
.ticket-stub .mono { font-size: 8px; letter-spacing: 2px; color: rgba(43, 34, 8, 0.75); }
.ticket-soon { font-weight: 700; font-size: 14px; line-height: 1.2; }
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  right: 103px;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--bg);
}
.ticket::before { top: -9px; }
.ticket::after { bottom: -9px; }

.claim-h { font-weight: 700; font-size: 23px; letter-spacing: -0.4px; margin: 0 0 7px; }
.benefits { list-style: none; padding: 0; margin: 16px 0 18px; display: flex; flex-direction: column; gap: 9px; }
.benefits li { display: flex; gap: 12px; align-items: baseline; font-size: 13.5px; font-weight: 600; }
.benefits .mono { font-size: 10px; }

.capture { display: flex; flex-direction: column; gap: 8px; }
.fld-label { font-size: 9.5px; letter-spacing: 1.5px; color: var(--mono); margin-top: 6px; }
.capture input[type=text], .capture input[type=email], .capture input[type=date] {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 13px 14px;
  font-family: var(--mono-font);
  font-size: 13px;
  width: 100%;
}
.capture input[type=date] { min-height: 46px; }
.capture input.error { border-color: #c2262e; }
.email-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.email-row input { flex: 1; min-width: 180px; }
.email-row .btn { width: auto; padding: 13px 20px; font-size: 14.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-turnstile:empty { display: none; }

.err-msg { color: #c2262e; font-size: 13px; margin: 12px 0 0; }
.done-msg { color: var(--accent); font-weight: 600; font-size: 14px; margin: 12px 0 0; }
.claim-links { margin-top: 16px; font-size: 10.5px; color: var(--mono); }

/* ---------- noscript ---------- */
.noscript {
  max-width: 640px;
  margin: 40px auto;
  padding: 20px 24px;
  border: 1px solid var(--line);
  color: var(--sub);
  font-family: var(--font);
}

/* ---------- responsive ----------
   Type is fluid via clamp() above; these tune spacing + grids per width. */
@media (max-width: 600px) {
  .wrap { padding: 22px 18px 26px; }
  .panels { gap: 10px; }
  .panel { min-width: 100%; }            /* radar + bars stack cleanly */
}

@media (max-width: 480px) {
  .opts.fmt-grid { grid-template-columns: 1fr; }
  .multi-grid { grid-template-columns: 1fr 1fr; }
  .age-grid { grid-template-columns: 1fr 1fr; }
  .email-row .btn { width: 100%; }        /* claim button on its own row */
  .ticks { gap: 2px; margin-bottom: 26px; }
}

@media (max-width: 360px) {
  .wrap { padding: 18px 14px 22px; }
  .ticket-brand { letter-spacing: 4px; }
  .ticket-stub { width: 94px; }
  .ticket::before, .ticket::after { right: 87px; }
}
