.harbor-host{color:#f8fbff}.harbor-scene{width:100%;min-width:0;display:flex;align-items:center;justify-content:center}.harbor-stage{position:relative;width:100%;min-width:0;isolation:isolate;overflow:hidden;border-radius:12px;background:#0e80b7}.harbor-canvas{display:block;width:100%;height:auto;touch-action:none;image-rendering:auto;outline:none}.harbor-canvas:focus-visible{outline:3px solid #ffdc48;outline-offset:-3px}.harbor-overlay{position:absolute;inset:0;pointer-events:none;font:700 14px/1.4 system-ui,sans-serif}.harbor-overlay button{pointer-events:auto;cursor:pointer;font:800 14px/1.3 system-ui,sans-serif;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.harbor-host button:focus-visible,.harbor-dialog a:focus-visible{outline:3px solid #ffdc48;outline-offset:3px}.harbor-overlay button:disabled{cursor:default}.harbor-status{position:absolute;left:14px;right:14px;top:12px;display:grid;grid-template-columns:1fr auto;gap:4px 14px;padding:9px 12px;border:2px solid #ffffffb8;border-radius:10px;background:#102c4deb;color:#fff;box-shadow:0 3px 0 #102c4d38;max-width:680px;margin:0 auto;min-width:0}.harbor-message{font-size:14px;font-weight:650;line-height:1.45;margin:0;min-width:0}.harbor-bag{white-space:nowrap;align-self:start;color:#ffdf55;font-size:14px}.harbor-bag.is-full{color:#ffaf6c}.harbor-goal-bar{grid-column:1/-1;display:flex;align-items:center;gap:12px;font-size:12px;font-weight:600;color:#9eeeff}.harbor-goal-progress{height:5px;width:64px;border-radius:2px;overflow:hidden;background:#ffffff22;flex-shrink:0;margin-left:auto}.harbor-goal-progress i{display:block;height:100%;background:#69f0b4;transition:width .2s}.harbor-stick-zone{position:absolute;left:20px;bottom:18px;display:flex;flex-direction:column;align-items:center;gap:3px}.harbor-joystick{position:relative;display:block;border:2px solid #ffffffc4;border-radius:50%;width:112px;height:112px;min-width:112px;min-height:112px;padding:0;background:#164a65a6;box-shadow:0 5px 0 #123a5540}.harbor-stick-base{position:absolute;inset:13px;border:1px solid #ffffff4d;border-radius:50%}.harbor-stick-base::before,.harbor-stick-base::after{content:'';position:absolute;inset:0;margin:auto;background:#ffffff3a}.harbor-stick-base::before{width:1px;height:100%}.harbor-stick-base::after{height:1px;width:100%}.harbor-stick-knob{position:absolute;left:calc(50% - 24px);top:calc(50% - 24px);width:48px;height:48px;background:#f7f6e3;border:3px solid #fff;border-radius:50%;box-shadow:0 5px 0 #5ea7ba;will-change:transform}.harbor-control-caption{color:#fff;font-size:12px;text-shadow:0 2px 0 #0b4c68}.harbor-action-zone{position:absolute;right:20px;bottom:21px;display:grid;grid-template-columns:64px 92px;align-items:end;justify-items:center;gap:8px}.harbor-work{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;width:92px;height:92px;border:3px solid #fff3a6;border-radius:50%;padding:8px;background:#ffda45;color:#163447;box-shadow:0 6px 0 #b67b25;overflow:hidden;isolation:isolate}.harbor-work:disabled{opacity:.55;background:#d5e6df;box-shadow:0 5px 0 #486f76}.harbor-work-ring{position:absolute;bottom:0;left:0;width:100%;height:calc(var(--charge,0) * 100%);background:#ffad38;z-index:-1}.harbor-work.is-perfect .harbor-work-ring{background:#69f0b4}.harbor-work.is-perfect{border-color:#c1ffe1;box-shadow:0 5px 0 #247c67,0 0 0 5px #69f0b453}.harbor-work.is-held{transform:translateY(3px);box-shadow:0 3px 0 #b67b25}.harbor-work.is-building{border-radius:24px}.harbor-work-icon{font-size:31px;line-height:1;font-weight:900}.harbor-work-label{font-size:12px;white-space:nowrap}.harbor-dash{border:2px solid #b5f4ff;border-radius:18px;width:64px;height:50px;padding:3px;background:#1f5268e6;color:#fff;box-shadow:0 4px 0 #173b50}.harbor-dash:disabled{opacity:.6}.harbor-action-help{grid-column:1/-1;color:#fff;text-shadow:0 2px 0 #0b4c68;font-size:12px;white-space:nowrap}.harbor-tools{position:absolute;right:16px;top:99px;display:flex;gap:7px}.harbor-small-button{min-width:48px;min-height:44px;padding:7px 10px;border:2px solid #c9f4ff;border-radius:9px;background:#17445de8;color:#fff;box-shadow:0 3px 0 #11344d}.harbor-keyboard-note{position:absolute;bottom:13px;left:50%;transform:translateX(-50%);color:#f4fcff;text-shadow:0 2px 0 #0b4c68;font-size:12px;white-space:nowrap}.harbor-note{font-size:16px;line-height:1.7}.harbor-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:24px;border:2px solid #4de0e7;border-radius:16px;background:#12394c;color:#f8fbff;box-shadow:0 12px 0 #0c263a;overflow:auto;overscroll-behavior:contain;font:16px/1.6 system-ui,sans-serif}.harbor-dialog::backdrop{background:#082938b8}.harbor-dialog h2{font-size:24px;line-height:1.4;margin:0 0 12px}.harbor-dialog h3{font-size:17px;color:#ffdf55;margin:20px 0 6px}.harbor-dialog p{margin:8px 0}.harbor-eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:#63e8e2}.harbor-intro-focus{font-size:14px;color:#b6e5ed}.harbor-intro-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.harbor-intro-step{display:flex;flex-direction:column;gap:4px;border:1px solid #388185;border-radius:9px;padding:12px 10px;background:#184c5e}.harbor-intro-step b{font-size:11px;color:#6be9df}.harbor-intro-step strong{font-size:20px;color:#ffdf55}.harbor-intro-step span{font-size:12px;color:#d0f1f3}.harbor-goal-list{list-style:none;margin:12px 0;padding:0}.harbor-goal-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#1b5061;border-radius:7px;padding:9px 12px;margin:6px 0;font-size:14px}.harbor-goal-list b{white-space:nowrap;color:#ffdf55;font-variant-numeric:tabular-nums}.harbor-goal-list .is-complete{border-left:4px solid #69f0b4}.harbor-host .game-button{min-width:44px;min-height:44px;font-size:14px;touch-action:manipulation}.harbor-start{width:100%;min-height:49px!important;margin:14px 0 6px;font-size:16px!important}.harbor-back{display:flex;align-items:center;justify-content:center;min-height:44px;color:#b6e9f3;font-size:14px;text-decoration:underline}.harbor-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;position:sticky;top:-24px;background:#12394c;padding:8px 0;z-index:2}.harbor-dialog-heading h2{margin:0}.harbor-close{min-width:64px}.harbor-paused-note{font-size:13px;color:#69f0b4}.harbor-panel-stock{font-size:15px;color:#ffdf55}.harbor-rules{font-size:14px;color:#cce9ed;line-height:1.9}.harbor-host [hidden]{display:none!important}html body #game-host .harbor-start{background:#ffda45!important;color:#163447!important;border-color:#fff1a2!important;box-shadow:0 4px #b67b25!important}
@media(max-width:680px){.harbor-status{left:8px;right:8px;top:8px;padding:8px 9px;gap:3px 8px}.harbor-message{font-size:12px}.harbor-bag{font-size:12px}.harbor-goal-bar{font-size:11px;gap:5px}.harbor-goal-progress{width:40px}.harbor-stick-zone{left:12px;bottom:13px}.harbor-joystick{width:100px;height:100px;min-width:100px;min-height:100px}.harbor-stick-knob{width:42px;height:42px;left:calc(50% - 21px);top:calc(50% - 21px)}.harbor-action-zone{right:12px;bottom:16px;grid-template-columns:52px 82px;gap:6px}.harbor-work{width:82px;height:82px}.harbor-dash{width:52px;height:48px;font-size:11px!important}.harbor-work-icon{font-size:27px}.harbor-work-label{font-size:11px}.harbor-action-help{font-size:10px}.harbor-keyboard-note{display:none}.harbor-tools{top:98px;right:10px;gap:6px}.harbor-small-button{font-size:12px!important;padding:7px 8px}.harbor-dialog{padding:17px;width:calc(100vw - 20px)}.harbor-dialog h2{font-size:21px}.harbor-dialog-heading{top:-17px}.harbor-intro-steps{gap:6px;margin:12px 0}.harbor-intro-step{padding:9px 7px}.harbor-intro-step strong{font-size:18px}.harbor-intro-step span{font-size:11px}.harbor-goal-list li{padding:8px 10px;font-size:13px}}
@media(max-height:480px) and (min-width:681px){.harbor-status{max-width:510px;top:8px;padding:6px 9px}.harbor-message,.harbor-bag{font-size:12px}.harbor-goal-bar{font-size:11px}.harbor-tools{top:12px;right:12px;flex-direction:column}.harbor-stick-zone{bottom:8px;left:12px}.harbor-joystick{width:86px;height:86px;min-width:86px;min-height:86px}.harbor-stick-knob{width:38px;height:38px;left:calc(50% - 19px);top:calc(50% - 19px)}.harbor-control-caption{display:none}.harbor-action-zone{bottom:9px;right:12px;grid-template-columns:60px 78px}.harbor-work{width:78px;height:78px}.harbor-work-label{font-size:11px}.harbor-work-icon{font-size:26px}.harbor-action-help{font-size:10px}.harbor-keyboard-note{bottom:8px;font-size:10px}.harbor-dialog{padding:14px 20px;max-height:calc(100dvh - 14px);width:min(740px,calc(100vw - 30px))}.harbor-dialog h2{font-size:21px;margin-bottom:5px}.harbor-intro-steps{margin:8px 0}.harbor-intro-step{display:grid;grid-template-columns:auto 1fr;align-items:center;padding:6px 10px;gap:2px 8px}.harbor-intro-step strong{font-size:18px}.harbor-intro-step span{grid-column:1/-1}.harbor-intro .harbor-goal-list{display:flex;gap:6px;margin:6px 0;flex-wrap:wrap}.harbor-intro .harbor-goal-list li{flex:1;margin:0;font-size:12px;padding:5px 8px}.harbor-start{margin:6px 0;min-height:44px!important}.harbor-back{min-height:44px}.harbor-dialog-heading{top:-14px}}
html body #game-host .harbor-overlay .harbor-joystick,html body #game-host .harbor-overlay .harbor-work{border-radius:50%!important}html body #game-host .harbor-overlay .harbor-work.is-building{border-radius:24px!important}html body #game-host .harbor-overlay .harbor-dash{border-radius:18px!important;font-size:12px!important;white-space:nowrap}
@media(max-width:680px){html body #game-host .harbor-overlay .harbor-dash{font-size:11px!important;width:58px}.harbor-overlay .harbor-action-zone{grid-template-columns:58px 82px}}

/* V18: the control never moves under a held finger. The small timing track
   previews the successful release window before the first attempt. */
.harbor-action-zone{grid-template-rows:8px auto auto;gap:8px}
.harbor-timing{position:relative;grid-column:1/-1;width:100%;height:8px;align-self:center;background:#183d56;border:2px solid #ffffffd9;border-radius:6px;box-shadow:0 2px 0 #10384c55;box-sizing:border-box}
.harbor-timing-green{position:absolute;left:28%;width:32%;top:-1px;bottom:-1px;background:#58efad;border-radius:2px}
.harbor-timing-cursor{position:absolute;top:-6px;bottom:-6px;width:4px;transform:translateX(-50%);border-radius:3px;background:#fff7d5;box-shadow:0 0 0 1px #163f50}
.harbor-timing.is-perfect{box-shadow:0 0 0 3px #58efad48}
.harbor-action-zone .harbor-dash{grid-column:1;grid-row:2}
.harbor-action-zone .harbor-work{grid-column:2;grid-row:2}
.harbor-action-help{grid-row:3;font-size:12px;line-height:1.4;text-shadow:0 1px 3px #10354b,0 1px 3px #10354b}
.harbor-work-icon{font-size:31px;font-weight:850;line-height:1.05}
.harbor-work-label{font-size:14px;font-weight:850;line-height:1.3}
.harbor-work.is-held .harbor-work-label{color:#153e42}
.harbor-work.is-perfect{background:#b9ffd9}
.harbor-control-caption{font-size:12px;line-height:1.5}
.harbor-asset-notice{font-size:14px;color:#bfedf4;text-align:center}
.harbor-asset-notice.is-error{color:#ffdc87}
.harbor-start:disabled{opacity:.65;cursor:wait}
@media(max-width:680px){
 .harbor-message,.harbor-bag{font-size:14px}
 .harbor-goal-bar{font-size:12px}
 .harbor-tools{top:108px}
 .harbor-overlay .harbor-action-zone{grid-template-columns:60px 92px;gap:7px}
 .harbor-work{width:92px;height:92px}
 .harbor-work-icon{font-size:30px}
 .harbor-work-label{font-size:14px}
 .harbor-action-help{font-size:12px}
 html body #game-host .harbor-overlay .harbor-dash{font-size:12px!important;width:60px}
 .harbor-small-button{font-size:14px!important}
 .harbor-intro-step span{font-size:12px}
}
@media(max-height:480px) and (min-width:681px){
 .harbor-action-zone{grid-template-columns:60px 86px;gap:6px}
 .harbor-work{width:86px;height:86px}
 .harbor-work-label{font-size:14px}
 .harbor-action-help{font-size:12px}
}
