/* ─────────────────────────────────────────────
   NACHTRADAR — design tokens
   night base + 5 genre signals + phosphor radar
   type: Unbounded (display) / Schibsted Grotesk (UI) / Space Mono (data)
───────────────────────────────────────────── */
:root {
  --bg: #0A0B14;
  --bg2: #0E1020;
  --srf: #14172A;
  --srf2: #1A1E36;
  --line: #252A48;
  --line2: #353B60;
  --ink: #F4F4F8;
  --mut: #9298B4;
  --dim: #5E6384;

  --phos: #58F5B7;          /* radar phosphor — sweep, live dots, progress */
  --rave: #C8FF2E;
  --konzert: #3ED6FF;
  --festival: #FFA02E;
  --meetup: #B49CFF;
  --hausparty: #FF5E9C;
  --danger: #FF5C5C;

  --disp: 'Unbounded', system-ui, sans-serif;
  --body: 'Schibsted Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;

  --r-card: 20px;
  --r-sheet: 24px;
  --r-btn: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--phos);
  outline-offset: 2px;
  border-radius: 6px;
}
input, select, textarea { font: inherit; color: var(--ink); }

/* ── desktop ambience: app floats as a device over the night ── */
.stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(420px 300px at 12% 86%, rgba(200, 255, 46, .07), transparent 70%),
    radial-gradient(420px 300px at 88% 12%, rgba(62, 214, 255, .07), transparent 70%),
    radial-gradient(380px 300px at 86% 88%, rgba(255, 94, 156, .06), transparent 70%),
    var(--bg);
}
.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(146, 152, 180, .13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000 90%);
  pointer-events: none;
}
.stage-word {
  position: absolute;
  left: 38px;
  bottom: 34px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--dim);
  user-select: none;
}
.stage-word b { color: var(--phos); font-weight: 400; }

.app {
  position: relative;
  width: min(410px, 100vw);
  height: min(860px, 100vh);
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow: clip; /* focus inside sheets must never scroll the device frame */
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  border-radius: 32px;
}
@media (max-width: 520px), (max-height: 600px) {
  .app { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .stage-word { display: none; }
}

/* ── header ── */
.hdr {
  padding: 18px 18px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.hdr-logo {
  font-family: var(--disp);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .08em;
}
.hdr-logo .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--phos);
  margin-left: 5px;
  box-shadow: 0 0 10px var(--phos);
  animation: ping 2.4s infinite;
}
.hdr-date {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--mut);
  text-transform: uppercase;
}
@keyframes ping { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ── filter chips ── */
.chips {
  display: flex;
  gap: 7px;
  padding: 4px 18px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  color: var(--mut);
  white-space: nowrap;
  transition: all .15s;
}
.chip .swatch {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--c, var(--mut));
  vertical-align: 1px;
}
.chip.on {
  color: var(--bg);
  background: var(--c, var(--ink));
  border-color: var(--c, var(--ink));
  font-weight: 700;
}
.chip.on .swatch { background: var(--bg); }

/* ── main view area ── */
.view { flex: 1; min-height: 0; position: relative; display: none; flex-direction: column; }
.view.on { display: flex; }
.scroll { flex: 1; overflow-y: auto; padding: 0 18px 24px; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

/* ── deck ── */
.deck-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.deck-meta {
  padding: 0 18px 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--dim);
  text-transform: uppercase;
}
.deck-meta b { color: var(--phos); font-weight: 400; }
.deck { flex: 1; position: relative; margin: 0 18px; min-height: 0; }

.card {
  position: absolute;
  inset: 0;
  background: var(--srf);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.card.under1 { transform: scale(.955) translateY(14px); filter: brightness(.72); }
.card.under2 { transform: scale(.91) translateY(28px); filter: brightness(.5); }
.card.snap { transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), filter .3s; }
.card.fly { transition: transform .42s cubic-bezier(.5, 0, .8, .6), opacity .42s; opacity: 0; }

.card-art { height: 44%; position: relative; flex-shrink: 0; background: #07080F; }
.card-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(10, 11, 20, .8);
  border: 1px solid var(--c, var(--line2));
  color: var(--c, var(--ink));
  backdrop-filter: blur(4px);
}
.badge.solid { background: var(--c, var(--ink)); color: var(--bg); font-weight: 700; }
.card-price {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}

.card-body { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 9px; min-height: 0; }
.card-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.card-row {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--mut);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.card-row .sep { color: var(--dim); }
.card-row .time { color: var(--ink); font-weight: 700; }
.card-desc {
  font-size: 13.5px;
  color: var(--mut);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.tagline { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 999px;
}
.card-rating {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--festival);
  white-space: nowrap;
}

/* swipe stamps */
.stamp {
  position: absolute;
  top: 26px;
  font-family: var(--disp);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: .04em;
  padding: 6px 18px;
  border: 3px solid;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  background: rgba(10, 11, 20, .55);
  backdrop-filter: blur(2px);
}
.stamp.yes { left: 18px; color: var(--phos); border-color: var(--phos); transform: rotate(-12deg); }
.stamp.no { right: 18px; color: var(--danger); border-color: var(--danger); transform: rotate(12deg); }

/* deck actions */
.deck-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 14px 0 16px;
  flex-shrink: 0;
}
.act {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1.5px solid var(--line2);
  background: var(--srf);
  display: grid;
  place-items: center;
  transition: transform .12s, border-color .12s, box-shadow .12s;
}
.act:active { transform: scale(.9); }
.act svg { width: 24px; height: 24px; }
.act.no:hover { border-color: var(--danger); box-shadow: 0 0 18px rgba(255, 92, 92, .25); }
.act.yes:hover { border-color: var(--phos); box-shadow: 0 0 18px rgba(88, 245, 183, .25); }
.act.small { width: 44px; height: 44px; }
.act.small svg { width: 17px; height: 17px; }

/* empty deck = idle radar */
.deck-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}
.deck-empty p { color: var(--mut); font-size: 14px; max-width: 240px; }
.deck-empty .mono-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ── radar (boot + empty state) ── */
.radar { position: relative; width: 150px; height: 150px; }
.radar svg { width: 100%; height: 100%; }
.radar .sweep { transform-origin: 50% 50%; animation: sweep 2.8s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }

#boot {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: opacity .5s;
}
#boot.hide { opacity: 0; pointer-events: none; }
#boot .radar { width: 190px; height: 190px; }
.boot-word {
  font-family: var(--disp);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .16em;
}
.boot-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--phos);
}

/* ── map ── */
.map-wrap { flex: 1; min-height: 0; position: relative; margin: 0 18px 14px; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: #0B0D1A; }
.map-wrap svg { width: 100%; height: 100%; display: block; }
.map-legend {
  position: absolute;
  left: 10px; bottom: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  background: rgba(10, 11, 20, .75);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 9px;
  display: grid;
  gap: 4px;
  backdrop-filter: blur(4px);
}
.map-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.blip { cursor: pointer; }
.blip .pulse { animation: blipPulse 2.2s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blipPulse {
  0% { opacity: .8; transform: scale(.4); }
  70% { opacity: 0; transform: scale(2.6); }
  100% { opacity: 0; transform: scale(2.6); }
}
.you-sweep { transform-origin: center; transform-box: fill-box; animation: sweep 4s linear infinite; }

.map-pop {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  background: var(--srf);
  border: 1px solid var(--line2);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
  animation: rise .25s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.map-pop .g-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 12px currentColor; }
.map-pop .t { font-weight: 700; font-size: 14px; line-height: 1.2; }
.map-pop .s { font-family: var(--mono); font-size: 10.5px; color: var(--mut); margin-top: 2px; }
.map-pop button.go {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
}

/* ── lists (tickets / saved / profile) ── */
.sec { margin-top: 20px; }
.sec-title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.row-card {
  background: var(--srf);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  cursor: pointer;
  transition: border-color .15s;
}
.row-card:hover { border-color: var(--line2); }
.row-card .g-bar { width: 4px; align-self: stretch; border-radius: 4px; flex-shrink: 0; }
.row-card .grow { flex: 1; min-width: 0; }
.row-card .t { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-card .s { font-family: var(--mono); font-size: 10.5px; color: var(--mut); margin-top: 3px; }
.row-card .mini {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  color: var(--mut);
  white-space: nowrap;
}
.row-card .mini.hot { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 700; }

/* ticket stub */
.stub {
  position: relative;
  background: var(--srf);
  border: 1px solid var(--line2);
  border-radius: 18px;
  margin-bottom: 12px;
  overflow: hidden;
}
.stub .band { height: 6px; }
.stub-main { padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.stub-main .qr { width: 74px; height: 74px; flex-shrink: 0; border-radius: 8px; background: var(--ink); padding: 5px; }
.stub-main .qr svg { width: 100%; height: 100%; display: block; }
.stub .t { font-weight: 700; font-size: 15px; line-height: 1.2; }
.stub .s { font-family: var(--mono); font-size: 10.5px; color: var(--mut); margin-top: 4px; line-height: 1.6; }
.stub-foot {
  border-top: 1px dashed var(--line2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}
.stub-foot .code { color: var(--phos); }
.stub-foot button {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--phos);
  color: var(--bg);
  font-weight: 700;
}
.stub-foot button[disabled] { background: var(--srf2); color: var(--dim); }
.stub::before, .stub::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--line2);
  bottom: 36px;
}
.stub::before { left: -9px; }
.stub::after { right: -9px; }

/* ── profile ── */
.prof-head { display: flex; align-items: center; gap: 16px; padding-top: 8px; }
.prof-ring { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.prof-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.prof-ring .face {
  position: absolute; inset: 9px;
  border-radius: 50%;
  background: var(--srf2);
  display: grid;
  place-items: center;
  font-family: var(--disp);
  font-weight: 900;
  font-size: 24px;
  color: var(--phos);
}
.prof-name { font-family: var(--disp); font-weight: 700; font-size: 18px; }
.prof-sub { font-family: var(--mono); font-size: 10.5px; color: var(--mut); margin-top: 4px; line-height: 1.7; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stat {
  background: var(--srf);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.stat b { font-family: var(--disp); font-size: 19px; font-weight: 700; display: block; }
.stat span { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

.unlock-note {
  margin-top: 14px;
  border: 1px dashed var(--line2);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--mut);
  display: flex;
  gap: 10px;
  align-items: center;
}
.unlock-note.done { border-color: var(--phos); color: var(--phos); border-style: solid; background: rgba(88, 245, 183, .06); }

/* ── buttons & forms ── */
.btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  padding: 15px;
  border-radius: var(--r-btn);
  transition: transform .12s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line2); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid rgba(255, 92, 92, .4); }
.btn.phos { background: var(--phos); }

.field { margin-bottom: 13px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 14.5px;
}
.field textarea { min-height: 76px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.genre-pick { display: flex; gap: 7px; flex-wrap: wrap; }

/* ── sheets ── */
.sheet-veil {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(5, 6, 12, .7);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.sheet-veil.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  max-height: 88%;
  background: var(--srf);
  border: 1px solid var(--line2);
  border-bottom: 0;
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  transform: translateY(105%);
  transition: transform .32s cubic-bezier(.2, .9, .3, 1);
  display: flex;
  flex-direction: column;
}
.sheet.on { transform: translateY(0); }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line2); margin: 10px auto 2px; flex-shrink: 0; }
.sheet-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--srf2);
  display: grid;
  place-items: center;
  z-index: 2;
  font-size: 15px;
  color: var(--mut);
}
.sheet-body { overflow-y: auto; padding: 14px 20px 26px; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }

/* detail sheet bits */
.det-art { height: 150px; border-radius: 14px; overflow: hidden; position: relative; margin-bottom: 14px; background: #07080F; }
.det-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.det-title { font-family: var(--disp); font-weight: 700; font-size: 22px; line-height: 1.15; margin-bottom: 10px; padding-right: 30px; }
.facts { display: grid; gap: 7px; margin: 12px 0; }
.fact { display: flex; gap: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--mut); }
.fact b { color: var(--ink); font-weight: 400; }
.fact .k { width: 64px; flex-shrink: 0; color: var(--dim); text-transform: uppercase; font-size: 9.5px; letter-spacing: .12em; padding-top: 2px; }
.capbar { height: 5px; border-radius: 5px; background: var(--bg2); overflow: hidden; margin-top: 4px; }
.capbar i { display: block; height: 100%; border-radius: 5px; }
.det-desc { color: var(--mut); font-size: 14px; margin: 10px 0 4px; }

/* reviews */
.rev-sum { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.rev-sum .big { font-family: var(--disp); font-weight: 900; font-size: 30px; }
.rev-sum .stars { color: var(--festival); letter-spacing: 2px; }
.rev-sum .n { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.rev {
  border-top: 1px solid var(--line);
  padding: 11px 0;
}
.rev .who { display: flex; gap: 8px; align-items: baseline; font-family: var(--mono); font-size: 10.5px; color: var(--dim); margin-bottom: 4px; }
.rev .who .stars { color: var(--festival); letter-spacing: 1px; }
.rev p { font-size: 13.5px; color: var(--mut); }
.rev.mine { border-left: 2px solid var(--phos); padding-left: 10px; }
.lock-note {
  font-size: 13px;
  color: var(--dim);
  border: 1px dashed var(--line2);
  border-radius: 12px;
  padding: 11px 13px;
  margin-top: 8px;
}
.star-pick { display: flex; gap: 6px; font-size: 30px; margin: 6px 0 12px; }
.star-pick button { color: var(--line2); transition: color .1s, transform .1s; }
.star-pick button.on { color: var(--festival); }
.star-pick button:active { transform: scale(1.25); }

/* pay sheet */
.pay-row { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--mut); padding: 7px 0; }
.pay-row.total { border-top: 1px dashed var(--line2); margin-top: 6px; padding-top: 13px; color: var(--ink); font-weight: 700; font-size: 14px; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  font-size: 18px;
  display: grid;
  place-items: center;
}
.stepper b { font-family: var(--disp); font-size: 18px; min-width: 22px; text-align: center; }
.card-demo {
  margin: 14px 0;
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 13px;
  background: var(--bg2);
}
.card-demo .label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 9px;
  display: flex;
  justify-content: space-between;
}
.card-demo .label i { color: var(--phos); font-style: normal; }
.spinner {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(10, 11, 20, .25);
  border-top-color: var(--bg);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* success */
.success-pulse {
  width: 86px; height: 86px;
  margin: 8px auto 14px;
  border-radius: 50%;
  background: rgba(88, 245, 183, .12);
  display: grid;
  place-items: center;
  color: var(--phos);
  font-size: 36px;
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* host stats */
.host-stats { display: flex; gap: 14px; font-family: var(--mono); font-size: 10px; color: var(--dim); margin-top: 4px; }
.host-stats b { color: var(--ink); font-weight: 400; }

/* ── tab bar ── */
.tabs {
  display: flex;
  border-top: 1px solid var(--line);
  background: rgba(14, 16, 32, .92);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab {
  flex: 1;
  padding: 11px 0 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--dim);
  position: relative;
}
.tab svg { width: 21px; height: 21px; }
.tab span { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; }
.tab.on { color: var(--ink); }
.tab.on::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 2px;
  background: var(--phos);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--phos);
}
.tab .bub {
  position: absolute;
  top: 6px; right: calc(50% - 22px);
  min-width: 15px; height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--hausparty);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ── toast ── */
#toast {
  position: absolute;
  left: 50%;
  bottom: 86px;
  transform: translate(-50%, 16px);
  z-index: 55;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  white-space: nowrap;
  max-width: 88%;
  overflow: hidden;
  text-overflow: ellipsis;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

.empty-hint { text-align: center; color: var(--dim); font-size: 13px; padding: 28px 20px; }
.empty-hint .mono-note { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; display: block; margin-bottom: 6px; }

/* ── social: Freunde ── */
.ava {
  width: 46px; height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 15px;
  color: var(--c, var(--ink));
  background: color-mix(in srgb, var(--c, #fff) 14%, var(--bg2));
  border: 1.5px solid var(--c, var(--line2));
}
.ava.sm { width: 30px; height: 30px; font-size: 11px; border-width: 1px; }
.ava.xs { width: 18px; height: 18px; font-size: 8px; border-width: 1px; }
.ava-stack { display: flex; }
.ava-stack .ava { margin-left: -6px; box-shadow: 0 0 0 2px var(--srf); }
.ava-stack .ava:first-child { margin-left: 0; }

.crew-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 2px 4px;
  scrollbar-width: none;
}
.crew-strip::-webkit-scrollbar { display: none; }
.crew {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  flex-shrink: 0;
}
.crew span { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: var(--mut); text-transform: uppercase; }
.crew:active .ava { transform: scale(.92); }

.who-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  width: 100%;
  text-align: left;
}
.who-row .nm { font-weight: 700; font-size: 13.5px; }
.who-row .st { font-family: var(--mono); font-size: 10px; color: var(--dim); margin-top: 1px; }
.who-row .st.live { color: var(--phos); }
.who-row .role-tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  color: var(--mut);
  white-space: nowrap;
}
.who-row .role-tag.play { background: var(--c, var(--ink)); border-color: var(--c, var(--ink)); color: var(--bg); font-weight: 700; }

/* social proof line on deck cards */
.card-social { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--mut); }
.card-social .dj-note { color: var(--phos); }

/* ── DJs ── */
.vinyl { flex-shrink: 0; }
.dj-row {
  background: var(--srf);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  cursor: pointer;
  transition: border-color .15s;
  width: 100%;
  text-align: left;
}
.dj-row:hover { border-color: var(--line2); }
.dj-row .grow { flex: 1; min-width: 0; }
.dj-row .nm { font-family: var(--disp); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.dj-row .sub { font-family: var(--mono); font-size: 10px; color: var(--mut); margin-top: 3px; line-height: 1.6; }
.tier {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 2.5px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
.tier.headliner { background: var(--festival); color: var(--bg); font-weight: 700; }
.tier.local { border: 1px solid var(--phos); color: var(--phos); }
.follow {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  color: var(--mut);
  transition: all .15s;
}
.follow.on { background: var(--phos); border-color: var(--phos); color: var(--bg); font-weight: 700; }
.fav-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; }

/* six tabs need tighter cells */
.tab { padding: 10px 0 12px; gap: 3.5px; }
.tab svg { width: 20px; height: 20px; }
.tab span { font-size: 8px; letter-spacing: .08em; }
.tab .bub { right: calc(50% - 18px); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
  .radar .sweep, .you-sweep { animation: none !important; }
}

/* ── auth gate ── */
#auth-root {
  position: absolute;
  inset: 0;
  z-index: 70;
  background:
    radial-gradient(300px 220px at 80% 10%, rgba(180, 156, 255, .08), transparent 70%),
    radial-gradient(300px 220px at 15% 90%, rgba(88, 245, 183, .07), transparent 70%),
    var(--bg2);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
#auth-root.on { display: flex; }
.auth-box { width: 100%; max-width: 320px; }
.auth-logo {
  font-family: var(--disp);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .1em;
  text-align: center;
}
.auth-logo .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--phos);
  margin-left: 6px;
  box-shadow: 0 0 10px var(--phos);
  animation: ping 2.4s infinite;
}
.auth-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .26em;
  color: var(--dim);
  text-align: center;
  text-transform: uppercase;
  margin: 8px 0 24px;
}
.auth-tabs {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
}
.auth-tabs button {
  flex: 1;
  padding: 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mut);
}
.auth-tabs button.on { background: var(--phos); color: var(--bg); font-weight: 700; }
.auth-err { color: var(--danger); font-size: 12.5px; min-height: 18px; margin: -4px 0 8px; text-align: center; }
.auth-note {
  font-size: 12px;
  color: var(--dim);
  text-align: center;
  margin-top: 14px;
  border: 1px dashed var(--line2);
  border-radius: 12px;
  padding: 10px 12px;
  line-height: 1.5;
}
.auth-note b { color: var(--mut); }
.auth-demo { margin-top: 18px; text-align: center; }
.auth-demo span { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: block; margin-bottom: 9px; }
.auth-demo div { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

/* ── roles & verification ── */
.role-badge {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--c, var(--line2));
  color: var(--c, var(--mut));
  margin-left: 6px;
  vertical-align: 2px;
  white-space: nowrap;
}
.lock-hero { font-size: 44px; text-align: center; margin: 10px 0 14px; }
.invite-progress { display: flex; align-items: center; justify-content: center; gap: 0; margin: 18px 0 8px; }
.inv-dot {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line2);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
  flex-shrink: 0;
}
.inv-dot.on { border-color: var(--phos); color: var(--phos); background: rgba(88, 245, 183, .1); box-shadow: 0 0 12px rgba(88, 245, 183, .25); }
.inv-line { width: 34px; height: 1.5px; background: var(--line2); }
.challenge-box {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  border: 1.5px dashed var(--hausparty);
  border-radius: 16px;
  padding: 18px 16px;
  margin: 14px 0;
  background: rgba(255, 94, 156, .06);
}
.verif-pic {
  display: block;
  max-width: 200px;
  max-height: 200px;
  margin: 14px auto 0;
  border-radius: 14px;
  border: 1.5px solid var(--line2);
}
.verif-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line2); }
.invite-code {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  color: var(--phos);
  border: 1.5px dashed var(--phos);
  border-radius: 14px;
  padding: 16px;
  background: rgba(88, 245, 183, .06);
  user-select: all;
}

/* ── map 2.0: zoom, day filter, legend, popup ── */
#map-svg svg { touch-action: none; cursor: grab; }
#map-svg svg:active { cursor: grabbing; }

.map-days {
  position: absolute;
  top: 10px; left: 10px; right: 56px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(10, 11, 20, .8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(5px);
  overflow-x: auto;
  scrollbar-width: none;
}
.map-days::-webkit-scrollbar { display: none; }
.map-days button {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mut);
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.map-days button.on { background: var(--phos); color: var(--bg); font-weight: 700; }
.map-meta {
  margin-left: auto;
  padding: 0 10px 0 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--phos);
  white-space: nowrap;
}

.map-zoom {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  background: rgba(10, 11, 20, .8);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  overflow: hidden;
}
.map-zoom button {
  width: 38px; height: 36px;
  font-size: 16px;
  color: var(--mut);
  display: grid;
  place-items: center;
}
.map-zoom button:not(:last-child) { border-bottom: 1px solid var(--line); }
.map-zoom button:active { background: var(--srf2); color: var(--phos); }

/* legend → interactive with counts */
.map-legend { padding: 6px; gap: 2px; }
.map-legend button {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mut);
  padding: 4px 7px;
  border-radius: 7px;
  width: 100%;
  text-align: left;
  transition: opacity .15s;
}
.map-legend button:active { background: var(--srf2); }
.map-legend button.off { opacity: .32; }
.map-legend button b {
  margin-left: auto;
  padding-left: 10px;
  color: var(--ink);
  font-weight: 400;
}

/* pin labels */
.pin-lbl {
  font-family: 'Space Mono', monospace;
  fill: #C9CDE2;
  paint-order: stroke;
  stroke: #0B0D1A;
  stroke-width: .5px;
  pointer-events: none;
  letter-spacing: .3px;
}
.blip:focus-visible { outline: none; }
.blip:focus-visible .hit { stroke: var(--phos); stroke-width: .3; }

/* richer popup */
.map-pop { padding: 10px; gap: 11px; align-items: stretch; }
.map-pop .art {
  width: 58px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #07080F;
}
.map-pop .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pop .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.map-pop .meta-line { display: flex; gap: 9px; flex-wrap: wrap; }
.map-pop .meta-line b { font-weight: 400; }
.map-pop .pop-friends { display: flex; align-items: center; gap: 6px; color: var(--phos); }
.map-pop button.go { align-self: center; }

#map-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--mut);
  font-size: 13px;
  background: rgba(11, 13, 26, .55);
  backdrop-filter: blur(1.5px);
  pointer-events: none;
}
#map-empty .mono-note { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }

/* ── Google Maps radar skin ── */
#map-svg { position: absolute; inset: 0; }
#map-svg .gm-style { font-family: var(--mono) !important; }
#map-svg .gm-style > div:first-child { background: var(--bg) !important; }
#map-svg a[href^="https://maps.google"], #map-svg .gmnoprint:not(.gm-bundled-control) { filter: invert(.88) hue-rotate(180deg) opacity(.5); }

.map-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: var(--mut);
  font-size: 13px;
  line-height: 1.6;
  padding: 24px;
}
.map-state .mono-note { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--phos); }

/* radar blips as HTML overlays */
.gblip {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}
.gblip .gdot {
  display: grid;
  place-items: center;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid #0B0D1A;
  box-shadow: 0 0 8px color-mix(in srgb, var(--c) 70%, transparent);
  font-size: 7px;
  line-height: 1;
}
.gblip.today .gdot { width: 17px; height: 17px; font-size: 9px; }
.gblip .gpulse {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 17px; height: 17px;
  margin: -8.5px 0 0 -8.5px;
  border-radius: 50%;
  background: var(--c);
  animation: gPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes gPulse {
  0% { opacity: .7; transform: scale(.5); }
  70%, 100% { opacity: 0; transform: scale(2.8); }
}
.gblip .gsel {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 2px solid #F4F4F8;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  transform: scale(.6);
}
.gblip.sel { z-index: 5; }
.gblip.sel .gsel { opacity: .95; transform: scale(1); }
.gblip .glbl {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: #C9CDE2;
  text-shadow: 0 0 3px #0B0D1A, 0 0 6px #0B0D1A, 1px 1px 0 #0B0D1A;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
#map-svg.zoomed .glbl, .gblip.sel .glbl { opacity: 1; }
.gblip:focus-visible .gdot { outline: 2px solid var(--phos); outline-offset: 2px; }

/* "DU" marker with rotating sweep */
.gyou {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}
.gyou .ring {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  border: 1px solid rgba(88, 245, 183, .45);
}
.gyou .sweep {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(88, 245, 183, .4), transparent 70deg, transparent 360deg);
  animation: sweep 4s linear infinite;
}
.gyou .dot {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--phos);
  box-shadow: 0 0 10px var(--phos);
}
.gyou .lbl {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--phos);
  text-shadow: 0 0 4px #0B0D1A, 1px 1px 0 #0B0D1A;
}

/* HUD sits above gmap tiles */
.map-days, .map-zoom, .map-legend, #map-pop, #map-empty { z-index: 6; }
.map-legend { position: absolute; left: 10px; bottom: 10px; }
#map-pop { position: absolute; left: 0; right: 0; bottom: 0; }

/* ── Sperrstunde (geschlossen 05:00–20:00) ── */
#curfew {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 24px;
  text-align: center;
  background:
    radial-gradient(340px 240px at 50% 0%, rgba(88, 245, 183, .06), transparent 70%),
    radial-gradient(300px 220px at 85% 95%, rgba(255, 94, 156, .05), transparent 70%),
    var(--bg2);
}
#curfew.on { display: flex; }
.cf-radar { width: 120px; height: 120px; opacity: .9; }
.cf-radar svg { width: 100%; height: 100%; }
.cf-radar .sweep { transform-origin: 50% 50%; animation: sweep 2.8s linear infinite; }
.cf-word {
  font-family: var(--disp);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: .14em;
  margin-top: 6px;
}
.cf-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
}
.cf-clock {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--phos);
  text-shadow: 0 0 18px rgba(88, 245, 183, .35);
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.cf-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mut);
}
.cf-count b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.cf-quote {
  margin-top: 20px;
  width: 100%;
  max-width: 300px;
  min-height: 118px;
  border: 1px dashed var(--line2);
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(20, 23, 42, .6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color .2s;
}
.cf-quote:active { border-color: var(--phos); }
.cf-quote p {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}
.cf-quote span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--phos);
}
.cf-quote.in { animation: cfIn .45s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes cfIn { from { opacity: 0; transform: translateY(10px); } }
.cf-hint {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}
.cf-bouncer {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  transition: all .15s;
}
.cf-bouncer:hover { color: var(--phos); border-color: var(--phos); }

/* ── DJ Tracks & Audio Player ── */
.upload-tabs {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 14px;
  gap: 4px;
}
.upload-tabs button {
  flex: 1;
  padding: 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mut);
}
.upload-tabs button.on { background: var(--phos); color: var(--bg); font-weight: 700; }

.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed var(--line2);
  border-radius: 16px;
  padding: 24px 16px;
  cursor: pointer;
  text-align: center;
  font-size: 13.5px;
  transition: border-color .15s;
  min-height: 90px;
}
.upload-drop.drag, .upload-drop:hover { border-color: var(--phos); }
.upbar {
  width: 100%;
  height: 5px;
  background: var(--bg2);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 8px;
}
.upfill { height: 100%; background: var(--phos); border-radius: 5px; transition: width .25s; width: 0; }

/* track cards */
.track-card {
  background: var(--srf);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .15s;
}
.track-card:hover { border-color: var(--line2); }
.track-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
}
.waveform { flex-shrink: 0; border-radius: 6px; display: block; }
.track-info { flex: 1; min-width: 0; }
.track-title {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
  margin-top: 3px;
  flex-wrap: wrap;
}
.tbadge {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--c, var(--line2));
  color: var(--c, var(--mut));
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.track-desc {
  font-size: 12px;
  color: var(--dim);
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.track-acts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.tact {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--mut);
  transition: all .15s;
}
.tact.play { background: var(--phos); border-color: var(--phos); color: var(--bg); font-weight: 700; }
.tact.play:active { transform: scale(.9); }
.tact.ext:hover { border-color: var(--konzert); color: var(--konzert); }
.tact.del:hover { border-color: var(--danger); }

/* embed player */
.track-embed { padding: 0 13px 12px; }
.sc-embed {
  width: 100%;
  height: 166px;
  border-radius: 12px;
  display: block;
}
.sc-embed.yt { height: 200px; }
.ext-link {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--konzert);
  padding: 12px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  text-align: center;
}

/* inline player */
.track-player { padding: 0 13px 12px; }
.tprogress-wrap { position: relative; }
.tprogress-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--bg2);
  border-radius: 3px;
  overflow: hidden;
}
.tprogress-fill {
  height: 100%;
  background: var(--phos);
  border-radius: 3px;
  width: 0;
  transition: width .5s linear;
}

/* ── v2: Club Night Genre + Level-Locks ── */
:root { --clubnight: #2EE6CA; }
.chip.locked { opacity: .35; cursor: not-allowed; }
.chip.locked:hover { border-color: var(--line2); }

/* ── Audio setup / error card ── */
.audio-setup {
  border: 1px dashed var(--line2);
  border-radius: 18px;
  padding: 24px 20px;
  margin-top: 8px;
}
.audio-setup .lock-hero { font-size: 40px; }

/* ── Rechtliches: Legal rows, docs, footer ── */
.legal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--srf);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: border-color .15s;
}
.legal-row:hover { border-color: var(--line2); }
.legal-row .lr-ic {
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--srf2);
  font-size: 14px;
}
.legal-row .grow { flex: 1; min-width: 0; }
.legal-row .nm { font-weight: 700; font-size: 14px; }
.legal-row .st { font-family: var(--mono); font-size: 10px; color: var(--dim); margin-top: 2px; }
.legal-row .lr-arr { color: var(--dim); flex-shrink: 0; }

/* legal documents */
.legal-doc { padding-bottom: 8px; }
.legal-doc p { font-size: 13.5px; color: var(--mut); line-height: 1.6; margin-bottom: 10px; }
.legal-doc a { color: var(--konzert); }
.legal-muted { font-family: var(--mono); font-size: 11px; color: var(--dim) !important; margin-bottom: 16px !important; letter-spacing: .03em; }
.legal-h {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin: 18px 0 7px;
}
.legal-list { margin: 0 0 12px; padding-left: 18px; }
.legal-list li { font-size: 13px; color: var(--mut); line-height: 1.55; margin-bottom: 5px; }
.legal-doc code {
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--phos);
}
.legal-stand {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim) !important;
  letter-spacing: .06em;
  margin-top: 18px !important;
}
.legal-demo-note {
  font-size: 12px !important;
  color: var(--dim) !important;
  border: 1px dashed var(--line2);
  border-radius: 12px;
  padding: 11px 13px;
  margin-top: 12px !important;
  line-height: 1.55 !important;
}

/* Kontakt card */
.kontakt-card {
  border: 1px solid var(--line2);
  border-radius: 14px;
  overflow: hidden;
  margin: 4px 0 8px;
}
.kc-row {
  display: flex;
  gap: 12px;
  padding: 13px 14px;
  font-size: 13.5px;
}
.kc-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.kc-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  width: 70px;
  flex-shrink: 0;
  padding-top: 2px;
}
.kc-v { color: var(--ink); line-height: 1.5; }
.kc-v.link { color: var(--konzert); text-align: left; }

/* footer */
.legal-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-footer > span:first-child {
  font-family: var(--disp);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .1em;
}
.legal-footer > span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--dim);
  text-transform: uppercase;
}
.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  margin-top: 8px;
}
.legal-footer-links button {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mut);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-footer-links button:hover { color: var(--phos); }

/* ── DU marker: source-specific + locate button ── */
#mz-me { font-size: 14px; }
.gyou.src-gps .dot { background: var(--phos); box-shadow: 0 0 12px var(--phos); }
.gyou.src-gps .lbl { color: var(--phos); }
.gyou.src-ip .dot { background: var(--konzert); box-shadow: 0 0 10px var(--konzert); }
.gyou.src-ip .lbl { color: var(--konzert); }
.gyou.src-ip .ring, .gyou.src-ip .sweep { filter: hue-rotate(150deg); }
.gyou.src-default .dot { background: var(--mut); box-shadow: 0 0 8px var(--mut); }
.gyou.src-default .lbl { color: var(--mut); }
.gyou.src-default .sweep { opacity: .5; }
