:root{--ink:#233f3e;--muted:#6c7c70;--paper:#f3f0e5;--teal:#357e78;--coral:#dc765e;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,select{font:inherit;color:inherit}button{cursor:pointer;border:0;min-height:44px;min-width:44px;touch-action:manipulation}button:focus-visible,select:focus-visible{outline:3px solid #de9e37;outline-offset:4px}button:active{transform:translateY(1px)}button[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--teal)}[hidden]{display:none!important}a{color:inherit}#entry{max-width:1180px;margin:auto;padding:26px 48px 20px}.masthead{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{text-decoration:none;font-size:24px;font-weight:850;letter-spacing:-1px;line-height:1}.brand span{display:block;font-size:8px;letter-spacing:2.4px;margin-top:7px;color:var(--muted)}.toolbar{display:flex;align-items:center;gap:7px}.toolbar select{max-width:115px;min-height:44px;border:1px solid #d6d9c9;border-radius:22px;background:transparent;padding:0 10px;font-size:12px}.icon{border:1px solid #ccd1c1;border-radius:50%;background:rgba(250,247,235,.94);font-size:20px;width:44px;height:44px;flex-shrink:0}.intro{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center;padding:50px 0 36px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;text-transform:uppercase;line-height:1.8;color:var(--muted);margin:0 0 13px}h1{margin:0;line-height:.87;letter-spacing:-6px;font-size:clamp(60px,7vw,94px);font-weight:950}h1 small{display:block;font-size:21px;font-weight:600;letter-spacing:-.5px;line-height:1.5;margin-top:16px}.title-dot{color:var(--coral)}.lede{white-space:pre-line;line-height:1.75;font-size:14px;color:#67776b;margin:18px 0}.primary{background:var(--teal);color:#fff7e7;min-height:52px;padding:14px 26px;border-radius:8px;font-weight:750;box-shadow:0 4px 0 #245d57;font-size:15px}#play{min-width:225px}.saved{font-size:11px;color:var(--muted);margin:14px 0 0}.river-card{position:relative;isolation:isolate;height:445px;border:9px solid #fffaf0;border-bottom-width:38px;box-shadow:0 16px 34px #233f3e16;transform:rotate(3deg);border-radius:5px;overflow:visible}.river-card canvas{width:100%;height:100%;display:block}.stamp{position:absolute;right:-19px;top:20px;width:90px;height:90px;border:2px solid var(--coral);color:var(--coral);background:#faf5e9e8;border-radius:50%;display:grid;place-content:center;text-align:center;font-size:12px;letter-spacing:2px;font-weight:800;transform:rotate(11deg)}.river-caption{position:absolute;bottom:-25px;left:8px;font-size:8px;letter-spacing:2.3px;font-weight:750;color:var(--muted)}.outfit{display:grid;grid-template-columns:1fr 1fr;gap:28px;border-top:1px solid #d8dccd;padding-top:25px}.choices{display:flex;gap:8px}.choice{background:#e9e9db;flex:1;padding:12px 7px;text-align:left;border-radius:8px;min-height:90px}.choice strong{display:block;font-size:12px}.choice small{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:5px}.choice .glyph{display:block;font-size:23px;line-height:1.2;margin-bottom:8px}.routes{display:flex;align-items:center;justify-content:space-between;padding:24px 0 16px;gap:12px}.routes .eyebrow{margin:0}.route-buttons{display:flex;gap:8px}.route-buttons button{background:#e4e7d7;padding:9px 16px;border-radius:6px;font-size:12px}.entry-links{display:flex;gap:8px;flex-wrap:wrap}.secondary{background:#e1e7d7;padding:11px 18px;border-radius:7px;font-size:12px;font-weight:650}.plain{background:transparent;padding:10px 8px;font-size:11px;text-decoration:underline;text-underline-offset:4px}footer{border-top:1px solid #d8dccd;margin-top:25px;padding-top:14px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}
#voyage{position:fixed;inset:0;background:#5b9f9f;overflow:hidden}#sea{position:absolute;width:100%;height:100%;touch-action:none}.voyage-hud{position:absolute;top:max(12px,env(safe-area-inset-top));left:12px;right:48px;display:flex;align-items:center;gap:10px;color:#fdf7e5}.where{flex:1;text-shadow:0 2px 6px #174449}.where small{display:block;font-size:10px;letter-spacing:1px}.where strong{font-size:14px}.hull{display:grid;gap:2px;text-align:center;text-shadow:0 2px 5px #174449}.hull small{font-size:9px}.hull strong{font-size:17px;letter-spacing:1px}.cargo-status{position:absolute;top:80px;left:14px;min-width:128px;max-width:180px;background:#f7f1dcf0;padding:10px 12px;border-radius:10px;font-size:10px;box-shadow:0 3px 9px #1a52431c}.cargo-status strong{float:right;margin-left:14px}.cargo-status>div{height:4px;background:#d4d6b9;margin-top:7px;border-radius:3px;overflow:hidden}.cargo-status i{display:block;height:100%;background:#6da77b;transition:width .4s}.journey{position:absolute;top:155px;bottom:180px;left:20px;width:4px;background:#f0f1d933;border-radius:4px;overflow:hidden}.journey span{display:block;background:#fbe2a2;width:100%;height:0;transition:height .2s}#distance{position:absolute;left:12px;bottom:158px;font-size:10px;color:#fff6da;text-shadow:0 1px 4px #234f4e}.helm{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:40px;right:48px;display:flex;align-items:center;flex-direction:column;gap:9px;pointer-events:none}#direction{background:#f9f1daec;padding:5px 16px;border-radius:20px;font-size:11px;min-height:26px;box-shadow:0 3px 15px #184f4f20}#rudder{width:min(100%,380px);min-height:65px;border-radius:12px;touch-action:none;user-select:none;-webkit-user-select:none;pointer-events:auto;display:flex;align-items:center;justify-content:center;gap:12px;box-shadow:0 5px 0 #1f5a54;transition:background .1s}#rudder.held{background:#d47c5d;box-shadow:0 2px 0 #a95c43;transform:translateY(3px)}.wheel{font-size:28px}#release{font-size:10px;color:#fff4d9;text-shadow:0 1px 5px #1d5050}.helm .primary{font-size:14px}#notification{position:absolute;top:25%;left:45px;right:55px;text-align:center;background:#fff2cded;border-radius:14px;color:#5f684d;font-size:13px;padding:12px;opacity:0;transition:opacity .15s;pointer-events:none}#notification.show{opacity:1}#coach{position:absolute;bottom:165px;left:45px;right:55px;max-width:410px;margin:auto;background:#f7f0dceF;backdrop-filter:blur(5px);padding:12px 44px 12px 14px;border-radius:10px;font-size:11px;line-height:1.7}#coach button{position:absolute;right:0;top:0;background:transparent;font-size:20px}
dialog{border:0;border-radius:18px;background:var(--paper);color:var(--ink);max-width:510px;width:calc(100% - 28px);max-height:calc(100dvh - 28px);padding:25px;box-shadow:0 25px 90px #123e3960}dialog::backdrop{background:#173b3e85;backdrop-filter:blur(4px)}dialog h2{font-size:23px;letter-spacing:-.7px;line-height:1.35;margin:8px 0 14px}dialog p{font-size:12px;line-height:1.7;color:var(--muted)}dialog .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}dialog .actions button{flex:1;min-width:100px}dialog .star-rating{color:#d49c36;font-size:40px;letter-spacing:5px}dialog .summary{display:flex;gap:8px;flex-wrap:wrap}dialog .summary span{flex:1;background:#e5e6d5;border-radius:8px;padding:10px;font-size:10px}dialog .summary strong{display:block;font-size:19px;margin-top:4px}dialog label{display:block;font-size:12px;padding:10px 0}dialog input[type=range]{width:100%;min-height:44px;accent-color:var(--teal)}.contract-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.contract-grid button{border-radius:8px;min-height:70px;background:#e3e7d8;font-size:12px;padding:10px 5px}.contract-grid small{display:block;color:#a97d34;letter-spacing:2px;margin-top:4px}.region-title{font-size:12px;font-weight:750;margin:20px 0 10px}.credit-links a{overflow-wrap:anywhere}#toast{position:fixed;bottom:15px;left:50%;transform:translateX(-50%);width:max-content;max-width:85vw;border-radius:10px;background:#234b46;color:#fff6e0;padding:12px 18px;font-size:12px;line-height:1.6;opacity:0;pointer-events:none;z-index:99999}#toast.show{opacity:1}.key-note{font-size:10px;border-top:1px solid #d5d8c7;padding-top:14px}.result-map{width:100%;height:120px;border-radius:10px;margin-top:14px;background:#e1e5d1}body.playing{overflow:hidden}
.voyage-hud .icon{color:var(--ink)}
@media(min-width:800px){#voyage{inset:0;max-width:650px;margin:auto;box-shadow:0 0 0 100vw #d7ddce}.voyage-hud{right:20px}.helm{right:40px}}
@media(max-width:650px){#entry{padding:16px 20px 12px}.masthead .brand{font-size:19px}.brand span{font-size:7px;letter-spacing:1.4px}.toolbar{gap:5px}.toolbar select{max-width:95px}.intro{gap:10px;grid-template-columns:1fr .84fr;padding:31px 0 25px}h1{font-size:clamp(43px,10vw,68px);letter-spacing:-3px}h1 small{font-size:15px;margin-top:11px}.eyebrow{font-size:8px;letter-spacing:.9px}.intro .eyebrow{max-width:160px;line-height:1.7}.lede{font-size:10px;line-height:1.8;margin:12px 0}.primary{font-size:12px;padding:12px 14px;min-height:48px}#play{min-width:0;width:100%;font-size:12px}.saved{font-size:8px;line-height:1.7}.river-card{height:280px;border-width:5px;border-bottom-width:26px}.stamp{width:57px;height:57px;font-size:8px;letter-spacing:1px;right:-7px;top:15px}.river-caption{font-size:5px;letter-spacing:.8px;bottom:-17px;left:3px}.outfit{gap:14px;padding-top:18px;grid-template-columns:1fr}.choices{gap:7px}.choice{min-height:79px;padding:9px 9px}.choice strong{font-size:11px}.choice small{font-size:9px;line-height:1.5;margin-top:3px}.choice .glyph{float:left;margin:0 8px 8px 0;font-size:22px}.routes{padding-top:19px;flex-wrap:wrap;gap:7px}.route-buttons{width:100%}.route-buttons button{flex:1}.entry-links{gap:5px}.secondary{font-size:10px;padding:10px 11px}.plain{font-size:10px;padding:9px 5px}footer{margin-top:15px;padding-top:9px;font-size:8px}dialog{padding:20px}dialog h2{font-size:21px}}
@media(max-width:350px){#entry{padding:12px 15px}.toolbar select{max-width:80px}.toolbar .icon{width:44px}.intro{gap:8px}h1{font-size:44px}.river-card{height:258px}.lede{font-size:9px}.choice{padding:9px 6px}.choice .glyph{float:none;margin:0 0 5px}.choice small{font-size:8px}}
@media(max-height:450px) and (orientation:landscape){.voyage-hud{top:8px}.cargo-status{top:65px;padding:7px 9px}.helm{bottom:12px;left:auto;width:280px;right:48px;gap:5px}#rudder{min-height:50px}#coach{bottom:90px;left:auto;right:48px;width:280px;font-size:10px}.journey{top:120px;bottom:70px}#distance{bottom:42px}#direction{font-size:10px}#release{font-size:9px}dialog{max-width:580px}.intro{padding-top:30px}.river-card{height:340px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
