@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');
#ctcscreen{position:fixed;right:28px;top:90px;width:88px;height:auto;opacity:.8;filter:brightness(0) saturate(100%) invert(29%) sepia(94%) saturate(4450%) hue-rotate(316deg) brightness(104%) contrast(104%);pointer-events:none;z-index:6}@media(max-width:700px){#ctcscreen{top:68px;right:18px;width:64px}.brand{font-size:14px!important;letter-spacing:1px!important}.brand .mark{font-size:25px!important}.brand .edition{display:none}}@media(orientation:landscape) and (max-height:550px){#ctcscreen{top:52px;width:60px}}
.nickname{display:block;font-size:12px;letter-spacing:1px;margin:16px 0;color:#d1e7df}.nickname input{display:block;margin-top:7px;background:#082b39d9;border:1px solid #cce9dd70;border-radius:4px;padding:11px 13px;color:white;font:16px Inter,Arial,sans-serif;width:246px;touch-action:manipulation}.nickname input:focus{outline:2px solid var(--lime)}#controls #paddle.in-water{background:#a8efd6;box-shadow:0 0 24px #9be8d044;transform:translateY(2px)}
#finish{width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 28px);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:26px}#finish h2{font-size:46px;line-height:.95;margin:12px 0}#finish h2 br{display:none}#finish>strong{font-size:40px}#finish .stats{margin-top:12px;padding:12px 0;gap:32px}#finish .stats b{font-size:20px}#finish p{font-size:14px;line-height:1.45}#finish .primary{min-height:48px;font-size:12px}.leaderboard{border-top:1px solid #cce9dd40;margin:4px 0 18px;padding-top:12px}.leaderboard h3{display:flex;align-items:center;justify-content:space-between;font-size:16px;margin:0 0 8px}.leaderboard h3 span{font-size:12px;font-weight:500;color:#b6d2ce}.leaderboard ol{list-style:none;margin:0;padding:0}.leaderboard li{display:flex;align-items:center;gap:14px;padding:8px;border-bottom:1px solid #ffffff12;font-size:14px;min-height:35px}.leaderboard li span:first-child{color:#a7c5c3;font-size:12px}.leaderboard li span:nth-child(2){flex:1;overflow-wrap:anywhere}.leaderboard li b{font-variant-numeric:tabular-nums}.leaderboard .your-score{background:#d0fa8618;color:#d0fa86}.leaderboard #leaderstatus{font-size:12px;margin:10px 0 0;color:#c2d8d1}.leaderboard .textbutton{margin:10px 0 0;font-size:14px}#intro{max-height:calc(100dvh - 130px);overflow-y:auto;touch-action:pan-y;padding:0 8px 16px 0}@media(max-height:750px){#intro{top:17%}.intro h1{font-size:64px!important}.intro p{margin:14px 0!important}.nickname{margin:10px 0}.intro .record{margin-top:12px}.intro .primary{padding:16px 20px}}@media(orientation:landscape) and (max-height:550px){#intro{top:18%;max-height:78dvh}.intro h1{font-size:44px!important}.intro .nickname{float:right;margin:0 0 0 24px}#finish h2{font-size:32px}#finish{max-height:95dvh}}
#pickup[data-state=lost]{border-color:#f3ae83}#pickup[data-state=lost] #pickupcue{color:#ffc29e}
:root{color-scheme:dark;--lime:#d0fa86;--white:#f6f7e9}*{box-sizing:border-box}body{margin:0;background:#173c4d;color:var(--white);font-family:Inter,Arial,sans-serif;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid var(--lime);outline-offset:5px}[hidden]{display:none!important}#world,.vignette{position:fixed;inset:0}#world canvas{display:block;width:100%;height:100%}.vignette{pointer-events:none;background:linear-gradient(90deg,rgba(3,23,31,.56),transparent 65%),linear-gradient(0deg,rgba(0,19,29,.65),transparent 30%,transparent 80%,rgba(0,20,30,.25))}header{position:absolute;top:32px;left:42px;right:42px;display:flex;justify-content:space-between;align-items:center;z-index:2}.brand{font-weight:800;letter-spacing:3px;font-size:23px;text-decoration:none;color:inherit;display:flex;align-items:center;gap:11px}.mark{color:var(--lime);font-size:40px;line-height:25px}.edition{font-size:8px;letter-spacing:2px;border-left:1px solid #ffffff40;padding-left:17px;max-width:90px;line-height:1.6;font-weight:500}.topright{display:flex;align-items:center;gap:22px;font-size:10px;letter-spacing:1px}.weather i{display:inline-block;width:3px;height:3px;background:var(--lime);margin:0 12px;vertical-align:middle}.topright button,.textbutton{background:transparent;border:1px solid #ffffff50;padding:12px 15px;border-radius:3px;font-size:10px;letter-spacing:1px}.intro{position:absolute;left:7%;top:24%;}.eyebrow{font-size:10px;letter-spacing:2.5px;color:var(--lime);font-weight:600}.eyebrow span{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--lime);margin-right:8px}h1,h2{font-family:'Barlow Condensed',Impact,'Arial Narrow',sans-serif;font-stretch:condensed;font-size:clamp(70px,8.5vw,140px);line-height:.84;letter-spacing:-2px;margin:25px 0}em{font-style:italic;color:var(--lime)}.intro p{font-size:13px;line-height:1.8;color:#e0e9e6;margin:24px 0}.primary{background:var(--lime);border:0;color:#162d28;font-size:11px;letter-spacing:1.5px;font-weight:800;padding:20px 24px;min-width:246px;display:flex;justify-content:space-between;gap:32px;box-shadow:0 8px 40px #163c3130}.primary:hover{background:#e2ffb0;transform:translateY(-2px)}.primary span{font-size:18px;line-height:12px}.introcontrols{display:flex;gap:19px;font-size:10px;color:#c3d1d0;margin-top:20px;align-items:center}kbd{font-family:inherit;border:1px solid #bdcfce60;border-radius:3px;padding:4px 6px;margin-right:4px;font-size:9px}.record{margin-top:28px;font-size:8px;letter-spacing:2px;color:#bdd0cc}.record b{margin-left:14px;font-size:14px;color:white;letter-spacing:0}.record small{display:block;font-size:8px;letter-spacing:0;margin-top:6px;opacity:.7}.bottomline{position:absolute;bottom:23px;left:42px;right:42px;display:flex;justify-content:space-between;font-size:9px;letter-spacing:2px;color:#dce4df}.bottomline b{color:var(--lime);margin:0 10px}.timecard{position:absolute;top:113px;left:42px;width:235px}.timecard>span,.speedcard>span,.ridecard>span{font-size:9px;letter-spacing:2px;color:#d8e6df}.timecard strong{font-size:40px;font-weight:500;display:block;font-variant-numeric:tabular-nums;letter-spacing:-1px;margin:8px 0 16px}.track{height:3px;background:#ffffff30}.track i{display:block;background:var(--lime);height:100%;width:0}.dist{display:flex;justify-content:space-between;font-size:9px;margin-top:9px}.dist b{color:var(--lime);font-weight:500}.speedcard{position:absolute;left:42px;bottom:125px;width:235px}.speedcard strong{font-family:'Barlow Condensed',Impact,sans-serif;font-size:90px;line-height:1.1;font-weight:600}.speedcard small{margin-left:12px;font-size:12px}.speedcard label{display:flex;align-items:center;gap:13px;font-size:8px;letter-spacing:2px}.speedcard label i{flex:1;height:4px;background:#ffffff30}.speedcard label b{display:block;width:100%;height:100%;background:var(--lime);transition:width .15s}.speedcard p{font-size:10px;color:#d0e3dc;min-height:24px}.ridecard{position:absolute;right:42px;bottom:133px;text-align:right;display:grid;gap:12px}.ridecard b{font-size:30px;font-weight:500}.ridecard small{font-size:10px;color:#d0e3dc}#wavehint{position:absolute;top:120px;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:2px;color:var(--lime);background:#082d3f80;border:1px solid #c7fa7740;padding:12px 20px;text-align:center;white-space:nowrap}#controls{position:absolute;bottom:65px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px}#controls button{background:#0a2c3ea6;border:1px solid #cce9dd60;width:58px;height:58px;border-radius:50%;font-size:25px;touch-action:none;user-select:none}#controls #paddle{width:180px;height:64px;border-radius:5px;background:var(--lime);color:#17332e;border:0;font-size:13px;font-weight:800;letter-spacing:2px}#paddle span{display:block;font-size:8px;font-weight:500;margin-top:5px}#controls button:active,#controls button.active{transform:scale(.94);filter:brightness(1.25)}.result{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#082b39eb;border:1px solid #cee4d62b;padding:42px;width:420px;backdrop-filter:blur(18px);z-index:3}.result h2{font-size:80px;margin:22px 0}.result>strong{display:block;font-size:44px;font-variant-numeric:tabular-nums}.result p{font-size:12px;line-height:1.7;color:#c9dcd5}.stats{display:flex;gap:40px;border-top:1px solid #ffffff25;margin-top:22px;padding:20px 0;font-size:8px;letter-spacing:1px}.stats b{display:block;font-size:22px;margin-top:8px;font-weight:500}.result .primary{width:100%}.textbutton{display:block;margin:16px auto 0}#error{position:absolute;inset:35% 20%;padding:30px;background:#12303d;z-index:10}body.playing .vignette{background:linear-gradient(0deg,#00152399,transparent 40%),linear-gradient(90deg,#00152350,transparent 35%)}
@media(max-width:700px){header{top:22px;left:20px;right:20px}.brand{font-size:17px;letter-spacing:2px}.edition,.weather{display:none}.topright{gap:6px}.topright button{padding:10px;font-size:8px}.intro{left:8%;top:23%}h1{font-size:91px}.bottomline{left:20px;right:20px;font-size:7px;letter-spacing:1px}#bottomtip{display:none}.timecard{top:90px;left:20px;width:170px}.timecard strong{font-size:30px}#wavehint{top:190px;max-width:90%;font-size:8px;padding:10px}.speedcard{left:20px;bottom:163px;width:160px}.speedcard strong{font-size:64px}.ridecard{right:20px;bottom:180px}.ridecard small{max-width:105px;line-height:1.5}.ridecard b{font-size:24px}#controls{bottom:70px}.result{width:calc(100% - 40px);max-width:420px;padding:30px}.record{margin-top:20px}}@media(max-height:680px){.intro{top:21%}h1{font-size:78px}.intro p{margin:18px 0}.record{display:none}.introcontrols{margin-top:14px}.result h2{font-size:58px}.result{padding:25px}.bottomline{bottom:16px}}
#pickup{position:absolute;top:103px;left:50%;transform:translateX(-50%);width:340px;background:linear-gradient(135deg,#072536ee,#0a3444ca);border:1px solid #c7e5eb38;border-radius:6px;padding:17px 20px;box-shadow:0 8px 35px #04273633;backdrop-filter:blur(8px)}
.pickuphead,.pickuplabels{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.5px}.pickuphead b{color:#d0fa86;font-size:10px}.pickuplabels{font-size:7px;color:#bcd3d9;margin-top:7px;letter-spacing:1px}#pickupmeter{height:10px;background:#afc5d122;margin-top:12px;position:relative;overflow:hidden;border-radius:2px}#pickupfill{height:100%;width:0;display:block;background:linear-gradient(90deg,#54bdd2,#d0fa86);transition:width .12s linear}.powerzone{position:absolute;inset:0 0 0 50%;border-left:2px solid #ffdb8d;background:repeating-linear-gradient(120deg,transparent 0 7px,#ffdf8d18 8px 10px)}#pickupcue{display:block;font-size:12px;letter-spacing:1.25px;margin-top:15px;color:#e3f0f0}#pickuptip{display:block;font-size:10px;color:#bed2d6;margin-top:7px;line-height:1.4}#pickup[data-state=power]{border-color:#ffcd69}#pickup[data-state=power] #pickupcue{color:#ffda84}#pickup[data-state=glide] #pickupcue{color:#9bf3cb}#controls #paddle.power{background:#ffda84;box-shadow:0 0 30px #ffd58050}body.playing #wavehint{top:270px;background:#05283980;border:0;font-size:8px}body.playing .vignette{background:linear-gradient(0deg,#00182788,transparent 26%),linear-gradient(90deg,#00152330,transparent 25%)}.speedcard{bottom:140px}.ridecard{bottom:150px}
@media(max-width:700px){#pickup{top:86px;left:auto;right:16px;transform:none;width:calc(100% - 208px);min-width:165px;padding:12px}.pickuphead{font-size:7px;letter-spacing:1px}#pickupcue{font-size:9px;letter-spacing:.5px;line-height:1.4}#pickuptip{font-size:8px;line-height:1.4}.pickuplabels{font-size:6px;letter-spacing:0}body.playing #wavehint{top:258px;font-size:7px;white-space:normal;width:90%}.speedcard{bottom:150px}.ridecard{bottom:165px}}
@media(max-height:550px){#pickup{top:74px;width:290px;padding:10px 14px}#pickuptip{display:none}#pickupcue{margin-top:8px}body.playing #wavehint{top:185px}.timecard{top:78px}.speedcard{bottom:84px}.speedcard strong{font-size:55px}.ridecard{bottom:100px}#controls{bottom:38px}}
@media(max-width:450px){.timecard{width:108px}.timecard strong{font-size:23px}.timecard>span{font-size:7px;letter-spacing:1px}#pickup{width:calc(100% - 154px)}.speedcard{width:135px}.speedcard p{font-size:9px}}
/* Thumb controls remain clear of the cockpit and device safe areas. */
html,body{overscroll-behavior:none;touch-action:none}#controls{bottom:max(57px,calc(env(safe-area-inset-bottom) + 30px))}#pickup[data-state=hole]{border-color:#f0a972}#pickup[data-state=hole] #pickupcue{color:#ffc39b}
@media(max-width:700px){header{top:max(14px,env(safe-area-inset-top));left:16px;right:16px}.topright button{min-height:42px}.brand{font-size:15px}.timecard{top:84px;left:16px;width:104px}.timecard strong{font-size:22px}.timecard>span{font-size:7px;letter-spacing:1px}#pickup{top:82px;right:16px;width:calc(100% - 150px);padding:12px}#pickupcue{font-size:10px}#pickuptip{min-height:24px}body.playing #wavehint{top:250px}#controls{left:16px;right:16px;transform:none;justify-content:space-between;gap:12px;bottom:max(40px,calc(env(safe-area-inset-bottom) + 22px))}#controls button{width:68px;height:76px;border-radius:12px;flex-shrink:0;background:#092f43e6}#controls #paddle{height:80px;width:auto;flex:1;max-width:240px}.speedcard{left:16px;bottom:145px;width:130px}.speedcard strong{font-size:55px}.speedcard p{font-size:9px}.ridecard{right:16px;bottom:170px}.ridecard small{display:none}.bottomline{bottom:max(13px,env(safe-area-inset-bottom));left:16px;right:16px;font-size:7px}.intro{top:23%}.intro h1{font-size:76px}}
@media(orientation:landscape) and (max-height:550px){header{top:8px;left:16px;right:16px}.edition,.weather{display:none}.timecard{top:65px;left:16px;width:120px}.timecard strong{font-size:25px}#pickup{top:60px;left:50%;right:auto;transform:translateX(-50%);width:260px;padding:10px}#pickuptip{display:none}body.playing #wavehint{top:169px}.speedcard{bottom:95px;left:16px}.speedcard strong{font-size:45px}.speedcard p,.ridecard{display:none}#controls{left:16px;right:16px;bottom:max(27px,env(safe-area-inset-bottom));transform:none;justify-content:space-between}#controls button{height:60px;width:76px;border-radius:12px}#controls #paddle{width:180px;flex:0 1 180px;height:64px}.intro{top:22%;left:7%}.intro h1{font-size:62px;margin:14px 0}.intro p{font-size:11px;margin:10px 0}.intro .primary{padding:15px 20px}.introcontrols,.record{display:none}}
@media(min-width:701px) and (min-height:551px){#pickup{left:auto;right:42px;transform:none;width:300px}body.playing #wavehint{top:232px;left:42px;transform:none;width:235px;white-space:normal;line-height:1.6;text-align:left;padding:10px 12px}}
/* Keep the wave ahead clear: the pickup gauge lives beside the paddle controls. */
#pickup{position:absolute;top:auto!important;right:auto!important;bottom:143px;left:50%!important;transform:translateX(-50%)!important;width:310px;padding:11px 16px;background:#062936dc;border-radius:8px}#pickup .pickuplabels,#pickuptip{display:none!important}#pickupmeter{margin-top:7px;height:6px}#pickupcue{margin-top:9px;font-size:10px;letter-spacing:1px}#wavehint{display:none!important}.timecard{width:240px}.timecard>span{font-size:8px}.timecard strong{font-size:42px;margin:7px 0 13px}.checkpointtarget{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:8px;letter-spacing:1px}.checkpointtarget b{color:var(--lime);font-size:13px}.checkpointtarget span{margin-left:auto;font-size:8px;letter-spacing:0;color:#c9dedd}#checkpointnote{position:absolute;top:91px;left:50%;transform:translateX(-50%);font-size:9px;letter-spacing:1px;color:#d0fa86;white-space:nowrap;pointer-events:none}.urgent{color:#ffba86}.ridecard{bottom:158px}.speedcard{bottom:132px}.speedcard p{display:none}.result>strong{font-size:48px}.result .primary{font-size:10px}
@media(max-width:700px){#pickup{bottom:max(136px,calc(env(safe-area-inset-bottom) + 118px));width:calc(100% - 32px);padding:10px 14px}.pickuphead{font-size:8px}#pickupcue{font-size:10px;line-height:1.2}.timecard{left:16px;top:80px;width:160px}.timecard strong{font-size:32px}.checkpointtarget{flex-wrap:wrap;margin-top:8px;gap:5px}.checkpointtarget span{width:100%;margin:0;font-size:8px}.speedcard{top:89px;bottom:auto;left:auto;right:16px;width:130px;text-align:right}.speedcard strong{font-size:39px}.speedcard small{font-size:9px;margin-left:4px}.speedcard label{font-size:7px;margin-top:8px}.ridecard{display:none}#checkpointnote{top:auto;bottom:max(220px,calc(env(safe-area-inset-bottom) + 202px));font-size:7px;letter-spacing:.4px}.intro p{font-size:12px}.intro h1{font-size:74px}}
@media(orientation:landscape) and (max-height:550px){#pickup{bottom:104px;width:270px;padding:8px 12px}#pickupcue{font-size:9px;margin-top:6px}#pickup .pickuphead{font-size:7px}.timecard{top:62px;width:180px}.timecard strong{font-size:29px}.checkpointtarget{margin-top:5px}.speedcard{top:65px;right:16px;left:auto;bottom:auto;width:130px;text-align:right}.speedcard strong{font-size:37px}.ridecard{display:none}#checkpointnote{top:50px;bottom:auto;font-size:7px}.intro h1{font-size:58px}.intro p{font-size:10px}.result{padding:20px;max-height:95vh}.result h2{font-size:40px;margin:12px 0}.result>strong{font-size:32px}.result .stats{margin-top:10px;padding:10px 0}.result p{font-size:10px;margin:9px 0}}

#pickup[data-state=perfect]{border-color:#b5ff83;box-shadow:0 0 28px #b5ff8328}#pickup[data-state=perfect] #pickupcue{color:#cfff9c}#pickup[data-state=ahead],#pickup[data-state=trim]{border-color:#ffc180}#pickup[data-state=ahead] #pickupcue,#pickup[data-state=trim] #pickupcue{color:#ffd39e}

@media(pointer:coarse){#controls{gap:10px}#controls #paddle{min-height:86px;max-width:280px}#controls button{min-width:70px;-webkit-touch-callout:none}#controls #paddle.active{box-shadow:0 0 28px #d0fa8660}#strokecue{font-size:11px;letter-spacing:.5px}}
@media(pointer:coarse) and (orientation:landscape) and (max-height:550px){#controls #paddle{min-height:64px}}

html,body{touch-action:auto}html.gameplay-zoom-locked,html.gameplay-zoom-locked body{touch-action:none}#intro,#finish,#paused{touch-action:pan-y pinch-zoom}

#linknotice{position:absolute;top:24%;left:50%;transform:translateX(-50%);font:italic 700 clamp(28px,5vw,48px) "Barlow Condensed",sans-serif;color:#d0fa86;text-shadow:0 3px 15px #001a26;text-align:center;pointer-events:none;white-space:nowrap}#pickup[data-state=edge]{border-color:#ffab86}#pickup[data-state=link]{border-color:#d0fa86}
/* Opening screen: shared records alongside the start controls, stacked on phones. */
#intro{display:grid;grid-template-columns:minmax(280px,500px) minmax(260px,360px);column-gap:clamp(24px,5vw,80px);width:86%;top:18%;max-height:calc(100dvh - 150px)}
#intro>*{grid-column:1}#intro #startleaderboard{grid-column:2;grid-row:1/9;align-self:start;margin:36px 0 0;padding:22px;background:#092c39e8;border:1px solid #cce9dd40;border-radius:12px;backdrop-filter:blur(12px)}
#startleaderboard h3{gap:12px}#startleaderboard h3 span{font-size:10px;letter-spacing:.5px}#startleaderboard li:first-child{color:var(--lime);background:#d0fa8610}#intro #startleaderstatus{font-size:12px;line-height:1.5;margin:12px 0 0;color:#b6d2ce}#startleaderboard li{padding:12px 4px}
@media(max-width:760px){#intro{display:block;width:84%;top:100px;max-height:calc(100dvh - 138px)}#intro h1{font-size:48px!important;line-height:.95;margin:12px 0}#intro>p{font-size:13px;line-height:1.5;margin:12px 0!important}#intro #startleaderboard{margin:18px 0;padding:14px}#startleaderboard li{padding:7px 4px}#intro .primary{width:100%}#intro .nickname{float:none}#intro .nickname input{width:100%;box-sizing:border-box}}
@media(orientation:landscape) and (max-height:550px){#intro{top:65px;max-height:calc(100dvh - 85px)}}
/* Full-circle power reserve. It stays out of the central wave-reading area. */
.energy-gauge{position:absolute;right:40px;top:157px;width:112px;height:137px;color:var(--lime);pointer-events:none;text-align:center;filter:drop-shadow(0 3px 12px #001a26b0)}.energy-gauge svg{display:block;width:112px;height:112px;transform:rotate(-90deg);overflow:visible}.energy-gauge circle{fill:#062936b8;stroke-width:6}.energy-gauge .energy-track{stroke:#ffffff30}#energyarc{fill:none;stroke:currentColor;stroke-linecap:round;transition:stroke-dashoffset .15s ease-out}.energy-reading{position:absolute;top:31px;left:0;width:100%;display:flex;flex-direction:column;align-items:center}.energy-reading strong{font:600 34px/1 'Barlow Condensed',sans-serif;font-variant-numeric:tabular-nums}.energy-reading strong small{font:500 12px Inter,sans-serif;margin-left:2px}.energy-reading>span{font:600 10px Inter,sans-serif;letter-spacing:1.4px;margin-top:5px;color:#e2eee5}#energystate{display:block;font:600 9px/1.4 Inter,sans-serif;letter-spacing:.6px;margin:5px -15px 0}.energy-gauge[data-state=low]{color:#ffd095}.energy-gauge[data-state=empty]{color:#ffad98}#controls #paddle.exhausted{background:#173c49;color:#ffcab3;border:1px solid #e49a8270;box-shadow:none}#controls #paddle.exhausted.active{box-shadow:none}#controls #paddle.exhausted.in-water{background:#35534b}@media(max-width:700px){.energy-gauge{right:18px;top:172px;width:84px;height:107px}.energy-gauge svg{width:84px;height:84px}.energy-reading{top:23px}.energy-reading strong{font-size:27px}.energy-reading>span{font-size:8px;margin-top:3px;letter-spacing:.7px}#energystate{font-size:8px;margin-top:5px}#controls #paddle.exhausted #strokecue{font-size:9px;letter-spacing:0}}@media(orientation:landscape) and (max-height:550px){.energy-gauge{right:32px;top:141px;width:72px;height:90px}.energy-gauge svg{width:72px;height:72px}.energy-reading{top:18px}.energy-reading strong{font-size:25px}.energy-reading>span{font-size:7px}#energystate{font-size:7px;margin-top:2px}}@media(prefers-reduced-motion:reduce){#energyarc{transition:none}}

#sharepanel{margin:16px 0 20px;padding-top:16px;border-top:1px solid #cce9dd40}.share-actions{display:flex;gap:10px}.share-actions button{padding:13px 15px;min-height:46px;border:1px solid #d0fa86;border-radius:4px;background:transparent;color:#d0fa86;font-size:13px;font-weight:600}.share-actions #sharetime{flex:1;background:#d0fa86;color:#162d28}.share-actions button:disabled{opacity:.6;cursor:wait}#sharestatus{font-size:13px!important;line-height:1.5!important;color:#d1e7df;margin:10px 0 0!important}#sharestatus:empty{display:none}#sharemanual label{display:block;font-size:14px;margin:14px 0 8px}#sharetext{width:100%;box-sizing:border-box;background:#062936;border:1px solid #cce9dd70;border-radius:4px;padding:12px;color:#f6f7e9;font:14px/1.5 Inter,Arial,sans-serif;resize:vertical;touch-action:auto;user-select:text}#sharetext:focus{outline:2px solid #d0fa86;outline-offset:2px}@media(max-width:380px){.share-actions{flex-wrap:wrap}.share-actions button{width:100%}}
.brand-group{display:flex;align-items:center;gap:26px;min-width:0}.ctc-sponsor{display:flex;align-items:center;justify-content:center;padding-left:26px;border-left:1px solid #ffffff35;flex-shrink:0;min-height:44px}header #ctcscreen{position:static;display:block;width:114px;height:auto;opacity:1;pointer-events:auto;filter:brightness(0) saturate(100%) invert(29%) sepia(94%) saturate(4450%) hue-rotate(316deg) brightness(104%) contrast(104%) drop-shadow(0 2px 6px #00192380)}@media(max-width:700px){.brand-group{flex-direction:column;align-items:flex-start;gap:3px}.ctc-sponsor{border:0;padding:0;min-height:0}header #ctcscreen{width:88px}header .brand{font-size:11px!important;letter-spacing:.8px!important;gap:6px}header .brand .mark{font-size:18px!important;line-height:18px}header .topright{gap:5px}header .topright button{padding:10px 8px;letter-spacing:.5px}}@media(orientation:landscape) and (max-height:550px){.brand-group{flex-direction:row;align-items:center;gap:14px}.ctc-sponsor{padding-left:14px;border-left:1px solid #ffffff35;min-height:40px}header #ctcscreen{width:88px}}

/* Keep all twenty times accessible without pushing play controls away. */
.leaderboard ol{max-height:300px;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#64c8b7 #092c39;scrollbar-width:thin}
.leaderboard ol:focus-visible{outline:2px solid var(--lime);outline-offset:4px}
#intro .attempt-total,.attempt-total{font-size:14px;line-height:1.5;color:#d0fa86;margin:12px 0 6px}
@media(max-width:760px){.leaderboard ol{max-height:190px}}

#ctc-offer{box-sizing:border-box;width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;padding:36px;color:#f6f7e9;background:linear-gradient(145deg,#123f4a,#062936);border:1px solid #64c8b760;border-radius:20px;box-shadow:0 28px 100px #0009;touch-action:pan-y pinch-zoom}
#ctc-offer::backdrop{background:#021820b8;backdrop-filter:blur(7px)}
#offer-close{position:absolute;top:12px;right:12px;width:44px;height:44px;border:0;border-radius:50%;background:#ffffff10;color:white;font-size:28px;cursor:pointer}
#offer-logo{object-fit:contain;object-position:left}
#ctc-offer .offer-eyebrow{font-size:12px;letter-spacing:1.5px;color:#d0fa86;margin:24px 0 12px}
#ctc-offer h2{font-size:40px;line-height:1.05;letter-spacing:-1px;margin:0 0 18px}
#ctc-offer p{font-size:16px;line-height:1.5;color:#c6ddda}
#offer-form>label{display:block;font-size:14px;margin:22px 0 8px}
#offer-email{box-sizing:border-box;width:100%;padding:14px;border-radius:8px;border:1px solid #7fa7ab;background:#ffffff0a;color:white;font:inherit;font-size:16px}
#offer-form .offer-consent{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.5}
.offer-consent input{flex:none;width:20px;height:20px;margin:1px 0;accent-color:#d0fa86}
#ctc-offer .offer-privacy{font-size:12px;line-height:1.5}
#offer-submit{width:100%;min-height:52px;font-size:14px;margin-top:8px}
#offer-submit:disabled{opacity:.6;cursor:wait}
#offer-skip{display:block;margin:18px auto 0;padding:10px;background:transparent;color:#c6ddda;border:0;font:inherit;font-size:14px;text-decoration:underline;cursor:pointer}
#ctc-offer :focus-visible{outline:2px solid #d0fa86;outline-offset:3px}
#ctc-offer form[hidden]{display:none}
@media(max-width:480px){#ctc-offer{padding:28px 22px}#ctc-offer h2{font-size:34px}}

/* Keep the small credit at the safe right edge, below the paddling controls. */
.bottomline{align-items:center;gap:12px;right:max(8px,env(safe-area-inset-right))}
.bottomline>span{white-space:nowrap}
.bottomline-center{display:flex;align-items:center;justify-content:center;flex:1;min-width:0}
.swellix-credit{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;width:44px;min-height:24px;border-radius:4px;touch-action:manipulation}
.swellix-credit img{display:block;width:36px;height:auto;border-radius:1px}
.swellix-credit:hover img{opacity:.85}
.swellix-credit:focus-visible{outline-offset:2px}
@media(max-width:700px){.bottomline{gap:8px;bottom:max(8px,env(safe-area-inset-bottom))}}
@media(orientation:landscape) and (max-height:550px){.bottomline{bottom:max(0px,env(safe-area-inset-bottom))}}

/* Keep the existing steering handlers; only their hit areas move off the HUD. */
#steering{position:fixed;inset:0;display:flex;touch-action:none}
#steering>div{flex:1;min-width:0;touch-action:none;user-select:none;-webkit-touch-callout:none}
#hud,.bottomline,#controls{pointer-events:none}
.bottomline a,#controls button{pointer-events:auto}
#controls{justify-content:center}
/* Keep the paddle's original size and centre when the side buttons disappear. */
@media(max-width:700px){#controls #paddle{flex:none;width:calc(100% - 160px)}}
@media(orientation:landscape) and (max-height:550px){#controls #paddle{width:180px;flex:0 1 180px}}

/* Compact touch help appears before a run and on pause, away from the ocean. */
.touch-instructions{display:none}
@media(any-pointer:coarse){.intro .touch-instructions,#paused .touch-instructions{display:grid;gap:5px;margin:14px 0;color:#e3f2e9;font-size:14px;line-height:1.4;letter-spacing:0}.introcontrols{display:none}}
.opening{position:fixed;inset:0;z-index:100;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#12444c 0,#082d3b 42%,#031924 100%);isolation:isolate;touch-action:manipulation;will-change:opacity}
#skip-opening{position:absolute;z-index:2;right:max(22px,env(safe-area-inset-right));top:max(22px,env(safe-area-inset-top));padding:14px;border:1px solid #91c5c533;border-radius:6px;background:#061e2940;color:#d7e8e4;font-size:14px;font-weight:600;letter-spacing:1.5px}
.opening-lockup{position:relative;z-index:1;text-align:center;width:min(80vw,440px);will-change:transform,opacity}
.dr-stage{position:relative;perspective:800px}.dr-mark{position:relative;z-index:1;display:block;width:100%;height:auto;overflow:visible;filter:drop-shadow(0 16px 18px #00121b66)}
.dr-piece{transform-box:fill-box;transform-origin:50% 80%}.dr-depth{fill:#187c77;fill-rule:evenodd;stroke:#166e6c;stroke-width:1.5;stroke-linejoin:round}.dr-letter{fill:url(#dr-face);fill-rule:evenodd;stroke:#ebffca;stroke-opacity:.48;stroke-width:1;stroke-linejoin:round}.dr-wake{fill:url(#dr-ocean);transform-origin:0 177px}.dr-glint{opacity:0}
.dr-shadow{position:absolute;left:14%;bottom:5%;width:68%;height:9%;border-radius:50%;background:#00151c80;filter:blur(9px);transform:scaleX(.95)}
.opening-halo{position:absolute;width:min(76vw,480px);aspect-ratio:1;border:1px solid #82dbc721;border-radius:50%;opacity:0;pointer-events:none}.opening-halo:after{content:"";position:absolute;inset:12%;border:1px solid #b4ec9726;border-radius:50%}
#opening-title{font:800 clamp(20px,4.5vw,30px)/1.2 Inter,Arial,sans-serif;letter-spacing:clamp(3px,1vw,7px);margin:12px -12px 0;color:#f6f7e9}
.opening-lockup p{margin:12px 0 0;font-size:12px;letter-spacing:4px;color:#a2dace}
.opening:not(.is-ready) .opening-lockup{visibility:hidden}
.opening.is-ready .dr-d{animation:dr-land-d .92s cubic-bezier(.22,.68,.28,1) both}
.opening.is-ready .dr-r{animation:dr-land-r .92s .14s cubic-bezier(.22,.68,.28,1) both}
.opening.is-ready .dr-wake{animation:dr-swish .62s .57s cubic-bezier(.2,.7,.2,1) both}
.opening.is-ready .dr-glint{animation:dr-glint .65s 1.03s ease-in-out both}
.opening.is-ready .dr-shadow{animation:dr-shadow 1.06s ease-out both}
.opening.is-ready .opening-halo{animation:dr-ripple 1.2s .5s ease-out both}
.opening.is-ready #opening-title{animation:dr-wordmark .5s .78s cubic-bezier(.2,.7,.2,1) both}
.opening.is-ready .opening-lockup p{animation:dr-wordmark .5s .91s ease-out both}
.opening.is-leaving{animation:dr-reveal .3s ease-in forwards}
.opening.is-leaving .opening-lockup{animation:dr-launch .3s cubic-bezier(.55,0,1,.45) forwards}
@keyframes dr-land-d{0%{opacity:0;transform:translate(-40px,36px) rotate(-18deg) scale(.5)}42%{opacity:1;transform:translate(4px,-15px) rotate(5deg) scale(1.08)}65%{transform:translate(-2px,6px) rotate(-2deg) scale(.98,1.02)}82%{transform:translate(0,-3px) rotate(1deg) scale(1.02)}100%{opacity:1;transform:none}}
@keyframes dr-land-r{0%{opacity:0;transform:translate(35px,-42px) rotate(18deg) scale(.48)}43%{opacity:1;transform:translate(-3px,9px) rotate(-4deg) scale(1.08,.96)}65%{transform:translate(1px,-7px) rotate(2deg) scale(.99,1.03)}83%{transform:translate(0,2px) rotate(-1deg) scale(1.01)}100%{opacity:1;transform:none}}
@keyframes dr-swish{0%{opacity:0;transform:translateX(-35px) scaleX(0)}65%{opacity:1;transform:translateX(5px) scaleX(1.07)}100%{opacity:1;transform:none}}
@keyframes dr-glint{0%{opacity:0;transform:translateX(0)}15%,75%{opacity:.65}100%{opacity:0;transform:translateX(500px)}}
@keyframes dr-shadow{0%{opacity:0;transform:scaleX(.3)}50%{opacity:.6;transform:scaleX(.8)}80%{opacity:1;transform:scaleX(1.04)}100%{transform:scaleX(.95)}}
@keyframes dr-ripple{0%{opacity:0;transform:scale(.45)}20%{opacity:1}100%{opacity:0;transform:scale(1.35)}}
@keyframes dr-wordmark{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes dr-reveal{to{opacity:0}}
@keyframes dr-launch{to{opacity:0;transform:translateY(-12px) scale(1.1)}}
@media(orientation:landscape) and (max-height:550px){.opening-lockup{width:min(34vw,245px)}#opening-title{font-size:18px;letter-spacing:3px;margin-top:0}.opening-lockup p{font-size:12px;margin-top:8px}.opening-halo{width:min(65vh,280px)}}
@media(prefers-reduced-motion:reduce){.opening,.opening *, .opening *:after{animation:none!important;transition:none!important}.opening-halo,.dr-glint{display:none}}

/* Instrument-style energy reserve: luminous ring, fine ticks and a glass core. */
.energy-gauge{color:#c6ff75;filter:drop-shadow(0 6px 15px #00131db0)}
.energy-gauge circle{fill:none}
.energy-gauge .energy-core{fill:url(#energy-core);stroke:#c4edf51f;stroke-width:1}
.energy-gauge .energy-ticks{stroke:currentColor;stroke-width:2;stroke-dasharray:1 12.32;opacity:.42}
.energy-gauge .energy-track{stroke:#d8faff15;stroke-width:7}
.energy-gauge #energyarc{stroke:url(#energy-gradient);stroke-width:7;filter:drop-shadow(0 0 4px currentColor)}
.energy-gauge .energy-reading{top:30px}
.energy-gauge .energy-reading strong{font-weight:700;letter-spacing:-.5px;color:#f4ffed;text-shadow:0 0 16px #c6ff752e}
.energy-gauge .energy-reading strong small{color:currentColor;opacity:.65;font-size:10px}
.energy-gauge .energy-reading>span{font-size:8px;letter-spacing:2px;color:#bfdbd8;margin-top:6px}
.energy-gauge #energystate{display:inline-block;margin:7px -16px 0;padding:5px 9px;border:1px solid #c6ff7530;border-radius:20px;background:#04252dda;font-size:8px;letter-spacing:.7px;white-space:nowrap}
.energy-gauge[data-state=low]{color:#ffc46b}
.energy-gauge[data-state=empty]{color:#ff7e70}
.energy-gauge[data-state=low] #energystate{border-color:#ffc46b40}
.energy-gauge[data-state=empty] #energystate{border-color:#ff7e7040}
@media(max-width:700px){.energy-gauge .energy-reading{top:22px}.energy-gauge .energy-reading>span{font-size:7px;letter-spacing:1.2px;margin-top:4px}.energy-gauge #energystate{font-size:7px;padding:4px 7px;margin-top:5px}}
@media(orientation:landscape) and (max-height:550px){.energy-gauge .energy-reading{top:17px}.energy-gauge .energy-reading>span{font-size:6px;margin-top:3px}.energy-gauge #energystate{font-size:6px;padding:3px 6px}}
