/* Open Book pitch deck — scene chrome, sims, and the threshold slide. */

body.deck {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.deck .shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 880px;
  margin: 0 auto;
  padding: 1.1rem 0.85rem 6.6rem;
  width: 100%;
}

.deck .scene {
  display: none;
}

.deck .scene.is-on {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: auto;
  justify-content: safe center;
  animation: dkIn 0.35s ease both;
}

/* Scenes that own a running sim stay pinned to the top so the board
   doesn't jump as stats resize mid-season. */
.deck .scene[data-scene="leak"].is-on,
.deck .scene[data-scene="loop"].is-on,
.deck .scene[data-scene="demo"].is-on {
  justify-content: flex-start;
}

@keyframes dkIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.deck .scene h1,
.deck .scene h2 {
  margin: 0 0 0.5rem;
  text-wrap: balance;
}

.deck .scene .lede {
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  max-width: 44rem;
}

.deck .scene .lede em {
  font-style: italic;
  color: var(--ink);
}

.odds {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.is-bad {
  color: var(--danger);
}

.is-good {
  color: var(--accent);
}

/* ---------- shared stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

@media (min-width: 560px) {
  .stats.four {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
}

.stat b {
  display: block;
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(1.05rem, 3.6vw, 1.4rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat span {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ---------- speeds row ---------- */

.speeds {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

.speeds button {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.42rem 0.7rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.speeds button.is-on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.speeds .hint {
  color: var(--muted);
  font-size: 0.78rem;
  margin-left: auto;
}

.caption {
  font-size: 0.75rem;
  color: #6f6f6f;
  margin: 0.6rem 0 0;
  line-height: 1.45;
}

.caption strong {
  color: #9a9a9a;
}

/* ---------- the season board (scenes 1 and 5) ---------- */

.board {
  position: relative;
  flex: 0 1 auto;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 0.8rem 0.6rem;
  overflow: hidden;
}

.board-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.3rem;
  height: 250px;
  z-index: 2;
}

.board-zero {
  position: absolute;
  top: 0.35rem;
  right: 0.6rem;
  z-index: 3;
}

.board-zero span {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c5c5c;
}

.board-zero span::before {
  content: "";
  display: inline-block;
  width: 1.1rem;
  border-top: 1px dashed #4a4a4a;
  margin-right: 0.35rem;
  vertical-align: 0.2em;
}

.pl {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pl-track {
  position: relative;
  flex: 1;
  min-height: 0;
}

/* Break-even line, drawn per column so it always lands on the bar origin. */
.pl-track::before {
  content: "";
  position: absolute;
  left: -0.15rem;
  right: -0.15rem;
  top: 50%;
  border-top: 1px dashed #3a3a3a;
}

.pl-bar {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 0;
  border-radius: 3px;
  background: #3a3a3a;
  transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
}

.pl.is-up .pl-bar {
  background: var(--accent);
}

.pl.is-down .pl-bar {
  background: var(--danger);
}

.pl-name {
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: #8a8a8a;
  text-align: center;
  margin-top: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-pnl {
  font-family: Oswald, Impact, sans-serif;
  font-size: 0.8rem;
  text-align: center;
  color: #7a7a7a;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.pl.is-up .pl-pnl {
  color: var(--accent);
}

.pl.is-down .pl-pnl {
  color: var(--danger);
}

/* run-the-sim cover */

.sim-cover {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  margin: 0;
  padding: 1rem;
  width: 100%;
  background: rgba(11, 11, 11, 0.66);
  cursor: pointer;
  font: inherit;
  color: inherit;
  backdrop-filter: blur(1px);
}

.sim-cover[hidden] {
  display: none;
}

.sim-play {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 12px;
  padding: 0.9rem 1.6rem;
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 3.8vw, 1.5rem);
  letter-spacing: 0.02em;
  line-height: 1;
  animation: pulse 1.15s ease infinite;
}

.sim-cover:hover .sim-play {
  filter: brightness(1.06);
}

.sim-sub {
  color: #c9c9c9;
  font-size: 0.82rem;
  text-align: center;
}

@keyframes pulse {
  50% {
    transform: scale(1.04);
  }
}

/* result slam */

.slam {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background: #1a1012;
  border: 1px solid #5a2230;
  animation: dkIn 0.4s ease both;
}

.slam[hidden] {
  display: none;
}

.slam b {
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  line-height: 1;
  color: var(--danger);
}

.slam p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.slam.is-good {
  background: #14180c;
  border-color: #3a4a18;
}

.slam.is-good b {
  color: var(--accent);
}

/* ---------- the toll: one game ---------- */

.toll-stage {
  background: #101010;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 0.9rem;
}

.one-game[hidden],
.twin[hidden] {
  display: none;
}

.one-house {
  text-align: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #161616;
  width: fit-content;
  min-width: 11rem;
  margin: 0 auto 0.4rem;
  transition: border-color 0.35s, background 0.35s;
}

.toll-stage.is-settled .one-house {
  border-color: #5a2230;
  background: #1a1012;
}

.one-lbl {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.one-house b {
  display: block;
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  transition: color 0.35s;
}

.toll-stage.is-settled .one-house b {
  color: var(--danger);
}

.one-note {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--danger);
  margin-top: 0.1rem;
  animation: dkIn 0.4s ease both;
}

.one-note.is-win {
  color: var(--accent);
}

.one-table {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(8rem, 1.1fr) 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 1.6rem 0 0.6rem;
}

.one-side {
  text-align: center;
  min-width: 0;
}

.one-av {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 0.3rem;
  border-radius: 50%;
  background: #1f1f1f;
  border: 1px solid var(--line);
  font-family: Oswald, Impact, sans-serif;
  font-size: 1.15rem;
  color: var(--ink);
}

.one-side b {
  display: block;
  font-family: Oswald, Impact, sans-serif;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.one-side i {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
}

.one-side em {
  display: inline-block;
  font-style: normal;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.one-pot {
  text-align: center;
  border: 1px dashed #3a3a3a;
  border-radius: 10px;
  padding: 0.6rem 0.5rem;
  min-height: 5.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.35s;
}

.toll-stage.is-live .one-pot {
  border-color: var(--accent);
  border-style: solid;
}

.toll-stage.is-settled .one-pot {
  border-color: #5a2230;
}

.one-pot b {
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(1.7rem, 7vw, 2.5rem);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.one-chip {
  position: absolute;
  top: 0.1rem;
  font-style: normal;
  font-family: Oswald, Impact, sans-serif;
  font-size: 0.82rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
  pointer-events: none;
}

.one-chip.is-left {
  left: 12%;
}

.one-chip.is-right {
  right: 12%;
}

.one-chip.is-left.is-in {
  transform: translateX(90%);
  opacity: 0;
}

.one-chip.is-right.is-in {
  transform: translateX(-90%);
  opacity: 0;
}

.one-beat {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
  min-height: 2.7rem;
}

.one-beat.is-win {
  color: var(--accent);
}

.one-beat.is-bad {
  color: var(--danger);
  font-weight: 600;
}

.one-acts {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.one-go,
.one-next {
  border: 0;
  border-radius: 10px;
  font-family: Oswald, Impact, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
}

/* Glow rather than scale: these are click targets, so they must not move. */
.one-go {
  background: var(--accent);
  color: var(--accent-ink);
  animation: glow 1.6s ease infinite;
}

.one-go[hidden],
.one-next[hidden] {
  display: none;
}

.one-next {
  background: var(--accent);
  color: var(--accent-ink);
  animation: dkIn 0.4s ease both, glow 1.6s ease infinite 0.4s;
}

@keyframes glow {
  50% {
    box-shadow: 0 0 0 6px rgba(198, 245, 66, 0.16);
  }
}

/* ---------- the toll: twin seasons ---------- */

.twin-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.twin-week {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.twin-week b {
  font-family: Oswald, Impact, sans-serif;
  color: var(--ink);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.twin-speeds {
  display: flex;
  gap: 0.3rem;
  margin-left: auto;
}

.twin-speeds button {
  background: #191919;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.3rem 0.55rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.76rem;
  cursor: pointer;
}

.twin-speeds button.is-on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.twin-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.twin-side {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.6rem 0.4rem;
  min-width: 0;
}

.twin-side.is-book {
  border-color: #4a2028;
  background: #150e10;
}

.twin-side.is-peer {
  border-color: #34401a;
  background: #11150a;
}

.twin-side header {
  margin-bottom: 0.5rem;
}

.twin-side .kicker {
  margin-bottom: 0.4rem;
  font-size: 0.64rem;
}

.twin-nums {
  display: flex;
  gap: 0.9rem;
}

.twin-nums span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.twin-nums b {
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(1rem, 3.2vw, 1.35rem);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.twin-side .board-grid {
  height: 170px;
  gap: 0.16rem;
}

.twin-side .pl-name {
  display: none;
}

.twin-side .pl-pnl {
  font-size: 0.6rem;
  margin-top: 0.25rem;
}

.twin-verdict {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #1a1012;
  border: 1px solid #5a2230;
  animation: dkIn 0.4s ease both;
}

.twin-verdict[hidden] {
  display: none;
}

.twin-verdict b {
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(1.5rem, 5.5vw, 2.2rem);
  line-height: 1;
  color: var(--danger);
}

.twin-verdict span {
  flex: 1;
  min-width: 14rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.twin-back {
  margin-top: 0.6rem;
  font-size: 0.76rem;
}

/* ---------- scene 2: the real price ---------- */

.legbar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.legbar button {
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.2rem;
  font-family: Oswald, Impact, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.legbar button.is-on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.price-wrap {
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 720px) {
  .price-wrap {
    grid-template-columns: 1.4fr 1fr;
    align-items: stretch;
  }
}

.price-meter,
.price-odds {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.pm-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.pm-head span {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.pm-head b {
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  line-height: 1;
  color: var(--danger);
  font-variant-numeric: tabular-nums;
}

.pm-bar {
  display: flex;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
  background: #1c1c1c;
  border: 1px solid var(--line);
}

.pm-bar i {
  display: block;
  height: 100%;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.pm-back {
  background: #3d4a32;
}

.pm-cut {
  background: var(--danger);
}

.pm-legs {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.pm-legs b {
  display: block;
  font-family: Oswald, Impact, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pm-legs .is-bad b {
  color: var(--danger);
}

.price-odds {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.5rem;
  text-align: center;
}

.po span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.po b {
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.po.is-fair b {
  color: var(--accent);
}

.po-vs {
  color: #5c5c5c;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- scene 3: the threshold ---------- */

.thr-heads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 2.2rem;
}

.thr-head {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
}

.thr-head span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.thr-head b {
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(1.8rem, 7vw, 2.7rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.thr-head.is-bad {
  border-color: #5a2230;
  background: #1a1012;
}

.thr-head.is-bad b {
  color: var(--danger);
}

.thr-head.is-good {
  border-color: #3a4a18;
  background: #14180c;
}

.thr-head.is-good b {
  color: var(--accent);
}

.zone {
  margin-bottom: 1.4rem;
}

.zone-bar {
  position: relative;
  display: flex;
  height: 22px;
  border-radius: 6px;
  overflow: visible;
  border: 1px solid var(--line);
  background: #1c1c1c;
}

.zone-bar i {
  display: block;
  height: 100%;
}

.zone-bar i:first-child {
  border-radius: 5px 0 0 5px;
}

.zone-bar i:last-of-type {
  border-radius: 0 5px 5px 0;
}

.z-lose {
  width: 33.33%;
  background: #2a1418;
}

.z-dead {
  width: 15.87%;
  background: var(--danger);
}

.z-win {
  width: 50.79%;
  background: #3d4a32;
}

.zone-mark {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 3px;
  margin-left: -1.5px;
  background: var(--ink);
  border-radius: 2px;
  left: 40%;
  transition: left 0.12s linear;
}

.zone-mark b {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  font-family: Oswald, Impact, sans-serif;
  font-size: 0.8rem;
  background: var(--ink);
  color: var(--bg0);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.zone-labs {
  position: relative;
  height: 1.1rem;
  margin-top: 0.35rem;
}

.zone-labs span {
  position: absolute;
  font-size: 0.66rem;
  color: var(--muted);
  transform: translateX(-50%);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.zone-labs span:first-child {
  transform: none;
}

.zone-labs span:last-child {
  transform: none;
}

.zone-key {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.zone-key i {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: var(--danger);
  margin-right: 0.3rem;
  vertical-align: -1px;
}

.thr-slider {
  display: block;
  margin-bottom: 1rem;
}

.thr-slider span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.thr-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #2c2c2c;
  outline: none;
  margin: 0;
}

.thr-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg0);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: grab;
}

.thr-slider input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg0);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: grab;
}

.thr-slider input[type="range"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.thr-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.thr-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.75rem 0.9rem;
}

.thr-card .kicker {
  margin-bottom: 0.2rem;
  font-size: 0.64rem;
}

.thr-card b {
  display: block;
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(1.6rem, 6.5vw, 2.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.thr-card > span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.thr-card em {
  display: inline-block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
}

.thr-card.is-bad {
  border-color: #5a2230;
  background: #1a1012;
}

.thr-card.is-bad b {
  color: var(--danger);
}

.thr-card.is-bad em {
  background: var(--danger);
  color: #1a1012;
}

.thr-card.is-good {
  border-color: #3a4a18;
  background: #14180c;
}

.thr-card.is-good b {
  color: var(--accent);
}

.thr-card.is-good em {
  background: var(--accent);
  color: var(--accent-ink);
}

.thr-card.is-flat {
  border-color: var(--line);
  background: var(--panel);
}

.thr-card.is-flat b {
  color: var(--ink);
}

.thr-card.is-flat em {
  background: #2c2c2c;
  color: var(--muted);
}

.thr-chart {
  background: #101010;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 0.7rem 0.4rem;
}

.thr-plot {
  position: relative;
  padding-right: 4.6rem;
}

.thr-chart svg {
  display: block;
  width: 100%;
  height: 112px;
}

.c-lab {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  font-family: Oswald, Impact, sans-serif;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: top 0.12s linear;
}

.c-lab.is-book {
  color: var(--danger);
  background: #1a1012;
  border: 1px solid #5a2230;
}

.c-lab.is-peer {
  color: var(--accent);
  background: #14180c;
  border: 1px solid #3a4a18;
}

.c-gap {
  fill: rgba(198, 245, 66, 0.09);
}

.c-zero {
  stroke: #3a3a3a;
  stroke-width: 1;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}

.c-book,
.c-peer {
  fill: none;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.c-book {
  stroke: var(--danger);
}

.c-peer {
  stroke: var(--accent);
}

.thr-chart-labs {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.62rem;
  color: #5c5c5c;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.c-swing {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- scene 4: the scale ---------- */

.scale-stage {
  position: relative;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.1rem 1.2rem;
  margin-bottom: 0.8rem;
}

.scale-num {
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(2.4rem, 11vw, 4.4rem);
  line-height: 0.95;
  text-align: center;
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.4rem;
}

.scale-num small {
  display: block;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 0.24em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.scale-bar {
  display: flex;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  background: #1c1c1c;
  border: 1px solid var(--line);
}

.scale-bar i {
  display: block;
  height: 100%;
}

.s-paid {
  flex: 1;
  background: #3d4a32;
}

.s-kept {
  width: 0;
  background: var(--danger);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.scale-split {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.scale-slam {
  margin-top: 1.1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s, transform 0.45s;
}

.scale-slam.is-on {
  opacity: 1;
  transform: none;
}

.scale-slam b {
  display: block;
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  line-height: 1;
  color: var(--danger);
}

.scale-slam p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- the week strip + CTA row ---------- */

.week-strip {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.9rem;
  display: grid;
  gap: 0.4rem;
}

@media (min-width: 640px) {
  .week-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.week-strip li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.week-strip strong {
  display: block;
  color: var(--ink);
  font-family: Oswald, Impact, sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}

/* .site-cta carries margin-left:auto for the header bar; undo it inline. */
.cta-row .site-cta {
  margin-left: 0;
}

/* ---------- scene 6: the honest part ---------- */

.honest-yes {
  margin-top: 0.6rem;
}

.card.is-yes {
  border-color: #3a4a18;
  background: #14180c;
}

.card.is-yes p {
  color: #b9c4a4;
}

.pairing strong {
  color: var(--accent);
}

/* ---------- dock ---------- */

nav.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0b0b0bcc;
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  z-index: 15;
}

.dock-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow: hidden;
}

.nav-btn {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  min-width: 5.2rem;
  font-family: inherit;
  cursor: pointer;
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nav-btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 700;
  margin-left: auto;
}

.nav-btn.pulse {
  animation: pulse 1.1s ease infinite;
}

.count {
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 2.6rem;
  font-variant-numeric: tabular-nums;
}

.dots {
  display: flex;
  gap: 0.28rem;
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a3a3a;
  display: block;
}

.dots i.is-on {
  background: var(--accent);
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .board-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 1fr;
    height: 260px;
    row-gap: 0.6rem;
  }

  .board-zero {
    display: none;
  }

  .pl-name {
    font-size: 0.6rem;
  }

  .pl-pnl {
    font-size: 0.72rem;
  }

  .thr-plot {
    padding-right: 4rem;
  }

  .thr-chart-labs .c-swing {
    font-size: 0.58rem;
  }

  /* Twin stacks, but each board keeps all ten friends in one row so the
     two seasons still read as the same shape. */
  .twin-grid {
    grid-template-columns: 1fr;
  }

  .twin-side .board-grid {
    grid-template-columns: repeat(10, 1fr);
    grid-auto-rows: auto;
    height: 108px;
    row-gap: 0;
    gap: 0.1rem;
  }

  .twin-side .pl-pnl {
    display: none;
  }

  .twin-side .pl-bar {
    left: 8%;
    right: 8%;
  }

  .twin-nums b {
    font-size: 1.1rem;
  }

  .one-table {
    grid-template-columns: 1fr minmax(6.5rem, 1fr) 1fr;
    gap: 0.35rem;
  }

  .one-av {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .one-side b {
    font-size: 0.86rem;
  }

  .one-side i,
  .one-side em {
    font-size: 0.68rem;
  }

  .one-beat {
    font-size: 0.88rem;
    min-height: 3.4rem;
  }

  .twin-verdict span {
    min-width: 0;
  }

  .thr-heads,
  .thr-cards {
    grid-template-columns: 1fr;
  }

  .legbar {
    grid-template-columns: repeat(3, 1fr);
  }

  .price-odds {
    flex-direction: row;
  }

  .nav-btn {
    min-width: 4.2rem;
    padding: 0.6rem 0.6rem;
  }

  .zone-labs span:nth-child(2),
  .zone-labs span:nth-child(3) {
    font-size: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deck .scene.is-on,
  .sim-play,
  .nav-btn.pulse,
  .one-go,
  .one-next,
  .one-note,
  .twin-verdict,
  .slam {
    animation: none;
  }

  .one-chip {
    transition: none;
  }

  .pl-bar,
  .pm-bar i,
  .s-kept,
  .scale-slam {
    transition: none;
  }
}
