.workout-page {
  background: var(--black);
  overflow-x: hidden;
}

.workout-hero {
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  padding-top: calc(var(--header-height) + 72px) !important;
  background:
    linear-gradient(120deg, rgba(5, 6, 8, 0.96), rgba(5, 6, 8, 0.72)),
    radial-gradient(circle at 72% 36%, rgba(225, 6, 0, 0.24), transparent 28%),
    #080b0e;
}

.workout-title {
  max-width: 920px;
  font-size: clamp(4.8rem, 16vw, 13rem);
  line-height: 0.84;
}

.workout-title span {
  color: var(--hot-red);
}

.workout-sub {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(247, 247, 244, 0.74);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

.workout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.workout-console {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(247, 247, 244, 0.18);
  background:
    linear-gradient(180deg, rgba(225, 6, 0, 0.12), transparent),
    rgba(247, 247, 244, 0.045);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
}

.console-label,
.workout-console p {
  color: var(--steel);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workout-console strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(4rem, 10vw, 6.6rem);
  line-height: 0.95;
}

.console-progress {
  height: 6px;
  overflow: hidden;
  background: rgba(247, 247, 244, 0.14);
}

.console-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--hot-red);
  transition: width 300ms ease;
}

.movement-section {
  background: var(--white);
  color: var(--ink);
}

.movement-section .section-title {
  color: var(--ink);
}

.movement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.movement-card {
  display: grid;
  min-height: 260px;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(16, 24, 32, 0.14);
  background: #f0f2f3;
}

.movement-card span {
  color: var(--hot-red);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.movement-card h3 {
  color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.movement-card p {
  margin: 0;
  color: #515b65;
  line-height: 1.55;
}

.movement-card strong {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

/* ── Difficulty selector ── */
.difficulty-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.diff-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: 1px solid rgba(247, 247, 244, 0.22);
  background: rgba(247, 247, 244, 0.06);
  color: rgba(247, 247, 244, 0.72);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease, opacity 200ms ease;
}

.diff-btn:hover {
  border-color: rgba(247, 247, 244, 0.5);
  color: var(--white);
}

.diff-btn.active {
  background: var(--hot-red);
  border-color: var(--hot-red);
  color: var(--white);
}

.diff-locked {
  opacity: 0.72;
}

.diff-locked:hover {
  opacity: 1;
}

.diff-extreme.diff-locked {
  border-color: rgba(225, 6, 0, 0.4);
  color: rgba(225, 6, 0, 0.8);
}

.diff-extreme.diff-locked:hover {
  border-color: rgba(225, 6, 0, 0.7);
  color: var(--hot-red);
}

/* ── Paywall overlay ── */
.diff-paywall {
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vw, 96px) var(--section-pad);
}

.diff-paywall[hidden] {
  display: none;
}

.diff-paywall-inner {
  display: grid;
  place-items: center;
  gap: 18px;
  max-width: 520px;
  width: 100%;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid rgba(225, 6, 0, 0.28);
  background: rgba(5, 6, 8, 0.96);
  text-align: center;
}

.diff-paywall-icon {
  color: var(--hot-red);
}

.diff-paywall-badge {
  color: var(--hot-red);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}

.diff-paywall-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

.diff-paywall-body {
  color: #515b65;
  line-height: 1.65;
  margin: 0;
  max-width: 380px;
}

.diff-paywall-back {
  background: none;
  border: none;
  color: #8a9099;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 180ms ease;
}

.diff-paywall-back:hover {
  color: var(--ink);
}

/* ── Members-only tier badge (used in workout-a/b/c.html) ── */
.tier-easy {
  border: 1px solid rgba(247, 247, 244, 0.22);
  background: rgba(247, 247, 244, 0.06);
  color: rgba(247, 247, 244, 0.55);
}

.tier-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 10px;
  line-height: 1;
}

.tier-moderate {
  border: 1px solid rgba(247, 247, 244, 0.3);
  background: rgba(247, 247, 244, 0.08);
  color: rgba(247, 247, 244, 0.7);
}

.tier-hard {
  border: 1px solid rgba(225, 6, 0, 0.5);
  background: rgba(225, 6, 0, 0.12);
  color: var(--hot-red);
}

.tier-extreme {
  border: 1px solid var(--hot-red);
  background: var(--hot-red);
  color: var(--white);
}

/* ── Phase Briefing ── */
.phase-briefing {
  position: relative;
  background: #0a0e14;
  border-bottom: 1px solid rgba(247, 247, 244, 0.06);
}

.phase-briefing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hot-red) 0%, rgba(225, 6, 0, 0.3) 50%, transparent 100%);
  pointer-events: none;
}

.phase-briefing-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px var(--section-pad);
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 24px;
  transition: background 200ms ease;
}

.phase-briefing-toggle:hover {
  background: rgba(247, 247, 244, 0.025);
}

.phase-briefing-toggle-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phase-briefing-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--hot-red);
  padding: 4px 12px;
  line-height: 1.6;
  white-space: nowrap;
}

.phase-briefing-title {
  font-family: Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(247, 247, 244, 0.5);
}

.phase-briefing-chevron {
  color: rgba(247, 247, 244, 0.28);
  flex-shrink: 0;
  transition: transform 300ms ease, color 200ms ease;
}

.phase-briefing-toggle:hover .phase-briefing-chevron {
  color: rgba(247, 247, 244, 0.55);
}

.phase-briefing[data-open="true"] .phase-briefing-chevron {
  transform: rotate(180deg);
}

.phase-briefing-body {
  border-top: 1px solid rgba(247, 247, 244, 0.06);
}

.phase-briefing-body[hidden] {
  display: none;
}

.phase-briefing-inner {
  padding: 36px var(--section-pad) 40px;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.phase-briefing-heading {
  font-family: Anton, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
}

.phase-briefing-intro {
  font-size: 0.9rem;
  color: rgba(247, 247, 244, 0.6);
  line-height: 1.8;
  margin: 0;
  max-width: 780px;
}

.phase-briefing-rules {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  counter-reset: rule-counter;
  border-top: 1px solid rgba(247, 247, 244, 0.07);
  padding-top: 24px;
}

.phase-briefing-rules li {
  counter-increment: rule-counter;
  padding: 22px 24px;
  border: 1px solid rgba(247, 247, 244, 0.07);
  background: rgba(247, 247, 244, 0.02);
  font-size: 0.82rem;
  color: rgba(247, 247, 244, 0.55);
  line-height: 1.65;
  transition: border-color 200ms ease, background 200ms ease;
}

.phase-briefing-rules li:hover {
  border-color: rgba(225, 6, 0, 0.25);
  background: rgba(225, 6, 0, 0.03);
}

.phase-briefing-rules li::before {
  content: "0" counter(rule-counter);
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--hot-red);
  margin-bottom: 12px;
}

.phase-briefing-rules li strong {
  display: block;
  color: var(--white);
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 6px;
  letter-spacing: 0.005em;
}

.phase-briefing-footer {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(247, 247, 244, 0.25);
  line-height: 1.65;
  margin: 0;
  border-top: 1px solid rgba(247, 247, 244, 0.05);
  padding-top: 20px;
}

@media (max-width: 768px) {
  .phase-briefing-rules {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .phase-briefing-inner {
    padding: 24px var(--section-pad) 28px;
    gap: 20px;
  }
}

.letter-library {
  background: #0b0f13;
}

.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 8px;
}

.letter-tile {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(247, 247, 244, 0.14);
  background: rgba(247, 247, 244, 0.045);
  color: var(--white);
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(1.6rem, 4vw, 3rem);
  transition:
    background 240ms ease,
    border-color 240ms ease,
    color 240ms ease,
    transform 240ms ease;
}

.letter-tile:hover,
.letter-tile.active {
  border-color: var(--hot-red);
  background: var(--hot-red);
  color: var(--white);
  transform: translateY(-3px);
}

@media (max-width: 960px) {
  .workout-hero,
  .movement-grid {
    grid-template-columns: 1fr;
  }

  .workout-hero {
    min-height: auto;
  }

  .movement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alphabet-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .workout-hero {
    padding-top: calc(var(--header-height) + 42px) !important;
  }

  .workout-title {
    font-size: clamp(4rem, 24vw, 6.4rem);
  }

  .workout-actions,
  .workout-actions .button {
    width: 100%;
  }

  .movement-grid {
    grid-template-columns: 1fr;
  }

  .movement-card {
    min-height: 220px;
  }

  .alphabet-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
