:root {
  --black: #070710;
  --ink: #11111a;
  --cream: #fff6e9;
  --purple: #9a5cff;
  --indigo: #21104f;
  --blue: #08d9ff;
  --coral: #ff6f4f;
  --green: #c9ff35;
  --pink: #ff7bd5;
  --glass: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.24);
  --shadow: 12px 12px 0 #000;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--cream);
  background:
    radial-gradient(circle at 20% 15%, rgba(154, 92, 255, 0.48), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(8, 217, 255, 0.26), transparent 24rem),
    linear-gradient(135deg, #05050b 0%, #130a2f 48%, #05050b 100%);
  font-family: Inter, system-ui, sans-serif;
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  mix-blend-mode: overlay;
}

.ambient {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.44;
  pointer-events: none;
  animation: drift 11s ease-in-out infinite alternate;
}

.ambient-one {
  right: -8rem;
  top: 12rem;
  background: var(--coral);
}

.ambient-two {
  left: -9rem;
  bottom: 2rem;
  background: var(--blue);
  animation-delay: -4s;
}

.app-status {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  z-index: 20;
  max-width: min(520px, calc(100vw - 28px));
  padding: 10px 14px;
  border: 2px solid #000;
  border-radius: 999px;
  color: #000;
  background: var(--green);
  box-shadow: 5px 5px 0 #000;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.app-status.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.app-status[data-tone="error"] {
  background: var(--coral);
}

.shell {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  width: min(1440px, 100%);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  overflow: hidden;
}

main {
  min-height: 0;
  overflow: hidden;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  margin-bottom: clamp(16px, 3vh, 30px);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #000;
  border-radius: 12px;
  color: #000;
  background: var(--green);
  box-shadow: 4px 4px 0 #000;
}

.screen {
  display: none;
  height: 100%;
  min-height: 0;
  padding: clamp(12px, 2.6vh, 28px) 0 0;
  overflow: hidden;
}

.screen.active {
  display: block;
  animation: screenIn 480ms ease both;
}

.hero-grid,
.onboarding-layout,
.queue-layout,
.conversation-layout,
.listener-layout {
  display: grid;
  height: 100%;
  min-height: 0;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  overflow: hidden;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
}

.hero-copy h1 {
  max-width: 980px;
  margin: 18px 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(64px, 9vw, 124px);
  line-height: 0.88;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-copy p {
  max-width: 660px;
  color: rgba(255, 246, 233, 0.78);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.eyebrow,
.status-kicker,
.live-badge,
.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow {
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.live-dot,
.live-badge span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 24px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}

.nickname-panel {
  width: min(560px, 100%);
  margin: 32px 0 18px;
  padding: 14px;
  border: 2px solid #000;
  border-radius: 22px;
  color: #000;
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.nickname-panel label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.input-row,
.hero-actions,
.room-actions,
.listener-actions,
.queue-actions,
.choice-actions,
.queue-details,
.listener-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--cream);
  background: #101018;
  font-weight: 900;
  outline: none;
}

.onboarding-layout {
  grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 1.1fr);
}

.onboarding-card,
.choice-panel {
  padding: clamp(24px, 4vw, 42px);
}

.onboarding-card h2,
.choice-panel h2 {
  margin: 10px 0 24px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 0.96;
}

.onboarding-form {
  display: grid;
  gap: 14px;
}

.onboarding-form label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.onboarding-form .input-row input,
.onboarding-form select {
  width: 100%;
  min-width: 0;
  border: 2px solid #000;
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--cream);
  background: #101018;
  font-weight: 900;
  outline: none;
}

.choice-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.onboarding-side {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(14px, 2vw, 22px);
  overflow: hidden;
}

.choice-panel p {
  margin: 0 0 24px;
  color: rgba(255, 246, 233, 0.72);
  font-size: 22px;
  font-weight: 900;
}

.choice-panel.locked .choice-actions {
  pointer-events: none;
  opacity: 0.22;
  filter: blur(1px);
}

.choice-panel.locked::after {
  content: "Complete nickname and language to enter.";
  display: block;
  max-width: 260px;
  color: rgba(255, 246, 233, 0.68);
  font-weight: 800;
}

.ready-pulse {
  animation: readyPulse 520ms ease both;
}

.preview-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.preview-stack article {
  min-width: 0;
  padding: 20px;
  border: 2px solid #000;
  border-radius: 24px;
  color: #000;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 7px 7px 0 #000;
  overflow: hidden;
}

.preview-stack article:nth-child(2) {
  background: linear-gradient(135deg, var(--pink), var(--cream));
}

.preview-stack span,
.preview-stack p {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-stack strong {
  display: block;
  margin: 10px 0;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button,
.logo-action {
  min-height: 48px;
  border: 2px solid #000;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.jumbo-cta {
  min-height: 60px;
  padding-inline: 34px;
  font-size: 18px;
}

.primary-button {
  color: #000;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 6px 6px 0 #000;
}

.secondary-button,
.ghost-button,
.danger-button {
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.danger-button {
  color: #000;
  background: var(--coral);
  box-shadow: 6px 6px 0 #000;
}

.icon-button {
  width: 52px;
  padding: 0;
  color: #000;
  background: var(--pink);
}

.logo-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #000;
  background: var(--cream);
}

.mini-brand {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  box-shadow: 3px 3px 0 #000;
  font-size: 14px;
}

button:hover {
  transform: translate(-2px, -2px);
}

button:disabled {
  cursor: not-allowed;
}

button:disabled:hover {
  transform: none;
}

.primary-button:hover,
.danger-button:hover {
  box-shadow: 9px 9px 0 #000;
}

.hero-stage {
  position: relative;
  height: min(620px, 100%);
  min-height: 0;
  overflow: hidden;
}

.glass-card,
.brutal-card,
.speaker-card {
  border: 2px solid #000;
  border-radius: 30px;
}

.glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.brutal-card {
  color: #000;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.orbital-card {
  position: absolute;
  width: min(340px, 88%);
  padding: 24px;
  animation: floatCard 5s ease-in-out infinite;
}

.orbital-card h3 {
  margin: 14px 0 8px;
  font-size: 24px;
}

.orbital-card p {
  margin: 0;
  line-height: 1.4;
}

.card-one {
  top: 12%;
  left: 3%;
  transform: rotate(-5deg);
}

.card-two {
  right: 0;
  top: 34%;
  background: var(--green);
  animation-delay: -1.2s;
}

.card-three {
  left: 18%;
  bottom: 8%;
  color: #000;
  background: rgba(255, 255, 255, 0.72);
  animation-delay: -2.1s;
}

.room-meta {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
}

.mini-wave,
.wide-wave,
.radio-wave,
.voice-core {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mini-wave {
  justify-content: flex-start;
  margin-top: 18px;
}

.mini-wave span,
.wide-wave span,
.radio-wave span,
.voice-core > span,
.mini-bars i {
  display: block;
  width: 10px;
  border-radius: 999px;
  background: var(--blue);
  animation: wave 900ms ease-in-out infinite alternate;
}

.mini-wave span {
  height: 38px;
}

.mini-wave span:nth-child(2),
.wide-wave span:nth-child(2),
.radio-wave span:nth-child(2),
.voice-core span:nth-child(2) {
  animation-delay: -120ms;
}

.mini-wave span:nth-child(3),
.wide-wave span:nth-child(3),
.radio-wave span:nth-child(3),
.voice-core span:nth-child(3) {
  animation-delay: -240ms;
}

.mini-wave span:nth-child(4),
.wide-wave span:nth-child(4),
.radio-wave span:nth-child(4),
.voice-core span:nth-child(4) {
  animation-delay: -360ms;
}

.massive-badge {
  position: absolute;
  right: 8%;
  bottom: 19%;
  color: rgba(255, 255, 255, 0.12);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 900;
  line-height: 0.82;
  transform: rotate(7deg);
}

.massive-badge span,
.massive-badge strong {
  display: block;
}

.signal-rings {
  position: absolute;
  inset: 20% 12% auto auto;
  width: 220px;
  height: 220px;
}

.signal-rings span {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(201, 255, 53, 0.45);
  border-radius: 999px;
  animation: ring 2.8s ease-out infinite;
}

.signal-rings span:nth-child(2) {
  animation-delay: 0.6s;
}

.signal-rings span:nth-child(3) {
  animation-delay: 1.2s;
}

.queue-layout {
  grid-template-columns: minmax(360px, 0.8fr) minmax(420px, 1.2fr);
}

.queue-status {
  padding: 32px;
  max-height: 100%;
  overflow: hidden;
}

.queue-status h2,
.stage-heading h2 {
  margin: 10px 0 24px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(32px, 5.2vw, 68px);
  line-height: 0.96;
}

.search-orbit {
  position: relative;
  display: grid;
  width: min(240px, 42vh, 100%);
  aspect-ratio: 1;
  place-items: center;
  margin: clamp(12px, 3vh, 24px) auto;
}

.search-orbit span {
  position: absolute;
  inset: 12%;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 42% 58% 64% 36%;
  animation: rotate 6s linear infinite;
}

.search-orbit span:nth-child(2) {
  inset: 22%;
  border-color: rgba(8, 217, 255, 0.6);
  animation-duration: 4s;
  animation-direction: reverse;
}

.search-orbit span:nth-child(3) {
  inset: 2%;
  border-color: rgba(255, 111, 79, 0.52);
  animation-duration: 9s;
}

.search-core {
  display: grid;
  width: 100px;
  height: 100px;
  place-items: center;
  border: 2px solid #000;
  border-radius: 30px;
  color: #000;
  background: var(--green);
  box-shadow: 8px 8px 0 #000;
  font-size: 52px;
  font-weight: 900;
}

.queue-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: clamp(10px, 2vh, 18px) 0;
}

.queue-details div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.queue-details span {
  display: block;
  color: rgba(255, 246, 233, 0.62);
  font-size: 13px;
  font-weight: 800;
}

.queue-details strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.queue-inline-events {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 0;
}

.queue-inline-events span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(255, 246, 233, 0.82);
  font-size: 12px;
  font-weight: 900;
}

.wave-wall {
  position: relative;
  display: grid;
  height: 100%;
  min-height: 0;
  place-items: center;
  overflow: hidden;
}

.match-progress {
  position: absolute;
  top: 10%;
  right: 10%;
  width: min(260px, 40%);
  padding: 22px;
  border: 2px solid #000;
  border-radius: 28px;
  color: #000;
  background: var(--cream);
  box-shadow: 8px 8px 0 #000;
}

.match-progress span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.match-progress strong {
  display: block;
  margin: 8px 0 14px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.9;
}

.match-progress div {
  height: 12px;
  border: 2px solid #000;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.match-progress i {
  display: block;
  width: var(--match-progress, 42%);
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 260ms ease;
}

.wide-wave span {
  width: clamp(20px, 4vw, 44px);
  height: min(240px, 42vh);
  background: linear-gradient(var(--coral), var(--purple), var(--blue));
}

.stat-chip {
  position: absolute;
  top: 14%;
  left: 9%;
  padding: 14px 18px;
  border: 2px solid #000;
  border-radius: 999px;
  color: #000;
  background: var(--green);
  box-shadow: 6px 6px 0 #000;
  font-weight: 900;
}

.stat-chip.alt {
  top: auto;
  right: 7%;
  bottom: 18%;
  left: auto;
  background: var(--pink);
}

.conversation-layout {
  grid-template-columns: minmax(260px, 320px) 1fr;
  align-items: stretch;
}

.room-panel {
  align-self: stretch;
  padding: 24px;
  overflow: hidden;
}

.room-panel h2 {
  margin: 26px 0 8px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.96;
}

.activity-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: clamp(12px, 3vh, 24px) 0;
  list-style: none;
}

.activity-list li {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.reaction-field {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.reaction-field button {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid #000;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 4px 4px 0 #000;
  font-size: 24px;
  animation: floatCard 3s ease-in-out infinite;
}

.reaction-field button:nth-child(2) {
  animation-delay: -0.6s;
}

.reaction-field button:nth-child(3) {
  animation-delay: -1.2s;
}

.center-stage {
  min-width: 0;
}

.speaker-stage {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) minmax(180px, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 0;
}

.speaker-card {
  min-height: 0;
  height: min(360px, 48vh);
  padding: clamp(18px, 3vw, 28px);
  color: #000;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 260ms ease, transform 260ms ease, filter 260ms ease;
}

.speaker-a {
  background: linear-gradient(160deg, var(--green), #fff6e9 70%);
  transform: rotate(-2deg);
}

.speaker-a.active-speaker {
  box-shadow: 0 0 0 5px var(--green), 18px 18px 0 #000, 0 0 60px rgba(201, 255, 53, 0.52);
  filter: saturate(1.12);
}

.speaker-b {
  background: linear-gradient(160deg, var(--pink), #fff6e9 75%);
  transform: rotate(2deg);
}

.speaker-b.active-speaker {
  box-shadow: 0 0 0 5px var(--pink), 18px 18px 0 #000, 0 0 60px rgba(255, 123, 213, 0.52);
  filter: saturate(1.12);
}

.avatar {
  display: grid;
  width: clamp(72px, 9vw, 110px);
  height: clamp(72px, 9vw, 110px);
  place-items: center;
  margin-bottom: clamp(18px, 5vh, 54px);
  border: 2px solid #000;
  border-radius: 32px;
  background: #fff;
  box-shadow: 7px 7px 0 #000;
  font-size: 34px;
  font-weight: 900;
}

.speaker-card span {
  font-weight: 900;
  text-transform: uppercase;
}

.speaker-card h3 {
  margin: 10px 0;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 0.95;
}

.voice-core {
  position: relative;
  min-height: 0;
  height: min(280px, 42vh);
  border: 2px solid #000;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.voice-core > span {
  width: 16px;
  height: 110px;
  background: var(--green);
}

.voice-core strong {
  position: absolute;
  bottom: 30px;
  color: var(--green);
}

.room-actions {
  justify-content: center;
  margin-top: 32px;
}

.listener-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.listener-card {
  display: flex;
  min-width: 0;
  max-height: 100%;
  flex-direction: column;
  padding: clamp(26px, 5vw, 58px);
  overflow: hidden;
  background: linear-gradient(135deg, var(--green), var(--cream) 52%, var(--pink));
  transition: transform 280ms ease, opacity 280ms ease;
}

.listener-card.scan-in {
  animation: scanIn 420ms ease both;
}

.listener-side {
  align-self: stretch;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 36px);
  overflow: hidden;
}

.signal-meter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 18px);
  min-height: 42%;
}

.signal-meter span {
  display: block;
  width: clamp(18px, 3vw, 42px);
  height: clamp(120px, 28vh, 260px);
  border-radius: 999px;
  background: linear-gradient(var(--green), var(--blue), var(--pink));
  animation: wave 900ms ease-in-out infinite alternate;
}

.signal-meter span:nth-child(2),
.signal-meter span:nth-child(5) {
  animation-delay: -180ms;
}

.signal-meter span:nth-child(3),
.signal-meter span:nth-child(6) {
  animation-delay: -360ms;
}

.listener-meta-grid {
  display: grid;
  gap: 12px;
}

.listener-meta-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.listener-meta-grid span {
  display: block;
  color: rgba(255, 246, 233, 0.62);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.listener-meta-grid strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(20px, 2.4vw, 30px);
  overflow-wrap: anywhere;
}

.listener-top {
  justify-content: space-between;
  gap: 12px;
  color: #000;
  font-weight: 900;
  flex-wrap: wrap;
}

.listener-card .live-badge {
  color: #000;
}

.big-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  margin: clamp(20px, 5vh, 48px) 0 clamp(12px, 3vh, 22px);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(30px, 5.5vw, 72px);
  line-height: 0.94;
  min-width: 0;
  overflow: hidden;
}

.big-pair strong {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.big-pair strong:last-child {
  text-align: right;
}

.listener-card p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.radio-wave {
  justify-content: flex-start;
  height: clamp(68px, 15vh, 128px);
  margin-top: auto;
  overflow: hidden;
}

.radio-wave span {
  width: clamp(18px, 4vw, 42px);
  height: clamp(58px, 13vh, 110px);
  background: #000;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scanIn {
  from {
    opacity: 0.28;
    transform: translateX(32px) rotate(1deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes readyPulse {
  50% {
    transform: translate(-4px, -4px);
    box-shadow: 0 0 0 4px rgba(201, 255, 53, 0.72), 0 28px 90px rgba(0, 0, 0, 0.38);
  }
}

@keyframes floatCard {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -16px;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(34px, -28px, 0) scale(1.08);
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.6);
    opacity: 0.5;
  }
}

@keyframes ring {
  from {
    transform: scale(0.28);
    opacity: 0.9;
  }
  to {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wave {
  from {
    transform: scaleY(0.38);
  }
  to {
    transform: scaleY(1);
  }
}

@media (max-width: 980px) {
  .shell {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .screen {
    height: 100%;
    min-height: 0;
    padding-top: clamp(10px, 2vh, 18px);
  }

  .hero-grid,
  .onboarding-layout,
  .queue-layout,
  .conversation-layout,
  .listener-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    height: min(330px, 44vh);
  }

  .speaker-stage {
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 160px) minmax(150px, 1fr);
    gap: 10px;
  }

  .voice-core {
    height: min(130px, 18vh);
    border-radius: 28px;
  }

  .speaker-card {
    height: min(180px, 22vh);
  }

  .big-pair {
    grid-template-columns: 1fr;
    font-size: clamp(32px, 8vw, 58px);
    margin: clamp(14px, 3vh, 28px) 0 clamp(10px, 2vh, 16px);
  }

  .big-pair strong:last-child {
    text-align: left;
  }

  .listener-card {
    width: min(100%, 760px);
    justify-self: center;
  }

  .listener-side,
  .preview-stack {
    display: none;
  }
}

@media (max-width: 620px) {
  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .primary-button,
  .secondary-button,
  .danger-button,
  .icon-button,
  .logo-action {
    min-height: 44px;
  }

  .hero-copy h1 {
    max-width: 100%;
    margin: 12px 0;
    font-size: clamp(34px, 10vw, 46px);
    line-height: 0.94;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 10px;
  }

  .hero-actions,
  .input-row,
  .room-actions,
  .listener-actions,
  .queue-actions,
  .choice-actions,
  .listener-top {
    align-items: stretch;
    flex-direction: column;
  }

  .onboarding-card,
  .choice-panel {
    padding: 16px;
  }

  .onboarding-card h2,
  .choice-panel h2,
  .queue-status h2,
  .stage-heading h2 {
    font-size: clamp(28px, 9vw, 38px);
    margin-bottom: 14px;
  }

  .onboarding-form {
    gap: 9px;
  }

  .hero-stage {
    height: min(136px, 20vh);
  }

  .orbital-card {
    position: relative;
    inset: auto;
    width: 100%;
    margin-bottom: 10px;
    padding: 14px;
    border-radius: 22px;
  }

  .orbital-card h3 {
    font-size: 18px;
  }

  .orbital-card p,
  .mini-wave {
    display: none;
  }

  .card-two,
  .card-three {
    display: none;
  }

  .massive-badge,
  .signal-rings {
    display: none;
  }

  .queue-details {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 12px 0;
  }

  .search-orbit {
    width: min(150px, 24vh, 100%);
  }

  .wave-wall {
    display: none;
  }

  .queue-inline-events {
    display: flex;
  }

  .queue-inline-events span:nth-child(3) {
    display: none;
  }

  .room-panel,
  .queue-status,
  .listener-card {
    padding: 16px;
  }

  .room-panel {
    max-height: 190px;
  }

  .room-panel h2 {
    margin: 10px 0 4px;
  }

  .activity-list {
    gap: 6px;
    margin: 8px 0;
  }

  .activity-list li {
    padding: 8px 10px;
  }

  .reaction-field {
    gap: 8px;
    margin-top: 8px;
  }

  .reaction-field button {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }

  .stage-heading {
    display: none;
  }

  .speaker-stage {
    grid-template-columns: 1fr;
  }

  .speaker-card {
    height: min(116px, 15vh);
    padding: 12px;
    border-radius: 22px;
  }

  .speaker-card h3 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .speaker-card p {
    margin: 0;
    font-size: 12px;
  }

  .avatar {
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
    border-radius: 16px;
    font-size: 18px;
  }

  .voice-core {
    height: min(84px, 12vh);
  }

  .voice-core > span {
    width: 10px;
    height: 50px;
  }

  .listener-card {
    width: 100%;
    max-height: 100%;
    border-radius: 24px;
  }

  .big-pair {
    font-size: clamp(28px, 11vw, 42px);
  }

  .listener-card p {
    font-size: 17px;
  }

  .radio-wave {
    height: clamp(54px, 11vh, 86px);
  }

  .radio-wave span {
    width: clamp(14px, 6vw, 24px);
    height: clamp(46px, 10vh, 74px);
  }
}
