:root{color-scheme:dark;--ink:#091c28;--panel:#102b39;--line:#294651;--muted:#adc0c5;--cream:#f4efdf;--gold:#edcf91;--mint:#85d9c2;--font:Inter,"Segoe UI",Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--ink);color:var(--cream);font-family:var(--font);background-image:radial-gradient(ellipse at 80% 10%,#15374155,transparent 50%)}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #fff2a8;outline-offset:4px}button{touch-action:manipulation}button:hover{filter:brightness(1.12)}[hidden]{display:none!important}.shell{max-width:1500px;margin:auto;padding:0 52px}.masthead{height:106px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font-size:27px;font-weight:800;letter-spacing:-1px}.brand svg{width:39px;height:39px;fill:none;stroke:var(--gold);stroke-width:2.3}.brand-light{font-weight:300;color:var(--gold)}.brand small{display:block;font-size:8px;letter-spacing:2.35px;font-weight:500;margin-top:3px}.mast-note,.private-badge{font-size:10px;letter-spacing:2px;color:var(--muted)}.private-badge{padding:9px 12px;border:1px solid var(--line);border-radius:4px;letter-spacing:1.4px}.private-badge i{display:inline-block;width:5px;height:5px;background:var(--gold);border-radius:50%;margin-right:8px}.page-title{display:flex;justify-content:space-between;align-items:flex-end;padding:33px 0 27px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:650}.page-title h1{font-size:clamp(30px,3.8vw,54px);line-height:1.05;letter-spacing:-2px;margin:9px 0 0;font-weight:580}.page-title h1 em{font-family:Georgia,serif;font-weight:400;color:var(--gold)}.page-title>p{color:var(--muted);font-size:13px;line-height:1.7;margin:0 0 2px}.stage{position:relative;height:650px;overflow:hidden;border:1px solid #43606a;border-radius:12px;background:#185563;box-shadow:0 24px 60px #0003;isolation:isolate}.stage canvas{position:absolute;width:100%;height:100%;inset:0;touch-action:none}.overlay{position:absolute;inset:0;display:flex;align-items:center;z-index:4}.menu-panel{height:100%;width:52%;padding:50px 52px;display:flex;flex-direction:column;align-items:flex-start;background:linear-gradient(90deg,#0c2836f7 50%,#0c2836eb 78%,#0c283600 100%)}.gold{color:var(--gold)}.tiny-line{display:inline-block;width:20px;height:1px;background:var(--gold);vertical-align:middle;margin-right:9px}h2{font-size:clamp(32px,3.4vw,49px);line-height:1.07;letter-spacing:-1.6px;margin:24px 0 16px;font-weight:600}h2 em{font-family:Georgia,serif;color:var(--gold);font-weight:400}.menu-copy{max-width:340px;margin:0 0 23px;color:#c0d1d4;font-size:14px;line-height:1.7}.mode-picker{display:flex;width:335px;max-width:100%;padding:4px;border:1px solid #57717a;border-radius:6px;gap:4px;margin-bottom:16px;background:#0a2635}.mode-picker button{width:50%;border:0;background:transparent;color:var(--cream);padding:10px 8px;text-align:left;border-radius:3px;font-size:12px;font-weight:650}.mode-picker button small{display:block;font-size:9px;font-weight:400;margin-top:4px;color:#b8c8ce}.mode-picker button.selected{background:#35505b}.mode-picker button.selected:before{content:"";display:inline-block;width:5px;height:5px;background:var(--gold);border-radius:50%;margin-right:6px}.button{min-height:47px;border-radius:5px;padding:13px 20px;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:18px;transition:background .15s}.primary{border:1px solid var(--gold);background:var(--gold);color:#172b34}.primary span{font-size:20px;margin-left:auto}.menu-panel>.button{width:335px;max-width:100%;justify-content:space-between}.secondary{border:1px solid #52707c;background:#1b3947;color:var(--cream)}.text-button{border:0;background:none;color:var(--cream);font-size:12px;padding:9px 0}.menu-sub{display:flex;justify-content:space-between;width:335px;max-width:100%;margin-top:8px}.menu-sub span{color:var(--gold);margin-left:8px}.best{width:335px;max-width:100%;margin-top:auto;border-top:1px solid #45616b;padding-top:20px;display:grid;grid-template-columns:1fr auto;gap:7px}.best span{font-size:9px;letter-spacing:1.5px;color:#b4c6cd}.best b{font-size:14px;color:var(--gold);grid-row:span 2;align-self:center}.best small{font-size:10px;color:#b4c6cd}.map-label{position:absolute;right:38px;bottom:58px;display:flex;flex-direction:column;align-items:flex-end;text-shadow:0 2px 8px #073d47}.map-label strong{font-family:Georgia,serif;font-style:italic;font-weight:400;font-size:27px;margin:11px 0}.map-label>span{font-size:8px;letter-spacing:2px}.map-label .coordinate{font:10px monospace;color:#e8dcc1}.world-caption{position:absolute;top:25px;right:28px;font-size:8px;letter-spacing:1.7px;color:#d5e9e2;display:flex;gap:15px;align-items:center;pointer-events:none}.world-caption i{width:20px;height:1px;background:#afd0c1}.top-hud{position:absolute;top:18px;left:20px;right:20px;display:flex;align-items:center;gap:20px;background:#0b2431e8;border:1px solid #52727d;backdrop-filter:blur(10px);border-radius:7px;padding:13px 18px;z-index:2;pointer-events:none}.hud-cell{min-width:110px}.hud-cell>span{display:block;font-size:8px;letter-spacing:1.8px;color:#b5c6ce;margin-bottom:5px}.hud-cell strong{font-size:25px;font-weight:650;font-variant-numeric:tabular-nums}.hud-cell b{font-weight:650}.hud-cell small{font-size:12px;color:#adc1c8}.hull strong{font-size:18px;letter-spacing:3px;color:var(--gold)}.chain strong{color:var(--mint)}.icon-button{margin-left:auto;border:1px solid #4a6b77;background:#1a3a48;color:var(--cream);width:42px;height:42px;border-radius:5px;font-size:19px;pointer-events:auto}.bottom-hud{position:absolute;bottom:22px;left:30px;right:30px;z-index:2;pointer-events:none}.route-label{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.5px;margin-bottom:9px;color:#eef4e9;text-shadow:0 1px 3px #0c3445}.route-track{height:3px;background:#092c4390}.route-track>div{height:100%;background:var(--gold);width:0}.surge-row{display:flex;align-items:center;margin-top:13px;gap:12px;color:#fff;font-size:9px;letter-spacing:1px}.surge-row kbd{font-size:8px;background:#0c2f3d;color:#eef2ec;border-color:#63828c}.surge-track{width:150px;height:5px;background:#0c2f3dc0;border-radius:4px;overflow:hidden}.surge-track>div{height:100%;width:100%;background:#98f0d0}.toast{position:absolute;top:118px;left:50%;transform:translateX(-50%);padding:10px 18px;border-radius:4px;background:#0a2532ee;border:1px solid #72968f;color:#f6e3b7;font-size:12px;font-weight:600;z-index:3;opacity:0;transition:opacity .2s;pointer-events:none;text-align:center;white-space:nowrap}.toast.visible{opacity:1}.ride-hint{position:absolute;bottom:107px;left:50%;transform:translateX(-50%);padding:10px 16px;font-size:11px;background:#0b263bd9;color:#eef5ed;border-radius:5px;white-space:nowrap;pointer-events:none}.modal-shade{background:#051823a8;backdrop-filter:blur(9px);justify-content:center;padding:20px}.dialog{width:550px;max-width:100%;max-height:100%;overflow:auto;background:linear-gradient(145deg,#153a47,#0c2635);border:1px solid #638088;box-shadow:0 25px 80px #02121f80;border-radius:10px;padding:34px;text-align:center}.dialog h2{margin:16px 0;font-size:38px}.dialog p{color:#bcd0d5;line-height:1.6;font-size:13px}.dialog .button{width:100%;margin-top:12px}.dialog .text-button{margin-top:14px}.compact{max-width:370px}.result-stats{display:flex;justify-content:space-between;gap:15px;margin:28px 0 18px;padding:22px 0;border-top:1px solid #385964;border-bottom:1px solid #385964}.result-stats span{display:block;font-size:8px;letter-spacing:1.4px;color:var(--muted)}.result-stats strong{display:block;font-size:27px;color:var(--gold);margin-top:9px;font-variant-numeric:tabular-nums}.result-detail{font-size:12px;color:#b8d4ce;margin-bottom:20px}.result-actions{display:flex;gap:10px}.result-actions>.button{flex:1}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;text-align:left;margin-top:28px}.guide-grid b{color:var(--gold);font-size:13px}.guide-grid p{font-size:12px;margin-top:6px}.help-note{border-top:1px solid #45616b;padding-top:16px}.reference{background:#0b2332;padding:14px;border:1px solid #496976;border-radius:6px;margin:18px 0}.reference>span{display:block;font-size:8px;letter-spacing:2px;margin-bottom:12px;color:var(--gold)}.reference>div,.strip-code{display:flex;gap:6px;justify-content:center}.base{display:flex;align-items:center;justify-content:center;width:34px;height:35px;border-radius:4px;font:bold 16px monospace;border:1px solid #689b98;color:#c4ffdd;background:#20534c}.base[data-base="T"]{background:#544538;color:#f9d5a0;border-color:#9c8060}.base[data-base="C"]{background:#233f66;color:#c2ddff;border-color:#6885ad}.base[data-base="G"]{background:#533f58;color:#f2c7ee;border-color:#9d77a2}.strips{display:flex;flex-direction:column;gap:12px}.strip{display:flex;gap:10px;align-items:center;justify-content:center}.strip button{min-width:40px;height:38px;background:#1b3f4d;border:1px solid #78959b;border-radius:4px;color:#fff;font-size:20px}.strip.solved .strip-code{outline:1px solid var(--mint);outline-offset:4px;border-radius:4px}.strip.solved button{font-size:15px;color:var(--mint);opacity:1}.lab-status{min-height:40px;margin:20px 0 0}.synthetic-note{font-size:10px;color:#a7c0c6;display:block;line-height:1.6;margin-top:18px}.utility-bar{display:flex;justify-content:space-between;align-items:center;padding:17px 3px;color:#aac0c6;gap:14px;font-size:9px}.control-summary{letter-spacing:1px}kbd{display:inline-block;font-family:var(--font);font-size:9px;border:1px solid #45606b;border-radius:3px;padding:4px 6px;min-width:22px;text-align:center;margin-right:4px;color:#e2e9e6}.sep{margin:0 12px;color:#51707b}.settings{display:flex;align-items:center;gap:18px;font-size:11px}.settings label{display:flex;gap:6px;align-items:center;white-space:nowrap}.settings input{accent-color:var(--gold);width:14px;height:14px;margin:0}.settings .text-button{font-size:11px;color:#c7d6d8}.field-notes{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;padding:28px 0 36px}.field-notes>div{display:flex;gap:15px}.note-number{font-size:10px;color:var(--gold);padding-top:3px;font-family:monospace}.field-notes h3{font-size:13px;font-weight:600;margin:0 0 7px}.field-notes p{font-size:11px;line-height:1.6;margin:0;color:#adc0c5}footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:21px 0 28px;font-size:8px;letter-spacing:1.1px;color:#9bb2bc}footer i{margin:0 8px}.skip{position:fixed;top:-100px;left:16px;padding:12px;background:var(--gold);color:var(--ink);z-index:100}.skip:focus{top:16px}.touch-controls{position:absolute;left:18px;right:18px;bottom:87px;display:none;justify-content:space-between;z-index:3;pointer-events:none}.touch-controls button{min-width:58px;min-height:52px;pointer-events:auto;touch-action:none;border:1px solid #bddadbc0;background:#0c3140c9;border-radius:8px;color:#f5e6bd;font-weight:bold;font-size:20px;user-select:none}.touch-pad{display:flex;gap:10px}#touch-surge{font-size:10px;letter-spacing:1px;padding:0 14px}.stage.playing .world-caption{display:none}.stage.playing{cursor:crosshair}.stage.playing .overlay{cursor:default}
@media(min-width:1450px){.stage{height:690px}.menu-panel{padding:58px 60px}.menu-copy{margin-bottom:28px}}@media(pointer:coarse){.touch-controls{display:flex}.control-summary{display:none}.ride-hint{bottom:151px}.settings{width:100%;justify-content:center}}@media(max-width:1050px){.shell{padding:0 26px}.masthead{height:84px}.mast-note{display:none}.menu-panel{padding:38px 33px;width:60%}.map-label{right:25px}.hud-cell{min-width:90px}.page-title h1{font-size:40px}.stage{height:620px}.field-notes{gap:18px}.utility-bar{flex-wrap:wrap}.settings{margin-left:auto}.control-summary{font-size:8px}.sep{margin:0 5px}}@media(max-width:680px){.shell{padding:0 13px}.masthead{height:75px}.brand{font-size:22px;gap:8px}.brand svg{width:31px}.brand small{font-size:6px}.private-badge{font-size:7px;letter-spacing:.8px;padding:7px}.page-title{padding:23px 1px}.page-title h1{font-size:34px;letter-spacing:-1.3px}.page-title .eyebrow{font-size:7px;letter-spacing:1.1px}.page-title>p{display:none}.stage{height:640px;border-radius:8px}.menu-panel{width:100%;padding:37px 26px;background:linear-gradient(90deg,#0c2836f5 0%,#0c2836ec 62%,#0c283690)}.menu-panel h2{font-size:43px;margin-top:28px}.menu-copy{max-width:280px;font-size:13px}.menu-panel>.button,.menu-sub,.mode-picker,.best{width:100%;max-width:345px}.map-label{display:none}.world-caption{display:none}.menu-panel .eyebrow{font-size:8px;letter-spacing:1.4px}.best{margin-top:30px}.top-hud{left:10px;right:10px;top:10px;gap:12px;padding:12px}.hud-cell{min-width:0;flex:1}.hud-cell strong{font-size:21px}.hud-cell>span{font-size:6px;letter-spacing:1px}.hull strong{font-size:12px;letter-spacing:1px}.chain{display:none}.icon-button{width:36px;height:36px;flex-shrink:0}.bottom-hud{left:17px;right:17px;bottom:18px}.route-label{font-size:7px;letter-spacing:.8px}.toast{top:94px;font-size:10px;max-width:95%;white-space:normal}.ride-hint{font-size:9px;max-width:92%;white-space:normal;text-align:center}.utility-bar{padding-top:12px;justify-content:center;gap:8px}.settings{margin:0;gap:15px;font-size:10px}.settings .text-button{font-size:10px}.control-summary{font-size:7px}.field-notes{grid-template-columns:1fr;gap:17px;padding:23px 5px 27px}.field-notes>div{gap:16px}.field-notes p{font-size:11px}.field-notes h3{font-size:12px}footer{font-size:7px;line-height:1.7;flex-direction:column;gap:8px;padding-left:4px}.dialog{padding:25px 18px}.dialog h2{font-size:32px}.guide-grid{gap:14px}.guide-grid p{font-size:11px}.guide-grid b{font-size:12px}.modal-shade{padding:12px}.result-stats strong{font-size:23px}.result-stats{gap:10px}.result-stats span{font-size:7px}.base{width:27px;height:32px;font-size:15px}.reference>div,.strip-code{gap:4px}.strip{gap:8px}.strip button{min-width:32px;width:32px;height:35px}.lab-dialog>p{font-size:12px}.result-actions .button{font-size:11px;padding:12px 10px}}@media(max-height:700px) and (min-width:681px){.stage{height:565px}.menu-panel{padding-top:28px;padding-bottom:28px}.menu-panel h2{margin-top:18px}.menu-copy{margin-bottom:16px}.best{padding-top:14px}.dialog{padding:25px}.guide-grid{margin-top:15px}.guide-grid p{margin-bottom:0}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.less-motion *{transition:none!important}
@media(max-width:680px){.stage.playing{height:min(640px,calc(100svh - 26px));min-height:340px;scroll-margin-top:12px}}
@media(max-height:500px) and (pointer:coarse){.stage.playing{height:calc(100svh - 26px);min-height:270px;scroll-margin-top:12px}.top-hud{top:8px;padding:8px 12px}.hud-cell strong{font-size:18px}.hud-cell>span{font-size:6px}.touch-controls{bottom:62px}.touch-controls button{min-height:42px;min-width:48px}.bottom-hud{bottom:10px}.surge-row{margin-top:8px}.ride-hint{display:none}.toast{top:75px}}
.touch-device .touch-controls{display:flex}.touch-device .control-summary{display:none}.touch-device .ride-hint{bottom:151px}.touch-device .settings{width:100%;justify-content:center}
.skip:not(:focus){clip-path:inset(50%);width:1px;height:1px;overflow:hidden;padding:0}
@media(max-height:500px){.touch-device .stage.playing{height:calc(100svh - 26px);min-height:270px;scroll-margin-top:12px}.touch-device .top-hud{top:8px;padding:8px 12px}.touch-device .hud-cell strong{font-size:18px}.touch-device .hud-cell>span{font-size:6px}.touch-device .touch-controls{bottom:62px}.touch-device .touch-controls button{min-height:42px;min-width:48px}.touch-device .bottom-hud{bottom:10px}.touch-device .surge-row{margin-top:8px}.touch-device .ride-hint{display:none}.touch-device .toast{top:75px}}
/* Onboarding stays above every permitted rider position, including full trim. */
.ride-hint,.touch-device .ride-hint{top:108px;bottom:auto;max-width:calc(100% - 32px)}
.stage.has-ride-hint .toast{top:158px}
@media(max-width:680px){.ride-hint,.touch-device .ride-hint{top:94px;bottom:auto}.stage.has-ride-hint .toast{top:146px}}
@media(max-height:500px){.touch-device .ride-hint{display:block;top:80px;bottom:auto;font-size:9px}.touch-device .stage.has-ride-hint .toast{top:122px}}
/* Touch controls occupy a dry deck below the canvas, never playable water. */
.touch-device .stage.playing{--touch-deck:132px;background:#0b2431}
.touch-device .stage.playing canvas{height:calc(100% - var(--touch-deck));bottom:auto}
.touch-device .stage.playing::after{content:"";position:absolute;top:calc(100% - var(--touch-deck));left:0;right:0;border-top:1px solid #486570;pointer-events:none}
.touch-device .stage.playing .touch-controls{bottom:16px}
.touch-device .stage.playing .bottom-hud{bottom:84px}
.touch-device .surge-row kbd{display:none}
@media(max-height:500px){.touch-device .stage.playing{--touch-deck:84px}.touch-device .stage.playing .bottom-hud{bottom:19px;left:148px;right:126px}.touch-device .stage.playing .surge-row{margin-top:8px}.touch-device .stage.playing .ride-hint{top:66px}}

/* Public site navigation and Genesis introduction; gameplay layout stays intact. */
a{color:var(--gold)}
.brand{color:var(--cream);text-decoration:none}
.site-links{display:flex;gap:8px;align-items:center}
.site-links a{display:inline-flex;align-items:center;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:5px;font-size:12px;text-decoration:none}
.site-links a:hover{background:var(--panel)}
.genesis-intro{display:grid;grid-template-columns:1fr 1fr;gap:64px;margin:20px 0 44px;padding:36px 0;border-top:1px solid var(--line)}
.genesis-intro h2{font-size:34px;margin:12px 0 20px}
.genesis-intro h3{font-size:18px;font-weight:600;margin:0 0 12px}
.genesis-intro p,.game-notice{font-size:14px;line-height:1.8;color:var(--muted)}
.genesis-intro .button{display:inline-flex;text-decoration:none;margin-top:12px}
.play-note{border:1px solid var(--line);border-radius:8px;padding:24px;background:var(--panel)}
.play-note p:last-child{margin-bottom:0}
@media(max-width:900px){.mast-note{display:none}.genesis-intro{gap:24px}}
@media(max-width:680px){.masthead{height:auto;min-height:86px;gap:12px;flex-wrap:wrap;padding:16px 0}.site-links{gap:6px}.site-links a{padding:10px;font-size:11px}.genesis-intro{grid-template-columns:1fr;margin-bottom:20px}.genesis-intro h2{font-size:30px}.play-note{padding:20px}}

/* Sharing is outside the stage so it cannot cover the game or touch controls. */
.shared-scores{border-top:1px solid var(--line);padding:36px 0;scroll-margin-top:16px}.shared-scores h2{font-size:34px;margin:14px 0}.shared-scores>p{max-width:850px;color:var(--muted);line-height:1.8}.sharing-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}.sharing-grid .play-note{min-width:0}.sharing-grid .button{max-width:100%;white-space:normal;margin:8px 0}.share-consent{display:flex;gap:12px;margin:20px 0;font-size:14px;line-height:1.7}.share-consent input{flex:0 0 auto;width:20px;height:20px;margin-top:3px;accent-color:var(--gold)}.share-small{font-size:12px;line-height:1.7;color:var(--muted)}.board-filters{display:flex;flex-wrap:wrap;gap:16px;margin:16px 0}.board-filters label{display:flex;flex-direction:column;gap:8px;font-size:13px}.board-filters select{font:inherit;background:var(--bg,#102f3d);color:var(--cream);border:1px solid var(--line);padding:10px;border-radius:4px;min-height:44px}.sharing-grid [role=status]{font-size:14px;line-height:1.8}.sharing-grid ol{padding-left:24px;line-height:1.9;font-size:14px;overflow-wrap:anywhere}.surf-verification{margin:16px 0}.share-link{display:block;margin:12px 0;font-size:12px;text-align:center}.sharing-grid button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:760px){.sharing-grid{grid-template-columns:1fr}.shared-scores h2{font-size:28px}.sharing-grid .play-note{padding:20px}}

.drag-instructions{font-size:13px;line-height:1.55;max-width:420px;color:var(--cream);margin:0 0 18px}.drag-instructions strong{font-weight:500}.drag-instructions small{display:block;color:var(--muted);margin-top:6px;font-size:11px}@media(max-width:680px){.drag-instructions{font-size:12px;margin-bottom:12px}}
