@font-face{font-family:Tank;src:url('../../game/fonts/archivo.woff2') format('woff2');font-display:swap;font-weight:100 900}
:root{color-scheme:dark;font-family:Tank,Inter,Arial,sans-serif;color:#edfbf5;background:#082f3d;--lime:#d0ff79;--gold:#e8c98d;--ink:#092f3c;--muted:#b6cfcd;--line:#a6d7d13d;font-synthesis:style}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-underline-offset:5px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--lime);outline-offset:5px}button{border:0;color:inherit}button[hidden],[hidden]{display:none!important}button:hover:not(:disabled),a:hover{filter:brightness(1.12)}#line{position:relative;height:100svh;height:100dvh;min-height:320px;overflow:hidden}#reef{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}.vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#052c36dc 0%,#052c3680 28%,transparent 62%),linear-gradient(0deg,#041f2ac7,transparent 24%,transparent 82%,#061e2a88);transition:opacity .8s}#line:not([data-phase=start]) .vignette{background:linear-gradient(0deg,#031e2ae0,transparent 28%,transparent 76%,#051f2bbf)}
.top{position:absolute;inset:0 0 auto;display:flex;justify-content:space-between;align-items:center;padding:27px 38px;z-index:8;gap:20px}.brand{text-decoration:none;display:flex;align-items:center;gap:23px}.brand span{font-size:10px;letter-spacing:.22em;font-weight:800;border-left:1px solid #ccdecc66;padding-left:23px}.top nav{display:flex;align-items:center;gap:9px}.top button{background:#123c48f2;border:1px solid #accdcc40;padding:10px 15px;border-radius:999px;font-size:12px;font-weight:650}.top button span{margin-left:10px;color:var(--gold)}#pause{font-size:18px;padding:7px 15px}
.welcome{position:absolute;left:6.5%;top:50%;transform:translateY(-49%);max-width:650px;z-index:2}.eyebrow{font-size:10px;letter-spacing:.2em;font-weight:800;margin:0 0 16px;color:var(--gold)}.gold-dot{display:inline-block;height:6px;width:6px;border-radius:50%;background:var(--gold);margin-right:9px;box-shadow:0 0 12px #ffda8880}.welcome h1{font-size:clamp(72px,7.7vw,130px);line-height:.92;letter-spacing:-.065em;font-weight:900;font-style:italic;margin:0 0 25px;text-shadow:0 7px 30px #051f3c30}.welcome h1 span{color:var(--lime)}.intro{font-size:clamp(17px,1.4vw,22px);line-height:1.48;color:#c6e1d8;margin:0 0 32px}.welcome-actions{max-width:310px}.primary{background:linear-gradient(110deg,#dcff8e,#b3ee65);color:#082b39;border:1px solid #eeffc4;border-radius:12px;padding:17px 22px;font-weight:850;font-size:16px;box-shadow:0 5px 0 #668f48;display:flex;justify-content:space-between;gap:28px;align-items:center;text-decoration:none;min-height:52px}.primary:active{transform:translateY(2px);box-shadow:0 3px 0 #668f48}.primary span{font-size:25px;line-height:.7;font-weight:400}.welcome .primary{width:100%;font-size:18px}.text-action{background:none;padding:0;color:#d3e6dc;font-weight:650;text-decoration:none;font-size:14px}.welcome .text-action{display:flex;justify-content:space-between;width:100%;padding:23px 0 7px;font-size:14px}.text-action span{font-size:11px;font-weight:450;color:#b0c8c7}.loading{font-size:11px;color:#b4cdc5;min-height:14px;margin:12px 0 0}.welcome-bottom{position:absolute;bottom:32px;left:6.5%;right:38px;display:flex;align-items:center;gap:24px;color:#b4cbc7;font-size:11px}.welcome-bottom>span{display:flex;align-items:center;gap:15px;font-weight:700;color:var(--gold);letter-spacing:.1em}.welcome-bottom i{width:130px;height:1px;background:linear-gradient(90deg,var(--gold),#bfa27330)}.welcome-bottom p{margin:0}.welcome-bottom button{margin-left:auto;background:none;font-size:12px;font-weight:650}
.journey-heading{position:absolute;left:38px;top:110px;max-width:70%;text-shadow:0 2px 18px #032c3e}.journey-heading .eyebrow{margin:0 0 9px}.journey-heading h1{font-size:clamp(25px,3vw,48px);font-style:italic;letter-spacing:-.035em;margin:0;line-height:1.05}.journey-heading>p:last-child{font-size:12px;color:#c5d9d6;margin:12px 0}.trip-rail{position:absolute;right:36px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:0}.trip-rail button{position:relative;background:none;padding:14px 0 14px 24px;font-size:10px;text-align:right;color:#b1cdca;min-height:42px}.trip-rail button:before{content:'';position:absolute;left:4px;top:0;bottom:0;width:1px;background:#b4d1bc55}.trip-rail button:after{content:'';position:absolute;top:19px;left:0;width:7px;height:7px;border-radius:50%;border:1px solid #b4d1bc;background:#16404a}.trip-rail button[aria-current=true]{color:var(--lime);font-weight:800}.trip-rail button[aria-current=true]:after{background:var(--lime);border-color:var(--lime);box-shadow:0 0 13px #d0ff7970}.trip-rail button:first-child:before{top:19px}.trip-rail button:last-child:before{bottom:19px}
.station-card{position:absolute;left:38px;bottom:111px;width:min(390px,calc(100vw - 76px));background:linear-gradient(140deg,#133c4af0,#082b3aee);border:1px solid #b2d4c855;border-radius:18px;box-shadow:0 16px 48px #00131f38;padding:24px;display:grid;grid-template-columns:28px 1fr;gap:13px;max-height:calc(100dvh - 280px);overflow:auto}.station-number{font-size:12px;color:var(--gold);font-weight:800;padding-top:2px}.station-card .eyebrow{font-size:9px;margin:0 0 8px;letter-spacing:.15em}.station-card h2{font-size:24px;letter-spacing:-.035em;line-height:1.06;margin:0}.station-card p:not(.eyebrow){font-size:12px;line-height:1.5;color:var(--muted);margin:10px 0 0}.station-actions{margin-top:20px;display:flex;flex-wrap:wrap;align-items:center;gap:18px}.station-actions .primary{font-size:13px;padding:12px 16px;min-height:44px;flex:1}.station-actions>a{font-size:13px;white-space:nowrap}.station-card details{margin-top:20px;padding-top:14px;border-top:1px solid var(--line);font-size:11px;line-height:1.5}.station-card summary{cursor:pointer;color:#bed5ce}.station-card details a{display:inline-block;margin-top:10px;color:var(--gold)}.proposal{margin-top:20px;padding-top:16px;border-top:1px solid var(--line);display:flex;gap:12px;font-size:11px}.proposal b{font-size:12px}.proposal a{display:inline-block;margin-top:10px;color:var(--gold)}.unlit-lamp{margin-top:3px;flex:none;width:11px;height:17px;border:1px solid #829e99;border-radius:3px;background:#122c38;box-shadow:0 -4px 0 -2px #829e99}
.dashboard{position:absolute;bottom:0;left:0;right:0;padding:20px 38px 24px;display:flex;gap:32px;align-items:center;border-top:1px solid #c8e5d722;background:linear-gradient(90deg,#052b3f94,#052b3f15);z-index:3}.passenger-count{display:flex;gap:8px;align-items:baseline;color:#b9d3c9;font-size:11px}.passenger-count b{font-size:27px;font-weight:500;color:#f3e2b4}.people{font-size:24px;align-self:center;margin-right:3px;color:var(--gold)}.ride-context{display:flex;gap:24px;font-size:11px;color:#bbceca}.drive-instruments{display:flex;align-items:center;gap:25px;flex:1}.meter{max-width:330px;flex:1}.meter-label{display:flex;justify-content:space-between;font-size:10px;margin-bottom:9px;color:#b8d0c8}.meter-label span:last-child{color:#8faeac}.meter-track{height:6px;background:#d6ebd025;position:relative;border-radius:5px}.meter-track i{position:absolute;height:100%;width:100%;transform-origin:left;transform:scaleX(0);background:var(--lime);border-radius:5px}.meter-track b{position:absolute;width:2px;height:13px;top:-4px;background:#f2eed3}#brake-limit{background:#ffc68c;display:none}.meter[data-near] #brake-limit{display:block}.meter[data-hot] i,.meter[data-over] i{background:#ffb789}.tide,.fares{display:flex;flex-direction:column;gap:4px}.tide span,.fares span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#bbd0c9}.tide strong{font-size:25px;line-height:1;font-weight:500;font-variant-numeric:tabular-nums}.fares strong{font-size:22px;font-weight:500;line-height:1}.drive-buttons{display:flex;gap:10px;margin-left:auto}.drive-buttons button{background:#133e4b;border:1px solid #bdd5c467;border-radius:10px;padding:13px 20px;user-select:none;touch-action:none;font-weight:700}.drive-buttons button:first-child{background:#c9f688;color:var(--ink);border-color:#e5ffc7}.drive-buttons kbd{display:inline-block;margin-left:12px;opacity:.6;font-size:10px}.drive-buttons button[data-held]{transform:translateY(2px);filter:brightness(.8)}
.drive-help{position:absolute;left:38px;bottom:125px;background:#0c3242f5;border:1px solid #c9e7ca55;max-width:360px;padding:28px;border-radius:18px;z-index:4}.drive-help h2{font-size:28px;font-style:italic;margin:0 0 14px;letter-spacing:-.03em}.drive-help p{font-size:13px;line-height:1.7;color:#c0d8d0}.drive-help small{display:block;font-size:10px;color:#9db8b4;line-height:1.5;margin-top:20px}.drive-help .primary{width:100%;margin-top:20px}kbd{font-family:inherit}.notice{position:absolute;top:95px;left:50%;transform:translateX(-50%);padding:13px 20px;border-radius:9px;background:#073444e8;border:1px solid #b9deca55;box-shadow:0 8px 35px #00121a30;font-size:13px;z-index:20}
dialog{color:#edf9ef;background:linear-gradient(140deg,#153e4e,#072b3a);border:1px solid #a1c6bc75;border-radius:24px;padding:34px;width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 40px);box-shadow:0 30px 140px #0006}dialog::backdrop{background:#021e2bc9}dialog header{display:flex;justify-content:space-between;gap:20px;align-items:start}dialog header button,.close{background:#c1ddce16;border:1px solid #b9d5c435;border-radius:50%;width:36px;height:36px;font-size:24px;flex-shrink:0}.close{position:absolute;top:18px;right:18px}dialog h2{font-size:38px;line-height:1.05;font-weight:850;font-style:italic;letter-spacing:-.04em;margin:0 0 20px}dialog .eyebrow{font-size:9px}dialog .primary{width:100%;margin-top:22px}dialog>.text-action{display:block;margin:25px auto 0}dialog>small{font-size:10px;text-align:center;display:block;color:#95b4b2;margin-top:25px}#route-list{list-style:none;padding:0;margin:12px 0 0}#route-list li{position:relative;border-bottom:1px solid #c3dfc524}#route-list button{width:100%;text-align:left;background:none;display:flex;gap:17px;align-items:center;padding:17px 0}#route-list .stop-index{font-size:11px;color:var(--gold)}#route-list b{font-size:15px;font-weight:700;display:block}#route-list small{font-size:11px;display:block;color:#9fbbba;margin-top:5px}#route-list .stop-arrow{margin-left:auto;color:var(--gold)}.dialog-note{font-size:11px;color:#b0c9c3;margin:22px 0 0}.status{font-size:11px;color:#b0c9c3;min-height:1em}.score{display:flex;gap:17px;align-items:baseline;margin:20px 0}.score strong{font-size:76px;font-weight:850;font-style:italic;line-height:1;color:var(--gold)}.score span{font-size:14px;color:#b5cdc7}#finish-detail{font-size:13px;line-height:1.6;color:#bfd7ce}.results-button{position:absolute;bottom:120px;left:38px}.error{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#0c3444;z-index:25;padding:25px}.error h2{font-size:36px;font-style:italic}.error a{margin-top:30px}
@media(min-width:1700px){.welcome{left:8%}.welcome-bottom{left:8%}.station-card{width:430px}.station-card h2{font-size:28px}}
@media(max-width:700px){.top{padding:20px;gap:10px}.brand{gap:0}.brand span{display:none}.brand img{width:77px;height:auto}.top nav{gap:6px}.top button{font-size:11px;padding:9px 12px}.top button span{display:none}#pause{padding:6px 12px}.welcome{left:25px;top:auto;bottom:112px;transform:none;max-width:calc(100% - 50px)}.welcome h1{font-size:clamp(52px,19vw,78px);margin-bottom:17px}.welcome .eyebrow{font-size:8px;letter-spacing:.17em}.intro{font-size:16px;margin-bottom:22px}.welcome-actions{width:285px;max-width:100%}.welcome .primary{font-size:16px}.welcome .text-action{padding-top:20px;font-size:12px}.welcome .text-action span{font-size:10px}.welcome-bottom{left:25px;right:25px;bottom:27px;gap:15px}.welcome-bottom>span{gap:10px}.welcome-bottom i{width:55px}.welcome-bottom p{display:none}.vignette{background:linear-gradient(0deg,#042933fa 0%,#042933bb 30%,transparent 70%,#072d3a88)}.journey-heading{left:22px;top:95px;max-width:86%}.journey-heading h1{font-size:30px}.journey-heading .eyebrow{font-size:8px}.journey-heading>p:last-child{font-size:10px;margin-top:9px}.trip-rail{right:19px;top:44%;gap:0}.trip-rail button{font-size:0;padding:13px 6px;min-height:34px;width:24px}.trip-rail button:before{left:8px}.trip-rail button:after{left:4px;top:14px}.trip-rail button:first-child:before{top:14px}.trip-rail button:last-child:before{bottom:14px}.station-card{left:16px;bottom:89px;width:calc(100% - 32px);padding:17px;grid-template-columns:22px 1fr;gap:8px;border-radius:15px;max-height:calc(100dvh - 255px)}.station-card h2{font-size:22px}.station-card .eyebrow{font-size:8px}.station-card p:not(.eyebrow){font-size:11px;margin-top:8px}.station-actions{margin-top:15px;gap:16px}.station-actions .primary{padding:11px 14px;font-size:12px}.station-actions>a{font-size:12px}.station-card details{margin-top:15px;padding-top:12px}.dashboard{padding:17px 20px 21px;gap:24px}.passenger-count b{font-size:23px}.passenger-count{font-size:10px;gap:6px}.ride-context{font-size:10px;gap:10px;flex-direction:column}#route-distance{display:none}.drive-instruments{gap:15px;flex-wrap:wrap}.drive-instruments .meter{width:calc(100% - 117px);flex:auto;max-width:none}.drive-instruments .tide strong{font-size:22px}.fares{display:none}.drive-buttons{width:100%;gap:12px}.drive-buttons button{flex:1;padding:14px 12px;font-size:14px}.drive-buttons kbd{display:none}#line[data-mode=drive] .dashboard{gap:0;padding-top:16px}#line[data-mode=drive] .passenger-count{display:none}#line[data-mode=drive] .station-card{bottom:160px}.drive-help{left:16px;bottom:162px;max-width:calc(100% - 32px);padding:22px}.drive-help h2{font-size:26px}.drive-help p{font-size:12px}.drive-help small{margin-top:15px}.results-button{left:20px;bottom:164px}.notice{top:73px;max-width:calc(100% - 30px);white-space:nowrap;font-size:11px;padding:10px 14px}dialog{padding:25px;border-radius:19px}dialog h2{font-size:32px}#route-list button{padding:14px 0}#route-list b{font-size:14px}#route-list small{font-size:10px}.proposal{margin-top:14px;padding-top:14px}}
@media(max-height:640px) and (min-width:701px){.welcome h1{font-size:72px}.welcome .eyebrow{margin-bottom:10px}.intro{font-size:16px;margin-bottom:20px}.welcome-bottom{bottom:20px}.welcome .text-action{padding-top:16px}.top{padding-top:20px}.journey-heading{top:85px}.station-card{left:38px;max-height:calc(100dvh - 190px);width:370px;bottom:100px}.trip-rail{gap:0}.trip-rail button{padding-top:9px;padding-bottom:9px;min-height:30px}.trip-rail button:after{top:14px}.journey-heading h1{font-size:27px}.station-card h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Keep the mode menu out of direct rides until the requested scene is drawn. */
#line[data-loading]>:not(canvas):not(.top):not(.line-loading),#line[data-loading] .top nav{visibility:hidden}
.line-loading{position:absolute;inset:0;z-index:6;display:grid;place-content:center;justify-items:center;gap:18px;margin:0;background:radial-gradient(ellipse at 50% 35%,#104653,#082f3d 70%);color:var(--muted);font-size:14px;pointer-events:none}
.line-loading::before{content:'';width:28px;height:28px;border:2px solid #b6cfcd30;border-top-color:var(--gold);border-radius:50%;animation:line-loading-spin 1s linear infinite}
@keyframes line-loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.line-loading::before{animation:none}}

@media(max-height:680px) and (max-width:700px){.welcome{bottom:76px}.welcome h1{font-size:clamp(50px,18vw,62px)}.welcome .eyebrow{margin-bottom:10px}.intro{font-size:14px;margin-bottom:18px}.welcome .text-action{padding-top:17px}.loading{margin:0;min-height:0}.welcome-bottom{bottom:22px}.drive-help{max-height:calc(100dvh - 245px);overflow:auto}.station-card{max-height:calc(100dvh - 240px)}}
@media(max-height:450px){.top{padding:13px 22px}.top .brand span{display:none}.welcome{left:28px;top:82px;bottom:auto;transform:none;max-width:340px}.welcome h1{font-size:50px;line-height:.9;margin-bottom:14px}.welcome h1 br{display:none}.welcome .eyebrow{margin-bottom:10px;font-size:8px}.intro{font-size:13px;line-height:1.3;margin-bottom:14px}.welcome-actions{max-width:270px}.welcome .primary{padding:12px 17px;min-height:44px;font-size:15px}.welcome .text-action{padding-top:13px;font-size:12px}.welcome-bottom{display:none}.loading{margin:0;min-height:0}.journey-heading{top:72px;left:22px}.journey-heading h1{font-size:24px}.journey-heading .eyebrow{margin-bottom:5px}.station-card{left:22px;bottom:88px;width:340px;max-height:calc(100dvh - 200px);padding:15px}.station-card h2{font-size:19px}.station-card .eyebrow{display:none}.station-actions{margin-top:12px}.dashboard{padding:13px 22px 17px;gap:20px}.drive-help{left:22px;bottom:95px;max-height:calc(100dvh - 170px);overflow:auto;padding:18px;max-width:340px}.drive-help h2{font-size:23px}.drive-help p{font-size:12px}.drive-help .primary{margin-top:12px;padding:12px 17px}.drive-help small{margin-top:13px}.trip-rail{top:52%}.trip-rail button{padding-top:7px;padding-bottom:7px;min-height:28px}.results-button{left:22px;bottom:98px}}

.drive-buttons button:disabled{cursor:default}

/* Both ways onto the line are visible before play starts. */
.welcome-actions{max-width:440px;display:grid;grid-template-columns:1fr 1fr;gap:13px}.welcome .mode-choice{gap:10px;text-align:left;padding:17px 18px;min-height:90px}.welcome .mode-copy{display:grid;gap:10px;line-height:1.15}.mode-copy b{font-size:17px;font-weight:800;white-space:nowrap}.mode-copy small{font-size:10px;font-weight:500;letter-spacing:0;opacity:.78}.welcome .ride-choice{background:linear-gradient(125deg,#184855ee,#0a3444ee);color:#e4f3e8;border-color:#a2cab480;box-shadow:0 5px 0 #062735}.welcome .ride-choice>span:last-child{color:var(--lime)}
@media(max-width:700px){.welcome-actions{width:min(340px,100%);gap:10px}.welcome .mode-choice{padding:14px;min-height:81px}.mode-copy b{font-size:14px}.mode-copy small{font-size:9px}.welcome .mode-copy{gap:8px}.welcome .mode-choice>span:last-child{font-size:20px}}
@media(max-width:360px){.welcome .mode-choice{padding:10px;gap:6px}.mode-copy b{font-size:12px}.mode-copy small{font-size:8px}.welcome .mode-choice>span:last-child{font-size:16px}}
@media(max-height:450px){.welcome-actions{max-width:340px}.welcome .mode-choice{min-height:68px;padding:12px}.mode-copy b{font-size:13px}.mode-copy small{font-size:9px}}

#line[data-entry=build] .welcome-actions{width:min(310px,100%);grid-template-columns:1fr}

/* A single tactile invitation; the world supplies the explanation. */
.bell-control{position:absolute;right:94px;bottom:117px;text-align:right;z-index:4}.bell-control>span{display:block;margin:0 3px 9px;color:#f3dba7;text-transform:uppercase;letter-spacing:.17em;font-size:9px;font-weight:700;text-shadow:0 2px 10px #082536}.bell-control button{display:flex;align-items:center;gap:13px;padding:15px 19px;background:linear-gradient(120deg,#224d51ef,#133840ef);border:1px solid #dfbd7aa6;border-radius:999px;box-shadow:0 4px 0 #082b34,0 8px 25px #051e3140;color:#fce8b9}.bell-control b{font-size:13px;letter-spacing:.01em}.bell-control svg{flex:none}.bell-control kbd{font-size:10px;border:1px solid #d9c99e55;padding:3px 5px;border-radius:4px;color:#cbdace}.bell-control button:active{transform:translateY(2px);box-shadow:0 2px 0 #082b34}#line[data-phase=start] .bell-control{bottom:120px;right:6%}
@media(max-width:700px){.bell-control,#line[data-phase=start] .bell-control{right:18px;bottom:auto;top:191px}.bell-control>span{font-size:8px;margin-bottom:7px}.bell-control button{padding:12px 14px;gap:9px}.bell-control b{font-size:11px}.bell-control kbd{display:none}.bell-control svg{width:21px;height:21px}#line[data-phase=start] .bell-control{top:106px}}
@media(max-height:450px){.bell-control,#line[data-phase=start] .bell-control{top:auto;bottom:95px;right:60px}.bell-control button{padding:10px 13px}.bell-control>span{display:none}}

/* Live backdrop blur forces an extra composite of the changing WebGL canvas.
   Keep the look-ahead panel readable without recopying the reef every frame. */
#line .lookahead{backdrop-filter:none;background:#062d3bf5}
