:root {
  color-scheme: dark;
  --back: #151711;
  --panel: #1d2118;
  --line: #3a4131;
  --ink: #eef0df;
  --muted: #b0b5a1;
  --lime: #defa70;
  --rust: #d67947;
  --display: Impact, "Arial Narrow", "Franklin Gothic Condensed", sans-serif;
  font-family: system-ui, sans-serif;
  background: var(--back);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--lime); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: .6rem; left: max(16px, calc((100% - 1240px) / 2)); z-index: 2; padding: .8rem 1rem; background: var(--lime); color: var(--back); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.nav-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .58rem; font-weight: 780; letter-spacing: -.05em; text-decoration: none; font-size: 1.28rem; min-height: 44px; }
.brand-mark { width: 23px; height: 23px; border-radius: 100%; border: 2px solid var(--lime); position: relative; overflow: hidden; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--lime); }
.brand-mark::before { inset: 8px -1px auto; height: 2px; }
.brand-mark::after { inset: -1px auto -1px 8px; width: 2px; }
nav, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; }
nav a, .footer-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: .88rem; text-decoration: none; color: var(--muted); }
nav a:hover, .footer-links a:hover { text-decoration: underline; }
.hero { display: grid; align-items: center; min-height: calc(100svh - 68px); padding-block: clamp(32px, 6vw, 84px); background: radial-gradient(ellipse at 80% 13%, #252b1c 0%, var(--back) 60%); }
.hero-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.hero-copy, .play-details > :first-child { grid-column: span 5; }
.game-frame, .rules { grid-column: span 7; }
.eyebrow { margin: 0 0 .85rem; color: var(--lime); font-size: .76rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.025em; }
h1 { font-size: clamp(3.8rem, 6.45vw, 6.75rem); line-height: .92; margin: 0; text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 4.4vw, 4.65rem); line-height: 1; margin: 0 0 1rem; }
.intro { margin: 1.35rem 0 1.15rem; line-height: 1.58; font-size: clamp(1.05rem, 1.4vw, 1.24rem); color: var(--muted); max-width: 33ch; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: .45rem; font-weight: 670; font-size: .94rem; }
.game-frame { min-width: 0; background: var(--panel); border: 1px solid #505745; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 58px #0005; scroll-margin-top: 12px; }
.scoreboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font-variant-numeric: tabular-nums; }
.scoreboard > div { display: grid; gap: .12rem; padding: .8rem clamp(.52rem, 1.35vw, 1.1rem); border-right: 1px solid var(--line); }
.scoreboard > div:last-child { border: 0; }
.scoreboard div > span { color: var(--muted); font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; }
.scoreboard strong { font-size: clamp(1.18rem, 2.7vw, 1.8rem); line-height: 1; }
.scoreboard .total { font-size: .72rem; color: var(--muted); }
.scoreboard .best strong { color: var(--lime); }
.court-view { position: relative; background: #3c392d; aspect-ratio: 20 / 11; overflow: hidden; border-block: 1px solid var(--line); }
#court-scene { display: block; width: 100%; height: 100%; }
.court-meta { display: flex; align-items: center; justify-content: space-between; min-height: 28px; padding-inline: clamp(.8rem, 2.3vw, 1.3rem); border-bottom: 1px solid var(--line); font-size: .72rem; font-weight: 700; color: var(--muted); }
#shot-callout { color: var(--lime); text-transform: uppercase; letter-spacing: .08em; }
.game-panel { padding: clamp(.8rem, 2.3vw, 1.3rem); }
#game-message { font-size: .97rem; font-weight: 690; margin: 0 0 .7rem; }
.meter { position: relative; height: .69rem; background: #353c30; border-radius: 3px; }
.meter span { position: absolute; inset-block: 0; }
.meter-example { max-width: 280px; margin-block: 1rem; }
.meter-example span { background: var(--lime); left: 38%; width: 24%; border-radius: 2px; }
.meter-example i { position: absolute; background: #fff; width: 4px; inset-block: -3px; left: 47%; border-radius: 2px; }
#target { width: 21%; left: 39.5%; background: var(--lime); border-radius: 2px; }
#marker { width: 4px; left: 0%; transform: translateX(-50%); background: #fff; outline: 1px solid #1a1e17; border-radius: 2px; inset-block: -3px; }
.game-actions, .article-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: .95rem; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .55rem 1rem; border: 1px solid var(--lime); border-radius: 5px; background: var(--lime); color: #192210; text-decoration: none; font-weight: 760; line-height: 1.2; text-align: center; cursor: pointer; touch-action: manipulation; transition: transform 140ms ease, background 140ms ease; }
.button:hover { color: #192210; background: #efffb4; transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button.secondary { background: transparent; color: var(--ink); border-color: #565e4e; }
.button.secondary:hover { background: #2b3324; }
.button[aria-disabled="true"] { cursor: default; opacity: .68; transform: none; }
.input-hint, .small, noscript { font-size: .82rem; line-height: 1.55; color: var(--muted); }
.input-hint { margin: .75rem 0 0; }
kbd { padding: .06em .3em; border: 1px solid #596051; border-radius: 3px; font-size: .85em; }
.play-section { border-top: 1px solid var(--line); background: #202418; padding: clamp(50px, 8vw, 115px) 0; }
.play-details { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.play-details p, .rules li { line-height: 1.65; }
.play-details > div:first-child p:not(.eyebrow) { max-width: 49ch; color: var(--muted); }
.rules { border-top: 2px solid var(--rust); }
.rules ol { padding-left: 0; list-style-position: inside; }
.rules li { padding: .35rem 0; }
.rules li::marker { color: var(--lime); font-weight: 800; }
.article { max-width: 960px; padding-block: clamp(42px, 7vw, 100px); min-height: 65svh; }
.article .intro { max-width: 50ch; }
.article h1 { font-size: clamp(2.65rem, 6.2vw, 5.9rem); }
.article h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); }
.article section { border-top: 1px solid var(--line); margin-top: 2.55rem; padding-top: 1.6rem; }
.article section > p, .article li, dd { max-width: 72ch; line-height: 1.68; color: var(--muted); }
.article li + li, .guide-fixes dt:not(:first-child) { margin-top: .65rem; }
.guide-steps { padding-left: 1.45rem; }
.guide-fixes dt { font-weight: 700; }
.guide-fixes dd { margin: .3rem 0 1rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--panel); }
td, th { text-align: left; padding: .65rem clamp(.35rem, 2vw, .85rem); border: 1px solid var(--line); overflow-wrap: anywhere; }
thead th { color: var(--lime); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 1rem; }
[data-enter] { animation: enter 360ms cubic-bezier(.16, 1, .3, 1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 851px) and (max-height: 770px) {
  .hero { padding-block: 26px; }
  .court-view { aspect-ratio: 2.05; }
}
@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .hero { min-height: 0; }
  .hero-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-copy, .game-frame, .play-details > :first-child, .rules { grid-column: 1; }
  .hero h1 br { display: none; }
  .play-details { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.05rem, 9vw, 5.5rem); }
  .intro { margin: 1.05rem 0 .4rem; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 32px); }
  .nav-inner { min-height: 54px; gap: .3rem; }
  nav { gap: .55rem; }
  nav a { font-size: .77rem; }
  .brand { font-size: 1.11rem; gap: .34rem; }
  .brand-mark { scale: .82; }
  .hero { padding-block: 24px 16px; }
  .game-actions > .button { flex: 1 1 8rem; font-size: .88rem; }
  .play-details { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-links { gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  [data-enter] { animation: none; }
  .button { transition: none; }
  .button:hover, .button:active { transform: none; }
}
.hero-links { display: flex; flex-wrap: wrap; gap: 0 1rem; }
