:root {
  color-scheme: dark;
  --life-gold: #e0be7c;
  --life-gold-soft: rgba(224, 190, 124, 0.32);
  --life-obsidian: #07080c;
  --life-ivory: #f6f1e7;
}

body {
  font-family: 'Inter', 'Helvetica Neue', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #07080c;
  background-image:
    radial-gradient(circle at 18% 8%, rgba(217, 166, 87, 0.11), transparent 38%),
    radial-gradient(circle at 84% 14%, rgba(28, 78, 96, 0.16), transparent 40%),
    radial-gradient(circle at 50% 96%, rgba(160, 114, 58, 0.09), transparent 44%);
  color: #f6f1e7;
  min-height: 100vh;
  position: relative;
}

body.pseudo-fullscreen {
  overflow: hidden;
}

body.pseudo-fullscreen #app {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 40;
  overflow-y: auto;
  background-color: #07080c;
}

.font-display {
  font-family: Georgia, 'Playfair Display', 'Times New Roman', serif;
  letter-spacing: 0.01em;
}

.font-kicker {
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.glass-panel {
  background: linear-gradient(165deg, rgba(16, 17, 22, 0.92), rgba(8, 9, 13, 0.95));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(224, 190, 124, 0.22);
}

.hero-frame {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.photo-vignette {
  box-shadow: inset 0 0 90px rgba(4, 5, 8, 0.88);
}

.player-portrait {
  object-fit: cover;
  object-position: center 20%;
  filter: contrast(1.03) saturate(1.02);
}

.node-unlocked {
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(246, 241, 231, 0.15), 0 0 24px -5px var(--node-glow, rgba(224, 190, 124, 0.72));
}

.node-unlocked:hover {
  box-shadow: 0 10px 26px -6px var(--node-glow, rgba(224, 190, 124, 0.92)), 0 0 0 1px rgba(246, 241, 231, 0.34);
}

.node-completed {
  opacity: 0.95;
  box-shadow: 0 0 18px -7px rgba(52, 211, 153, 0.55);
}

.node-locked {
  opacity: 0.48;
  filter: grayscale(0.45) brightness(0.84);
  cursor: not-allowed;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -24;
  }
}

.svg-edge-active {
  stroke-dasharray: 6 6;
  animation: dashFlow 1.35s linear infinite;
}

.svg-edge-lateral {
  stroke-dasharray: 4 5;
  animation: dashFlow 1.8s linear infinite;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-modal-pop {
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-dropdown {
  animation: dropdownSlide 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Interaktive 2D-Lebenspfad-Weltkarte (1-Finger-Panning in alle Richtungen & Zoom, rein 2D) */
#path-viewport {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  background-color: #08090e;
  background-size: cover;
  background-position: center;
}

#path-viewport.is-panning {
  cursor: grabbing;
}

#path-canvas {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.path-node-card {
  position: absolute;
  transform: translate(-50%, -50%);
  touch-action: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.path-node-card.node-unlocked:hover {
  transform: translate(-50%, -50%) scale(1.03);
}

.minimap-box {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Besucherzähler-Karte mit 7-Segment-LED-Anzeige (rein 2D) */
.visitor-counter-card {
  background: linear-gradient(180deg, rgba(24, 18, 36, 0.94), rgba(14, 11, 22, 0.97));
  border: 1px solid rgba(224, 190, 124, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 240, 200, 0.06);
}

.visitor-led-frame {
  background: linear-gradient(180deg, #0b0910 0%, #120f19 100%);
  border: 1px solid rgba(224, 190, 124, 0.48);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.9), 0 0 18px rgba(245, 200, 107, 0.12);
}

/* Dezente Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(12, 13, 18, 0.72);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb {
  background: rgba(224, 190, 124, 0.32);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(224, 190, 124, 0.56);
}
