.mood-nav, .mood-route {
  --black: #0B0B0C;
  --clay: #161617;
  --clay-2: #1E1E20;
  --line: #2C2C2E;
  --white: #F4F1EA;
  --muted: #9A9590;
  --red: #E10600;
  --red-deep: #8A0400;
  --shadow: #000000;
  --touch: 52px;
  --dock-pad: 8px;
  --radius-card: 28px 36px 24px 32px;
  --radius-pill: 999px;
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

.mood-nav, .mood-route {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}
.mood-nav { background: var(--black); padding-bottom: 8px; }
.mood-nav *, .mood-route, .mood-route * { box-sizing: border-box; }
@media (width < 900px) {
  body.has-mood-nav {
    box-sizing: border-box;
    padding-bottom: calc(71px + env(safe-area-inset-bottom));
  }
}

.mn-merlons {
  height: 32px; width: 100%;
  background-color: var(--black);
  background-image:
    linear-gradient(var(--red), var(--red)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='29' viewBox='0 0 56 29'%3E%3Crect y='17' width='56' height='12' fill='%23F4F1EA'/%3E%3Crect x='4' y='0' width='20' height='21' rx='2' fill='%23F4F1EA'/%3E%3Crect x='36' y='0' width='16' height='21' rx='2' fill='%23F4F1EA'/%3E%3C/svg%3E");
  background-size: 100% 3px, 56px 29px;
  background-position: 0 100%, 0 0;
  background-repeat: no-repeat, repeat-x;
}

/* —— Place bar —— */
.mn-place-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 40rem);
  margin: 0 auto;
  padding: 8px 16px 0;
}
.mn-place {
  appearance: none;
  flex: 1;
  min-width: 0;
  min-height: var(--touch);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 4px 12px 4px 4px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--clay);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--shadow), inset 0 1px 0 rgba(244,241,234,.08);
}
.mn-place:focus-visible, .mn-auth:focus-visible, .mn-dock a:focus-visible,
.mn-bank summary:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.mn-mark { width: 40px; height: 40px; flex: none; }
.mn-who { flex: 1; min-width: 0; }
.mn-who .mn-kicker { margin: 0; font-size: 0.62rem; }
.mn-who .mn-name {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mn-who .mn-host {
  display: block;
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mn-place-chevron {
  width: 22px; height: 22px; flex: none; position: relative;
}
.mn-place-chevron::before {
  content: "";
  position: absolute;
  inset: 5px 5px 7px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.mn-place[aria-expanded="true"] .mn-place-chevron::before {
  inset: 8px 5px 4px;
  transform: rotate(-135deg);
}
.mood-nav [hidden] { display: none !important; }
.mn-auth {
  appearance: none;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 2px 8px 8px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* —— Dock (mobile: bottom; desktop: in the place bar) —— */
.mn-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  padding: var(--dock-pad) 12px calc(var(--dock-pad) + env(safe-area-inset-bottom));
  background: var(--black);
  box-shadow: 0 -3px 0 var(--red);
}
.mn-dock-bank { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mn-bank { position: relative; }
.mn-bank-links {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 9rem;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  background: var(--black);
}
.mn-dock a, .mn-bank summary {
  min-height: var(--touch);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--clay);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 0 var(--shadow), inset 0 1px 0 rgba(244,241,234,.08);
}
.mn-bank summary { cursor: pointer; }
.mn-dock a[aria-current="page"] {
  background: var(--red);
  box-shadow: 0 4px 0 var(--red-deep), inset 0 2px 0 rgba(244,241,234,.22);
}
.mn-lock {
  width: 12px; height: 14px; flex: none;
  display: none;
}
.mn-locked .mn-lock { display: block; }

.mn-wrap {
  width: min(100%, 40rem);
  margin: 0 auto;
  padding: 16px 16px 24px;
}
@media (min-width: 700px) {
  .mn-merlons { height: 40px; background-size: 100% 3px, 72px 37px; }
  .mn-place-bar, .mn-wrap { width: min(100%, 36rem); }
  .mn-place-bar { padding: 12px 24px 0; }
  .mn-wrap { padding: 20px 24px 32px; }
}
@media (min-width: 900px) {
  .mn-chrome {
    width: min(100%, 54rem);
    margin: 0 auto;
    padding: 8px 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .mn-place-bar { width: auto; flex: 1; min-width: 0; margin: 0; padding: 0; }
  .mn-dock {
    position: static;
    display: flex;
    padding: 0;
    background: transparent;
    box-shadow: none;
    gap: 8px;
    flex: none;
  }
  .mn-bank-links { bottom: auto; top: calc(100% + 8px); z-index: 40; }
  .mn-dock a, .mn-bank summary { min-width: 7.5rem; padding: 0 16px; }
}
.mn-sheet-panel {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  margin: 0;
  border: 0;
  color: inherit;
  font: inherit;
  max-height: min(92dvh, 42rem);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--clay);
  border-radius: 32px 28px 0 0;
  box-shadow: 0 -8px 0 var(--shadow), inset 0 1px 0 rgba(244,241,234,.08);
}
@media (min-width: 900px) {
  .mn-sheet-panel {
    left: 50%; right: auto;
    bottom: auto; top: 96px;
    transform: translateX(-50%);
    width: min(26rem, calc(100% - 48px));
    border-radius: 28px 36px 24px 32px;
    max-height: min(70dvh, 36rem);
  }
}
.mn-sheet-panel[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.mn-destinations {
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 -3px;
  padding: 3px;
}
.mn-sheet-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.mn-orte-group { margin: 0 0 12px; }
.mn-orte-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mn-orte-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 12px;
  border-radius: 20px 24px 18px 22px;
  background: var(--black);
  color: inherit;
  text-decoration: none;
}
.mn-orte-list .mn-here { box-shadow: 0 0 0 2px var(--red); }
.mn-orte-list .mn-col { flex: 1; min-width: 0; }
.mn-orte-list .mn-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}
.mn-orte-list .mn-sub { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.mn-tag {
  flex: none;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mn-sheet-close {
  appearance: none;
  width: 100%;
  margin: 8px 0 5px;
  min-height: var(--touch);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 5px 0 #3A3936;
}

.mood-route h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.05rem, 9vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.mn-lead { margin: 0 0 20px; color: var(--muted); font-size: 1rem; font-weight: 650; }
.mn-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mn-card {
  background: var(--clay);
  border-radius: var(--radius-card);
  padding: 20px 18px 18px;
  box-shadow: 0 8px 0 var(--shadow), inset 0 1px 0 rgba(244,241,234,.08), inset 0 -8px 14px rgba(0,0,0,.35);
}
.mn-stack { display: grid; gap: 16px; }
.mn-badge {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mn-card h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.mn-card p:not(.mn-badge) { margin: 0; color: var(--muted); }
.mn-badge { margin: 0 0 6px; }
.mn-sheet-panel::backdrop { background: rgba(0, 0, 0, 0.64); }
.mn-sheet-panel a:focus-visible, .mn-sheet-close:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
body:has(.mood-route) { background: #0B0B0C; }
.mn-bonus {
  min-height: var(--touch);
  margin-top: 12px;
  width: 100%;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--clay-2);
  color: var(--muted);
  font: 600 1.02rem var(--font-display);
}
