:root { color-scheme: light; --ink: #202e29; --muted: #69786f; --green: #217752; --line: #dfe6df; --paper: #f7f9f5; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #77b997; outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
.topbar { height: 76px; display: flex; justify-content: space-between; align-items: center; padding: 0 max(24px, calc((100vw - 1380px) / 2)); border-bottom: 1px solid var(--line); background: #fff; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 21px; letter-spacing: -.5px; }
.brand-mark { color: var(--green); font-size: 26px; font-weight: 800; letter-spacing: -4px; }
.brand-mark span { font-size: 19px; }
.back-link { color: var(--muted); font-size: 13px; }
main { max-width: 1428px; margin: auto; padding: 24px; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.8px; color: var(--green); margin: 0 0 10px; }
h1 { margin: 0; font-size: clamp(28px, 3vw, 40px); letter-spacing: -1.4px; line-height: 1.15; }
.subtitle { color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.preview-badge { color: #62736a; border: 1px solid var(--line); padding: 8px 12px; background: #fff; font-size: 12px; border-radius: 30px; white-space: nowrap; }
.preview-badge span { padding: 0 4px; }
.play-layout { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 22px; align-items: start; }
.pitch-panel { min-width: 0; border: 1px solid #d4dfd5; border-radius: 18px; overflow: hidden; background: #fff; }
.pitch { position: relative; aspect-ratio: 1.65; min-height: 350px; background: radial-gradient(ellipse at 60% 35%, #52886b, #244b3e 75%); isolation: isolate; }
.view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 14px; border-bottom: 1px solid var(--line); }
.view-toolbar > span { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1px; }
.view-toolbar > div { display: flex; gap: 10px; }
.view-toolbar .text-button { margin: 0; padding: 8px 2px; }
.pitch canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; touch-action: none; }
.pitch-hud { position: absolute; inset: 18px 18px auto; display: flex; align-items: center; justify-content: space-between; z-index: 2; pointer-events: none; gap: 12px; }
.live-pill, .skill-pill { background: #153c2bd6; border: 1px solid #ffffff24; color: #e0f4e4; padding: 8px 11px; border-radius: 7px; font-size: 10px; letter-spacing: 1px; font-weight: 700; backdrop-filter: blur(8px); }
.skill-pill { background: #fffce9; color: #36523f; }
.welcome { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; z-index: 4; padding: 30px; text-align: center; background: linear-gradient(160deg, #24513c99, #173c2fce); }
.welcome[hidden] { display: none; }
.welcome-icon { width: 64px; height: 64px; border: 1px solid #ffffff66; border-radius: 50%; display: grid; place-items: center; font-size: 36px; margin-bottom: 18px; color: #d8f3c7; }
.welcome h2 { font-size: 29px; letter-spacing: -.8px; margin: 0; }
.welcome p { color: #d0dfd6; line-height: 1.7; font-size: 14px; margin: 13px 0 25px; }
.welcome .primary { background: #e1f1d3; color: #204d35; min-width: 220px; }
.welcome .primary span { margin-left: 20px; }
.welcome p.welcome-note { font-size: 12px; margin: 15px 0 0; max-width: 420px; }
.camera-help { position: absolute; bottom: 18px; left: 20px; font-size: 11px; color: #f3fff2bd; z-index: 2; pointer-events: none; text-shadow: 0 1px 3px #222; }
.camera-help span { padding: 0 6px; }
.event-banner { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 85%; background: #fffdeef2; color: #2d5b38; border-radius: 10px; padding: 12px 18px; z-index: 3; box-shadow: 0 4px 24px #0002; font-weight: 600; font-size: 14px; text-align: center; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); padding: 17px 10px; }
.metrics > div { text-align: center; padding: 0 8px; border-right: 1px solid #edf0e9; }
.metrics > div:last-child { border: 0; }
.metrics span { display: block; font-size: 9px; color: var(--muted); letter-spacing: 1px; font-weight: 600; margin-bottom: 7px; }
.metrics strong { font-size: 21px; letter-spacing: -.5px; font-weight: 650; }
.metrics b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.metrics small { color: var(--muted); font-size: 12px; font-weight: 400; }
.controls { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 18px; }
.control-section + .control-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf0e9; }
.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-heading > span { font-size: 10px; color: var(--green); background: #eaf2e6; border-radius: 5px; padding: 5px 6px; font-weight: 700; }
.section-heading h2 { font-size: 15px; letter-spacing: -.2px; margin: 0; }
.scenarios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scenario { padding: 11px 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #4d6155; text-align: left; }
.scenario.selected { border-color: #62a281; background: #eef5e9; color: #215a3b; box-shadow: inset 0 0 0 1px #62a281; }
.scenario strong { display: block; font-size: 11px; white-space: nowrap; }
.scenario small { display: block; font-size: 9px; margin-top: 6px; font-weight: 400; }
.hint { color: #69786f; font-size: 12px; line-height: 1.5; margin: 8px 0 0; }
.direction-controls { display: grid; grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(2, 44px); justify-content: center; gap: 5px; margin: 4px 0 8px; }
.direction { background: #f6f8f2; color: #3a5645; border: 1px solid #dfe6db; border-radius: 7px; font-size: 19px; line-height: 1; touch-action: none; user-select: none; }
.direction small { font-size: 9px; color: #7d8a80; margin-left: 5px; }
.direction.active, .direction:active { background: #cde2c0; border-color: #65a17c; }
.up { grid-column: 2; }.left { grid-column: 1; grid-row: 2; }.down { grid-column: 2; grid-row: 2; }.right { grid-column: 3; grid-row: 2; }
.slider-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-top: 12px; color: #607466; }
.slider-label output { color: #2e6546; font-variant-numeric: tabular-nums; }
.slider-endpoints { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 2px; }
input[type=range] { width: 100%; accent-color: var(--green); cursor: pointer; height: 18px; margin: 8px 0 0; }
.primary { background: var(--green); border: 0; color: #fff; padding: 13px 16px; border-radius: 9px; font-weight: 600; font-size: 13px; }
.primary:hover:not(:disabled) { background: #195e40; color: #fff; }
.kick-button { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 15px; }
.shot-action.has-result { margin-top: 14px; padding: 14px; background: #eef5e9; border: 1px solid #cee1c5; border-radius: 10px; }
#shot-result > strong { display: block; color: #215a3b; font-size: 20px; }
#shot-result > p { color: #4a6354; font-size: 12px; line-height: 1.5; margin: 6px 0 0; }
#shot-result-speed { font-variant-numeric: tabular-nums; }
kbd { font-family: inherit; font-weight: 400; font-size: 10px; border: 1px solid currentColor; opacity: .6; border-radius: 4px; padding: 2px 5px; }
.session-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; padding-top: 8px; background: #fff; }
.secondary { border: 1px solid var(--line); background: #fff; color: #4a6354; border-radius: 8px; padding: 10px 8px; font-size: 12px; }
.secondary kbd { margin-left: 8px; }
.text-button { color: #6a7e70; background: none; border: 0; font-size: 11px; display: block; margin: 13px auto 0; }
.demo-footer { display: flex; justify-content: space-between; align-items: start; gap: 25px; margin-top: 18px; color: #7c887f; font-size: 11px; line-height: 1.6; }
.demo-footer p { margin: 0; }.demo-footer details { max-width: 500px; }.demo-footer details p { margin-top: 10px; }
.demo-footer summary { cursor: pointer; text-align: right; }
.status-dot { width: 6px; height: 6px; display: inline-block; background: #6da778; border-radius: 50%; margin-right: 6px; }
.play-layout:fullscreen { width: 100%; height: 100%; padding: 18px; overflow: auto; background: var(--paper); }
.play-layout:fullscreen .pitch { height: calc(100dvh - 160px); aspect-ratio: auto; }
.play-layout:fullscreen .controls { max-height: calc(100dvh - 36px); overflow-y: auto; }
@media (max-width: 1020px) { .play-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; }.controls { padding: 17px; }.pitch { aspect-ratio: 1.5; }.preview-badge { display: none; }.metrics { grid-template-columns: 1fr 1fr; gap: 20px 0; }.metrics > div:nth-child(2) { border: 0; } }
@media (max-width: 700px) { .topbar { height: 64px; padding: 0 18px; }.brand { font-size: 18px; }.back-link { font-size: 11px; }main { padding: 25px 16px; }.intro { margin-bottom: 22px; }.subtitle { font-size: 13px; }.play-layout { grid-template-columns: 1fr; }.pitch { aspect-ratio: 1.1; min-height: 320px; }.metrics { grid-template-columns: repeat(4, 1fr); gap: 0; padding: 17px 4px; }.metrics span { font-size: 7px; }.metrics strong { font-size: 17px; }.controls { padding: 20px; }.scenario strong { font-size: 13px; }.scenario small { font-size: 11px; }.demo-footer { flex-direction: column; gap: 12px; }.demo-footer summary { text-align: left; }.welcome h2 { font-size: 25px; }.welcome { padding: 20px; }.pitch-hud { inset: 12px 12px auto; } }
@media (max-width: 700px) { .view-toolbar { padding: 4px 10px; }.view-toolbar .text-button { min-height: 40px; }.play-layout:fullscreen { padding: 10px; }.play-layout:fullscreen .pitch { height: 45dvh; min-height: 240px; }.play-layout:fullscreen .controls { max-height: none; } }
