@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;

  --bg: #070a10;
  --bg-elevated: #0c1018;
  --surface: rgba(14, 18, 28, 0.94);
  --surface-solid: #111722;
  --surface-soft: #151c28;
  --text: #f4f7fb;
  --muted: #8f9aab;
  --muted-2: #5e6878;
  --line: rgba(255, 255, 255, 0.075);
  /*
   * THEME
   * فقط همین یک مقدار را عوض کن؛ رنگ اصلی کل رابط از آن ساخته می‌شود.
   */
  --theme-color: #8dc8ff;

  --theme-soft: color-mix(in srgb, var(--theme-color) 15%, #111722);
  --theme-soft-2: color-mix(in srgb, var(--theme-color) 28%, #161d29);
  --theme-strong: color-mix(in srgb, var(--theme-color) 82%, white);
  --theme-deep: color-mix(in srgb, var(--theme-color) 22%, #05070b);
  --theme-glow: color-mix(in srgb, var(--theme-color) 24%, transparent);
  --theme-glow-strong: color-mix(in srgb, var(--theme-color) 42%, transparent);
  --theme-warm: color-mix(in srgb, var(--theme-color) 62%, #ffd08b);
  --theme-hot: color-mix(in srgb, var(--theme-color) 58%, #ff6579);

  --blue: var(--theme-color);
  --blue-strong: var(--theme-strong);
  --navy: var(--theme-deep);
  --danger: #ff5c68;
  --danger-soft: #241116;
  --success: #32c889;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
  --soft-shadow: 0 16px 46px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--theme-color) 16%, transparent), transparent 27rem),
    var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  direction: rtl;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-frame {
  width: min(100%, 430px);
  min-height: 100svh;
  margin-inline: auto;
  padding:
    max(24px, env(safe-area-inset-top))
    18px
    max(22px, env(safe-area-inset-bottom));
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.brand {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
}

.brand h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.8px;
  background: linear-gradient(100deg, var(--theme-soft-2) 0%, var(--theme-strong) 55%, var(--theme-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--theme-hot), var(--theme-warm));
  box-shadow: 0 0 0 5px var(--theme-glow);
}

.view {
  flex: 1;
  display: none;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
}

.view.is-visible {
  display: flex;
  animation: view-in 480ms cubic-bezier(.2,.8,.2,1) forwards;
}

.view.is-leaving {
  animation: view-out 260ms ease forwards;
}

.join-view {
  flex-direction: column;
  justify-content: center;
  padding-block: 18px 12px;
}

.hero-card,
.room-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-card {
  border-radius: 36px;
  min-height: 575px;
  padding: 44px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 40%),
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--theme-color) 12%, transparent), transparent 23%);
  pointer-events: none;
}

.orb {
  position: absolute;
  top: 104px;
  left: 50%;
  width: 130px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: saturate(1.05);
}

.orb::before,
.orb::after,
.orb span {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 0;
}

.orb::before {
  background:
    radial-gradient(circle at 68% 30%, var(--theme-warm), transparent 32%),
    radial-gradient(circle at 38% 65%, var(--theme-hot), transparent 35%),
    radial-gradient(circle at 65% 68%, var(--theme-strong), transparent 42%),
    var(--theme-soft-2);
  filter: blur(8px);
  animation: orb-morph 6s ease-in-out infinite alternate;
}

.orb::after {
  inset: -22px;
  background: radial-gradient(circle, var(--theme-glow), transparent 67%);
  filter: blur(14px);
}

.orb span {
  inset: 21px 12px 26px 24px;
  background: linear-gradient(145deg, var(--theme-hot), var(--theme-warm));
  filter: blur(13px);
  animation: orb-drift 4.5s ease-in-out infinite alternate;
}

.join-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 700;
}

.join-copy h2,
.room-topbar h2 {
  margin: 0;
  letter-spacing: -0.7px;
}

.join-copy h2 {
  font-size: 23px;
  line-height: 1.6;
  font-weight: 800;
}

.join-copy > p:last-child {
  max-width: 310px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.join-form {
  position: relative;
  z-index: 1;
}

.join-form label {
  display: block;
  margin: 0 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.input-shell {
  height: 70px;
  background: var(--surface-solid);
  border-radius: 22px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 8px 9px 8px 12px;
  box-shadow: var(--soft-shadow);
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.input-shell:focus-within {
  border-color: var(--theme-glow-strong);
  box-shadow: 0 16px 42px var(--theme-glow);
  transform: translateY(-1px);
}

.input-shell input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 8px;
  direction: rtl;
  text-align: right;
  font-size: 15px;
}

.input-shell input::placeholder {
  color: var(--muted-2);
}

.join-button {
  width: 48px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .38);
  transition: transform 160ms ease, opacity 160ms ease;
}

.join-button:active {
  transform: scale(.92);
}

.join-button:disabled {
  cursor: wait;
  opacity: .65;
}

.join-button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(180deg);
}

.form-message {
  min-height: 20px;
  margin: 8px 5px 0;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.7;
}

.footer-note {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.room-view {
  flex-direction: column;
  justify-content: center;
  padding-block: 10px;
}

.room-card {
  min-height: 650px;
  border-radius: 36px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.room-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: 50%;
  top: 150px;
  transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--theme-color) 10%, transparent), transparent 68%);
  pointer-events: none;
}

.room-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.room-topbar .eyebrow {
  text-align: right;
  margin-bottom: 4px;
}

.room-topbar h2 {
  font-size: 18px;
  font-weight: 800;
}

.room-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.connection-pill,
.capacity {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-inline: 10px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.connection-pill {
  color: #67dfa9;
  background: rgba(50, 200, 137, .11);
  gap: 6px;
}

.connection-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(50, 200, 137, .10);
}

.connection-pill.is-disconnecting {
  color: #f1b45c;
  background: #251b0e;
}

.connection-pill.is-disconnecting i {
  background: #f5ad42;
  animation: blink 700ms linear infinite;
}

.capacity {
  color: var(--muted);
  background: var(--surface-soft);
  direction: ltr;
}

.speaker-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 325px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 22px;
}

.speaker-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 145px;
  height: 145px;
  transform: translate(-50%, -67%);
  pointer-events: none;
}

.speaker-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--theme-color) 20%, transparent);
  opacity: 0;
}

.speaker-stage[data-speaking="true"] .speaker-rings span {
  animation: speaking-ring 1.8s ease-out infinite;
}

.speaker-stage[data-speaking="true"] .speaker-rings span:nth-child(2) {
  animation-delay: .45s;
}

.speaker-stage[data-speaking="true"] .speaker-rings span:nth-child(3) {
  animation-delay: .9s;
}

.speaker-avatar {
  width: 118px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: #fff;
  font-size: 33px;
  font-weight: 800;
  background:
    radial-gradient(circle at 66% 26%, var(--theme-warm), transparent 26%),
    radial-gradient(circle at 35% 66%, var(--theme-hot), transparent 34%),
    linear-gradient(145deg, var(--theme-warm), var(--theme-hot) 53%, var(--theme-strong));
  box-shadow:
    0 22px 48px var(--theme-glow),
    inset 0 0 28px rgba(255,255,255,.25);
  transition: transform 160ms ease, filter 160ms ease;
}

.speaker-avatar::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(145deg, var(--theme-strong), var(--theme-warm)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transform: scale(.9);
  transition: opacity 180ms ease, transform 180ms ease;
}

.speaker-stage[data-speaking="true"] .speaker-avatar {
  transform: scale(1.045);
  filter: saturate(1.12);
}

.speaker-stage[data-speaking="true"] .speaker-avatar::before {
  opacity: 1;
  transform: scale(1);
}

.speaker-stage strong {
  margin-top: 17px;
  font-size: 15px;
  font-weight: 800;
}

.speaker-stage small {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.voice-bars {
  height: 20px;
  display: flex;
  direction: ltr;
  align-items: center;
  gap: 3px;
  margin-top: 12px;
}

.voice-bars i {
  display: block;
  width: 3px;
  height: 5px;
  border-radius: 5px;
  background: var(--blue-strong);
  opacity: .25;
  transform-origin: center;
}

.speaker-stage[data-speaking="true"] .voice-bars i {
  opacity: .9;
  animation: voice-bar 620ms ease-in-out infinite alternate;
}

.speaker-stage[data-speaking="true"] .voice-bars i:nth-child(2) { animation-delay: 130ms; }
.speaker-stage[data-speaking="true"] .voice-bars i:nth-child(3) { animation-delay: 260ms; }
.speaker-stage[data-speaking="true"] .voice-bars i:nth-child(4) { animation-delay: 390ms; }

.participants {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.participant {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
}

.participant > span {
  max-width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.mini-avatar {
  width: 47px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(145deg, var(--theme-warm), var(--theme-strong));
  border: 2px solid var(--surface-solid);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .34);
  position: relative;
}

.participant[data-speaking="true"] .mini-avatar::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--theme-strong);
  border-radius: 50%;
  animation: mini-speaking 850ms ease-in-out infinite alternate;
}

.participant.is-empty {
  color: var(--muted-2);
}

.participant.is-empty .mini-avatar {
  color: var(--muted-2);
  background: var(--surface-soft);
  border: 1px dashed rgba(255,255,255,.12);
  box-shadow: none;
  font-weight: 500;
}

.control-dock {
  position: relative;
  z-index: 3;
  min-height: 84px;
  border-radius: 25px;
  padding: 12px 16px;
  background: rgba(17, 23, 34, .92);
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .34);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.control-button {
  width: 54px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 160ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.control-button:active {
  transform: scale(.9);
}

.control-button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mic-button {
  color: var(--navy);
  background: var(--theme-soft);
}

.mic-button .icon-muted {
  display: none;
}

.mic-button.is-muted {
  color: var(--muted);
  background: var(--surface-soft);
}

.mic-button.is-muted .icon-mic {
  display: none;
}

.mic-button.is-muted .icon-muted {
  display: block;
}

.button-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--theme-glow-strong);
  opacity: 0;
}

.mic-button.is-speaking .button-glow {
  animation: button-wave 1.2s ease-out infinite;
}

.leave-button {
  color: #fff;
  background: var(--danger);
  box-shadow: 0 10px 24px rgba(255, 92, 104, .22);
}

.leave-button svg {
  transform: rotate(136deg);
}

.control-hint {
  position: relative;
  z-index: 2;
  min-height: 34px;
  margin: 10px 4px 0;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

body.is-transitioning .room-card {
  animation: room-pulse 500ms ease;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes view-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(10px) scale(.985); }
}

@keyframes orb-morph {
  0% { transform: rotate(-8deg) scale(.96); border-radius: 44% 56% 58% 42% / 52% 44% 56% 48%; }
  100% { transform: rotate(10deg) scale(1.05); border-radius: 56% 44% 42% 58% / 43% 58% 42% 57%; }
}

@keyframes orb-drift {
  from { transform: translate(-7px, 6px) scale(.88) rotate(-10deg); }
  to { transform: translate(12px, -5px) scale(1.07) rotate(14deg); }
}

@keyframes speaking-ring {
  0% { opacity: .55; transform: scale(.76); }
  100% { opacity: 0; transform: scale(1.48); }
}

@keyframes voice-bar {
  from { height: 5px; }
  to { height: 18px; }
}

@keyframes mini-speaking {
  from { transform: scale(.96); opacity: .5; }
  to { transform: scale(1.08); opacity: 1; }
}

@keyframes button-wave {
  0% { opacity: .7; transform: scale(.86); }
  100% { opacity: 0; transform: scale(1.34); }
}

@keyframes blink {
  50% { opacity: .35; }
}

@keyframes room-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(.992); }
}

@media (min-width: 700px) {
  body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
  }

  .phone-frame {
    width: 430px;
    min-height: min(860px, calc(100vh - 48px));
    height: min(860px, calc(100vh - 48px));
    border-radius: 42px;
    background: rgba(9, 12, 19, .82);
    box-shadow: 0 38px 120px rgba(0, 0, 0, .55);
    border: 1px solid var(--line);
  }

  .room-card {
    min-height: 0;
    height: 100%;
  }
}

@media (max-height: 720px) {
  .brand {
    min-height: 58px;
  }

  .hero-card {
    min-height: 520px;
    padding-top: 34px;
  }

  .orb {
    top: 72px;
    width: 108px;
  }

  .room-card {
    min-height: 575px;
  }

  .speaker-stage {
    min-height: 270px;
  }

  .speaker-avatar {
    width: 102px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* LiveKit audio elements are playback-only and should never affect layout. */
.lk-remote-audio {
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* Phase 3 — dark polish / resilient states */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--theme-color) 8%, transparent), transparent 30rem),
    radial-gradient(circle at 85% 85%, color-mix(in srgb, var(--theme-color) 5%, transparent), transparent 34rem);
  opacity: .9;
}

.hero-card,
.room-card,
.input-shell,
.control-dock {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    var(--shadow);
}

.input-shell,
.control-dock {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    var(--soft-shadow);
}

.connection-pill.is-offline {
  color: #ff9aa2;
  background: rgba(255, 92, 104, .10);
}

.connection-pill.is-offline i {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 92, 104, .10);
}

.control-button:disabled,
.join-button:disabled {
  cursor: not-allowed;
  filter: saturate(.55);
  opacity: .55;
}

@supports not (color: color-mix(in srgb, white, black)) {
  :root {
    --theme-soft: #18283a;
    --theme-soft-2: #223a51;
    --theme-strong: #a8d7ff;
    --theme-deep: #0c1722;
    --theme-glow: rgba(141, 200, 255, .24);
    --theme-glow-strong: rgba(141, 200, 255, .42);
    --theme-warm: #b2cccf;
    --theme-hot: #9faed5;
  }
}


/* Phase 3 — iPhone / Safari / explicit state polish */
html,
body {
  min-height: 100%;
  overscroll-behavior-y: none;
}

body {
  min-height: 100dvh;
}

.phone-frame {
  min-height: 100dvh;
  touch-action: manipulation;
}

input,
button {
  -webkit-appearance: none;
  appearance: none;
}

.input-shell input {
  /* 16px prevents Safari iOS from zooming the page on focus. */
  font-size: 16px;
}

button {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.join-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.22);
  border-top-color: currentColor;
  animation: join-spin .72s linear infinite;
}

body.is-joining .join-button svg {
  display: none;
}

body.is-joining .join-button .join-spinner {
  display: block;
}

body.is-joining .orb::before {
  animation-duration: 1.4s;
}

body.is-joining .orb::after {
  animation: joining-orb-ring 1.25s ease-out infinite;
}

.form-message[data-tone="info"] {
  color: var(--theme-strong);
}

.form-message[data-tone="error"] {
  color: #ff9099;
}

.form-message[data-tone="success"] {
  color: #67dfa9;
}

.room-state-banner {
  position: relative;
  z-index: 5;
  width: 100%;
  min-height: 38px;
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.room-state-banner[hidden],
.audio-gate[hidden] {
  display: none !important;
}

.room-state-banner[data-state="reconnecting"] {
  color: #f1b45c;
  background: rgba(245, 173, 66, .08);
  border-color: rgba(245, 173, 66, .12);
}

.room-state-banner[data-state="offline"],
.room-state-banner[data-state="error"] {
  color: #ff9aa2;
  background: rgba(255, 92, 104, .08);
  border-color: rgba(255, 92, 104, .12);
}

.room-state-banner[data-state="connected"] {
  color: #67dfa9;
  background: rgba(50, 200, 137, .07);
  border-color: rgba(50, 200, 137, .10);
}

.state-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px currentColor;
  opacity: .65;
}

.room-state-banner[data-state="reconnecting"] .state-dot {
  animation: blink 700ms linear infinite;
}

.audio-gate {
  position: relative;
  z-index: 6;
  margin-top: 10px;
  width: 100%;
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--theme-color) 22%, transparent);
  border-radius: 16px;
  color: var(--theme-strong);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--theme-color) 9%, transparent),
      rgba(255,255,255,.025));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
}

.audio-gate:active {
  transform: scale(.985);
}

.audio-gate-icon {
  width: 26px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071019;
  background: var(--theme-strong);
  box-shadow: 0 0 22px var(--theme-glow);
  font-size: 13px;
  font-weight: 900;
}

.capacity.is-full {
  color: #ff9aa2;
  background: rgba(255, 92, 104, .10);
  box-shadow: inset 0 0 0 1px rgba(255, 92, 104, .08);
}

.participant.is-muted .mini-avatar {
  filter: saturate(.5) brightness(.82);
}

.participant.is-muted .mini-avatar::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  left: -4px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid var(--surface-solid);
  background:
    linear-gradient(135deg, transparent 45%, #ff9099 46%, #ff9099 54%, transparent 55%),
    var(--surface-soft);
  box-shadow: 0 5px 12px rgba(0,0,0,.28);
}

@keyframes join-spin {
  to { transform: rotate(360deg); }
}

@keyframes joining-orb-ring {
  0% { opacity: .15; transform: scale(.85); }
  70% { opacity: .65; }
  100% { opacity: 0; transform: scale(1.38); }
}

@supports (-webkit-touch-callout: none) {
  .phone-frame {
    /* Prevent layout jump around iOS Safari browser chrome. */
    min-height: -webkit-fill-available;
  }

  .control-dock {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .room-card,
  .hero-card {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}
