: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; }


/* VYBE v2 — editorial underground redesign (keeps existing app/audio logic) */
:root{
  --bg:#0b0a10; --fg:#f8f6ff; --mute:#b7b0c5; --line:rgba(255,255,255,.15);
  --pink:#ff4f9a; --blue:#7e83ff; --lime:#d8ff58; --orange:#ff9855;
}
html,body{min-height:100%; overflow-x:hidden}
body{
  background:
    radial-gradient(ellipse at 12% 18%,rgba(255,79,154,.20),transparent 32rem),
    radial-gradient(ellipse at 88% 38%,rgba(126,131,255,.19),transparent 34rem),
    linear-gradient(145deg,#100d17 0%,#171020 52%,#0b0a10 100%);
}
.shell{width:min(100%,1280px);max-width:1280px;margin:0 auto}
.top{
  padding:22px clamp(20px,5vw,64px);
  background:rgba(11,10,16,.82);
  border-bottom:1px solid var(--line);
}
.logo{font-size:clamp(23px,3vw,30px);letter-spacing:.28em;font-weight:950}
main{padding:clamp(28px,5vw,72px) clamp(20px,5vw,64px) 140px}
.hero-kicker{
  font-size:11px;letter-spacing:.28em;margin:8px 0 22px;
  color:var(--lime);font-weight:900
}
/* Critical fix: the gradient belongs to the letters, not the whole heading box. */
h1.home-title{
  display:block; width:100%; max-width:1040px;
  margin:0 0 22px;
  font-size:clamp(58px,10.5vw,132px);
  line-height:.82; letter-spacing:-.085em; font-weight:950;
  white-space:pre-line;
  background:linear-gradient(100deg,#fff 0%,#ff78b1 42%,#9ba7ff 82%,#d8ff58 115%) !important;
  -webkit-background-clip:text !important;background-clip:text !important;
  -webkit-text-fill-color:transparent;
  color:transparent !important;
  filter:drop-shadow(0 10px 28px rgba(255,79,154,.10));
}
p.lead{
  max-width:660px;color:#d0c9d9;
  font-size:clamp(16px,2vw,21px);line-height:1.55;margin-bottom:30px
}
.chips{
  display:flex;flex-wrap:wrap;overflow:visible;
  gap:9px;margin:0 0 28px;padding:0;
}
.chip{
  flex:0 1 auto;white-space:nowrap;
  border:1px solid rgba(255,255,255,.58);
  background:rgba(12,10,17,.62);padding:10px 17px;
  font-size:13px;border-radius:999px;transition:.18s ease
}
.chip.on{background:var(--lime);color:#17131d;border-color:var(--lime)}
.grid{grid-template-columns:repeat( auto-fit,minmax(min(100%,235px),1fr));gap:18px}
.card{
  padding:11px;background:linear-gradient(150deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
  border:1px solid rgba(255,255,255,.15);border-radius:24px;
  box-shadow:0 22px 65px rgba(0,0,0,.24)
}
.card:hover{transform:translateY(-4px);border-color:rgba(255,255,255,.4)}
.cover{aspect-ratio:1.12/1;border:0}
.cover.dark{background:linear-gradient(135deg,#ff4f9a 0%,#9b69e8 55%,#788bff 100%)}
.cover.light{background:linear-gradient(135deg,#d8ff58,#59d6c0 60%,#7e83ff)}
.card-body{padding:13px 5px 5px}
.card-title{font-size:18px}
.card-sub{font-size:13px;color:#c0b8cc}
.empty{
  text-align:left;padding:24px 26px;min-height:108px;
  display:flex;align-items:center;justify-content:flex-start;
  border:1px solid rgba(255,255,255,.15);border-radius:22px;
  background:linear-gradient(115deg,rgba(255,79,154,.10),rgba(126,131,255,.10));
  color:#d0c9d9;font-size:16px
}
#tabbar{
  width:min(calc(100% - 32px),560px);max-width:560px;
  bottom:max(14px,env(safe-area-inset-bottom));
  border:1px solid rgba(255,255,255,.17);border-radius:24px;
  background:rgba(18,15,26,.88);box-shadow:0 20px 70px rgba(0,0,0,.5);
  padding:9px 14px
}
#tabbar a.go{width:64px;height:54px;border-radius:18px;background:var(--lime);box-shadow:0 8px 28px rgba(216,255,88,.18)}
#head-right a{font-size:14px;padding:10px 0}
form{max-width:560px}
.btn{border-radius:999px}
.note{background:rgba(255,255,255,.045);border-radius:18px}
@media(min-width:760px){
  .top{padding-top:26px;padding-bottom:26px}
  main{min-height:calc(100vh - 90px)}
  .hero-kicker{margin-top:20px}
  #tabbar{bottom:22px}
}
@media(max-width:520px){
  main{padding:28px 20px 132px}
  h1.home-title{font-size:clamp(54px,15vw,82px);letter-spacing:-.08em}
  .chips{gap:8px}
  .chip{padding:9px 13px;font-size:12px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .card{padding:8px;border-radius:19px}
  .cover{border-radius:15px}
  .card-title{font-size:15px}
  .card-sub{font-size:11px}
}
@media(max-width:360px){
  .grid{grid-template-columns:1fr}
  h1.home-title{font-size:52px}
}
