/* Long Shot Hoops · Hardwood Box Office
   An arena ticket stub on a maple floor, under a red shot clock and an amber LED scoreboard.
   Every colour lives in :root; components only use var(). */
:root {
  --floor: #EAD7B7;
  --floor-deep: #DCC39B;
  --paper: #FFF9EF;
  --ink: #1D1B26;
  --ink-2: #2A2735;
  --muted: #5A4E44;
  --sand: #CFC4B4;
  --red: #B4232F;
  --red-deep: #8E1A24;
  --amber: #F2B33D;

  --line: rgba(29, 27, 38, 0.16);
  --line-strong: rgba(29, 27, 38, 0.36);
  --line-dark: rgba(255, 249, 239, 0.16);
  --seam: rgba(29, 27, 38, 0.06);
  --grain: rgba(255, 249, 239, 0.22);
  --glow: rgba(242, 179, 61, 0.16);
  --veil: rgba(29, 27, 38, 0.72);

  /* semantic aliases: no new colours */
  --bg: var(--floor);
  --card: var(--paper);
  --text: var(--ink);
  --primary: var(--red);
  --accent: var(--amber);
  --hot: var(--red);
  --led: var(--amber);

  --font-display: 'Big Shoulders Display', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-mono: 'Red Hat Mono', ui-monospace, monospace;

  --radius: 10px;
  --pill: 999px;
  --shadow-1: 0 1px 2px rgba(29, 27, 38, 0.12);
  --shadow-2: 0 16px 32px rgba(29, 27, 38, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms;
  --wrap: 1120px;

  --i-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='black' d='M6 3.6a1 1 0 0 1 1.5-.86l9.6 6.4a1 1 0 0 1 0 1.72l-9.6 6.4A1 1 0 0 1 6 16.4z'/%3E%3C/svg%3E");
  --i-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' d='M10 17.2s-6.5-4.1-7.8-8.1C1.3 6.4 3.2 3.8 5.9 3.8c1.7 0 3.1.9 4.1 2.2 1-1.3 2.4-2.2 4.1-2.2 2.7 0 4.6 2.6 3.7 5.3-1.3 4-7.8 8.1-7.8 8.1z'/%3E%3C/svg%3E");
  --i-heart-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='black' d='M10 17.2s-6.5-4.1-7.8-8.1C1.3 6.4 3.2 3.8 5.9 3.8c1.7 0 3.1.9 4.1 2.2 1-1.3 2.4-2.2 4.1-2.2 2.7 0 4.6 2.6 3.7 5.3-1.3 4-7.8 8.1-7.8 8.1z'/%3E%3C/svg%3E");
  --i-share: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='15' cy='4.5' r='2.2'/%3E%3Ccircle cx='5' cy='10' r='2.2'/%3E%3Ccircle cx='15' cy='15.5' r='2.2'/%3E%3Cpath d='M7 9l6-3.4M7 11l6 3.4'/%3E%3C/svg%3E");
  --i-expand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.5v-4h4M12.5 3.5h4v4M16.5 12.5v4h-4M7.5 16.5h-4v-4'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E");
  --i-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 10H4M9 5l-5 5 5 5'/%3E%3C/svg%3E");
  --i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0;
  min-width: 0;
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 155px, var(--seam) 155px 156px),
    repeating-linear-gradient(90deg, transparent 0 77px, var(--grain) 77px 78px, transparent 78px 156px);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-deep); text-decoration-thickness: 2px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.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 { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 12px 16px; background: var(--ink); color: var(--paper); border-radius: var(--radius); }
.skip:focus { top: 8px; }

/* icon helper: mask painted with currentColor */
.btn-play::before, .cover-chip::before, .tool-btn::before, .more-link::after, .quick-links a::after, .back-link::before, .faq-item summary::after, .prose details > summary::after {
  content: "";
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--floor); position: relative; z-index: 30; }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: inline-flex; color: var(--ink); }
.mark-ball { fill: var(--red); }
.mark-seam { stroke: var(--paper); }
.brand-text { font: 900 28px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }
.brand-text b { color: var(--red); font-weight: 900; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); font: 600 14px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none; border-radius: var(--pill);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.main-nav a:hover { background: var(--paper); color: var(--red); }
.main-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* ---------- Hero ticket ---------- */
.court { padding: 32px 0 24px; }
.court .wrap { max-width: 1280px; }
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) 24px minmax(0, 7fr);
  align-items: stretch;
  padding: 16px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1), var(--shadow-2);
  animation: ticket-in 560ms var(--ease) both;
}
@keyframes ticket-in { from { transform: translateY(16px); } to { transform: none; } }
.stub { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 16px 8px 8px; min-width: 0; }
.stub-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font: 700 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; }
.led-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--glow); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(0.6); } }
.stub h1 { font: 900 48px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.lead { margin: 0; color: var(--muted); font-size: 18px; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.btn-play {
  --icon: var(--i-play);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: var(--pill);
  background: var(--red); color: var(--paper);
  font: 700 16px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.btn-play:hover { background: var(--red-deep); color: var(--paper); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn-play:active { transform: translateY(0); }
.free-tag { color: var(--muted); font: 500 14px/1.2 var(--font-mono); }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.spec { display: flex; flex-direction: column-reverse; gap: 4px; padding: 12px; background: var(--ink); color: var(--sand); border-radius: var(--radius); }
.spec dt { font: 500 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.spec dd { margin: 0; color: var(--amber); font: 700 28px/1 var(--font-mono); font-variant-numeric: tabular-nums; text-shadow: 0 0 12px var(--glow); }
.admit { margin: 0; padding-top: 12px; border-top: 2px dashed var(--line); color: var(--muted); font: 500 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; }

/* perforation between stub and stage */
.perf { position: relative; margin: -16px 0; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px) center / 2px 100% no-repeat; }
.perf::before, .perf::after { content: ""; position: absolute; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--floor); }
.perf::before { top: -12px; }
.perf::after { bottom: -12px; }

/* player stage */
.stage {
  position: relative; align-self: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--ink); border-radius: var(--radius);
  transition: height 420ms var(--ease);
}
.cover { position: absolute; inset: 0; }
.cover img, .cover-fallback { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ink-2); transition: transform 600ms var(--ease); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--veil)); pointer-events: none; }
.cover-play { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; padding: 24px; border: 0; background: transparent; }
.cover-chip {
  --icon: var(--i-play);
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px;
  background: var(--amber); color: var(--ink); border-radius: var(--pill);
  font: 700 16px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em;
  box-shadow: var(--shadow-2);
  transition: transform var(--fast) var(--ease);
}
.cover-play:hover .cover-chip, .cover-play:focus-visible .cover-chip { transform: translateY(-4px); }
.stage:hover .cover img { transform: scale(1.03); }
.stage:is([data-gf-state="loading"], [data-gf-state="playing"]) .cover { display: none; }
.stage iframe { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loader { display: none; }
.stage[data-gf-state="loading"] .loader {
  position: absolute; inset: 0; z-index: 3; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 32px;
  background: var(--ink); color: var(--paper); text-align: center;
}
.loader-ball { position: relative; width: 48px; height: 64px; }
.loader-ball span { position: absolute; left: 8px; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--red); box-shadow: inset 0 0 0 2px var(--ink-2); animation: dribble 720ms cubic-bezier(0.5, 0, 0.5, 1) infinite alternate; }
.loader-ball::after { content: ""; position: absolute; left: 8px; bottom: 0; width: 32px; height: 4px; border-radius: 50%; background: var(--line-dark); animation: shadow 720ms cubic-bezier(0.5, 0, 0.5, 1) infinite alternate; }
@keyframes dribble { to { transform: translateY(28px) scaleY(0.92); } }
@keyframes shadow { from { transform: scaleX(0.5); } to { transform: scaleX(1); } }
.loader-title { margin: 0; font: 700 22px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; }
.slow-hint { max-width: 40ch; color: var(--sand); font-size: 14px; opacity: 0; animation: reveal-late 400ms 6s forwards; }
@keyframes reveal-late { to { opacity: 1; } }
.exit-fs { position: absolute; top: 12px; right: 12px; z-index: 4; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--pill); background: var(--amber); color: var(--ink); font: 700 14px/1 var(--font-body); }
.stage[data-gf-fs="1"], .stage:fullscreen { border-radius: 0; aspect-ratio: auto; height: 100%; }

/* playing: the stub tears off and the stage takes the full ticket */
html[data-gf-playing] .ticket { grid-template-columns: minmax(0, 1fr); gap: 16px; }
html[data-gf-playing] .perf, html[data-gf-playing] .lead, html[data-gf-playing] .specs, html[data-gf-playing] .admit, html[data-gf-playing] .stub .cta-row { display: none; }
html[data-gf-playing] .stub { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; padding: 0 8px 12px; border-bottom: 2px dashed var(--line); animation: tear 420ms var(--ease) both; }
html[data-gf-playing] .stub h1 { font-size: 28px; }
html[data-gf-playing] .stage { aspect-ratio: auto; height: clamp(560px, calc(100svh - 32px), 780px); }
@keyframes tear { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* tools under the ticket */
.game-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--paper); color: var(--ink);
  font: 600 14px/1 var(--font-body);
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.tool-btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.tool-like { --icon: var(--i-heart); }
.tool-share { --icon: var(--i-share); }
.tool-fs { --icon: var(--i-expand); }
[data-gf-like][data-gf-liked], [data-gf-like][aria-pressed="true"] { --icon: var(--i-heart-fill); background: var(--red); border-color: var(--red); color: var(--paper); }
[data-gf-liked]::before { animation: pop 360ms var(--ease); }
@keyframes pop { 50% { transform: scale(1.35); } }
.like-count { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.like-count:empty { display: none; }
.share-msg { color: var(--muted); font: 500 14px/1.2 var(--font-mono); }
.share-msg:empty { display: none; }
.quick-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.quick-links a {
  --icon: var(--i-arrow);
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  color: var(--ink); font: 600 14px/1 var(--font-body); text-decoration: none;
}
.quick-links a::after { width: 14px; height: 14px; color: var(--red); transition: transform var(--fast) var(--ease); }
.quick-links a:hover { color: var(--red); }
.quick-links a:hover::after { transform: translateX(4px); }

/* ad slots sit inside the content width instead of spanning the floor */
main .ad-slot { max-width: 1072px; margin: 24px auto; border-radius: var(--radius); }
@media (max-width: 1120px) { main .ad-slot { margin: 24px 16px; } }

/* ---------- Range card (the one memory point) ---------- */
.range {
  padding: 64px 0;
  background-color: var(--ink);
  background-image: radial-gradient(var(--line-dark) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--paper);
}
.range-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.range-grid[data-range="10"] { --ft: 10; }
.range-grid[data-range="15"] { --ft: 15; }
.range-grid[data-range="30"] { --ft: 30; }
.range-grid[data-range="60"] { --ft: 60; }
.range-grid[data-range="85"] { --ft: 85; }
.range-grid[data-range="100"] { --ft: 100; }
.range-court { padding: 16px; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); }
.range-court svg { display: block; width: 100%; height: auto; overflow: visible; }
.court-lines * { fill: none; stroke: var(--sand); stroke-opacity: 0.45; stroke-width: 1.5; }
.zone { fill: var(--glow); transform-box: view-box; transform-origin: 0 0; transform: translate(46px, 140px) scale(calc(var(--ft, 100) * 0.05)); transition: transform 560ms var(--ease); }
.arc { fill: none; stroke: var(--sand); stroke-opacity: 0.4; stroke-width: 1.5; stroke-dasharray: 4 6; transition: stroke var(--fast) var(--ease), stroke-width var(--fast) var(--ease), stroke-opacity var(--fast) var(--ease); }
.range-grid[data-range="10"] .arc[data-arc="10"],
.range-grid[data-range="15"] .arc[data-arc="15"],
.range-grid[data-range="30"] .arc[data-arc="30"],
.range-grid[data-range="60"] .arc[data-arc="60"],
.range-grid[data-range="85"] .arc[data-arc="85"],
.range-grid[data-range="100"] .arc[data-arc="100"] { stroke: var(--amber); stroke-opacity: 1; stroke-width: 3; stroke-dasharray: none; }
.arc-labels text { fill: var(--sand); font: 700 12px var(--font-mono); }
.hoop * { fill: none; stroke: var(--red); stroke-width: 3; }
.spot circle { fill: var(--amber); stroke: var(--ink); stroke-width: 3; }
.spot, .shot { transform-box: view-box; transform-origin: 46px 140px; }
.spot { transform: translateX(calc(var(--ft, 100) * 5px)); transition: transform 560ms var(--ease); }
.shot circle { fill: var(--red); stroke: var(--paper); stroke-width: 1.5; }
.shot { opacity: 0; }
.range-grid[data-shot] .shot { animation: shot 760ms var(--ease) both; }
.range-grid[data-shot] .hoop circle { animation: swish 760ms var(--ease); }
@keyframes shot {
  0% { opacity: 1; transform: translateX(calc(var(--ft, 100) * 5px)) scale(1); }
  50% { opacity: 1; transform: translateX(calc(var(--ft, 100) * 2.5px)) scale(2); }
  92% { opacity: 1; transform: translateX(0) scale(0.8); }
  100% { opacity: 0; transform: translateX(0) scale(0.6); }
}
@keyframes swish { 85% { stroke-width: 3; } 92% { stroke-width: 6; stroke: var(--amber); } 100% { stroke-width: 3; } }

.range-panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.range-kicker, .kicker-led { margin: 0; color: var(--amber); font: 700 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; }
.range-title { margin: 0; font: 900 36px/1.1 var(--font-display); text-transform: uppercase; }
.tiers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tier {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 8px 4px;
  border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--ink-2); color: var(--paper);
  font: 700 22px/1 var(--font-mono); font-variant-numeric: tabular-nums;
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease), background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.tier small { color: var(--sand); font: 500 12px/1 var(--font-mono); text-transform: uppercase; }
.tier:hover { border-color: var(--amber); transform: translateY(-2px); }
.tier:focus-visible, .range .btn-line:focus-visible, .btn-led:focus-visible { outline-color: var(--amber); }
.tier[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.tier[aria-pressed="true"] small { color: var(--ink); }
.readout { padding: 16px; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); }
.readout-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; }
.led { color: var(--amber); font: 700 48px/1 var(--font-mono); font-variant-numeric: tabular-nums; text-shadow: 0 0 16px var(--glow); }
.readout-unit { color: var(--amber); font: 700 18px/1 var(--font-mono); text-transform: uppercase; }
.readout-name { font: 700 28px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }
.readout-note { margin: 8px 0 0; color: var(--sand); }
.tally-box { display: flex; flex-direction: column; gap: 12px; }
.tally { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.tally li {
  display: grid; place-items: center; min-height: 44px; border: 1px dashed var(--line-dark); border-radius: var(--radius);
  color: var(--amber); font: 700 14px/1 var(--font-mono); font-variant-numeric: tabular-nums;
}
.tally li[data-pts] { border-style: solid; background: var(--ink-2); animation: bank 360ms var(--ease); }
.tally li[data-pts="0"] { color: var(--sand); }
@keyframes bank { from { transform: translateY(-8px); opacity: 0; } }
.tally-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tally-total { margin: 0; color: var(--sand); font: 500 14px/1 var(--font-mono); }
.tally-total output { color: var(--amber); font: 700 36px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.tally-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-led, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border-radius: var(--pill); font: 700 14px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
  transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.btn-led { border: 1px solid var(--amber); background: var(--amber); color: var(--ink); }
.btn-led:hover { transform: translateY(-2px); }
.btn-led:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-line { border: 1px solid var(--line-strong); background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.range .btn-line { border-color: var(--line-dark); color: var(--paper); }
.range .btn-line:hover { border-color: var(--paper); color: var(--paper); }
.tally-box[data-tally-full] .tally-total output { animation: flash 900ms steps(2) 2; }
@keyframes flash { 50% { opacity: 0.3; } }

/* ---------- Reading sheet ---------- */
.sheet-band { padding: 48px 0; }
.sheet {
  position: relative; max-width: 800px; margin: 0 auto; padding: 48px 64px;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.sheet::before { content: ""; position: absolute; left: 24px; right: 24px; top: 16px; border-top: 2px dashed var(--line); }
.prose { counter-reset: h2; font-size: 18px; }
.prose > * { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose h2 { counter-increment: h2; display: flex; align-items: flex-start; gap: 12px; margin: 48px 0 16px; font: 700 36px/1.15 var(--font-display); }
.prose h2::before {
  content: counter(h2, decimal-leading-zero);
  flex: none; margin-top: 8px; padding: 4px 8px; border-radius: var(--radius);
  background: var(--ink); color: var(--amber); font: 700 14px/1 var(--font-mono);
}
.prose h3 { margin: 32px 0 12px; font: 700 22px/1.3 var(--font-body); }
.prose strong { font-weight: 700; }
.prose ul { padding: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.prose ol { padding-left: 24px; }
.table-wrap { max-width: 100%; margin: 0 0 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th { padding: 12px 16px; background: var(--ink); color: var(--paper); font: 700 12px/1.2 var(--font-mono); text-align: left; text-transform: uppercase; letter-spacing: 0.08em; }
.prose td { padding: 12px 16px; border-top: 1px solid var(--line); }
.prose tbody tr { transition: background-color var(--fast) var(--ease); }
.prose tbody tr:hover { background: var(--glow); }
.prose td.num { font: 700 16px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.prose td[data-tier] span { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: var(--pill); border: 1px solid var(--line-strong); font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.prose td[data-tier="buzzer"] span { background: var(--red); border-color: var(--red); color: var(--paper); }
.prose td[data-tier="twoway"] span { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.prose td[data-tier="bench"] span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.prose details { margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); max-width: none; }
.prose details > summary {
  --icon: var(--i-chev);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px;
  cursor: pointer; list-style: none; font-family: var(--font-mono);
}
.prose details > summary::-webkit-details-marker { display: none; }
.prose details > summary::after { transition: transform var(--fast) var(--ease); }
.prose details[open] > summary { border-bottom: 2px dashed var(--line); }
.prose details[open] > summary::after { transform: rotate(180deg); }
.prose details > :not(summary) { margin-left: 16px; margin-right: 16px; }
.prose details > :last-child { margin-bottom: 16px; }

/* ---------- FAQ ticket rows ---------- */
.faq-band { padding: 64px 0; background: var(--floor-deep); counter-reset: faq; }
.band-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
.kicker { display: inline-flex; align-items: center; min-height: 24px; padding: 0 12px; border-radius: var(--pill); background: var(--red); color: var(--paper); font: 700 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; }
.band-head h2 { font: 900 36px/1.1 var(--font-display); text-transform: uppercase; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.faq-item { counter-increment: faq; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-1); transition: box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease); }
.faq-item:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.faq-item summary {
  --icon: var(--i-chev);
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 18px; align-items: center; gap: 16px;
  min-height: 64px; padding: 12px 16px 12px 0; cursor: pointer; list-style: none; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q" counter(faq);
  align-self: stretch; display: grid; place-items: center;
  border-right: 2px dashed var(--line); color: var(--red); font: 700 14px/1 var(--font-mono);
}
.faq-item summary::after { transition: transform var(--fast) var(--ease); }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-body { padding: 0 16px 16px 64px; color: var(--muted); }
.faq-body p { margin: 0; }
.more-link { --icon: var(--i-arrow); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.more-link::after { width: 14px; height: 14px; }

/* ---------- Comments ---------- */
.comments-band { padding: 64px 0; }
.comments-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.composer { position: sticky; top: 16px; }
.comment-form { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font: 600 14px/1.2 var(--font-body); }
.field input, .field textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font-size: 16px;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--glow); }
.field textarea { resize: vertical; min-height: 120px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn-submit::before { display: none; }
.comment-msg { margin: 0; color: var(--muted); font-size: 14px; }
.reply-context, .empty, .closed, [data-gf-comment-msg]:empty { display: none; }
[data-gf-replying] .reply-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 14px; }
.btn-sm { min-height: 44px; }
.comments { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
[data-gf-empty]:not([data-gf-off]) > .empty, [data-gf-off] > .closed {
  display: block; margin: 0; padding: 32px 24px; border: 2px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center;
}
.comment { padding: 16px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.comment header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comment strong { font-size: 16px; }
.owner-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: var(--pill); background: var(--ink); color: var(--amber); font: 700 12px/1 var(--font-mono); text-transform: uppercase; }
.comment time, .reply-target { color: var(--muted); font: 500 12px/1.4 var(--font-mono); }
.comment p:empty { display: none; }
.comment-body { margin: 8px 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.btn-reply { min-height: 44px; padding: 0 12px; margin-left: -12px; border: 0; background: transparent; color: var(--red); font: 600 14px/1 var(--font-body); border-radius: var(--pill); }
.btn-reply:hover { background: var(--glow); }
.replies { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-left: 16px; border-left: 2px dashed var(--line); }
.replies .comment { box-shadow: none; border: 1px solid var(--line); }
[data-gf-owner] { border-left: 4px solid var(--red); }

/* ---------- Inner pages ---------- */
.page-hero { padding: 48px 0 32px; }
.page-hero-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.page-hero h1 { max-width: 22ch; font: 900 48px/1.05 var(--font-display); }
.back-link {
  --icon: var(--i-back);
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: var(--pill); background: var(--paper); color: var(--ink); font: 600 14px/1 var(--font-body); text-decoration: none;
  box-shadow: var(--shadow-1); transition: transform var(--fast) var(--ease);
}
.back-link::before { width: 16px; height: 16px; color: var(--red); }
.back-link:hover { color: var(--ink); transform: translateX(-4px); }
.toc-bar { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-1); }
.toc-inner { display: flex; align-items: center; gap: 12px; min-width: 0; }
.toc-label { flex: none; color: var(--amber); font: 700 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; }
.toc-list { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.toc-list::-webkit-scrollbar { display: none; }
.toc-list a {
  display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 12px; border-radius: var(--pill);
  color: var(--sand); font: 500 14px/1 var(--font-body); white-space: nowrap; text-decoration: none;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.toc-list a:hover { color: var(--paper); background: var(--ink-2); }
.toc-list a.is-active { background: var(--amber); color: var(--ink); }
.toc-list a:focus-visible { outline-color: var(--amber); }
.end-ticket {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 800px; margin: 24px auto 0; padding: 16px 32px;
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  -webkit-mask: radial-gradient(circle at left center, transparent 12px, black 13px) left / 51% 100% no-repeat, radial-gradient(circle at right center, transparent 12px, black 13px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at left center, transparent 12px, black 13px) left / 51% 100% no-repeat, radial-gradient(circle at right center, transparent 12px, black 13px) right / 51% 100% no-repeat;
}
.end-ticket p { margin: 0; font: 700 22px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }
.faq-band-inner { padding-top: 48px; }
.air-ball { padding: 64px 0; min-height: 50vh; }
.air-ball .lead { max-width: 52ch; }
.kicker-led { display: inline-flex; padding: 8px 12px; border-radius: var(--pill); background: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; padding: 48px 0 32px; background: var(--ink); color: var(--sand); }
.foot-ticket { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.brand-foot, .brand-foot:hover { color: var(--paper); }
.brand-foot .brand-mark { color: var(--paper); }
.brand-foot .mark-seam { stroke: var(--ink); }
.foot-tagline { margin: 12px 0 16px; max-width: 40ch; }
.barcode { display: block; width: 160px; height: 32px; opacity: 0.6; background: repeating-linear-gradient(90deg, var(--sand) 0 2px, transparent 2px 4px, var(--sand) 4px 5px, transparent 5px 8px, var(--sand) 8px 11px, transparent 11px 12px); }
.foot-col { display: flex; flex-direction: column; }
.foot-label { margin-bottom: 8px; color: var(--amber); font: 700 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); text-decoration: none; }
.foot-col a:hover { color: var(--amber); }
.site-footer a:focus-visible { outline-color: var(--amber); }
.foot-bottom { margin-top: 32px; padding-top: 24px; border-top: 2px dashed var(--line-dark); }
.foot-note { margin: 0; max-width: 90ch; font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 560ms var(--ease), transform 560ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .stage { order: 1; }
  .perf { order: 2; height: 24px; margin: 0 -16px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px) center / 100% 2px no-repeat; }
  .perf::before, .perf::after { top: 0; bottom: auto; }
  .perf::before { left: -12px; }
  .perf::after { left: auto; right: -12px; }
  .stub { order: 3; }
  .range-grid { grid-template-columns: minmax(0, 1fr); }
  .comments-split { grid-template-columns: minmax(0, 1fr); }
  .composer { position: static; }
  .foot-ticket { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .mast { flex-wrap: wrap; gap: 0; padding-top: 8px; }
  .main-nav { width: 100%; overflow-x: auto; margin: 0 -8px; scrollbar-width: none; }
  .main-nav a { flex: none; padding: 0 8px; font-size: 12px; }
  .court { padding: 16px 0; }
  .ticket { padding: 12px; }
  .perf { margin: 0 -12px; }
  .stub { padding: 8px 4px 4px; }
  .stub h1, .page-hero h1 { font-size: 36px; }
  .lead { font-size: 16px; }
  .cta-row .btn-play, .end-ticket .btn-play, .air-ball .btn-line { width: 100%; }
  .spec { padding: 8px; }
  .spec dd { font-size: 22px; }
  html[data-gf-playing] .stage { height: clamp(460px, calc(100svh - 32px), 760px); }
  .game-tools, .actions { width: 100%; }
  .tool-btn { flex: 1 1 0; justify-content: center; padding: 0 12px; }
  .range { padding: 48px 0; }
  .range-court { padding: 8px; }
  .range-title { font-size: 28px; }
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .led { font-size: 36px; }
  .tally { gap: 4px; }
  .tally-actions { width: 100%; }
  .tally-actions button { flex: 1 1 0; }
  .tally-actions button { padding: 0 8px; white-space: nowrap; }
  .arc-labels text { font-size: 18px; }
  .sheet-band { padding: 24px 0; }
  .sheet { padding: 32px 16px 24px; }
  .sheet::before { left: 12px; right: 12px; top: 12px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 28px; }
  .prose h2::before { margin-top: 4px; }
  .faq-band, .comments-band { padding: 48px 0; }
  .band-head h2 { font-size: 28px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .comment-form { padding: 16px; }
  .form-foot .btn-submit { width: 100%; }
  .end-ticket { padding: 16px 24px; }
  .foot-ticket { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .range-grid[data-shot] .shot { animation: none; opacity: 0; }
  .led-dot { animation: none; }
}

/* === ADSTERRA_MANAGED_CSS_START === */
.ad-slot[hidden] {
  display: none;
}
.ad-slot {
  margin: 28px auto;
  padding: 12px;
  background: var(--card, transparent);
  border: 1px solid var(--line, rgba(128, 128, 128, 0.2));
  border-radius: var(--radius, 12px);
  text-align: center;
  overflow: hidden;
}
.ad-label {
  margin: 0 0 8px;
  color: var(--muted, #64748b);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ad-frame {
  max-width: 100%;
  margin-inline: auto;
}
.ad-frame--banner { width: 320px; min-height: 50px; }
.ad-frame--rect { width: 300px; min-height: 250px; }
.ad-frame--native { width: 100%; max-width: 640px; min-height: 120px; }
.ad-frame iframe {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border: 0;
}
/* === ADSTERRA_MANAGED_CSS_END === */
