:root{--paper:#f4e7cf;--pine:#142820;--amber:#d69b58;--accent:#d87554;--muted:#c5c2af;font-family:Arial,Helvetica,sans-serif;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--pine);-webkit-user-select:none;user-select:none}button{font:inherit;touch-action:manipulation;cursor:pointer}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #71c9c2;outline-offset:3px}#game{position:fixed;inset:0;overflow:hidden;background:#684d32;color:var(--paper)}canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-4px!important}.hud{position:absolute;z-index:4;inset:0 0 auto;height:78px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px max(22px,env(safe-area-inset-right)) 8px max(22px,env(safe-area-inset-left));background:linear-gradient(#142820f5,#142820e8);border-bottom:1px solid #f4e7cf25;box-shadow:0 5px 24px #0004;pointer-events:none}.hud>*{pointer-events:auto}.identity{display:flex;align-items:center;gap:18px}.wordmark{display:flex;gap:2px;filter:drop-shadow(2px 3px 0 #0005)}.wordmark span{display:grid;place-items:center;width:22px;height:29px;background:var(--paper);color:var(--pine);font:900 23px Impact,'Arial Black',sans-serif;transform:rotate(-4deg)}.wordmark span:nth-child(2n){background:var(--amber);transform:rotate(4deg)}.label{border-left:1px solid #f4e7cf40;padding-left:16px;display:flex;flex-direction:column;gap:5px;font:10px monospace;letter-spacing:1px}.label span{font-size:9px;color:#c4c6b5}.stats{display:flex;gap:25px;margin-left:auto}.stats div{display:flex;flex-direction:column;gap:3px}.stats small{font-size:9px;letter-spacing:1px;color:#c4c6b5}.stats strong{font:900 27px/1 'Arial Black',Arial,sans-serif;letter-spacing:-1px}.round{flex:none;width:44px;height:44px;border:1px solid #f4e7cf42;border-radius:50%;background:#f4e7cf0b;color:var(--paper);font-size:17px}.screen{position:absolute;z-index:3;inset:0;display:flex;align-items:center;justify-content:center;padding:96px 5% 24px;background:linear-gradient(100deg,#102019dd,#10201933);overflow:auto}.brief-card,.result-card{width:min(960px,100%);display:grid;grid-template-columns:1fr 1fr;background:var(--paper);color:var(--pine);border:1px solid #fff9;box-shadow:8px 10px 0 #07160c66,0 24px 55px #0005;position:relative}.brief-copy{padding:30px 34px;background:linear-gradient(130deg,#fff6e955,transparent)}.eyebrow{font:800 10px/1.3 monospace;letter-spacing:1.4px;color:#476158}.brief-copy h1{font:900 clamp(54px,6.5vw,88px)/.86 Impact,'Arial Black',Arial,sans-serif;letter-spacing:-2px;margin:20px 0}.brief-copy h1 em{color:var(--accent);font-style:normal}.brief-copy>p{font-size:14px;line-height:1.55;margin:16px 0}.primary,.secondary{min-height:48px;border:0;border-radius:3px;padding:11px 18px;font:900 11px/1.2 Arial,sans-serif;letter-spacing:1px;display:flex;align-items:center;justify-content:space-between;gap:24px}.primary{background:var(--pine);color:var(--paper);box-shadow:3px 4px 0 #14282035}.primary span{font-size:23px;line-height:1;color:var(--amber)}.secondary{background:transparent;border:1px solid #14282060;color:var(--pine)}.brief-copy .control-note{font-size:11px;line-height:1.55;margin-bottom:0}.control-note span{color:#627067;font-size:10px}.table-picker{padding:30px 30px 24px;border-left:1px solid #14282025;background:#d7c8ac22}.table-options{display:grid;gap:8px;margin-top:17px}.table-options button{text-align:left;display:grid;grid-template-columns:1fr auto;gap:4px 10px;min-height:62px;padding:12px 14px;border:1px solid #14282030;border-radius:3px;background:#fff4d936;color:var(--pine);box-shadow:0 2px 0 #1428200c}.table-options button[aria-pressed=true]{border-color:var(--pine);background:#142820;color:var(--paper);box-shadow:3px 3px 0 #d8755460}.table-options b{font:900 11px/1.2 Arial,sans-serif;letter-spacing:.8px}.table-options span{grid-column:1;font-size:11px;opacity:.72}.table-record{grid-column:2;grid-row:1 / span 2;align-self:center;font:800 8px/1.3 monospace;max-width:65px;text-align:right;letter-spacing:.4px;opacity:.75}#table-description{font-size:12px;line-height:1.45;min-height:34px;margin:15px 0}.next-skill{font:700 10px/1.5 monospace;color:#6b5542;border-top:1px dashed #14282035;padding-top:12px;margin-bottom:0}.toast{position:absolute;z-index:2;top:96px;left:50%;transform:translate(-50%,-6px);opacity:0;transition:opacity .18s,transform .18s;pointer-events:none;padding:10px 15px;border:1px solid #fff5;border-radius:3px;background:#142820e8;color:var(--paper);box-shadow:0 5px 15px #0004;white-space:nowrap;font:900 16px/1.2 Arial,sans-serif}.toast.show{opacity:1;transform:translate(-50%,0)}#shot-dock{position:absolute;z-index:2;left:20px;right:20px;bottom:8px;height:28px;display:flex;align-items:center;gap:16px;color:var(--paper);font:800 9px/1 monospace}#shot-strip{display:flex;gap:5px}.shot-chip{min-width:28px;height:24px;display:grid;place-items:center;border:1px solid #f4e7cf6b;border-radius:4px;background:#142820a6;color:#e4dac5}.shot-chip.hit{color:#142820;background:#e8bd7c;border-color:#f4e7cf}.shot-chip.miss{color:#e8c2ae;border-color:#d87554}.shot-chip.active{border:2px solid #f4e7cf}.aim-status{display:flex;align-items:center;gap:10px;flex:1;min-width:0}#aimcopy{white-space:nowrap}.power-track{display:block;max-width:80px;min-width:35px;width:80px;height:5px;background:#14282099;border-radius:3px;overflow:hidden}.power-track i{display:block;background:var(--amber);height:100%;width:0}#objective{max-width:270px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f1d9b6}.results{background:#102019bd}.result-card{grid-template-columns:1.1fr 1fr}.result-main{padding:28px 32px}.result-main h2{font:900 25px/1 Impact,'Arial Black',Arial,sans-serif;letter-spacing:-.5px;margin:15px 0 0}#final{display:block;font:900 clamp(50px,7vw,90px)/1 'Arial Black',Arial,sans-serif;letter-spacing:-5px;color:var(--accent);margin:8px 0}#bestline{font:800 10px monospace;letter-spacing:1px;color:#476158;margin:4px 0 14px}#round-summary{font-size:13px}#earned-skills{display:flex;gap:6px;flex-wrap:wrap;min-height:23px;margin-bottom:15px}.skill-mark{font:800 9px monospace;background:#d69b582a;border:1px solid #d69b5860;border-radius:3px;padding:6px}.result-actions{display:flex;gap:8px;flex-wrap:wrap}.result-actions .secondary{font-size:9px}.result-detail{padding:28px 30px;border-left:1px solid #14282025;background:#d7c8ac22}#shot-history{padding:0;list-style:none;margin:16px 0}#shot-history li{display:grid;grid-template-columns:26px 1fr auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #14282020}#shot-history .shot-number{font:700 10px monospace;color:#627067}#shot-history b{font-size:11px}#shot-history small{display:block;font:9px/1.3 monospace;margin-top:3px;color:#6b6658}#shot-history strong{font-size:18px}#result-tip{font-size:12px;line-height:1.5;color:#526257}dialog{border:1px solid #fff8;border-radius:4px;background:var(--paper);color:var(--pine);padding:28px;width:min(380px,calc(100% - 32px));max-height:calc(100dvh - 80px);overflow:auto;box-shadow:8px 10px 0 #0005}dialog::backdrop{background:#091b15c9;backdrop-filter:blur(3px)}dialog h2{font-size:28px;margin:10px 0}dialog p{font-size:13px;line-height:1.5}dialog button{width:100%;margin-top:10px}.text-button{min-height:44px;border:0;background:transparent;color:var(--pine);font:800 10px monospace;letter-spacing:1px}a[aria-label="Back to SHRUNK"]{position:fixed;z-index:9999;left:12px;bottom:12px;color:var(--paper);font:800 10px monospace}[hidden]{display:none!important}
@media(max-width:900px){.brief-copy,.result-main{padding:22px 26px}.table-picker,.result-detail{padding:22px}.identity{gap:12px}.label{padding-left:12px}.stats{gap:18px}.table-options button{padding:10px;min-height:57px}.brief-copy h1{font-size:67px}}
@media(max-height:440px){.hud{height:58px;padding-top:5px;padding-bottom:5px}.wordmark span{width:18px;height:24px;font-size:20px}.label{font-size:9px;gap:3px}.label span{font-size:8px}.stats{gap:20px}.stats strong{font-size:22px}.stats small{font-size:8px}.round{width:42px;height:42px}.screen{padding:69px 5% 13px;align-items:flex-start}.brief-card,.result-card{max-height:100%;overflow:auto}.brief-copy,.result-main{padding:15px 22px}.table-picker,.result-detail{padding:15px 20px}.brief-copy h1{font-size:52px;margin:10px 0}.brief-copy>p{font-size:11px;line-height:1.3;margin:9px 0}.brief-copy .control-note{font-size:9px;margin:8px 0 0}.control-note span{font-size:8px}.primary,.secondary{min-height:44px;font-size:10px;padding:9px 13px}.eyebrow{font-size:8px}.table-options{margin-top:9px;gap:5px}.table-options button{min-height:44px;padding:7px 10px}.table-options b{font-size:9px}.table-options span{font-size:9px}.table-record{font-size:7px}#table-description{font-size:10px;line-height:1.3;min-height:0;margin:9px 0}.next-skill{padding-top:7px;font-size:8px;margin-top:7px}.toast{top:74px;font-size:12px;padding:8px 11px}#shot-dock{gap:12px;left:16px;right:16px}#objective{font-size:8px;max-width:210px}.result-main h2{font-size:19px;margin-top:8px}#final{font-size:52px;margin:2px 0;letter-spacing:-3px}#bestline{font-size:8px;margin:3px 0 8px}#round-summary{font-size:11px;margin:8px 0}#earned-skills{margin-bottom:8px;min-height:0}.skill-mark{font-size:8px;padding:4px}.result-actions{gap:6px}.result-actions .secondary{font-size:8px}#shot-history{margin:8px 0}#shot-history li{padding:5px 0;gap:8px}#shot-history b{font-size:10px}#shot-history small{font-size:8px;margin-top:1px}#shot-history strong{font-size:15px}#result-tip{font-size:10px;line-height:1.3;margin:7px 0}dialog{padding:18px}}
@media(max-width:700px){.label{display:none}.hud{padding-left:14px;padding-right:14px}.stats{gap:14px}.screen{padding-left:3%;padding-right:3%}.brief-copy,.result-main{padding:14px 17px}.table-picker,.result-detail{padding:14px 17px}#objective{display:none}.table-options span{display:none}.table-options button{grid-template-columns:1fr}.table-record{grid-row:2;grid-column:1;text-align:left;max-width:none}.control-note span{display:none}.result-actions .primary{gap:9px}}
@media(max-height:340px){.brief-copy h1{font-size:43px;margin:8px 0}.brief-copy>p{margin:7px 0}.brief-copy .control-note{font-size:8px}.control-note span{display:none}.table-options{gap:4px}.table-options button{min-height:44px;padding:6px 9px}#table-description{display:none}.next-skill{margin-top:6px}.result-main h2{font-size:17px}#final{font-size:44px}#result-tip{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* Keep the whole table choice and primary action visible on a phone in landscape. */
@media(max-height:440px){.brief-copy h1{font-size:42px;margin:8px 0}.brief-copy>p{margin:6px 0}.control-note span{display:none}#table-description{display:none}}

/* A physical scorecard over the polished desk, with an accessible shot review. */
.line-button{min-width:44px;height:44px;padding:0 8px;flex:none;color:var(--paper);background:#f4e7cf0b;border:1px solid #f4e7cf42;border-radius:4px;font:800 9px monospace;letter-spacing:1px}
.line-button[aria-pressed=true]{background:#e7c692;color:#142820;border-color:#fff0cf;box-shadow:inset 0 1px 2px #fff8}
.brief-card,.result-card{background:linear-gradient(110deg,#fff4de,#eee1c7);border-bottom:3px solid #c2ae8b;border-radius:3px;box-shadow:2px 3px 0 #ad9977,5px 7px 0 #dcc8a2,8px 10px 0 #07160c66,0 24px 55px #0005}
.hud{background:linear-gradient(#263e32,#142820);border-bottom:2px solid #b5986a;box-shadow:0 4px 12px #241a1655}
.table-options button{background:linear-gradient(120deg,#f7edd6,#dfd1b6);box-shadow:0 2px 3px #14282018}
.table-options button[aria-pressed=true]{background:linear-gradient(120deg,#304f40,#142820)}
#shot-dock{padding:0 8px;background:#142820d9;border:1px solid #d5ba8e55;border-radius:4px}
@media(max-width:900px){.hud{gap:8px}.stats{gap:14px}.identity{gap:8px}.label{padding-left:8px}}
@media(max-width:700px){.stats{gap:11px}.line-button{padding:0 5px}.hud{gap:7px}#shot-dock{gap:9px}#aimcopy{font-size:8px}.power-track{min-width:25px;width:45px}}
@media(max-height:440px){.control-note br+br{display:none}.brief-copy .control-note{font-size:9px;line-height:1.35}.round{width:44px;height:44px}}

/* Shot school is an optional set of one-shot lessons, with its own paper stamps. */
.sound-button{width:64px;font-size:8px;line-height:1.2;letter-spacing:.3px}
.school-entry{margin-top:10px;width:100%;justify-content:space-between;font-size:10px;background:#d9b77b26}.school-entry span{font:10px monospace;letter-spacing:0}
.entry-actions{display:block}
.school-card{width:min(980px,100%);padding:25px;background:linear-gradient(110deg,#fff4de,#eee1c7);color:var(--pine);border:1px solid #fff9;border-bottom:3px solid #c2ae8b;border-radius:3px;box-shadow:3px 5px 0 #ad9977,0 20px 50px #0007}
.school-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.school-heading h2{font:900 34px/1 Impact,'Arial Black',sans-serif;letter-spacing:-1px;margin:10px 0}.school-heading p{font-size:12px;line-height:1.4;margin:8px 0 15px;max-width:500px}.school-heading>.secondary{flex:none;font-size:9px}
#lesson-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}#lesson-grid button{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;min-height:126px;border:1px solid #526a4a55;border-radius:3px;background:linear-gradient(120deg,#fcf3de,#e4d6ba);color:#17372c;padding:15px;box-shadow:1px 3px 0 #bca88360}#lesson-grid button>span{font:700 8px monospace;letter-spacing:.6px;color:#666c50}#lesson-grid b{font-size:16px}#lesson-grid em{font-size:11px;line-height:1.35;font-style:normal}#lesson-grid small{margin-top:auto;font:800 8px monospace;color:#47624c}#lesson-grid .passed{border-color:#597340;background:linear-gradient(110deg,#e3e8c9,#c8d4ae)}#lesson-grid .passed:after{content:'✓';position:absolute;right:10px;top:7px;font:900 20px Arial;color:#55733e}
#school-progress{margin:16px 0 0;text-align:right}
#lesson-live{position:absolute;top:88px;left:50%;transform:translateX(-50%);z-index:2;background:#f4e7cfee;color:#163b2d;border:1px solid #34543c60;box-shadow:1px 2px 3px #0002;border-radius:3px;padding:8px 14px;font:700 11px monospace;pointer-events:none;max-width:calc(100% - 40px);text-align:center}
.lesson-result-card{width:min(770px,100%);display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:30px;background:linear-gradient(110deg,#fff4de,#eee1c7);color:var(--pine);border:1px solid #fff9;box-shadow:4px 7px 0 #b79f77,0 20px 50px #0007;border-radius:3px}.lesson-result-card h2{font:900 25px Impact,'Arial Black',sans-serif;margin:12px 0}.lesson-result-card p{font-size:13px;line-height:1.45}#lesson-stamp{display:inline-block;border:3px double #a45a42;color:#a45a42;transform:rotate(-5deg);font:900 37px 'Arial Black',Arial;padding:5px 12px;letter-spacing:2px}#lesson-stamp.passed{color:#446b43;border-color:#446b43}#lesson-recap{font:700 10px/1.4 monospace;color:#55705a}.lesson-coach{align-self:center}.lesson-coach button{width:100%;margin-top:9px}.lesson-coach .primary{justify-content:center}.lesson-coach .secondary{justify-content:center;font-size:9px}
@media(max-height:440px){.school-card{padding:13px 17px}.school-heading{gap:12px}.school-heading h2{font-size:24px;margin:5px 0}.school-heading p{font-size:9px;margin:4px 0 9px}.school-heading .eyebrow{font-size:7px}.school-heading>.secondary{font-size:8px;padding:9px}#lesson-grid{gap:6px}#lesson-grid button{min-height:62px;padding:8px;gap:3px}#lesson-grid button>span{font-size:7px}#lesson-grid b{font-size:12px}#lesson-grid em{font-size:9px}#lesson-grid small{font-size:7px}#school-progress{font-size:8px;margin:9px 0 0}.school-entry{margin-top:7px;min-height:44px;font-size:9px}.school-entry span{font-size:8px}.brief-copy .control-note{display:none}#lesson-live{top:65px;padding:5px 10px;font-size:9px}.lesson-result-card{padding:20px;gap:16px}.lesson-result-card h2{font-size:21px;margin:8px 0}#lesson-stamp{font-size:26px}.lesson-result-card p{font-size:11px}.lesson-coach button{margin-top:6px}.lesson-coach .text-button{min-height:44px}}
@media(max-width:700px){.sound-button{width:56px;font-size:7px}.school-heading>.secondary{max-width:120px}#lesson-grid{grid-template-columns:repeat(2,1fr)}.school-heading p{max-width:270px}#lesson-live{font-size:8px;max-width:calc(100% - 28px)}.school-card{max-height:100%;overflow:auto}.lesson-result-card{gap:12px;padding:16px}.lesson-coach .primary{font-size:9px}.lesson-result-card h2{font-size:19px}}
@media(max-height:440px){.entry-actions{display:flex;gap:7px;align-items:stretch}.entry-actions>button{flex:1;min-width:0;min-height:44px;padding:8px 9px;justify-content:center;font-size:9px;letter-spacing:.4px}.entry-actions #play span{display:none}.entry-actions .school-entry{margin:0;flex-direction:column;gap:3px}.entry-actions .school-entry span{font-size:8px}}

#study-open{min-width:54px}#study-open[aria-pressed=true]{background:#e7c692;color:#142820}
#study-panel{position:absolute;z-index:5;right:14px;top:90px;bottom:14px;width:220px;overflow:auto;border:1px solid #d4c399;border-radius:4px;padding:17px;background:linear-gradient(120deg,#f7ecd2,#daccaa);box-shadow:2px 5px 0 #071b1477;color:#17382b}
#study-panel h2{font:900 24px/1.05 Impact,'Arial Black',Arial;margin:9px 0 14px}#study-summary{font:800 10px/1.5 monospace;margin:0 0 16px;padding:9px 0;border-block:1px solid #35543a33}#study-position{font:800 10px monospace}#study-range{display:block;width:100%;height:44px;margin:0;accent-color:#315740;cursor:ew-resize;touch-action:pan-x}#study-range:focus-visible{outline:3px solid #326e66;outline-offset:1px}
.study-step-buttons{display:flex;gap:6px}.study-step-buttons button{flex:1;min-height:44px;border:1px solid #3d5b4380;border-radius:3px;background:#f5e8c9;color:#17382b;padding:5px;font:800 8px/1.3 monospace}#study-current{min-height:30px;font:800 10px/1.5 monospace;color:#31563b}.study-hint{font-size:11px;line-height:1.5;color:#4b5e47}#study-close{width:100%;margin-top:15px;font-size:9px;justify-content:center;min-height:44px}
#game[data-state=study] #toast{display:none}#game[data-state=study] canvas{cursor:default}
@media(max-width:1050px){.label{display:none}}
@media(max-height:440px){#study-panel{top:69px;padding:10px 12px}#study-panel .eyebrow{font-size:7px}#study-panel h2{font-size:18px;margin:4px 0 6px}#study-summary{font-size:8px;margin-bottom:5px;padding:4px 0}#study-position{font-size:8px}#study-current{font-size:8px;min-height:20px;margin:7px 0}.study-hint{display:none}#study-close{margin-top:5px;font-size:8px}#lesson-study{min-height:44px}.lesson-coach .text-button{margin-top:0}}
@media(max-width:700px){#study-panel{width:190px}#study-open{min-width:44px;font-size:8px}.hud{gap:6px}.stats{gap:8px}.study-step-buttons button{font-size:7px}}
@media(max-height:440px){#study-panel{padding:8px 12px}#study-panel>.eyebrow{display:none}#study-panel h2{font-size:17px;line-height:1.1;margin:0 0 4px}#study-summary{line-height:1.3;padding:2px 0;margin:0 0 3px}#study-position{display:block;line-height:10px}#study-current{min-height:0;line-height:1.2;margin:4px 0}#study-close{margin-top:2px}}
