/* ─────────────────────────────────────────────────────────────────────────────
   The interactive sections.

   These are controls, not decoration, so they are styled as controls: real
   hit areas, visible states, and a thumb-sized target on a phone. The one
   rule running through all of them is that nothing here is a card with a
   glow on it — border, fill and shadow are spent on the thing you touch.
   ──────────────────────────────────────────────────────────────────────────── */

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--t-sm);
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--t-1), background var(--t-1);
}
.btn:hover { background: rgba(255, 255, 255, 0.12); }
.btn:active { transform: scale(0.97); }
.btn.is-primary {
  background: var(--hot);
  color: var(--g-0);
  box-shadow: none;
}
.btn.is-primary:hover { filter: brightness(1.08); }
.btn.is-quiet { background: transparent; color: var(--ink-3); }

/* ── Start-point scrubber ─────────────────────────────────────────────────── */
.scrub-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}
.scrub-art { width: 46px; height: 46px; border-radius: 9px; flex: 0 0 auto; }
.scrub-head b { display: block; font-size: var(--t-md); }
.scrub-head small { color: var(--ink-3); font-size: var(--t-xs); }
.scrub-start { margin-left: auto; color: var(--ink-3); font-size: var(--t-xs); text-align: right; }
.scrub-start b { display: block; color: var(--star); font-size: var(--t-md); font-variant-numeric: tabular-nums; }

.scrub-track {
  position: relative;
  height: 92px;
  border-radius: 12px;
  background: var(--g-3);
  cursor: ew-resize;
  overflow: hidden;
  touch-action: none;
}
.scrub-wave {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 0 2px;
}
.scrub-wave i {
  flex: 1;
  background: var(--hot);
  border-radius: 1px;
  min-width: 1px;
}
/* The wasted intro, called out by name. */
.scrub-intro {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  background: rgba(255, 193, 7, 0.14);
  box-shadow: inset -1px 0 0 rgba(255, 193, 7, 0.5);
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}
.scrub-intro span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--star);
}
.scrub-handle {
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: var(--star);
  pointer-events: none;
  transform: translateX(-1.5px);
}
.scrub-handle i {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--star);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.scrub-head-pos {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
}
.scrub-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.scrub-hint { color: var(--ink-2); font-size: var(--t-xs); margin-top: 13px; min-height: 2.6em; }

/* ── Team message / picks ─────────────────────────────────────────────────── */
.msg { margin: 4px 0 18px; }
.msg-bubble {
  background: var(--gd-blue);
  color: #fff;
  padding: 11px 14px;
  border-radius: 16px 16px 16px 5px;
  font-size: var(--t-sm);
  max-width: 34ch;
  line-height: 1.45;
}
.msg-link { color: #D8E4FF; text-decoration: underline; word-break: break-all; }
.msg-meta { color: var(--ink-3); font-size: var(--t-xs); margin-top: 7px; }

.switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin-top: 8px; }
.switch input { display: none; }
.switch-ui {
  flex: 0 0 auto;
  width: 46px; height: 28px;
  border-radius: 999px;
  background: var(--g-3);
  box-shadow: inset 0 0 0 1px var(--line);
  position: relative;
  transition: background var(--t-1);
}
.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--t-2) var(--e-out);
}
.switch input:checked + .switch-ui { background: var(--row-green); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch b { display: block; font-size: var(--t-sm); }
.switch small { display: block; color: var(--ink-3); font-size: var(--t-xs); line-height: 1.45; margin-top: 2px; }

.picks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.pick {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--g-3);
  opacity: 0.45;
  transition: opacity var(--t-2), background var(--t-2);
}
.pick.is-in { opacity: 1; background: color-mix(in srgb, var(--hot) 10%, var(--g-3)); }
.pick-num {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.pick-main { flex: 1; min-width: 0; }
.pick-main b { display: block; font-size: var(--t-sm); }
.pick-main small { color: var(--ink-3); font-size: var(--t-xs); }
.pick-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.05);
}
.pick-tag.is-ok { color: var(--row-green); background: rgba(52, 199, 89, 0.14); }
.pick-tag.is-pending { color: var(--g-0); background: var(--star); cursor: pointer; }

/* ── Announcer ────────────────────────────────────────────────────────────── */
.voices { display: flex; flex-direction: column; gap: 8px; }
.voice {
  text-align: left;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--g-3);
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow var(--t-1), background var(--t-1);
}
.voice:hover { background: color-mix(in srgb, var(--hot) 8%, var(--g-3)); }
.voice.is-on {
  background: color-mix(in srgb, var(--hot) 14%, var(--g-3));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hot) 55%, transparent);
}
.voice b { display: block; font-size: var(--t-sm); }
.voice small { display: block; color: var(--ink-3); font-size: var(--t-xs); margin-top: 2px; line-height: 1.45; }

.field { display: block; margin-bottom: 13px; }
.field span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.field input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 0;
  background: var(--g-3);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-sm);
}
.field input:focus-visible { outline: 2px solid var(--hot); outline-offset: 1px; }
.an-lines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ── Soundboard ───────────────────────────────────────────────────────────── */
.sboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.spad {
  position: relative;
  padding: 26px 14px 20px;
  border-radius: var(--r-md);
  background: var(--g-2);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
  overflow: hidden;
  transition: transform var(--t-1), box-shadow var(--t-1);
}
.spad::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 70% at 50% 0%, var(--pc), transparent 70%);
  opacity: 0.16;
  transition: opacity var(--t-1);
}
.spad:hover::before { opacity: 0.3; }
.spad:active { transform: scale(0.96); }
.spad.is-hit::before { opacity: 0.7; }
.spad.is-hit { box-shadow: inset 0 0 0 1px var(--pc), 0 0 30px color-mix(in srgb, var(--pc) 40%, transparent); }
.spad-dot {
  position: relative;
  display: block;
  width: 34px; height: 34px;
  margin: 0 auto 11px;
  border-radius: 50%;
  background: var(--pc);
  box-shadow: 0 0 20px color-mix(in srgb, var(--pc) 55%, transparent);
}
.spad b { position: relative; font-size: var(--t-sm); font-weight: 650; }

/* ── Boards ───────────────────────────────────────────────────────────────── */
.btabs { display: flex; gap: 7px; margin-bottom: 18px; flex-wrap: wrap; }
.btab {
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.btab.is-on { background: var(--ac); color: var(--g-0); box-shadow: none; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 9px; }
.bcell {
  position: relative;
  padding: 16px 12px;
  border-radius: var(--r-md);
  background: var(--g-2);
  box-shadow: inset 0 0 0 1px var(--bc);
  overflow: hidden;
}
.bcell::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--bc);
  opacity: 0.13;
}
.bcell b {
  position: relative;
  display: block;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.bcell small { position: relative; color: var(--ink-3); font-size: var(--t-xs); }

/* ── Tick lists ───────────────────────────────────────────────────────────── */
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
  font-size: var(--t-sm);
  line-height: 1.5;
}
.ticks li::before {
  position: absolute;
  left: 0; top: 0.08em;
  font-weight: 700;
  font-size: 1.05em;
}
.ticks li.is-yes::before { content: "✓"; color: var(--row-green); }
.ticks li.is-no::before { content: "✕"; color: var(--row-red); }
.ticks li.is-warn::before { content: "!"; color: var(--star); }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); align-items: start; }
.plan {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--r-lg);
  background: var(--g-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan.is-featured {
  background: var(--g-3);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hot) 55%, transparent),
              0 24px 60px rgba(0, 0, 0, 0.4);
}
.plan-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 11px;
}
.plan h3 { font-size: var(--t-lg); margin-bottom: 8px; }
.plan-price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 9px; }
.plan-price b { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1; }
.plan-price small { color: var(--ink-3); font-size: var(--t-sm); }
.plan p { color: var(--ink-2); font-size: var(--t-sm); }
.plan ul { list-style: none; margin: 16px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-2);
  font-size: var(--t-xs);
  line-height: 1.5;
}
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--row-green); font-weight: 700; }
.plan .btn { width: 100%; }

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 620px) {
  .sboard { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .spad { padding: 20px 10px 16px; }
  .scrub-track { height: 76px; }
  .scrub-actions .btn { flex: 1 1 auto; }
  .bgrid { grid-template-columns: repeat(2, 1fr); }
}

/* ── The announcer's line, typed ──────────────────────────────────────────
   Where the spoken announcement used to go. It holds its height whether or
   not a line is showing, so pressing a button does not resize the card and
   shove the page around.
   ──────────────────────────────────────────────────────────────────────── */
.an-out {
  margin-top: 18px;
  min-height: 3.4em;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--g-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 0.9rem + 1.1vw, 1.9rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.an-out .tw-car { background: var(--hot); width: 3px; }

/* ─────────────────────────────────────────────────────────────────────────────
   The walkthrough (2026-11-19).

   Five numbered stops replaced eight unordered feature sections. The number
   is not decoration: these are the steps in order, and the eyebrow says so.
   ──────────────────────────────────────────────────────────────────────────── */

.sec-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1em; height: 2.1em;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--hot) 55%, transparent);
  color: var(--hot);
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* ── 01. The sport switcher ───────────────────────────────────────────────── */
.swap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.swap-side { min-width: 0; }
.swap-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.swap-chip {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--g-3);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 650;
  transition: background var(--t-fast), color var(--t-fast);
}
.swap-chip:hover { color: var(--ink-1); }
.swap-chip.is-on { background: var(--ac); color: var(--g-0); box-shadow: none; }
.swap-note { color: var(--ink-2); font-size: var(--t-md); max-width: 46ch; min-height: 5.4em; }
.swap-facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.swap-facts li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  background: var(--g-3);
}
.swap-facts b { font-size: var(--t-md); white-space: nowrap; }
.swap-facts span { color: var(--ink-3); font-size: var(--t-xs); }
.swap-phone { display: flex; justify-content: center; }
/* The phone is 2.17x as tall as it is wide, so at the page's default width it
   dwarfs the column beside it. */
.swap-phone .phone { --w: 272px; }

@media (max-width: 860px) {
  .swap { grid-template-columns: 1fr; }
  .swap-note { min-height: 0; }
}

/* ── 02. Loading the board ────────────────────────────────────────────────── */
.load-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(18px, 3vw, 32px); }
.load-col h3 {
  font-family: var(--f-display);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.load-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.load-btn {
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--g-3);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
  transition: box-shadow var(--t-fast), background var(--t-fast);
}
.load-btn b { display: block; font-size: var(--t-sm); font-weight: 700; }
.load-btn small { display: block; color: var(--ink-3); font-size: var(--t-xs); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.load-btn.is-full small { color: var(--ink-2); }
.load-btn.is-full { background: color-mix(in srgb, var(--row-green) 12%, var(--g-3)); }
.load-btn.is-sel { box-shadow: inset 0 0 0 2px var(--star); }

.load-songs { display: flex; flex-direction: column; gap: 6px; }
.load-song {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--g-3);
  text-align: left;
  transition: background var(--t-fast);
}
.load-song:hover { background: color-mix(in srgb, var(--hot) 10%, var(--g-3)); }
.load-song:active { transform: scale(0.99); }
.load-art { width: 34px; height: 34px; border-radius: 7px; flex: 0 0 auto; }
.load-song b { display: block; font-size: var(--t-sm); }
.load-song small { display: block; color: var(--ink-3); font-size: var(--t-xs); }
.load-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.load-status { color: var(--ink-3); font-size: var(--t-xs); }

/* ── 04. The roster ───────────────────────────────────────────────────────── */
.roster { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.roster-row {
  display: flex; align-items: center; gap: 13px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 11px;
  background: var(--g-3);
  text-align: left;
  transition: background var(--t-fast);
}
.roster-row:hover { background: color-mix(in srgb, var(--hot) 10%, var(--g-3)); }
.roster-row.is-on { background: color-mix(in srgb, var(--hot) 18%, var(--g-3)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hot) 45%, transparent); }
.roster-num {
  width: 30px; height: 30px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--g-2);
  font-size: var(--t-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.roster-main { flex: 1; min-width: 0; }
.roster-main b { display: block; font-size: var(--t-sm); }
.roster-main small { display: block; color: var(--ink-3); font-size: var(--t-xs);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster-start { color: var(--star); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }

.lu-form { display: grid; grid-template-columns: 1fr 100px; gap: 12px; margin-top: 18px; }
.lu-form .field { margin-bottom: 0; }
.voices.is-tight { gap: 6px; }
.voices.is-tight .voice { padding: 9px 13px; }

/* ── 05. The three extras ─────────────────────────────────────────────────── */
.xtabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.xtab {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--g-3);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 650;
}
.xtab:hover { color: var(--ink-1); }
.xtab.is-on { background: var(--hot); color: #fff; box-shadow: none; }
.xpanel > .xlead { color: var(--ink-2); font-size: var(--t-md); max-width: 60ch; margin-bottom: 22px; }
.xpanel > .small { color: var(--ink-3); font-size: var(--t-xs); margin-top: 18px; max-width: 64ch; }

/* ── The app's own marks, through the page ────────────────────────────────────
   The walkthrough was drawing generic dots and numbered squares beside a
   phone full of the real thing. These are the board's glyphs, exported from
   app/phone.js so there is one set, not two.
   ───────────────────────────────────────────────────────────────────────────── */
.sec-ico {
  display: inline-grid; place-items: center;
  width: 1.5em; height: 1.5em;
  margin-right: 0.45em;
  vertical-align: -0.3em;
  color: var(--hot);
}
.sec-ico svg { width: 100%; height: 100%; }

.load-btn { display: flex; align-items: center; gap: 11px; }
.load-btn-main { min-width: 0; flex: 1; }
.load-ring {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--hot) 45%, transparent);
  color: var(--ink-1);
}
.load-ring svg { width: 16px; height: 16px; }
.load-btn.is-full .load-ring { border-color: var(--row-green); color: var(--row-green); }

.roster-jersey { flex: 0 0 auto; width: 26px; display: grid; place-items: center;
  --ap-jersey: #5AA0F2; --ap-sleeve: #FF4D6A; }
.roster-jersey svg { width: 100%; height: auto; }
.pick .roster-jersey { width: 24px; }

.spad-dot svg { width: 18px; height: 18px; color: #fff; }
.spad-dot { display: grid; place-items: center; }

.xtab { display: inline-flex; align-items: center; gap: 8px; }
.xtab svg { width: 15px; height: 15px; }

.swap-chip { display: inline-flex; align-items: center; gap: 7px; }
.swap-chip-ico { font-size: 1.05em; line-height: 1; filter: grayscale(1) opacity(0.7); }
.swap-chip.is-on .swap-chip-ico { filter: none; }
/* Fifteen chips wrap to three rows at the page's width; this keeps the rows
   even rather than leaving one chip alone on the last. */
.swap-chips { max-width: 46ch; }
