/*
 * Magic Multi v2 — the design system as CSS.
 *
 * Everything from the first rule down to the spinner keyframes is the <style>
 * block of V2/style-guide.html (lines 12–503) copied verbatim, minus the
 * classes that only exist to lay the guide itself out (.page, .section-label,
 * colour swatches, type rows, badge/achievement cards, the icon grid). Do not
 * restyle a component here — change the guide first, then re-copy. Never
 * redefine a token.
 *
 * The block at the bottom, "App additions", is the only part that is not in
 * the guide: page-level layout, the age gate and conjuring overlays, the
 * fixed mobile tab bar, focus rings and reduced-motion.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:        #0d9488;
  --teal-dark:   #0a6e64;
  --teal-tint:   #e6f7f5;
  --purple:      #7c3aed;
  --purple-dark: #5b21b6;
  --purple-tint: #f3e8ff;
  --black:       #040500;
  --white:       #ffffff;
  --win:         #166534;
  --lose:        #b61e33;
  --warn:        #d97706;
  --text-muted:  rgba(4,5,0,0.6);
  --text-on-purple: rgba(255,255,255,0.85); /* 4.53:1 on --purple (0.75 was 3.89, under AA) — P10.2 */
  --border:      rgba(4,5,0,0.1);
}

body {
  background: var(--purple);
  font-family: 'Inter', sans-serif;
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */

.t-display  { font-family: 'Outfit', sans-serif; font-size: 48px; font-weight: 900; letter-spacing: -2px; line-height: 1; text-transform: uppercase; }
.t-h1       { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 900; letter-spacing: -1px; text-transform: uppercase; }
.t-h2       { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.t-h3       { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.t-label    { font-family: 'Inter', sans-serif;  font-size: 10px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; }
.t-body     { font-family: 'Inter', sans-serif;  font-size: 16px; font-weight: 600; line-height: 1.5; }
.t-small    { font-family: 'Inter', sans-serif;  font-size: 12px; font-weight: 600; color: var(--text-muted); }
.t-odds     { font-family: 'Outfit', sans-serif; font-size: 100px; font-weight: 900; color: var(--white); line-height: 1; letter-spacing: -3px; }
.t-price    { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 900; color: var(--teal); letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }

/* ── Buttons ── */
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 16px; letter-spacing: 1px; text-transform: uppercase;
  padding: 16px 32px; border-radius: 30px; cursor: pointer; border: none; text-decoration: none;
  transition: transform 80ms ease, box-shadow 80ms ease;
  box-shadow: 0 4px 0 var(--black);
  position: relative; top: 0;
}
.btn:active { top: 4px; box-shadow: 0 0 0 var(--black); }
.btn-primary { background: var(--teal); color: var(--white); border: 3px solid var(--black); }
.btn-accent { background: var(--purple); color: var(--white); border: 3px solid var(--black); }
.btn-secondary { background: var(--white); color: var(--black); border: 3px solid var(--black); }
.btn-dark { background: var(--black); color: var(--white); border: 3px solid var(--black); }
.btn-ghost { background: transparent; color: var(--white); border: 3px solid var(--black); box-shadow: none; }
.btn-ghost-dark { background: transparent; color: var(--black); border: 3px solid var(--black); box-shadow: none; }
.btn-sm { padding: 10px 22px; font-size: 13px; border-radius: 20px; }
.btn-pill { border-radius: 50px; }
.btn-block { width: 100%; justify-content: center; }
.btn-disabled { background: rgba(4,5,0,0.15); color: rgba(4,5,0,0.3); border: 3px solid rgba(4,5,0,0.15); box-shadow: none; cursor: not-allowed; pointer-events: none; }
.btn-disabled-on-purple { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.4); border: 3px solid rgba(255,255,255,0.15); box-shadow: none; cursor: not-allowed; pointer-events: none; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: 24px;
  border: 3px solid var(--black);
  padding: 24px;
  box-shadow: 8px 8px 0 var(--black);
}
.card-purple {
  background: var(--purple);
  color: var(--white);
  border-radius: 24px;
  border: 3px solid var(--black);
  padding: 24px;
  box-shadow: 8px 8px 0 var(--black);
}
.card-teal {
  background: var(--teal);
  color: var(--white);
  border-radius: 24px;
  border: 3px solid var(--black);
  padding: 24px;
  box-shadow: 8px 8px 0 var(--black);
}
.card-dark {
  background: var(--black);
  color: var(--white);
  border-radius: 24px;
  border: 3px solid var(--black);
  padding: 24px;
  box-shadow: 8px 8px 0 rgba(4,5,0,0.3);
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* ── Menu Items (mode cards) ── */
.menu-list { display: flex; flex-direction: column; gap: 10px; }
.menu-item {
  background: var(--teal);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer;
  border: 3px solid var(--black);
  box-shadow: 0 4px 0 var(--black);
  transition: transform 80ms, box-shadow 80ms;
}
.menu-item:active { transform: translateY(4px); box-shadow: 0 0 0 var(--black); }
.menu-item-hero { background: var(--white); border-width: 4px; box-shadow: 0 6px 0 var(--black); padding: 22px 20px; }
.menu-item-hero .menu-icon { background: var(--purple); border: 2px solid var(--black); }
.menu-item-hero .menu-title { color: var(--black); font-size: 22px; letter-spacing: -0.5px; }
.menu-item-hero .menu-subtitle { color: var(--text-muted); }
.menu-item-hero .menu-chevron { color: var(--black); }
.menu-item-disabled { background: rgba(255,255,255,0.12); box-shadow: none; cursor: not-allowed; border-color: rgba(4,5,0,0.4); }
.menu-icon {
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.menu-text { flex: 1; }
.menu-title { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 900; color: var(--white); letter-spacing: 0.5px; }
.menu-subtitle { font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.85); margin-top: 2px; }
.menu-chevron { color: rgba(255,255,255,0.6); }
.menu-title-disabled { color: rgba(255,255,255,0.4); }
.menu-subtitle-disabled { color: rgba(255,255,255,0.3); }
.menu-icon-disabled { background: rgba(255,255,255,0.08); }
.menu-tag { font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; padding: 4px 9px; border-radius: 8px; background: var(--white); color: var(--purple); border: 2px solid var(--black); }
.menu-group-label { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--text-on-purple); margin: 18px 0 8px 4px; }

/* ── Tab Bar ── */
.tabbar {
  background: var(--purple);
  display: flex; align-items: stretch; gap: 6px;
  padding: 8px;
  border-radius: 0 0 20px 20px;
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 4px 10px; gap: 4px; cursor: pointer; border-radius: 14px;
  color: var(--white);
}
.tab-item.active { background: var(--teal); border: 2px solid var(--black); box-shadow: 0 3px 0 var(--black); }
.tab-label { font-size: 10px; font-weight: 900; letter-spacing: 0.5px; color: var(--white); font-family: 'Outfit', sans-serif; text-transform: uppercase; }

/* ── Top Nav (web) ── */
.topnav {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--black);
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topnav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.topnav-link { font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; padding: 8px 14px; border-radius: 12px; color: var(--black); cursor: pointer; }
.topnav-link.active { background: var(--teal); color: var(--white); border: 2px solid var(--black); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--purple); border: 2.5px solid var(--black); display: flex; align-items: center; justify-content: center; box-shadow: 2px 2px 0 var(--black); }
.wordmark-text { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 900; letter-spacing: -0.5px; text-transform: uppercase; line-height: 1; }
.wordmark-text span { color: var(--teal-dark); } /* 6.13:1 on white; --teal is 3.74 at 18px — P10.2 */

/* ── Segmented Toggle ── */
.segmented {
  display: inline-flex; gap: 4px; padding: 5px;
  background: var(--white); border: 3px solid var(--black); border-radius: 18px;
  box-shadow: 4px 4px 0 var(--black);
}
.seg-item { font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; padding: 10px 18px; border-radius: 12px; color: var(--black); cursor: pointer; }
.seg-item.active { background: var(--teal); color: var(--white); border: 2px solid var(--black); }
.seg-item.active-purple { background: var(--purple); color: var(--white); border: 2px solid var(--black); }

/* ── Chips ── */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 800;
  padding: 8px 14px; border-radius: 999px;
  background: var(--white); border: 2px solid var(--black); color: var(--black);
  cursor: pointer; box-shadow: 2px 2px 0 var(--black);
}
.chip.sel { background: var(--teal); color: var(--white); }
.chip.sel-purple { background: var(--purple); color: var(--white); }
.chip.count { background: var(--purple-tint); color: var(--purple-dark); }
.chip-remove { width: 16px; height: 16px; border-radius: 8px; background: rgba(255,255,255,0.3); display: inline-flex; align-items: center; justify-content: center; }

/* ── Odds Chips ── */
.odds-chip {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums;
  min-width: 64px; padding: 8px 12px; border-radius: 12px;
  background: var(--white); border: 2px solid var(--black); color: var(--black);
  box-shadow: 2px 2px 0 var(--black);
}
.odds-chip.fav { background: var(--teal); color: var(--white); }
.odds-chip.long { background: var(--purple); color: var(--white); }
.odds-chip.up { background: var(--teal-tint); color: var(--win); }
.odds-chip.down { background: #fde8ec; color: var(--lose); }
.odds-chip.big { font-size: 22px; min-width: 96px; padding: 10px 16px; border-radius: 14px; border-width: 3px; box-shadow: 3px 3px 0 var(--black); }

/* ── Odds Band (range slider) ── */
.band { position: relative; height: 14px; border-radius: 7px; background: rgba(4,5,0,0.1); border: 2px solid var(--black); margin: 44px 12px 8px; }
.band-fill { position: absolute; top: -2px; bottom: -2px; border-radius: 7px; background: var(--teal); border: 2px solid var(--black); }
.band-knob { position: absolute; top: 50%; width: 30px; height: 30px; border-radius: 15px; background: var(--white); border: 3px solid var(--black); box-shadow: 2px 2px 0 var(--black); transform: translate(-50%,-50%); cursor: grab; }
.band-knob-label { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 900; background: var(--black); color: var(--white); padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.band-scale { display: flex; justify-content: space-between; margin: 0 12px; font-size: 10px; font-weight: 800; color: var(--text-muted); font-family: monospace; }

/* ── Spice Dial ── */
.spice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.spice {
  background: var(--white); border: 3px solid var(--black); border-radius: 16px; padding: 14px 12px;
  text-align: center; cursor: pointer; box-shadow: 4px 4px 0 var(--black);
}
.spice.sel { background: var(--purple); color: var(--white); }
.spice.sel .spice-band { color: rgba(255,255,255,0.75); }
.spice-name { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.spice-band { font-size: 11px; font-weight: 800; color: var(--text-muted); font-family: monospace; margin-top: 4px; }
.spice-flames { font-size: 16px; margin-bottom: 4px; letter-spacing: -2px; }

/* ── Choice list (wizard single-select) ── */
.option-list { display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.option-btn {
  background: var(--teal);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  border: 2px solid rgba(0,0,0,0.1);
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0,0,0,0.15);
}
.option-btn.selected { background: var(--purple); border: 2px solid var(--black); box-shadow: 0 3px 0 var(--black); }
.option-btn.dimmed { background: var(--teal-dark); } /* no opacity: these stay clickable, and 0.55 put the label at 3.27:1 — P10.2 */
.option-letter {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.2);
  margin-right: 4px;
  font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 900; color: var(--white);
}
.option-text { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 800; color: var(--white); flex: 1; }
.option-sub { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.85); display: block; margin-top: 2px; font-family: monospace; }

/* ── Bet Slip ── */
.slip { background: var(--white); border: 3px solid var(--black); border-radius: 24px; box-shadow: 8px 8px 0 var(--black); overflow: hidden; max-width: 460px; }
.slip-head { background: var(--purple); color: var(--white); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--black); }
.slip-mode { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; }
.slip-meta { font-size: 11px; font-weight: 800; color: var(--text-on-purple); margin-top: 2px; }
.leg { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.leg-num { width: 28px; height: 28px; border-radius: 9px; background: var(--teal); color: var(--white); border: 2px solid var(--black); display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 13px; flex-shrink: 0; }
.leg-body { flex: 1; min-width: 0; }
.leg-pick { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 900; color: var(--black); line-height: 1.2; }
.leg-market { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-top: 2px; }
.leg-event { font-size: 11px; font-weight: 800; color: var(--purple-dark); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.leg-price { font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 900; color: var(--black); font-variant-numeric: tabular-nums; }
.leg-group { margin: 10px 20px; border: 2px solid var(--black); border-radius: 16px; overflow: hidden; background: var(--teal-tint); }
.leg-group-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--teal); color: var(--white); border-bottom: 2px solid var(--black); }
.leg-group-title { font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.leg-group .leg { padding: 10px 14px; border-bottom: 1px solid rgba(4,5,0,0.08); }
.leg-group .leg:last-child { border-bottom: none; }
.leg-group .leg-num { width: 22px; height: 22px; font-size: 11px; border-radius: 7px; background: var(--white); color: var(--black); }
.slip-total { display: flex; align-items: flex-end; justify-content: space-between; padding: 18px 20px 6px; }
.slip-total-label { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.slip-total-odds { font-family: 'Outfit', sans-serif; font-size: 40px; font-weight: 900; color: var(--teal); line-height: 1; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.slip-return { text-align: right; }
.slip-return-val { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 900; color: var(--purple); line-height: 1; letter-spacing: -0.5px; }
.slip-actions { padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.slip-foot { padding: 10px 20px 14px; display: flex; gap: 8px; align-items: center; font-size: 11px; font-weight: 700; color: var(--text-muted); border-top: 1px solid var(--border); }

/* ── Pricing tags / status pills ── */
.tag { display: inline-flex; align-items: center; gap: 5px; font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; padding: 5px 10px; border-radius: 8px; border: 2px solid var(--black); }
.tag-exact { background: var(--teal); color: var(--white); }
.tag-quoted { background: var(--purple-tint); color: var(--purple-dark); }
.tag-live { background: var(--win); color: var(--white); }
.tag-offline { background: var(--lose); color: var(--white); }
.tag-stale { background: #fff4e0; color: var(--warn); }
.tag-sgm { background: var(--white); color: var(--teal-dark); }
.tag-srm { background: var(--white); color: var(--purple-dark); }

/* ── Notices / Banners / Toasts ── */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 3px solid var(--black); box-shadow: 4px 4px 0 var(--black); background: var(--white); }
.notice-icon { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--black); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notice-title { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; }
.notice-body { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.notice-warn .notice-icon { background: #fff4e0; color: var(--warn); }
.notice-error { background: var(--lose); color: var(--white); }
.notice-error .notice-icon { background: rgba(255,255,255,0.2); color: var(--white); }
.notice-error .notice-body { color: rgba(255,255,255,0.8); }
.notice-info .notice-icon { background: var(--purple-tint); color: var(--purple); }
.notice-success .notice-icon { background: var(--teal-tint); color: var(--teal-dark); }
.toast { display: inline-flex; align-items: center; gap: 10px; background: var(--black); color: var(--white); padding: 12px 18px; border-radius: 14px; border: 3px solid var(--black); font-weight: 800; font-size: 13px; box-shadow: 4px 4px 0 rgba(4,5,0,0.3); }
.toast.ok { background: var(--teal); }
.toast.bad { background: var(--lose); }

/* ── Wizard stepper ── */
.stepper { display: flex; align-items: center; gap: 8px; }
.step-dot { flex: 1; height: 10px; border-radius: 5px; background: rgba(4,5,0,0.12); border: 2px solid var(--black); }
.step-dot.done { background: var(--teal); }
.step-dot.now { background: var(--purple); }
.step-count { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.step-q { font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 900; letter-spacing: -1px; text-transform: uppercase; line-height: 1.05; margin-bottom: 4px; }
.step-hint { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 18px; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }

/* ── Form inputs ── */
.field-label { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; color: var(--black); margin-bottom: 6px; display: block; }
.input { width: 100%; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; padding: 13px 16px; border-radius: 14px; border: 3px solid var(--black); background: var(--white); color: var(--black); box-shadow: 3px 3px 0 var(--black); outline: none; }
.input:focus { border-color: var(--teal); box-shadow: 3px 3px 0 var(--teal-dark); }
.input-wrap { position: relative; }
.input-prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 16px; color: var(--text-muted); }
.input.has-prefix { padding-left: 34px; }
.stepper-input { display: inline-flex; align-items: stretch; border: 3px solid var(--black); border-radius: 14px; background: var(--white); box-shadow: 3px 3px 0 var(--black); overflow: hidden; }
.stepper-btn { width: 44px; display: flex; align-items: center; justify-content: center; background: var(--teal); color: var(--white); cursor: pointer; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 20px; }
.stepper-btn:first-child { border-right: 3px solid var(--black); }
.stepper-btn:last-child { border-left: 3px solid var(--black); }
.stepper-val { min-width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 10px; }
.stepper-val b { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 900; line-height: 1; }
.stepper-val span { font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch-track { width: 52px; height: 30px; border-radius: 15px; background: rgba(4,5,0,0.15); border: 3px solid var(--black); position: relative; transition: background 120ms; }
.switch-knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 10px; background: var(--white); border: 2px solid var(--black); transition: left 120ms; }
.switch.on .switch-track { background: var(--teal); }
.switch.on .switch-knob { left: 24px; }
.switch-label { font-size: 13px; font-weight: 800; }
.select { appearance: none; -webkit-appearance: none; background-image: none; padding-right: 40px; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap > i, .select-wrap > svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.checkbox-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.checkbox-row:last-child { border-bottom: none; }
.checkbox { width: 24px; height: 24px; border-radius: 7px; border: 3px solid var(--black); background: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checkbox.on { background: var(--teal); }
.checkbox-text { flex: 1; font-size: 14px; font-weight: 800; }
.checkbox-count { font-size: 11px; font-weight: 800; color: var(--text-muted); font-family: monospace; }

/* ── Hero (the $1 → $1M moment) ── */
.hero { background: var(--white); border: 4px solid var(--black); border-radius: 28px; box-shadow: 10px 10px 0 var(--black); padding: 28px 24px; text-align: center; max-width: 460px; }
.hero-kicker { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 900; letter-spacing: 3px; text-transform: uppercase; color: var(--purple); }
.hero-number { font-family: 'Outfit', sans-serif; font-size: 72px; font-weight: 900; letter-spacing: -3px; line-height: 1; color: var(--black); margin: 8px 0 2px; }
.hero-number small { font-size: 28px; letter-spacing: -1px; color: var(--teal); vertical-align: top; margin-top: 8px; display: inline-block; }
.hero-sub { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 20px; }

/* ── Spacing ── */

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ── Skeleton ── */
.skeleton {
  background: rgba(4,5,0,0.1);
  border-radius: 12px;
  height: 60px;
  animation: shimmer 1.2s ease-in-out infinite;
}
@keyframes shimmer {
  0%,100% { opacity: 0.5; } 50% { opacity: 1; }
}
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 4px solid rgba(4,5,0,0.15); border-top-color: var(--teal); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════
   App additions — not in the style guide
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Page layout ── */
html { scroll-padding-top: 96px; } /* scrollIntoView() clears the sticky nav */
[hidden] { display: none !important; } /* author display rules must not beat the hidden attribute */
.container { max-width: 480px; margin: 0 auto; padding: 16px; }
@media (min-width: 900px) { .container { max-width: 960px; } }
.container-narrow { max-width: 480px; }
main { display: block; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; }
.center { text-align: center; }
.on-purple { color: var(--white); }
.on-purple-muted { color: var(--text-on-purple); }
a { color: inherit; }
.link { color: var(--teal-dark); font-weight: 800; text-decoration: underline; }
.on-purple .link, .on-purple-muted .link, .footer .link { color: var(--white); }
button.btn, .btn { font: inherit; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
button.menu-item { width: 100%; text-align: left; font: inherit; color: inherit; }
button.menu-item .menu-title, button.menu-item .menu-subtitle { text-align: left; }
.menu-item-hero .menu-tag { background: var(--purple); color: var(--white); }
.menu-item[aria-disabled="true"] { pointer-events: none; }
.btn-secondary.btn-sm { box-shadow: 0 3px 0 var(--black); }
.topnav a.topnav-link { text-decoration: none; }
.topnav .wordmark { text-decoration: none; color: var(--black); }
.topnav-sticky { position: sticky; top: 0; z-index: 20; margin-bottom: 20px; }
@media (max-width: 480px) {
  .topnav { padding: 10px 12px; gap: 10px; }
  .topnav-links { gap: 2px; }
  .topnav-link { padding: 8px 9px; font-size: 11px; letter-spacing: 0.5px; }
}
.page-head { margin: 8px 0 20px; }
.page-head h1 { font-family: 'Outfit', sans-serif; font-size: 34px; font-weight: 900; letter-spacing: -1.5px; text-transform: uppercase; color: var(--white); line-height: 1; }
.page-head p { font-size: 14px; font-weight: 600; color: var(--text-on-purple); margin-top: 6px; }
.card > .t-h3 + .t-body, .card p + p { margin-top: 8px; }
.card .t-body { color: var(--black); }
.prose h2 { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase; margin: 22px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 15px; font-weight: 600; line-height: 1.55; }
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 20px; margin-top: 8px; }
.prose li + li { margin-top: 4px; }

/* ── Skip link + screen-reader-only ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--black); color: var(--white); padding: 10px 16px; border-radius: 12px; font-weight: 900; font-family: 'Outfit', sans-serif; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; }
.skip-link:focus { top: 16px; }

/* ── Focus + motion ── */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.btn-primary:focus-visible, .menu-item:focus-visible { outline-color: var(--white); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── Footer (every page) ── */
.footer { margin-top: 40px; padding: 24px 0 32px; text-align: center; color: var(--text-on-purple); font-size: 12px; font-weight: 700; line-height: 1.6; }
.footer .rg { color: var(--white); font-weight: 900; font-family: 'Outfit', sans-serif; letter-spacing: 0.5px; font-size: 13px; }
.footer .rg a { color: var(--white); }
.footer-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.footer-links a { color: var(--white); text-decoration: none; border-bottom: 2px solid rgba(255,255,255,0.4); }
.slip-rg { padding: 0 20px 16px; font-size: 11px; font-weight: 800; color: var(--black); text-align: center; }

/* ── Age gate overlay ── */
.age-gate { position: fixed; inset: 0; z-index: 1000; background: rgba(4,5,0,0.85); display: flex; align-items: center; justify-content: center; padding: 16px; }
.age-gate .card { max-width: 380px; width: 100%; text-align: center; }
.age-gate .card .wiz { width: 96px; height: 96px; margin: 0 auto 10px; display: block; }
.age-gate .age-q { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 900; letter-spacing: -0.5px; text-transform: uppercase; line-height: 1.05; }
.age-gate .age-sub { font-size: 12px; font-weight: 700; color: var(--text-muted); margin: 8px 0 18px; line-height: 1.5; }
.age-gate .age-actions { display: flex; gap: 10px; }
.age-gate .age-actions .btn { flex: 1; justify-content: center; }
html.mm-gated body { overflow: hidden; }

/* ── Conjuring overlay ── */
.conjure { position: fixed; inset: 0; z-index: 900; background: rgba(4,5,0,0.85); display: flex; align-items: center; justify-content: center; padding: 16px; }
.conjure .card { max-width: 360px; width: 100%; text-align: center; }
.conjure .wiz { width: 140px; height: 140px; margin: 0 auto 8px; display: block; }
.conjure-title { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 900; letter-spacing: -0.5px; text-transform: uppercase; }
.conjure-bar { height: 18px; border-radius: 9px; border: 3px solid var(--black); background: rgba(4,5,0,0.1); overflow: hidden; margin-top: 16px; }
.conjure-fill { height: 100%; width: 0%; background: var(--teal); border-right: 3px solid var(--black); transition: width 120ms linear; }

/* ── Fixed mobile tab bar ── */
.tabbar-fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-radius: 20px 20px 0 0; box-shadow: 0 -4px 0 var(--black); padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
.tabbar-fixed .tab-item { text-decoration: none; }
body.has-tabbar { padding-bottom: 96px; }
@media (min-width: 900px) { .tabbar-fixed { display: none; } body.has-tabbar { padding-bottom: 0; } }

/* ── Toast host ── */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
body.has-tabbar .toast-host { bottom: 104px; }
.toast-host .toast { animation: toast-in 160ms ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Wizard art ── */
.wiz { max-width: 100%; height: auto; }
.wiz-hero { width: 180px; height: 180px; margin: 0 auto; display: block; }

/* ── Settings / dashboard nav items (style guide §04, inside a white card) ── */
.nav-list { padding: 0; overflow: hidden; }
.nav-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; width: 100%; background: none; border: 0; font: inherit; color: inherit; text-align: left; text-decoration: none; }
a.nav-item, button.nav-item { cursor: pointer; }
a.nav-item:hover, button.nav-item:hover { background: var(--purple-tint); }
.nav-item:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.nav-main { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
.nav-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--teal); border: 1.5px solid var(--black); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--white); }
.nav-icon-purple { background: var(--purple); }
.nav-icon-black { background: var(--black); }
.nav-icon-lose { background: var(--lose); }
.nav-text { min-width: 0; }
.nav-title { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.nav-sub { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-top: 2px; overflow-wrap: anywhere; }
.nav-chevron { color: var(--black); flex-shrink: 0; }
.nav-sep { height: 1px; background: rgba(0,0,0,0.05); margin: 0 20px; }
.nav-body { padding: 0 20px 18px; }
.nav-body + .nav-sep { margin-top: 0; }

/* ── Admin tables (denser than the product pages) ── */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; font-weight: 600; }
.admin-table th { text-align: left; font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); padding: 8px 10px; border-bottom: 2px solid var(--black); }
.admin-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table td.num { font-variant-numeric: tabular-nums; text-align: right; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.stat { background: var(--white); border: 3px solid var(--black); border-radius: 16px; padding: 12px 14px; box-shadow: 4px 4px 0 var(--black); }
.stat-label { font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.stat-value { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 900; letter-spacing: -1px; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ── Slip additions (outcomes, result region) ── */
.leg-outcome { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--black); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--white); }
.leg-outcome-won { background: var(--win); }
.leg-outcome-lost { background: var(--lose); }
.leg-outcome-void { background: rgba(4,5,0,0.3); }
.leg-lost .leg-pick { text-decoration: line-through; color: var(--text-muted); }
.leg-outcome-pending { background: var(--white); color: var(--black); font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 16px; line-height: 1; }
.slip .slip-rg { padding: 0 20px 16px; }
.slip-actions[hidden] { display: none; }

/* ── Bet status pills (history) ── */
.tag-won { background: var(--win); color: var(--white); }
.tag-lost { background: var(--lose); color: var(--white); }
.tag-pending { background: var(--white); color: var(--purple-dark); }
.tag-void { background: rgba(4,5,0,0.12); color: var(--black); }

/* ── History rows: a compact slip head that opens to the legs ── */
.hist-list { display: flex; flex-direction: column; gap: 12px; }
.hist-row { background: var(--white); border: 3px solid var(--black); border-radius: 20px; box-shadow: 6px 6px 0 var(--black); overflow: hidden; }
.hist-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; background: var(--white); border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.hist-head:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.hist-row.open .hist-head { border-bottom: 3px solid var(--black); }
.hist-text { flex: 1; min-width: 0; }
.hist-title { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-sub { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-top: 3px; }
.hist-odds { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 900; color: var(--teal); letter-spacing: -0.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hist-chevron { color: var(--black); transition: transform 120ms; flex-shrink: 0; }
.hist-row.open .hist-chevron { transform: rotate(180deg); }
.hist-body { padding: 12px; background: var(--purple-tint); }
.hist-body .slip { box-shadow: none; border-width: 2px; }
.hist-controls { display: flex; flex-direction: column; gap: 12px; }
.hist-controls .segmented { display: flex; }
.hist-controls .seg-item { flex: 1; text-align: center; padding: 10px 6px; }
@media (min-width: 600px) { .hist-controls { flex-direction: row; align-items: center; justify-content: space-between; } .hist-controls .segmented { display: inline-flex; } .hist-controls .seg-item { flex: none; padding: 10px 18px; } }
.hist-count { font-size: 12px; font-weight: 800; color: var(--text-on-purple); }

/* ── Builder & Wizard controls (P9): buttons that wear the guide's classes ── */
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.option-list.full { max-width: none; }
.option-btn { width: 100%; text-align: left; font: inherit; }
.option-btn:disabled { cursor: not-allowed; }
.option-btn:focus-visible, .chip:focus-visible, .switch-btn:focus-visible, .checkbox-row:focus-visible, .stepper-btn:focus-visible, .band-knob:focus-visible, .seg-item:focus-visible, .picker-twist:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.chip { font: inherit; font-size: 13px; font-weight: 800; }
.chip:disabled { opacity: 0.5; cursor: not-allowed; }
.switch-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.switch-row { display: flex; flex-direction: column; gap: 4px; }
.switch-sub { padding-left: 62px; }
.stepper-btn { border: 0; font: inherit; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 20px; }
.stepper-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper-val:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.band-wrap { padding-top: 4px; }
.band-knob { padding: 0; font: inherit; touch-action: none; }
.band-knob.dragging { cursor: grabbing; }
.band-tier { margin-top: 10px; font-weight: 800; color: var(--text-muted); font-family: monospace; }
.checkbox.some { background: var(--purple); }
.checkbox-row { background: none; border: 0; border-bottom: 1px solid var(--border); width: 100%; text-align: left; font: inherit; }
.checkbox-row:last-child { border-bottom: none; }
.picker { padding: 12px 18px; }
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.picker-summary { font-weight: 800; }
.picker-list { margin-top: 4px; }
.picker-row { display: flex; align-items: center; gap: 4px; }
.picker-row .checkbox-row { flex: 1; min-width: 0; }
.picker-twist { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--black); border-radius: 10px; }
.picker-kids { padding-left: 36px; border-left: 3px solid var(--teal-tint); margin: 0 0 6px 10px; }
.picker-kids .checkbox-row { padding: 9px 0; }
.picker-kids .checkbox-text { font-size: 13px; font-weight: 700; }
.field { display: flex; flex-direction: column; }
.field-help { margin-top: 6px; }
.field-error { margin-top: 8px; }
.form-card { display: flex; flex-direction: column; gap: 16px; }
.form-card > .card-title { font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.form-card .t-small { color: var(--text-muted); font-weight: 600; }
.segmented.full { display: flex; }
.segmented.full .seg-item { flex: 1; text-align: center; padding: 10px 6px; }
.seg-item { border: 2px solid transparent; background: none; font: inherit; font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
details.adv { border: 3px solid var(--black); border-radius: 20px; background: var(--white); box-shadow: 5px 5px 0 var(--black); }
details.adv > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; display: flex; align-items: center; justify-content: space-between; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv[open] > summary { border-bottom: 3px solid var(--black); }
details.adv > .adv-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.event-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding: 2px; }
.event-btn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--white); border: 3px solid var(--black); border-radius: 16px; padding: 12px 14px; font: inherit; cursor: pointer; box-shadow: 3px 3px 0 var(--black); }
.event-btn.selected { background: var(--purple); color: var(--white); }
.event-btn .event-name { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.15; }
.event-btn .event-sub { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-top: 3px; }
.event-btn.selected .event-sub { color: rgba(255,255,255,0.75); }
.event-btn .event-count { margin-left: auto; font-family: monospace; font-size: 11px; font-weight: 800; white-space: nowrap; }
.wizard-card .step-q { font-size: 24px; }
@media (min-width: 600px) { .wizard-card .step-q { font-size: 28px; } }
