:root{--ui-space-1: 4px;--ui-space-2: 8px;--ui-space-3: 12px;--ui-space-4: 16px;--ui-space-6: 24px;--ui-radius-control: 10px;--ui-radius-panel: 20px;--ui-control-height: 48px;--ui-control-shadow: 0 1px 2px #123f5514;--ui-focus-width: 2px;--ui-focus-offset: 3px;--ui-surface: #fff4d4;--ui-hud-surface: #fff4d4;--ui-hud-edge: #eaba62;--ui-hud-radius: 14px;--ui-hud-shadow: var(--panel-shadow, 0 8px 24px #123f5530);--ui-surface-edge: #eead3c;--ui-surface-shadow: inset 0 2px 0 white, 0 7px 0 #a56d1c, 0 24px 80px #003e6e66;--ui-backdrop: #062e57a6;--ui-primary: #ffcd24;--ui-primary-hover: #ffdf45;--ui-primary-edge: #d58c00;--ui-primary-text: #543400;--ui-secondary: #e5f6ff;--ui-secondary-hover: #dcefff;--ui-secondary-edge: #89bee3;--ui-danger: #fff0df;--ui-danger-hover: #ffe0cc;--ui-danger-edge: #be6b54;--ui-danger-text: #84371f;--ui-success: #65df41;--ui-success-hover: #8ded63;--ui-success-edge: #24972e;--ui-success-text: #174b15;--ui-close: #e53758;--ui-close-hover: #ff5577;--ui-close-edge: #b21639;--ui-disabled: #c9dce6;--ui-disabled-edge: #91acbf;--ui-disabled-text: #48677c}.ui-button{--button-height: var(--ui-control-height);--button-bg: var(--ui-secondary);--button-hover: var(--ui-secondary-hover);--button-edge: var(--ui-secondary-edge);--button-text: var(--instrument, #0754b8);display:inline-flex;align-items:center;justify-content:center;gap:var(--ui-space-2);min-width:44px;min-height:var(--button-height);margin:0;padding:10px var(--ui-space-4);border:2px solid var(--button-edge);border-radius:var(--ui-radius-control);color:var(--button-text);background:var(--button-bg);box-shadow:var(--ui-control-shadow);font:inherit;font-size:.9375em;font-weight:700;line-height:1.25;text-align:center;cursor:pointer;touch-action:manipulation;transition:background-color .12s ease,transform .12s ease}.ui-button--primary{--button-bg: var(--ui-primary);--button-hover: var(--ui-primary-hover);--button-edge: var(--ui-primary-edge);--button-text: var(--ui-primary-text)}.ui-button--danger{--button-bg: var(--ui-danger);--button-hover: var(--ui-danger-hover);--button-edge: var(--ui-danger-edge);--button-text: var(--ui-danger-text)}.ui-button--success{--button-bg: var(--ui-success);--button-hover: var(--ui-success-hover);--button-edge: var(--ui-success-edge);--button-text: var(--ui-success-text)}.ui-button--tool{--button-bg: var(--hud-control-bg, #087ad1);--button-hover: #149ce7;--button-edge: var(--hud-control-edge, #03539c);--button-text: white}.ui-button--ghost{--button-bg: transparent;--button-edge: transparent;box-shadow:none}.ui-button--small{--button-height: 44px;padding:var(--ui-space-2) var(--ui-space-3);font-size:.875em}.ui-button--large{--button-height: 52px;padding:var(--ui-space-3) var(--ui-space-4);font-size:1em}.ui-button--full{width:100%}.ui-button:hover:not(:disabled){background:var(--button-hover)}.ui-button:active:not(:disabled){transform:translateY(1px);box-shadow:none}.ui-button:is([aria-pressed=true],[aria-expanded=true]){--button-bg: var(--instrument, #0754b8);--button-hover: var(--button-bg);--button-edge: var(--button-bg);--button-text: white}.ui-button--primary:is([aria-pressed=true],[aria-expanded=true]){--button-bg: var(--ui-primary);--button-edge: var(--ui-primary-edge);--button-text: var(--ui-primary-text)}.ui-button:focus-visible{outline:var(--ui-focus-width) solid var(--ink, #103969);outline-offset:var(--ui-focus-offset);box-shadow:0 0 0 var(--ui-focus-offset) var(--paper, #fffaf0)}.ui-button:disabled{color:var(--ui-disabled-text);background:var(--ui-disabled);border-color:var(--ui-disabled-edge);box-shadow:none;cursor:not-allowed}.ui-button>svg{flex-shrink:0}.ui-button kbd{color:inherit;background:transparent;border-color:currentColor}.ui-icon-button{width:var(--button-height);height:var(--button-height);flex:0 0 auto;padding:var(--ui-space-2)}.ui-icon-button--tab{width:44px;height:48px;min-height:48px;border-right:0;border-radius:var(--ui-hud-radius) 0 0 var(--ui-hud-radius)}.ui-icon-button--tab,.ui-icon-button--tab[aria-expanded=true]{--button-bg: var(--ui-hud-surface);--button-hover: #fffaf0;--button-edge: var(--ui-hud-edge);--button-text: var(--ink, #103969);box-shadow:var(--ui-control-shadow)}.ui-icon-button--close{--button-bg: var(--ui-close);--button-hover: var(--ui-close-hover);--button-edge: var(--ui-close-edge);--button-text: white;border-radius:50%}.ui-dialog{width:min(720px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:var(--ui-space-6);overflow:auto;overscroll-behavior:contain;color:var(--ink);background:var(--ui-surface);border:3px solid var(--ui-surface-edge);border-radius:var(--ui-radius-panel);box-shadow:var(--ui-surface-shadow)}.ui-dialog--compact{width:min(570px,calc(100vw - 32px))}.ui-dialog--wide{width:min(1080px,calc(100vw - 32px))}.ui-dialog::backdrop{background:var(--ui-backdrop)}.ui-dialog-header{display:flex;align-items:flex-start;gap:var(--ui-space-3);margin-bottom:var(--ui-space-6)}.ui-dialog-header__copy{flex:1;min-width:0;align-self:center}.ui-dialog-header h2{margin:0;color:var(--ink);font-size:1.4em;font-weight:850;line-height:1.2;letter-spacing:-.025em}.ui-dialog-header p{margin:var(--ui-space-1) 0 0;color:var(--muted);font-size:.875em;line-height:1.5}.ui-dialog-header__icon{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:var(--ui-radius-control);color:var(--instrument);background:var(--ui-secondary)}.ui-menu-action{justify-content:flex-start;width:100%;min-height:76px;text-align:left}.ui-menu-action__icon{display:grid;place-items:center;flex:0 0 36px}.ui-menu-action__copy{display:grid;min-width:0;gap:var(--ui-space-1)}.ui-menu-action strong{font-size:1em}.ui-menu-action small{color:var(--muted);font-size:.875em;font-weight:400;line-height:1.4}.setting-choice{min-width:0;margin:0 0 var(--ui-space-6);padding:0;border:0}.setting-choice legend{margin-bottom:var(--ui-space-2);padding:0;color:var(--ink);font-size:.875em;font-weight:650}.setting-choice__option{display:flex;align-items:center;gap:var(--ui-space-2);min-height:var(--ui-control-height);margin:0;padding:var(--ui-space-2) var(--ui-space-3);color:var(--ink);background:var(--ui-secondary);border:2px solid var(--ui-secondary-edge);border-radius:var(--ui-radius-control);font-size:.875em;line-height:1.4;cursor:pointer}.setting-choice__option:hover{background:var(--ui-secondary-hover)}.setting-choice__option:has(:checked){color:#fff;background:var(--instrument);border-color:var(--instrument)}.setting-choice__option:has(:focus-visible){outline:3px solid var(--ink);outline-offset:3px}.setting-choice__options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ui-space-2)}.setting-choice__option input{width:16px;height:16px;flex:0 0 16px;margin:0;accent-color:var(--brass)}.setting-choice__option input:focus-visible{outline:none}@media(max-width:600px),(max-height:650px){.ui-dialog{padding:var(--ui-space-4)}.ui-dialog-header{margin-bottom:var(--ui-space-4)}}@media(prefers-reduced-motion:reduce){.ui-button{transition:none}.ui-button:active:not(:disabled){transform:none}}.game-logo{display:block;width:100%;height:auto;object-fit:contain}header.brand.brand--logo,.brand.brand--logo:has(.brand__action){grid-template-columns:auto auto;gap:4px 12px}.brand.brand--logo h1{grid-column:1;grid-row:1;width:144px;margin:0}.brand.brand--logo>p{grid-column:1;grid-row:2;text-align:center;margin:0}.brand.brand--logo .brand__action{grid-column:2;grid-row:1 / span 2;position:static;margin:0}@media(max-height:700px),(max-width:1100px){.brand.brand--logo h1{width:112px}}.keyboard-guide{display:grid;grid-template-columns:1.15fr 1fr;gap:24px;margin-top:24px}.keyboard-guide>section{min-width:0}.keyboard-guide h3{margin:0 0 16px;font-size:.9375em}.keyboard-guide kbd{min-width:36px;height:38px;padding-inline:7px;border:1px solid var(--instrument-edge);border-bottom:4px solid #062c3a;border-radius:6px;color:var(--manifest);background:var(--instrument);font-size:.9375rem;font-weight:700;line-height:1}.keyboard-guide__movement{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 8px;padding:20px 8px;background:#17334808;border:1px solid #17334826;border-radius:var(--radius)}.keyboard-guide__movement-key{display:grid;grid-row:2;justify-items:center;align-content:start;gap:10px;text-align:center}.keyboard-guide__movement-key--forward{grid-column:2;grid-row:1}.keyboard-guide__movement-key>div{display:flex;align-items:center;gap:4px}.keyboard-guide__movement-key>span{font-size:.6875em;line-height:1.35}.keyboard-guide__or{font-size:.625em;color:var(--muted)}.keyboard-guide__alternative kbd{min-width:22px;height:24px;border-bottom-width:2px;font-size:.75rem;vertical-align:middle}.keyboard-guide__actions dl{display:grid;gap:12px;margin:0}.keyboard-guide__actions dl>div{position:relative;min-height:40px;padding-left:54px}.keyboard-guide__actions dt{display:flex;align-items:center}.keyboard-guide__actions dt kbd{position:absolute;left:0;top:0;min-width:42px}.keyboard-guide__actions strong{font-size:.8125em}.keyboard-guide__actions dd{margin:4px 0 0;color:var(--muted);font-size:.6875em;line-height:1.45}.keyboard-guide--flight .keyboard-guide__actions dl>div{padding-left:90px}.keyboard-guide.keyboard-guide--compact{display:flex;gap:16px;margin:0}.keyboard-guide--compact>span{display:grid;justify-items:center;align-content:start;gap:6px}.keyboard-guide--compact>span>span:first-child{display:flex;gap:4px}.keyboard-guide--compact>span>span:last-child{font-size:.75em}.keyboard-guide--compact kbd{min-width:26px;height:28px;padding-inline:6px;border-bottom-width:3px;font-size:.8125rem}@media(max-width:700px){.keyboard-guide{grid-template-columns:1fr;gap:20px;margin-top:20px}.keyboard-guide__actions dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}@media(max-width:380px){.keyboard-guide kbd{min-width:30px}.keyboard-guide__movement{padding-inline:4px;gap:16px 4px}.keyboard-guide__actions dl{grid-template-columns:1fr}}.ui-dialog .keyboard-guide__alternative{margin:12px 0 0;font-size:.875em;line-height:1.6}.controls-dialog__tip{margin:20px 0;color:var(--muted);font-size:.875em;line-height:1.5}.pause-voyage{padding:16px;background:#fffdf5;border:2px solid #edd39c;border-radius:15px}.pause-voyage__heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:6px}.pause-voyage__heading>span{padding:4px 8px;color:var(--instrument);background:#def4ff;border-radius:6px;font-size:var(--hud-text-small);font-weight:850}.pause-voyage__heading>strong{color:var(--muted);font-size:var(--hud-text-small);font-weight:600}.pause-voyage__cargo{display:flex;align-items:center;gap:8px;min-height:84px}.pause-voyage__cargo .cargo-artwork{width:78px;height:78px}.pause-voyage__cargo h3{margin:0 0 5px;font-size:1em;line-height:1.35;font-weight:850}.pause-voyage__cargo p{margin:0;font-size:var(--hud-text-small);color:var(--muted);line-height:1.5}.pause-voyage__facts{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:12px;border-top:1px solid #e5d7b6}.pause-voyage__facts>div{display:flex;align-items:center;gap:8px;color:#0874b9}.pause-voyage__facts>div>span{display:grid;gap:3px;color:var(--muted);font-size:var(--hud-text-small)}.pause-voyage__facts strong{color:var(--ink);font-size:1.4em}.pause-hub__shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.pause-hub__footnote{display:flex;justify-content:center;align-items:center;gap:7px;margin:18px 0 0;color:var(--muted);font-size:var(--hud-text-small);line-height:1.5}.pause-hub__footnote svg{flex-shrink:0}.restart-dialog{width:min(440px,calc(100vw - 32px))}.preferences-layout{display:grid;grid-template-columns:144px minmax(0,1fr);gap:22px;min-height:292px}.preferences-categories{display:flex;flex-direction:column;gap:10px;padding-right:16px;border-right:1px solid #e1cfa7}.preferences-categories button svg{flex-shrink:0}.preferences-content{min-width:0}.preferences-section-title{display:flex;align-items:center;gap:12px;margin:0 0 22px;color:#0089b8}.preferences-section-title>svg{flex-shrink:0}.preferences-section-title h3{margin:0 0 5px;font-size:1em;color:var(--ink);line-height:1.35}.preferences-section-title p{margin:0;font-size:var(--hud-text-small);color:var(--muted);line-height:1.5}.preferences-toggle{display:flex;align-items:center;gap:12px;min-height:80px;padding:14px;border:1px solid #dcceb0;border-radius:12px;background:#fffaf0;color:#0084a4;cursor:pointer}.preferences-toggle:hover{background:#fffdf8}.preferences-toggle>svg{flex-shrink:0}.preferences-toggle>span{display:grid;flex:1;gap:5px}.preferences-toggle strong{font-size:var(--hud-text-small);color:var(--ink)}.preferences-toggle small{color:var(--muted);font-size:var(--hud-text-small);line-height:1.5}.preferences-toggle input{flex:0 0 24px;width:24px;height:24px;margin:0;accent-color:#0875cb}.preferences-volume{display:grid;gap:12px;margin-top:22px}.preferences-volume>span{display:flex;justify-content:space-between;gap:10px;font-size:var(--hud-text-small);font-weight:650}.preferences-volume strong{color:var(--instrument);font-variant-numeric:tabular-nums}.preferences-volume input{width:100%;min-height:28px;margin:0;accent-color:#0875cb}.preferences-volume input:disabled{opacity:.5;cursor:not-allowed}.preferences-volume small{color:var(--muted);font-size:var(--hud-text-small);line-height:1.5}.preferences-text{display:flex;align-items:start;gap:12px;color:#0084a4}.preferences-text>svg{flex-shrink:0;margin-top:22px}.preferences-text .setting-choice{flex:1}.preferences-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e1cfa7;margin-top:22px;padding-top:18px}.preferences-footer p{display:flex;align-items:center;gap:8px;max-width:38ch;margin:0;color:var(--muted);font-size:var(--hud-text-small);line-height:1.5}.preferences-footer p svg{flex-shrink:0;color:#168748}@media(max-width:600px){.pause-hub__shortcuts{grid-template-columns:1fr;gap:10px}.pause-voyage{padding:12px}.pause-voyage__facts{gap:8px}.pause-voyage__facts strong{font-size:1.2em}.preferences-layout{grid-template-columns:1fr;min-height:0;gap:20px}.preferences-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:0 0 14px;border:0;border-bottom:1px solid #e1cfa7}.preferences-footer{flex-direction:column;align-items:stretch}}.pause-hub__resume,.pause-hub__restart{margin-top:var(--ui-space-4)}.preferences-categories .ui-button{justify-content:flex-start;text-align:left}.restart-dialog .ui-button+.ui-button{margin-top:var(--ui-space-3)}.entry-menu-launchers{grid-template-columns:1fr;margin-top:0}.entry-control-modes{display:flex;gap:var(--space)}.entry-menu .keyboard-guide__movement-key>span,.entry-menu .keyboard-guide__actions dd,.entry-menu .keyboard-guide__alternative{font-size:.875em}.entry-menu .keyboard-guide__actions strong{font-size:1em}.entry-comfort{margin-top:calc(var(--space) * 2);padding-top:var(--space);border-top:1px solid var(--brass)}.entry-comfort h3,.entry-credits h3{margin:0 0 var(--space);font-size:1em}.entry-comfort__choices{display:grid;grid-template-columns:1fr 1fr;gap:calc(var(--space) * 2)}.entry-comfort .setting-choice{margin:0}.entry-comfort .setting-choice__option{font-size:1em;min-height:48px}.entry-menu__footer{margin-top:calc(var(--space) * 2);padding-top:var(--space);border-top:1px solid var(--brass)}.entry-menu--credits{max-width:600px}.entry-credits{display:grid;gap:calc(var(--space) * 2)}.entry-credits section{padding:calc(var(--space) * 1.5);border:1px solid var(--brass);border-radius:var(--radius);background:var(--paper)}.entry-credits p{margin:0}.entry-credits p+p{margin-top:var(--space)}@media(max-width:600px){.entry-comfort__choices{grid-template-columns:1fr}}.entry-loading{margin-top:calc(var(--space) * 2)}.entry-loading__scene{display:block;width:100%;height:auto;overflow:hidden;border:1px solid var(--instrument-edge);border-radius:var(--radius);background:var(--paper)}.entry-loading__sun,.entry-loading__cargo{fill:var(--brass)}.entry-loading__island{fill:var(--muted);opacity:.35}.entry-loading__lighthouse,.entry-loading__hull{fill:var(--manifest);stroke:var(--instrument);stroke-width:2;stroke-linejoin:round}.entry-loading__beacon,.entry-loading__cabin{fill:var(--instrument);stroke:var(--instrument);stroke-width:2}.entry-loading__sea{fill:var(--instrument)}.entry-loading__windows{fill:none;stroke:var(--paper);stroke-width:3}.entry-loading__cargo-lines{fill:none;stroke:var(--instrument);stroke-width:1;opacity:.4}.entry-loading__porthole{fill:var(--instrument)}.entry-loading__waves,.entry-loading__wake{fill:none;stroke:var(--paper);stroke-width:2;stroke-linecap:round}.entry-loading__waves{opacity:.5;animation:entry-waves 2.4s linear infinite}.entry-loading__wake{animation:entry-wake 1.8s ease-in-out infinite}.entry-loading__boat{transform-origin:144px 82px;animation:entry-sailing 3s ease-in-out infinite}.game-entry .entry-loading__title{margin:var(--space) 0 4px;color:var(--ink);font-weight:750}.game-entry .entry-loading__message{margin:0;min-height:3.2em;font-size:var(--hud-text-small);color:var(--muted)}@keyframes entry-sailing{0%,to{transform:translate(0) rotate(-2deg)}50%{transform:translate(6px,-3px) rotate(2deg)}}@keyframes entry-waves{to{transform:translate(-32px)}}@keyframes entry-wake{0%,to{opacity:.3;transform:translate(0)}50%{opacity:.8;transform:translate(-8px)}}.entry-loading--still .entry-loading__boat,.entry-loading--still .entry-loading__waves,.entry-loading--still .entry-loading__wake{animation:none}@media(prefers-reduced-motion:reduce){.entry-loading__boat,.entry-loading__waves,.entry-loading__wake{animation:none}}.hud-theme--vibrant{--instrument: #0754b8;--instrument-edge: #58c9ff;--manifest: #fff4d4;--brass: #ffcf24;--brass-shadow: #c67908;--sea-glass: #4be5d2;--ink: #103969;--muted: #426486;--hud-text-small: .875em;--hud-text-body: 1em;--panel-shadow: 0 6px 0 #07367a35, 0 12px 24px #003c6c1c;--hud-control-bg: #087ad1;--hud-control-edge: #03539c;--hud-control-highlight: #70daff;--hud-control-text: #fff}.hud-theme--vibrant .mission-card{width:min(340px,100%);border:3px solid var(--ui-hud-edge);border-radius:var(--ui-hud-radius);padding:18px;color:var(--ink);background:var(--ui-hud-surface);box-shadow:var(--ui-hud-shadow)}.hud-theme--vibrant .mission-card .timer{color:var(--instrument);font-weight:900}.hud-theme--vibrant .mission-card .status{color:var(--instrument);font-weight:850}.hud-theme--vibrant .mission-card .status--offer{padding:6px 8px;color:#fff;background:#d72d55;border:1px solid #a6193d;border-radius:8px;box-shadow:inset 0 2px #ff88a0}.hud-theme--vibrant .mission-card .status--late,.hud-theme--vibrant .mission-card .voyage-clock--late .timer{color:#b63723}.hud-theme--vibrant .mission-card .status--complete{color:#168242}.hud-theme--vibrant .mission-card .island-port__map{background:#c9f5e9;border:2px solid #77ccbb}.hud-theme--vibrant .mission-card .island-port__coast{fill:#39b96a;stroke:#137c56}.hud-theme--vibrant .mission-card .island-port__pin{fill:#ffce25;stroke:#b46a00}.hud-theme--vibrant .mission-card .island-port__copy>span,.hud-theme--vibrant .mission-card .island-port__copy>small{color:var(--muted)}.hud-theme--vibrant .mission-card .manifest-details,.hud-theme--vibrant .mission-card .dock-hint,.hud-theme--vibrant .mission-card .mission-card__footer span{color:var(--muted)}.hud-theme--vibrant .mission-card .voyage-manifest>summary{color:#0067b6}.hud-theme--vibrant .mission-card .mission-card__footer{border-top-color:#e7cb89}.hud-theme--vibrant .mission-card .mission-card__footer strong{color:var(--instrument);font-size:1.15em;font-weight:900}.hud-theme--vibrant .mission-card .cargo-title{border-top-color:#e7cb89;font-size:1em}.hud-theme--vibrant .mission-card .cargo-title>span{color:var(--muted)}.hud-theme--vibrant .mission-card .voyage-clock>span{color:var(--muted)}.hud-theme--vibrant .delivery-stamp{color:#176131;border-color:#35aa51;background:#d8ffd6;border-radius:10px}.hud-theme--vibrant .toast{color:#fff;background:var(--instrument);border-left-color:#ffcf24;border-radius:0 10px 10px 0;box-shadow:0 3px #07367a}.hud-theme--vibrant .toast--warning{color:#fff4b6;background:#9c4227}.hud-theme--vibrant .voyage-purse{background:var(--hud-control-bg);border:2px solid var(--hud-control-edge);border-radius:12px;box-shadow:inset 0 2px 0 var(--hud-control-highlight),0 4px 0 var(--hud-control-edge)}.hud-theme--vibrant .voyage-purse strong{color:#ffec6e;font-size:1.05em}.hud-theme--vibrant .voyage-purse>div>span{color:#fff}.hud-theme--vibrant .chart{color:var(--ink);background:var(--ui-hud-surface);border:2px solid var(--ui-hud-edge);border-radius:var(--ui-hud-radius);box-shadow:var(--ui-hud-shadow)}.hud-theme--vibrant .chart__land{fill:#49cc75;stroke:#c2ffbc}.hud-theme--vibrant .chart__route{stroke:#ffdf24}.hud-theme--vibrant .helm-instrument__rim{fill:var(--hud-control-bg);stroke:var(--hud-control-edge);stroke-width:3}.hud-theme--vibrant .helm-instrument__scale,.hud-theme--vibrant .helm-instrument__ticks{stroke:var(--hud-control-highlight)}.hud-theme--vibrant .helm-instrument strong,.hud-theme--vibrant .helm-instrument span{color:var(--hud-control-text)}.hud-theme--vibrant .helm .voyage-guidance{background:var(--instrument);border:2px solid #58c9ff;border-radius:12px}.hud-theme--vibrant .chart-dialog{border:3px solid #eead3c;border-radius:20px;box-shadow:inset 0 2px #fff,0 7px #a56d1c,0 24px 80px #003e6e66}.hud-theme--vibrant .setting-choice__option:has(:checked){color:#fff}.hud-theme--vibrant .contract-choices__list button[aria-pressed=true]{color:var(--instrument);background:#dff6ff;border-color:#0089d2}.cargo-artwork{display:inline-block;width:96px;height:96px;flex:0 0 auto;background-image:url(../ui/cargo/cargo-icons.webp);background-repeat:no-repeat;background-size:200% 200%}.cargo-artwork--provisions{background-position:0 0}.cargo-artwork--medical{background-position:100% 0}.cargo-artwork--materials{background-position:0 100%;clip-path:inset(3% 0 0)}.cargo-artwork--coins{background-image:url(../ui/cargo/reward-escudo.webp);background-size:contain;background-position:center}.cargo-manifest{margin-block:14px;padding:10px;color:#163c6b;border:2px solid #f0ce81;border-radius:12px;background:#fffaf0}.cargo-manifest__goods{display:flex;align-items:center;gap:3px}.cargo-manifest__goods>div{display:grid;gap:3px}.cargo-manifest__goods>div>span{font-size:var(--hud-text-small);font-weight:750;color:var(--muted)}.cargo-manifest__goods strong{color:var(--instrument);font-size:1.4em;font-weight:900}.cargo-manifest__goods small{font-size:var(--hud-text-small)}.cargo-manifest__capacity{display:grid;gap:6px;margin-top:8px}.cargo-manifest__capacity label{display:flex;justify-content:space-between;gap:8px;font-size:var(--hud-text-small)}.cargo-manifest__capacity label strong{color:var(--instrument)}.cargo-manifest__capacity meter{display:block;width:100%;height:16px;accent-color:#05aede}.cargo-manifest__capacity meter::-webkit-meter-bar{background:#d2e9f3;border:1px solid #84b7d0;border-radius:8px}.cargo-manifest__capacity meter::-webkit-meter-optimum-value{background:#00aedd;border-radius:8px}.cargo-manifest__capacity meter::-moz-meter-bar{background:#00aedd;border-radius:8px}.cargo-manifest__capacity>span{font-size:var(--hud-text-small);color:var(--muted)}.game-entry{position:fixed;inset:0;z-index:100;isolation:isolate;display:grid;align-items:center;justify-items:start;overflow:auto;padding:32px clamp(24px,5vw,96px);background:var(--instrument);color:var(--ink)}.game-entry__panel{width:min(100%,420px);display:grid;justify-items:center;gap:calc(var(--space) * 2)}.game-entry__card{position:relative;width:100%;margin:0;padding:clamp(24px,3vw,32px);background:color-mix(in srgb,var(--manifest) 96%,transparent);border:3px solid var(--brass);border-radius:calc(var(--radius) * 2);box-shadow:var(--panel-shadow)}.entry-cover{position:absolute;z-index:-1;inset:0;overflow:hidden}.entry-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,color-mix(in srgb,var(--instrument) 36%,transparent),transparent 65%)}.entry-cover__image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:left center;opacity:0}.entry-cover__image--active{opacity:1}.entry-cover__choices{position:absolute;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));display:flex;gap:8px}.game-entry h1{color:var(--instrument);font-size:clamp(32px,3vw,40px);font-weight:850;letter-spacing:-.03em;line-height:1.05;margin:var(--space) 0 calc(var(--space) * 2)}.game-entry p{line-height:1.6}.game-entry :focus-visible:not(.ui-button){outline:3px solid var(--ink);outline-offset:4px}.entry-world{position:fixed;inset:0}@media(max-width:700px){.game-entry{justify-items:center;padding:24px 16px 88px}.entry-cover__choices{right:16px;bottom:16px}}.game-entry__card>.ui-button{margin:var(--space) 0 calc(var(--space) * 2)}.game-entry #entry-title{width:min(100%,340px);margin:0}@media(max-height:700px){.game-entry{padding-block:16px}.game-entry #entry-title{width:min(100%,260px)}}@media(max-height:620px){.game-entry #entry-title{width:min(100%,220px)}}:root{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#173348;background:#168dab;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #173348;--muted: #526b76;--paper: #fffaf0;--navy: #123f55;--gold: #ffe39a;--inset: clamp(12px, 2vw, 24px);--radius: 12px;--space: 12px;--panel-shadow: 0 8px 24px #123f5530}*{box-sizing:border-box}html,body,#root{width:100%;min-width:320px;height:100%;margin:0;overflow:hidden}button,select,input,kbd{font:inherit}button,summary,select,input{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #e79832;outline-offset:3px}button{transition:background .12s ease,transform .12s ease}button:active:not(:disabled){transform:translateY(1px)}button:disabled{background:#dbe3e3;color:#506772;box-shadow:none;cursor:not-allowed}kbd{display:inline-grid;min-width:22px;height:24px;padding-inline:5px;place-items:center;border:1px solid #ffffff60;border-radius:4px;color:#fff;background:#ffffff10;font-size:.8125em}.scene-fallback{position:absolute;inset:0;z-index:30;display:grid;place-items:center;padding:24px;color:#fff;background:var(--navy);text-align:center}.scene-fallback>div{max-width:420px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}.app-shell,.game-frame{width:100%;height:100%}.game-frame{position:relative;overflow:hidden;background:#168dab;font-size:16px}.game-frame--large{font-size:18px}.brand,.mission-card,.toast,.chart,.helm,.voyage-tools,.storage-warning,.touch-notice{position:absolute;z-index:10}.brand{top:max(var(--inset),env(safe-area-inset-top));left:max(var(--inset),env(safe-area-inset-left));color:var(--paper);text-shadow:0 2px 12px #123f5560;pointer-events:none}.brand h1{margin:0;font-weight:760;line-height:1.1}.voyage-tools{top:max(var(--inset),env(safe-area-inset-top));right:max(var(--inset),env(safe-area-inset-right));display:flex;align-items:center;color:#fff}.voyage-purse strong{font-variant-numeric:tabular-nums}.mission-card{right:max(var(--inset),env(safe-area-inset-right));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.mission-card__topline,.mission-card__footer{display:flex;align-items:center;justify-content:space-between;gap:var(--space)}.status{font-weight:700}.status:before{content:"";display:inline-block;background:currentColor;margin-right:6px}.timer{font-weight:750;font-variant-numeric:tabular-nums}.mission-card h2{font-weight:750;line-height:1.2;letter-spacing:-.025em}.manifest-details{color:var(--muted)}.manifest-details p{margin:6px 0}.voyage-manifest>summary{padding-block:8px;font-size:.8125em;font-weight:600;color:#236480}.mission-card__footer{border-top:1px solid #17334820;flex-wrap:wrap}.mission-card__footer span{color:var(--muted)}.mission-card__footer strong{white-space:nowrap}.dock-hint,.delivery-result{margin:10px 0 0;line-height:1.45;color:var(--muted)}.contract-choices{font-size:.8125em}.contract-choices>summary{font-weight:600;color:#236480}.contract-choices__list{display:grid;gap:8px;margin-top:4px}.contract-choices__list button{display:grid;gap:4px;text-align:left;padding:10px;color:var(--ink);border:1px solid #17334840;border-radius:8px;background:transparent}.contract-choices__list button[aria-pressed=true]{border-color:#176586;background:#e5eff0;box-shadow:inset 3px 0 #176586}.contract-choices__list button:hover{background:#e5eff0}.contract-choices__list small{font-size:1em;color:var(--muted)}.toast{left:max(var(--inset),env(safe-area-inset-left));width:max-content;color:#fff;line-height:1.45;pointer-events:none}.toast--warning{color:var(--brass)}.chart{left:max(var(--inset),env(safe-area-inset-left));bottom:max(var(--inset),env(safe-area-inset-bottom));color:var(--ink)}.chart__heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.chart__sea{margin-top:10px;padding:8px;overflow:hidden;border:1px solid var(--instrument-edge);border-radius:10px;background:#0d3542}.chart__island-label{fill:#e7dbc1;font-weight:500}.chart .chart-map{display:block;width:100%;overflow:visible}.chart__land{fill:#719b8a;stroke:#b6cdc0;stroke-width:.25}.chart__route{stroke:var(--brass);stroke-width:1.5;stroke-dasharray:4 4}.chart__target{fill:var(--brass);stroke:var(--instrument);stroke-width:.6}.chart__port{fill:#b6e0e5}.chart__boat{fill:#fff;stroke:var(--instrument);stroke-width:.18}.chart__cabin{fill:#176586;stroke:none}.chart__current{fill:none;stroke:#86cdd2;stroke-width:.28;stroke-linecap:round}.chart text{fill:#fff;font-weight:600;paint-order:stroke;stroke:var(--instrument);stroke-width:1.4;stroke-linejoin:round}.chart__legend{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;color:var(--muted);margin-top:8px}.chart p{margin-bottom:0;color:var(--muted);line-height:1.4}.chart p strong{color:var(--ink);font-weight:700}.helm{right:max(var(--inset),env(safe-area-inset-right));bottom:max(var(--inset),env(safe-area-inset-bottom));display:flex;align-items:center;color:#fff}.voyage-guidance{display:grid;gap:4px;flex:1;min-width:0}.voyage-guidance span{line-height:1.45;color:#cfdfdf}.voyage-guidance--ready strong{color:#b7efcc}.voyage-guidance--warning strong{color:var(--brass)}.hud-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.game-frame .helm:not(:has(.voyage-guidance)){width:auto}.voyage-guidance:has(.voyage-guidance__icon){grid-template-columns:24px minmax(0,1fr);column-gap:10px}.voyage-guidance__icon{grid-column:1;grid-row:1 / span 2;align-self:center;color:var(--sea-glass)}.voyage-guidance--warning .voyage-guidance__icon{color:var(--brass)}.voyage-guidance:has(.voyage-guidance__icon)>strong,.voyage-guidance:has(.voyage-guidance__icon)>span{grid-column:2}.storage-warning{left:var(--inset);max-width:290px;padding:8px;border-radius:6px;color:#582916;background:#ffdf9e;font-size:.8125em}.touch-notice{display:none}@media(pointer:coarse){.touch-notice{display:block;left:var(--inset);bottom:240px;margin:0;font-size:.75em;padding:6px 8px;color:#fff;background:var(--instrument);border-radius:6px}}:root{--instrument: #103d4b;--instrument-edge: #50747b;--brass: #efc778;--brass-shadow: #9e7842;--manifest: #fff4da;--sea-glass: #a8d8cb;--hud-gap: 16px;--radius: 8px;--panel-shadow: 0 6px 0 #062c3a30, 0 12px 28px #062c3a26}.brand{display:grid;grid-template-columns:38px auto;column-gap:10px;align-items:center}.brand__mark{grid-row:span 2;width:38px;height:44px;color:var(--brass)}.brand h1{font-size:1.125em;letter-spacing:-.025em}.brand>p{margin:3px 0 0;font-size:.6875em}.voyage-tools{gap:8px}.voyage-purse{display:flex;color:#fff;align-items:center;gap:10px;padding:7px 14px 7px 8px;text-align:left;background:var(--instrument);border:1px solid var(--instrument-edge);border-radius:28px 8px 8px 28px;box-shadow:0 3px #062c3a40}.voyage-purse>div{display:grid;gap:1px}.voyage-purse>div>span{color:#d0e5e1;font-size:.625em}.voyage-purse strong{color:var(--brass);font-size:.9375em}.voyage-purse__coin{display:grid;place-items:center;width:30px;height:30px;border:3px double var(--brass-shadow);border-radius:50%;color:#583d15;background:var(--brass);font-size:1em;font-weight:800}.mission-card{top:88px;width:310px;max-height:calc(100% - 228px);padding:18px;background:var(--manifest);border:1px solid #efdbad;border-radius:4px 4px 12px;box-shadow:var(--panel-shadow)}.mission-card__topline{align-items:flex-start;gap:8px}.status{color:#335e65;font-size:.75em;padding-top:4px}.status:before{border-radius:1px;transform:rotate(45deg);width:6px;height:6px}.status--late{color:#a13d25}.status--complete{color:#28633c}.voyage-clock{display:grid;text-align:right;gap:1px;flex-shrink:0}.voyage-clock>span{font-size:.5625em;color:var(--muted)}.timer{font-size:1.5em;line-height:1;letter-spacing:-.04em}.voyage-clock--late{color:#a13d25}.mission-card h2{font-size:1.25em;margin:12px 0}.manifest-route{display:grid;grid-template-columns:1fr;margin-block:14px;padding-block:10px;border-block:1px solid #17334826}.manifest-route__bearing{width:78px;text-align:center;color:var(--brass-shadow);font-size:1em;line-height:1}.island-port{display:flex;align-items:center;min-width:0;gap:12px}.island-port__map{width:78px;height:78px;flex:0 0 auto;border-radius:50%;background:#dbe9df;border:1px solid #527e7826}.island-port__coast{fill:#548a79;stroke:#2d6257;stroke-width:1;vector-effect:non-scaling-stroke}.island-port__halo{fill:#f4d590;opacity:.65}.island-port__pin{fill:#ffedac;stroke:#694c1a;stroke-width:1.25;vector-effect:non-scaling-stroke}.island-port__copy{display:grid;gap:3px;min-width:0}.island-port__copy>span{font-size:.625em;color:var(--muted)}.island-port__copy>strong{font-size:1.0625em;line-height:1.1}.island-port__copy>small{font-size:.75em;color:#335e65}.manifest-details{margin-block:10px;font-size:.75em;line-height:1.45}.contract-choices{margin-bottom:10px}.contract-choices>summary{padding-block:8px}.mission-card__footer{padding-top:10px}.mission-card__footer span{font-size:.6875em}.mission-card__footer strong{font-size:.9375em}.dock-hint,.delivery-result{font-size:.6875em}.mission-card--sailing{width:280px;background:var(--instrument);border-color:var(--instrument-edge);color:#fff5df}.mission-card--sailing .status,.mission-card--sailing .voyage-clock>span,.mission-card--sailing .island-port__copy>span,.mission-card--sailing .island-port__copy>small,.mission-card--sailing .manifest-details,.mission-card--sailing .dock-hint,.mission-card--sailing .mission-card__footer span{color:#c1dad5}.mission-card--sailing .status--late,.mission-card--sailing .voyage-clock--late{color:#ffbd99}.mission-card--sailing>.island-port{margin-block:16px 12px}.mission-card--sailing .island-port__map{background:#244f59;border-color:#70988d}.mission-card--sailing .island-port__coast{fill:var(--sea-glass);stroke:#d4e6c9}.mission-card--sailing h2.cargo-title{font-size:.8125em;font-weight:600;padding-top:10px;border-top:1px solid #ffffff26;margin:0;display:grid;gap:4px}.cargo-title>span{color:#c1dad5;font-size:.846em;font-weight:400}.mission-card--sailing .voyage-manifest>summary{color:var(--brass);font-size:.6875em;margin-top:6px}.mission-card--sailing .mission-card__footer{border-top:1px solid #ffffff26}.mission-card--sailing .mission-card__footer strong{color:var(--brass)}.delivery-stamp{margin-block:14px;padding:10px;border:2px solid #47815b;color:#28633c;text-align:center;font-weight:800;transform:rotate(-2deg);animation:delivery-stamp .3s ease-out}.voyage-purse__earned{animation:payment-received .6s ease-out}.toast{top:86px;max-width:min(330px,calc(100% - 370px));padding:8px 12px;border:0;border-left:3px solid var(--brass);border-radius:0 6px 6px 0;background:#103d4be8;font-size:.75em}.chart{width:280px;padding:12px;background:var(--manifest);border:1px solid #e1cfa7;border-radius:14px;box-shadow:var(--panel-shadow)}.chart__heading{font-size:1em}.chart .chart-map{height:110px}.chart__legend{font-size:.875em}.chart p{margin-top:8px;font-size:.875em}.helm{width:min(430px,calc(100% - 310px));min-height:100px;gap:14px;padding:0;border:0;border-radius:0;background:transparent}.helm-instrument{position:relative;width:100px;height:100px;flex:0 0 auto}.helm-instrument svg{width:100%;height:100%;filter:drop-shadow(0 4px 3px #062c3a60)}.helm-instrument__rim{fill:var(--instrument);stroke:var(--brass-shadow);stroke-width:2}.helm-instrument__scale{fill:none;stroke:var(--instrument-edge);stroke-width:2}.helm-instrument__ticks{fill:none;stroke:var(--brass);stroke-width:2}.helm-instrument>div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding-top:10px}.helm-instrument strong{color:#fff5df;font-size:1.125em;font-variant-numeric:tabular-nums}.helm-instrument span{font-size:.5625em;color:#c1dad5}.helm .voyage-guidance{padding:12px 14px;background:var(--instrument);border:1px solid var(--instrument-edge);border-radius:6px;box-shadow:0 4px #062c3a30}.helm .voyage-guidance strong{font-size:.8125em}.helm .voyage-guidance span{font-size:.6875em}.storage-warning{top:150px}@keyframes delivery-stamp{0%{opacity:0;transform:scale(1.15) rotate(-6deg)}to{opacity:1;transform:scale(1) rotate(-2deg)}}@keyframes payment-received{0%{color:#fff}to{color:var(--brass)}}@media(max-height:700px)and (min-width:701px){.mission-card{top:80px;max-height:calc(100% - 220px);padding:14px}.manifest-route{grid-template-columns:1fr 1fr;gap:10px;margin-block:10px}.manifest-route .island-port{flex-direction:column;align-items:flex-start;gap:5px}.manifest-route__bearing{display:none}.manifest-route .island-port__map{width:54px;height:54px}.manifest-route .island-port__copy>strong{font-size:.875em}.chart .chart-map{height:85px}.toast{top:80px}}@media(max-width:700px){.brand{grid-template-columns:28px auto;gap:6px}.brand__mark{width:28px;height:34px}.brand h1{font-size:.875em}.brand>p{font-size:.625em}.mission-card,.mission-card--sailing{top:76px;bottom:auto;width:min(310px,calc(100% - var(--inset) * 2));max-height:calc(100% - 350px);padding:12px}.chart{top:auto;bottom:max(var(--inset),env(safe-area-inset-bottom));width:min(230px,calc(100% - 126px));padding:8px}.chart .chart-map{height:85px}.chart__legend{display:none}.chart__heading button>span{display:none}.chart__sea{margin-top:6px;padding:4px}.helm{width:92px;min-height:92px}.helm-instrument{width:92px;height:92px}.helm .voyage-guidance{display:none}.toast{top:auto;bottom:208px;max-width:calc(100% - var(--inset) * 2)}.manifest-route{grid-template-columns:1fr 1fr;gap:8px;margin-block:8px}.manifest-route .island-port{flex-direction:column;align-items:flex-start;gap:4px}.manifest-route .island-port__map{width:46px;height:46px}.manifest-route .island-port__copy>strong{font-size:.875em}.manifest-route__bearing{display:none}.touch-notice{top:auto;bottom:185px;font-size:.625em}.storage-warning{top:62px;z-index:15}}@media(max-width:480px){.voyage-tools{display:grid;grid-template-columns:repeat(2,44px)}.mission-card,.mission-card--sailing{top:124px;max-height:calc(100% - 398px)}.storage-warning{top:112px}}@media(max-width:700px)and (max-height:600px)and (orientation:landscape){.mission-card,.mission-card--sailing{top:66px;max-height:calc(100% - 90px);width:46%}.chart{top:66px;bottom:auto;width:42%}.chart .chart-map{height:60px}.helm{left:var(--inset);right:auto;bottom:var(--inset)}.toast{display:none}}@media(prefers-reduced-motion:reduce){.delivery-stamp,.voyage-purse__earned{animation:none}}
