.bp-dock-map-page {
  --dock-ink: #f7fbff;
  --dock-muted: rgba(235, 247, 255, 0.76);
  --dock-panel: rgba(9, 35, 57, 0.78);
  --dock-panel-2: rgba(12, 52, 77, 0.84);
  --dock-line: rgba(166, 231, 255, 0.28);
  --dock-sun: #ffd166;
  --dock-coral: #ff6b6b;
  --dock-mint: #64f4c7;
  --dock-blue: #47c8ff;
  position: fixed;
  inset: 0;
  z-index: 99989;
  display: none;
  overflow: auto;
  color: var(--dock-ink);
  background:
    radial-gradient(circle at 15% 14%, rgba(255, 209, 102, 0.18), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(100, 244, 199, 0.14), transparent 26%),
    linear-gradient(160deg, #07253d 0%, #0d5570 42%, #0a2b50 100%);
  font-family: "DM Sans", system-ui, sans-serif;
  isolation: isolate;
}
.bp-dock-map-page.is-open { display: block; }
.bp-dock-map-page.bp-dock-night {
  background:
    radial-gradient(circle at 82% 10%, rgba(245, 247, 255, 0.20), transparent 12%),
    radial-gradient(circle at 20% 18%, rgba(71, 200, 255, 0.12), transparent 24%),
    linear-gradient(160deg, #061423 0%, #092b48 48%, #050b1d 100%);
}
.bp-dock-water,
.bp-dock-water::before,
.bp-dock-water::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.bp-dock-water {
  z-index: -3;
  background:
    repeating-linear-gradient(100deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(15deg, rgba(36, 205, 222, 0.10) 0 1px, transparent 1px 34px);
  animation: bp-dock-shimmer 16s linear infinite;
}
.bp-dock-water::before {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(138, 226, 255, 0.24), transparent 30%),
    radial-gradient(ellipse at 70% 70%, rgba(255, 209, 102, 0.10), transparent 26%);
  mix-blend-mode: screen;
  animation: bp-dock-tide 11s ease-in-out infinite alternate;
}
.bp-dock-water::after {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), rgba(0,0,0,.12));
}
.bp-dock-shell {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 42px;
}
.bp-dock-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0 14px;
}
.bp-dock-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.bp-dock-brand img {
  width: clamp(78px, 12vw, 138px);
  max-height: 94px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.28));
}
.bp-dock-kicker {
  margin: 0 0 3px;
  color: var(--dock-mint);
  font: 700 0.78rem/1 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.bp-dock-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Bangers", "Syne", sans-serif;
  font-size: clamp(2.35rem, 7vw, 5.2rem);
  letter-spacing: 0;
  line-height: .9;
  text-shadow: 0 5px 0 rgba(3, 20, 35, .28), 0 18px 32px rgba(0,0,0,.24);
}
.bp-dock-tagline { margin: 8px 0 0; max-width: 680px; color: var(--dock-muted); font-size: clamp(.95rem, 2vw, 1.12rem); }
.bp-dock-hero-actions { display: flex; align-items: center; gap: 10px; }
.bp-dock-mini-btn,
.bp-dock-close,
.bp-dock-action {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.13);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 14px 30px rgba(0,0,0,.18);
}
.bp-dock-mini-btn { border-radius: 999px; padding: 10px 14px; white-space: nowrap; }
.bp-dock-close {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
}
.bp-dock-mini-btn:hover,
.bp-dock-close:hover,
.bp-dock-action:hover { transform: translateY(-1px); background: rgba(255,255,255,.22); }
.bp-dock-hud {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin: 10px 0 18px;
}
.bp-dock-hud-card {
  min-height: 66px;
  border: 1px solid var(--dock-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(4, 20, 35, .44);
  backdrop-filter: blur(12px);
}
.bp-dock-hud-card span {
  display: block;
  color: rgba(225, 245, 255, .62);
  font: 700 .66rem/1 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.bp-dock-hud-card strong { display: block; margin-top: 8px; color: #fff; font-size: 1rem; overflow-wrap: anywhere; }
.bp-dock-districts {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.bp-dock-district {
  position: relative;
  grid-column: span 6;
  border: 1px solid var(--dock-line);
  border-radius: 8px;
  padding: 15px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.03)),
    var(--dock-panel);
  box-shadow: 0 22px 45px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(14px);
  animation: bp-dock-bob 6.8s ease-in-out infinite;
}
.bp-dock-district:nth-child(2n) { animation-delay: -1.7s; }
.bp-dock-district:nth-child(3n) { animation-delay: -3.1s; }
.bp-dock-district--wide { grid-column: span 12; }
.bp-dock-district-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.bp-dock-district-plain { margin: 0 0 3px; color: var(--dock-sun); font: 800 .62rem/1 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .14em; }
.bp-dock-district-title { margin: 0; color: #fff; font: 800 1.05rem/1.15 "Syne", sans-serif; }
.bp-dock-district-sub { margin: 4px 0 0; color: var(--dock-muted); font-size: .82rem; }
.bp-dock-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dock-sun);
  box-shadow: 0 0 0 0 rgba(255,209,102,.54);
  animation: bp-dock-beacon 1.8s ease-in-out infinite;
  flex: 0 0 auto;
}
.bp-dock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.bp-dock-card {
  position: relative;
  min-height: 210px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 13px;
  background:
    radial-gradient(circle at 100% 0, rgba(255,209,102,.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.bp-dock-card::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.32) 0 14px, rgba(255,209,102,.45) 14px 24px);
  opacity: .5;
}
.bp-dock-card:hover,
.bp-dock-card:focus-within { transform: translateY(-3px) rotate(-.25deg); border-color: rgba(255,255,255,.36); background-color: rgba(255,255,255,.08); }
.bp-dock-card.is-locked { opacity: .58; filter: saturate(.75); }
.bp-dock-card-top { display: flex; align-items: flex-start; gap: 11px; }
.bp-dock-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.18);
  overflow: hidden;
  font-size: 1.45rem;
}
.bp-dock-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.bp-dock-name { margin: 0; color: #fff; font: 800 1rem/1.1 "Syne", sans-serif; }
.bp-dock-plain { margin: 3px 0 0; color: rgba(255,255,255,.9); font: 600 .78rem/1.25 "DM Sans", sans-serif; }
.bp-dock-desc { margin: 8px 0 11px; color: var(--dock-muted); font-size: .86rem; line-height: 1.35; }
.bp-dock-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.bp-dock-difficulty,
.bp-dock-status,
.bp-dock-badge {
  border-radius: 999px;
  padding: 4px 8px;
  font: 800 .62rem/1 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.bp-dock-difficulty { background: rgba(71,200,255,.14); border: 1px solid rgba(71,200,255,.24); color: #bfefff; }
.bp-dock-status { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.78); }
.bp-dock-status.is-live { background: rgba(100,244,199,.14); border-color: rgba(100,244,199,.38); color: #bfffe9; box-shadow: 0 0 18px rgba(100,244,199,.18); }
.bp-dock-status.is-locked { background: rgba(255,107,107,.13); border-color: rgba(255,107,107,.32); color: #ffd0d0; }
.bp-dock-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 13px; }
.bp-dock-badge { background: rgba(255,209,102,.15); border: 1px solid rgba(255,209,102,.25); color: #ffe6a6; }
.bp-dock-action {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(255,209,102,.96), rgba(255,107,107,.92));
  color: #102131;
}
.bp-dock-action:disabled { cursor: not-allowed; background: rgba(255,255,255,.12); color: rgba(255,255,255,.58); }
.bp-dock-route-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .7; }
.bp-dock-route-layer svg { width: 100%; height: 100%; }
.bp-dock-route {
  fill: none;
  stroke: rgba(255,255,255,.32);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 10 18;
  animation: bp-dock-route 28s linear infinite;
}
.bp-dock-route-alt { stroke: rgba(100,244,199,.24); animation-duration: 34s; }
.bp-dock-tug {
  position: absolute;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  color: #0a3454;
  font: 800 .64rem/1 "DM Mono", monospace;
  box-shadow: 0 10px 18px rgba(0,0,0,.20);
}
.bp-dock-tug-a { left: 10%; top: 52%; animation: bp-dock-tug-a 18s ease-in-out infinite; }
.bp-dock-tug-b { right: 10%; top: 24%; animation: bp-dock-tug-b 22s ease-in-out infinite; }
.bp-dock-fog { position: fixed; width: 45vw; height: 120px; border-radius: 999px; background: rgba(255,255,255,.12); filter: blur(24px); pointer-events: none; z-index: -2; }
.bp-dock-fog-a { left: -10vw; top: 18%; animation: bp-dock-fog 25s linear infinite; }
.bp-dock-fog-b { right: -16vw; bottom: 12%; animation: bp-dock-fog 31s linear infinite reverse; }
.bp-dock-bubbles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bp-dock-bubbles i {
  position: absolute;
  bottom: -40px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.36);
  border-radius: 50%;
  animation: bp-dock-bubble 10s linear infinite;
}
.bp-dock-bubbles i:nth-child(1){left:8%;animation-delay:0s}.bp-dock-bubbles i:nth-child(2){left:19%;animation-delay:-2s;width:9px;height:9px}.bp-dock-bubbles i:nth-child(3){left:34%;animation-delay:-5s}.bp-dock-bubbles i:nth-child(4){left:49%;animation-delay:-1s;width:18px;height:18px}.bp-dock-bubbles i:nth-child(5){left:61%;animation-delay:-7s}.bp-dock-bubbles i:nth-child(6){left:76%;animation-delay:-3s;width:10px;height:10px}.bp-dock-bubbles i:nth-child(7){left:88%;animation-delay:-6s}.bp-dock-bubbles i:nth-child(8){left:94%;animation-delay:-9s;width:20px;height:20px}
.bp-dock-map-page.bp-dock-calm *,
.bp-dock-map-page.bp-dock-calm *::before,
.bp-dock-map-page.bp-dock-calm *::after { animation-play-state: paused !important; }
@keyframes bp-dock-shimmer { from { background-position: 0 0, 0 0; } to { background-position: 420px 120px, -320px 140px; } }
@keyframes bp-dock-tide { from { transform: translate3d(-1.5%, -1%, 0) scale(1); } to { transform: translate3d(1.5%, 1%, 0) scale(1.04); } }
@keyframes bp-dock-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes bp-dock-beacon { 0%,100% { box-shadow: 0 0 0 0 rgba(255,209,102,.5), 0 0 16px rgba(255,209,102,.5); } 50% { box-shadow: 0 0 0 10px rgba(255,209,102,0), 0 0 28px rgba(255,209,102,.8); } }
@keyframes bp-dock-route { to { stroke-dashoffset: -280; } }
@keyframes bp-dock-tug-a { 0%,100% { transform: translate(0,0) rotate(-4deg); } 50% { transform: translate(34vw,-13vh) rotate(5deg); } }
@keyframes bp-dock-tug-b { 0%,100% { transform: translate(0,0) rotate(5deg); } 50% { transform: translate(-28vw,22vh) rotate(-6deg); } }
@keyframes bp-dock-fog { from { transform: translateX(-12vw); } to { transform: translateX(120vw); } }
@keyframes bp-dock-bubble { from { transform: translateY(0) translateX(0); opacity: 0; } 10%,80% { opacity: .75; } to { transform: translateY(-105vh) translateX(35px); opacity: 0; } }
@media (max-width: 900px) {
  .bp-dock-shell { width: min(100% - 18px, 720px); padding-bottom: 24px; }
  .bp-dock-hero { align-items: flex-start; }
  .bp-dock-brand { align-items: flex-start; }
  .bp-dock-brand img { width: 76px; }
  .bp-dock-hud { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bp-dock-district,
  .bp-dock-district--wide { grid-column: 1 / -1; }
  .bp-dock-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .bp-dock-card { min-width: min(82vw, 340px); scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .bp-dock-map-page { background-attachment: scroll; }
  .bp-dock-hero { display: block; }
  .bp-dock-hero-actions { margin-top: 12px; justify-content: flex-end; }
  .bp-dock-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-dock-hud-card { min-height: 58px; }
  .bp-dock-card { min-height: 225px; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-dock-map-page *,
  .bp-dock-map-page *::before,
  .bp-dock-map-page *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
