/* iPhone preview: a 390x844-point stage (iPhone 15 size) scaled into a
   phone frame, plus a TV that lights up when you AirPlay to it.
   Sizes inside .stage are real iOS points, copied from the SwiftUI views. */

.demo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin-top: 8px;
}
.demo-side { display: flex; flex-direction: column; gap: 26px; padding-top: 40px; min-width: 0; }

.demo-bar { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.demo-cap {
  flex: 1; margin: 0;
  font-size: 19px; font-weight: 600; line-height: 1.4;
  color: var(--text);
  transition: opacity 0.25s;
}
.demo-cap.fade { opacity: 0; }
.demo-tour { flex: none; white-space: nowrap; }
.demo-note { color: var(--text-3); font-size: 14px; margin: 30px 0 0; }

/* ---------- The phone ---------- */

.phone {
  --pw: clamp(270px, calc((100vh - 120px) * 0.462 + 24px), 372px);
  position: relative;
  width: var(--pw);
  padding: 12px;
  border-radius: calc(var(--pw) * 0.165);
  background: linear-gradient(145deg, #45484f, #17191d 38%, #2b2e34 75%, #121316);
  box-shadow:
    0 0 0 1.5px #0c0d10,
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    0 50px 90px rgba(0, 0, 0, 0.55);
}
.phone::before, .phone::after {
  content: ""; position: absolute; width: 4px; border-radius: 2px; background: #2b2e34;
}
.phone::before { left: -4px; top: 22%; height: 16%; box-shadow: 0 -60px 0 -10px #2b2e34; }
.phone::after { right: -4px; top: 27%; height: 11%; }
.pscreen {
  position: relative;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  overflow: clip;
  border-radius: calc(var(--pw) * 0.135);
  background: #0B1220;
}

/* ---------- The TV ---------- */

.tvbox { margin: 0; max-width: 640px; }
.atv {
  background: linear-gradient(180deg, #121419, #07080a);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: box-shadow 0.4s;
}
.tvbox.lit .atv { box-shadow: 0 40px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(242, 176, 30, 0.45), 0 0 60px rgba(242, 176, 30, 0.12); }
.tvscreen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 5px; background: #05070b; }
.tv-stand {
  width: 26%; height: 14px; margin: 0 auto;
  background: linear-gradient(180deg, #1a1d23, #0d0f12);
  border-radius: 0 0 14px 14px;
}
.tvbox figcaption { text-align: center; color: var(--text-3); font-size: 14px; margin-top: 12px; }
.tvbox.lit figcaption { color: var(--gold); }

.tvidle {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 0 12%;
  color: rgba(255, 255, 255, 0.45);
  background: radial-gradient(ellipse at 50% 40%, #121a2b, #05070b 70%);
}
.tvidle svg { width: 46px; height: 46px; }
.tvidle b { color: #fff; font-size: 18px; }
.tvidle small { font-size: 14px; }
.tvidle.on svg { color: var(--gold); }
.tvscreen .tvclip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tvscreen .vbug { left: 3%; top: 5%; font-size: 15px; }
.tvscreen .vbug span { padding: 6px 10px; }
.tvchip {
  position: absolute; left: 3%; bottom: 5%;
  display: flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 9px;
  background: rgba(0, 0, 0, 0.6); color: #fff;
  font-size: 13px; font-weight: 700;
  animation: chip-out 0.6s ease 4s forwards;
}
.tvchip svg { width: 17px; height: 17px; color: var(--gold); }
@keyframes chip-out { to { opacity: 0; } }
.tvscreen .vsample { font-size: 12px; right: 3%; bottom: 5%; }

/* ---------- Stage: the iPhone app ---------- */

.stage {
  position: absolute; left: 0; top: 0;
  width: 390px; height: 844px;
  transform-origin: 0 0;
  overflow: hidden;
  overflow: clip; /* a focused control never scrolls the phone off its frame */
  background: #0B1220;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}
.stage * { box-sizing: border-box; }
.stage svg { display: block; }
:where(.stage) button {
  font: inherit; color: inherit; text-align: left;
  background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
:where(.stage) button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.stage .gd { color: var(--gold); }
.stage .dim { color: rgba(255, 255, 255, 0.6); }
.stage .small { font-size: 13px; margin: 0; line-height: 1.4; }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  border-radius: 50%;
  border: solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
}
.ltag {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 3px 7px; border-radius: 5px;
  background: #E5484D; color: #fff;
  font-size: 11px; font-weight: 900; letter-spacing: 1px; line-height: 1.1;
}
.ltag i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* status bar, tab bar, home indicator */
.sbar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 30;
  height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 30px 0 50px;
  font-size: 17px; font-weight: 600;
  pointer-events: none;
}
.island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.sicons { display: flex; align-items: center; gap: 6px; }
.sicons svg { height: 12px; width: auto; }
.sicons svg:last-child { height: 13px; }

.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  height: 83px;
  display: flex; padding: 7px 2px 0;
  background: rgba(13, 19, 33, 0.88);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-top: 0.5px solid rgba(255, 255, 255, 0.14);
}
.stage .tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-align: center;
  font-size: 10px; font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}
.tab svg { width: 25px; height: 25px; }
.stage .tab.sel { color: var(--gold); }
.tab.sel svg path, .tab.sel svg rect { fill: rgba(242, 176, 30, 0.18); }
.homebar { position: absolute; left: 50%; bottom: 8px; z-index: 40; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #fff; pointer-events: none; }

/* pages and navigation */
.screens { position: absolute; inset: 0; overflow: hidden; }
.page {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding-top: 54px;
  background: #0B1220;
  transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.38s;
}
.page[hidden] { display: none; }
.page.pushed { transform: translateX(100%); box-shadow: -12px 0 30px rgba(0, 0, 0, 0.45); }
.page.pushed.in { transform: none; }
.page.under { transform: translateX(-28%); filter: brightness(0.55); }

.nb {
  flex: none; height: 44px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 12px;
}
.nb .l { justify-self: start; }
.nb .r { justify-self: end; display: flex; gap: 12px; }
.nb .t { font-size: 17px; font-weight: 600; white-space: nowrap; }
.root:not([data-tab="home"]) .nb .t { opacity: 0; transition: opacity 0.2s; }
.root.scrolled .nb .t { opacity: 1; }
.lock { display: flex; align-items: center; gap: 7px; font-size: 20px; font-weight: 900; letter-spacing: -0.01em; }
.lock img { width: 28px; height: 28px; }
.lock b, .splash b { color: var(--stamp); }
.backbtn { display: flex; align-items: center; gap: 1px; margin-left: -6px; color: var(--gold); font-size: 17px; }
.backbtn svg { width: 24px; height: 24px; }

.ap { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; transition: color 0.2s; }
.ap svg { width: 23px; height: 23px; }
.stage .ap.on { color: var(--gold); }
.ap.round { width: 34px; height: 34px; border-radius: 50%; background: rgba(79, 163, 227, 0.25); flex: none; }
.ap.round svg { width: 19px; height: 19px; }

.scroll {
  position: relative;
  flex: 1;
  overflow-x: hidden; overflow-y: auto;
  padding-bottom: 104px;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar, .track::-webkit-scrollbar, .fchips::-webkit-scrollbar { display: none; }
.ltitle { margin: 2px 16px 12px; font-size: 34px; font-weight: 800; letter-spacing: 0.01em; }
.pad { padding: 0 16px; }
.flow { padding-top: 8px; }
.flow > * + * { margin-top: 26px; }

/* Home */
.heroc {
  display: block; width: 100%;
  padding: 18px; border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.htag { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: rgba(255, 255, 255, 0.82); }
.hmid { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; }
.hside { width: 92px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.hside b { font-size: 12px; line-height: 1.2; }
.hside small { font-size: 11px; color: rgba(255, 255, 255, 0.7); }
.hsc { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hsc .big { font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hsc .at { font-size: 20px; font-weight: 700; color: rgba(255, 255, 255, 0.6); }
.hsc .st { font-size: 12px; font-weight: 600; }
.watchpill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--gold); color: #000;
  font-size: 15px; font-weight: 700;
}
.stage .watchpill { color: #000; }
.watchpill svg { width: 14px; height: 14px; }

.aphint { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); }
.aphint p { margin: 0; font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, 0.6); }

.hrow h3, .stories h3 { margin: 0 16px 10px; font-size: 20px; font-weight: 800; }
.stories h3 { margin-left: 0; }
.track {
  display: flex; gap: 12px;
  overflow-x: auto; padding: 0 16px;
  scroll-snap-type: x proximity; scroll-padding: 0 16px;
  scrollbar-width: none;
}
@media (pointer: fine) {
  .track, .fchips { cursor: grab; }
}
.track.dragging, .fchips.dragging { cursor: grabbing; scroll-snap-type: none; }
.track.dragging *, .fchips.dragging * { cursor: grabbing; }
.gcard {
  flex: none; width: 270px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  scroll-snap-align: start;
}
.gctop { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.gctop .ic svg { width: 14px; height: 14px; }
.gctop .sp { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcfoot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.gcfoot svg { width: 15px; height: 15px; }

.tline { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tline .rk, .strow .rk { font-size: 11px; font-weight: 800; color: var(--gold); }
.tline .tn { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tline .ts { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tline .ts.lose { color: rgba(255, 255, 255, 0.55); }

.story { display: block; width: 100%; padding: 10px 0; border-bottom: 0.5px solid rgba(255, 255, 255, 0.12); }
.story span { display: block; }
.story .k, .storyp .k { font-size: 11px; font-weight: 900; letter-spacing: 1px; color: var(--gold); }
.story .h { margin: 3px 0; font-size: 15px; font-weight: 600; }
.story .d, .storyp .d { font-size: 12px; color: rgba(255, 255, 255, 0.6); }

/* inset-grouped lists */
.sect { margin: 0 16px 24px; }
.sect h4 { margin: 0 0 7px 16px; font-size: 13px; font-weight: 500; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.group { border-radius: 12px; overflow: hidden; background: #172033; }
.group > * + * { border-top: 0.5px solid rgba(255, 255, 255, 0.1); }
.sect .foot { margin: 7px 16px 0; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.grow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 8px 10px 14px; }
.grow .teams { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.grow .right { width: 92px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; font-weight: 600; text-align: right; }
.grow .right .sp { max-width: 92px; font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: rgba(255, 255, 255, 0.3); }
.chev svg { width: 14px; height: 14px; transform: scaleX(-1); }

.fchips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 16px; scrollbar-width: none; }
.fchip { flex: none; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 15px; font-weight: 600; }
.stage .fchip.sel { background: var(--gold); color: #000; }

/* Standings */
.season { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.sthead { display: flex; justify-content: flex-end; padding: 0 12px 2px; font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, 0.55); }
.sthead span:first-child, .strow .c1 { width: 46px; text-align: right; }
.sthead span:last-child, .strow .c2 { width: 64px; text-align: right; }
.strow {
  display: flex; align-items: center; gap: 9px;
  margin-top: 6px; padding: 9px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 15px; font-variant-numeric: tabular-nums;
}
.strow .nm { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strow .fs svg { width: 11px; height: 11px; color: var(--gold); }
.stbody .div { margin: 18px 0 6px; font-size: 17px; font-weight: 700; color: var(--gold); }
.stbody .div:first-of-type { margin-top: 4px; }
.stnote { margin: 14px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.55); }

/* News story */
.storyp { padding: 8px 16px; }
.storyp span { display: block; }
.storyp h2 { margin: 6px 0 6px; font-size: 24px; font-weight: 800; line-height: 1.2; }
.storyp p { margin: 16px 0; font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, 0.85); }
.readmore { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }
.stage .readmore { color: var(--gold); }
.readmore svg { width: 20px; height: 20px; }

/* My Teams */
.schoolrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; }
.schoolrow .sn { flex: 1; display: flex; flex-direction: column; }
.schoolrow .sn b { font-size: 15px; font-weight: 600; }
.schoolrow .sn small { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.schoolrow .star { color: var(--gold); }
.schoolrow .star svg { width: 22px; height: 22px; }
.kv { display: flex; justify-content: space-between; width: 100%; padding: 12px 16px; font-size: 15px; }
.stage .lnk { color: var(--gold); }
.disc { margin: 0; padding: 12px 16px; font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, 0.55); }

/* Game page */
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45)); }
.poster > * { position: relative; }
.poster .marks { display: flex; align-items: center; gap: 22px; }
.poster .at { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, 0.75); }
.pwhen { font-size: 15px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); }
.vclip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.45)); }
.vbug { position: absolute; left: 10px; top: 10px; display: flex; overflow: hidden; border-radius: 6px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.vbug span { padding: 4px 7px; }
.vbug .clk { background: rgba(0, 0, 0, 0.72); }
.vctl { position: absolute; right: 8px; top: 7px; }
.vctl .ap.round { background: rgba(0, 0, 0, 0.5); }
.vlive { position: absolute; left: 10px; bottom: 10px; }
.vsample { position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; border-radius: 5px; background: rgba(0, 0, 0, 0.55); color: rgba(255, 255, 255, 0.9); font-size: 10px; font-weight: 700; }
.vtv {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 0 34px; text-align: center;
  background: radial-gradient(ellipse at 50% 35%, #1b2944, #05070c 75%);
}
.vtv svg { width: 42px; height: 42px; color: var(--gold); margin-bottom: 2px; }
.vtv b { font-size: 16px; }
.vtv small { font-size: 12px; color: rgba(255, 255, 255, 0.6); }

.seg { display: flex; margin: 14px 16px 0; padding: 2px; border-radius: 9px; background: rgba(118, 118, 128, 0.24); }
.seg button { flex: 1; padding: 6px 4px; border-radius: 7px; text-align: center; font-size: 13px; font-weight: 600; }
.stage .seg button { text-align: center; }
.seg button.sel { background: #636366; }
.shead { margin: 16px 16px 14px; }
.shead .hside b { font-size: 13px; }

.pnl { margin: 14px 16px 0; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); }
.pnl h5 { margin: 0 0 12px; font-size: 12px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); }
.ls { display: grid; align-items: center; row-gap: 9px; font-size: 15px; font-variant-numeric: tabular-nums; }
.ls .hd { text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.ls .n, .ls .t { text-align: center; }
.ls .t { font-weight: 800; }
.ls .tn { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.tstat { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 10px 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.tstat .h { text-align: right; }
.tstat .mid { display: flex; flex-direction: column; gap: 4px; }
.tstat .lbl { text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.tstat .bars { display: flex; gap: 4px; }
.bar { flex: 1; display: flex; height: 6px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.bar.a { justify-content: flex-end; }
.bar i { display: block; height: 100%; border-radius: 3px; }
.plays .p { display: flex; gap: 10px; padding: 5px 0; font-size: 14px; }
.plays .clk { width: 40px; color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; }
.plays .who { width: 50px; font-weight: 800; }
.info { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.info dt { color: rgba(255, 255, 255, 0.55); }
.info dd { margin: 0; text-align: right; }
.nt { margin: 18px 16px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.5); }

/* AirPlay sheet, toast, splash, tour finger */
#dim { position: absolute; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
#dim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 51;
  padding: 8px 14px 24px; border-radius: 32px;
  background: #1d2537;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(110%);
  transition: transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet.on { transform: none; }
.sheet .grab { width: 36px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); }
.sheet h4 { margin: 0; text-align: center; font-size: 17px; }
.sheet p { margin: 2px 0 14px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.route { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 14px; }
.route + .route { margin-top: 4px; }
.stage .route.sel { background: rgba(255, 255, 255, 0.08); }
.route .ri { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.route .ri svg { width: 20px; height: 20px; }
.route .rn { flex: 1; font-size: 16px; font-weight: 600; }
.route .rn small { display: block; font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, 0.55); }
.route .chk { width: 22px; color: var(--gold); }

.toast {
  position: absolute; left: 22px; right: 22px; bottom: 98px; z-index: 45;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(42, 51, 71, 0.97);
  text-align: center; font-size: 13px; line-height: 1.35;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.toast.on { opacity: 1; transform: none; }

.splash {
  position: absolute; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: #0B1220;
  transition: opacity 0.7s ease-in;
}
.splash .lk {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  opacity: 0; transform: scale(0.82);
  transform-origin: 50% 42%;
  transition: opacity 0.35s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.splash .lrow { display: flex; align-items: center; gap: 14px; }
.splash img { width: 150px; height: 150px; }
.splash .wm { font-size: 32px; font-weight: 900; letter-spacing: -0.01em; }
.splash .tag { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); transition: opacity 0.3s; }
.splash.shown .lk { opacity: 1; transform: none; }
.splash.zoom { opacity: 0; }
.splash.zoom .lk { opacity: 1; transform: scale(24); transition: transform 0.7s ease-in; }
.splash.zoom .tag { opacity: 0; }
.splash.gone { opacity: 0; pointer-events: none; }
.splash.instant, .splash.instant .lk, .splash.instant .tag { transition: none; }

/* Conference selector (iOS/Views/ConferencePicker.swift) */
.picker {
  position: absolute; inset: 0; z-index: 25;
  padding: 54px 0 34px;
  background: #0B1220;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.picker.on { opacity: 1; pointer-events: auto; }
.pk { height: 100%; display: flex; flex-direction: column; align-items: center; }
.pkmark { width: 52px; height: 52px; margin-top: 14px; }
.pk h2 { margin: 10px 0 0; font-size: 24px; font-weight: 900; }
.pksub { margin: 2px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.65); }
.pk h4 { align-self: stretch; margin: 22px 20px 8px; font-size: 12px; font-weight: 900; letter-spacing: 1.2px; color: var(--gold); }
.favnone { align-self: stretch; margin: 0 20px; padding: 10px 0; font-size: 13px; color: rgba(255, 255, 255, 0.65); }
.favrow { align-self: stretch; display: flex; gap: 10px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.favchip { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 15px; }
.cbadge {
  flex: none; display: grid; place-items: center;
  border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  color: #fff; font-weight: 900; line-height: 1;
}
.wheel { position: relative; align-self: stretch; height: 360px; margin: 18px 16px 0; }
.wband {
  position: absolute; left: 0; right: 0; top: 144px; height: 72px;
  border-radius: 18px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1.5px var(--gold);
  pointer-events: none;
}
.wscroll {
  position: relative; height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 144px 0;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.wscroll::-webkit-scrollbar { display: none; }
.wrow {
  height: 72px; display: flex; align-items: center; gap: 12px; padding: 0 6px 0 14px;
  scroll-snap-align: center; cursor: pointer;
}
.wrow .wn { flex: 1; min-width: 0; text-align: left; }
.wrow .wn b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrow .wn small { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrow.more { justify-content: center; font-size: 15px; color: rgba(255, 255, 255, 0.6); }
.wstar { width: 44px; height: 44px; display: grid; place-items: center; color: var(--gold); flex: none; }
.wstar svg { width: 22px; height: 22px; }
.gobtn {
  align-self: stretch; margin: auto 20px 16px; height: 52px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--gold); color: #000; font-size: 17px; font-weight: 700;
}
.gobtn:disabled { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.5); }
.confbtn { display: flex; align-items: center; gap: 1px; color: rgba(255, 255, 255, 0.65); }
.confbtn svg { width: 14px; height: 14px; }
.confline { font-size: 12px; font-weight: 900; letter-spacing: 1.2px; color: rgba(255, 255, 255, 0.65); }
.vph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(255, 255, 255, 0.9); }
.vph .ic svg { width: 54px; height: 54px; }
.vph small { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

.tapdot {
  position: absolute; z-index: 70;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65);
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
}
.tapdot.on { opacity: 1; transform: scale(1); }

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; justify-items: center; gap: 24px; }
  .phone { --pw: min(84vw, 350px); }
  .demo-side { width: 100%; padding-top: 0; gap: 22px; }
  .demo-bar { flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
  .demo-tour { justify-content: center; text-align: center; }
  .demo-cap { font-size: 17px; min-height: 3em; }
  .tvbox { max-width: none; }
}

/* meets: golf, cross country, track, wrestling tournaments (one card per event) */
.mname {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 15px; font-weight: 700; line-height: 1.25; text-align: left;
}
.tline .mres { flex: none; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.62); white-space: nowrap; }
.mmore { font-size: 12px; color: rgba(255, 255, 255, 0.55); text-align: left; }
.mhead h2 { margin: 8px 0 4px; font-size: 24px; font-weight: 900; line-height: 1.15; }
.mhead .mwhen { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.pnl .mrow { padding: 7px 0; }
.pnl .mrow b { font-size: 14px; white-space: nowrap; }
.pnl .mrow b.mnone { color: rgba(255, 255, 255, 0.45); }
.empty { margin: 4px 0 0; padding: 16px; border-radius: 12px; background: #172033; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.7); }
.empty b { display: block; margin-bottom: 4px; font-size: 15px; color: #fff; }
