:root {
  --ink: #122b38;
  --ink-soft: #38515d;
  --navy: #082b3c;
  --navy-2: #0b3c50;
  --teal: #087d94;
  --teal-bright: #10a5b9;
  --lime: #b9dc4b;
  --lime-dark: #72961c;
  --yellow: #ffd84d;
  --paper: #f3f5ef;
  --paper-dark: #e7ebe3;
  --card: #ffffff;
  --line: #d9e1dc;
  --muted: #647781;
  --blue-box: #0786bd;
  --shadow-sm: 0 8px 24px rgba(9, 42, 57, 0.08);
  --shadow-lg: 0 26px 70px rgba(5, 35, 48, 0.16);
  --radius: 26px;
  --shell: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

::selection {
  background: var(--lime);
  color: var(--navy);
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-180%);
  border-radius: 10px;
  background: white;
  padding: 10px 15px;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 999;
  height: 4px;
  background: transparent;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--yellow));
  box-shadow: 0 0 14px rgba(185, 220, 75, 0.65);
}

/* Header */

.site-header {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(20, 171, 190, 0.25), transparent 30%),
    linear-gradient(132deg, #061f2e 0%, var(--navy) 48%, #0a4456 100%);
  color: white;
}

.site-header::before {
  position: absolute;
  right: -160px;
  bottom: -280px;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(255, 255, 255, 0.025),
    0 0 0 180px rgba(255, 255, 255, 0.018);
  content: "";
}

.court-lines {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(117deg, transparent 0 75%, rgba(255, 255, 255, 0.07) 75% 75.15%, transparent 75.15%),
    linear-gradient(27deg, transparent 0 80%, rgba(255, 255, 255, 0.05) 80% 80.15%, transparent 80.15%);
  background-size: 390px 390px, 470px 470px;
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-mark svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.7;
}

.brand > span:last-child {
  display: grid;
  line-height: 1.1;
}

.brand strong {
  letter-spacing: -0.01em;
  font-size: 17px;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.61);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 10px 14px 10px 17px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.2s ease;
}

.source-link:hover,
.source-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.source-link svg {
  width: 18px;
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.section-kicker,
.step-kicker,
.rail-label {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-stats {
  display: flex;
  gap: clamp(22px, 4vw, 44px);
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats div {
  display: grid;
}

.hero-stats strong {
  color: white;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scoreboard-wrap {
  position: relative;
  width: min(100%, 460px);
  justify-self: end;
  transform: rotate(1.5deg);
}

.scoreboard-glow {
  position: absolute;
  inset: 12% 3% -5%;
  border-radius: 40px;
  background: rgba(13, 177, 196, 0.18);
  filter: blur(38px);
}

.scoreboard {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(9, 67, 88, 0.96), rgba(5, 37, 53, 0.98));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.scoreboard::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.08), transparent 35%);
  content: "";
  pointer-events: none;
}

.scoreboard-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  padding: 16px 19px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(185, 220, 75, 0.12);
}

.serve-status {
  margin-left: auto;
  color: var(--lime);
}

.serve-status b {
  margin-left: 4px;
  font-size: 15px;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr 38px 1fr;
  gap: 14px;
  align-items: center;
  padding: 22px 24px 18px;
}

.team {
  display: grid;
  gap: 5px;
}

.team-home {
  text-align: right;
}

.team span {
  color: rgba(255, 255, 255, 0.61);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team strong {
  font-size: 64px;
  font-variant-numeric: tabular-nums;
  font-weight: 820;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.net {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  height: 61px;
  opacity: 0.22;
}

.net span {
  border-left: 1px solid white;
  border-right: 1px solid white;
}

.rotation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 240, 178, 0.95);
  color: #17313c;
}

.rotation-grid span {
  display: grid;
  min-height: 35px;
  place-items: center;
  border-right: 1px dashed rgba(22, 47, 57, 0.24);
  border-bottom: 1px dashed rgba(22, 47, 57, 0.24);
  font-size: 14px;
  font-weight: 850;
}

.rotation-grid span:nth-child(4n) {
  border-right: 0;
}

.rotation-grid span:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.rotation-grid .libero {
  background: var(--blue-box);
  color: white;
}

.scoreboard-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 17px 24px 24px;
}

.scoreboard-footer div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 5px;
  align-items: center;
}

.scoreboard-footer small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.scoreboard-footer strong {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--lime);
  font-size: 11px;
}

.scoreboard-note {
  position: relative;
  width: 85%;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  text-align: center;
}

.scoreboard-note span {
  margin-right: 5px;
  color: var(--lime);
  font-weight: 900;
  text-transform: uppercase;
}

/* Sticky navigation */

.phase-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(18, 43, 56, 0.1);
  background: rgba(249, 250, 246, 0.94);
  box-shadow: 0 8px 28px rgba(9, 42, 57, 0.06);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.phase-scroll {
  display: flex;
  align-self: stretch;
  gap: 4px;
}

.phase-link {
  position: relative;
  display: flex;
  min-width: 126px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.phase-link::after {
  position: absolute;
  right: 15px;
  bottom: 0;
  left: 15px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--teal);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: 0.2s ease;
}

.phase-link span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: var(--paper-dark);
  font-size: 9px;
  font-weight: 900;
}

.phase-link strong {
  font-weight: 850;
}

.phase-link:hover,
.phase-link:focus-visible,
.phase-link.is-active {
  color: var(--navy);
}

.phase-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.phase-link.is-active span {
  background: var(--navy);
  color: var(--lime);
}

/* Main guide */

.guide-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(44px, 6vw, 82px);
  align-items: start;
  padding-top: 78px;
  padding-bottom: 120px;
}

.guide-rail {
  position: sticky;
  top: 112px;
}

.rail-card {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.rail-label {
  color: var(--teal);
}

.rail-card ol {
  display: grid;
  gap: 4px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.2s ease;
}

.rail-link span {
  color: #9aabae;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.rail-link:hover,
.rail-link:focus-visible,
.rail-link.is-active {
  background: white;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.rail-link.is-active span {
  color: var(--teal);
}

.rail-note {
  display: grid;
  gap: 9px;
  margin-top: 28px;
  border-radius: 15px;
  background: #e7eee8;
  padding: 14px;
}

.rail-note svg {
  width: 19px;
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-width: 1.7;
}

.rail-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.guide-content {
  min-width: 0;
}

.phase-section {
  padding-bottom: 118px;
}

.section-heading {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 760px;
  margin-bottom: 39px;
}

.phase-number {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(8, 125, 148, 0.25);
  border-radius: 20px;
  background: rgba(8, 125, 148, 0.07);
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.section-kicker {
  color: var(--teal);
}

.section-heading h2,
.quick-reference h2 {
  margin: 7px 0 9px;
  color: var(--navy);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-heading > div:last-child > p:last-child,
.quick-reference-heading > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.step-list {
  display: grid;
  gap: 24px;
}

.step-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.76fr) minmax(400px, 1.3fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(18, 43, 56, 0.08);
  border-radius: var(--radius);
  background: var(--card);
  padding: clamp(24px, 3.3vw, 38px);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.step-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--lime);
  content: "";
  opacity: 0;
  transform: scaleY(0.5);
  transition: 0.25s ease;
}

.step-card.is-complete {
  border-color: rgba(114, 150, 28, 0.3);
  box-shadow: 0 8px 28px rgba(114, 150, 28, 0.1);
}

.step-card.is-complete::before {
  opacity: 1;
  transform: scaleY(1);
}

.step-copy {
  min-width: 0;
}

.step-heading {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--navy);
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.step-kicker {
  color: var(--teal);
  font-size: 9px;
}

.step-heading h3 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: clamp(22px, 2.4vw, 29px);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.step-body {
  margin: 21px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.step-body strong {
  color: var(--navy);
}

kbd {
  display: inline-block;
  border: 1px solid #d5ddd8;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #f3f5f1;
  padding: 1px 6px;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.88em;
  font-weight: 850;
  line-height: 1.35;
  white-space: nowrap;
}

.action-path {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 20px;
}

.action-path span {
  border-radius: 8px;
  background: #eaf1eb;
  padding: 6px 8px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 850;
}

.action-path b {
  color: #9baaa7;
  font-size: 11px;
}

.notice {
  margin-top: 20px;
  border-left: 3px solid var(--teal);
  border-radius: 0 9px 9px 0;
  background: #edf5f3;
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.notice strong {
  color: var(--teal);
}

.notice-yellow {
  border-color: #d7ab14;
  background: #fff8dc;
}

.notice-yellow strong {
  color: #8c6800;
}

.mini-checklist {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 11px;
  list-style: none;
}

.mini-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-checklist li span {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(185, 220, 75, 0.15);
}

.libero-key {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.libero-key > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-box);
  color: white;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 7px 16px rgba(7, 134, 189, 0.2);
}

.libero-key p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.libero-key strong {
  color: var(--navy);
}

.sub-flow {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 20px;
}

.sub-flow span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  background: #eff3ed;
  color: var(--navy);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.sub-flow span:first-child {
  background: var(--lime);
}

.sub-flow small {
  font-size: 7px;
  letter-spacing: 0.12em;
}

.sub-flow b {
  color: var(--teal);
}

.shot-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d5dedb;
  border-radius: 18px;
  background: #f1f4f1;
}

.shot-card figcaption {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.35;
}

.shot-card figcaption span {
  flex: 0 0 auto;
  border-radius: 6px;
  background: var(--navy);
  padding: 4px 6px;
  color: var(--lime);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stacked-shots {
  display: grid;
  gap: 13px;
}

.step-card-compact {
  grid-template-columns: minmax(250px, 1fr) minmax(190px, 0.62fr);
}

.shot-card-portrait {
  max-width: 300px;
  justify-self: center;
}

.shot-card-portrait img {
  margin-top: -1px;
}

/* Quick reference */

.quick-reference {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 10%, rgba(16, 165, 185, 0.2), transparent 31%),
    var(--navy);
  padding: clamp(30px, 5vw, 58px);
  color: white;
  box-shadow: var(--shadow-lg);
}

.quick-reference::after {
  position: absolute;
  right: -100px;
  bottom: -190px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.025);
  content: "";
}

.quick-reference-heading,
.sequence-list,
.quick-reference .button {
  position: relative;
  z-index: 1;
}

.quick-reference .section-kicker {
  color: var(--lime);
}

.quick-reference h2 {
  color: white;
  font-size: clamp(36px, 4vw, 50px);
}

.quick-reference-heading > p:last-child {
  color: rgba(255, 255, 255, 0.59);
}

.sequence-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 34px 0 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  list-style: none;
}

.sequence-list li {
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  background: rgba(4, 34, 48, 0.9);
  padding: 17px;
}

.sequence-list > li > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  background: rgba(185, 220, 75, 0.13);
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
}

.sequence-list div {
  display: grid;
}

.sequence-list strong {
  font-size: 12px;
}

.sequence-list small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.47);
  font-size: 9px;
  line-height: 1.45;
}

.button-dark {
  background: var(--lime);
  color: var(--navy);
}

.button-dark span {
  font-size: 17px;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(18, 43, 56, 0.1);
  background: #e9ede6;
  padding: 38px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-brand {
  color: var(--navy);
}

.footer-brand .brand-mark {
  border-color: rgba(8, 43, 60, 0.13);
  background: rgba(8, 43, 60, 0.05);
}

.footer-brand small {
  color: var(--muted);
}

.footer-inner > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.footer-inner > p a {
  color: var(--teal);
  font-weight: 800;
}

/* Mobile dock */

.mobile-dock {
  display: none;
}

/* Responsive */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 45px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .phase-link {
    min-width: 110px;
    padding-inline: 12px;
  }

  .guide-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 38px;
  }

  .step-card {
    grid-template-columns: 1fr;
  }

  .step-card .shot-card,
  .step-card .stacked-shots {
    width: 100%;
  }

  .step-card-compact {
    grid-template-columns: 1fr minmax(190px, 0.7fr);
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 70px;
    padding-top: 62px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero h1 {
    font-size: clamp(54px, 9vw, 76px);
  }

  .scoreboard-wrap {
    width: min(100%, 520px);
    justify-self: center;
  }

  .phase-scroll {
    width: 100%;
  }

  .phase-link {
    flex: 1;
    justify-content: center;
  }

  .guide-layout {
    display: block;
    padding-top: 62px;
  }

  .guide-rail {
    display: none;
  }

  .step-card {
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  }

  .step-card-compact {
    grid-template-columns: minmax(230px, 1fr) minmax(190px, 0.7fr);
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    padding-bottom: calc(73px + env(safe-area-inset-bottom));
  }

  .shell {
    width: min(100% - 30px, var(--shell));
  }

  .site-header::before {
    right: -360px;
  }

  .topbar {
    min-height: 76px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-mark svg {
    width: 27px;
    height: 27px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 8px;
  }

  .source-link {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
  }

  .source-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .hero {
    gap: 54px;
    padding: 52px 0 74px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(47px, 14vw, 68px);
    line-height: 0.94;
  }

  .hero h1 em {
    font-size: 0.72em;
  }

  .hero-intro {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    padding-inline: 13px;
  }

  .hero-stats {
    justify-content: space-between;
    gap: 12px;
    margin-top: 35px;
  }

  .scoreboard-wrap {
    transform: rotate(1deg);
  }

  .score-row {
    padding-inline: 19px;
  }

  .team strong {
    font-size: 54px;
  }

  .rotation-grid {
    margin-inline: 19px;
  }

  .scoreboard-footer {
    padding-inline: 19px;
  }

  .phase-nav {
    top: 0;
  }

  .nav-inner {
    width: 100%;
    min-height: 64px;
  }

  .phase-scroll {
    overflow-x: auto;
    padding: 0 9px;
    scrollbar-width: none;
  }

  .phase-scroll::-webkit-scrollbar {
    display: none;
  }

  .phase-link {
    min-width: auto;
    flex: 0 0 auto;
    gap: 7px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .phase-link::after {
    right: 8px;
    left: 8px;
  }

  .phase-link span {
    width: 25px;
    height: 25px;
    border-radius: 7px;
    font-size: 8px;
  }

  .guide-layout {
    padding-top: 51px;
    padding-bottom: 76px;
  }

  .phase-section {
    padding-bottom: 85px;
  }

  .section-heading {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 27px;
  }

  .phase-number {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 11px;
  }

  .section-heading h2,
  .quick-reference h2 {
    margin-top: 6px;
    font-size: 36px;
  }

  .section-heading > div:last-child > p:last-child,
  .quick-reference-heading > p:last-child {
    font-size: 14px;
  }

  .step-list {
    gap: 17px;
  }

  .step-card,
  .step-card-compact {
    grid-template-columns: 1fr;
    gap: 26px;
    border-radius: 22px;
    padding: 22px;
  }

  .step-heading h3 {
    font-size: 24px;
  }

  .step-body {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.67;
  }

  .shot-card {
    border-radius: 15px;
  }

  .shot-card figcaption {
    min-height: 51px;
    font-size: 10px;
  }

  .shot-card-portrait {
    width: min(100%, 260px);
  }

  .quick-reference {
    border-radius: 25px;
    padding: 28px 22px;
  }

  .sequence-list {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .footer-inner {
    display: grid;
    justify-content: start;
  }

  .mobile-dock {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 90;
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr) 43px;
    gap: 9px;
    align-items: center;
    min-height: 59px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 19px;
    background: rgba(7, 37, 51, 0.95);
    padding: 7px;
    color: white;
    box-shadow: 0 16px 44px rgba(4, 30, 42, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 28px));
    transition: opacity 0.22s ease, transform 0.22s ease;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .mobile-dock.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .mobile-dock button {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.07);
    color: white;
  }

  .mobile-dock button:disabled {
    opacity: 0.28;
  }

  .mobile-dock svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
  }

  .mobile-dock > div {
    display: grid;
    min-width: 0;
    justify-items: center;
    line-height: 1.2;
  }

  .mobile-dock small {
    color: rgba(255, 255, 255, 0.47);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .mobile-dock strong {
    max-width: 100%;
    margin-top: 3px;
    overflow: hidden;
    color: var(--lime);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

}

@media (max-width: 400px) {
  .shell {
    width: calc(100% - 24px);
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-stats span {
    font-size: 8px;
  }

  .scoreboard-footer {
    grid-template-columns: 1fr;
  }

  .phase-link {
    padding-inline: 7px;
  }

  .phase-link strong {
    font-size: 10px;
  }

  .section-heading h2,
  .quick-reference h2 {
    font-size: 33px;
  }

  .step-card,
  .step-card-compact {
    padding: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  body {
    padding: 0;
    background: white;
    color: black;
  }

  .site-header {
    min-height: 0;
    background: white;
    color: black;
  }

  .court-lines,
  .scoreboard-wrap,
  .source-link,
  .hero-actions,
  .phase-nav,
  .guide-rail,
  .mobile-dock,
  .reading-progress,
  .site-footer,
  .quick-reference .button {
    display: none !important;
  }

  .topbar {
    min-height: 56px;
    border-color: #ddd;
  }

  .brand small,
  .hero-intro,
  .hero-stats span {
    color: #555;
  }

  .brand-mark {
    border-color: #ddd;
  }

  .hero {
    display: block;
    padding: 32px 0 45px;
  }

  .hero h1 {
    color: black;
    font-size: 48px;
  }

  .hero h1 em,
  .eyebrow {
    color: #4f7200;
  }

  .guide-layout {
    display: block;
    width: 100%;
    padding: 0;
  }

  .phase-section {
    padding-bottom: 34px;
    break-before: page;
  }

  .phase-section:first-child {
    break-before: auto;
  }

  .step-card,
  .step-card-compact {
    grid-template-columns: 40% 60%;
    gap: 18px;
    margin-bottom: 14px;
    border: 1px solid #ccc;
    padding: 18px;
    box-shadow: none;
    break-inside: avoid;
  }

  .step-body {
    font-size: 11px;
  }

  .shot-card figcaption {
    font-size: 8px;
  }

  .quick-reference {
    background: #eee;
    color: black;
    box-shadow: none;
    break-before: page;
  }

  .quick-reference h2 {
    color: black;
  }

  .quick-reference-heading > p:last-child {
    color: #555;
  }

  .sequence-list li {
    background: white;
    color: black;
  }

  .sequence-list small {
    color: #555;
  }
}
