html, body { height: 100%; }

body{
  margin: 0;
background: #070c0e;
  color: rgba(255,255,255,0.86);
  overflow: hidden;
}

.viewport{
  width: 100vw;
  height: 100vh;
  display: block;
  background: #070c0e;
}

/* Fullscreen frame */
.frame{
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #070c0e;
}

/* STAGE = volle Fläche, aber mit 2 Layern:
   - Backdrop: cover + blur (füllt den Screen)
   - Foreground: contain (zeigt das Bild vollständig, ohne Crop)
*/
.stage{
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: block;


  /* Foreground (MAIN_UI) box is locked to the source image aspect ratio (1536×1024 = 3:2).
     This makes overlays/hotspots/characters "stick" to the room, independent of viewport size. */
  --fgAR: 1.5;
  --fgW: min(100vw, calc(100vh * var(--fgAR)));
  --fgH: calc(var(--fgW) / var(--fgAR));
  --fgX: calc((100vw - var(--fgW)) / 2);
  --fgY: calc((100vh - var(--fgH)) / 2);
}


/* Backdrop fill — V5.2
   Neutraler Außenraum in echtem Schwarz. Keine Karten-/Rauchbilder mehr. */
.stage::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:#000000;
  pointer-events:none;
}

/* Vertikale Übergangskaschierung V5.2
   Kein separates Overlay mehr: die Bildkante selbst wird weich ausgeblendet. */
.stage::after{
  content:none;
  display:none;
}

/* Foreground image: immer vollständig sichtbar */
/* Foreground image: locked to the FG box (no crop, stable coordinates) */
.bg{
  position: absolute;
  left: var(--fgX);
  top: var(--fgY);
  width: var(--fgW);
  height: var(--fgH);
  object-fit: fill;         /* box already matches source ratio */
  object-position: center;
  user-select: none;
  pointer-events: none;
  display: block;
  z-index: 1;               /* vor dem Backdrop */

  /* V5.2: Nur main_ui.jpg läuft an den beiden vertikalen Kanten weich aus.
     Die Geometrie des 3:2-Bildes bleibt vollständig unverändert.
     Hotspots, 1.WO und alle Overlays werden NICHT maskiert. */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.22) 1.0%,
    rgba(0,0,0,0.55) 2.4%,
    rgba(0,0,0,0.82) 4.2%,
    #000 5.0%,
    #000 95.0%,
    rgba(0,0,0,0.82) 95.8%,
    rgba(0,0,0,0.55) 97.6%,
    rgba(0,0,0,0.22) 99.0%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.22) 1.0%,
    rgba(0,0,0,0.55) 2.4%,
    rgba(0,0,0,0.82) 4.2%,
    #000 5.0%,
    #000 95.0%,
    rgba(0,0,0,0.82) 95.8%,
    rgba(0,0,0,0.55) 97.6%,
    rgba(0,0,0,0.22) 99.0%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}


/* Hotspots + Overlay liegen über dem Foreground.
   (In your current setup werden die exakten Insets per JS gesetzt – passt.)
*/
/* Hotspots + Overlay: locked to the same FG box as the room image */
.hotspots,
.overlay{
  position: absolute;
  left: var(--fgX);
  top: var(--fgY);
  width: var(--fgW);
  height: var(--fgH);
  z-index: 2;
}


/* Hotspots */
.hotspot{
  position: absolute;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
}
.hotspot:hover{
  outline: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}

/* HUD */
.hud{
  position: absolute;
  left: 18px;
  right: 18px;
  top: 16px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 14px;

  /* Header selbst unsichtbar – nur Kapseln der Inhalte bleiben */
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
  z-index: 20;
}

.brand{
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 13px;
}

.hudLeft{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hudCenter{
  display: flex;
  justify-content: center;
  align-items: center;
}

.hudRight{
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.lagebericht{
  max-width: 620px;
  text-align: right;
  font-size: 12px;
  line-height: 1.25;
  color: rgba(255,255,255,0.72);

  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.lagebericht .okx{
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.lagebericht .l1,
.lagebericht .l2{
  font-weight: 500;
}



.right{
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge{
  font-size: 12px;
  color: rgba(255,255,255,0.70);
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}

.btn{
  cursor: pointer;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.86);
  font-weight: 700;
}
.btn:hover{ background: rgba(255,255,255,0.11); }
.btn:disabled{ opacity: 0.6; cursor: default; }

/* Hint */
.hint{
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  color: rgba(255,255,255,0.70);
  font-size: 12px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 48%;
}

/* Overlay panel */
.overlay{
  display: none;
  align-items: center;
  justify-content: center;
}

.overlay.open{
  display: flex;
}

/* Radio overlay shell */
.radioOverlay{
  pointer-events: none;
}

.radioOverlay.open{
  pointer-events: auto;
}

.radioOverlayInner{
  width: min(584px, 92%);
  position: relative;
}

.radioFrame{
  display: block;
  width: 100%;
  height: 278px;
  border: 0;
  background: transparent;
  overflow: hidden;
}

/* --------------------------------------------------
   HEADER TIME BLOCK (neu strukturiert)
-------------------------------------------------- */



.timeClock{
  font-size: 16px;           /* dominant */
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
}

.timeWeekday{
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
}

.timeDate{
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.60);
}


/* --------------------------------------------------
   HEADER TIME BLOCK (fixiert 260x74 + Overlay kompatibel)
-------------------------------------------------- */

.timeLine{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;     /* linksbündig */
  justify-content: center;

  width: 260px;
  height: 74px;
  padding: 6px 8px;
  box-sizing: border-box;

  line-height: 1.15;
  white-space: normal;
  overflow: visible;

  /* Kapsel-Look */
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.timeClock{
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
}

.timeWeekday{
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
}

.timeDate{
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.60);
}



/* --------------------------------------------------
   SEASON CLOCK OVERLAYS (atmosphärisch, PNG transparent)
-------------------------------------------------- */

.timeLine.season-winter::after,
.timeLine.season-spring::after,
.timeLine.season-summer::after,
.timeLine.season-autumn::after{
  content: "";
  position: absolute;
  inset: -6px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left top;
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
}

.timeLine.season-winter::after{ background-image: url("/game/assets/clock/season_clock_winter.png"); }
.timeLine.season-spring::after{ background-image: url("/game/assets/clock/season_clock_spring.png"); }
.timeLine.season-summer::after{ background-image: url("/game/assets/clock/season_clock_summer.png"); }
.timeLine.season-autumn::after{ background-image: url("/game/assets/clock/season_clock_autumn.png"); }

.timeLine > *{
  position: relative;
  z-index: 1;
}


/* === Ingame Footer (Hint links, Live-Metriken rechts) === */
.hudFooter{
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;

  z-index: 20;
  pointer-events: none; /* rein informativ */
}

/* Hint links (Kapsel) */
.hudFooter .hint{
  margin: 0;
  pointer-events: none;
}

/* Live-Metriken rechts (gleicher Look wie Hint, darf umbrechen) */
.hudFooter .hudMetrics{
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  color: rgba(255,255,255,0.70);
  font-size: 12px;

  text-align: right;
  white-space: normal;     /* darf umbrechen */
  width: fit-content;
  max-width: 58%;

  pointer-events: none;
}


/* === Gear Menü (Header rechts) === */
.hudRight{
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  gap: 10px;
}

.gearWrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* gemeinsame Kapsel (Dropdown) */
.gearMenu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  min-width: 220px;
  padding: 8px;

  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  z-index: 40;

  pointer-events: auto;
}

/* Einträge: ruhige Textzeilen, kein Default-Button-Look */
.gearItem{
  width: 100%;
  text-align: left;

  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;

  border: 1px solid transparent;
  background: transparent;

  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;

  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.gearItem:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.10);
}

.gearItem:focus-visible{
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.gearSep{
  height: 1px;
  margin: 6px 4px;
  background: rgba(255,255,255,0.10);
}

.gearLogout{
  color: rgba(255,255,255,0.88);
}


/* --------------------------------------------------
   1. WACHOFFIZIER (freigestellt, sitzt "unsichtbar" im Sessel)
-------------------------------------------------- */
/* --------------------------------------------------
   1. WACHOFFIZIER (freigestellt, sitzt "unsichtbar" im Sessel)
   - an FG box (3:2) gebunden: Position bleibt bei jeder Auflösung korrekt
-------------------------------------------------- */



/* Chair hotspot: no visible rectangle */
#hsChair{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}


/* --------------------------------------------------
   1. WACHOFFIZIER (FG-gebunden)
-------------------------------------------------- */
.oneWOwrap{
  position: absolute;
  left:  calc(var(--fgX) + var(--fgW) * 0.700);
  top:   calc(var(--fgY) + var(--fgH) * 0.222);
  width: calc(var(--fgW) * 0.30);
  height: auto;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
}

.oneWO{
  display:block;
  width:100%;
  height:auto;
  -webkit-user-drag: none;

  /* V5.4:
     1.WO ist ein separates PNG über main_ui.jpg und muss deshalb den
     rechten Bild-Fade separat erhalten. Der Verlauf entspricht exakt
     dem globalen 95–100%-Fade der FG-Box, umgerechnet auf den Bereich
     des 1.WO (70–100% der FG-Breite). */
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 83.333%,
    rgba(0,0,0,0.82) 86.0%,
    rgba(0,0,0,0.55) 92.0%,
    rgba(0,0,0,0.22) 96.667%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 83.333%,
    rgba(0,0,0,0.82) 86.0%,
    rgba(0,0,0,0.55) 92.0%,
    rgba(0,0,0,0.22) 96.667%,
    transparent 100%
  );
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
}

/* ---- Schlanker CSS Fake Smoke (Zigarettenrauch, stärker) ---- */
.smoke{
  position:absolute;
  left: 69%;
  top: 50%;

  width: 2px;
  height: 110px;

  opacity: 0.52;
  pointer-events:none;
  transform-origin: bottom center;

  background:
    linear-gradient(
      to top,
      rgba(255,255,255,0.55) 0%,
      rgba(255,255,255,0.36) 18%,
      rgba(255,255,255,0.22) 42%,
      rgba(255,255,255,0.10) 68%,
      rgba(255,255,255,0.00) 100%
    );

  filter: blur(1.1px);
  mix-blend-mode: screen;

  animation: smokeRise 5.0s ease-in-out infinite;
}

.smoke.s2{
  width: 2px;
  height: 125px;
  left: 69%;
  top: 50%;

  opacity: 0.34;
  filter: blur(1.7px);
  animation-duration: 5.8s;
  animation-delay: 1.2s;
}

.smoke.s3{
  width: 2px;
  height: 140px;
  left: 69%;
  top: 50%;

  opacity: 0.24;
  filter: blur(2.2px);
  animation-duration: 6.6s;
  animation-delay: 2.0s;
}

@keyframes smokeRise{
  0%{
    transform: translateY(0px) rotate(-1deg) scaleX(0.92);
    opacity: 0;
  }
  8%{ opacity: 0.52; }

  35%{
    transform: translate(-3px, -28px) rotate(2deg) scaleX(1.02);
    opacity: 0.34;
  }

  68%{
    transform: translate(-7px, -70px) rotate(-3deg) scaleX(1.08);
    opacity: 0.20;
  }

  100%{
    transform: translate(-10px, -120px) rotate(4deg) scaleX(1.14);
    opacity: 0;
  }
}
/* --------------------------------------------------
   BOOT-MANAGEMENT OVERLAY (Iframe)
   Ziel: identisches Verhalten wie SEEKARTE-Overlay
   - Vorladen: iframe src bleibt gesetzt
   - Öffnen/Schließen: scale animation
   - Zentriert, nahezu Vollbild, auto-scaling je Viewport
   - Header/Footer bleiben sichtbar (Overlay liegt unter HUD)
-------------------------------------------------- */

.boatOverlay{
  position:absolute;
  left: var(--fgX);
  top: var(--fgY);
  width: var(--fgW);
  height: var(--fgH);

  display:flex;
  align-items:center;
  justify-content:center;

  pointer-events:none;
  opacity: 0;
  transition: opacity 200ms ease;

  z-index: 40; /* wie Seekarte */
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(2px);
}

.boatOverlay.open{
  pointer-events:auto;
  opacity: 1;
}

.boatOverlayInner{
  position:relative;

  width: 94%;
  height: 90%;
  max-width: 1180px;
  max-height: 820px;

  transform: scale(0.86);
  opacity: 0;
  transition: transform 300ms ease, opacity 200ms ease;

  box-shadow: 0 20px 80px rgba(0,0,0,0.65);
  background: rgba(8,8,8,0.65);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  overflow:hidden;
  backdrop-filter: blur(2px);
}

.boatOverlay.open .boatOverlayInner{
  transform: scale(1);
  opacity: 1;
}

.boatCloseBtn{
  position:absolute;
  top: 12px;
  right: 14px;
  z-index: 2;

  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.88);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.boatCloseBtn:hover{ background: rgba(0,0,0,0.65); }

.boatIframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
  background: transparent;
}

/* ==========================================================
   GREY OCEAN HEADER V1 — compact glass HUD
   Nur Darstellung/Anordnung. Uhr- und Lagebericht-Funktion unverändert.
========================================================== */

.hud{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:0;
}

/* Links: Uhr + Lagebericht in einer Reihe */
.hudLeft{
  flex:0 0 auto;
  flex-direction:row;
  align-items:flex-start;
}

/* Uhr: Inhalt + 10px links/rechts, Höhe bleibt 74px */
.timeLine{
  width:max-content;
  min-width:0;
  height:74px;
  padding:6px 10px;
}

/* Lagebericht direkt neben die Uhr */
.hudRight{
  flex:1 1 auto;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  min-width:0;
  gap:10px;
}

/* Die Lagebericht-Kapsel wird per HTML in den linken Cluster verschoben.
   Gleiche Außenhöhe wie Uhr, 150px breit, einzeiliger Ticker. */
.lagebericht{
  position:relative;
  width:300px;
  min-width:300px;
  max-width:300px;
  height:74px;
  box-sizing:border-box;
  padding:0 10px;
  margin-left:30px;

  display:flex;
  align-items:center;

  overflow:hidden;
  white-space:nowrap;
  text-align:left;

  border:1px solid rgba(255,255,255,0.10);
  background:rgba(0,0,0,0.35);
  border-radius:12px;
  backdrop-filter:blur(6px);

  font-size:14px;
  line-height:1;
  color:rgba(255,255,255,0.72);
}

/* Ein gemeinsamer Ticker-Track; bestehende DOM-Inhalte bleiben erhalten. */
.lageTickerTrack{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  width:max-content;
  will-change:transform;
  animation:goLageTicker 28s linear infinite;
}

.lagebericht .okx,
.lagebericht .l1,
.lagebericht .l2{
  display:inline-block;
  flex:0 0 auto;
  margin:0;
  padding:0;
  white-space:nowrap;
}

.lagebericht .okx{
  font-weight:800;
  letter-spacing:0.08em;
  color:#ffffff;
}

.lagebericht .l1,
.lagebericht .l2{
  color:rgba(255,255,255,0.74);
  font-weight:500;
}

.lagebericht .okx::after,
.lagebericht .l1::after{
  content:"   + + +   ";
  white-space:pre;
  color:rgba(255,255,255,0.72);
  font-weight:700;
  letter-spacing:0.08em;
}

@keyframes goLageTicker{
  from{ transform:translateX(300px); }
  to{ transform:translateX(-100%); }
}

@media (prefers-reduced-motion: reduce){
  .lageTickerTrack{ animation:none; transform:none; }
}

/* Mitte wird nicht mehr für Logout benötigt */
.hudCenter{
  flex:1 1 auto;
  justify-content:flex-end;
  margin-left:auto;
  gap:10px;
}

/* Logout als Glas-Kapsel in derselben Höhe wie das Gear-Glas.
   Rechts direkt vor Einstellungen. */
#btnLogout{
  height:40px;
  box-sizing:border-box;
  padding:0 12px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(0,0,0,0.35);
  border-radius:12px;
  backdrop-filter:blur(6px);
  color:rgba(255,255,255,0.82);
  font-size:12px;
  font-weight:700;
}
#btnLogout:hover{
  background:rgba(255,255,255,0.08);
  border-color:rgba(255,255,255,0.14);
}

/* Gear bekommt denselben Glasstil wie Logout */
#btnGear{
  height:40px;
  min-width:42px;
  box-sizing:border-box;
  padding:0 11px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(0,0,0,0.35);
  border-radius:12px;
  backdrop-filter:blur(6px);
}
#btnGear:hover{
  background:rgba(255,255,255,0.08);
  border-color:rgba(255,255,255,0.14);
}

/* rechter Aktionscluster */
.hudActions{
  margin-left:auto;
  display:flex;
  align-items:flex-start;
  gap:10px;
}

/* kleine Viewports: Abstände reduzieren, Funktion bleibt gleich */
@media (max-width:720px){
  .hud{ left:10px; right:10px; top:10px; }
  .lagebericht{ margin-left:12px; width:280px; min-width:280px; max-width:280px; }
  @keyframes goLageTicker{
    from{ transform:translateX(280px); }
    to{ transform:translateX(-100%); }
  }
}



/* ==========================================================
   GREY OCEAN — BOOT GEOMETRY CLEANUP
   Alte FG-/1180x820-Begrenzung neutralisiert.
   Referenz: Cabinet/Crew = 96vw × 92vh im Viewport.
========================================================== */
.boatOverlay{
  position:fixed;
  inset:0;
  left:0;
  top:0;
  width:100vw;
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.boatOverlayInner{
  width:96vw;
  height:92vh;
  max-width:none;
  max-height:none;
  box-sizing:border-box;
  flex:0 0 auto;
}



/* ==========================================================
   GREY OCEAN — BOOT HAUPTFENSTER CANONICAL PARENT V1
   1:1 Referenz zu .cabinetOverlay / .cabinetOverlayInner V19
========================================================== */
.boatOverlay{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  pointer-events:none !important;
  z-index:85 !important;

  background:transparent !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;

  opacity:0 !important;
  transition:opacity 200ms ease !important;
}
.boatOverlay.open{
  pointer-events:auto !important;
  opacity:1 !important;
}

.boatOverlayInner{
  width:96vw !important;
  height:92vh !important;
  max-width:none !important;
  max-height:none !important;

  position:relative !important;
  isolation:isolate !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  flex:0 0 auto !important;

  transform:scale(.86) !important;
  opacity:0 !important;
  transition:transform 300ms ease,opacity 200ms ease !important;

  background:rgba(0,0,0,.52) !important;
  backdrop-filter:blur(6px) !important;
  -webkit-backdrop-filter:blur(6px) !important;

  border-style:solid !important;
  border-width:10px !important;
  border-color:#1d120d !important;
  border-radius:18px !important;
  outline:none !important;
  background-clip:padding-box !important;

  box-shadow:
    inset 0 0 0 1px rgba(132,90,61,.055),
    inset 0 0 5px rgba(0,0,0,.22),
    inset 0 -1px 0 rgba(0,0,0,.34),
    0 0 0 1px rgba(6,4,3,.88),
    0 18px 60px rgba(0,0,0,.42) !important;
}
.boatOverlay.open .boatOverlayInner{
  transform:scale(1) !important;
  opacity:1 !important;
}
.boatOverlay.closing .boatOverlayInner{
  transition:transform 200ms ease,opacity 200ms ease !important;
  transform:scale(.90) !important;
  opacity:0 !important;
}

.boatOverlayInner::before,
.boatOverlayInner::after{
  content:none !important;
  display:none !important;
}

#boatFrame,
.boatIframe{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  border:0 !important;
  display:block !important;
  background:transparent !important;
}

/* Canonical EK close (external CSS mirror) */
.boatCloseBtn{
  position:absolute !important;
  top:12px !important;
  right:14px !important;
  z-index:20 !important;
  width:42px !important;
  height:42px !important;
  padding:4px !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  cursor:pointer !important;
  user-select:none !important;
  line-height:0 !important;
}
.boatCloseBtn img{
  display:block !important;
  width:34px !important;
  height:34px !important;
  object-fit:contain !important;
  opacity:.82 !important;
  transition:opacity 140ms ease,filter 140ms ease,transform 140ms ease !important;
  pointer-events:none !important;
}
.boatCloseBtn:hover img{
  opacity:1 !important;
  filter:brightness(1.16) !important;
  transform:scale(1.04) !important;
}
.boatCloseBtn:active img{
  transform:scale(.96) !important;
}



/* BOOT EMBEDDED ARCHITECTURE V1 — iframe retired */
#boatFrame,
.boatIframe{
  display:none !important;
}
.boatOverlay{
  background:transparent !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}


/* ==========================================================
   GREY OCEAN — PATCH 11 / OKM ERSTZUTEILUNG
========================================================== */
.assignmentHud{
  position:absolute;
  left:50%;
  top:0;
  transform:translateX(-50%);
  height:40px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 14px;
  white-space:nowrap;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.35);
  border-radius:12px;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  color:rgba(255,255,255,.72);
  font-size:12px;
  letter-spacing:.02em;
  z-index:21;
}
.assignmentHud[hidden]{display:none!important}
.assignmentHud strong{color:rgba(255,255,255,.92);font-weight:700}
.assignmentSep{color:rgba(255,255,255,.30)}

.assignmentNotice{
  --okm-paper:#d7cdb7;
  --okm-paper-border:#8f7d5d;
  --okm-ink:#191611;

  position:fixed;
  inset:0;
  z-index:200;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  opacity:0;

  background:rgba(0,0,0,.62);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
  transition:opacity 180ms ease;
}
.assignmentNotice.open{pointer-events:auto;opacity:1}

.assignmentNoticeCard{
  position:relative;
  isolation:isolate;

  width:min(720px,84vw);
  max-height:84vh;
  overflow-x:hidden;
  overflow-y:auto;
  box-sizing:border-box;
  padding:42px 54px 34px;

  border:1px solid var(--okm-paper-border);
  border-radius:5px;
  background:
    linear-gradient(90deg,
      transparent 0 49.55%,
      rgba(89,70,43,.10) 49.72%,
      rgba(255,255,255,.12) 50%,
      rgba(84,66,41,.08) 50.28%,
      transparent 50.45%),
    linear-gradient(180deg,
      transparent 0 60.8%,
      rgba(93,72,45,.075) 61.05%,
      rgba(255,255,255,.09) 61.28%,
      transparent 61.55%),
    radial-gradient(circle at 9% 12%,rgba(108,78,38,.075),transparent 21%),
    radial-gradient(circle at 88% 84%,rgba(92,65,31,.065),transparent 24%),
    radial-gradient(circle at 72% 17%,rgba(255,255,255,.10),transparent 28%),
    linear-gradient(135deg,rgba(255,255,255,.07),transparent 33%),
    var(--okm-paper);

  color:var(--okm-ink);
  box-shadow:
    inset 0 0 34px rgba(81,61,35,.09),
    inset 0 0 0 1px rgba(255,255,255,.14),
    0 24px 80px rgba(0,0,0,.58);

  text-align:left;
  scrollbar-width:thin;
  scrollbar-color:rgba(77,66,52,.40) transparent;
}
.assignmentNoticeCard::before,
.assignmentNoticeCard::after{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:-1;
}
.assignmentNoticeCard::before{
  inset:0;
  border-radius:inherit;
  background:
    linear-gradient(24deg,transparent 0 18%,rgba(67,53,35,.055) 18.3%,rgba(255,255,255,.07) 18.6%,transparent 19.1%),
    linear-gradient(154deg,transparent 0 78%,rgba(70,54,34,.055) 78.3%,rgba(255,255,255,.065) 78.65%,transparent 79.1%);
  mix-blend-mode:multiply;
}
.assignmentNoticeCard::after{
  left:7%;
  right:5%;
  bottom:13%;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(77,58,36,.12),rgba(255,255,255,.14),transparent);
  transform:rotate(-.55deg);
}
.assignmentNoticeCard::-webkit-scrollbar{width:9px;background:transparent}
.assignmentNoticeCard::-webkit-scrollbar-track{background:transparent}
.assignmentNoticeCard::-webkit-scrollbar-thumb{
  background:rgba(77,66,52,.38);
  border:3px solid transparent;
  background-clip:padding-box;
  border-radius:999px;
}

.assignmentNoticeTitle{
  margin:0;
  text-align:center;
  font-family:"Courier New",Courier,monospace;
  font-size:clamp(15px,1.65vw,24px);
  line-height:1.12;
  white-space:nowrap;
  font-weight:400;
  letter-spacing:.12em;
  color:var(--okm-ink);
  text-shadow:.25px 0 rgba(0,0,0,.40),-.25px 0 rgba(0,0,0,.20);
}
.assignmentNoticeDateLine,
.assignmentNoticeBerlin{
  font-family:"Courier New",Courier,monospace;
  font-weight:400;
  color:var(--okm-ink);
  text-shadow:.2px 0 rgba(0,0,0,.35);
}
.assignmentNoticeDateLine{
  margin-top:18px;
  text-align:center;
  font-size:16px;
  line-height:1.3;
}

.assignmentNoticeText{
  position:relative;
  z-index:2;
  margin-top:44px;
  font-family:"Courier New",Courier,monospace;
  font-size:15px;
  line-height:1.64;
  font-weight:400;
  color:var(--okm-ink);
  text-shadow:.22px 0 rgba(0,0,0,.38);
}
.assignmentNoticeText p{margin:0 0 16px}
.assignmentNoticeText strong{font-weight:700;color:var(--okm-ink)}

.assignmentNoticeAck{
  appearance:none;
  position:relative;
  z-index:3;
  display:block;
  min-width:280px;
  min-height:46px;
  margin:36px auto 0;
  padding:8px 22px;

  border:1px solid transparent;
  border-radius:2px;
  background:transparent;

  font-family:"Courier New",Courier,monospace;
  font-size:15px;
  line-height:1.15;
  font-weight:400;
  letter-spacing:.015em;
  color:var(--okm-ink);

  cursor:pointer;
  box-shadow:none;
  transition:border-color 130ms ease;
}
.assignmentNoticeAck:hover,
.assignmentNoticeAck:focus-visible{
  background:transparent;
  border-color:rgba(32,29,24,.84);
  color:var(--okm-ink);
  outline:none;
}
.assignmentNoticeAck:active{
  background:transparent;
  border-color:rgba(25,22,18,.96);
  color:var(--okm-ink);
}
.assignmentNoticeAck:disabled{opacity:.55;cursor:default}

.assignmentNoticeStampWrap{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:132px;
  margin-top:22px;
}
.assignmentNoticeStamp{
  display:block;
  width:min(150px,26vw);
  height:auto;
  max-height:150px;
  object-fit:contain;
  opacity:.82;
  filter:grayscale(1) contrast(1.12);
}
.assignmentNoticeStamp.isMissing{visibility:hidden}

.assignmentNoticeBerlin{
  margin-top:8px;
  text-align:center;
  font-size:14px;
  line-height:1.3;
}

@media(max-width:900px){.assignmentHud{top:48px}}
@media(max-width:720px){
  .assignmentNoticeCard{width:90vw;padding:34px 28px 28px}
  .assignmentNoticeTitle{font-size:15px;letter-spacing:.08em;white-space:nowrap}
  .assignmentNoticeText{margin-top:34px;font-size:14px}
  .assignmentNoticeAck{min-width:0;width:100%;font-size:15px}
}


/* PATCH 11.3 — Erstzuteilung: 1:1 Geometrie der OKM-Generalüberholungsmitteilung */
.assignmentNoticeCard{width:min(720px,84vw);max-height:84vh;padding:42px 54px 34px}
.assignmentNoticeTitle{font-size:clamp(15px,1.65vw,24px);line-height:1.12;white-space:nowrap;letter-spacing:.12em}
.assignmentNoticeDateLine{margin-top:18px;font-size:16px;line-height:1.3}
.assignmentNoticeText{margin-top:44px;font-size:15px;line-height:1.64}
.assignmentNoticeAck{min-width:280px;min-height:46px;margin:36px auto 0;font-size:15px}
.assignmentNoticeStampWrap{min-height:132px;margin-top:22px}
.assignmentNoticeStamp{width:min(150px,26vw)!important;height:auto!important;max-width:150px!important;max-height:150px!important;object-fit:contain!important}
.assignmentNoticeBerlin{margin-top:8px;font-size:14px;line-height:1.3}
