:root {
  color-scheme: dark;
  /* Colores de silviacueai.com: fondo profundo, texto claro y acento amarillo. */
  --fondo-profundo: #031525;
  --fondo-medio: #08263A;
  --fondo-centro: #0E3A4F;
  --halo: rgba(13, 175, 187, 0.18);
  --texto: #F4FBFF;
  --texto-suave: #B9D8E6;
  --acento: #FFD600;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--fondo-profundo);
  color: var(--texto);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--fondo-profundo);
}

/* La foto va detrás, muy bajada de luz. Solo se intuye la costa. */
body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  background: url("/static/fondo-costa.jpg") center / cover no-repeat;
  filter: brightness(0.34) saturate(0.55);
  pointer-events: none;
}

/* Velo oscuro encima de la foto. El centro deja ver un poco más el paisaje. */
body::after {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse at 50% 46%, rgba(3, 21, 37, 0.28) 0%, rgba(3, 21, 37, 0.62) 58%, rgba(3, 21, 37, 0.86) 100%),
    linear-gradient(180deg, rgba(3, 21, 37, 0.55) 0%, rgba(3, 21, 37, 0.2) 42%, rgba(3, 21, 37, 0.62) 100%);
  pointer-events: none;
}

/* Misma marca que el resto de silviacueai.com, y salida hacia la web. */
.site-bar {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  padding: 1.1rem 7%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 247, 235, 0.42);
  border-bottom: 1px solid rgba(255, 247, 235, 0.25);
}

.site-logo,
.site-back {
  color: #0f172a;
  text-decoration: none;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.site-logo__mark {
  display: flex;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffd400;
  color: #0f172a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.site-logo__name {
  color: #0f172a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.site-logo__name strong {
  color: #ffd400;
}

.site-nav {
  display: flex;
  gap: 2.2rem;
}

.site-nav a,
.site-back {
  flex: 0 0 auto;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.site-back {
  font-weight: 600;
}

.site-back:hover,
.site-logo:hover,
.site-nav a:hover {
  color: #b8860b;
}

.welcome {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding: 5.6rem 1.5rem 1.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex-direction: column;
  text-align: center;
}

.brand {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
}

.particle-stage {
  position: relative;
  width: min(86vw, 92rem);
  max-width: 100%;
  height: clamp(25rem, 58vh, 32rem);
  flex: 0 0 auto;
  overflow: visible;
  pointer-events: none;
}

.energy-ring,
.energy-floor {
  position: absolute;
  pointer-events: none;
}

.energy-ring {
  left: 50%;
  top: 56%;
  border: 1px solid rgba(255, 214, 0, 0.55);
  border-radius: 50%;
  /* Brillo corto para que el óvalo se note, sin volverse un neón. */
  box-shadow: 0 0 0.45rem rgba(255, 214, 0, 0.28);
  transform: translate(-50%, -50%) rotate(-8deg) scaleY(0.22);
}

.energy-ring--outer {
  width: 96%;
  height: 92%;
  opacity: 0.72;
  animation: flotar-exterior 96s linear infinite;
}

.energy-ring--mid {
  width: 74%;
  height: 78%;
  border-color: rgba(255, 214, 0, 0.68);
  opacity: 0.86;
  animation: flotar-media 78s linear infinite;
}

.energy-ring--inner {
  width: 52%;
  height: 62%;
  opacity: 0.58;
  animation: flotar-interior 62s linear infinite;
}

/* Cada óvalo recorre un camino distinto. El giro es de pocos grados para que flote. */
@keyframes flotar-exterior {
  0% { transform: translate(0, 0) translate(-50%, -50%) rotate(-11deg) scaleY(0.22); }
  25% { transform: translate(8px, -3px) translate(-50%, -50%) rotate(-7deg) scaleY(0.22); }
  50% { transform: translate(0, -6px) translate(-50%, -50%) rotate(-4deg) scaleY(0.22); }
  75% { transform: translate(-8px, -3px) translate(-50%, -50%) rotate(-8deg) scaleY(0.22); }
  100% { transform: translate(0, 0) translate(-50%, -50%) rotate(-11deg) scaleY(0.22); }
}

@keyframes flotar-media {
  0% { transform: translate(0, 0) translate(-50%, -50%) rotate(-5deg) scaleY(0.22); }
  25% { transform: translate(-6px, 3px) translate(-50%, -50%) rotate(-9deg) scaleY(0.22); }
  50% { transform: translate(0, 5px) translate(-50%, -50%) rotate(-13deg) scaleY(0.22); }
  75% { transform: translate(6px, 2px) translate(-50%, -50%) rotate(-8deg) scaleY(0.22); }
  100% { transform: translate(0, 0) translate(-50%, -50%) rotate(-5deg) scaleY(0.22); }
}

@keyframes flotar-interior {
  0% { transform: translate(0, 0) translate(-50%, -50%) rotate(-9deg) scaleY(0.22); }
  25% { transform: translate(4px, 4px) translate(-50%, -50%) rotate(-6deg) scaleY(0.22); }
  50% { transform: translate(0, -4px) translate(-50%, -50%) rotate(-3deg) scaleY(0.22); }
  75% { transform: translate(-5px, 2px) translate(-50%, -50%) rotate(-7deg) scaleY(0.22); }
  100% { transform: translate(0, 0) translate(-50%, -50%) rotate(-9deg) scaleY(0.22); }
}

.energy-floor {
  right: 16%;
  bottom: 6%;
  left: 16%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--halo), transparent 72%);
  filter: blur(1.5rem);
}

.particle-cloud {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: visible;
}

.particle-cloud canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
}

.particle-cloud__fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  aspect-ratio: 1.65;
  border-radius: 44% 56% 52% 48% / 57% 42% 58% 43%;
  background:
    radial-gradient(circle at 70% 34%, #f1f5f9 0 1.5%, transparent 3%),
    radial-gradient(circle at 31% 62%, #f1f5f9 0 1%, transparent 2.8%),
    radial-gradient(circle at 57% 48%, #10b981 0, transparent 52%),
    radial-gradient(circle at 33% 40%, #22d3ee 0, transparent 57%),
    radial-gradient(circle at 72% 59%, #168bff 0, transparent 54%);
  box-shadow:
    -2rem 0 4rem rgba(34, 211, 238, 0.23),
    2rem 0 4rem rgba(22, 139, 255, 0.2),
    0 0 3rem rgba(16, 185, 129, 0.18);
  filter: blur(0.15rem);
  opacity: 0.88;
  transform: translate(-50%, -50%);
}

.particle-cloud--ready .particle-cloud__fallback {
  display: none;
}

.brand-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 4.6rem;
  padding-bottom: 0.85rem;
  align-items: center;
  justify-content: center;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--texto);
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  font-weight: 300;
  letter-spacing: 0.58em;
  line-height: 1;
  text-indent: 0.58em;
}

/* La última A va en amarillo, como en la web. Las otras letras siguen claras. */
h1 .brand-mark {
  color: var(--acento);
}

/* Chispa pequeña en el centro de la raya, debajo de las letras. */
h1::before {
  position: absolute;
  z-index: 2;
  top: calc(100% + 0.42rem);
  left: 50%;
  width: 0.38rem;
  height: 0.38rem;
  content: "";
  background:
    linear-gradient(#fff8d4, #fff8d4) center / 0.38rem 1px no-repeat,
    linear-gradient(#fff8d4, #fff8d4) center / 1px 0.38rem no-repeat;
  filter: drop-shadow(0 0 0.2rem #fff) drop-shadow(0 0 0.35rem var(--acento));
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Raya fina dorada. Se apaga en los extremos y brilla en el centro. */
h1::after {
  position: absolute;
  top: calc(100% + 0.42rem);
  left: 50%;
  width: min(18rem, 54vw);
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 214, 0, 0.08) 10%,
    rgba(255, 214, 0, 0.55) 30%,
    var(--acento) 44%,
    #fff6c2 50%,
    var(--acento) 56%,
    rgba(255, 214, 0, 0.55) 70%,
    rgba(255, 214, 0, 0.08) 90%,
    transparent 100%
  );
  box-shadow: 0 0 0.45rem rgba(255, 214, 0, 0.7), 0 0 1.1rem rgba(255, 214, 0, 0.28);
  transform: translateX(-50%);
  pointer-events: none;
}

.chat {
  display: flex;
  width: min(100%, 56rem);
  flex-direction: column;
  gap: 0.45rem;
}

.conversation-controls {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.35rem;
}

.conversation-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.conversation-button,
.options-menu__item {
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(74, 211, 232, 0.3);
  border-radius: 1.5rem;
  color: var(--texto-suave);
  cursor: pointer;
  background: rgba(5, 27, 43, 0.76);
  font: inherit;
  font-size: 0.82rem;
  backdrop-filter: blur(16px);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.text-chat-toggle,
.options-button {
  border: 0;
  color: var(--texto-suave);
  cursor: pointer;
  background: transparent;
  font: inherit;
}

.text-chat-toggle {
  min-height: 2.2rem;
  padding: 0.25rem 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.options-button {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  place-items: center;
  border-radius: 50%;
}

.options-button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.conversation-button {
  display: inline-flex;
  min-height: 3.15rem;
  padding: 0.7rem 1.55rem;
  align-items: center;
  gap: 0.6rem;
  border-color: var(--acento);
  color: var(--fondo-profundo);
  background: var(--acento);
  box-shadow: 0 0.45rem 1.4rem rgba(255, 214, 0, 0.28);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.conversation-button svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.conversation-button svg[hidden] {
  display: none;
}

.conversation-button[aria-pressed="true"] {
  border-color: #e6c200;
  color: var(--fondo-profundo);
  background: #e6c200;
  box-shadow: 0 0.35rem 1.1rem rgba(255, 214, 0, 0.22);
}

.conversation-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.conversation-button:hover:not(:disabled) {
  border-color: #ffe14d;
  color: var(--fondo-profundo);
  background: #ffe14d;
}

.options-menu__item:hover {
  border-color: rgba(255, 214, 0, 0.45);
  background: rgba(8, 38, 58, 0.92);
}

.text-chat-toggle:hover,
.options-button:hover,
.options-button[aria-expanded="true"] {
  color: var(--texto);
  background: rgba(255, 214, 0, 0.1);
}

.conversation-button:focus-visible,
.text-chat-toggle:focus-visible,
.options-button:focus-visible,
.options-menu__item:focus-visible,
.chat-form__action:focus-visible {
  outline: 2px solid rgba(82, 231, 238, 0.85);
  outline-offset: 2px;
}

.options {
  position: relative;
}

.options-menu {
  position: absolute;
  z-index: 4;
  top: calc(100% + 0.4rem);
  right: 0;
  display: flex;
  width: max-content;
  min-width: 12.5rem;
  max-width: calc(100vw - 2rem);
  padding: 0.35rem;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid rgba(74, 211, 232, 0.28);
  border-radius: 1rem;
  background: rgba(4, 22, 38, 0.96);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
}

.options-menu[hidden],
.options-menu__item[hidden] {
  display: none;
}

.options-menu__item {
  width: 100%;
  border-radius: 0.75rem;
  text-align: left;
}

.conversation-status {
  display: inline-flex;
  margin: 0;
  align-self: center;
  align-items: center;
  gap: 0.5rem;
  color: var(--texto-suave);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.conversation-status[hidden] {
  display: none;
}

.message-history {
  display: grid;
  width: min(100%, 46rem);
  margin-inline: auto;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transition: grid-template-rows 280ms ease, opacity 220ms ease;
}

.message-history.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}

.message-history__inner {
  display: flex;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  gap: 0.45rem;
}

.conversation-status__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0.75rem rgba(34, 211, 238, 0.7);
  animation: pulse 900ms ease-in-out infinite alternate;
}

.conversation-status[data-state="THINKING"] .conversation-status__dot {
  background: #168bff;
}

.conversation-status[data-state="SPEAKING"] .conversation-status__dot {
  background: #f1f5f9;
}

.conversation-status[data-state="PAUSED"] .conversation-status__dot {
  background: #789fac;
  animation: none;
}

.messages {
  display: flex;
  width: min(100%, 46rem);
  height: clamp(4.8rem, 12vh, 7rem);
  min-height: 4.8rem;
  margin-inline: auto;
  padding: 0.35rem 0.55rem;
  overflow-y: auto;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
  scrollbar-color: #1c8292 transparent;
}

.message {
  max-width: 76%;
  padding: 0.58rem 0.82rem;
  border-radius: 0.95rem;
  box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
}

.message p {
  margin: 0.25rem 0 0;
  line-height: 1.42;
  white-space: pre-wrap;
}

.message__author {
  color: #6ee7e4;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message--assistant {
  align-self: flex-start;
  border: 1px solid rgba(74, 208, 218, 0.18);
  background: rgba(9, 39, 57, 0.7);
}

.message--user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(18, 106, 146, 0.88), rgba(8, 123, 120, 0.88));
}

.message--user .message__author {
  color: #d5ffff;
}

.message--error {
  align-self: flex-start;
  border: 1px solid rgba(255, 157, 130, 0.3);
  background: rgba(102, 38, 36, 0.55);
}

.message--error .message__author {
  color: #ffb5a2;
}

.thinking {
  display: flex;
  margin: 0;
  padding: 0 1rem;
  align-items: center;
  gap: 0.55rem;
  color: #88b8c5;
  font-size: 0.85rem;
  text-align: left;
}

.thinking[hidden] {
  display: none;
}

.thinking span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #38dfcc;
  box-shadow: 0 0 0.8rem #38dfcc;
  animation: pulse 1s ease-in-out infinite alternate;
}

.voice-panel {
  width: min(100%, 46rem);
  margin-inline: auto;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(74, 211, 232, 0.26);
  border-radius: 1.2rem;
  background: rgba(4, 24, 40, 0.92);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.26);
  text-align: left;
  backdrop-filter: blur(20px);
}

.voice-panel[hidden] {
  display: none;
}

.voice-panel__header,
.voice-panel__controls,
.voice-panel__switch {
  display: flex;
  align-items: center;
}

.voice-panel__header {
  margin-bottom: 0.65rem;
  justify-content: space-between;
  color: #bff8ff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voice-panel__close {
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8ac6d2;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.voice-panel__controls {
  gap: 0.6rem;
}

.voice-panel__controls label {
  color: #8eb8c4;
  font-size: 0.82rem;
  white-space: nowrap;
}

.voice-panel select,
.voice-panel__controls button {
  min-height: 2.45rem;
  border: 1px solid rgba(74, 211, 232, 0.28);
  border-radius: 0.75rem;
  outline: none;
  background: #071d2e;
  color: #e9fbff;
  font: inherit;
}

.voice-panel select {
  min-width: 0;
  padding: 0.45rem 0.65rem;
  flex: 1;
}

.voice-panel__controls button {
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.voice-panel__close:hover,
.voice-panel__controls button:hover:not(:disabled) {
  color: #ffffff;
  background: rgba(22, 139, 255, 0.18);
}

.voice-panel__controls button:disabled,
.voice-panel select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.voice-panel__switch {
  margin-top: 0.7rem;
  gap: 0.5rem;
  color: #b6d4dc;
  font-size: 0.83rem;
}

.voice-panel__switch input {
  accent-color: #22d3ee;
}

.voice-panel__status {
  margin: 0.55rem 0 0;
  color: #789fac;
  font-size: 0.76rem;
  line-height: 1.35;
}

.chat-form {
  position: relative;
  display: flex;
  min-height: 4.65rem;
  padding: 0.55rem;
  align-items: center;
  border: 1px solid rgba(74, 211, 232, 0.42);
  border-radius: 2.5rem;
  gap: 0.55rem;
  background: linear-gradient(100deg, rgba(4, 22, 39, 0.9), rgba(4, 27, 43, 0.76));
  box-shadow:
    0 1rem 3.5rem rgba(0, 0, 0, 0.32),
    0 0 2.5rem rgba(34, 211, 238, 0.08),
    inset 0 0 1.5rem rgba(34, 211, 238, 0.04);
  backdrop-filter: blur(22px);
}

.chat-form input {
  min-width: 0;
  height: 3rem;
  padding: 0.7rem 0.55rem;
  flex: 1;
  border: 0;
  border-radius: 1.5rem;
  outline: none;
  background: transparent;
  color: #edfaff;
  font: inherit;
}

.chat-form input::placeholder {
  color: #688a9a;
}

.chat-form input:focus {
  box-shadow: none;
}

.chat-form:focus-within {
  border-color: rgba(82, 231, 238, 0.68);
  box-shadow:
    0 1rem 3.5rem rgba(0, 0, 0, 0.32),
    0 0 2.8rem rgba(34, 211, 238, 0.14),
    inset 0 0 1.5rem rgba(34, 211, 238, 0.06);
}

.chat-form__action {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(69, 218, 236, 0.38);
  border-radius: 50%;
  color: #b9f7ff;
  cursor: pointer;
  background: rgba(7, 33, 51, 0.9);
  box-shadow: inset 0 0 1.2rem rgba(34, 211, 238, 0.08);
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.chat-form__action svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.chat-form__send {
  border-color: rgba(168, 243, 255, 0.62);
  background: linear-gradient(135deg, #168bff, #22d3ee 58%, #10b981);
  color: #f5feff;
  box-shadow:
    0 0 1.6rem rgba(34, 211, 238, 0.28),
    inset 0 0 0.9rem rgba(255, 255, 255, 0.12);
}

.chat-form__action:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.audio-indicator {
  display: flex;
  width: 2.25rem;
  height: 1.45rem;
  padding: 0.2rem 0.35rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.7rem;
  gap: 0.16rem;
  background: transparent;
  cursor: pointer;
}

.audio-indicator:hover,
.audio-indicator[aria-expanded="true"] {
  background: rgba(34, 211, 238, 0.1);
}

.audio-indicator:focus-visible {
  outline: 2px solid rgba(82, 231, 238, 0.72);
  outline-offset: 2px;
}

.audio-indicator__bar {
  width: 2px;
  height: 28%;
  flex: 0 0 auto;
  border-radius: 1rem;
  background: #52e7ee;
  box-shadow: 0 0 0.45rem rgba(82, 231, 238, 0.5);
  animation: audio-idle 1.8s ease-in-out infinite alternate;
}

.audio-indicator__bar:nth-child(2),
.audio-indicator__bar:nth-child(4) {
  height: 58%;
  animation-delay: -0.45s;
}

.audio-indicator__bar:nth-child(3) {
  height: 92%;
  animation-delay: -0.9s;
}

html[data-aeva-state="THINKING"] .audio-indicator__bar {
  animation-duration: 0.52s;
}

html[data-aeva-state="SPEAKING"] .audio-indicator__bar {
  background: #f1f5f9;
  box-shadow: 0 0 0.65rem rgba(241, 245, 249, 0.78);
  animation-duration: 0.34s;
}

.chat-form__send:disabled,
.chat-form input:disabled {
  cursor: wait;
  opacity: 0.65;
}

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

@keyframes pulse {
  from {
    opacity: 0.4;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes audio-idle {
  from {
    opacity: 0.5;
    transform: scaleY(0.55);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (max-width: 760px) {
  .particle-stage {
    width: 100%;
    height: clamp(28rem, 64vh, 40rem);
  }

  .chat {
    width: min(100%, 42rem);
  }
}

@media (max-width: 480px) {
  .site-bar {
    flex-wrap: wrap;
    padding: 0.75rem 4%;
    gap: 0.45rem;
    row-gap: 0.4rem;
  }

  .site-logo__name {
    font-size: 0.95rem;
  }

  .site-nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: space-between;
    gap: 0.4rem;
  }

  .site-nav a,
  .site-back {
    font-size: 0.75rem;
  }

  .welcome {
    padding: 6.6rem 1rem 1rem;
  }

  .brand {
    gap: 0;
  }

  .particle-stage {
    width: 100%;
    height: clamp(26rem, 62vh, 36rem);
  }

  h1 {
    font-size: 1.85rem;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
  }

  .conversation-button {
    min-height: 2.9rem;
    justify-content: center;
    font-size: 0.9rem;
  }

  .messages {
    height: 6rem;
    min-height: 6rem;
  }

  .chat-form {
    min-height: 4rem;
    padding: 0.4rem;
    gap: 0.35rem;
  }

  .chat-form__action {
    width: 2.9rem;
    height: 2.9rem;
  }

  .chat-form input {
    height: 2.8rem;
    padding-inline: 0.35rem;
    font-size: 0.92rem;
  }

  .options-menu {
    right: 0;
    left: auto;
  }

  .audio-indicator {
    width: 1.9rem;
    padding-inline: 0.2rem;
  }

  .voice-panel {
    padding: 0.75rem;
  }

  .voice-panel__controls {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .voice-panel__controls label {
    width: 100%;
  }

  .voice-panel select {
    width: calc(100% - 5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .thinking span,
  .conversation-status__dot,
  .audio-indicator__bar,
  .energy-ring {
    animation: none;
  }

  .message-history {
    transition: none;
  }
}
