/* ==========================================================
   Viewtickermatesm — Cartoon Sport design system
   Bold outlines, hard offset shadows, bright court colours
   Spacing scale: 4 / 8 / 16 / 24 / 40 / 64
   ========================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --sky: #8fd3ff;
  --sky-light: #e3f5ff;
  --paper: #ffffff;
  --cream: #fff8e7;
  --ink: #1d1a3a;
  --muted: #4a4668;
  --yellow: #ffd23f;
  --yellow-deep: #f5b700;
  --yellow-soft: #fff3c4;
  --red: #ff4f5e;
  --red-deep: #d82338;
  --blue: #2f6bff;
  --blue-deep: #1f4fd1;
  --green: #33c46b;
  --green-deep: #1f8a47;
  --orange: #ff9a3c;
  --orange-soft: #ffe3c7;
  --line: var(--ink);
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 22px;
  --radius-sm: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Fredoka", "Baloo 2", "Nunito", "Chalkboard SE", "Comic Sans MS", "Comic Neue", "Trebuchet MS", system-ui, sans-serif;
  --display: "Luckiest Guy", "Bangers", "Baloo 2", "Fredoka", "Chalkboard SE", "Comic Sans MS", "Arial Black", sans-serif;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--sky);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.55) 2px, transparent 2.6px),
    radial-gradient(ellipse 60% 40% at 90% -5%, rgba(255, 210, 63, 0.55), transparent 70%),
    linear-gradient(180deg, #8fd3ff 0%, #bfe6ff 45%, #e3f5ff 100%);
  background-size: 24px 24px, auto, auto;
  background-attachment: fixed;
}

h1, h2, h3, h4, p, li, a, span, td, th, dt, dd, label, address, figcaption, button, strong, legend, summary {
  overflow-wrap: anywhere;
}

h1, h2, h3, h4 {
  margin: 0 0 16px;
  line-height: 1.15;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.01em;
}
h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.7rem);
  text-shadow: 3px 3px 0 var(--yellow), 6px 6px 0 rgba(29, 26, 58, 0.18);
}
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); color: var(--blue-deep); text-shadow: 2px 2px 0 var(--yellow); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 8px; }
li::marker { color: var(--red-deep); font-weight: 800; }
strong { color: var(--ink); font-weight: 800; }

a { color: var(--blue-deep); font-weight: 700; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--red-deep); }

svg, canvas { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: 10px;
  border: var(--border);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.skip-link:focus { top: 8px; background: var(--yellow); color: var(--ink); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.highlight {
  color: var(--red);
  text-shadow: 3px 3px 0 var(--ink);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.lead { font-size: 1.14rem; color: var(--ink); max-width: 60ch; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 999px;
  border: var(--border);
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary {
  background: var(--yellow);
  color: var(--ink);
}
.btn-primary:hover { background: #ffdc66; color: var(--ink); }
.btn-primary:disabled {
  background: #d9d6e6;
  color: #4a4668;
  box-shadow: 2px 2px 0 var(--ink);
  transform: none;
  cursor: not-allowed;
}
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--sky-light); color: var(--ink); }
.btn-cta {
  min-height: 36px;
  padding: 6px 16px;
  font-size: 0.92rem;
  background: var(--red-deep);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-cta:hover { background: var(--red); color: #fff; box-shadow: 5px 5px 0 var(--ink); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }

.button-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.button-row > * { min-width: 0; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--yellow);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { background: none; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 40;
  background: var(--yellow);
  color: var(--ink);
  border-bottom: 4px solid var(--ink);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--red) 0 24px, #fff 24px 48px, var(--blue) 48px 72px, #fff 72px 96px);
  border-bottom: 3px solid var(--ink);
  pointer-events: none;
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.header-inner > * { min-width: 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.brand:hover { color: var(--ink); }
.brand-mark-volleyball-logo { flex: 0 0 auto; filter: drop-shadow(2px 2px 0 var(--ink)); }
.brand-mark-volleyball-logo circle { fill: #fff; stroke: var(--ink); stroke-width: 2.4; }
.brand-mark-volleyball-logo path { stroke: var(--blue); stroke-width: 2.4; }
.brand-mark-volleyball-logo path + path { stroke: var(--red); stroke-width: 1.8; }
.brand-name { color: var(--ink); min-width: 0; }
.site-nav { justify-self: center; min-width: 0; }
.nav-list { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav-list li { margin: 0; min-width: 0; }
.nav-list a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.2s ease;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-2deg);
}
.header-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.nav-toggle:hover { background: var(--sky-light); color: var(--ink); }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Sections & cards ---------- */
.section { margin-block: 64px; }
.section-head { max-width: 780px; margin-bottom: 40px; }

.glass {
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius);
  border: var(--border);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.glass--flush { padding: 8px; }

.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
}

.panel-title { margin: 0; font-size: 1.12rem; color: var(--ink); text-shadow: none; }
.panel-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.panel-note { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- Stats ---------- */
.stat { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; }
.stat dd, .stat dt { margin: 0; }
.stat-value {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--blue-deep);
}
.stat-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero { padding-top: 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: 24px;
  margin: 40px 0 0;
  padding: 24px;
  border-radius: var(--radius-sm);
  border: var(--border);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  border-radius: 32px;
  border: 4px solid var(--ink);
  background:
    radial-gradient(circle at 80% 18%, #fff3a6 0 9%, var(--yellow) 9.5% 14%, transparent 14.5%),
    linear-gradient(180deg, #6ec3ff 0%, #b8e4ff 62%, #ffcf8a 62.5%, #ff9a3c 100%);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
  transform: rotate(1.5deg);
}
.hero-trajectory-scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-trajectory-scene-svg > line { stroke: var(--ink); opacity: 1; }
.hero-net-mesh-graphic { stroke: var(--ink); opacity: 0.85; }
.hero-net-mesh-graphic rect { fill: rgba(255, 255, 255, 0.6); }
.hero-net-mesh-graphic line:last-child { stroke: #fff; }
.hero-trajectory-scene-svg circle { stroke: var(--red-deep); }
#heroArcGradient stop:first-child { stop-color: #ff4f5e; }
#heroArcGradient stop:last-child { stop-color: #1f4fd1; }
.hero-volleyball-canvas {
  position: absolute;
  z-index: 1;
  left: 24%;
  top: 18%;
  width: 52%;
  height: auto;
  filter: drop-shadow(8px 10px 0 rgba(29, 26, 58, 0.35));
  animation: heroBounce 1.6s ease-in-out infinite;
}
@keyframes heroBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-arc-trail { stroke-dasharray: 1.4 1.2; opacity: 1; stroke-width: 4; }
.hero-arc-comet {
  stroke: #fff;
  stroke-dasharray: 10 120;
  stroke-dashoffset: 10;
  filter: drop-shadow(2px 2px 0 #1d1a3a);
  animation: heroComet 3.2s linear infinite;
}
@keyframes heroComet {
  from { stroke-dashoffset: 10; }
  to { stroke-dashoffset: -100; }
}

.page-hero { padding-top: 48px; }
.breadcrumb { margin-bottom: 24px; font-size: 0.92rem; color: var(--muted); font-weight: 700; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "▸"; margin-right: 8px; color: var(--red-deep); }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- Arena ---------- */
.howto-list { margin-top: 24px; color: var(--ink); }
.arena-shell { display: flex; flex-direction: column; gap: 24px; }
.arena-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.arena-grid > * { min-width: 0; }
.arena-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.arena-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.court-wrap { position: relative; }

/* Interactive game surfaces: no text selection, copy callouts, drag ghosts or tap flashes while holding */
.court-wrap,
.side-wrap,
.court-canvas,
.side-canvas,
.result-flash,
.control-panel .readout,
.hold-serve-button,
.zone-map,
.zone-btn,
.power-meter {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
}
body.is-holding-serve,
body.is-holding-serve * {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

.court-canvas, .side-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 3px solid var(--ink);
  background: #4aa3ff;
  color: var(--ink);
  touch-action: manipulation;
  cursor: crosshair;
}
.side-canvas { cursor: default; background: #d9f1ff; }
.court-canvas:focus-visible { outline: 4px solid var(--red); outline-offset: 3px; }
.arena-shell.is-charging .court-canvas { box-shadow: 0 0 0 4px var(--yellow), 0 0 0 7px var(--ink); }

.result-flash {
  position: absolute;
  top: 24px;
  left: 50%;
  margin: 0;
  padding: 8px 24px;
  border-radius: 999px;
  border: var(--border);
  background: #fff;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-50%, 8px) scale(0.8) rotate(-3deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: calc(100% - 32px);
}
.result-flash.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(-3deg); }
.result-flash.is-ace { background: var(--yellow); color: var(--ink); }
.result-flash.is-in { background: var(--green); color: var(--ink); }
.result-flash.is-out { background: var(--red-deep); color: #fff; }
.result-flash.is-net { background: var(--blue-deep); color: #fff; }

.control-panel { display: flex; flex-direction: column; gap: 24px; }
.readout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.readout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink);
  background: var(--sky-light);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.readout-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.readout-value { font-family: var(--display); font-size: 1.25rem; font-weight: 800; color: var(--blue-deep); }

.field-label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 800; color: var(--ink); }
.meter-block, .range-field { min-width: 0; }
.power-meter {
  display: block;
  width: 100%;
  height: 22px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}
.power-meter::-webkit-progress-bar { background: #fff; border-radius: 999px; }
.power-meter::-webkit-progress-value {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0 8px, transparent 8px 16px), linear-gradient(90deg, #33c46b, #ffd23f 55%, #ff4f5e);
  border-radius: 999px;
}
.power-meter::-moz-progress-bar {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0 8px, transparent 8px 16px), linear-gradient(90deg, #33c46b, #ffd23f 55%, #ff4f5e);
  border-radius: 999px;
}
.range-input { width: 100%; accent-color: var(--red-deep); }
.toggle-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.toggle-input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--blue-deep); }
.hold-serve-button { min-height: 58px; font-size: 1.1rem; background: var(--red-deep); color: #fff; user-select: none; -webkit-user-select: none; touch-action: none; }
.hold-serve-button:hover { background: var(--red); color: #fff; }
.arena-shell.is-charging .hold-serve-button { background: var(--yellow); color: var(--ink); transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.zone-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.zone-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 56px;
  padding: 8px;
  border-radius: 12px;
  border: 3px solid var(--ink);
  background: var(--orange-soft);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.2s ease;
}
.zone-btn:hover { background: #ffd0a3; color: var(--ink); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.zone-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.zone-btn.is-selected { background: var(--yellow); color: var(--ink); transform: rotate(-1.5deg); }
.zone-num { font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.zone-pts { font-size: 0.82rem; font-weight: 700; color: var(--red-deep); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
  margin: 0;
}

.telemetry-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; }
.telemetry-row > * { min-width: 0; }
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: 24px 16px;
  margin: 0;
}
.telemetry-result {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--sky-light);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
}
.telemetry-result.is-ace { background: var(--yellow); color: var(--ink); }
.telemetry-result.is-in { background: var(--green); color: var(--ink); }
.telemetry-result.is-out { background: var(--red-deep); color: #fff; }
.telemetry-result.is-net { background: var(--blue-deep); color: #fff; }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.data-table th,
.data-table td { padding: 12px 16px; text-align: left; border-bottom: 2px dashed rgba(29, 26, 58, 0.25); vertical-align: top; }
.data-table th {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue-deep);
  border-bottom: 3px solid var(--ink);
}
.data-table th:first-child { border-top-left-radius: 10px; }
.data-table th:last-child { border-top-right-radius: 10px; }
.data-table td { color: var(--ink); }
.data-table tbody tr:nth-child(even) td { background: var(--sky-light); }
.data-table .res-ace { color: #9a5b00; font-weight: 800; }
.data-table .res-in { color: var(--green-deep); font-weight: 800; }
.data-table .res-out { color: var(--red-deep); font-weight: 800; }
.data-table .res-net { color: var(--blue-deep); font-weight: 800; }

.challenge-summary { display: flex; flex-direction: column; gap: 16px; background: var(--yellow-soft); }
.challenge-summary .btn-ghost { background: #fff; }
.summary-grade { margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--red-deep); text-shadow: 3px 3px 0 var(--ink); }
.summary-text { margin: 0; }

/* ---------- Entry cards ---------- */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
}
.entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.entry-card:nth-child(3n+1) { background: #fff; }
.entry-card:nth-child(3n+2) { background: var(--yellow-soft); }
.entry-card:nth-child(3n+3) { background: #e8fbef; }
.entry-card:hover,
.entry-card:focus-within { transform: translate(-3px, -3px) rotate(-0.6deg); box-shadow: 10px 10px 0 var(--ink); }
.entry-body h3 { margin-bottom: 8px; }
.entry-body p:last-child { margin-bottom: 0; }
.card-link { color: var(--ink); text-decoration: none; }
.card-link:hover { color: var(--red-deep); text-decoration: underline; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.entry-zone-map { display: block; width: 100%; max-width: 180px; height: auto; filter: drop-shadow(3px 3px 0 var(--ink)); }
.zone-cell { fill: #ffb870; stroke: var(--ink); stroke-width: 1.4; transition: fill 0.25s ease; }
.zone-cell--hot { fill: var(--red); }
.entry-card:hover .zone-cell--hot { fill: var(--yellow); }
.zone-net { stroke: var(--ink); stroke-width: 3; }
.zone-dot { fill: var(--blue); stroke: var(--ink); stroke-width: 1; }
.entry-readouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  margin-top: auto;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
}

/* ---------- Engine section ---------- */
.engine-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.engine-grid > * { min-width: 0; }
.engine-panel { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Article pages ---------- */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 40px;
  align-items: start;
}
.article-grid > * { min-width: 0; }
.prose {
  max-width: 820px;
  padding: 32px;
  border-radius: var(--radius);
  border: var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}
.prose h2 { margin-top: 40px; font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 24px; color: var(--red-deep); }
.formula {
  display: block;
  margin: 0 0 24px;
  padding: 16px 24px;
  border: 3px solid var(--ink);
  border-left: 10px solid var(--red);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.8;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.callout {
  margin: 24px 0;
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 3px dashed var(--ink);
  background: var(--yellow-soft);
  color: var(--ink);
}
.callout p:last-child { margin-bottom: 0; }
.aside-stack { display: flex; flex-direction: column; gap: 24px; }
.aside-panel { display: flex; flex-direction: column; gap: 24px; }
.aside-panel .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-list { margin: 0; padding: 0; list-style: none; }
.related-list li { margin: 0 0 8px; }
.related-list a { display: block; padding: 8px 0; }
.legal-body h2 { margin-top: 40px; }
.legal-updated { color: var(--muted); font-size: 0.94rem; font-weight: 700; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.form-row > * { min-width: 0; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 3px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: inherit;
  box-shadow: inset 3px 3px 0 rgba(29, 26, 58, 0.08);
}
.form-input::placeholder { color: #6e6a8a; }
.form-input:hover { background: var(--sky-light); color: var(--ink); }
.form-input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; background: #fff; color: var(--ink); }
textarea.form-input { min-height: 160px; resize: vertical; }
select.form-input { appearance: auto; }
.form-input.is-invalid { border-color: var(--red-deep); background: #ffe8ea; color: var(--ink); }
.toggle-input.is-invalid { outline: 3px solid var(--red-deep); outline-offset: 2px; }
.field-error { margin: 0; font-size: 0.9rem; font-weight: 700; color: #b81a2e; }
.form-success {
  margin: 0;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  border: 3px solid var(--ink);
  background: #dff7e8;
  color: #125c2f;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-details address { font-style: normal; }
.static-map {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 20px;
  border: var(--border);
  overflow: hidden;
  background-color: #dff5c8;
  color: var(--ink);
  box-shadow: var(--shadow);
  background-image:
    linear-gradient(rgba(29, 26, 58, 0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(29, 26, 58, 0.08) 2px, transparent 2px);
  background-size: 28px 28px;
}
.map-water {
  position: absolute;
  right: -10%;
  bottom: -10%;
  width: 55%;
  height: 60%;
  border-radius: 40% 0 0 0;
  border: 3px solid var(--ink);
  background: repeating-linear-gradient(170deg, #6ec3ff 0 14px, #8fd3ff 14px 28px);
}
.map-road { position: absolute; background: #fff; border: 2px solid var(--ink); border-radius: 6px; }
.map-road--h { left: -4px; right: -4px; top: 42%; height: 12px; }
.map-road--v { top: -4px; bottom: -4px; left: 38%; width: 12px; }
.map-road--diag { left: 10%; top: 75%; width: 60%; height: 10px; transform: rotate(-18deg); transform-origin: left center; background: var(--yellow); }
.map-pin {
  position: absolute;
  left: 38%;
  top: 42%;
  width: 30px;
  height: 30px;
  margin: -24px 0 0 -10px;
  border-radius: 50% 50% 50% 0;
  border: 3px solid var(--ink);
  background: var(--red);
  color: var(--ink);
  transform: rotate(-45deg);
  box-shadow: 3px 3px 0 var(--ink);
}
.map-label {
  position: absolute;
  left: calc(38% + 24px);
  top: calc(42% - 52px);
  max-width: 55%;
  padding: 4px 12px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 80px;
  border-top: 4px solid var(--ink);
  background: var(--ink);
  color: #e6e3f5;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 20px, var(--ink) 20px 40px);
}
.site-footer .brand,
.site-footer .brand-name { color: var(--yellow); }
.site-footer .brand-mark-volleyball-logo { filter: drop-shadow(2px 2px 0 #000); }
.site-footer a { color: var(--yellow); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-block: 64px 40px;
}
.footer-grid > * { min-width: 0; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand p { margin: 0; }
.footer-address { font-style: normal; font-size: 0.92rem; line-height: 1.7; }
.footer-heading {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  text-shadow: none;
}
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { margin-bottom: 8px; }
.footer-list a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-list a:hover { color: var(--yellow); text-decoration: underline; }
.footer-bottom { padding-block: 24px; border-top: 2px dashed rgba(255, 255, 255, 0.25); font-size: 0.88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 980px;
  margin-inline: auto;
  padding: 24px;
  border-radius: 20px;
  border: var(--border);
  background: #fff;
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.cookie-banner a { color: var(--blue-deep); }
.cookie-banner.is-visible { display: flex; }
.cookie-text { margin: 0; font-size: 0.95rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-prefs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--ink);
  background: var(--sky-light);
  color: var(--ink);
}
.cookie-prefs .btn { align-self: flex-start; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-list a { padding: 6px 8px; font-size: 0.88rem; }
  .arena-grid { grid-template-columns: minmax(0, 1fr); }
  .arena-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
  .telemetry-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid,
  .engine-grid,
  .article-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
  .container { padding-inline: 16px; }
  .header-inner { height: 56px; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 11px);
    left: 0;
    right: 0;
    padding: 16px;
    border-bottom: 4px solid var(--ink);
    background: var(--yellow);
    color: var(--ink);
    box-shadow: 0 8px 0 rgba(29, 26, 58, 0.25);
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 6px; }
  .nav-list a { padding: 12px 16px; font-size: 1.02rem; }
  .section { margin-block: 64px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { max-width: 380px; transform: none; }
  .prose { padding: 24px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .readout-grid { gap: 8px; }
  .readout { padding: 12px; }
  .result-flash { top: 16px; padding: 4px 16px; font-size: 0.88rem; }
}

@media (max-width: 399.98px) {
  body { font-size: 0.97rem; }
  .brand { font-size: 0.9rem; gap: 6px; }
  .brand-mark-volleyball-logo { width: 24px; height: 24px; }
  .btn-cta { padding: 6px 12px; font-size: 0.82rem; }
  .glass { padding: 16px; }
  .glass--flush { padding: 4px; }
  .prose { padding: 16px; }
  .readout-grid,
  .stat-grid,
  .entry-readouts { grid-template-columns: minmax(0, 1fr); }
  .cookie-actions .btn { width: 100%; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .formula { padding: 16px; font-size: 0.85rem; }
  .button-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .hero-stage { transform: none; }
}