/* TimeOut app layout. */
:root {
  --bg: #0a0d12;
  --surface: #141922;
  --raised: #1d2430;
  --raised-2: #262f3d;
  --stroke: #283141;
  --text: #f2f5f9;
  --text-2: #a6b0c0;
  --muted: #5e687a;
  --faint: #8e98aa; /* text-only grey; 4.5:1+ on every background incl. --raised-2 */
  --accent: #22d66e;
  --accent-ink: #03140a;
  --accent-soft: rgba(34, 214, 110, 0.13);
  --loss: #ff6267;
  --loss-fill: #c9474b; /* behind white text (4.5:1+) */
  --loss-soft: rgba(255, 90, 95, 0.13);
  --live: #ff6170;
  --live-fill: #db323f; /* behind white text (4.5:1+) */
  --warn: #ffc940;
  --warn-soft: rgba(255, 201, 64, 0.12);
  --blue: #4fb3ff;
  --blue-soft: rgba(79, 179, 255, 0.13);
  --purple: #c58cff;
  --scrim: rgba(0, 0, 0, 0.6);

  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --tabbar-h: 70px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic { flex: none; display: block; }
.num, .display { font-variant-numeric: tabular-nums; }
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.005em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Full-viewport app surface; native app shells can provide their own safe areas. */
.app-surface { position: relative; width: 100%; height: 100%; min-height: 100dvh; overflow: hidden; background: var(--bg); isolation: isolate; }

/* ---------- App shell ---------- */
.app { position: absolute; inset: 0; display: flex; flex-direction: column; }

.topbar {
  flex: none;
  height: 52px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 8px;
}
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--text);
  position: relative;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn .dotbadge { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px var(--bg); }
.brand { display: flex; align-items: center; gap: 7px; min-width: 0; }
.brand-mark { color: var(--accent); }
.brand-word { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 25px; letter-spacing: 0.02em; line-height: 1; }
.brand-word b { color: var(--accent); font-weight: 900; }
.top-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bal-pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 12px;
  border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.bal-pill.locked { background: var(--raised); color: var(--loss); }

.view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding-bottom: 116px;
}
.view::-webkit-scrollbar { display: none; }

/* Floating pill tab bar: hovers over the content with a darker inner pill on the active tab. */
.tabbar {
  position: absolute;
  left: 14px; right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  height: var(--tabbar-h);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(44, 50, 60, 0.94), rgba(30, 35, 43, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  z-index: 5;
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px; font-weight: 800; letter-spacing: 0.01em;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.tab:hover:not(.on) { background: rgba(255, 255, 255, 0.04); }
.tab.on { color: var(--accent); background: rgba(5, 7, 10, 0.85); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5); }
.tab .badge {
  position: absolute; top: 4px; left: calc(50% + 8px);
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--live-fill); color: #fff;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 2px rgba(30, 35, 43, 1);
}
.tab .badge.green { background: var(--accent); color: var(--accent-ink); }

.page-head { padding: 4px 16px 10px; }
.page-head h1 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: 0.005em; }
.page-head p { margin: 6px 0 0; color: var(--text-2); font-size: 14px; max-width: 34ch; }

/* ---------- Generic building blocks ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-s { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-s { display: flex; align-items: center; gap: 6px; }
.row-layout { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.pad { padding-inline: 16px; }
.mt { margin-top: 14px; }
.muted { color: var(--text-2); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.bold { font-weight: 700; }
.green { color: var(--accent); }
.red { color: var(--loss); }
.yellow { color: var(--warn); }
.blue { color: var(--blue); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px;
}
.card.tight { padding: 12px; }
.card.flush { padding: 0; overflow: hidden; }
.card.tappable { cursor: pointer; transition: border-color 0.15s; }
.card.tappable:hover { border-color: #3a4558; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px; }
.section-title h2 { margin: 0; font-size: 17px; font-weight: 800; }
.link-btn { color: var(--accent); font-weight: 700; font-size: 13.5px; }
.count-pill { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; }
.count-pill.off { background: var(--raised); color: var(--text-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 18px;
  border-radius: 14px;
  font-weight: 800; font-size: 16px;
  background: var(--raised); color: var(--text);
  border: 1px solid var(--stroke);
  transition: filter 0.15s, transform 0.08s;
  white-space: nowrap;
}
.btn:active:not(:disabled) { transform: scale(0.985); }
.btn.full { width: 100%; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 11px; }
.btn.xs { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 9px; gap: 5px; }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.07); }
.btn.warn { background: var(--warn); border-color: transparent; color: #1d1600; }
.btn.danger { background: var(--loss-fill); border-color: transparent; color: #fff; }
.btn.ghost { background: transparent; border-color: var(--stroke); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--text-2); }
.btn:disabled { opacity: 0.42; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 13px;
  border-radius: 999px;
  background: var(--surface); border: 1px solid var(--stroke);
  font-size: 14px; font-weight: 700; white-space: nowrap;
}
.chip .n { font-size: 11px; font-weight: 800; color: var(--faint); }
.chip.on { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.chip.on .n { color: rgba(3, 20, 10, 0.6); }
.chip.dashed { background: transparent; border-style: dashed; color: var(--text-2); }
.chip.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }

.hscroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 16px; }
.hscroll::-webkit-scrollbar { display: none; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 7px; border-radius: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--raised); color: var(--text-2);
  white-space: nowrap;
}
.tag.green { background: var(--accent-soft); color: var(--accent); }
.tag.red { background: var(--loss-soft); color: var(--loss); }
.tag.yellow { background: var(--warn-soft); color: var(--warn); }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
.status-pill { display: inline-grid; place-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: 0.05em; }
.status-pill.won { background: var(--accent); color: var(--accent-ink); }
.status-pill.lost { background: var(--loss-fill); color: #fff; }
.status-pill.void, .status-pill.tie { background: var(--muted); color: #fff; }
.status-pill.open { background: var(--raised); color: var(--text); }

.live { display: inline-flex; align-items: center; gap: 4px; color: var(--live); font-size: 11px; font-weight: 900; letter-spacing: 0.04em; }
.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 1.1s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: 0.3; } }

.team-badge {
  flex: none;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  color: #fff; font-weight: 900; font-size: 9px; letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
  font-family: var(--font-display);
}
.team-badge img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--raised); }
.avatar.lg { width: 64px; height: 64px; }
.avatar.xl { width: 96px; height: 96px; }
.avatar.sm { width: 28px; height: 28px; }

.bar { height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width 0.4s; }

.note {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 12px; border-radius: 12px;
  font-size: 13px; font-weight: 600;
  background: var(--raised); color: var(--text-2);
}
.note .ic { margin-top: 1px; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.red { background: var(--loss-soft); color: var(--loss); }
.note.green { background: var(--accent-soft); color: var(--accent); }
.note.blue { background: var(--blue-soft); color: var(--blue); }

.divider { height: 1px; background: var(--stroke); border: 0; margin: 0; }

.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 28px 22px;
}
.empty .ic { color: var(--muted); }
.empty h3 { margin: 0; font-size: 18px; }
.empty p { margin: 0; color: var(--text-2); font-size: 14px; max-width: 30ch; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field .label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.input, .textarea, .select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--raised);
  font-size: 16px;
  outline: none;
}
.textarea { height: auto; min-height: 76px; padding: 12px 14px; resize: none; line-height: 1.4; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); }
.input.bad, .textarea.bad { border-color: var(--loss); }
.field .err { color: var(--loss); font-size: 12.5px; font-weight: 600; }
.field .hint { color: var(--faint); font-size: 12.5px; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 44px; }
.input-wrap .icon-btn { position: absolute; right: 4px; top: 4px; color: var(--text-2); }
input[type='date'].input { color-scheme: dark; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border: 1px solid var(--stroke); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { height: 34px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: var(--raised-2); color: var(--text); }
.seg button .count-pill { height: 18px; min-width: 18px; font-size: 11px; padding: 0 5px; }

.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 15px; background: var(--raised-2); transition: background 0.2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.checkbox { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 2px solid var(--muted); display: grid; place-items: center; color: transparent; }
.checkbox.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.list { background: var(--surface); border: 1px solid var(--stroke); border-radius: 16px; overflow: hidden; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  min-height: 54px; padding: 10px 14px;
  text-align: left;
  border-top: 1px solid var(--stroke);
}
.list-row:first-child { border-top: 0; }
button.list-row:hover, label.list-row:hover { background: rgba(255, 255, 255, 0.02); }
label.list-row { cursor: pointer; }
.list-row .lr-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--raised); color: var(--text-2); flex: none; }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-title { font-weight: 700; font-size: 15px; }
.list-row .lr-sub { color: var(--text-2); font-size: 12.5px; margin-top: 1px; }
.list-row .chev { color: var(--muted); }

/* ---------- Home ---------- */
.wallet { margin: 4px 16px 0; padding: 16px; }
.wallet .big { font-family: var(--font-display); font-weight: 900; font-size: 54px; line-height: 0.9; color: var(--accent); font-variant-numeric: tabular-nums; }
.wallet .big small { font-size: 22px; font-weight: 700; opacity: 0.85; margin-left: 3px; }
.wallet .cd { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.wallet-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--stroke); padding-top: 12px; }
.wallet-stats > div { text-align: center; }
.wallet-stats > div + div { border-left: 1px solid var(--stroke); }
.wallet-stats b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.wallet-stats span { font-size: 11px; font-weight: 700; color: var(--faint); }
.wallet .explain { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.wallet.locked .lockhead { display: flex; align-items: center; gap: 6px; color: var(--loss); font-size: 12px; font-weight: 900; letter-spacing: 0.06em; }
.wallet.locked .bigcd { font-family: var(--font-display); font-weight: 900; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }

.status-strip {
  margin: 0 16px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface); border: 1px solid var(--stroke);
  width: calc(100% - 32px);
  text-align: left;
  overflow: hidden;
}
.status-strip .sp { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.tier-badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 11px; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase;
  color: #06110a; white-space: nowrap; flex: none;
}
.tier-badge.rookie { background: var(--raised); color: var(--text); }
.tier-badge.sm { height: 20px; font-size: 10px; padding: 0 7px; }

.mini-challenges { padding-bottom: 2px; }
.mini-challenge { flex: none; width: 222px; min-height: 96px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.mini-challenge .t { font-weight: 800; font-size: 14px; }

.filterbar { position: sticky; top: 0; z-index: 4; background: var(--bg); padding: 10px 0; }
.live-tile { flex: none; height: 28px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 59, 74, 0.55); border-radius: 999px; background: rgba(255, 59, 74, 0.13); color: var(--live); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.live-tile i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live-tile .n { font-size: 11px; opacity: 0.8; font-variant-numeric: tabular-nums; }
.live-tile.on { background: var(--live-fill); border-color: transparent; color: #fff; }
.setup-banner { margin: 4px 16px 0; padding: 14px; display: grid; gap: 10px; border: 1px solid rgba(34, 214, 110, 0.4); border-radius: 16px; background: linear-gradient(135deg, rgba(34, 214, 110, 0.17), rgba(34, 214, 110, 0.06)); }
.setup-banner b { display: block; font-size: 16px; font-weight: 800; }
.setup-banner p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.setup-banner .sb-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--accent); color: var(--accent-ink); }
.cfb-select-label { display: block; margin: 9px 16px 4px; color: var(--faint); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.cfb-select { display: block; width: calc(100% - 32px); height: 38px; margin: 0 16px; padding: 0 10px; color: var(--text); background: var(--surface); border: 1px solid var(--stroke); border-radius: 10px; font: inherit; font-weight: 700; }
.league-head { display: flex; align-items: center; gap: 8px; padding: 6px 16px 0; }
.league-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.league-head .cnt { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--faint); }

.game-card { margin: 0 16px; padding: 12px 10px 12px 12px; }
.gc-status { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; min-height: 18px; }
.gc-status .lg { margin-left: auto; color: var(--faint); font-weight: 800; font-size: 11px; letter-spacing: 0.04em; }
.gc-grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 60px); gap: 5px; align-items: center; }
.gc-grid.two { grid-template-columns: minmax(0, 1fr) repeat(2, 66px); }
.gc-grid .colh { font-size: 10px; font-weight: 800; color: var(--faint); text-align: center; letter-spacing: 0.04em; text-transform: uppercase; }
.gc-team { display: flex; align-items: center; gap: 8px; min-width: 0; text-align: left; height: 46px; }
.gc-team .nm { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-team .rec { font-size: 11px; color: var(--faint); }
.gc-team .sc { margin-left: auto; padding-right: 2px; flex: none; font-family: var(--font-display); font-weight: 900; font-size: 23px; font-variant-numeric: tabular-nums; }
.gc-team .sc.trail { color: var(--text-2); }
.gc-live-layout { display: grid; grid-template-columns: minmax(112px, .9fr) minmax(0, 1.2fr); gap: 9px; align-items: center; }
.matchup-head { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:8px; margin:8px 0 4px; }
.matchup-team { min-width:0; display:flex; align-items:center; gap:7px; text-align:left; font-weight:750; }
.matchup-team span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.matchup-team b { margin-left:auto; font-variant-numeric:tabular-nums; font-size:19px; }
.matchup-at,.matchup-time { text-align:center; color:var(--text-2); font-size:12px; font-weight:700; }
.matchup-time { margin:4px 0 12px; }
.challenge-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; padding:4px; border-radius:11px; background:var(--raised); margin:8px 0; }
.challenge-tabs button { min-height:34px; border-radius:8px; color:var(--text-2); font-size:12px; font-weight:750; }
.challenge-tabs button.on { background:var(--accent); color:var(--accent-ink); }
.challenge-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.challenge-choices .challenge-btn { min-height:58px; height:auto; padding:6px; }
.commitment-summary { display:grid; gap:6px; padding:12px; border-radius:12px; background:var(--raised); }
.gc-live-teams { min-width: 0; }
.gc-live-team { min-width: 0; height: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px; }
.gc-live-team-open { min-width: 0; display: flex; align-items: center; gap: 7px; text-align: left; }
.gc-live-logo { width: 27px; height: 27px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--raised); color: var(--text); font-size: 9px; font-weight: 900; overflow: hidden; }
.gc-live-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gc-live-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.gc-live-score { min-width: 23px; text-align: right; font-family: var(--font-display); font-weight: 900; font-size: 23px; font-variant-numeric: tabular-nums; }
.gc-live-score.trail { color: var(--text-2); }
.gc-live-challenges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.gc-live-challenges .challenge-btn.big { height: 48px; min-width: 0; border-radius: 8px; }
.gc-live-challenges .challenge-btn.big .lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.gc-live-challenges .challenge-btn .ln { font-size: 11px; }
.gc-live-challenges .challenge-btn .pr { font-size: 12px; }
.gc-more { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.gc-more .your-challenge { color: var(--accent); display: inline-flex; gap: 4px; align-items: center; }
.bump { animation: bump 0.6s ease; }
@keyframes bump { 0% { color: var(--accent); transform: scale(1.18); } 100% { transform: scale(1); } }

.challenge-btn {
  height: 46px;
  width: 100%;
  border-radius: 10px;
  background: var(--raised);
  border: 1px solid var(--stroke);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  transition: background 0.12s, border-color 0.12s;
}
.challenge-btn:hover:not(:disabled) { border-color: #3d4a5e; }
.challenge-btn .ln { font-size: 12.5px; font-weight: 700; color: var(--text); }
.challenge-btn .pr { font-size: 13.5px; font-weight: 800; color: var(--accent); display: inline-flex; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; }
.challenge-btn .pr.solo { font-size: 15px; }
.challenge-btn .mv { font-size: 8px; }
.challenge-btn .mv.up { color: var(--accent); }
.challenge-btn .mv.down { color: var(--loss); }
.challenge-btn.on { background: var(--accent); border-color: transparent; }
.challenge-btn.on .ln, .challenge-btn.on .pr, .challenge-btn.on .mv { color: var(--accent-ink); }
.challenge-btn.locked { opacity: 0.55; }
.challenge-btn.locked .pr { color: var(--faint); }
.challenge-btn.big { height: 56px; }
.challenge-btn.big .lbl { font-size: 12px; font-weight: 700; color: var(--text-2); }
.challenge-btn.big.on .lbl { color: var(--accent-ink); }

.pred-card { margin: 0 16px; }
.pred-card .q { font-weight: 700; font-size: 15.5px; line-height: 1.3; margin: 6px 0 10px; }
.pred-card .yn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pred-card .prob { height: 4px; border-radius: 2px; background: var(--loss-soft); overflow: hidden; margin-top: 10px; }
.pred-card .prob i { display: block; height: 100%; background: var(--accent); }

.promo {
  margin: 0 16px;
  display: flex; gap: 12px; align-items: center;
  text-align: left;
  background: linear-gradient(120deg, rgba(79, 179, 255, 0.12), rgba(34, 214, 110, 0.08));
  border: 1px solid var(--stroke);
}
.promo .lr-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }

/* ---------- Game detail ---------- */
.scoreboard { margin: 0 16px; padding: 16px 12px; }
.sb-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.sb-team .team-badge { width: 52px; height: 52px; font-size: 15px; }
.sb-team .nm { font-weight: 800; font-size: 15px; }
.sb-team .rec { font-size: 12px; color: var(--faint); }
.sb-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 120px; }
.sb-score { font-family: var(--font-display); font-weight: 900; font-size: 50px; line-height: 1; font-variant-numeric: tabular-nums; display: flex; gap: 10px; align-items: baseline; }
.sb-score .dash { color: var(--muted); font-size: 30px; }
.sb-score .trail { color: var(--text-2); }
.sb-clock { font-weight: 800; font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }

.market { display: flex; flex-direction: column; gap: 8px; }
.market h4 { margin: 0; font-size: 13px; font-weight: 800; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; }
.market .opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }

.cmp-row { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; }
.cmp-row .v { font-family: var(--font-display); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.cmp-row .v.r { text-align: right; }
.cmp-row .mid { display: flex; flex-direction: column; gap: 5px; }
.cmp-row .lab { text-align: center; font-size: 12px; font-weight: 700; color: var(--text-2); }
.cmp-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 5px; }
.cmp-bars > span { background: var(--raised); border-radius: 3px; overflow: hidden; display: flex; }
.cmp-bars > span:first-child { justify-content: flex-end; }
.cmp-bars i { display: block; height: 100%; border-radius: 3px; }

.play { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--stroke); }
.play:first-child { border-top: 0; }
.play .k { font-weight: 700; font-size: 14px; }
.play .c { font-size: 12px; color: var(--faint); font-weight: 600; }
.play .s { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; }

.form-dots { display: inline-flex; gap: 3px; }
.form-dots i { width: 18px; height: 18px; border-radius: 5px; font-style: normal; font-size: 10px; font-weight: 900; display: grid; place-items: center; }
.form-dots i.W { background: var(--accent-soft); color: var(--accent); }
.form-dots i.L { background: var(--loss-soft); color: var(--loss); }
.research { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px 12px; align-items: center; font-size: 14px; }
.research .c { text-align: center; font-size: 12px; font-weight: 700; color: var(--faint); }
.research .r { text-align: right; justify-self: end; }
.research .v { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- pledges cards (My pledges) ---------- */
.pledge-card { margin: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.pledge-top { display: flex; align-items: flex-start; gap: 10px; }
.pledge-top .t { font-weight: 800; font-size: 16px; line-height: 1.2; }
.pledge-top .multiplier { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--text-2); margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pick { display: flex; gap: 10px; align-items: flex-start; }
.pick + .pick { border-top: 1px dashed var(--stroke); padding-top: 10px; }
.pick-dot { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; margin-top: 1px; background: var(--raised); color: var(--text-2); }
.pick-dot.won { background: var(--accent); color: var(--accent-ink); }
.pick-dot.lost { background: var(--loss-fill); color: #fff; }
.pick-dot.void, .pick-dot.tie { background: var(--muted); color: #fff; }
.pick-dot.winning { background: var(--accent-soft); color: var(--accent); }
.pick-dot.losing { background: var(--loss-soft); color: var(--loss); }
.pick .lt { font-weight: 700; font-size: 14.5px; }
.pick .lm { font-size: 12.5px; color: var(--text-2); }
.livebox { background: var(--bg); border: 1px solid var(--stroke); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.livebox .lb-score { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.livebox .lb-score .sc { font-family: var(--font-display); font-weight: 900; font-size: 20px; font-variant-numeric: tabular-nums; }
.livebox .lb-stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); font-weight: 600; }
.livebox .lb-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.standing { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; }
.standing.winning { color: var(--accent); }
.standing.losing { color: var(--loss); }
.standing.even, .standing.upcoming { color: var(--text-2); }
.pledge-row { display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 9px 4px; border: 1px solid var(--stroke); }
.pledge-row > div { text-align: center; }
.pledge-row > div + div { border-left: 1px solid var(--stroke); }
.pledge-row b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.pledge-row span { font-size: 11px; font-weight: 700; color: var(--faint); }
.pledge-actions { display: flex; gap: 8px; }
.pledge-actions .btn { flex: 1; }

.record-card { margin: 0 16px; }
.record-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.record-big > div { background: var(--bg); border: 1px solid var(--stroke); border-radius: 12px; padding: 10px; text-align: center; }
.record-big b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.record-big span { font-size: 11px; font-weight: 700; color: var(--faint); }
.sport-bars { display: flex; flex-direction: column; gap: 8px; }
.sport-bar { display: grid; grid-template-columns: 70px 1fr 60px; gap: 10px; align-items: center; font-size: 12.5px; font-weight: 700; }
.sport-bar .bar { height: 8px; }
.sport-bar .bar i.neg { background: var(--loss); }

/* ---------- Social ---------- */
.me-card { margin: 0 16px; display: flex; gap: 14px; align-items: center; }
.lb-row { display: grid; grid-template-columns: 22px 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--stroke); width: 100%; text-align: left; }
.lb-row:first-child { border-top: 0; }
.lb-row.me { background: var(--accent-soft); }
.lb-row .rk { font-family: var(--font-display); font-weight: 900; font-size: 18px; color: var(--text-2); text-align: center; }
.lb-row .nm { font-weight: 800; font-size: 14.5px; }
.lb-row .sub { font-size: 12px; color: var(--text-2); display: flex; gap: 6px; align-items: center; }
.lb-row .val { text-align: right; font-family: var(--font-display); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
.lb-row .val small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 700; color: var(--faint); }
.person-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--stroke); }
.person-row:first-child { border-top: 0; }
.team-card { display: flex; flex-direction: column; gap: 10px; }
.avatars { display: flex; }
.avatars img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; object-fit: cover; }
.avatars img:first-child { margin-left: 0; }
.pick-friends { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-friend { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); font-weight: 700; font-size: 13.5px; }
.pick-friend img { width: 30px; height: 30px; border-radius: 50%; }
.pick-friend.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* ---------- Overlays ---------- */
.layer { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.layer > * { pointer-events: auto; }
.scrim { position: absolute; inset: 0; background: var(--scrim); animation: fade 0.2s ease; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 90%;
  display: flex; flex-direction: column;
  background: #0e1218;
  border-top: 1px solid var(--stroke);
  border-radius: 26px 26px 0 0;
  animation: up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.45);
}
.sheet.tall { height: 90%; }
.sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: var(--raised-2); margin: 8px auto 2px; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 6px 12px 10px 18px; flex: none; }
.sheet-head h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 26px; flex: 1; min-width: 0; }
.sheet-body { overflow-y: auto; padding: 0 16px 22px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
.sheet-foot { flex: none; padding: 12px 16px 22px; border-top: 1px solid var(--stroke); display: flex; flex-direction: column; gap: 10px; background: #0e1218; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slidein { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slideleft { from { transform: translateX(-100%); } to { transform: none; } }

.page {
  position: absolute; inset: 0;
  background: var(--bg);
  display: flex; flex-direction: column;
  animation: slidein 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
  z-index: 0; /* keeps a page's floating button under sheets opened on top of it */
}
.page .page-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 52px; padding: 0 8px; flex: none; }
.page .page-top .t { text-align: center; font-weight: 800; font-size: 17px; }
.page .page-scroll { flex: 1; overflow-y: auto; padding: 4px 16px 40px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: none; }
.page .page-scroll::-webkit-scrollbar { display: none; }

.drawer {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 84%;
  background: #0e1218;
  border-right: 1px solid var(--stroke);
  display: flex; flex-direction: column;
  animation: slideleft 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.drawer-head { padding: 18px 18px 14px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--stroke); }
.drawer nav { flex: 1; overflow-y: auto; padding: 8px 8px 20px; display: flex; flex-direction: column; gap: 2px; }
.drawer .dn { display: flex; align-items: center; gap: 14px; height: 50px; padding: 0 12px; border-radius: 12px; font-weight: 700; font-size: 15.5px; text-align: left; }
.drawer .dn:hover { background: var(--surface); }
.drawer .dn .ic { color: var(--text-2); }
.drawer .dn .sub { margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 700; }

.dialog-wrap { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; }
.dialog {
  width: 100%; max-width: 330px;
  background: #151a23; border: 1px solid var(--stroke); border-radius: 22px;
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  animation: pop 0.2s ease;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.dialog h3 { margin: 0; font-size: 19px; font-weight: 800; }
.dialog .body { color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.dialog .acts { display: flex; gap: 10px; margin-top: 4px; }
.dialog .acts .btn { flex: 1; }
@keyframes pop { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }

.toasts { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 50; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px;
  background: var(--raised);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  animation: drop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  cursor: pointer;
  touch-action: none;
  user-select: none;
}
.toast .tt { font-weight: 800; font-size: 14.5px; }
.toast .tm { font-size: 13px; color: var(--text-2); margin-top: 1px; }
.toast.win { border-color: rgba(34, 214, 110, 0.5); }
.toast.win > .ic { color: var(--accent); }
.toast.loss { border-color: rgba(255, 90, 95, 0.5); }
.toast.loss > .ic { color: var(--loss); }
.toast.warn { border-color: rgba(255, 201, 64, 0.5); }
.toast.warn > .ic { color: var(--warn); }
.toast.info > .ic { color: var(--blue); }
.toast.out { opacity: 0; transform: translateY(-8px); transition: 0.25s; }
@keyframes drop { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

.commitment-bar {
  position: absolute; left: 12px; right: 12px;
  bottom: calc(var(--tabbar-h) + 26px + env(safe-area-inset-bottom, 0px));
  z-index: 6;
  display: flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 16px 0 12px;
  border-radius: 16px;
  background: var(--raised-2);
  border: 1px solid #3a4557;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  font-weight: 800;
  animation: drop 0.25s ease;
}
.commitment-bar .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.commitment-bar .o { margin-left: auto; font-family: var(--font-display); font-weight: 900; font-size: 19px; color: var(--accent); }
.commitment-bar.combo-goal-finalize { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.commitment-bar.combo-goal-finalize .n { background: rgba(3, 20, 10, 0.15); color: var(--accent-ink); }
.commitment-bar.combo-goal-finalize .o { color: var(--accent-ink); }
.build-combo-goal { width: calc(100% - 32px); min-height: 58px; margin: 0 16px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(34, 214, 110, 0.28); border-radius: 16px; background: linear-gradient(110deg, rgba(34, 214, 110, 0.13), rgba(34, 214, 110, 0.05)); color: var(--text); text-align: left; }
.build-combo-goal > svg:first-child { color: var(--accent); flex: none; }
.build-combo-goal > svg:last-child { color: var(--muted); margin-left: auto; flex: none; }
.build-combo-goal span:not(.lr-icon) { display: grid; gap: 2px; }
.build-combo-goal b { font-size: 14px; }
.build-combo-goal small { color: var(--faint); font-size: 12px; }
.build-combo-goal.active { background: var(--surface); border-color: var(--stroke); }
.build-combo-goal.active .lr-icon { width: 34px; height: 34px; flex: none; }
.build-combo-goal.active .link-btn { flex: none; }

/* pledges commitment */
.commitment-pick { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke); }
.commitment-pick.changed { border-color: rgba(255, 201, 64, 0.6); }
.commitment-pick.closed { border-color: rgba(255, 90, 95, 0.5); opacity: 0.85; }
.commitment-pick .price { font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.commitment-pick .old { text-decoration: line-through; color: var(--faint); font-size: 14px; margin-right: 4px; }
.pledge-box { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; align-items: center; }
.pledge-box .step { height: 52px; border-radius: 14px; background: var(--raised); border: 1px solid var(--stroke); display: grid; place-items: center; }
.pledge-input { position: relative; }
.pledge-input input { width: 100%; height: 52px; text-align: center; border-radius: 14px; border: 1px solid var(--stroke); background: var(--raised); font-family: var(--font-display); font-weight: 900; font-size: 30px; outline: none; font-variant-numeric: tabular-nums; padding-right: 36px; padding-left: 36px; -moz-appearance: textfield; }
.pledge-input input::-webkit-outer-spin-button, .pledge-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pledge-input input:focus { border-color: var(--accent); }
.pledge-input input.bad { border-color: var(--loss); color: var(--loss); }
.pledge-input span { position: absolute; right: 14px; top: 50%; translate: 0 -50%; font-weight: 700; color: var(--text-2); font-size: 14px; pointer-events: none; }
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.quick button { height: 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--stroke); font-weight: 800; font-size: 13.5px; }
.quick button.on { border-color: var(--accent); color: var(--accent); }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.outcomes > div { border-radius: 14px; padding: 12px; border: 1px solid var(--stroke); background: var(--surface); }
.outcomes b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.outcomes .w b { color: var(--accent); }
.outcomes .l b { color: var(--loss); }
.outcomes span { font-size: 12px; font-weight: 700; color: var(--text-2); }
.perk-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke); }
.perk-row .lr-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }

/* Share card preview */
.share-img { width: 100%; border-radius: 16px; border: 1px solid var(--stroke); display: block; background: var(--surface); }

/* Auth */
.auth { position: absolute; inset: 0; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; background: var(--bg); }
.auth::-webkit-scrollbar { display: none; }
.auth-inner { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 16px 22px 30px; }
.welcome-hero {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  padding: 24px 22px 8px;
  background:
    radial-gradient(420px 320px at 80% 10%, rgba(34, 214, 110, 0.22), transparent 70%),
    radial-gradient(360px 300px at 0% 60%, rgba(79, 179, 255, 0.12), transparent 70%);
}
.welcome-hero .wordmark { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 64px; line-height: 0.9; letter-spacing: 0.02em; }
.welcome-hero .wordmark b { color: var(--accent); }
.brand-icon { display: block; flex: none; filter: drop-shadow(0 10px 24px rgba(34, 214, 110, 0.22)); }
.welcome-hero .brand-icon { margin-bottom: 4px; }
.welcome-hero .tagline { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.05; color: var(--text); max-width: 15ch; }
.welcome-points { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.welcome-points div { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); font-weight: 600; }
.welcome-points .ic { color: var(--accent); margin-top: 1px; }
.ticker { display: flex; gap: 8px; overflow: hidden; padding: 4px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 8px; animation: tick 32s linear infinite; }
.ticker .tk { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--stroke); font-size: 12.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.ticker .tk b { color: var(--text); font-family: var(--font-display); font-size: 15px; }
@keyframes tick { to { transform: translateX(-50%); } }
.auth h1 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 36px; line-height: 1; }
.auth .sub { margin: -8px 0 0; color: var(--text-2); font-size: 14.5px; }
.photo-pick { display: flex; align-items: center; gap: 14px; }
.photo-pick .ph { position: relative; width: 84px; height: 84px; border-radius: 50%; flex: none; }
.photo-pick .ph img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--raised); }
.photo-pick .ph .cam { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; border: 3px solid var(--bg); }
.verify-email .verify-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.verify-email .sub b { word-break: break-all; }
.verify-dot { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--accent); animation: pulse 1.1s ease-in-out infinite alternate; }
.form-error { padding: 10px 12px; border-radius: 12px; background: var(--loss-soft); color: var(--loss); font-weight: 700; font-size: 13.5px; }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--raised); }
.steps i.on { background: var(--accent); }
.wt-page { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 8px; }
.wt-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.wt-title { margin: 6px 0 0; font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1.05; }
.wt-text { margin: 0; color: var(--text-2); font-size: 16px; }
.wt-points { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wt-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); }
.wt-points li svg { flex: none; margin-top: 2px; color: var(--accent); }
.wt-dots { display: flex; gap: 6px; justify-content: center; margin: 14px 0 4px; }
.wt-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--raised); }
.wt-dots i.on { background: var(--accent); width: 20px; border-radius: 4px; }
.wt-nav { display: flex; gap: 10px; width: 100%; }
.wt-nav .grow { flex: 1; }
.how-card { display: flex; gap: 14px; align-items: flex-start; }
.how-card .n { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 19px; flex: none; }
.how-card h3 { margin: 0 0 3px; font-size: 16px; }
.how-card p { margin: 0; color: var(--text-2); font-size: 14px; }
.sport-opt { display: flex; align-items: center; gap: 12px; }
.sport-opt .sq { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 13px; flex: none; background: var(--raised); color: var(--text); }

.app-lock {
  margin: 0 16px;
  display: flex; gap: 12px; align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--loss-soft);
  border: 1px solid rgba(255, 90, 95, 0.4);
  text-align: left;
  width: calc(100% - 32px);
}

/* Floating button pinned to the bottom of a page (game detail, Combo Goal builder) */
.page-fab { position: sticky; bottom: 14px; z-index: 3; margin-top: auto; padding-top: 6px; }
.page .page-scroll:has(.page-fab) { padding-bottom: 14px; } /* sticky offsets count the padding, so keep it small */
.page-fab .btn { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55); }
.page-fab .btn .count-pill { margin-right: 2px; }
.flash { animation: flash 1.1s ease; }
@keyframes flash { 0%, 60% { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } 100% { box-shadow: none; } }
.combo-goal-list .game-card { margin: 0; }
.day-bar { margin-top: 10px; }
.simulated-note { margin: 0 16px; }
.day-chip { flex: none; }
.combo-goal-days .hscroll { padding: 0; }
.combo-goal-list .league-head { padding: 6px 0 0; }

/* No connection */
.net-banner {
  position: absolute; left: 10px; right: 10px; top: 108px; z-index: 52;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--loss-fill); color: #fff;
  font-size: 13px; font-weight: 600; line-height: 1.3;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  animation: drop 0.25s ease;
}
.net-banner[hidden] { display: none; }
body.is-offline .toasts { margin-top: 56px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
a.btn, a.dn, a.sn { text-decoration: none; color: inherit; }

/* Virtual racing */
.race-page { padding-bottom: 24px; }
.race-page .page-head { padding-bottom: 4px; }
.race-card { margin: 0 16px; }
.race-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.race-caption { margin-left: 5px; color: var(--text-2); font-size: 12px; font-weight: 700; }
.race-clock { font-family: var(--font-display); font-weight: 900; color: var(--accent); white-space: nowrap; }
.race-track-wrap { overflow: hidden; border: 1px solid var(--stroke); border-radius: 12px; background: #0a0d12; }
.race-track { display: block; width: 100%; height: 250px; }
.race-finish-line { display: none; }
.race-caller { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: 12px; font-weight: 600; }
.race-caller > span:first-child { display: inline-flex; flex: none; align-items: center; gap: 5px; color: var(--accent); }
.race-heading { margin: 0 0 3px; font-size: 17px; }
.race-roster { display: flex; flex-direction: column; }
.race-entry { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--stroke); }
.race-entry:last-child { border-bottom: 0; }
.race-horse-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.race-silk { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid color-mix(in srgb, var(--silk), transparent 35%); border-radius: 11px; background: color-mix(in srgb, var(--silk), transparent 88%); color: var(--silk); font-family: var(--font-display); font-size: 17px; font-weight: 900; flex: none; }
.race-horse-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.race-horse-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-horse-copy small { color: var(--text-2); font-size: 11px; }
.race-target { width: 106px; flex: none; }
.race-target .challenge-btn { width: 100%; min-height: 48px; }
.race-result { display: flex; flex-direction: column; gap: 5px; }
.race-result > b { font-family: var(--font-display); font-size: 22px; }
.race-winner { color: var(--accent); }

@media (max-width: 360px) {
  .race-card-head { align-items: flex-start; }
  .race-caption { display: block; margin: 5px 0 0; }
  .race-entry { gap: 8px; }
  .race-silk { width: 34px; height: 34px; }
  .race-target { width: 88px; }
}

/* Weekly report */
.weekly-report .wr-headline { margin: 0; font-size: 24px; line-height: 1.2; font-family: var(--font-display); letter-spacing: 0.01em; }
.weekly-report .wr-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.wr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.wr-tile { background: var(--raised); border: 1px solid var(--stroke); border-radius: 12px; padding: 12px 8px; text-align: center; }
.wr-tile b { display: block; font-size: 20px; line-height: 1.2; }
.wr-tile span { display: block; margin-top: 4px; font-size: 12px; color: var(--faint); }
.wr-note { border-left: 3px solid var(--accent); background: var(--raised); border-radius: 0 12px 12px 0; padding: 12px 14px; }
.wr-note.alt { border-left-color: var(--blue); }
.wr-note p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
.wr-days { display: grid; gap: 0; font-size: 14px; }
.wr-day { display: grid; grid-template-columns: 1fr auto auto 56px; gap: 12px; padding: 8px 0; border-top: 1px solid var(--stroke); align-items: baseline; }
.wr-day > :nth-child(n+2) { text-align: right; }

/* Weekly report card on Home */
.weekly-strip { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px; text-align: left; color: var(--text); cursor: pointer; transition: border-color 0.15s; }
.weekly-strip:hover { border-color: #3a4558; }
.weekly-strip .ws-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.weekly-strip .ws-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.weekly-strip .ws-top b { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.weekly-strip .ws-head { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weekly-page .eyebrow { margin-top: 8px; }

/* A list row that is a link (the privacy policy) looks like the other rows */
a.list-row, a.list-row:visited { color: var(--text); text-decoration: none; }
a.list-row:hover { background: var(--raised); }
