:root {
  color-scheme: dark;
  --ink: #f4f8f6;
  --muted: #8da19a;
  --soft: #b8c7c1;
  --panel: rgba(15, 30, 25, 0.78);
  --panel-solid: #10221c;
  --line: rgba(210, 235, 225, 0.12);
  --green: #66f2b3;
  --green-deep: #19c982;
  --mint: #a9ffd5;
  --danger: #ff6868;
  --danger-deep: #e03f46;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #07130f;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -15%, rgba(38, 154, 107, 0.18), transparent 42%),
    linear-gradient(155deg, #081711 0%, #07110d 55%, #050c09 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 360px;
  height: 360px;
  pointer-events: none;
  filter: blur(1px);
  opacity: 0.5;
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(96, 239, 174, 0.08);
  border-radius: 50%;
  inset: 18%;
}

.ambient::after {
  inset: 36%;
}

.ambient-one {
  top: 12%;
  left: -250px;
  background: radial-gradient(circle, rgba(50, 211, 140, 0.14), transparent 66%);
}

.ambient-two {
  right: -260px;
  bottom: 5%;
  background: radial-gradient(circle, rgba(75, 228, 169, 0.12), transparent 66%);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  overflow: hidden;
  border: 1px solid rgba(169, 255, 213, 0.24);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(83, 239, 171, 0.17), rgba(16, 52, 40, 0.45));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark span {
  width: 3px;
  border-radius: 4px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(102, 242, 179, 0.45);
}

.brand-mark span:nth-child(1) { height: 9px; }
.brand-mark span:nth-child(2) { height: 17px; }
.brand-mark span:nth-child(3) { height: 12px; }

.locale-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--soft);
  background: rgba(18, 37, 30, 0.64);
  cursor: pointer;
}

.locale-button svg {
  width: 17px;
  height: 17px;
}

.home-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(54px, 10vh, 92px) 0 20px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(103, 240, 178, 0.16);
  border-radius: 999px;
  color: #bdeed7;
  background: rgba(25, 75, 56, 0.24);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(102, 242, 179, 0.1), 0 0 14px rgba(102, 242, 179, 0.65);
}

.home-screen h1 {
  display: flex;
  flex-direction: column;
  margin: 23px 0 17px;
  font-size: clamp(43px, 12vw, 66px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.gradient-text {
  padding: 3px 0 8px;
  color: transparent;
  background: linear-gradient(95deg, #effff7 2%, #82f6be 50%, #c6ffe3 95%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.language-prompt {
  width: 100%;
  margin-top: clamp(40px, 7vh, 64px);
  text-align: left;
}

.field-label,
.lobby-fields label > span {
  display: block;
  margin: 0 0 10px;
  color: #a9bbb4;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.language-card {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 18px;
  gap: 11px;
  align-items: center;
  min-height: 78px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: left;
  background: rgba(14, 29, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: 160ms ease;
}

.language-card:hover {
  border-color: rgba(102, 242, 179, 0.26);
  transform: translateY(-1px);
}

.language-card.selected {
  border-color: rgba(102, 242, 179, 0.72);
  background: linear-gradient(145deg, rgba(29, 87, 64, 0.48), rgba(14, 35, 28, 0.76));
  box-shadow: inset 0 0 0 1px rgba(102, 242, 179, 0.08), 0 12px 34px rgba(0, 0, 0, 0.16);
}

.language-code {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  color: #d9ffeb;
  background: rgba(69, 206, 143, 0.12);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.03em;
}

.language-code.zh {
  color: #e2fff1;
  font-size: 20px;
}

.language-card strong,
.language-card small {
  display: block;
}

.language-card strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.language-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-ring {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(184, 199, 193, 0.32);
  border-radius: 50%;
}

.selected .radio-ring {
  border-color: var(--green);
}

.selected .radio-ring span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.primary-button {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  border: 0;
  border-radius: 17px;
  color: #05140d;
  background: linear-gradient(100deg, #84fbc3, #54eca9 68%, #76f4b9);
  box-shadow: 0 16px 36px rgba(47, 221, 145, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  font-size: 16px;
  font-weight: 760;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.primary-button:hover { filter: brightness(1.04); transform: translateY(-1px); }
.primary-button:active { transform: scale(0.99); }
.primary-button:disabled { cursor: wait; filter: saturate(0.45); opacity: 0.65; }

.primary-button svg {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.privacy-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 17px;
  color: #738a81;
  font-size: 11px;
}

.privacy-note svg { width: 15px; height: 15px; }

.steps {
  display: grid;
  grid-template-columns: 1fr 20px 1fr 20px 1fr;
  align-items: start;
  width: 100%;
  margin-top: clamp(44px, 7vh, 68px);
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.steps div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.steps span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(102, 242, 179, 0.2);
  border-radius: 9px;
  color: var(--green);
  background: rgba(61, 184, 126, 0.08);
  font-size: 11px;
  font-weight: 760;
}

.steps p {
  margin: 0;
  color: #73877f;
  font-size: 10px;
  line-height: 1.35;
}

.steps i {
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, transparent, rgba(102, 242, 179, 0.24), transparent);
}

.call-screen {
  padding-top: 18px;
}

.call-topbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.icon-button,
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--soft);
  background: rgba(16, 35, 28, 0.68);
  cursor: pointer;
}

.icon-button { width: 42px; padding: 0; }
.icon-button svg { width: 21px; height: 21px; }

.share-button {
  gap: 7px;
  padding: 0 12px;
  color: #bdf4d8;
  font-size: 12px;
  font-weight: 680;
}

.share-button svg { width: 17px; height: 17px; }

.call-heading {
  min-width: 0;
  text-align: center;
}

.call-heading span {
  display: block;
  margin-bottom: 2px;
  color: #6f877e;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.call-heading h1 {
  overflow: hidden;
  margin: 0;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compatibility-banner {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 190, 99, 0.22);
  border-radius: 13px;
  color: #f4d29e;
  background: rgba(112, 67, 20, 0.2);
  font-size: 12px;
  line-height: 1.45;
}

.lobby-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(34px, 6vh, 58px);
}

.lobby-orbit {
  position: relative;
  width: 178px;
  height: 178px;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(102, 242, 179, 0.12);
  border-radius: 50%;
  inset: 13px;
}

.ring-two {
  border-style: dashed;
  inset: 40px;
  animation: orbit 18s linear infinite;
}

.lobby-avatar,
.avatar {
  display: grid;
  place-items: center;
  border: 1px solid rgba(135, 252, 194, 0.23);
  border-radius: 24px;
  color: #ddffed;
  background: linear-gradient(145deg, #1d503d, #102c22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-weight: 760;
}

.lobby-avatar {
  position: absolute;
  top: 37px;
  left: 27px;
  width: 64px;
  height: 64px;
  transform: rotate(-7deg);
}

.lobby-avatar.second {
  top: 75px;
  right: 23px;
  left: auto;
  color: #effff8;
  background: linear-gradient(145deg, #254438, #142820);
  font-size: 23px;
  transform: rotate(7deg);
}

.orbit-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.spark-one { top: 25px; right: 35px; }
.spark-two { bottom: 24px; left: 47px; width: 4px; height: 4px; }

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

.lobby-panel h2 {
  margin: 24px 0 8px;
  font-size: 28px;
  letter-spacing: -0.045em;
}

.lobby-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.onboarding-progress {
  display: grid;
  grid-template-columns: auto minmax(28px, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-top: 30px;
  color: #9bb0a8;
}

.onboarding-progress div {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}

.onboarding-progress span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(102, 242, 179, 0.32);
  border-radius: 8px;
  color: var(--green);
  background: rgba(50, 177, 119, 0.1);
  font-size: 10px;
}

.onboarding-progress i {
  height: 1px;
  background: linear-gradient(90deg, rgba(102, 242, 179, 0.3), var(--line));
}

.lobby-fields {
  width: 100%;
  margin-top: 25px;
}

.lobby-fields label { display: block; min-width: 0; }

select {
  width: 100%;
  min-height: 51px;
  padding: 0 35px 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background-color: rgba(16, 35, 28, 0.88);
  font-size: 16px;
}

.voice-picker {
  width: 100%;
  min-width: 0;
  margin: 25px 0 0;
  padding: 0;
  border: 0;
}

.voice-picker legend {
  padding: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.voice-picker-toolbar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  margin: 6px 0 14px;
}

.voice-picker-toolbar > p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.voice-carousel-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
}

.voice-carousel-controls > span {
  margin-right: 3px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.voice-carousel-controls button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--soft);
  background: rgba(18, 39, 31, 0.86);
  cursor: pointer;
}

.voice-carousel-controls button:hover {
  border-color: rgba(102, 242, 179, 0.42);
  color: var(--green);
}

.voice-carousel-controls svg {
  width: 17px;
  height: 17px;
}

.voice-options {
  display: grid;
  grid-auto-columns: minmax(168px, 48%);
  grid-auto-flow: column;
  gap: 10px;
  padding: 2px 2px 9px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.voice-options.dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.voice-options.dragging * {
  pointer-events: none;
}

.voice-option {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(14, 31, 24, 0.76);
  scroll-snap-align: start;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.voice-option.selected {
  border-color: rgba(102, 242, 179, 0.72);
  background: linear-gradient(145deg, rgba(29, 87, 64, 0.5), rgba(14, 35, 28, 0.84));
  box-shadow: inset 0 0 0 1px rgba(102, 242, 179, 0.07);
}

.voice-choice {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 17px;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 86px;
  padding: 11px;
  border: 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.voice-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(129, 246, 188, 0.17);
  border-radius: 13px;
  color: #caffdf;
  background: rgba(63, 181, 125, 0.12);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.04em;
}

.voice-details {
  min-width: 0;
}

.voice-details strong,
.voice-details small {
  display: block;
}

.voice-details strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.voice-details small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.voice-preview-button {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: calc(100% - 20px);
  min-height: 34px;
  margin: 0 10px 10px;
  border: 1px solid rgba(102, 242, 179, 0.14);
  border-radius: 10px;
  color: #9ceac2;
  background: rgba(59, 157, 111, 0.08);
  font-size: 10px;
  font-weight: 680;
  cursor: pointer;
}

.voice-preview-button:hover,
.voice-preview-button.playing,
.voice-preview-button.previewed {
  color: #07130f;
  background: var(--green);
}

.voice-preview-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.voice-preview-button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke-width: 1.4;
}

.join-button { margin-top: 18px; }

.active-call {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 126px);
  padding-top: 28px;
}

.call-status {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  color: #a9bbb4;
  font-size: 12px;
}

.status-dot { width: 6px; height: 6px; }
.status-dot.waiting { background: #e7bb73; box-shadow: 0 0 0 4px rgba(231, 187, 115, 0.1); }
.status-dot.error { background: var(--danger); box-shadow: 0 0 0 4px rgba(255, 104, 104, 0.1); }

.latency-pill {
  padding: 3px 7px;
  border: 1px solid rgba(102, 242, 179, 0.15);
  border-radius: 999px;
  color: #8eeec0;
  background: rgba(31, 111, 79, 0.18);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.people-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: center;
  margin-top: clamp(25px, 5vh, 45px);
}

.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.avatar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  margin-bottom: 13px;
}

.avatar {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  font-size: 16px;
}

.avatar.peer {
  color: #effff7;
  background: linear-gradient(145deg, #29463b, #14271f);
  font-size: 25px;
}

.wave-ring {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(102, 242, 179, 0.28);
  border-radius: 32px;
  inset: 1px;
  opacity: 0;
  transform: scale(0.8);
}

.speaking .wave-ring {
  animation: voicePulse 1.15s ease-out infinite;
}

@keyframes voicePulse {
  0% { opacity: 0.7; transform: scale(0.78); }
  100% { opacity: 0; transform: scale(1.12); }
}

.person-card strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-card small {
  margin-top: 4px;
  color: #6f847c;
  font-size: 10px;
}

.muted-badge,
.peer-state {
  margin-top: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #859a92;
  background: rgba(120, 143, 134, 0.1);
  font-size: 8px;
  font-weight: 680;
  text-transform: uppercase;
}

.peer-state.connected { color: #78edb4; background: rgba(43, 169, 111, 0.12); }

.translation-link {
  position: relative;
  display: grid;
  place-items: center;
  height: 60px;
}

.translation-link svg {
  position: relative;
  z-index: 2;
  width: 25px;
  height: 25px;
  padding: 4px;
  border: 1px solid rgba(102, 242, 179, 0.16);
  border-radius: 8px;
  color: var(--green);
  background: #0b1c16;
}

.translation-link span {
  position: absolute;
  top: 29px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.16;
}

.translation-link span:nth-child(1) { left: 2px; }
.translation-link span:nth-child(2) { left: 13px; }
.translation-link span:nth-child(3) { right: 2px; }

.call-live .translation-link span {
  animation: travel 1.3s ease-in-out infinite;
}

.call-live .translation-link span:nth-child(2) { animation-delay: 0.16s; }
.call-live .translation-link span:nth-child(3) { animation-delay: 0.32s; }

@keyframes travel {
  0%, 100% { opacity: 0.14; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

.caption-panel {
  min-height: 158px;
  margin-top: clamp(34px, 6vh, 54px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(19, 40, 32, 0.72), rgba(11, 24, 19, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.caption-label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #748a81;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.caption-label i {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.caption-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  color: #52675f;
}

.caption-empty svg { width: 29px; height: 29px; }
.caption-empty p { margin: 8px 0 0; font-size: 11px; }

.caption-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 104px;
  padding: 12px 4px 2px;
}

.caption-content p { margin: 0; overflow-wrap: anywhere; }
.source-caption { color: #71867e; font-size: 12px; line-height: 1.5; }
.translation-caption { margin-top: 8px !important; color: #ecfff5; font-size: 18px; font-weight: 620; line-height: 1.4; }

.call-controls {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-top: auto;
  padding: 28px 0 max(2px, env(safe-area-inset-bottom));
}

.control-button {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.control-icon {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border: 1px solid var(--line);
  border-radius: 19px;
  color: #d4e6de;
  background: rgba(23, 46, 37, 0.82);
}

.control-icon svg { width: 23px; height: 23px; }
.control-button small { color: #789087; font-size: 10px; }
.control-button[aria-pressed="true"] .control-icon { color: #07130f; background: #dce8e3; }

.end-call .control-icon {
  border-color: rgba(255, 104, 104, 0.24);
  color: white;
  background: linear-gradient(145deg, var(--danger), var(--danger-deep));
  box-shadow: 0 10px 28px rgba(224, 63, 70, 0.2);
}

.toast {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 18px;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(154, 248, 200, 0.18);
  border-radius: 13px;
  color: #dffff0;
  background: rgba(16, 42, 32, 0.96);
  box-shadow: var(--shadow);
  font-size: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 180ms ease;
}

.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 380px) {
  .app-shell { padding-right: 15px; padding-left: 15px; }
  .language-card { grid-template-columns: 39px minmax(0, 1fr) 16px; padding: 10px; }
  .language-code { width: 39px; height: 39px; }
  .people-stage { grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); }
  .avatar-wrap { width: 84px; height: 84px; }
  .avatar { width: 68px; height: 68px; }
}

@media (min-width: 720px) {
  .app-shell { padding-right: 0; padding-left: 0; }
  .home-screen { padding-bottom: 48px; }
  .call-screen { padding-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
