/* Super Spurs Stories — phone-first cinematic chrome */
:root {
  --navy: #0d2b6b;
  --ink: #f7fff8;
  --gold: #ffe14a;
  --orange: #ff7a18;
  --mint: #7dffb3;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background-color: #05080c;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overscroll-behavior: none;
  overflow: hidden;
}
@media (min-width: 520px) {
  html, body {
    background-image:
      linear-gradient(rgba(5,8,12,0.42), rgba(5,8,12,0.72)),
      url("./art/pitch-play.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.stage {
  width: min(100%, calc(100dvh * 0.68), 46rem);
  height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #08140c;
  container-type: inline-size;
  container-name: app;
}
@media (min-width: 520px) {
  .stage {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 28px 80px rgba(0,0,0,0.55);
  }
}

.reel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.ep {
  position: relative;
  height: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}
.ep .bg {
  position: absolute; inset: 0;
  background: var(--bg) center/cover no-repeat;
  transform: scale(1.06);
  animation: ken 18s ease-in-out alternate infinite;
}
.ep .shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,10,8,0.28) 0%, transparent 28%, transparent 48%, rgba(5,8,6,0.92) 100%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0,0,0,0.45), transparent 70%);
  pointer-events: none;
}
@keyframes ken {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.12) translateY(-1.5%); }
}

.copy {
  position: absolute;
  left: 16px; right: 28px;
  bottom: calc(122px + var(--safe-b));
  z-index: 2;
}
.kicker {
  display: inline-flex;
  align-items: center; gap: 8px;
  font-size: 0.68rem; font-weight: 900;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
  margin-bottom: 8px;
}
.kicker.game { color: var(--orange); }
.copy h2 {
  font-size: clamp(1.28rem, 6.4vw, 1.9rem);
  font-weight: 900; font-style: italic;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 3px 0 rgba(13,43,107,0.35), 0 12px 28px rgba(0,0,0,0.45);
  padding-right: 8px;
  overflow-wrap: anywhere;
}
.copy .sub {
  margin-top: 8px;
  font-size: 1.05rem; font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
  max-width: 22ch;
}
.peek {
  margin-top: 12px;
  min-height: 52px;
  width: 100%;
  border-radius: 18px;
  font-weight: 900; font-size: 1.05rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffe14a, #ff7a18);
  color: #3a1a00;
  box-shadow: 0 10px 28px rgba(255,122,24,0.35);
}

.pips {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex; flex-direction: column; gap: 6px;
  padding: 8px 4px;
}
.pips b {
  width: 6px; height: 6px; border-radius: 99px;
  background: rgba(255,255,255,0.35);
  display: block;
  transition: height 0.2s, background 0.2s;
}
.pips b.on { height: 22px; background: #fff; }
.pips b.now { background: var(--orange); }

.back {
  position: absolute;
  top: calc(12px + var(--safe-t));
  left: 12px;
  z-index: 5;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.2rem; font-weight: 900;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dock {
  position: absolute;
  left: 16px; right: 16px;
  bottom: calc(12px + var(--safe-b));
  z-index: 5;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
}
.dock a {
  min-height: 48px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 0.68rem; font-weight: 900;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0 4px;
}
.dock a.on { background: rgba(255,255,255,0.92); color: var(--navy); }
.dock a.go { background: linear-gradient(180deg, #ffe14a, #ff7a18); color: #3a1a00; border: 0; }

.sheet {
  position: absolute; inset: 0;
  z-index: 8;
  display: flex; align-items: flex-end;
  background: rgba(0,0,0,0.28);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet .card {
  width: 100%;
  max-height: min(78dvh, 640px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #fffef8, #eef8f1);
  color: #0c1a2e;
  border-radius: 28px 28px 0 0;
  padding: 10px 16px calc(18px + var(--safe-b));
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.sheet.open .card { transform: translateY(0); }
.handle {
  width: 48px; height: 5px; border-radius: 99px;
  background: rgba(13,43,107,0.2);
  margin: 6px auto 12px;
}
.sheet .who {
  display: flex; gap: 12px; align-items: center; margin-bottom: 12px;
}
.bounce-cut {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: #d8f0a8 url("./art/bounce.jpg") center/130% no-repeat;
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}
.sheet h3 {
  font-size: 1.2rem; font-style: italic; text-transform: uppercase;
  color: var(--navy); line-height: 1.1;
  padding-right: 36px;
}
.sheet .say, .sheet .panic { overflow-wrap: break-word; }
.sheet .meta { font-weight: 800; font-size: 0.88rem; opacity: 0.7; margin-top: 2px; }
.beats {
  display: flex; flex-direction: column; gap: 6px; margin: 10px 0;
}
.beat {
  display: grid; grid-template-columns: 72px 1fr; gap: 10px;
  align-items: center; text-align: left;
  border-radius: 14px; padding: 8px 10px;
  background: #fff;
  border: 2px solid rgba(13,43,107,0.12);
  min-height: 48px;
  min-width: 0;
}
.beat b {
  font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #1f9a48;
}
.beat span { font-weight: 800; font-size: 0.9rem; line-height: 1.25; display: block; overflow-wrap: anywhere; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.chip {
  background: #fff6d6; color: #3a1a00;
  font-weight: 900; font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 6px 10px; border-radius: 999px;
}
.chip.game { background: #ffedd5; color: #9a3412; }
.clock {
  font-weight: 900; font-size: 0.78rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: #fff;
  text-shadow: 0 2px 8px #000; margin-top: 4px;
  overflow-wrap: anywhere;
}
.week-row {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff; border-radius: 14px; padding: 10px 12px;
  border: 2px solid rgba(13,43,107,0.1); margin-bottom: 8px;
  min-width: 0;
}
.week-row b {
  flex: 0 0 64px; font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: #1f9a48; padding-top: 2px;
}
.week-row span { font-weight: 800; font-size: 0.88rem; line-height: 1.3; overflow-wrap: anywhere; }
.feel {
  font-weight: 800; font-size: 0.92rem; line-height: 1.35;
  margin: 6px 0 8px; color: #0c1a2e;
  overflow-wrap: anywhere; min-width: 0;
}
.say, .panic, .hint-line {
  border-radius: 14px; padding: 10px 12px; margin-top: 8px;
  font-weight: 800; line-height: 1.4; overflow-wrap: anywhere;
}
.hint-line { background: #f4f7ff; border-left: 4px solid var(--navy); color: #0c1a2e; }
.say { background: #eef8f1; border-left: 4px solid #1f9a48; font-style: italic; }
.panic { background: #fff4e8; border-left: 4px solid var(--orange); }
.say strong, .panic strong, .hint-line strong {
  display: block; font-style: normal; font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; opacity: 0.7;
}
.sheet .card { position: relative; }
.x {
  position: absolute; right: 14px; top: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--navy); font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.road-page {
  position: absolute; inset: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(56px + var(--safe-t)) 14px calc(96px + var(--safe-b));
}
.road-hero { color: #fff; margin-bottom: 12px; }
.road-hero h1 {
  font-size: clamp(1.5rem, 7vw, 2.1rem);
  font-style: italic; font-weight: 900; text-transform: uppercase;
  line-height: 1.05;
  text-shadow: 0 3px 0 rgba(13,43,107,0.35), 0 10px 24px rgba(0,0,0,0.45);
}
.road-hero .sub { font-weight: 800; margin-top: 6px; text-shadow: 0 2px 8px #000; }
.road-block {
  background: rgba(255,252,245,0.96);
  color: #0c1a2e;
  border-radius: 20px;
  padding: 12px;
  margin-bottom: 10px;
}
.road-block h2 {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #1f9a48; margin-bottom: 8px;
}
.road-block.now h2 { color: #9a3412; }
.road-item {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(13,43,107,0.08);
}
.road-item:first-of-type { border-top: 0; padding-top: 0; }
.road-item .when {
  font-size: 0.72rem; font-weight: 900; letter-spacing: 0.04em;
  text-transform: uppercase; color: #1f9a48; padding-top: 2px;
}
.road-item .what { font-weight: 800; font-size: 0.92rem; line-height: 1.3; overflow-wrap: anywhere; }
.road-item .what em { display: block; font-style: normal; font-weight: 700; font-size: 0.78rem; opacity: 0.7; margin-top: 2px; }
.ladder { display: flex; flex-wrap: wrap; gap: 6px; }
.ladder span {
  font-weight: 900; font-size: 0.62rem; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 6px 8px; border-radius: 999px;
  background: #eef2f7; color: #64748b;
}
.ladder span.did { background: #d8fff5; color: #065f46; }
.ladder span.now { background: #fff6d6; color: #3a1a00; }
.ladder span.sat { background: #ffedd5; color: #9a3412; }
a.peek { display: grid; place-items: center; text-decoration: none; }

.hint {
  position: absolute; left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  z-index: 6;
  text-align: center;
  pointer-events: none;
  animation: fadeHint 2.8s ease forwards;
}
.hint span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem;
}
.hint i { display: block; font-style: normal; font-size: 1.6rem; margin-bottom: 4px; }
@keyframes fadeHint {
  0% { opacity: 0; }
  15% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

@supports (font-size: 1cqi) {
  .copy h2 { font-size: clamp(1.28rem, 7.2cqi, 2rem); }
  .road-hero h1 { font-size: clamp(1.5rem, 8cqi, 2.2rem); }
  .brand-float h1 { font-size: clamp(1.8rem, 9cqi, 2.7rem); }
}

@media (prefers-reduced-motion: reduce) {
  .ep .bg { animation: none; transform: none; }
  .sheet, .sheet .card, .hint { transition: none; animation: none; }
}
