:root {
  --bg: #040404;
  --bg-soft: rgba(11, 6, 11, 0.86);
  --card: rgba(10, 10, 12, 0.76);
  --card-strong: rgba(13, 8, 14, 0.88);
  --border: rgba(248, 103, 248, 0.18);
  --border-strong: rgba(248, 103, 248, 0.36);
  --text: #f8f2fb;
  --muted: #c6afcc;
  --highlight: #f867f8;
  --highlight-strong: #d642d6;
  --warning: #ffb570;
  --danger: #ff7e9d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
  --glow: 0 0 0 1px rgba(248, 103, 248, 0.08), 0 0 28px rgba(248, 103, 248, 0.18);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 15px;
  --font-display: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.85)),
    radial-gradient(circle at 83% 14%, rgba(248, 103, 248, 0.18), transparent 20%),
    url("/assets/site-background.png") center center / cover no-repeat;
  opacity: 0.62;
}

body::after {
  z-index: 0;
  inset: auto auto -18vw -12vw;
  width: 44vw;
  height: 44vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 103, 248, 0.22), transparent 68%);
  filter: blur(70px);
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(290px, 370px) minmax(0, 1fr);
  gap: 26px;
  max-width: 1460px;
  margin: 0 auto;
  padding: 26px;
}

.sidebar,
.main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-block,
.panel,
.hero-card {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand-block {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(17, 9, 17, 0.9), rgba(6, 6, 6, 0.9)),
    var(--card);
}

.brand-block::after {
  content: "";
  position: absolute;
  inset: auto -10% -22% auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 103, 248, 0.2), transparent 70%);
  filter: blur(26px);
}

.brand-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 340px);
  margin: 14px 0 18px;
  filter: drop-shadow(0 0 24px rgba(248, 103, 248, 0.1));
}

.brand-block h1,
.hero-copy h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 2vw + 1.45rem, 3.35rem);
  line-height: 0.94;
  letter-spacing: 0.01em;
}

.brand-block p,
.hero-copy p,
.hint,
.activity-item {
  color: var(--muted);
}

.eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--highlight);
}

.panel,
.hero-card {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.grow {
  flex: 1;
}

.field-label,
.section-head h2 {
  font-size: 0.95rem;
  font-weight: 600;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.stack {
  display: grid;
  gap: 12px;
}

.text-input {
  width: 100%;
  border: 1px solid rgba(248, 103, 248, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  outline: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.text-input::placeholder {
  color: rgba(198, 175, 204, 0.54);
}

.text-input:focus {
  border-color: rgba(248, 103, 248, 0.75);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(248, 103, 248, 0.08);
  transform: translateY(-1px);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.primary-button {
  background: linear-gradient(135deg, #ff8dff, var(--highlight-strong));
  color: #240624;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(248, 103, 248, 0.28);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(248, 103, 248, 0.14);
  box-shadow: inset 0 0 0 1px rgba(248, 103, 248, 0.04);
}

.hero-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 240px;
  background: linear-gradient(115deg, rgba(7, 7, 8, 0.96) 12%, rgba(16, 8, 16, 0.92) 52%, rgba(28, 10, 28, 0.88) 100%);
  box-shadow: var(--shadow), var(--glow);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -8% -24% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 103, 248, 0.26), transparent 68%);
  filter: blur(22px);
}

.hero-copy,
.hero-actions {
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 420px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 20px;
}

.room-list,
.participant-grid,
.activity-log {
  display: grid;
  gap: 12px;
}

.room-card,
.participant-card,
.activity-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(248, 103, 248, 0.12);
  background: rgba(255, 255, 255, 0.035);
  padding: 14px 16px;
}

.room-card {
  text-align: left;
}

.room-card.active {
  border-color: var(--border-strong);
  background: rgba(248, 103, 248, 0.08);
  box-shadow: inset 0 0 0 1px rgba(248, 103, 248, 0.08);
}

.room-card strong,
.participant-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.room-meta,
.participant-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.participant-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.participant-card {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.participant-card.self {
  border-color: var(--border-strong);
  box-shadow: inset 0 0 0 1px rgba(248, 103, 248, 0.1);
}

.participant-card.muted .status-dot {
  background: var(--warning);
  box-shadow: 0 0 0 8px rgba(255, 181, 112, 0.08);
}

.participant-card .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 0 8px rgba(248, 103, 248, 0.08);
}

.count-pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(248, 103, 248, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
}

.empty-state {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(248, 103, 248, 0.2);
  color: var(--muted);
}

.activity-log {
  max-height: 440px;
  overflow: auto;
}

.activity-item {
  animation: slide-in 220ms ease;
}

.activity-time {
  color: rgba(198, 175, 204, 0.72);
  font-size: 0.8rem;
}

.audio-mount {
  display: none;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .page-shell,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    align-items: flex-start;
    flex-direction: column;
    background-position: left center;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px;
  }

  .brand-block,
  .panel,
  .hero-card {
    padding: 18px;
    border-radius: 22px;
  }

  .brand-logo {
    width: min(100%, 280px);
  }

  .hero-copy h2 {
    font-size: 2rem;
  }

  .participant-grid {
    grid-template-columns: 1fr;
  }
}
