:root {
  --bg: #fff8d6;
  --card: #fffcef;
  --line: #e9dda2;
  --accent: #f4c542;
  --accent-soft: #ffe58b;
  --text: #383838;
  --muted: rgba(56, 56, 56, 0.62);
  --danger: #ff7d70;
  --shadow: 0 18px 45px rgba(128, 104, 24, 0.13);
  --soft-shadow: 0 10px 28px rgba(128, 104, 24, 0.12);
  --button-shadow: 0 11px 0 rgba(83, 72, 24, 0.08), 0 18px 30px rgba(148, 113, 11, 0.16);
  --button-shadow-hover: 0 13px 0 rgba(83, 72, 24, 0.09), 0 24px 40px rgba(148, 113, 11, 0.22), 0 0 0 7px rgba(244, 197, 66, 0.12);
  --radius: 28px;
  --local-level: 0;
  --remote-level: 0;
  font-family: "Comic Sans MS", "Trebuchet MS", Nunito, Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 30% 12%, rgba(255, 237, 144, 0.46), transparent 34%),
    radial-gradient(circle at 78% 86%, rgba(255, 229, 139, 0.45), transparent 36%),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  filter: saturate(0.82);
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #252525;
  outline-offset: 4px;
}

svg {
  display: block;
}

.voxa-app {
  width: 100vw;
  height: 100dvh;
  min-height: 540px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.screen {
  position: absolute;
  inset: clamp(10px, 2vw, 20px);
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: clamp(24px, 4vw, 34px);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 237, 139, 0.34), transparent 36%),
    linear-gradient(145deg, #fffdf1, var(--card));
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 220ms ease, transform 220ms ease;
}

.screen[hidden] {
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.99);
}

.welcome-stack,
.ended-stack,
.state-copy,
.partner-block {
  position: relative;
  z-index: 2;
  text-align: center;
}

.welcome-stack {
  width: min(78vw, 390px);
  display: grid;
  gap: clamp(14px, 2.4vh, 22px);
  transform: translateY(-1vh);
}

.logo-lockup h1 {
  margin: 0;
  color: #1f2023;
  font-size: clamp(3.7rem, 14vw, 6.8rem);
  line-height: 0.84;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 rgba(244, 197, 66, 0.35);
}

.logo-lockup p {
  margin: 16px 0 0;
  font-size: clamp(1.03rem, 3vw, 1.26rem);
  font-weight: 700;
}

.form-stack {
  display: grid;
  gap: 8px;
  text-align: left;
}

.field-label {
  margin-top: 5px;
  padding-left: 4px;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.input-shell,
.select-shell {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 239, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--soft-shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.input-shell:focus-within,
.select-shell:focus-within {
  border-color: #f4c542;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 0 5px rgba(244, 197, 66, 0.16),
    var(--soft-shadow);
}

.input-shell:hover,
.select-shell:hover {
  transform: translateY(-1px);
}

.input-shell svg,
.select-shell svg {
  width: 27px;
  height: 27px;
  color: var(--text);
  flex: 0 0 auto;
}

.input-shell input,
.select-shell select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.input-shell input {
  transition: opacity 180ms ease;
}

.input-shell input::placeholder {
  color: rgba(56, 56, 56, 0.52);
}

.input-shell input.placeholder-fading {
  opacity: 0.45;
}

.select-shell select {
  appearance: auto;
}

.primary-btn {
  width: min(100%, 315px);
  min-height: 62px;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 30px;
  border: 1.8px solid #343434;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe987, #ffd95c);
  box-shadow: var(--button-shadow);
  color: #252525;
  font-size: clamp(1.08rem, 3.5vw, 1.45rem);
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-btn:active,
.soft-btn:active,
.round-control:active {
  transform: translateY(2px) scale(0.99);
}

@media (hover: hover) {
  .primary-btn:hover,
  .soft-btn:hover {
    transform: translateY(-3px) rotate(-0.6deg);
    box-shadow: var(--button-shadow-hover);
    filter: saturate(1.03);
    animation: doodleWiggle 520ms ease;
  }

  .primary-btn:disabled:hover,
  .soft-btn:disabled:hover {
    transform: none;
    box-shadow: var(--button-shadow);
    filter: saturate(0.82);
    animation: none;
  }

  .round-control:hover svg {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: var(--button-shadow-hover);
  }

  .round-control:disabled:hover svg {
    transform: none;
    box-shadow: var(--button-shadow);
  }

  .end-call:hover {
    transform: translateY(-3px) rotate(1deg);
    box-shadow: 0 16px 30px rgba(132, 53, 48, 0.27);
  }

  .end-call:disabled:hover {
    transform: none;
    box-shadow: 0 12px 25px rgba(132, 53, 48, 0.23);
  }
}

@keyframes doodleWiggle {
  0%, 100% { rotate: 0deg; }
  35% { rotate: 0.8deg; }
  70% { rotate: -0.7deg; }
}

.tiny-note,
.nearby-note {
  margin: 0;
  color: var(--text);
  font-size: clamp(0.82rem, 2.4vw, 0.95rem);
  font-weight: 800;
}

.crowd-screen {
  background:
    radial-gradient(circle at 50% 52%, rgba(244, 197, 66, 0.33), transparent 18%),
    linear-gradient(145deg, #fffdf1, var(--card));
}

.crowd-field {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.name-pill {
  position: absolute;
  min-width: 82px;
  padding: 13px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 239, 0.8);
  box-shadow: 0 8px 24px rgba(127, 100, 15, 0.09);
  text-align: center;
  font-size: clamp(1rem, 3.1vw, 1.28rem);
  font-weight: 850;
  pointer-events: none;
  animation:
    drift var(--dur, 8s) ease-in-out infinite alternate,
    nameBreathe 3.8s ease-in-out infinite;
}

.name-pill::before,
.name-pill::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 1.8px;
  border-radius: 999px;
  background: #343434;
  opacity: 0.55;
  transform: rotate(var(--rot, 28deg));
}

.name-pill::before {
  left: -20px;
  top: 50%;
}

.name-pill::after {
  right: -20px;
  top: 30%;
}

@keyframes drift {
  from { transform: translate3d(-5px, 3px, 0) rotate(-1deg); }
  to { transform: translate3d(7px, -7px, 0) rotate(1.5deg); }
}

@keyframes nameBreathe {
  0%, 100% { scale: 1; }
  50% { scale: 1.035; }
}

.you-bubble {
  position: relative;
  z-index: 3;
  width: clamp(128px, 31vw, 190px);
  aspect-ratio: 1.55;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 222, 87, 0.92), rgba(244, 197, 66, 0.5) 62%, transparent 74%);
  box-shadow: 0 25px 48px rgba(173, 130, 18, 0.25);
  animation: youBreathe 3.2s ease-in-out infinite;
}

@keyframes youBreathe {
  0%, 100% {
    box-shadow: 0 25px 48px rgba(173, 130, 18, 0.25), 0 0 0 0 rgba(244, 197, 66, 0.2);
  }
  50% {
    box-shadow: 0 30px 58px rgba(173, 130, 18, 0.32), 0 0 0 18px rgba(244, 197, 66, 0.08);
  }
}

.you-bubble span {
  font-size: clamp(2.1rem, 9vw, 4.6rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.find-btn {
  position: absolute;
  z-index: 4;
  bottom: clamp(56px, 9vh, 78px);
}

.find-btn svg {
  width: 28px;
  height: 28px;
}

.nearby-note {
  position: absolute;
  z-index: 4;
  bottom: clamp(22px, 4vh, 34px);
  color: rgba(56, 56, 56, 0.72);
}

.matching-screen {
  gap: 18px;
  align-content: center;
}

.cloud-friends {
  position: relative;
  z-index: 2;
  width: min(58vw, 330px);
  height: 132px;
  margin-bottom: 18px;
}

.cloud-friends span,
.cloud,
.chat-face {
  position: absolute;
  border: 2px solid #303030;
  background: rgba(255, 252, 239, 0.92);
  filter: drop-shadow(0 10px 16px rgba(128, 104, 24, 0.08));
}

.cloud-friends span {
  width: 116px;
  height: 70px;
  border-radius: 48px;
  background:
    radial-gradient(circle at 40% 55%, #303030 0 2px, transparent 2.6px),
    radial-gradient(circle at 60% 55%, #303030 0 2px, transparent 2.6px),
    radial-gradient(ellipse at 50% 68%, transparent 0 8px, #303030 8.5px 10px, transparent 10.5px),
    rgba(255, 252, 239, 0.92);
  animation: cloudBob 2.4s ease-in-out infinite;
}

.cloud-friends span::before,
.cloud-friends span::after,
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border: 2px solid #303030;
  border-bottom: 0;
  background: inherit;
  border-radius: 50% 50% 0 0;
}

.cloud-friends span::before {
  width: 44px;
  height: 42px;
  left: 18px;
  top: -22px;
}

.cloud-friends span::after {
  width: 50px;
  height: 48px;
  right: 17px;
  top: -27px;
}

.cloud-friends span:first-child {
  left: 0;
  top: 32px;
}

.cloud-friends span:last-child {
  right: 0;
  top: 32px;
  animation-delay: 0.45s;
}

.cloud-friends span:last-child::after,
.cloud-friends span:first-child::after {
  box-shadow: 0 39px 0 -34px #303030;
}

.cloud-friends::before {
  content: "";
  position: absolute;
  left: 30%;
  top: 58%;
  width: 42%;
  border-top: 2px dashed #303030;
  opacity: 0.58;
  transform: rotate(6deg);
  animation: dottedLine 2.6s ease-in-out infinite;
}

@keyframes dottedLine {
  50% { transform: translateY(-4px) rotate(-4deg); opacity: 0.78; }
}

@keyframes cloudBob {
  50% { transform: translateY(-8px); }
}

.state-copy h2,
.partner-block h2,
.ended-stack h2 {
  margin: 0;
  color: #202124;
  font-size: clamp(1.75rem, 7vw, 3.2rem);
  line-height: 1;
  font-weight: 900;
}

.state-copy p {
  width: min(68vw, 270px);
  margin: 30px auto 0;
  color: #252525;
  font-size: clamp(1rem, 3.5vw, 1.28rem);
  line-height: 1.35;
  font-weight: 800;
}

.mic-status {
  width: auto !important;
  margin-top: 18px !important;
  padding: 9px 15px;
  display: inline-flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 239, 0.76);
  box-shadow: var(--soft-shadow);
  color: rgba(56, 56, 56, 0.76);
  font-size: 0.9rem !important;
}

.state-copy .retry-btn {
  margin-top: 24px;
}

.debug-panel {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  width: min(320px, calc(100vw - 28px));
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 14px;
  border: 1.5px solid #343434;
  border-radius: 18px;
  background: rgba(255, 252, 239, 0.94);
  box-shadow: 0 18px 40px rgba(56, 56, 56, 0.18);
  color: #252525;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  text-align: left;
}

.debug-panel strong {
  display: block;
  margin-bottom: 10px;
  font-family: inherit;
}

.debug-panel dl {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 7px 10px;
  margin: 0;
}

.debug-panel dt {
  color: rgba(56, 56, 56, 0.62);
}

.debug-panel dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.search-actions {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(28px, 6vh, 48px);
  display: flex;
  gap: 14px;
  transform: translateX(-50%);
}

.soft-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1.8px solid #343434;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe987, #ffd95c);
  box-shadow: var(--button-shadow);
  color: #252525;
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.soft-btn svg {
  width: 24px;
  height: 24px;
}

.call-screen {
  grid-template-rows: minmax(20px, 0.7fr) auto auto auto auto minmax(12px, 0.45fr);
  gap: clamp(14px, 2.8vh, 26px);
  padding: clamp(24px, 5vw, 60px);
}

.partner-block {
  grid-row: 2;
  align-self: center;
  max-width: min(78vw, 760px);
}

.partner-block h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.95;
}

.partner-block p {
  margin: clamp(9px, 1.8vh, 16px) 0 0;
  font-size: clamp(1.2rem, 3vw, 1.72rem);
  font-weight: 900;
}

.partner-block small {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 800;
}

.small-heart {
  width: 18px;
  height: 18px;
  margin: 14px auto 0;
  transform: rotate(45deg);
  border-right: 2px solid #303030;
  border-bottom: 2px solid #303030;
}

.small-heart::before,
.small-heart::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #303030;
  border-right: 0;
  border-bottom: 0;
  border-radius: 50%;
}

.small-heart::before {
  left: -9px;
  top: 0;
}

.small-heart::after {
  left: 0;
  top: -9px;
}

.voice-orb {
  grid-row: 3;
  width: clamp(90px, 13vw, 136px);
  aspect-ratio: 1;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 197, 66, 0.38), transparent 68%);
  transform: scale(calc(1 + var(--local-level) * 0.18));
}

.voice-orb::before,
.voice-orb::after,
.voice-orb span {
  content: "";
  position: absolute;
  inset: 8%;
  border: 2px solid rgba(48, 48, 48, 0.42);
  border-radius: 50%;
  opacity: 0.35;
  animation: voicePulse 2.2s ease-in-out infinite;
}

.voice-orb::after {
  inset: 22%;
  animation-delay: 0.5s;
}

.voice-orb .local-wave {
  inset: -20%;
  border-color: rgba(244, 197, 66, calc(0.26 + var(--local-level) * 0.5));
  opacity: calc(0.16 + var(--local-level) * 0.7);
}

.voice-orb .remote-wave {
  inset: -42%;
  border-style: dashed;
  border-color: rgba(48, 48, 48, calc(0.16 + var(--remote-level) * 0.45));
  opacity: calc(0.1 + var(--remote-level) * 0.7);
  animation-delay: 0.75s;
}

@keyframes voicePulse {
  50% { transform: scale(1.16); opacity: 0.62; }
}

.action-dock {
  grid-row: 4;
  width: min(100%, 240px);
  display: flex;
  justify-content: center;
  align-items: end;
  gap: clamp(14px, 5vw, 34px);
}

.round-control {
  min-width: 72px;
  display: grid;
  justify-items: center;
  gap: 7px;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 850;
}

.round-control svg {
  width: 62px;
  height: 62px;
  padding: 16px;
  border: 1.8px solid #343434;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe987, #ffd95c);
  box-shadow: var(--button-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.end-call {
  grid-row: 5;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 50%;
  background: var(--danger);
  border: 1.8px solid #303030;
  box-shadow: 0 12px 25px rgba(132, 53, 48, 0.23);
  color: #262626;
  font-size: 0.78rem;
  font-weight: 900;
}

.end-call svg {
  width: 32px;
  height: 32px;
}

.ended-stack {
  display: grid;
  place-items: center;
  gap: clamp(18px, 4vh, 32px);
}

.ended-stack .primary-btn {
  min-height: 56px;
  font-size: clamp(1rem, 3vw, 1.22rem);
}

.secondary-primary {
  background: linear-gradient(180deg, #fff1a2, #ffe070);
}

.duration-card {
  min-width: 190px;
  padding: 24px 38px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 252, 239, 0.72);
}

.duration-card strong {
  display: block;
  font-size: clamp(1.45rem, 6vw, 2.2rem);
  line-height: 1;
}

.duration-card span {
  display: block;
  margin-top: 7px;
  font-size: 0.9rem;
  font-weight: 850;
}

.text-btn {
  min-height: 42px;
  padding: 0 12px;
  background: transparent;
  font-weight: 850;
}

.retry-btn {
  margin-top: -10px;
}

.doodle-img {
  position: absolute;
  z-index: 1;
  width: var(--doodle-size, 72px);
  height: var(--doodle-size, 72px);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  opacity: var(--doodle-opacity, 0.82);
  mix-blend-mode: multiply;
  filter: drop-shadow(0 7px 9px rgba(106, 84, 18, 0.08));
}

.cloud-smile-img,
.cloud-img {
  animation: assetCloudFloat var(--asset-speed, 8s) ease-in-out infinite;
}

.plane-img {
  animation: assetPlaneDrift var(--asset-speed, 9s) ease-in-out infinite;
}

.butterfly-img {
  animation: assetButterflyHover var(--asset-speed, 6.4s) ease-in-out infinite;
}

.shine-img {
  animation: assetSparklePulse var(--asset-speed, 4.6s) ease-in-out infinite;
}

.heart-img {
  animation: assetHeartBreathe var(--asset-speed, 4.8s) ease-in-out infinite;
}

.rainbow-img,
.headphones-img {
  animation: assetSoftFloat var(--asset-speed, 7.6s) ease-in-out infinite;
}

.welcome-cloud {
  --doodle-size: clamp(82px, 17vw, 132px);
  left: -22px;
  top: 8%;
}

.welcome-plane {
  --doodle-size: clamp(62px, 13vw, 100px);
  right: 7%;
  top: 38%;
  rotate: -8deg;
}

.welcome-shine-a {
  --doodle-size: clamp(24px, 5vw, 38px);
  right: 17%;
  top: 14%;
}

.welcome-shine-b {
  --doodle-size: clamp(20px, 4.4vw, 31px);
  right: 10%;
  bottom: 11%;
  animation-delay: -1.2s;
}

.crowd-cloud {
  --doodle-size: clamp(80px, 17vw, 130px);
  right: -20px;
  bottom: 4%;
  animation-delay: -1.1s;
}

.crowd-butterfly {
  --doodle-size: clamp(42px, 9vw, 68px);
  right: 9%;
  top: 16%;
}

.crowd-shine {
  --doodle-size: clamp(22px, 5vw, 36px);
  left: 8%;
  bottom: 12%;
  animation-delay: -0.6s;
}

.crowd-rainbow {
  --doodle-size: clamp(70px, 16vw, 112px);
  left: 7%;
  bottom: 7%;
  opacity: 0.55;
  animation-delay: -1.7s;
}

.matching-cloud-a {
  --doodle-size: clamp(86px, 18vw, 138px);
  left: 8%;
  top: 18%;
}

.matching-cloud-b {
  --doodle-size: clamp(82px, 17vw, 132px);
  right: 8%;
  top: 18%;
  animation-delay: -1.2s;
}

.matching-plane {
  --doodle-size: clamp(72px, 16vw, 112px);
  right: 8%;
  top: 9%;
  rotate: 5deg;
  animation-delay: -0.5s;
}

.matching-shine {
  --doodle-size: clamp(26px, 5vw, 42px);
  left: 8%;
  bottom: 18%;
  animation-delay: -1s;
}

.call-headphones {
  --doodle-size: clamp(128px, 15vw, 210px);
  --asset-speed: 6.8s;
  left: clamp(34px, 8vw, 150px);
  top: clamp(230px, 38vh, 390px);
  opacity: 0.72;
}

.call-heart {
  --doodle-size: clamp(42px, 6vw, 72px);
  right: clamp(58px, 12vw, 230px);
  top: clamp(190px, 30vh, 310px);
  opacity: 0.56;
}

.call-shine {
  --doodle-size: clamp(26px, 4vw, 44px);
  right: clamp(60px, 12vw, 220px);
  top: clamp(76px, 15vh, 155px);
}

.ended-rainbow {
  --doodle-size: clamp(78px, 16vw, 124px);
  right: 8%;
  bottom: 8%;
  opacity: 0.58;
}

.ended-heart {
  --doodle-size: clamp(44px, 7vw, 64px);
  top: 9%;
  left: 7%;
  opacity: 0.5;
}

.ended-cloud {
  --doodle-size: clamp(82px, 17vw, 130px);
  right: -18px;
  top: 21%;
  animation-delay: -0.9s;
}

@keyframes assetCloudFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(7px, -10px, 0) rotate(1.4deg); }
}

@keyframes assetPlaneDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(-12px, 8px, 0) rotate(4deg); }
}

@keyframes assetButterflyHover {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-6deg); }
  50% { transform: translate3d(9px, -12px, 0) rotate(7deg); }
}

@keyframes assetSparklePulse {
  0%, 100% { opacity: 0.46; transform: scale(0.9) rotate(-3deg); }
  50% { opacity: 0.92; transform: scale(1.08) rotate(4deg); }
}

@keyframes assetHeartBreathe {
  0%, 100% { transform: scale(0.96); opacity: 0.62; }
  50% { transform: scale(1.08); opacity: 0.88; }
}

@keyframes assetSoftFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg) scale(1); }
  50% { transform: translate3d(5px, -9px, 0) rotate(1.2deg) scale(1.035); }
}

.doodle {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.cloud {
  width: 88px;
  height: 52px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 40% 55%, #303030 0 1.7px, transparent 2.2px),
    radial-gradient(circle at 60% 55%, #303030 0 1.7px, transparent 2.2px),
    radial-gradient(ellipse at 50% 68%, transparent 0 7px, #303030 7.5px 8.8px, transparent 9.4px),
    rgba(255, 252, 239, 0.92);
}

.cloud::before {
  width: 36px;
  height: 34px;
  left: 14px;
  top: -19px;
}

.cloud::after {
  width: 40px;
  height: 40px;
  right: 10px;
  top: -24px;
}

.cloud-a { left: -26px; top: 7%; }
.cloud-b { right: -24px; bottom: 4%; animation-delay: -1.2s; }
.cloud-c { left: -18px; top: 11%; animation-delay: -0.7s; }
.cloud-d { right: -24px; bottom: 11%; animation-delay: -1.8s; }
.cloud-e { right: -26px; top: 38%; animation-delay: -0.4s; }

.cloud {
  animation: doodleFloat 5.8s ease-in-out infinite;
}

.sun {
  right: 10%;
  top: 7%;
  width: 62px;
  height: 62px;
  border: 2px solid #303030;
  border-radius: 50%;
  background: #ffe276;
  animation: doodleFloat 6.6s ease-in-out infinite reverse;
}

.sun::before,
.sun::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-top: 2px solid #303030;
  border-bottom: 2px solid #303030;
  border-radius: 50%;
}

.sun::after {
  transform: rotate(90deg);
}

.plane {
  width: 66px;
  height: 42px;
  border: 2px solid #303030;
  border-left: 0;
  border-bottom: 0;
  transform: skewX(-25deg) rotate(-12deg);
}

.plane::before {
  content: "";
  position: absolute;
  width: 54px;
  border-top: 2px dashed #303030;
  right: 54px;
  top: 42px;
  transform: rotate(-18deg);
  opacity: 0.5;
}

.plane-a { right: 8%; top: 38%; }
.plane-b { right: 6%; top: 8%; animation-delay: -2s; }

.plane {
  animation: planeDrift 7.4s ease-in-out infinite;
}

.sparkle {
  width: 24px;
  height: 24px;
  animation: twinkleFloat 4.8s ease-in-out infinite;
}

.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 24px;
  background: #303030;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.sparkle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.s-a { left: 9%; top: 42%; transform: rotate(20deg) scale(0.75); }
.s-b { right: 10%; bottom: 9%; transform: rotate(-15deg) scale(0.58); }
.s-c { left: 8%; bottom: 12%; transform: scale(0.7); }
.s-d { right: 7%; top: 11%; transform: rotate(45deg) scale(0.62); }
.s-e { left: 10%; bottom: 25%; transform: rotate(38deg) scale(0.8); }

.headphones {
  left: 7%;
  top: 26%;
  width: 88px;
  height: 94px;
  border: 2px solid #303030;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  animation: doodleFloat 6s ease-in-out infinite;
}

.headphones::before,
.headphones::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 24px;
  height: 38px;
  border: 2px solid #303030;
  border-radius: 16px;
  background: rgba(255, 252, 239, 0.88);
}

.headphones::before { left: -5px; }
.headphones::after { right: -5px; }

.chat-face {
  right: 7%;
  top: 28%;
  width: 82px;
  height: 68px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 44%, #303030 0 2px, transparent 2.5px),
    radial-gradient(circle at 59% 44%, #303030 0 2px, transparent 2.5px),
    radial-gradient(ellipse at 50% 59%, transparent 0 8px, #303030 8.4px 10px, transparent 10.5px),
    rgba(255, 252, 239, 0.92);
  animation: doodleFloat 5.2s ease-in-out infinite reverse;
}

.butterfly {
  width: 44px;
  height: 34px;
  background:
    linear-gradient(#303030, #303030) center 10px / 2px 20px no-repeat,
    radial-gradient(circle at 50% 10px, #303030 0 2px, transparent 2.5px);
  animation: butterflyFloat 5.2s ease-in-out infinite;
}

.butterfly::before,
.butterfly::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 19px;
  height: 22px;
  border: 2px solid #303030;
  border-radius: 18px 18px 8px 18px;
  background: rgba(255, 229, 139, 0.38);
}

.butterfly::before {
  left: 1px;
  transform: rotate(-24deg);
}

.butterfly::after {
  right: 1px;
  transform: scaleX(-1) rotate(-24deg);
}

.butterfly-a { right: 8%; top: 18%; }
.butterfly-b { left: 10%; bottom: 20%; animation-delay: -1.4s; }
.butterfly-c { right: 18%; bottom: 16%; animation-delay: -2.2s; }

@keyframes butterflyFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-5deg); }
  50% { transform: translate3d(8px, -12px, 0) rotate(6deg); }
}

.chat-face::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -12px;
  width: 24px;
  height: 22px;
  border-left: 2px solid #303030;
  border-bottom: 2px solid #303030;
  transform: rotate(-22deg);
  background: var(--card);
}

.clap-doodle {
  position: absolute;
  top: 11%;
  width: 92px;
  height: 62px;
  border-top: 2px dashed #303030;
  border-radius: 50%;
  animation: doodleFloat 5.4s ease-in-out infinite;
}

@keyframes doodleFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(4px, -8px, 0) rotate(2deg); }
}

@keyframes planeDrift {
  0%, 100% { transform: translate3d(0, 0, 0) skewX(-25deg) rotate(-12deg); }
  50% { transform: translate3d(-12px, 8px, 0) skewX(-25deg) rotate(-8deg); }
}

@keyframes twinkleFloat {
  0%, 100% { opacity: 0.64; translate: 0 0; }
  50% { opacity: 1; translate: 3px -7px; }
}

.clap-doodle::before,
.clap-doodle::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 28px;
  height: 48px;
  border: 2px solid #303030;
  border-radius: 18px 18px 10px 10px;
  background: rgba(255, 252, 239, 0.8);
}

.clap-doodle::before {
  left: 12px;
  transform: rotate(-24deg);
}

.clap-doodle::after {
  right: 12px;
  transform: rotate(24deg);
}

@media (max-width: 520px) {
  .voxa-app {
    min-height: 520px;
  }

  .screen {
    inset: 8px;
    border-radius: 24px;
  }

  .welcome-stack {
    width: min(84vw, 360px);
  }

  .name-pill {
    min-width: 68px;
    padding: 10px 14px;
  }

  .search-actions {
    width: min(92vw, 360px);
    justify-content: center;
  }

  .soft-btn {
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .round-control svg {
    width: 56px;
    height: 56px;
    padding: 14px;
  }

  .call-screen {
    grid-template-rows: minmax(12px, 0.55fr) auto auto auto auto minmax(8px, 0.28fr);
    gap: 14px;
  }

  .call-headphones {
    --doodle-size: clamp(72px, 20vw, 96px);
    left: -22%;
    top: 18%;
    opacity: 0.46;
  }

  .call-heart {
    --doodle-size: clamp(34px, 10vw, 48px);
    right: 10%;
    top: 22%;
  }

  .call-shine {
    right: 10%;
    top: 12%;
  }

  .welcome-cloud {
    --doodle-size: 72px;
    left: -82px;
    top: 5%;
    opacity: 0.42;
  }

  .welcome-plane {
    display: none;
  }

  .crowd-cloud {
    display: none;
  }

  .crowd-shine {
    display: none;
  }

  .crowd-rainbow {
    display: none;
  }

  .matching-cloud-a {
    display: none;
  }

  .matching-cloud-b {
    display: none;
  }

  .matching-plane {
    display: none;
  }

  .ended-heart {
    --doodle-size: 44px;
    left: 10%;
    top: 10%;
    opacity: 0.46;
  }

  .ended-cloud {
    display: none;
  }
}

@media (max-width: 900px) {
  .matching-cloud-a,
  .matching-cloud-b {
    display: none;
  }
}

@media (max-height: 620px) {
  .welcome-stack {
    gap: 10px;
  }

  .input-shell,
  .select-shell {
    height: 50px;
  }

  .primary-btn {
    min-height: 54px;
  }

  .cloud-friends {
    height: 96px;
    margin-bottom: 6px;
  }

  .partner-block h2 {
    font-size: clamp(2.3rem, 9vw, 4rem);
  }

  .partner-block p {
    margin-top: 8px;
  }

  .voice-orb {
    width: clamp(74px, 14vh, 108px);
  }

  .end-call {
    width: 68px;
    height: 68px;
  }

  .matching-cloud-a,
  .matching-cloud-b,
  .matching-plane {
    display: none;
  }

  .ended-heart,
  .ended-cloud {
    display: none;
  }
}
