:root {
  color-scheme: dark;
  --bg: #090b12;
  --panel: rgba(18, 22, 35, 0.88);
  --panel-strong: #121827;
  --text: #f7f3eb;
  --muted: #b7b0a5;
  --accent: #f7b955;
  --accent-strong: #f09a31;
  --danger: #ff7a7a;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(247, 185, 85, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(121, 92, 255, 0.22), transparent 26rem),
    linear-gradient(135deg, #090b12 0%, #12151f 55%, #1b1420 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.room-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  align-items: center;
  gap: 24px;
}

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

.hero-card {
  max-width: 720px;
  padding: clamp(28px, 5vw, 56px);
}

.meeting-card {
  min-height: min(760px, calc(100vh - 96px));
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 10vw, 6.8rem);
  letter-spacing: -0.08em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.04em;
}

.room-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.join-form {
  margin-top: 34px;
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.field input:focus {
  border-color: rgba(247, 185, 85, 0.8);
  box-shadow: 0 0 0 4px rgba(247, 185, 85, 0.12);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 20px;
  color: var(--text);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #231407;
  font-weight: 800;
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.status {
  min-height: 24px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.status[data-tone="error"] {
  color: var(--danger);
}

.status[data-tone="success"] {
  color: #8ff0b8;
}

.meeting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 18px;
}

#music-room {
  flex: 1;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel-strong);
}

[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .room-shell {
    width: min(100% - 20px, 1120px);
    padding: 24px 0;
  }

  .hero-card,
  .meeting-card {
    border-radius: 22px;
  }

  .hero-card {
    padding: 24px;
  }

  .actions,
  .meeting-header {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }
}
