:root{color-scheme:dark;--plum:#501341;--ink:#2b082c;--cobalt:#214cc6;--lemon:#ffe135;--cream:#fff0d2;--muted:#e3bcd8}
.setup-slot{position:relative;height:92px}.setup{position:absolute;inset:0}.terminal-marker{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
*{box-sizing:border-box}html{scroll-behavior:smooth;overscroll-behavior:none}body{margin:0;background:radial-gradient(ellipse at 50% 20%,#85256e,#260c2b 70%);color:var(--cream);font-family:ui-rounded,"Trebuchet MS",Arial,sans-serif;overscroll-behavior:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;font-weight:800;color:inherit;cursor:pointer;border:0;touch-action:manipulation}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid white;outline-offset:3px}button:disabled{cursor:default}button:active:not(:disabled){transform:translateY(2px)}[hidden]{display:none!important}.machine{width:min(100%,460px);height:100svh;max-height:920px;margin:auto;padding:10px max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));display:grid;grid-template-rows:84px 44px 62px minmax(145px,1fr) 36px auto 64px 48px;gap:6px;position:relative;background:linear-gradient(#4b073c88,#50134166),url('../assets/play/shuttergoal/plum-texture.webp');box-shadow:0 0 70px #10001088;border-inline:1px solid #8e467d}
.brand{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;line-height:18px}.brand img{height:66px;width:auto;max-width:90%;object-fit:contain;filter:drop-shadow(0 4px 2px #260220)}.brand span{color:#efd3e6;font-size:11px;font-weight:600;letter-spacing:.04em}
.scoreboard{display:grid;grid-template-columns:1fr 84px 1fr;gap:8px;align-items:center}.ledger-side{text-align:center;min-width:0}.ledger-side>span{display:block;font-size:10px;font-weight:900;letter-spacing:.12em;margin-bottom:3px}.pips{display:flex;gap:4px;justify-content:center;border-radius:18px;padding:5px;background:linear-gradient(#fff0d2,#b99b91);box-shadow:inset 0 2px 1px #fff8e1,0 3px 4px #210820}.pip{height:15px;width:15px;border-radius:50%;background:#521144;box-shadow:inset 0 2px 3px #19051c,0 1px 1px #fff1ca;color:#fff6d6;display:flex;align-items:center;justify-content:center;font-size:12px;line-height:1;flex-shrink:1}.pip.goal{background:#ffdf26;color:#573400;box-shadow:inset 0 2px 1px #fff89c,0 0 5px #ffc821}.pip.save{background:#582047}.pip.current{outline:1px solid #fff9dc;outline-offset:1px}.score{border:4px solid #2248b4;border-radius:12px;background:linear-gradient(#fff3dc,#d8bca6);box-shadow:0 3px 0 #132863,inset 0 1px 2px white;color:#40113b;text-align:center;font-size:25px;line-height:32px}
.keeper-card{padding:6px 10px;border-radius:12px;background:#310c32d9;border:1px solid #a25d8e;font-size:12px;line-height:16px;overflow:hidden}.keeper-card>div{display:flex;justify-content:space-between;gap:5px}.keeper-card b{color:var(--lemon);font-size:14px}.keeper-card #round-label{font-size:11px;white-space:nowrap}.keeper-card p{margin:0;font-weight:700}.keeper-card small{display:block;font-size:11px;color:var(--muted)}
.court-wrap{min-height:0;position:relative;border-radius:16px;overflow:hidden;box-shadow:0 6px 12px #230622,inset 0 0 0 1px #f1baeb45;background:#4f1349}canvas[data-stage]{width:100%;height:100%;display:block;touch-action:none;overscroll-behavior:none;user-select:none}.scene-tag{position:absolute;top:4px;left:0;right:0;text-align:center;font-size:10px;letter-spacing:.1em;font-weight:900;text-shadow:0 2px 2px #18061d;pointer-events:none;color:#ffefc5}.instruction{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:17px;min-width:0}.instruction strong{font-size:15px;max-width:100%}.instruction span{font-size:11px;color:#f6d9e9}.setup{display:grid;gap:4px}.segmented{display:flex;gap:6px}.segmented button{flex:1;min-width:0;min-height:44px;border-radius:12px;border:1px solid #a06a99;background:linear-gradient(#682450,#45103e);font-size:13px;box-shadow:0 3px 0 #260a2b}.segmented button[aria-pressed=true]{background:linear-gradient(#fff0ab,#e4c340);color:#43113c;border-color:#fff8b1;box-shadow:0 3px 0 #9b6c17}.difficulties button{min-height:44px;font-size:13px}
.lane-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.lane{min-height:56px;height:56px;background:linear-gradient(#385fe866,#163bbfaa),url('../assets/play/shuttergoal/cobalt-texture.webp');border:3px solid #eacb32;border-radius:18px;box-shadow:inset 0 2px 1px #9fb8ff,0 4px 0 #aa811c,0 6px 6px #230322;display:flex;align-items:center;justify-content:center;gap:6px}.lane>span{font-size:25px;line-height:1}.lane small{font-size:10px;line-height:13px}.lane[aria-pressed=true]{background:#fff0a0;color:#461044;border-color:white;box-shadow:0 0 10px #ffe13588,0 4px 0 #aa811c}.lane:disabled{border-color:#916e88;box-shadow:inset 0 2px 2px #c29bb2,0 3px 0 #3a0c38;background:#5a234e;color:#dbc2cf}.lane.shut{background:repeating-linear-gradient(45deg,#481840,#481840 8px,#57204e 8px,#57204e 16px)}
.main-action{height:64px}.commit{width:100%;min-height:64px;border-radius:22px;color:#54103f;font-size:21px;font-weight:900;background:linear-gradient(#fff5a3 0%,#ffe438 12%,#f6d316 75%,#d5a809 100%);box-shadow:inset 0 3px 1px #fff7af,0 5px 0 #9c6811,0 8px 10px #270624;border:2px solid #ffe974;text-shadow:0 1px #fff6b2}.commit span{margin-left:12px;font-size:25px}.commit:disabled{background:#bd9f67;color:#4b3547;box-shadow:0 4px 0 #675337;border-color:#d0ba8a}.toolbar{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.toolbar button{min-height:48px;border-radius:16px;background:linear-gradient(#4264dd77,#163292aa),url('../assets/play/shuttergoal/cobalt-texture.webp');box-shadow:inset 0 2px 1px #7e98f3,0 3px 0 #091d69,0 5px 4px #250621;border:1px solid #4267e1;font-size:23px}.toolbar span{font-size:11px;vertical-align:middle;margin-left:3px}
.below-game{max-width:640px;margin:18px auto;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 20px;padding:0 14px;font-size:13px}.below-game a{color:#ffdf63;min-height:44px;display:inline-flex;align-items:center}.below-game>span{color:#d5b2d0;font-size:12px}.help{max-width:740px;margin:20px auto 60px;padding:24px;color:#ecd9e8;line-height:1.7;font-size:16px}.help h2{font-size:23px;color:#ffe776;line-height:1.25;margin-top:32px}.help li{margin:12px 0}.help:target{scroll-margin-top:12px}dialog{width:min(420px,calc(100% - 24px));max-height:calc(100dvh - 36px);border:2px solid #d6a5c6;border-radius:22px;padding:20px;background:linear-gradient(#60174f,#310e35);color:var(--cream);box-shadow:0 15px 70px #14021b;font-size:14px;overflow:auto}dialog::backdrop{background:#1a0525b8;backdrop-filter:blur(4px)}dialog h2{color:#ffe56b;font-size:25px;margin:0 0 12px}dialog p{line-height:1.5}dialog button:not(.commit){min-height:48px;border-radius:12px;background:#294dc1;padding:10px 14px;border:1px solid #7189d9}dialog .settings{display:flex;gap:8px;flex-wrap:wrap}.dialog-actions{display:grid;gap:10px;margin-top:16px}.route{list-style:none;padding:0;margin:12px 0;display:grid;gap:9px}.route li{padding:9px 12px;background:#260b2b;border:1px solid #845476;border-radius:12px}.route li.current{border-color:#ffe135}.route b,.route small{display:block}.route small{color:#d4b7d0;margin-top:3px}.route .won{color:#ffe135}.seed{font-family:monospace;color:#e4bcda;font-size:12px}.result-cup{width:76px;float:right;margin-left:8px}.reduced *{scroll-behavior:auto!important;transition:none!important}
.machine{grid-template-rows:112px 44px 62px minmax(145px,1fr) 36px auto 64px 48px}.brand img{height:92px}
@media(min-width:700px){.machine{margin:0 auto;border-radius:0 0 24px 24px}.below-game{margin-top:20px}}
@media(max-height:780px){.machine{grid-template-rows:60px 42px 54px minmax(145px,1fr) 34px auto 64px 48px;gap:4px;padding-top:6px;padding-bottom:8px}.brand img{height:44px}.brand span{font-size:10px;line-height:14px}.keeper-card{padding:3px 8px;line-height:15px}.keeper-card small{font-size:10px}.instruction strong{font-size:14px}.instruction span{font-size:10px}.score{font-size:23px}}
@media(max-width:360px){.machine{padding-inline:8px}.scoreboard{grid-template-columns:1fr 76px 1fr;gap:5px}.pips{gap:3px;padding:4px}.pip{width:14px;height:14px}.keeper-card b{font-size:13px}.lane{gap:3px;border-radius:15px}.lane small{font-size:9px}.toolbar span{font-size:10px;margin-left:1px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
