/* Reef Runs: an event lobby, a clear race instrument, and a finish worth chasing. */
#current-runs,#current-finish{color:#effcf7;border:1px solid #669ca37a;background:radial-gradient(ellipse at 0 0,#164f60,transparent 60%),#071f2e;box-shadow:0 30px 100px #00141fe6;scrollbar-width:thin;scrollbar-color:#528a94 #071f2e;overscroll-behavior:contain}
#current-runs{width:1040px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:26px;border-radius:24px;scroll-padding:20px}
#current-runs::backdrop,#current-finish::backdrop{background:#001721a8;backdrop-filter:blur(12px)}
#current-runs header{align-items:center;margin-bottom:20px}#current-runs header h2{font:850 clamp(32px,5vw,48px)/1 Archivo,Arial,sans-serif;letter-spacing:-.055em;margin:5px 0 0}#current-runs .runs-kicker{font-size:10px;letter-spacing:.16em;font-weight:750;color:#80e7e4;margin:0}#current-runs header>button{width:44px;height:44px;padding:0;font-size:27px;border-radius:50%;background:#052837}
.runs-tabs{display:flex;gap:6px;border-bottom:1px solid #70a4b344;margin-bottom:18px;padding-bottom:8px}.runs-tabs button{border:0;border-radius:9px;background:transparent;padding:11px 20px;font-weight:700;color:#a8c5d0}.runs-tabs button[aria-selected=true]{color:#082b36;background:#8aeeeb;box-shadow:0 2px 12px #60e6ec1c}.runs-tabs button:hover:not([aria-selected=true]){background:#1b4654;color:#effcf7}
.run-competition{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:18px}.race-hero{position:relative;isolation:isolate;border:1px solid #72cfd078;border-radius:18px;overflow:hidden;background:#0a3f50 url('../play/runs-reef-v2.jpg') center 38%/cover}.race-hero:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#032231ed 0%,#062836bb 48%,#06232f55 100%)}.race-hero-copy{padding:26px;position:relative}.race-kicker{font-size:10px!important;font-weight:750;letter-spacing:.15em;color:#adffee!important;margin:0 0 12px!important}.race-kicker:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#b5ff76;box-shadow:0 0 12px #b5ff7699;margin-right:8px}.race-hero h3{font:850 clamp(30px,4vw,47px)/1.03 Archivo,Arial,sans-serif;letter-spacing:-.045em;max-width:400px;margin:0 0 10px;text-wrap:balance}.race-hero p{font-size:13px;line-height:1.5;color:#c6dede}.race-hero-copy>p:nth-of-type(2){max-width:260px;margin-bottom:24px}
.race-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:25px 0 20px;align-items:end}.race-podium-place{display:grid;gap:4px;padding:14px 8px 12px;border:1px solid #82b6c665;border-radius:10px;background:#072633cc;text-align:center}.race-podium-place span{font-size:10px;font-weight:700;color:#c8e0e5;text-transform:uppercase;letter-spacing:.05em}.race-podium-place strong{font-size:35px;line-height:1.1;font-weight:850;letter-spacing:-.05em;font-variant-numeric:tabular-nums}.race-podium-place small{font-size:10px;color:#b5ced4}.race-podium-place[data-place="1"]{padding-top:22px;border-color:#ffda737d;background:linear-gradient(#69532255,#102f33e6);color:#ffdf8c}.race-podium-place[data-place="1"] span{color:#ffdf8c}.race-podium-place[data-place="3"]{color:#e7b393}
#current-runs .race-enter{width:100%;min-height:55px;border:1px solid #e2ffac;border-radius:10px;background:linear-gradient(110deg,#d5ff8f,#a3ef62);color:#123a31;font-size:17px;font-weight:850;box-shadow:0 4px 0 #507839,0 8px 22px #07222d66}.race-enter:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}#current-runs .race-enter:disabled{opacity:.6;box-shadow:none;cursor:default}.race-prize-note{font-size:11px!important;margin:15px 0 8px!important;color:#c4d8c4!important}.race-status{font-size:10px!important;color:#a7c6d1!important;margin:0!important;min-height:2.8em}
.race-standings{min-width:0;border:1px solid #59819270;border-radius:18px;padding:18px;background:#0727359c}.race-personal{display:grid;grid-template-columns:1fr auto;gap:6px 10px;border-bottom:1px solid #6ea4b33b;padding:0 0 17px}.race-personal>span{font-size:9px;letter-spacing:.13em;color:#8cd8dc;font-weight:750}.race-personal strong{grid-column:2;grid-row:1/3;align-self:center;font-size:32px;font-weight:800;letter-spacing:-.04em;color:#d1ff8f;font-variant-numeric:tabular-nums}.race-personal small{color:#c8dce0;font-size:12px}.race-board-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.race-board-head h3{font-size:16px;margin:0;font-weight:750;letter-spacing:-.02em}.race-refresh{font-size:11px;padding:10px 0;border:0;background:transparent;color:#8fdee1;text-decoration:underline;text-underline-offset:4px}.race-board{list-style:none;margin:4px 0 0;padding:0;max-height:250px;overflow:auto}.race-board li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:4px 7px;align-items:center;padding:10px 4px;border-bottom:1px solid #70a4b326;font-size:12px}.race-board li b{grid-row:span 2;color:#f5d990}.race-board li strong{font-variant-numeric:tabular-nums;font-size:17px}.race-board li small{grid-column:2/4;color:#a8ccb6;font-size:10px}.race-board li span{min-width:0;overflow-wrap:anywhere}.race-board li[data-you=true]{background:#b6ed9610;border-left:2px solid #c6fa90}.race-empty{padding:40px 16px;color:#a5c6d3;font-size:14px;line-height:1.6;text-align:center;background:radial-gradient(ellipse,#3b8b9329,transparent);border:1px dashed #578c9c66;border-radius:12px}.race-empty:before{content:'—';display:block;color:#85c5cd;font-size:35px;margin-bottom:12px}.run-competition>details{grid-column:1/-1;margin-top:-6px}
#current-runs details{font-size:12px;line-height:1.6;color:#b3ccd5}#current-runs details p{margin:10px 0}#current-runs summary{cursor:pointer;min-height:36px;padding:8px 0}#current-runs details a,#current-runs .current-note a{color:#ffe08c;text-decoration:underline;text-underline-offset:3px}
.runs-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px;border-top:1px solid #6697a344;padding-top:17px;font-size:11px;line-height:1.6;color:#b4d2dc}.runs-controls span:first-child{color:#e2f3f4}
.practice-heading h3,.race-rewards h3{font-size:32px;letter-spacing:-.04em;margin:6px 0 8px;font-weight:800}.practice-heading p,.race-rewards p{font-size:13px;line-height:1.6;color:#bcd4dd;margin:0 0 14px}.current-styles{display:flex;gap:8px;flex-wrap:wrap;border:0;padding:0;margin:20px 0 8px}.current-styles legend{font-size:10px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:#9fcad4;margin-bottom:10px}.current-styles label{position:relative;cursor:pointer}.current-styles input{position:absolute;opacity:0;width:1px;height:1px}.current-styles span{display:flex;align-items:center;padding:11px 16px;min-height:44px;border:1px solid #618a9c;border-radius:9px;background:#0b2c3d;font-size:12px;font-weight:650}.current-styles input:checked+span{background:#86e9e5;color:#082e39;border-color:#a4fffb;box-shadow:inset 0 -3px #4aa8ab}.current-styles input:focus-visible+span{outline:3px solid #e2faac;outline-offset:3px}.current-style-note{font-size:12px;line-height:1.5;color:#b6d1db;margin:10px 0 20px;min-height:1.5em}.current-courses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.current-courses button{display:flex;flex-direction:column;align-items:stretch;gap:9px;min-width:0;overflow:hidden;text-align:left;border-radius:14px;border:1px solid #568997;padding:0 18px 18px;background:linear-gradient(145deg,#174855,#092839);transition:transform .18s,border-color .18s}.current-courses button:hover{transform:translateY(-3px);border-color:#a3ffeb}.course-art{height:116px;display:grid;place-items:center;position:relative;margin:0 -18px 6px;background:linear-gradient(110deg,#062b39bd,#07383c88),url('../play/runs-reef-v2.jpg') center/cover;border-bottom:1px solid #5b94a26b}.current-courses button:nth-child(2) .course-art{background-position:60% 70%}.current-courses button:nth-child(3) .course-art{background-position:90% 20%}.course-map{width:170px;height:96px;overflow:visible;filter:drop-shadow(0 2px 4px #001d29)}.course-map polyline{fill:none;stroke:#89ede8;stroke-width:2;stroke-dasharray:4 3}.course-map circle{fill:#f9df8a;stroke:#143a48;stroke-width:1}.course-map text{fill:#163541;font:bold 7px Arial;text-anchor:middle}.current-courses strong{font-size:21px;line-height:1.1;font-weight:800;letter-spacing:-.025em}.current-courses span{font-size:12px;line-height:1.5;color:#b9d3db;flex:1}.current-courses small{font-size:11px;line-height:1.6;color:#e3d79b}.current-courses small:first-of-type{font-size:15px;color:#c6f7f1;font-weight:750}.current-courses em{font-size:12px;font-weight:750;font-style:normal;color:#d2ff8b;border-top:1px solid #7fb2b436;padding-top:12px;margin-top:3px}.current-note{font-size:11px;line-height:1.7;color:#a7c5d0;margin:20px 0 10px}
.race-rewards{max-width:620px;padding:20px 0 28px;display:grid;grid-template-columns:1fr auto;gap:12px}.race-rewards>p,.race-rewards h3{grid-column:1/-1}.race-rewards select{min-width:0;min-height:48px;background:#0b2f3d;color:#edf9f2;border:1px solid #689da7;border-radius:9px;font:inherit;padding:10px 40px 10px 15px}.race-rewards button{border-radius:9px;background:#d0fa98;color:#15382f;font-weight:750}.race-rewards [role=status]{margin-top:8px;color:#dfefb4;min-height:2em}.race-recovery{padding:12px;margin:0 0 15px;border:1px solid #efcc77;border-radius:9px;background:#173b40}.race-recovery p{margin:0 0 10px;color:#ffdf9c}.race-recovery button{font-size:12px;margin:0 4px 4px 0;min-height:44px}
#current-runs button:focus-visible,#current-runs select:focus-visible,#current-finish button:focus-visible{outline:3px solid #b9ffbc;outline-offset:3px}
/* Keep the course visible and the same controls in place throughout a run. */
#current-hud{position:fixed;right:24px;top:98px;width:265px;padding:17px;z-index:8;border:1px solid #6bcbd0aa;border-radius:16px;background:linear-gradient(140deg,#114455f2,#062536f2);box-shadow:0 10px 35px #001b2870;pointer-events:auto}#current-hud>p:first-child{font-size:10px;line-height:1.5;font-weight:700;letter-spacing:.035em;color:#a2dfe7;margin:0 0 13px}.run-clock-caption{display:block;color:#94bfc9;font-size:8px;font-weight:700;letter-spacing:.16em;margin-bottom:3px}#current-hud>strong{font-size:44px;line-height:1;font-weight:850;letter-spacing:-.06em;font-variant-numeric:tabular-nums;color:#f5e8a9}#current-hud>span{font-size:11px;color:#b7d7de;margin-left:12px}#current-hud .run-gates{display:flex;justify-content:space-between;gap:4px;list-style:none;padding:0;margin:17px 0 10px}#current-hud .run-gates li{display:grid;place-items:center;width:26px;height:26px;border:1px solid #5c8999;border-radius:50%;font-size:10px;color:#9dc1ce;transition:background .2s,box-shadow .2s}#current-hud .run-gates [data-passed=true]{background:#b9f77b;color:#17392b;border-color:#d3ff9d;box-shadow:0 0 12px #b9f77b22}#current-hud .run-gates [data-current=true]{color:#082f3c;background:#7eece9;border-color:#acfffa;box-shadow:0 0 0 3px #83ffff20}#current-hud>p[role=status]{font-size:12px;line-height:1.5;min-height:3em;margin:10px 0;color:#d1e5e7}#current-hud>div{display:flex;gap:8px;flex-wrap:wrap}#current-hud button{font-size:11px;padding:8px 12px;border-radius:8px;min-height:44px}#current-hud[data-phase=countdown]>strong{color:#c7ff93}#current-hud[data-phase=finished]{border-color:#e8d083}
#current-gate{position:fixed;transform:translate(-50%,-50%);z-index:7;width:48px;height:48px;min-height:48px;padding:0;border:2px solid #dbff9b;border-radius:50%;background:#0b4857eb;color:#e7ffbe;font-size:20px;font-weight:850;box-shadow:0 0 0 6px #104e5680,0 5px 18px #001e2d}.current-active .task,.current-active #interaction,.current-active #arrival,.current-active .location>p:last-child{display:none!important}.current-active #controls{font-size:12px;background:#082c36ed;padding:9px 12px;border-radius:8px}.current-active .bottom button{font-size:13px}.current-active .bottom #burst{background:#ccfc8f;border-color:#e1ffaf;box-shadow:0 0 20px #bfff6022;color:#123a31;font-weight:800}.current-active .bottom #burst:disabled{background:#183e49;color:#a2c2cc;box-shadow:none;opacity:.8}#current-start{font-size:13px;padding:12px 18px;margin:8px 0}
#run-cue{position:fixed;z-index:9;left:50%;top:40%;transform:translate(-50%,-50%);pointer-events:none;color:#e6ffb6;text-shadow:0 3px 25px #003746,0 1px 4px #001e29;font:900 clamp(70px,16vw,150px)/1 Archivo,Arial,sans-serif;letter-spacing:-.06em}#run-cue[data-kind=gate],#run-cue[data-kind=penalty]{top:19%;font-size:clamp(14px,2vw,20px);letter-spacing:.025em;white-space:nowrap;color:#d8ffb0;background:#082c3ae8;border:1px solid #b5e6c288;border-radius:40px;padding:10px 18px}#run-cue[data-kind=penalty]{color:#ffd3a2;border-color:#f4ab72}#run-cue[data-kind=go]{color:#cfff8f}
#current-finish{width:560px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:32px;border-radius:24px;background:radial-gradient(ellipse at 75% 0,#356f5866,transparent 60%),#082b3b}#current-finish[data-record=true]{border-color:#d9dc82;box-shadow:0 0 50px #c2e38218,0 30px 100px #001521}#current-finish .finish-label{font-size:11px;letter-spacing:.18em;color:#caff8e;font-weight:800;margin:0 0 13px}#current-finish h2{font-size:34px;line-height:1.05;font-weight:850;letter-spacing:-.04em;margin:0 0 22px}#current-finish .finish-stats{display:flex;align-items:center;justify-content:space-between;gap:15px;border-block:1px solid #80b6b344;padding:20px 0;margin-bottom:16px}#current-finish .finish-stats strong{font-size:70px;line-height:1;font-weight:850;letter-spacing:-.06em;font-variant-numeric:tabular-nums;color:#ffe49b}#current-finish .finish-stats span{max-width:115px;font-size:13px;line-height:1.6;color:#c4e8e0}#current-finish .finish-record{font-size:13px;line-height:1.6;color:#aacbd4;margin:0 0 18px}#current-finish .finish-reward{font-size:14px;line-height:1.6;color:#d5fca8;background:#a7e4770d;border-left:2px solid #c4f583;padding:12px 15px;margin:14px 0 22px}#current-finish .finish-ranking:empty{display:none}#current-finish .finish-ranking{font-size:14px;line-height:1.5;color:#a7efec;background:#79dce50e;border:1px solid #69bdc75e;border-radius:10px;padding:13px 15px;margin:0 0 16px}#current-finish .finish-actions{display:grid;gap:10px}#current-finish button{font-size:14px;font-weight:700;min-height:48px;border-radius:9px;padding:12px 16px}#current-finish .finish-next{background:linear-gradient(110deg,#d5ff9f,#acef74);border-color:#d8ffac;color:#133a30;box-shadow:0 3px 0 #577d3f}#current-finish .finish-links{display:flex;justify-content:space-between;gap:8px;margin-top:14px}#current-finish .finish-links button{font-size:12px;background:transparent;border:0;text-decoration:underline;text-underline-offset:4px;padding:10px 0}#current-finish>button{width:100%;margin-bottom:15px}
@media(max-width:760px){#current-runs{padding:20px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.run-competition{grid-template-columns:1fr}.race-hero-copy{padding:24px}.race-hero h3{max-width:none}.race-hero-copy>p:nth-of-type(2){max-width:none}.race-podium{margin:18px 0}.race-standings{padding:16px}.race-board{max-height:240px}.race-empty{padding:12px}.race-empty:before{display:none}.runs-controls{grid-template-columns:1fr;gap:5px}.current-courses{grid-template-columns:1fr}.current-courses button{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:8px;padding:17px}.course-art{grid-column:2;grid-row:1/6;margin:-17px -17px -17px 0;height:auto;min-height:150px;border:0;border-left:1px solid #6d9eaa50}.course-map{width:100px;height:90px}.current-courses strong,.current-courses span,.current-courses small,.current-courses em{grid-column:1}.current-courses em{padding-top:8px}.current-courses strong{font-size:21px}.current-courses small{font-size:10px}.current-styles{gap:6px}.current-styles span{padding:10px 12px;font-size:11px}.current-style-note{min-height:3em}}
@media(max-width:700px){.current-active .location{display:none}.current-active .bottom #save-state{display:none}.current-active .bottom{justify-content:flex-end}#current-hud{right:12px;left:12px;top:76px;width:auto;padding:12px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center}#current-hud>p:first-child{grid-column:1;grid-row:1;margin:0;font-size:9px;max-width:220px}.run-clock-caption{display:none}#current-hud>strong{grid-column:2;grid-row:1/3;font-size:36px}#current-hud>span{grid-column:1;grid-row:2;margin:3px 0 0;font-size:10px}#current-hud .run-gates{grid-column:1;grid-row:3;margin:9px 0 0;max-width:210px}#current-hud .run-gates li{width:21px;height:21px;font-size:9px}#current-hud>p[role=status]{grid-column:1/-1;grid-row:4;font-size:10px;line-height:1.4;min-height:1.4em;margin:8px 0 0}#current-hud>div{grid-column:2;grid-row:3;gap:6px}#current-hud button{min-height:44px;font-size:10px;padding:8px}#current-hud>div:has(button:not([hidden]):nth-child(3)){grid-column:1/-1;grid-row:5}#run-cue[data-kind=gate],#run-cue[data-kind=penalty]{top:260px;font-size:13px;padding:8px 12px}#current-gate{width:44px;height:44px;min-height:44px}}
@media(max-width:450px){#current-runs{padding:16px;border-radius:18px}#current-runs header{margin-bottom:16px}#current-runs header h2{font-size:36px}#current-runs .runs-kicker{font-size:8px}.runs-tabs{gap:4px;margin-bottom:14px}.runs-tabs button{flex:1;padding:10px 8px;font-size:12px}.race-hero-copy{padding:19px}.race-hero h3{font-size:36px}.race-hero-copy>p:nth-of-type(2){font-size:12px;margin:10px 0 18px}.race-podium-place{padding:11px 4px}.race-podium-place strong{font-size:30px}.race-podium-place span{font-size:9px}.race-podium-place small{font-size:8px}.race-podium-place[data-place="1"]{padding-top:18px}#current-runs .race-enter{font-size:16px}.race-status{font-size:9px!important}.race-prize-note{font-size:10px!important}.race-rewards{grid-template-columns:1fr}.race-rewards>p,.race-rewards h3{grid-column:1}.race-rewards button{min-height:48px}.practice-heading h3,.race-rewards h3{font-size:29px}#current-finish{padding:24px}#current-finish h2{font-size:30px}#current-finish .finish-stats strong{font-size:59px}#current-finish .finish-stats span{font-size:11px;max-width:86px}#current-hud{column-gap:8px}#current-hud>p:first-child{font-size:8px}#current-hud .run-gates{gap:3px}#current-hud .run-gates li{width:18px;height:18px;font-size:8px}#current-hud>strong{font-size:32px}}
@media(prefers-reduced-motion:no-preference){#run-cue{animation:run-cue-in .18s ease-out}@keyframes run-cue-in{from{opacity:0;transform:translate(-50%,-50%) scale(.85)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}#current-finish[open]{animation:finish-in .25s ease-out}@keyframes finish-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}}
@media(prefers-reduced-motion:reduce){.current-courses button,#current-hud .run-gates li{transition:none}.current-courses button:hover{transform:none}}
/* Review refinements: visible help, readable records, and no competing badge over the clock. */
.race-personal>span{font-size:10px;color:#b7f0ec}.race-personal{border-bottom-color:#7db3bd70}.race-refresh{min-height:44px;font-weight:650;color:#a3f3ef}.race-podium-place small{font-size:10px}.run-competition>details{border:1px solid #60929e66;border-radius:9px;padding:0 12px;background:#12354180}.run-competition>details summary{font-weight:700;color:#c9e7eb;min-height:44px;padding:12px 0}#current-runs .game-guide summary{min-height:44px;font-weight:750}.current-courses .course-credit{color:#91cfce;font-size:10px}.current-active #reef-mode{display:none}.current-active .bottom #burst:disabled:before{content:'Burst · ';color:#cee5e7}.current-active .bottom #sound,.current-active .bottom #pause{border-color:#88b5c0;background:#0a303be8;color:#e0f2f3;min-height:44px}.current-active .bottom #burst{min-width:82px;min-height:44px}
@media(max-width:700px){#current-hud>div{gap:7px}#current-hud button{padding:8px 10px}#current-hud>p[role=status]{font-size:11px}#run-cue[data-kind=gate],#run-cue[data-kind=penalty]{top:242px}.current-active .bottom{gap:8px}.current-active .bottom button{font-size:12px}}

.run-mastery{padding:15px 18px;margin:16px 0;border:1px solid #84dfe75c;border-radius:16px;background:linear-gradient(110deg,#194f5c,#132d41);color:#d6f4ec}.run-mastery strong{color:#ffe18b}

.run-mastery{display:flex;flex-wrap:wrap;gap:8px 16px}.current-courses button[data-medal=true]{border-color:#d6c378}
.current-active .reef-tools{display:none}
