
        @import url("https://fonts.googleapis.com/css2?family=Electrolize&family=Roboto:wght@300;400;700;900&display=swap");
        :root {
          --hud-w: 676px;
          --hud-h: 42px;
          --btn-h: 30px;
          --hud-radius: 12px;
          --btn-radius: 10px;
          --hud-bg: rgba(12,16,20,.38);
          --hud-tint: rgba(77,172,172,.18);
          --hud-border: rgba(255,255,255,.14);
          --hud-text: rgba(255,255,255,.92);
        }
        
        .hud-wrap, .hud-wrap *, .hud-wrap *::before, .hud-wrap *::after, .hud-page-backdrop, .hud-page-backdrop *, .hud-page-backdrop *::before, .hud-page-backdrop *::after {
          box-sizing:border-box;
        }
        
        /* ========================= HUD BAR ========================= */
        .hud-wrap {
          position:absolute;
          left:10px;
          right:10px;
          bottom:10px;
          width:auto;
          max-width:none;
          z-index:9999;
          pointer-events:none;
        }
        
        .hud-bar--tight {
          position:relative;
          height:var(--hud-h);
          display:flex;
          align-items:center;
          justify-content:space-between;
          gap:12px;
          padding:0;
          overflow:visible;
          background:none;
          border:0;
          box-shadow:none;
          backdrop-filter:none;
          -webkit-backdrop-filter:none;
          pointer-events:none;
        }
        
        .hud-bar--tight::before, .hud-bar--tight::after {
          content:none;
        }
        
        /* Two separate HUD panels, with the map visible and clickable between them. */
        .hud-group {
          position:relative;
          height:var(--hud-h);
          display:flex;
          align-items:center;
          gap:6px;
          flex:0 0 auto;
          padding:5px 6px;
          border-radius:var(--hud-radius);
          overflow:hidden;
          background:var(--hud-bg);
          border:1px solid var(--hud-border);
          box-shadow: 0 10px 22px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.35) inset;
          backdrop-filter:blur(12px) saturate(135%);
          -webkit-backdrop-filter:blur(12px) saturate(135%);
          pointer-events:auto;
        }
        
        .hud-group::before {
          content:"";
          position:absolute;
          inset:0;
          pointer-events:none;
          background: radial-gradient(120% 160% at 50% 0%, var(--hud-tint), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0));
          opacity:.95;
        }
        
        .hud-group::after {
          content:"";
          position:absolute;
          inset:0;
          pointer-events:none;
          background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 4px);
          opacity:.12;
          mix-blend-mode:overlay;
        }
        
        .hud-group > button {
          position:relative;
          z-index:1;
        }
        
        .hud-left {
          min-width:0;
        }
        
        .hud-right {
          min-width:0;
          justify-content:flex-end;
        }
        
        .hud-btn, .hud-chip {
          height:var(--btn-h);
          display:inline-flex;
          align-items:center;
          gap:6px;
          padding:0 8px;
          border-radius:var(--btn-radius);
          border:1px solid rgba(255,255,255,.12);
          background:rgba(255,255,255,.06);
          color:var(--hud-text);
          font-family:"Electrolize", system-ui, sans-serif;
          font-size:11.5px;
          letter-spacing:.15px;
          white-space:nowrap;
          cursor:pointer;
          user-select:none;
          box-shadow:0 0 0 1px rgba(0,0,0,.22) inset;
          transition: background .15s ease, border-color .15s ease, transform .10s ease, box-shadow .15s ease, filter .15s ease, opacity .15s ease;
        }
        
        .hud-btn:hover, .hud-chip:hover {
          background:rgba(255,255,255,.08);
          border-color:rgba(21,228,255,.22);
          box-shadow: 0 0 0 1px rgba(21,228,255,.10) inset, 0 0 12px rgba(21,228,255,.08);
          transform:translateY(-1px);
          filter:brightness(1.04);
        }
        
        .hud-chip.is-on, .hud-btn.is-active {
          background:rgba(21,228,255,.10);
          border-color:rgba(21,228,255,.24);
          box-shadow: 0 0 0 1px rgba(21,228,255,.10) inset, 0 0 12px rgba(21,228,255,.10);
          opacity:1;
        }
        
        .hud-btn.is-off:not(.is-active), .hud-chip.is-off:not(.is-on) {
          opacity:.70;
        }
        
        .hud-ico {
          width:18px;
          height:18px;
          flex:0 0 18px;
          display:inline-grid;
          place-items:center;
          color:rgba(255,255,255,.92);
          filter:drop-shadow(0 0 4px rgba(21,228,255,.10));
        }
        
        .hud-ico svg {
          width:18px;
          height:18px;
          display:block;
          stroke:currentColor;
          fill:none;
          stroke-width:2.2;
          stroke-linecap:round;
          stroke-linejoin:round;
        }
        
        .hud-label {
          line-height:1;
          text-transform:uppercase;
        }
        
        .hud-badge {
          margin-left:0;
          min-width:20px;
          height:17px;
          padding:0 5px;
          border-radius:999px;
          display:inline-grid;
          place-items:center;
          font-family:"Roboto", system-ui, sans-serif;
          font-weight:800;
          font-size:11px;
          color:rgba(255,255,255,.95);
          background:rgba(255,255,255,.06);
          border:1px solid rgba(255,255,255,.12);
          box-shadow:0 0 0 1px rgba(0,0,0,.22) inset;
        }
        
        .hud-btn--icon {
          padding:0 9px;
          width:40px;
          justify-content:center;
          gap:0;
        }
        
        .hud-nav-chip {
          min-width:0;
          padding-left:8px;
          padding-right:8px;
          gap:6px;
        }
        
        /* ========================= CREDITS / INVENTORY OVERLAY ========================= */
        .hud-page-backdrop {
          position:absolute;
          left:10px;
          right:10px;
          top:10px;
          bottom:72px;
          z-index:9998;
          display:none;
          align-items:center;
          justify-content:center;
          opacity:0;
          pointer-events:none;
          transition:opacity .16s ease;
        }
        
        .hud-page-backdrop.is-open {
          display:flex;
          opacity:1;
          pointer-events:auto;
        }
        
        .hud-page-panel {
          width:100%;
          height:100%;
          min-height:0;
          border-radius:18px;
          overflow:hidden;
          border:1px solid rgba(255,255,255,.14);
          background: radial-gradient(120% 160% at 50% 0%, rgba(77,172,172,.14), transparent 60%), linear-gradient(180deg, rgba(8,12,16,.56), rgba(8,12,16,.72));
          box-shadow: 0 18px 38px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.35) inset;
          backdrop-filter:blur(12px) saturate(135%);
          -webkit-backdrop-filter:blur(12px) saturate(135%);
        }
        
        .hud-page-panel iframe {
          width:100%;
          height:100%;
          border:0;
          display:block;
          background:transparent;
        }
        
        @media (max-width:520px) {
          .hud-left, .hud-right {
            min-width:auto;
          }
          .hud-label {
            display:none;
          }
        }
      :root { --stage-w:676px; --stage-h:384px; color-scheme:dark; }
* { box-sizing:border-box; }
html,body { margin:0; width:676px; height:384px; overflow:hidden; background:#081523; color:#f5f7fb; }
body { font-family:"Electrolize",system-ui,sans-serif; }
button { -webkit-tap-highlight-color:transparent; }
button:focus-visible { outline:2px solid #a2f6ce; outline-offset:3px; }
[hidden] { display:none !important; }
#stage { position:relative; width:676px; height:384px; overflow:hidden; isolation:isolate; background:#081523; }
#world { position:absolute; inset:0; z-index:1; width:676px; height:384px; background:url('../../assets/maps/graphics/Lantern-Harbor.png?v=20261016-5') 0 0/676px 384px no-repeat; transition:filter .2s; touch-action:manipulation; }
#world canvas { position:absolute; left:0; top:0; }
#world #iso_floor,#world #iso_floor2,#world #iso_m2t { opacity:0; pointer-events:none; }
#world #iso_item { z-index:5; pointer-events:none; }
#world #iso_mouse { z-index:4; opacity:0; cursor:pointer; touch-action:manipulation; }
#world #iso_info { pointer-events:none; }
#harborPickups { position:absolute; inset:0; z-index:8; pointer-events:none; }
.harbor-coin { position:absolute; width:26px; height:26px; transform:translate(-50%,-50%); background:none; border:0; padding:0; cursor:pointer; pointer-events:auto; }
.harbor-coin span { display:block; width:9px; height:10px; margin:8px; border:1px solid #fff0ac; border-radius:50%; background:radial-gradient(ellipse at 32% 25%,#fff6c7,#e9b744 60%,#ac721d); box-shadow:0 0 5px #f4ce6399; animation:coin-glint 3.4s ease-in-out infinite alternate; }
.harbor-coin:hover span { box-shadow:0 0 9px #ffdf94; }
.harbor-portal { position:absolute; z-index:10; width:44px; height:38px; padding:0; border:0; transform:translate(-50%,-50%); cursor:pointer; background:url('../../assets/arrow/arrow-right.png') center/contain no-repeat; filter:drop-shadow(0 0 4px #00ff7f70); }
.harbor-portal:hover,.harbor-portal[aria-busy="true"] { filter:drop-shadow(0 0 8px #00ff7f); }
.harbor-mist { position:absolute; inset:-40px; z-index:7; pointer-events:none; opacity:.24; background:radial-gradient(ellipse at 22% 30%,#cbdce329,transparent 44%),radial-gradient(ellipse at 76% 45%,#d4d2f324,transparent 40%); animation:harbor-mist-drift 58s ease-in-out infinite alternate; }
.harbor-mist--far { opacity:.13; transform:scaleX(-1); animation:harbor-mist-far 76s ease-in-out -21s infinite alternate; }
.harbor-fireflies { position:absolute; inset:0; z-index:9; pointer-events:none; opacity:.35; background:radial-gradient(circle at 25% 46%,#ffe59c 0 1px,transparent 1.6px),radial-gradient(circle at 47% 58%,#ffe5ac 0 .7px,transparent 1.5px),radial-gradient(circle at 68% 67%,#ffdc84 0 .8px,transparent 1.4px),radial-gradient(circle at 82% 37%,#ffe5ac 0 .6px,transparent 1.5px); animation:firefly-shimmer 7s ease-in-out infinite alternate; }
#levelStatus { position:absolute; top:12px; left:50%; transform:translateX(-50%); z-index:10001; max-width:460px; margin:0; padding:7px 12px; border:1px solid #ffffff26; border-radius:12px; background:#07101de6; color:#f5f2e8; font:12px/1.4 system-ui,sans-serif; text-align:center; pointer-events:none; }
.overlay-open #world { filter:blur(4px) brightness(.65); }
.hud-page-panel { position:relative; }
.hud-close { position:absolute; z-index:2; right:6px; top:6px; width:28px; height:28px; border:1px solid #ffffff4d; border-radius:9px; background:#111c2aeb; color:white; font:23px/1 system-ui; cursor:pointer; }
.hud-page-panel iframe { padding-top:5px; }
noscript { position:absolute; z-index:10002; margin:70px 30px; padding:15px; background:#081523; }
.scene-paused .harbor-mist,.scene-paused .harbor-fireflies,.scene-paused .harbor-coin span { animation-play-state:paused; }
@keyframes coin-glint { to { filter:brightness(1.17); } }
@keyframes harbor-mist-drift { from { transform:translate(-14px,-3px); } to { transform:translate(18px,4px); } }
@keyframes harbor-mist-far { from { transform:translate(18px,4px) scaleX(-1); } to { transform:translate(-20px,-3px) scaleX(-1); } }
@keyframes firefly-shimmer { from { opacity:.12; transform:translate(0,0); } to { opacity:.35; transform:translate(3px,-2px); } }
@media(prefers-reduced-motion:reduce) { .harbor-mist,.harbor-fireflies,.harbor-coin span { animation:none; } #world { transition:none; } }

/* Every marker uses the same green isometric arrow artwork as the station. */
#harborPortals { position:absolute; inset:0; z-index:10; pointer-events:none; }
.harbor-portal { pointer-events:auto; }
.harbor-portal--down-left { background-image:url('../../assets/arrow/arrow-down.png'); }
.harbor-portal--up-left { background-image:url('../../assets/arrow/arrow-up.png'); }
.harbor-portal:focus-visible { outline:2px solid #fff89e; outline-offset:3px; }


.harbor-portal--left { background-image:url('../../assets/arrow/arrow-left.png'); }

.harbor-building { position:absolute; z-index:6; object-fit:contain; pointer-events:none; user-select:none; }
.harbor-building-hit { position:absolute; z-index:12; padding:0; border:0; background:none; cursor:pointer; }
.harbor-building.is-open { filter:drop-shadow(0 0 3px rgba(255,211,123,.22)); }
.harbor-building-hit:focus-visible { background:rgba(255,248,158,.08); }



/* Warm light follows the lantern positions in the supplied background. */
.harbor-lanterns {position:absolute;inset:0;z-index:7;pointer-events:none;background:radial-gradient(ellipse 13px 17px at 442px 109px,#ffb94128,transparent),radial-gradient(ellipse 13px 17px at 493px 121px,#ffb94124,transparent),radial-gradient(ellipse 13px 17px at 586px 163px,#ffb94126,transparent),radial-gradient(ellipse 13px 17px at 652px 197px,#ffb94128,transparent),radial-gradient(ellipse 13px 17px at 505px 259px,#ffb94124,transparent);animation:harbor-lantern-glow 4.6s ease-in-out infinite alternate;}
@keyframes harbor-lantern-glow {to{opacity:.45;}}
.scene-paused .harbor-lanterns {animation-play-state:paused;}
@media(prefers-reduced-motion:reduce) {.harbor-lanterns {animation:none;}}
/* Repaint only the foreground sail/mast so MiniMe passes behind the boat. */
.harbor-sail {position:absolute;inset:0;z-index:6;pointer-events:none;background:url('../../assets/maps/graphics/Lantern-Harbor.png?v=20261016-5') 0 0/676px 384px no-repeat;clip-path:polygon(85.35% 47.8%,85.1% 49.3%,83.4% 51.3%,81.2% 55.8%,78.9% 64.5%,81.8% 62.8%,84.9% 61.5%,85.1% 72.5%,85.6% 73%,85.6% 63.2%,88.5% 65.3%,87.7% 58.3%,85.8% 51.9%,85.6% 47.8%);}

/* Return to the Guest Houses Area at the marked north-east corner. */
.harbor-portal--up {background-image:url('../../assets/arrow/arrow-up.png');width:46px;height:42px;}
