:root {
  --bg: #111014;
  --fg: #f7f3ed;
  --mute: #aaa5b3;
  --line: #37313f;
  --soft: #24202b;
  --live: #ff4d7d;
  --pink: #ff5b93;
  --blue: #647dff;
  --lime: #d7ff62;
  --orange: #ff9a54;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: radial-gradient(ellipse at 85% 0%, #31213c 0, transparent 38%), var(--bg); color: var(--fg);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.45; min-height: 100vh;
}
.shell { max-width: 560px; margin: 0 auto; min-height: 100vh; }
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; position: sticky; top: 0; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 5; border-bottom: 1px solid var(--line);
  background: rgba(17,16,20,.88);
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: .14em; color: var(--fg); text-decoration: none; }
#head-right { font-size: 14px; }
#head-right a, #head-right .who { color: var(--fg); font-weight: 600; text-decoration: none; }
main { padding: 20px 20px calc(110px + env(safe-area-inset-bottom)); }

h1 { font-size: clamp(40px, 11vw, 64px); line-height: .92; letter-spacing: -.055em; font-weight: 900; margin-bottom: 18px; white-space: pre-line; }
.hero-kicker { color: var(--lime); font-size: 10px; font-weight: 900; letter-spacing: .22em; margin: 18px 0 12px; }
.home-title { background: linear-gradient(105deg,#fff 10%,#ff7cad 48%,#a7b3ff 88%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin: 28px 0 12px; }
p.lead { color: var(--mute); margin-bottom: 20px; }
a { color: var(--fg); }
button, .btn { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--fg); padding: 14px 24px;
  background: linear-gradient(105deg,var(--pink),#8d75ff); color: #160f1c; text-decoration: none; font-weight: 850; font-size: 15px; border: 0; border-radius: 14px;
}
.btn.ghost { background: #282330; color: var(--fg); border: 1px solid #554b60; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .4; cursor: default; }
.linkbtn { text-decoration: underline; }

/* Genre-Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 -20px 18px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--fg); padding: 7px 14px; font-size: 13px; font-weight: 600; border-radius: 999px; background: var(--bg); }
.chip.on { background: var(--lime); color: #17151a; border-color: var(--lime); }

/* Raum-Raster */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { text-decoration: none; color: inherit; display: block; background: #1d1922; padding: 9px; border: 1px solid #37313f; border-radius: 22px; transition: transform .18s ease, border-color .18s ease; }
.card:active { transform: scale(.98); border-color: var(--pink); }
.cover { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--fg); }
.cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover.dark { background: linear-gradient(135deg,#ff5b93,#8b70ff); border: 0; border-radius: 18px; }
.cover.dark rect { fill: #17131d; }
.cover.light { background: linear-gradient(135deg,#d7ff62,#59c9d4); border: 0; border-radius: 18px; }
.cover.light rect { fill: #17131d; }
.cover rect { transform-box: fill-box; transform-origin: 50% 100%; animation: eq 1.7s ease-in-out infinite alternate; }
@keyframes eq { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .cover rect { animation: none; } .dot { animation: none; } }
.badge-live {
  position: absolute; top: 8px; left: 8px; z-index: 1; background: #17131d; color: #fff; border: 1px solid #fff; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 2px 7px; display: flex; align-items: center; gap: 5px;
}
.viewers {
  position: absolute; top: 8px; right: 8px; z-index: 1; background: var(--lime); color: #17131d; border: 0; border-radius: 999px;
  font-size: 11px; font-weight: 700; padding: 2px 7px;
}
.card-body { padding: 8px 2px 0; }
.card-title { font-weight: 800; font-size: 16px; letter-spacing: -.01em; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { color: var(--mute); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.empty { grid-column: 1 / -1; color: var(--mute); padding: 32px 0; text-align: center; }

/* Raum-Detail */
.back { display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none; margin-bottom: 14px; }
.cover.big { aspect-ratio: 16 / 10; margin-bottom: 18px; }
.meta { color: var(--mute); font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.meta strong { color: var(--fg); letter-spacing: .08em; }
.code { font-family: ui-monospace, Menlo, monospace; letter-spacing: .2em; border: 1px solid var(--fg); padding: 1px 7px; font-size: 13px; color: var(--fg); }
.hostrow { display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; font-weight: 600; }
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--fg); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; letter-spacing: .04em;
}
.avatar.lg { width: 84px; height: 84px; font-size: 26px; }
.actions { display: grid; gap: 10px; margin: 20px 0; }
.people { list-style: none; display: grid; gap: 10px; }
.people li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.people .tag { margin-left: auto; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--fg); padding: 2px 8px; }
.note { border: 1px solid var(--line); padding: 14px; color: var(--mute); font-size: 14px; margin-top: 28px; }

/* Formulare */
form { display: grid; gap: 14px; }
label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); display: grid; gap: 6px; font-weight: 600; }
input, textarea, select { font: inherit; font-size: 16px; padding: 13px; border: 1px solid #51495a; background: #211d27; color: var(--fg); border-radius: 12px; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--fg); outline-offset: 1px; }
textarea { min-height: 96px; resize: vertical; }
.error { color: var(--live); font-size: 14px; font-weight: 600; }
.profilehead { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.profilehead .name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }

/* Untere Tab-Leiste */
#tabbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 8;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: rgba(22,19,27,.94); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}
#tabbar a { text-decoration: none; color: var(--mute); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 10px 0; }
#tabbar a.on { color: var(--fg); }
#tabbar a.go {
  width: 60px; height: 44px; background: var(--lime); color: #17131d; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 300; letter-spacing: 0; padding: 0; line-height: 1; margin: 0 12px;
}

#toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--fg); color: var(--bg); padding: 12px 20px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10; max-width: 90vw;
}
#toast.show { opacity: 1; }

/* VYBE colorful live surface */
.grid { gap: 13px; }
.cover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.card-title { font-size: 15px; }
.card-sub { color: #b7afc1; }
.note { border: 1px solid #51495a; background: #211d27; border-radius: 14px; color: #c4bdca; }
.people li { padding: 8px 0; }
.avatar { background: linear-gradient(135deg,var(--pink),var(--blue)); color: #17131d; }
.audio-start { background: linear-gradient(100deg,var(--lime),#8de4c2); color: #17131d; }
.actions { gap: 10px; }



/* VYBE 1.4 — Colorful Underground / Creative Editorial */
:root {
  --bg: #0c0b12;
  --fg: #f8f6ff;
  --mute: #aaa6bb;
  --line: rgba(255,255,255,.13);
  --soft: #1b1825;
  --live: #ff4d91;
  --pink: #ff4d91;
  --blue: #7385ff;
  --lime: #d7ff63;
  --orange: #ff9a54;
}
html { background: var(--bg); }
body {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(255,77,145,.16), transparent 34rem),
    radial-gradient(ellipse at 90% 12%, rgba(115,133,255,.18), transparent 38rem),
    var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shell { max-width: 1180px; }
.top {
  padding: 18px clamp(20px,4vw,48px);
  background: rgba(12,11,18,.82);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-size: 24px;
  letter-spacing: .2em;
  font-weight: 950;
  background: linear-gradient(100deg,#fff 10%,#ff6ca5 55%,#a7b3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
main { padding: 30px clamp(20px,4vw,48px) 130px; }
h1 {
  font-size: clamp(46px,8vw,88px);
  letter-spacing: -.075em;
  line-height: .9;
  max-width: 900px;
}
h2 {
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--lime);
  margin-top: 34px;
}
p.lead { color: #c6c1d2; max-width: 650px; font-size: 16px; }
a { transition: opacity .18s ease, transform .18s ease, border-color .18s ease; }
button, .btn, a.btn {
  border-radius: 999px;
  font-weight: 800;
}
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
input, textarea, select {
  background: #171421 !important;
  color: var(--fg) !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
}
.card, .room-card, .set-card, .event-card, .panel, .tile {
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
#tabbar {
  max-width: 560px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: rgba(23,20,33,.88);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
}
#toast {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: #211b2c;
}
.avatar { border: 2px solid rgba(255,255,255,.22); }
@media (min-width: 760px) {
  .shell { width: min(100% - 32px, 1180px); }
  main { padding-top: 48px; }
  .top { border-radius: 0 0 20px 20px; }
  #tabbar { bottom: 24px; }
}
@media (max-width: 759px) {
  .shell { width: 100%; }
  main { padding-top: 24px; }
}

.home-title { background: linear-gradient(100deg,#fff 8%,#ff70a9 48%,#9aa7ff 92%); }
.hero-kicker { color: var(--lime); }
button, .button, .primary {
  box-shadow: 0 8px 26px rgba(255,77,145,.14);
}
::selection { background: rgba(255,77,145,.38); color: white; }
