/* The court palette */
:root { --blue:#2549eb; --pink:#ff82b6; --yellow:#ffe46d; --paper:#f8fbff; --navy:#192449; --display:'Barlow Condensed',sans-serif; --body:'Nunito Sans',sans-serif; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:24px; }
body { margin:0; color:var(--navy); background:var(--paper); font-family:var(--body); font-size:17px; line-height:1.55; }
button,input,a { -webkit-tap-highlight-color:transparent; }
a { color:inherit; text-decoration:none; }
button { font:inherit; cursor:pointer; }
button:disabled { cursor:default; }
button[hidden] { display:none; }
:focus-visible { outline:3px solid var(--navy); outline-offset:5px; }
.hero :focus-visible { outline-color:var(--yellow); }
.skip-link { position:fixed; top:12px; left:12px; padding:10px 20px; background:var(--yellow); z-index:10; transform:translateY(-150%); }
.skip-link:focus { transform:none; }
.site-header { display:flex; align-items:center; justify-content:space-between; gap:25px; padding:23px 6%; max-width:1600px; margin:auto; }
.brand { font-family:var(--display); font-size:39px; font-weight:800; line-height:.85; letter-spacing:-2px; }
.brand span { display:block; font:800 11px var(--body); letter-spacing:.2px; margin-top:8px; }
nav { display:flex; gap:36px; font-weight:800; }
nav a:hover,footer a:hover { text-decoration:underline; text-underline-offset:5px; }
.art-link { font-size:14px; font-weight:800; border-bottom:1px solid var(--navy); padding:4px 0; }
.hero { background:var(--blue); color:var(--paper); padding:70px 6% 0; position:relative; display:grid; grid-template-columns:1.1fr 1fr; overflow:hidden; }
.hero-copy { position:relative; z-index:1; padding-bottom:68px; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { font-family:var(--display); }
h1 { font-size:clamp(70px,7.4vw,118px); line-height:.95; letter-spacing:-2px; font-weight:900; font-style:italic; margin-bottom:27px; }
.hero-copy>p { font-size:18px; margin-bottom:30px; line-height:1.6; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:35px; padding:15px 24px; border:2px solid transparent; border-radius:7px; font-weight:800; font-size:16px; min-height:54px; transition:transform .16s; }
.button:hover { transform:translateY(-3px); }
.button-yellow { background:var(--yellow); color:var(--navy); }
.button-blue { background:var(--blue); color:white; }
.button-outline { border-color:var(--navy); background:transparent; color:var(--navy); }
.hero-art { position:relative; align-self:center; margin:0 0 30px 25px; min-width:0; }
.hero-art img { width:100%; height:auto; display:block; border-radius:12px; border:3px solid var(--navy); box-shadow:7px 7px 0 var(--pink); }
.hero-art figcaption { font-size:11px; margin-top:16px; text-align:right; }
.hero-art figcaption a { text-decoration:underline; text-underline-offset:3px; }
.hero-sticker { position:absolute; bottom:33px; right:15px; background:var(--paper); color:var(--navy); border:2px solid var(--navy); padding:16px 20px; font:800 19px/1.2 var(--display); transform:rotate(-8deg); box-shadow:4px 4px 0 var(--navy); }
.hero-baseline { grid-column:1/-1; display:flex; justify-content:space-between; border-top:1px solid #ffffff50; padding:17px 0; font-size:12px; font-weight:700; }
.hero-baseline span span { color:var(--yellow); margin-left:10px; }
.section-pad { padding:90px 8%; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:30px; margin-bottom:40px; }
h2 { font-size:clamp(42px,4.5vw,66px); line-height:1.04; letter-spacing:-2.5px; margin-bottom:0; }
.section-heading>p { max-width:340px; margin-bottom:4px; }
.play-section { background:var(--paper); }
.game-layout { display:grid; grid-template-columns:1.45fr 1fr; gap:55px; align-items:center; }
.shooting-court { background:var(--pink); border:2px solid var(--navy); border-radius:12px; position:relative; overflow:hidden; }
.scoreboard { display:flex; justify-content:space-between; padding:22px 28px 0; font-size:14px; font-weight:800; }
.scoreboard span { display:flex; align-items:center; gap:12px; }
.scoreboard strong { font-family:var(--display); font-size:28px; line-height:1; }
#shooting-scene { display:block; width:100%; }
.shot-dots { display:flex; justify-content:center; gap:10px; position:absolute; bottom:20px; left:0; right:0; }
.shot-dots span { width:12px; height:12px; border:2px solid var(--navy); border-radius:50%; }
.shot-dots .made { background:var(--blue); border-color:var(--blue); }
.shot-dots .missed { background:var(--navy); }
h3 { font-size:29px; letter-spacing:-.7px; line-height:1.15; margin-bottom:15px; }
.game-controls>p:first-of-type { font-size:15px; margin-bottom:22px; }
.game-controls label { display:flex; justify-content:space-between; font-size:15px; font-weight:800; margin:17px 0 9px; }
.game-controls output { font-variant-numeric:tabular-nums; }
.range-wrap { position:relative; height:23px; display:flex; align-items:center; }
.range-wrap:before { content:''; height:13px; width:100%; background:#dce2ef; border-radius:9px; position:absolute; }
input[type=range] { position:relative; z-index:1; appearance:none; background:transparent; width:100%; margin:0; cursor:pointer; height:23px; }
input[type=range]::-webkit-slider-thumb { appearance:none; width:23px; height:23px; background:var(--blue); border:3px solid white; border-radius:50%; box-shadow:0 0 0 1px var(--blue); }
input[type=range]::-moz-range-thumb { width:18px; height:18px; background:var(--blue); border:3px solid white; border-radius:50%; }
.game-controls small { font-size:12px; display:block; margin-top:7px; }
#shoot-button { width:100%; margin-top:25px; }
.game-feedback { font-size:15px; font-weight:800; margin:17px 0 0; min-height:47px; }
.text-button { background:transparent; color:var(--blue); border:0; padding:0; font-weight:800; text-decoration:underline; text-underline-offset:4px; }
.keyboard-tip { font-size:12px; margin:13px 0 0; color:#4c5574; }
.positions-section { background:var(--yellow); }
.positions-layout { display:grid; grid-template-columns:1.2fr 1fr; gap:12%; align-items:center; }
.position-buttons { display:flex; flex-wrap:wrap; gap:9px; margin-bottom:35px; max-width:440px; }
.position-buttons button { width:54px; height:54px; border:1.5px solid var(--navy); background:transparent; border-radius:50%; font:800 19px var(--display); color:var(--navy); }
.position-buttons button[aria-pressed=true] { background:var(--navy); color:var(--yellow); }
.position-buttons button:hover { background:#19244918; }
.position-buttons button[aria-pressed=true]:hover { background:var(--navy); }
.position-name { font-size:16px; font-weight:800; margin-bottom:15px; }
#position-description h3 { font-size:clamp(36px,3.6vw,50px); letter-spacing:-1.5px; margin-bottom:22px; }
#position-description>p:last-child { max-width:370px; min-height:106px; }
.court-key { display:flex; align-items:center; gap:10px; font-size:12px; margin-top:35px; }
.court-key span { display:inline-block; width:15px; height:15px; background:var(--blue); border-radius:3px; flex-shrink:0; }
.position-court-wrap { width:min(100%,300px); justify-self:center; }
.position-court { display:block; width:100%; }
.court-end-label { text-align:center; font-size:12px; font-weight:800; }
.rules-note { font-size:12px; margin:35px 0 0; }
.team-strip { display:flex; justify-content:space-around; flex-wrap:wrap; gap:15px; padding:25px 6%; background:var(--navy); color:var(--paper); font-weight:800; }
.team-strip p { margin:0; }
.team-strip span { color:var(--pink); margin-right:12px; }
.quiz-section { display:grid; grid-template-columns:1fr 1.2fr; gap:10%; }
.quiz-intro>p { margin-top:22px; }
.quiz-doodle { font:800 130px/1 var(--display); color:var(--blue); transform:rotate(-12deg); display:inline-block; margin:15px 0 0 25px; }
.quiz-doodle span { font-size:80px; color:#b82368; display:inline-block; transform:rotate(26deg); }
.quiz-panel { border-top:3px solid var(--blue); padding-top:25px; }
.quiz-progress { display:flex; justify-content:space-between; font-size:13px; font-weight:800; margin-bottom:25px; }
.quiz-panel h3 { font-size:30px; line-height:1.25; min-height:75px; }
.quiz-answers { display:grid; gap:10px; }
.quiz-answers button { display:flex; align-items:center; gap:15px; text-align:left; padding:14px 18px; border:1.5px solid #b9c2df; border-radius:6px; background:transparent; color:var(--navy); font-size:16px; font-weight:700; }
.quiz-answers button span { width:27px; height:27px; display:grid; place-items:center; border:1px solid #b9c2df; border-radius:50%; font-size:12px; }
.quiz-answers button:not(:disabled):hover { background:#e8edff; border-color:var(--blue); }
.quiz-answers button.correct { background:#e4f4e3; border-color:#467c42; }
.quiz-answers button.incorrect { background:#ffe4ef; border-color:#b82368; }
#quiz-feedback { font-size:15px; font-weight:700; margin:20px 0; min-height:46px; }
.practice-section { background:var(--pink); display:grid; grid-template-columns:auto 1fr auto; gap:35px; align-items:center; padding-top:55px; padding-bottom:55px; }
.practice-icon { font-size:85px; }
.practice-section h2 { font-size:35px; letter-spacing:-1px; }
.practice-section p:last-child { font-size:15px; max-width:560px; margin:20px 0 0; }
.practice-section .button { font-size:14px; padding:13px 18px; gap:10px; }
footer { display:flex; justify-content:space-between; align-items:center; gap:25px; padding:40px 6%; }
footer p,footer>a:last-child { font-size:12px; margin:0; }
footer>a:last-child { font-weight:800; }
@media(min-width:1600px) { .hero,.section-pad,.team-strip,footer { padding-left:max(8%,calc((100vw - 1340px)/2)); padding-right:max(8%,calc((100vw - 1340px)/2)); } }
@media(max-width:1000px) { .hero { padding-top:55px; grid-template-columns:1.15fr 1fr; } h1 { font-size:78px; letter-spacing:-4px; } .hero-art { margin:0 0 25px 15px; } .hero-sticker { font-size:15px; padding:12px; right:10px; bottom:20px; } .section-pad { padding:65px 6%; } .game-layout { gap:30px; grid-template-columns:1.1fr 1fr; } .positions-layout { gap:7%; } .practice-section { grid-template-columns:auto 1fr; } .practice-section .button { grid-column:2; justify-self:start; } .practice-icon { align-self:start; } }
@media(max-width:700px) { body { font-size:16px; } .site-header { padding:19px 6%; gap:15px; flex-wrap:wrap; } .brand { font-size:34px; } nav { gap:20px; font-size:14px; } .art-link { display:none; } .hero { grid-template-columns:1fr; padding:42px 6% 0; } .hero-copy { padding-bottom:0; }  h1 { font-size:clamp(64px,14vw,92px); letter-spacing:-3.5px; } .hero-copy>p { font-size:16px; } .hero-art { width:100%; max-width:520px; justify-self:center; margin:35px 0 20px; } .hero-sticker { right:22px; } .hero-baseline { font-size:10px; gap:15px; } .hero-baseline>span:first-child { display:none; } .section-pad { padding:55px 6%; } .section-heading { display:block; margin-bottom:30px; } .section-heading>p { margin-top:20px; } h2 { font-size:43px; letter-spacing:-1.5px; } .game-layout,.positions-layout,.quiz-section { grid-template-columns:1fr; gap:30px; } .game-controls h3 { font-size:26px; } .game-controls { padding:0 5px; } .shooting-court { min-width:0; } .positions-layout { gap:15px; } .position-buttons { margin-bottom:25px; gap:8px; } .position-buttons button { width:44px; height:44px; font-size:17px; } #position-description h3 { font-size:37px; } #position-description>p:last-child { min-height:0; } .court-key { margin-top:24px; } .position-court-wrap { width:240px; margin-top:10px; } .rules-note { margin-top:25px; } .team-strip { display:block; padding:22px 6%; font-size:15px; } .team-strip p+p { margin-top:10px; } .quiz-doodle { display:none; } .quiz-intro>p { margin-bottom:0; } .quiz-panel h3 { min-height:0; font-size:27px; } .practice-section { gap:20px; grid-template-columns:1fr; } .practice-icon { display:none; } .practice-section .button { grid-column:1; } .practice-section h2 { font-size:32px; } footer { flex-wrap:wrap; padding:32px 6%; } footer p { width:calc(100% - 130px); } footer>a:last-child { margin-top:10px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*:before,*:after { transition:none!important; animation:none!important; } }

/* A live perspective court, with the original illustration as the WebGL fallback. */
.court-3d { width:100%; aspect-ratio:640 / 400; }
.court-3d[hidden], #shooting-scene[hidden] { display:none; }
.court-3d canvas { display:block; width:100%; height:100%; }
.scoreboard strong { font-size:34px; font-weight:900; }
h2 { font-weight:800; letter-spacing:-.5px; }

footer { justify-content:center; text-align:center; }
footer p { width:auto; font-size:15px; }
