/* War Eagle Pledge — design system
   Brand: navy #002B5C, dark #101E2F, orange #F26522 (auburntigers.com live values).
   Oswald uppercase for display/nav/buttons, Inter for body. */

:root {
  --bg: #0A1628;
  --bg-2: #0E1F37;
  --surface: #122844;
  --surface-2: #173255;
  --surface-3: #1D3C64;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --navy: #002B5C;
  --navy-deep: #101E2F;
  --orange: #F26522;
  --orange-2: #FF7B3A;
  --orange-soft: rgba(242, 101, 34, .14);
  --on-orange: #0A1628;
  --text: #F3F6FA;
  --muted: #A9B8CC;
  --faint: #7489A6;
  --live: #00B2FF;
  --good: #2FD98E;
  --good-soft: rgba(47, 217, 142, .13);
  --bad: #FF6464;
  --bad-soft: rgba(255, 100, 100, .12);
  --gold: #FFC24A;

  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  --topbar-h: 68px;
  --tabbar-h: 0px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
main { flex: 1; outline: none; }
h1, h2, h3, h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; margin: 0; font-weight: 700; }
h1 { font-size: clamp(34px, 6vw, 64px); }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }
.orange { color: var(--orange); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: var(--on-orange); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 8px; }

.demo-bar {
  background: repeating-linear-gradient(135deg, var(--navy-deep) 0 14px, #0c1a2b 14px 28px);
  color: var(--muted); font-size: 12px; text-align: center; padding: 6px 12px; letter-spacing: .02em;
  border-bottom: 1px solid var(--line);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
.section-tight { padding: 28px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head .link { font-family: var(--font-display); text-transform: uppercase; font-size: 14px; letter-spacing: .06em; color: var(--orange); display: inline-flex; gap: 6px; align-items: center; }
.section-head .link:hover { color: var(--orange-2); }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 500; color: var(--orange); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 22px; height: 3px; background: var(--orange); border-radius: 2px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap-row { flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(0, 43, 92, .96);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.topbar-inner { height: var(--topbar-h); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; }
.brand-name { font-family: var(--font-display); text-transform: uppercase; line-height: 1; }
.brand-name b { display: block; font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.brand-name span { display: block; font-size: 11px; letter-spacing: .28em; color: var(--orange); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 2px; height: 100%; }
.nav > a, .nav > .dd > button {
  font-family: var(--font-display); text-transform: uppercase; font-size: 15px; letter-spacing: .05em; font-weight: 500;
  padding: 0 12px; height: var(--topbar-h); display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.86);
  position: relative;
}
.nav > a:hover, .nav > .dd > button:hover { color: #fff; }
.nav > a.is-active { color: #fff; }
.nav > a.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -3px; height: 3px; background: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pts-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(0,0,0,.25); border: 1px solid var(--line-2);
}
.pts-chip .coin { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb07f, var(--orange) 60%, #b8430d); display: grid; place-items: center; font: 700 11px var(--font-display); color: var(--on-orange); }
.pts-chip b { font-family: var(--font-display); font-size: 17px; letter-spacing: .02em; }
.pts-chip small { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; line-height: 1; }
.slip-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--orange); color: var(--on-orange); font: 600 14px var(--font-display); text-transform: uppercase; letter-spacing: .06em;
  transition: transform .15s var(--ease), background .15s;
}
.slip-btn:hover { background: var(--orange-2); }
.slip-btn .count { background: var(--on-orange); color: #fff; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; padding: 0 6px; }
.slip-btn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.12); } }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange), #c24a0f); color: var(--on-orange);
  font: 700 15px var(--font-display); border: 2px solid rgba(255,255,255,.85);
}
.avatar-lg { width: 84px; height: 84px; font-size: 32px; border-width: 3px; }
.avatar-muted { background: var(--surface-3); color: var(--text); border-color: var(--line-2); }

/* Sports mega dropdown */
.dd { position: relative; height: 100%; }
.dd-menu {
  position: absolute; top: calc(100% + 3px); left: -20px; width: 520px; display: none;
  background: var(--bg-2); border: 1px solid var(--line-2); border-top: 3px solid var(--orange);
  border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow-lg); padding: 20px; grid-template-columns: 1fr 1fr; gap: 18px;
}
.dd.open .dd-menu { display: grid; }
.dd-col h4 { font-size: 13px; letter-spacing: .14em; color: var(--orange); margin-bottom: 8px; font-weight: 500; }
.dd-col a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; font-weight: 500; font-size: 14px; }
.dd-col a:hover { background: var(--surface-2); }
.dd-col a small { color: var(--faint); font-weight: 500; }
.dd-caret { transition: transform .2s; }
.dd.open .dd-caret { transform: rotate(180deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 10px;
  font: 600 15px var(--font-display); text-transform: uppercase; letter-spacing: .07em;
  transition: background .15s, transform .12s var(--ease), border-color .15s, color .15s;
  white-space: nowrap; border: 2px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-2); }
.btn-navy { background: var(--navy); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-navy:hover { background: #033a7a; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--orange); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #ffe6d9; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 18px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.link-btn { color: var(--orange); font-weight: 600; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Chips / filters ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--muted);
  font: 500 14px var(--font-display); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
  transition: all .15s;
}
.chip:hover { color: #fff; border-color: rgba(242,101,34,.6); }
.chip.is-active { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px;
  font: 600 12px var(--font-display); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
  background: var(--surface-3); color: var(--text);
}
.badge-live { background: rgba(0,178,255,.16); color: var(--live); }
.badge-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,178,255,.7); } 70% { box-shadow: 0 0 0 8px rgba(0,178,255,0); } 100% { box-shadow: 0 0 0 0 rgba(0,178,255,0); } }
.badge-open { background: var(--orange-soft); color: var(--orange-2); }
.badge-closed { background: rgba(255,255,255,.07); color: var(--faint); }
.badge-hit { background: var(--good-soft); color: var(--good); }
.badge-miss { background: rgba(255,255,255,.07); color: var(--muted); }
.badge-won { background: rgba(255,194,74,.14); color: var(--gold); }
.badge-test { background: rgba(255,194,74,.14); color: var(--gold); }
.badge-home { background: var(--navy); color: #fff; }
.badge-away { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
.badge-final { background: rgba(255,255,255,.1); color: var(--text); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card-flush { padding: 0; overflow: hidden; }
.card-hover { transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.card-hover:hover { transform: translateY(-3px); border-color: rgba(242,101,34,.5); box-shadow: var(--shadow); }
.card-title { font-family: var(--font-display); text-transform: uppercase; font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.card-accent { border-top: 3px solid var(--orange); }
.media { position: relative; overflow: hidden; background: var(--navy-deep); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,40,0) 35%, rgba(10,22,40,.92) 100%); pointer-events: none; }
.media-169 { aspect-ratio: 16 / 9; }
.media-21 { aspect-ratio: 21 / 9; }
.media-45 { aspect-ratio: 4 / 5; }
.media-caption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; }

/* ---------- Stats ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font: 700 32px/1 var(--font-display); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.stat-label { font: 500 12px var(--font-display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.stat-sm .stat-value { font-size: 22px; }
.stat-row { display: flex; gap: 28px; flex-wrap: wrap; }

/* ---------- Progress ---------- */
.progress { height: 8px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-2)); border-radius: 99px; transition: width .4s var(--ease); }
.progress.warn > span { background: linear-gradient(90deg, #ffb24a, var(--bad)); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tab {
  font: 500 15px var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  padding: 12px 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab:hover { color: #fff; }
.tab.is-active { color: #fff; border-bottom-color: var(--orange); }
.tab .count { color: var(--faint); margin-left: 4px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font: 500 12px var(--font-display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.input, .select {
  height: 46px; padding: 0 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2);
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.input:focus, .select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.select {
  appearance: none; padding-right: 40px; cursor: pointer; font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F26522' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select option { background: var(--bg-2); }
.help { font-size: 12px; color: var(--faint); }
.error-text { font-size: 13px; color: var(--bad); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { font: 500 12px var(--font-display); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-deep); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,22,40,.95) 0%, rgba(10,22,40,.72) 45%, rgba(10,22,40,.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,22,40,0) 40%); }
.hero-inner { padding: 72px 0 64px; display: flex; flex-direction: column; gap: 18px; max-width: 700px; }
.hero h1 { font-size: clamp(44px, 8vw, 96px); line-height: .92; }
.hero h1 .o { color: var(--orange); }
.hero-sub { font-size: 18px; color: #d8e1ec; max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.page-hero { position: relative; overflow: hidden; background: var(--navy); isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero .hero-bg img { opacity: .35; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,43,92,.97), rgba(0,43,92,.7) 55%, rgba(0,43,92,.35)); }
.page-hero-inner { padding: 44px 0 36px; display: flex; flex-direction: column; gap: 10px; }
.page-hero p { color: #d3ddea; max-width: 640px; }

/* Tiger stripe accent */
.stripes { height: 8px; background: repeating-linear-gradient(-45deg, var(--orange) 0 10px, transparent 10px 20px); opacity: .9; }

/* ---------- Event cards ---------- */
.ev-card { display: flex; flex-direction: column; overflow: hidden; }
.ev-card .media { aspect-ratio: 16/8; }
.ev-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ev-teams { font: 700 22px/1.1 var(--font-display); text-transform: uppercase; }
.ev-teams .vs { color: var(--orange); font-weight: 500; font-size: 16px; margin: 0 6px; }
.ev-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 600; }
.countdown.urgent { color: var(--orange-2); }

/* Sport tag */
.sport-tag { font: 500 12px var(--font-display); text-transform: uppercase; letter-spacing: .12em; color: var(--orange); }

/* ---------- Prop markets ---------- */
.market { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.market-head { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.market-head h3 { font-size: 16px; letter-spacing: .06em; }
.prop { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.prop:last-child { border-bottom: 0; }
.prop-label { font-weight: 600; }
.prop-sub { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 3px; }
.mult { color: var(--gold); font-weight: 700; }
.pledge-btn {
  min-width: 132px; height: 52px; border-radius: 10px; padding: 0 14px;
  background: var(--bg-2); border: 1.5px solid var(--line-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  transition: all .15s var(--ease);
}
.pledge-btn .line { font: 700 16px var(--font-display); letter-spacing: .03em; }
.pledge-btn .pp { font-size: 11px; color: var(--orange-2); font-weight: 600; }
.pledge-btn:hover { border-color: var(--orange); background: var(--surface-3); }
.pledge-btn.is-selected { background: var(--orange); border-color: var(--orange); color: var(--on-orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.pledge-btn.is-selected .pp { color: var(--on-orange); }
.pledge-btn.is-locked { cursor: not-allowed; opacity: .5; background: repeating-linear-gradient(135deg, var(--bg-2) 0 8px, var(--surface) 8px 16px); }
.pledge-btn.is-locked:hover { border-color: var(--line-2); }

/* ---------- Pledge slip ---------- */
.slip {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; z-index: 60;
  background: var(--bg-2); border-left: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  transform: translateX(105%); transition: transform .32s var(--ease);
  display: flex; flex-direction: column;
}
.slip.open { transform: none; }
.slip-head { padding: 18px 20px; background: var(--navy); border-bottom: 3px solid var(--orange); display: flex; align-items: center; justify-content: space-between; }
.slip-head h2 { font-size: 22px; }
.slip-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.slip-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.slip-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.slip-item.closed { border-color: rgba(255,100,100,.5); }
.amt-chips { display: flex; gap: 6px; }
.amt-chips button { flex: 1; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); font: 600 14px var(--font-display); background: var(--bg-2); }
.amt-chips button:hover { border-color: var(--orange); }
.amt-chips button.is-active { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-2); }
.amt-input { display: flex; align-items: center; gap: 0; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); height: 34px; width: 84px; flex-shrink: 0; }
.amt-input span { padding-left: 10px; color: var(--muted); }
.amt-input input { width: 100%; background: none; border: 0; height: 100%; padding: 0 8px 0 2px; font-weight: 700; }
.amt-input input:focus { outline: none; }
.pts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pts-grid div { background: var(--bg-2); border-radius: 8px; padding: 7px 8px; }
.pts-grid b { display: block; font: 700 15px var(--font-display); color: var(--orange-2); }
.pts-grid small { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.slip-empty { text-align: center; padding: 40px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.slip-empty .big { font: 700 64px/1 var(--font-display); color: var(--surface-3); }
.close-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 20px; }
.close-x:hover { background: rgba(255,255,255,.16); }
.notice { border-radius: 10px; padding: 12px 14px; font-size: 13px; background: var(--orange-soft); border: 1px solid rgba(242,101,34,.35); color: #ffd9c6; }
.notice-bad { background: var(--bad-soft); border-color: rgba(255,100,100,.4); color: #ffd0d0; }
.notice-good { background: var(--good-soft); border-color: rgba(47,217,142,.35); color: #c9f7e1; }
.scrim { position: fixed; inset: 0; background: rgba(4,10,20,.6); z-index: 55; backdrop-filter: blur(2px); }

/* Mini slip + mobile tab bar */
.minislip {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 10px); z-index: 45;
  background: var(--orange); color: var(--on-orange); border-radius: 14px; box-shadow: var(--shadow-lg);
  height: 54px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between;
  font: 600 16px var(--font-display); text-transform: uppercase; letter-spacing: .05em;
}
.minislip[hidden] { display: none; }
.tabbar { display: none; }

/* ---------- Modal ---------- */
.modal-root:empty { display: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(4,10,20,.7); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(3px); animation: fade .2s; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: rise .28s var(--ease); }
.modal-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.modal-wide { max-width: 640px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* Receipt celebration */
.receipt-hero { background: var(--navy); padding: 30px 22px 24px; text-align: center; position: relative; overflow: hidden; border-bottom: 3px solid var(--orange); }
.receipt-hero h2 { font-size: 40px; }
.receipt-hero p { color: #d3ddea; margin-top: 6px; }
.streamer { position: absolute; top: -20px; width: 3px; height: 70px; background: #fff; opacity: .85; border-radius: 2px; animation: fall 2.2s ease-in forwards; }
@keyframes fall { to { transform: translateY(420px) rotate(25deg); opacity: 0; } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: calc(var(--topbar-h) + 44px); right: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--surface-2); border: 1px solid var(--line-2); border-left: 4px solid var(--orange); border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow); max-width: 340px; font-size: 14px; animation: rise .25s var(--ease); }
.toast-good { border-left-color: var(--good); }
.toast-bad { border-left-color: var(--bad); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); border-top: 3px solid var(--orange); margin-top: 40px; padding: 32px 0 calc(32px + var(--tabbar-h)); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-title { font: 700 18px var(--font-display); text-transform: uppercase; }
.footer-creed { color: var(--muted); font-style: italic; font-size: 14px; }
.footer-creed span { font-style: normal; color: var(--faint); font-size: 12px; margin-left: 6px; }
.footer-fine { max-width: 520px; color: var(--faint); font-size: 12px; }

/* ---------- Leaderboard row highlight (shared) ---------- */
.me-row { background: linear-gradient(90deg, rgba(242,101,34,.22), rgba(242,101,34,.06)); box-shadow: inset 4px 0 0 var(--orange); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 48px 16px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav > a.hide-md { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --topbar-h: 60px; --tabbar-h: 64px; }
  .wrap { padding: 0 16px; }
  .nav, .pts-chip small, .slip-btn .label { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 32px 0; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: var(--tabbar-h); background: rgba(0,43,92,.98); border-top: 2px solid var(--orange);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 500 11px var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.7); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.is-active { color: var(--orange-2); }
  .slip { top: auto; left: 0; width: 100%; height: 88vh; border-radius: 20px 20px 0 0; border-left: 0; transform: translateY(105%); }
  .slip.open { transform: none; }
  .slip-head { border-radius: 20px 20px 0 0; }
  .hero-inner { padding: 48px 0 44px; }
  .toasts { top: auto; bottom: calc(var(--tabbar-h) + 76px); left: 16px; right: 16px; }
  .toast { max-width: none; }
}
@media (max-width: 380px) {
  .pts-chip .coin { display: none; } .pts-chip { padding: 4px 10px; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .brand-name span { display: none; }
  .brand-name b { font-size: 16px; }
  .topbar-inner { gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .nav-right { gap: 8px; }
  .nav-right .avatar { display: none; }
  .pts-chip { padding: 4px 10px 4px 4px; gap: 6px; }
  .pts-chip .coin { width: 24px; height: 24px; font-size: 10px; }
  .pts-chip b { font-size: 15px; }
  .slip-btn { padding: 0 10px; height: 36px; }
  .prop { grid-template-columns: 1fr; gap: 10px; }
  .pledge-btn { width: 100%; flex-direction: row; justify-content: space-between; height: 46px; }
  .stat-value { font-size: 26px; }
  .table-stack thead { display: none; }
  .table-stack tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .table-stack td { border: 0; padding: 4px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Official mark sits on a white tile: its navy fill disappears on the navy header. */
.brand img, .footer-brand img {
  background: #fff; border-radius: 10px; padding: 4px 5px; object-fit: contain;
  box-shadow: 0 0 0 2px rgba(242, 101, 34, .9);
}
.brand img { width: 50px; height: 44px; }
.footer-brand img { width: 56px; height: 50px; }
@media (max-width: 600px) { .brand img { width: 42px; height: 37px; padding: 3px 4px; } }
