@font-face {
  font-family: "Lume Plex";
  src: url("/lume-fonts/ibm-plex-sans-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
body, button, input, select, textarea { font-family: "Lume Plex", system-ui, sans-serif; }
body .brand-pill, body .m-label {
  text-transform: none;
  letter-spacing: .01em;
  font-size: .78rem;
}
body .m-val, body #sync-ticker { font-variant-numeric: tabular-nums; }
body .m-sub, body .nearby-note, body .roadworks-note,
body .briefing-source, body .weather-meta, body .dwd-meta { font-size: .8rem; line-height: 1.5; }
body .filter-dock .dock-btn, body .nearby-panel button,
body .lume-basemap-switch button { border-radius: 8px; }
body .nearby-panel, body .cockpit-top-left { border-radius: 12px; }
body .lume-floating-brand h1 { letter-spacing: -.025em; font-weight: 600; }
body .utility-bar { flex-wrap: wrap; }
body .utility-bar a, body #lume-source-open { font-size: .75rem; }
body #weather-drawer-toggle { display: none; }
.lume-topics {
  position: fixed;
  z-index: 24;
  top: 94px;
  right: 20px;
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid #16302426;
  border-radius: 12px;
  background: #f6f3ecfa;
  box-shadow: 0 4px 16px #16302412;
}
.lume-topics button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #163024;
  font: 500 .85rem/1.2 "Lume Plex", system-ui, sans-serif;
  cursor: pointer;
}
.lume-topics button[aria-pressed="true"] { background: #163024; color: #f6f3ec; }
.lume-topics button[aria-pressed="false"] { border-color: #16302433; }
.lume-topics button:disabled { opacity: .5; cursor: default; }
.lume-topics button:focus-visible { outline: 3px solid #327b9a; outline-offset: 3px; }
.lume-topics svg { width: 20px; height: 20px; flex-shrink: 0; }
body .lume-weather-drawer { top: 160px; }
.lume-road-overview {
  margin: 10px 0 12px;
  padding: 9px 12px;
  border-left: 3px solid #c25b3f;
  background: #e4ece655;
}
.lume-road-overview .metric-box { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.lume-road-overview .m-sub { flex-basis: 100%; }
.lume-restriction-filters {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #16302422;
  border-radius: 10px;
  background: #f6f3ec99;
}
.lume-restriction-filters-heading {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 700;
  color: #163024;
}
.lume-restriction-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body .nearby-panel .lume-restriction-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #16302430;
  border-left: 4px solid var(--restriction-color, #163024);
  border-radius: 8px;
  background: #ffffff88;
  color: #163024;
  font: 500 .78rem/1.35 "Lume Plex", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}
body .nearby-panel .lume-restriction-filter-btn:hover {
  background: #e4ece6;
}
body .nearby-panel .lume-restriction-filter-btn[aria-pressed="true"] {
  background: #163024;
  color: #f6f3ec;
  border-color: #163024;
  border-left-color: var(--restriction-color, #70ffe5);
  font-weight: 700;
}
body .nearby-panel .lume-restriction-filter-btn:focus-visible {
  outline: 3px solid #327b9a;
  outline-offset: 3px;
}
.lume-restriction-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.lume-restriction-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.lume-restriction-filter-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.lume-restriction-filter-state {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f6f3ec26;
  font-size: .68rem;
  font-weight: 700;
}
.lume-restriction-filter-state:empty { display: none; }
.lume-restriction-filter-note {
  margin-top: 8px;
  font-size: .75rem;
}
.nearby-item-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.lume-restriction-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 5px;
  border: 1px solid #16302424;
  border-left: 3px solid var(--restriction-color, #3d6352);
  border-radius: 6px;
  background: #f6f3ec;
  color: #163024;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.3;
}
body #weather-drawer [hidden] { display: none !important; }
body #weather-drawer .metrics-strip { grid-template-columns: 1fr; }
body #weather-drawer .lume-water-only .brand-row {
  margin-top: 0; padding-top: 0; border-top: 0;
}
body.lume-map-unavailable .telemetry-stack { top: 160px; }
body .lume-location-privacy .nearby-note { font-size: .8rem; }

/* "Info & Rechtliches" footer trigger exists for compact phones only. Its extra
   dialog section shows only when the dialog is opened from that trigger. */
#lume-info-open { display: none; }
#lume-source-dialog:not(.lume-source-dialog--info) .source-dialog-more { display: none; }
#lume-source-dialog .source-dialog-more ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 4px;
  padding: 0;
  list-style: none;
}
#lume-source-dialog .source-dialog-more li { margin: 0; }
#lume-source-dialog .source-dialog-more li[hidden] { display: none; }
#lume-source-dialog .source-dialog-more a,
#lume-source-dialog .source-dialog-install {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #16302422;
  border-radius: 10px;
  background: #ffffff88;
  color: #163024;
  font: 600 .86rem/1.3 "Lume Plex", system-ui, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
#lume-source-dialog .source-dialog-more a:focus-visible,
#lume-source-dialog .source-dialog-install:focus-visible {
  outline: 3px solid #327b9a;
  outline-offset: 3px;
}

/* Basemap switch desktop & base setup */
.basemap-mobile-toggle { display: none; }
.basemap-options { display: flex; gap: 3px; }

@media (max-width: 760px) {
  :root {
    --lume-safe-top: max(10px, env(safe-area-inset-top, 0px));
    --lume-safe-bottom: env(safe-area-inset-bottom, 0px);
    --lume-safe-left: max(12px, env(safe-area-inset-left, 0px));
    --lume-safe-right: max(12px, env(safe-area-inset-right, 0px));
    /* Usable row width between the safe-area insets, minus an 8px gutter. */
    --lume-row-width: calc(100% - var(--lume-safe-left) - var(--lume-safe-right) - 8px);
  }

  /* Row 1: Brand centered horizontally on the screen */
  body .lume-floating-brand {
    top: var(--lume-safe-top);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    height: auto;
    min-height: 38px;
    max-width: var(--lume-row-width);
    padding: 5px 14px;
    gap: 8px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(22, 48, 36, 0.08);
  }
  body .lume-floating-brand .brand-dot {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--card-border);
    border-radius: 7px;
    background: rgba(22, 48, 36, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body .lume-floating-brand .brand-dot::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2b5740;
    box-shadow: 0 0 6px rgba(43, 87, 64, 0.45);
  }
  body .lume-floating-brand > div {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
  }
  body .lume-floating-brand h1 {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
    margin: 0;
  }
  body .lume-floating-brand p {
    display: inline;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    margin: 0;
  }

  /* Row 2: "Suche", "Verkehr", "Wetter", and "Pegel" together on one horizontal
     control row below the centered brand. Each button is at least 44x44px. */
  body #sidebar-toggle.lume-map-button {
    top: calc(var(--lume-safe-top) + 44px);
    left: var(--lume-safe-left);
    right: auto;
    width: calc((100% - var(--lume-safe-left) - var(--lume-safe-right) - 15px) * 0.25);
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    padding: 4px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(246, 243, 236, 0.97);
    color: var(--text-primary);
    box-shadow: 0 4px 14px rgba(22, 48, 36, 0.08);
    cursor: pointer;
  }
  body #sidebar-toggle > span:first-child {
    font-size: 1.05rem;
    line-height: 1;
  }
  body #sidebar-toggle > span:last-child {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
  }
  body:not(.sidebar-is-closed) #sidebar-toggle.lume-map-button {
    background: #163024;
    color: #f6f3ec;
  }

  .lume-topics {
    top: calc(var(--lume-safe-top) + 44px);
    left: calc(var(--lume-safe-left) + (100% - var(--lume-safe-left) - var(--lume-safe-right) - 15px) * 0.25 + 5px);
    right: var(--lume-safe-right);
    width: auto;
    height: 48px;
    display: flex;
    gap: 5px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    z-index: 24;
  }
  .lume-topics button {
    flex: 1 1 0;
    min-width: 44px;
    min-height: 44px;
    height: 100%;
    padding: 4px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(246, 243, 236, 0.97);
    color: var(--text-primary);
    box-shadow: 0 4px 14px rgba(22, 48, 36, 0.08);
    font-size: .72rem;
    line-height: 1.1;
  }
  .lume-topics button span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
  }
  .lume-topics svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  /* Mobile basemap switch & controls: right-aligned vertical control stack
     directly above the +/- zoom group, sharing the exact same right edge with an 8px gap. */
  .maplibregl-ctrl-bottom-right {
    position: absolute;
    bottom: var(--lume-safe-bottom);
    right: env(safe-area-inset-right, 0px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    z-index: 25;
  }

  body #basemap-switch.lume-basemap-switch {
    pointer-events: auto;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0 12px 8px 0;
    padding: 0;
    gap: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .basemap-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(246, 243, 236, 0.96);
    color: var(--olive-dark);
    box-shadow: 0 4px 16px rgba(22, 48, 36, 0.14);
    cursor: pointer;
    padding: 0;
  }
  .basemap-mobile-toggle svg {
    width: 22px;
    height: 22px;
  }
  .basemap-mobile-toggle:focus-visible {
    outline: 3px solid #327b9a;
    outline-offset: 2px;
  }

  body #basemap-switch.lume-basemap-switch .basemap-options {
    display: none;
    position: absolute;
    bottom: 50px;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    background: #f6f3ec;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(22, 48, 36, 0.18);
    min-width: 110px;
  }

  body #basemap-switch.lume-basemap-switch.is-open .basemap-options {
    display: flex;
  }

  body #basemap-switch.lume-basemap-switch .basemap-options button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #ffffff88;
    color: var(--text-primary);
    font: 600 .82rem/1.2 "Lume Plex", system-ui, sans-serif;
    cursor: pointer;
  }

  body #basemap-switch.lume-basemap-switch .basemap-options button[aria-pressed="true"] {
    background: var(--olive-dark);
    color: #f6f3ec;
  }

  body #basemap-switch.lume-basemap-switch .basemap-options button:focus-visible {
    outline: 3px solid #327b9a;
    outline-offset: 2px;
  }

  /* Drawers start below the two rows and end above the footer. */
  body .lume-weather-drawer,
  body .telemetry-stack,
  body.lume-map-unavailable .telemetry-stack {
    top: calc(var(--lume-safe-top) + 98px);
    left: var(--lume-safe-left);
    right: var(--lume-safe-right);
    bottom: calc(var(--lume-safe-bottom) + 88px);
    width: auto;
  }

  body.weather-is-open .lume-map-status,
  body .lume-map-status {
    top: auto;
    left: var(--lume-safe-left);
    right: var(--lume-safe-right);
    bottom: calc(var(--lume-safe-bottom) + 88px);
    max-width: none;
  }

  /* Footer: one row, bottom-left, above the attribution strip. It leaves a
     60px column on the right for the zoom and basemap controls. */
  body .utility-bar {
    left: var(--lume-safe-left);
    right: auto;
    bottom: calc(var(--lume-safe-bottom) + 34px);
    max-width: calc(100% - var(--lume-safe-left) - var(--lume-safe-right) - 60px);
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 2px;
    padding: 1px 4px;
    border-radius: 14px;
  }
  body .utility-bar > :not(#lume-reopen-intro):not(#lume-info-open) {
    display: none;
  }
  body .utility-bar #lume-reopen-intro,
  body .utility-bar #lume-info-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 4px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--olive-accent);
    font: 600 .76rem/1.15 "Lume Plex", system-ui, sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
  }
  body .utility-bar #lume-info-open {
    border-left: 1px solid var(--card-border);
    border-radius: 0 10px 10px 0;
  }
  body .utility-bar #lume-info-open:focus-visible,
  body .utility-bar #lume-reopen-intro:focus-visible {
    outline: 3px solid #327b9a;
    outline-offset: 2px;
  }

  body .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group {
    pointer-events: auto;
    margin: 0 12px 10px 0;
    float: none;
  }
  .maplibregl-ctrl-attrib {
    pointer-events: auto;
    margin: 0 10px 0 0;
    float: none;
    max-width: calc(100vw - 24px);
    font-size: 10px;
    line-height: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .lume-floating-brand, body .lume-floating-brand h1,
  body .lume-floating-brand .brand-dot { animation: none !important; }
}

/* Typebot-inspired opening experience adapted to Lume's forest-green & cream identity */
body.lume-opening-active {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Keep the map as the opening background, but visually hide application panels,
   filters, duplicate branding and map controls until the reveal finishes. */
body.lume-opening-active .lume-floating-brand,
body.lume-opening-active #sidebar-toggle,
body.lume-opening-active #basemap-switch,
body.lume-opening-active #basemap-status,
body.lume-opening-active #lume-sidebar,
body.lume-opening-active #weather-drawer-toggle,
body.lume-opening-active #weather-drawer,
body.lume-opening-active .lume-topics,
body.lume-opening-active .utility-bar,
body.lume-opening-active .maplibregl-control-container {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.lume-opening {
  --opening-progress: 0;
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: max(22px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  color: #f6f3ec;
  isolation: isolate;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.lume-opening[hidden] {
  display: none !important;
}

/* Green overlay layer that clears progressively to reveal the map underneath */
.lume-opening-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 42%, rgba(36, 91, 66, 0.38) 0%, rgba(22, 48, 36, 0.94) 56%, #0e2017 100%);
  pointer-events: none;
  will-change: opacity, mask-image, -webkit-mask-image;
}

/* Understated decorative street-network motif (monochrome, clearly non-traffic) */
.lume-opening-motif {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
  will-change: opacity, transform;
}

.lume-opening-motif path,
.lume-opening-motif circle {
  fill: none;
  stroke: rgba(246, 243, 236, 0.055);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.lume-opening-motif .motif-river {
  stroke: rgba(246, 243, 236, 0.085);
  stroke-width: 2.2;
}

.lume-opening-motif .motif-axis {
  stroke: rgba(246, 243, 236, 0.07);
  stroke-dasharray: 180 220;
  stroke-dashoffset: 0;
  animation: lume-motif-drift 22s ease-in-out infinite alternate;
}

@keyframes lume-motif-drift {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -120; }
}

/* Top-left compact brand identity (matching Typebot's top-left mark) */
.lume-opening-top {
  width: 100%;
  max-width: 1240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  will-change: opacity, transform;
}

.lume-opening-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f6f3ec;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lume-opening-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(246, 243, 236, 0.72);
  border-radius: 7px;
  background: rgba(246, 243, 236, 0.06);
}

.lume-opening-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #70ffe5;
  box-shadow: 0 0 10px rgba(112, 255, 229, 0.55);
}

.lume-opening-brand-sub {
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(246, 243, 236, 0.64);
  margin-left: 2px;
}

/* Center hero stack */
.lume-opening-center {
  position: relative;
  max-width: 860px;
  width: 100%;
  margin: auto;
  padding: 28px 0 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: opacity, transform;
}

.lume-opening-headline {
  margin: 0;
  color: #f6f3ec;
  font-size: clamp(2.25rem, 6.2vw, 4.7rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.042em;
  text-wrap: balance;
  animation: lume-opening-reveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lume-opening-headline span {
  display: block;
}

.lume-opening-headline span:first-child {
  display: inline-block;
  will-change: transform, color, text-shadow;
  animation: lume-dresden-living 6s ease-in-out infinite;
}

@keyframes lume-dresden-living {
  0%, 100% {
    transform: translateY(0);
    color: #f6f3ec;
    text-shadow: 0 0 0 rgba(112, 255, 229, 0);
  }
  50% {
    transform: translateY(-2px);
    color: #ffffff;
    text-shadow: 0 0 16px rgba(112, 255, 229, 0.24);
  }
}

.lume-opening-sub {
  margin: 22px auto 0;
  max-width: 35rem;
  color: rgba(246, 243, 236, 0.76);
  font-size: clamp(0.98rem, 1.55vw, 1.16rem);
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
  animation: lume-opening-reveal 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

/* Bottom stack: subtle animated scroll/swipe cue button above the floating dock */
.lume-opening-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  will-change: opacity, transform;
}

.lume-opening-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(246, 243, 236, 0.78);
  font: 500 0.8rem/1.25 "Lume Plex", system-ui, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.lume-opening-scroll-cue:hover {
  color: #f6f3ec;
  background: rgba(246, 243, 236, 0.07);
  border-color: rgba(246, 243, 236, 0.18);
}

.lume-opening-cue-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #70ffe5;
  animation: lume-cue-float 2.2s ease-in-out infinite;
}

.lume-opening-cue-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.lume-opening-cue-touch {
  display: none;
}

@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .lume-opening-cue-desktop {
    display: none;
  }
  .lume-opening-cue-touch {
    display: inline;
  }
}

@keyframes lume-cue-float {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.72;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

/* Compact floating navigation bar near the bottom (matching Typebot's bottom pill) */
.lume-opening-dock-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lume-opening-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid rgba(246, 243, 236, 0.16);
  border-radius: 16px;
  background: rgba(11, 25, 18, 0.84);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  max-width: 100%;
}

.lume-opening-nav a,
.lume-opening-nav button.lume-opening-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(246, 243, 236, 0.84);
  font: 500 0.82rem/1.2 "Lume Plex", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.lume-opening-nav a:hover,
.lume-opening-nav button.lume-opening-nav-link:hover {
  color: #f6f3ec;
  background: rgba(246, 243, 236, 0.09);
}

.lume-opening-nav a[data-opening-action="map"] {
  background: rgba(246, 243, 236, 0.12);
  color: #f6f3ec;
  font-weight: 600;
}

.lume-opening-nav a[data-opening-action="map"]:hover {
  background: rgba(246, 243, 236, 0.2);
}

.lume-opening-scroll-cue:focus-visible,
.lume-opening-nav a:focus-visible,
.lume-opening-nav button:focus-visible,
.lume-opening-brand:focus-visible,
#lume-reopen-intro:focus-visible {
  outline: 3px solid #70ffe5;
  outline-offset: 3px;
}

#lume-reopen-intro {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--olive-accent);
  font: inherit;
  font-size: 0.75rem;
  text-decoration: underline;
  cursor: pointer;
}

@keyframes lume-opening-reveal {
  from {
    opacity: 0.01;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .lume-opening {
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  }
  .lume-opening-top {
    justify-content: center;
    text-align: center;
  }
  .lume-opening-brand {
    justify-content: center;
  }
  .lume-opening-brand-sub {
    display: inline;
    font-size: 0.74rem;
    opacity: 0.75;
  }
  .lume-opening-center {
    padding: 18px 0 24px;
  }
  .lume-opening-headline {
    font-size: clamp(1.95rem, 8.6vw, 2.85rem);
    line-height: 1.06;
  }
  .lume-opening-sub {
    margin-top: 16px;
    font-size: 0.95rem;
  }
  .lume-opening-bottom {
    gap: 10px;
  }
  .lume-opening-nav {
    padding: 6px;
    gap: 2px 4px;
    border-radius: 14px;
  }
  .lume-opening-nav a,
  .lume-opening-nav button.lume-opening-nav-link {
    min-height: 36px;
    padding: 5px 8px;
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lume-opening,
  .lume-opening-headline,
  .lume-opening-headline span:first-child,
  .lume-opening-sub,
  .lume-opening-cue-icon,
  .lume-opening-motif .motif-axis {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    text-shadow: none !important;
  }
}
