/* Expedition als Bordkarte – 20.11.2026
   Gilt nur innerhalb von #expeditionBox. Das Daily bleibt unverändert. */

#expeditionBox .ndxbp {
  background: var(--ds-surface-card);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-card);
  box-shadow: var(--ds-shadow-card);
  overflow: hidden;
  margin: 0 0 var(--ds-space-3);
}

/* Kopfband */
#expeditionBox .ndxbp-head {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-3) var(--ds-space-4);
  border-bottom: 1px solid var(--ds-line);
}
#expeditionBox .ndxbp-head svg { flex: none; }
#expeditionBox .ndxbp-head b {
  flex-grow: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--ds-brand);
  text-transform: uppercase;
}
#expeditionBox .ndxbp-head span { font-size: 11px; color: var(--ds-ink-muted); }

/* Route */
#expeditionBox .ndxbp-route {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-5) var(--ds-space-4) var(--ds-space-4);
}
#expeditionBox .ndxbp-port { min-width: 0; }
#expeditionBox .ndxbp-port.to { text-align: right; }
#expeditionBox .ndxbp-code {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--ds-ink);
}
#expeditionBox .ndxbp-port.to .ndxbp-code { color: var(--ds-brand); }
#expeditionBox .ndxbp-place {
  font-size: 11.5px;
  color: var(--ds-ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#expeditionBox .ndxbp-path {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: var(--ds-space-1);
  min-width: 24px;
}
#expeditionBox .ndxbp-path i {
  flex-grow: 1;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--ds-line) 0 4px, transparent 4px 8px);
}

/* Felderzeile */
#expeditionBox .ndxbp-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-space-3);
  padding: 0 var(--ds-space-4) var(--ds-space-4);
}
#expeditionBox .ndxbp-field strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ds-ink);
  margin-top: 2px;
}

/* Schwierigkeit als Chips */
#expeditionBox .ndxbp-class { padding: 0 var(--ds-space-4) var(--ds-space-4); }
#expeditionBox .ndxbp-class .ds-micro { display: block; margin-bottom: var(--ds-space-2); }
#expeditionBox .ndxbp-class .n35-difficulties {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  margin: 0;
}
#expeditionBox .ndxbp-class .n35-difficulty {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-control);
  background: var(--ds-surface-card);
  color: var(--ds-ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
#expeditionBox .ndxbp-class .n35-difficulty.selected {
  border: 2px solid var(--ds-brand);
  background: var(--ds-brand-soft);
  font-weight: 800;
}
#expeditionBox .ndxbp-class .n35-difficulty:disabled { opacity: .45; cursor: not-allowed; }

/* Zielgebiet wechseln */
#expeditionBox .ndxbp-dest { padding: 0 var(--ds-space-4) var(--ds-space-4); }
#expeditionBox .ndxbp-dest label { display: block; margin-bottom: var(--ds-space-2); }
#expeditionBox .ndxbp-dest select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ds-ink);
  background: var(--ds-surface-sunken);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-control);
}

/* Perforation */
#expeditionBox .ndxbp-perf {
  position: relative;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--ds-line) 0 5px, transparent 5px 10px);
}
#expeditionBox .ndxbp-perf::before,
#expeditionBox .ndxbp-perf::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ds-surface);
}
#expeditionBox .ndxbp-perf::before { left: -9px; }
#expeditionBox .ndxbp-perf::after { right: -9px; }

/* Abriss */
#expeditionBox .ndxbp-stub {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4);
}
#expeditionBox .ndxbp-stub .ndxbp-price { flex-grow: 1; }
#expeditionBox .ndxbp-stub .ndxbp-price strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ds-ink);
  margin-top: 2px;
}
#expeditionBox .ndxbp-stub .ndxbp-price small {
  font-size: 11.5px;
  color: var(--ds-ink-muted);
}
#expeditionBox .ndxbp-bars { display: flex; align-items: flex-end; gap: 2px; height: 34px; }
#expeditionBox .ndxbp-bars i { display: block; height: 100%; background: var(--ds-ink); }

/* Startknopf */
#expeditionBox .ndxbp-go { padding: 0 var(--ds-space-4) var(--ds-space-4); }
#expeditionBox .ndxbp-go button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: var(--ds-radius-control);
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-brand-contrast);
  background: var(--ds-brand);
  cursor: pointer;
}
#expeditionBox .ndxbp-go button + button { margin-top: var(--ds-space-2); }
#expeditionBox .ndxbp-go button:disabled { opacity: .5; cursor: not-allowed; }

/* Fußzeile */
#expeditionBox .ndxbp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  padding: 0 0 var(--ds-space-2);
}
#expeditionBox .ndxbp-foot .n34-help-shortcut {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12.5px;
  color: var(--ds-brand);
  text-decoration: underline;
  cursor: pointer;
}
#expeditionBox .ndxbp-foot small { font-size: 12px; color: var(--ds-ink-muted); }

/* Band während der laufenden Expedition – aus der vorhandenen Statusmeldung */
#expeditionBox .n35-exp-running {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--ds-space-2) var(--ds-space-3);
  padding: var(--ds-space-3) var(--ds-space-4);
  margin: 0 0 var(--ds-space-3);
  border: 0;
  border-radius: var(--ds-radius-card);
  background: var(--ds-brand);
  color: var(--ds-brand-contrast);
  box-shadow: var(--ds-shadow-card);
}
#expeditionBox .n35-exp-running > span {
  grid-column: 1;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .9;
}
#expeditionBox .n35-exp-running > strong:first-of-type {
  grid-column: 2;
  font-size: 15px;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#expeditionBox .n35-exp-running > strong:last-of-type {
  grid-column: 3;
  justify-self: end;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--ds-radius-pill);
  background: rgba(255, 255, 255, .17);
  white-space: nowrap;
}
#expeditionBox .n35-exp-running > small {
  grid-column: 1 / -1;
  font-size: 11.5px;
  opacity: .8;
}

/* Die alte Überschrift und die Schritt-Beschriftungen entfallen in dieser Ansicht. */
#expeditionBox .ndxbp-hidden { display: none !important; }

/* Die Bordkarte ist selbst die Karte – der alte beige Rahmen entfällt. */
#gameView .n35-expedition .n35-setup.ndxbp-host:not(.hidden) {
  display: block !important;
  gap: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Dunkelmodus: die alten Festwerte sind stärker als die Grundwerte,
   deshalb hier noch einmal ausdrücklich über #expeditionBox. */
body.n30-dark #gameView #expeditionBox .n35-setup.ndxbp-host {
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.n30-dark #gameView #expeditionBox .n35-exp-running {
  background: var(--ds-brand);
  border: 0;
  color: var(--ds-brand-contrast);
  box-shadow: var(--ds-shadow-card);
}
body.n30-dark #gameView #expeditionBox .n35-exp-running > span,
body.n30-dark #gameView #expeditionBox .n35-exp-running > strong,
body.n30-dark #gameView #expeditionBox .n35-exp-running > small {
  color: var(--ds-brand-contrast);
}
body.n30-dark #gameView #expeditionBox .n35-exp-running > span {
  background: none;
  border: 0;
  padding: 0;
}
body.n30-dark #gameView #expeditionBox .n35-exp-running > strong:last-of-type {
  background: rgba(15, 26, 20, .14);
}
body.n30-dark #gameView #expeditionBox .ndxbp-class .n35-difficulty {
  background: var(--ds-surface-card);
  border-color: var(--ds-line);
  color: var(--ds-ink);
}
body.n30-dark #gameView #expeditionBox .ndxbp-class .n35-difficulty.selected {
  background: var(--ds-brand-soft);
  border-color: var(--ds-brand);
  color: var(--ds-ink);
}
body.n30-dark #gameView #expeditionBox .ndxbp-dest select {
  background: var(--ds-surface-sunken);
  border-color: var(--ds-line);
  color: var(--ds-ink);
}

/* 28.11.2026: Gebiet und Schwierigkeit standen dunkelgrün auf dunkelgrün. */
#gameView #expeditionBox .n35-exp-running > strong, #gameView #expeditionBox .n35-exp-running > strong * { color: var(--ds-brand-contrast) !important; }
#gameView #expeditionBox .n35-exp-running > strong span { background: none !important; border: 0 !important; padding: 0 !important; font-size: inherit !important; }
#expeditionBox .n35-exp-running > strong:first-of-type { display: flex; align-items: center; gap: 6px; white-space: normal; line-height: 1.25; }
