:root {
  color-scheme: dark;
  font-family: "DM Sans", sans-serif;
  --red: #ff304e;
  --blue: #078cff;
  --white: #f5f6ff;
  --muted: #9ba9c4;
  --voice-energy: 0;
  --orb-scale: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #030610;
  color: var(--white);
}
button { font: inherit; }
.ambient {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 28px 24px 20px;
  background:
    radial-gradient(ellipse at 12% 20%, #38101b88, transparent 36%),
    radial-gradient(ellipse at 90% 16%, #061f4988, transparent 38%),
    linear-gradient(110deg, #080810, #030711 55%, #020610);
}
.ambient::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .68;
  background:
    radial-gradient(ellipse at 12% 82%, #ff263e44, transparent 25%),
    radial-gradient(ellipse at 90% 78%, #087dff44, transparent 28%);
  pointer-events: none;
}
.light-trail {
  position: absolute;
  z-index: -1;
  width: 75vw;
  height: 36vh;
  min-height: 210px;
  border-radius: 50%;
  filter: blur(15px);
  opacity: .65;
  pointer-events: none;
  transform: rotate(-13deg);
}
.trail-red {
  left: -23vw; top: 39%;
  border-top: 3px solid #ff334c;
  box-shadow: 0 -12px 35px #ff253b55, 0 12px 38px #ff263c22;
  background: linear-gradient(180deg, transparent 40%, #ff20301a, transparent 72%);
  animation: trail-drift 13s ease-in-out infinite alternate;
}
.trail-blue {
  right: -24vw; top: 40%;
  border-top: 3px solid #078cff;
  box-shadow: 0 -12px 36px #087dff66, 0 12px 40px #087dff22;
  background: linear-gradient(180deg, transparent 40%, #087dff19, transparent 72%);
  transform: rotate(13deg);
  animation: trail-drift-blue 15s ease-in-out infinite alternate;
}
.ambient-glow {
  position: absolute;
  z-index: -1;
  width: 42vw; height: 42vw;
  max-width: 580px; max-height: 580px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .17;
  pointer-events: none;
}
.glow-red { left: -19vw; bottom: -20vw; background: #ff183b; }
.glow-blue { right: -19vw; top: -20vw; background: #087dff; }

.page {
  width: min(850px, 100%);
  margin: auto;
  position: relative;
}
.glass-panel {
  position: relative;
  min-width: 0;
  height: min(850px, calc(100dvh - 112px));
  min-height: 570px;
  padding: 38px 48px 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  border-radius: 32px;
  background:
    linear-gradient(145deg, #090b15f5, #050812f2 62%, #070b16f5) padding-box,
    linear-gradient(115deg, #ff354f, #8b294d 18%, #162d56 55%, #078cff 88%, #3cbbff) border-box;
  box-shadow:
    0 0 0 1px #ffffff05,
    -12px 8px 60px #ff23391a,
    12px 8px 65px #087dff20,
    inset 0 0 50px #ffffff03;
}
.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(125deg, #ff405c99, transparent 24%, transparent 70%, #008cffaa);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.brand { text-align: center; flex: 0 0 auto; }
.brand h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .17em;
  overflow-wrap: anywhere;
}
.eyebrow {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: .42em;
  color: #a9b5ce;
}
.brand-rule {
  width: 76px; height: 1px;
  margin: 19px auto 17px;
  background: linear-gradient(90deg, var(--red), #b34d9e, var(--blue));
}
.tagline {
  margin: 0;
  color: #aab7d0;
  font-size: 13px;
  line-height: 1.6;
}
.voice-stage {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  flex: 0 0 auto;
  padding-top: 30px;
}
.orb-halo {
  position: absolute;
  top: 21px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 1px solid #4679bd20;
  box-shadow: 0 0 38px #006dff0c, inset 0 0 28px #ff304e08;
}
.voice-orb {
  position: relative;
  width: 172px; height: 172px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  isolation: isolate;
  transform: scale(var(--orb-scale, 1));
  background:
    radial-gradient(ellipse at 27% 17%, #fff8ff 0, #ffb5c5 3%, transparent 17%),
    radial-gradient(ellipse at 24% 28%, #ff566d 0, #9d183d 21%, transparent 43%),
    radial-gradient(ellipse at 77% 69%, #008fff 0, #123c8b 23%, transparent 48%),
    radial-gradient(ellipse at 46% 55%, #030716 0, #05091a 55%, #152d5d 74%, #070b19 100%);
  box-shadow:
    inset -12px -13px 23px #02040dc9,
    inset 7px 5px 14px #ff8ea166,
    0 0 calc(25px + var(--voice-energy) * 24px) #086fff55,
    0 0 calc(17px + var(--voice-energy) * 18px) #ff24442b;
  transition: box-shadow .18s ease, filter .2s ease;
  animation: orb-float 6s ease-in-out infinite;
}
.orb-core {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background:
    conic-gradient(from 28deg, transparent 0 14%, #098bff 18%, #58d4ff 23%, transparent 31%,
    #080c22 40%, #ff315d 51%, #ffb0c2 57%, #fe315c 62%, transparent 70%, #076cff 81%, transparent 92%);
  filter: blur(3px);
  opacity: .94;
  animation: orb-turn 9s linear infinite;
  -webkit-mask: radial-gradient(ellipse, transparent 0 34%, #000 47% 65%, transparent 76%);
  mask: radial-gradient(ellipse, transparent 0 34%, #000 47% 65%, transparent 76%);
}
.orb-ribbon {
  position: absolute;
  z-index: 2;
  width: 132%; height: 44%;
  left: -16%;
  border-radius: 50%;
  transform: rotate(-36deg);
  border-top: 5px solid #ff506e;
  border-bottom: 3px solid #078cff;
  box-shadow: 0 -5px 14px #ff315a88, 0 5px 15px #078cff77;
  opacity: .95;
}
.ribbon-one { top: 23%; }
.ribbon-two {
  top: 43%; left: -17%;
  transform: rotate(34deg);
  border-top-color: #168eff;
  border-bottom-color: #ff5072;
  opacity: .76;
}
.orb-glass {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 27% 15%, #ffffff8a, transparent 9%),
    radial-gradient(ellipse at 18% 22%, #ffadb82b, transparent 27%),
    radial-gradient(ellipse at 75% 76%, transparent 35%, #087dff50 70%, #050817d9 100%);
  box-shadow: inset 0 0 0 2px #c3d9ff77, inset -8px -10px 18px #000a;
}
.orb-shine {
  position: absolute;
  z-index: 4;
  inset: 2px;
  border-radius: 50%;
  border: 1px solid #ffffff3a;
  background: linear-gradient(140deg, #ffffff15, transparent 30% 70%, #087dff0c);
}
.voice-label {
  margin: 20px 0 0;
  font-size: 15px;
  letter-spacing: .19em;
  text-align: center;
}
.voice-meter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 17px;
  margin-top: 13px;
}
.voice-meter span { display: block; width: 3px; border-radius: 3px; }
.meter-red {
  height: 3px;
  width: 72px !important;
  background: repeating-linear-gradient(90deg, #ff4058 0 2px, transparent 2px 8px);
}
.meter-center {
  height: 15px;
  background: #ff8bba;
  box-shadow: 0 0 10px #ff315e;
}
.meter-blue {
  height: 3px;
  width: 72px !important;
  background: repeating-linear-gradient(90deg, #078cff 0 2px, transparent 2px 8px);
}
.conversation-area {
  min-height: 75px;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 22px;
  padding: 5px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: #253753 transparent;
}
.conversation {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}
.empty-state {
  margin: auto;
  text-align: center;
  color: #c0c7d8;
  padding: 16px;
}
.empty-state p { margin: 0 0 6px; font-size: 15px; }
.empty-state span { font-size: 12px; color: #8996af; }
.message {
  max-width: 78%;
  width: fit-content;
  padding: 12px 16px;
  border: 1px solid #344b6b;
  border-radius: 19px 19px 19px 5px;
  background: linear-gradient(125deg, #152039e8, #0b1222f0);
  color: #f5f6ff;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.message .role {
  display: block;
  margin-bottom: 4px;
  color: #8eaedb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.message.live-user, .message.user {
  align-self: flex-end;
  border-color: #8f344b;
  border-radius: 19px 19px 5px 19px;
  background: linear-gradient(120deg, #371622, #11162a);
  box-shadow: -8px 0 24px #ff25410b;
}
.interaction { flex: 0 0 auto; }
.status {
  min-height: 0;
  margin: 0 0 8px;
  color: #aab8d1;
  font-size: 12px;
}
.status:empty { display: none; }
.control-bar {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 50px;
  background: linear-gradient(110deg, #0a0d17f5, #080e1af5) padding-box,
    linear-gradient(105deg, #ff4a60, #303957 40%, #087dff) border-box;
  box-shadow: inset 0 0 28px #ffffff04, 0 0 30px #060a15;
}
.mic-button {
  width: 58px; height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #ff667b;
  border-radius: 50%;
  color: white;
  background: radial-gradient(circle at 35% 25%, #ff6574, #c91c3d 58%, #470b20);
  box-shadow: 0 0 0 6px #ff304e12, 0 0 24px #ff304e77, inset 0 1px 5px #ffffff70;
  cursor: pointer;
}
.mic-button svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.control-hint { flex: 1; color: #a0acc4; font-size: 14px; }
.end-button {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 1px solid #33405d;
  border-radius: 28px;
  background: linear-gradient(120deg, #202b45, #10192d);
  color: #f1f3fb;
  cursor: pointer;
}
.end-icon { font-size: 25px; font-weight: 300; line-height: 1; }
button:disabled { opacity: .38; cursor: not-allowed; }
button:focus-visible { outline: 2px solid #8bcaff; outline-offset: 4px; }
.powered {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 24px;
  color: #8796b2;
  font-size: 11px;
  letter-spacing: .03em;
}
.powered strong { color: #c2cce0; font-weight: 500; }
.powered span { width: 54px; height: 1px; background: #48536a; }

.voice-orb[data-state="speaking"] { filter: saturate(1.3) brightness(1.12); }
.voice-orb[data-state="listening"] { filter: saturate(1.12); }
.voice-orb[data-state="connecting"] { animation: orb-pulse 1.2s ease-in-out infinite alternate; }
.voice-orb[data-state="error"] { filter: saturate(.55); }
.ambient[data-state="speaking"] .voice-label { color: #ffb3c1; }
.ambient[data-state="listening"] .voice-label { color: #d3e7ff; }

@keyframes orb-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -3px; }
}
@keyframes orb-turn { to { transform: rotate(360deg); } }
@keyframes orb-pulse { to { opacity: .65; } }
@keyframes trail-drift { to { transform: translate(5vw, -2vh) rotate(-9deg); opacity: .8; } }
@keyframes trail-drift-blue { to { transform: translate(-5vw, 2vh) rotate(9deg); opacity: .8; } }

@media (min-height: 900px) {
  .glass-panel { height: min(880px, calc(100dvh - 112px)); }
}
@media (max-height: 760px) and (min-width: 601px) {
  .ambient { padding-top: 12px; padding-bottom: 10px; }
  .glass-panel { height: calc(100dvh - 80px); min-height: 0; padding: 20px 36px 18px; }
  .brand-rule { margin: 10px auto; }
  .voice-stage { padding-top: 14px; }
  .voice-orb { width: 125px; height: 125px; }
  .orb-halo { width: 158px; height: 158px; top: 8px; }
  .voice-label { margin-top: 10px; }
  .voice-meter { margin-top: 6px; }
  .conversation-area { margin-top: 12px; }
  .control-bar { min-height: 62px; }
  .mic-button { width: 46px; height: 46px; }
  .powered { margin-top: 12px; }
}
@media (max-width: 600px) {
  .ambient { padding: 14px 12px; }
  .glass-panel {
    height: calc(100dvh - 68px);
    min-height: 0;
    padding: 27px 19px 18px;
    border-radius: 25px;
  }
  .brand h1 { font-size: clamp(20px, 6vw, 29px); letter-spacing: .1em; }
  .eyebrow { font-size: 10px; letter-spacing: .32em; }
  .tagline { font-size: 11px; }
  .brand-rule { margin: 12px auto; }
  .voice-stage { padding-top: 22px; }
  .voice-orb { width: 140px; height: 140px; }
  .orb-halo { width: 178px; height: 178px; top: 13px; }
  .voice-label { margin-top: 13px; font-size: 12px; }
  .voice-meter { margin-top: 7px; }
  .conversation-area { margin-top: 14px; }
  .message { max-width: 91%; padding: 10px 12px; font-size: 13px; }
  .control-bar { min-height: 65px; gap: 12px; padding: 7px; }
  .mic-button { width: 48px; height: 48px; }
  .control-hint { font-size: 12px; }
  .end-button { min-height: 43px; padding: 0 13px; gap: 5px; }
  .powered { margin-top: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* FINAL VISUAL REFINEMENT: luminous trails and a deeper glass orb */

.ambient {
  background:
    radial-gradient(ellipse at 3% 35%, #8d102b55, transparent 34%),
    radial-gradient(ellipse at 98% 31%, #064fa855, transparent 36%),
    radial-gradient(ellipse at 50% 52%, #070b17 0, #030610 72%);
}

.ambient::before {
  opacity: .95;
  background:
    radial-gradient(ellipse at 10% 76%, #ff283d55, transparent 26%),
    radial-gradient(ellipse at 91% 77%, #087dff55, transparent 28%),
    radial-gradient(ellipse at 50% 100%, #10182a44, transparent 45%);
}

.light-trail {
  width: 92vw;
  height: 38vh;
  min-height: 250px;
  filter: blur(2px);
  opacity: .8;
  border-top: 0;
  background: none;
}

.trail-red {
  left: -31vw;
  top: 37%;
  border-radius: 50%;
  transform: rotate(12deg);
  border-bottom: 0;
  box-shadow: none;
  background:
    radial-gradient(ellipse at 50% 100%, #ff263d20, transparent 55%);
  animation: red-ribbon-flow 12s ease-in-out infinite alternate;
}

.trail-red::before,
.trail-red::after,
.trail-blue::before,
.trail-blue::after {
  content: "";
  position: absolute;
  display: block;
  width: 112%;
  height: 52%;
  border-radius: 50%;
  pointer-events: none;
}

.trail-red::before {
  left: -1%;
  top: 17%;
  border-top: 4px solid #ff4055;
  border-bottom: 2px solid #ff233c99;
  transform: rotate(18deg);
  box-shadow: 0 -5px 18px #ff243f77, 0 7px 25px #ff233b44;
}

.trail-red::after {
  left: 4%;
  top: 44%;
  height: 42%;
  border-top: 2px solid #ff5b64;
  transform: rotate(-9deg);
  filter: blur(2px);
  box-shadow: 0 -8px 28px #ff263e55;
}

.trail-blue {
  right: -31vw;
  top: 38%;
  border-radius: 50%;
  transform: rotate(-12deg);
  box-shadow: none;
  background:
    radial-gradient(ellipse at 50% 100%, #087dff22, transparent 55%);
  animation: blue-ribbon-flow 14s ease-in-out infinite alternate;
}

.trail-blue::before {
  right: -1%;
  top: 18%;
  border-top: 4px solid #168fff;
  border-bottom: 2px solid #087dff99;
  transform: rotate(-18deg);
  box-shadow: 0 -5px 20px #087dff88, 0 7px 25px #087dff44;
}

.trail-blue::after {
  right: 4%;
  top: 45%;
  height: 42%;
  border-top: 2px solid #42baff;
  transform: rotate(9deg);
  filter: blur(2px);
  box-shadow: 0 -8px 28px #087dff66;
}

/* Richer sphere shading: layered glass, internal colour and luminous edges. */
.voice-orb {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 28% 16%, #fff 0, #ffd4df 2%, #ff728e 5%, transparent 19%),
    radial-gradient(ellipse at 27% 34%, #ff315b 0, #a10e3c 17%, transparent 39%),
    radial-gradient(ellipse at 73% 63%, #12aaff 0, #0752b4 16%, transparent 40%),
    radial-gradient(ellipse at 48% 52%, #020512 0, #060a1c 39%, #122750 68%, #030612 100%);
  box-shadow:
    inset 0 0 0 1px #d4e9ff88,
    inset 5px 4px 12px #fff4,
    inset -12px -15px 25px #000d,
    0 0 14px #ff304e44,
    0 0 30px #087dff44,
    0 0 calc(20px + var(--voice-energy) * 30px) #087dff44;
}

.orb-core {
  inset: -10%;
  border-radius: 50%;
  background:
    conic-gradient(from 10deg,
      transparent 0deg,
      #087dff 35deg,
      #65d8ff 62deg,
      transparent 95deg,
      #05091a 135deg,
      #ff315d 180deg,
      #ffb0c7 205deg,
      #ff315d 225deg,
      transparent 255deg,
      #087dff 300deg,
      transparent 360deg);
  filter: blur(1px);
  opacity: .95;
  -webkit-mask: radial-gradient(ellipse, transparent 0 25%, #000 37% 60%, transparent 74%);
  mask: radial-gradient(ellipse, transparent 0 25%, #000 37% 60%, transparent 74%);
}

.orb-ribbon {
  width: 145%;
  height: 52%;
  left: -22%;
  border: 0;
  background:
    linear-gradient(180deg,
      #ffd4e0 0%,
      #ff577a 12%,
      #e91d54 31%,
      #6a153e 48%,
      #11152d 61%,
      #087dff 81%,
      #80e4ff 94%,
      #087dff 100%);
  -webkit-mask: radial-gradient(ellipse, transparent 0 39%, #000 41% 49%, transparent 52%);
  mask: radial-gradient(ellipse, transparent 0 39%, #000 41% 49%, transparent 52%);
  filter: drop-shadow(0 0 5px #ff315b) drop-shadow(0 0 8px #087dff);
  box-shadow: none;
}

.ribbon-one {
  top: 13%;
  transform: rotate(-35deg);
}

.ribbon-two {
  top: 34%;
  left: -21%;
  transform: rotate(34deg);
  background:
    linear-gradient(180deg,
      #70dfff 0%,
      #078cff 22%,
      #153c88 43%,
      #17142f 58%,
      #b21c50 78%,
      #ff8cae 92%,
      #ff315e 100%);
  opacity: .95;
}

.orb-glass {
  background:
    radial-gradient(ellipse at 25% 13%, #ffffff9c, transparent 7%),
    radial-gradient(ellipse at 20% 22%, #ff9dbb38, transparent 25%),
    radial-gradient(ellipse at 82% 43%, #31baff2a, transparent 23%),
    radial-gradient(ellipse at 70% 85%, transparent 32%, #087dff66 72%, #030612ed 100%);
  box-shadow:
    inset 0 0 0 2px #cce8ff99,
    inset 5px 4px 9px #ffffff2b,
    inset -10px -12px 20px #000b;
}

.orb-shine {
  border-color: #e8f5ff55;
  background:
    linear-gradient(140deg, #ffffff18, transparent 24% 67%, #087dff12);
}

.orb-halo {
  width: 194px;
  height: 194px;
  border-color: #427ac52b;
  box-shadow:
    0 0 24px #ff304e0c,
    0 0 38px #087dff12,
    inset 0 0 25px #087dff0a;
}

@keyframes red-ribbon-flow {
  from { transform: translate3d(-1%, 0, 0) rotate(10deg); }
  to { transform: translate3d(2%, -3%, 0) rotate(15deg); }
}

@keyframes blue-ribbon-flow {
  from { transform: translate3d(1%, 0, 0) rotate(-10deg); }
  to { transform: translate3d(-2%, 3%, 0) rotate(-15deg); }
}

@media (prefers-reduced-motion: reduce) {
  .trail-red, .trail-blue { animation: none; }
}

/* Refine the final concept: real translucency, organic light and sculpted glass. */

/* Organic atmospheric background instead of straight neon lines */
.ambient {
  background:
    radial-gradient(ellipse at 4% 18%, #79132988 0%, #3a101f66 22%, transparent 47%),
    radial-gradient(ellipse at 96% 17%, #063e8588 0%, #09234866 24%, transparent 48%),
    radial-gradient(ellipse at 8% 83%, #ff203a38 0%, transparent 35%),
    radial-gradient(ellipse at 93% 82%, #087dff38 0%, transparent 36%),
    linear-gradient(135deg, #080810, #030711 52%, #040813);
}
.ambient::before {
  inset: -12%;
  opacity: .85;
  filter: blur(30px);
  background:
    radial-gradient(ellipse at 5% 30%, #f51c433d 0 13%, transparent 38%),
    radial-gradient(ellipse at 95% 30%, #087dff42 0 15%, transparent 40%),
    radial-gradient(ellipse at 28% 95%, #ff243b28 0 9%, transparent 32%),
    radial-gradient(ellipse at 78% 95%, #078cff30 0 10%, transparent 34%);
  animation: atmospheric-drift 18s ease-in-out infinite alternate;
}
.ambient::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0;
  opacity: .72;
  background:
    radial-gradient(ellipse at -8% 49%, transparent 28%, #ff34431a 44%, transparent 62%),
    radial-gradient(ellipse at 108% 51%, transparent 29%, #078cff1c 46%, transparent 64%);
}

/* Broader flowing ribbons with soft atmospheric edges */
.light-trail {
  width: 105vw;
  height: 52vh;
  min-height: 300px;
  filter: blur(10px);
  opacity: .82;
}
.trail-red {
  left: -38vw;
  top: 31%;
  background:
    radial-gradient(ellipse at 50% 50%, #ff243d28, transparent 63%);
  animation: organic-red 16s ease-in-out infinite alternate;
}
.trail-blue {
  right: -38vw;
  top: 34%;
  background:
    radial-gradient(ellipse at 50% 50%, #087dff2c, transparent 63%);
  animation: organic-blue 18s ease-in-out infinite alternate;
}
.trail-red::before {
  height: 65%;
  top: 12%;
  border: 0;
  border-top: 9px solid #ff344c;
  border-radius: 48% 52% 38% 62%;
  transform: rotate(20deg) skewY(8deg);
  filter: blur(5px);
  box-shadow: 0 -8px 28px #ff233b77, 0 20px 45px #ff233b25;
}
.trail-red::after {
  height: 50%;
  top: 40%;
  border: 0;
  border-top: 4px solid #ff5b65;
  border-radius: 60% 40% 55% 45%;
  transform: rotate(-13deg) skewY(-8deg);
  filter: blur(4px);
  box-shadow: 0 -7px 22px #ff273d66;
}
.trail-blue::before {
  height: 65%;
  top: 12%;
  border: 0;
  border-top: 9px solid #078cff;
  border-radius: 52% 48% 62% 38%;
  transform: rotate(-20deg) skewY(-8deg);
  filter: blur(5px);
  box-shadow: 0 -8px 28px #078cff88, 0 20px 45px #087dff25;
}
.trail-blue::after {
  height: 50%;
  top: 40%;
  border: 0;
  border-top: 4px solid #35baff;
  border-radius: 40% 60% 45% 55%;
  transform: rotate(13deg) skewY(8deg);
  filter: blur(4px);
  box-shadow: 0 -7px 22px #078cff77;
}

/* Translucent glass panel: let background colour and light bleed through */
.glass-panel {
  background:
    linear-gradient(118deg,
      rgb(18 15 27 / 72%),
      rgb(7 12 25 / 64%) 45%,
      rgb(5 13 29 / 73%)) padding-box,
    linear-gradient(115deg,
      #ff405c, #ff6b7655 16%, #5479a766 43%,
      #078cff99 82%, #51caff) border-box;
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  backdrop-filter: blur(26px) saturate(145%);
  box-shadow:
    -15px 10px 65px #ff23391a,
    15px 10px 70px #087dff22,
    inset 0 1px 1px #ffffff20,
    inset 0 0 70px #ffffff06;
}
.glass-panel::before {
  background: linear-gradient(120deg,
    #ff6b7a99, #ffffff13 18%, transparent 37%,
    transparent 69%, #238fff55 88%, #50caff);
}
.control-bar {
  background:
    linear-gradient(110deg, rgb(8 12 24 / 72%), rgb(8 16 32 / 66%)) padding-box,
    linear-gradient(105deg, #ff596e, #ffffff20 40%, #078cff) border-box;
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    inset 0 1px 1px #ffffff17,
    0 0 25px #05091455;
}

/* Replace the wireframe look with a dark, dimensional glass sphere. */
.voice-orb {
  background:
    radial-gradient(ellipse at 29% 17%, #fff9ff 0, #ffd3e0 2%, #ff6c8a 5%, transparent 17%),
    radial-gradient(ellipse at 25% 36%, #ff385e 0, #851536 24%, transparent 47%),
    radial-gradient(ellipse at 74% 60%, #12aaff 0, #06488f 24%, transparent 49%),
    radial-gradient(ellipse at 47% 50%, #020511 0, #050918 48%, #102750 75%, #020510 100%);
  box-shadow:
    inset 0 0 0 2px #cde9ff88,
    inset 7px 5px 14px #ffffff30,
    inset -15px -17px 26px #000e,
    0 0 26px #ff304e24,
    0 0 36px #087dff2b,
    0 0 calc(22px + var(--voice-energy) * 24px) #087dff33;
}
.orb-core {
  inset: -8%;
  background:
    conic-gradient(from 12deg,
      transparent 0deg,
      #087dff 45deg, #72dcff 65deg,
      transparent 94deg, #06091a 135deg,
      #ff315d 178deg, #ffc0d0 202deg,
      #ff315d 226deg, transparent 257deg,
      #087dff 310deg, transparent 360deg);
  filter: blur(3px);
  -webkit-mask: radial-gradient(ellipse, transparent 0 34%, #000 45% 58%, transparent 73%);
  mask: radial-gradient(ellipse, transparent 0 34%, #000 45% 58%, transparent 73%);
}

/* Thick, curved luminous bands: sculpted rather than thin intersecting wires. */
.orb-ribbon {
  width: 145%;
  height: 78%;
  left: -23%;
  border: 0;
  border-radius: 50%;
  background:
    linear-gradient(180deg,
      #fff0f5 0%,
      #ff8aa4 8%,
      #ff315e 22%,
      #8f153e 39%,
      #10152e 52%,
      #075bb6 70%,
      #26bdff 86%,
      #b4f0ff 96%);
  -webkit-mask: radial-gradient(ellipse, transparent 0 38%, #000 40% 49%, transparent 52%);
  mask: radial-gradient(ellipse, transparent 0 38%, #000 40% 49%, transparent 52%);
  filter: drop-shadow(0 0 4px #ff315b99) drop-shadow(0 0 7px #087dff77);
}
.ribbon-one {
  top: 5%;
  transform: rotate(-38deg) scaleX(1.02);
}
.ribbon-two {
  top: 19%;
  left: -22%;
  transform: rotate(38deg) scaleX(1.03);
  background:
    linear-gradient(180deg,
      #b5f1ff 0%,
      #28baff 12%,
      #087dff 28%,
      #143d7b 43%,
      #16122b 54%,
      #9e1747 74%,
      #ff5a7c 88%,
      #ffe0e9 98%);
  opacity: .86;
}
.orb-glass {
  background:
    radial-gradient(ellipse at 25% 13%, #ffffffa6, transparent 7%),
    radial-gradient(ellipse at 20% 22%, #ff9dbb30, transparent 28%),
    radial-gradient(ellipse at 81% 38%, #31baff22, transparent 24%),
    radial-gradient(ellipse at 69% 83%, transparent 30%, #087dff55 70%, #020510e8 100%);
  box-shadow:
    inset 0 0 0 2px #d5ebff99,
    inset 5px 4px 9px #ffffff25,
    inset -10px -13px 22px #000c;
}
.orb-shine {
  border-color: #e8f5ff55;
  background: linear-gradient(140deg, #ffffff19, transparent 27% 67%, #087dff12);
}

@keyframes atmospheric-drift {
  from { transform: translate(-1%, -1%) scale(1); }
  to { transform: translate(1%, 2%) scale(1.06); }
}
@keyframes organic-red {
  from { transform: translate(-1%, 0) rotate(9deg) scaleY(1); }
  to { transform: translate(3%, -3%) rotate(16deg) scaleY(1.12); }
}
@keyframes organic-blue {
  from { transform: translate(1%, 0) rotate(-9deg) scaleY(1); }
  to { transform: translate(-3%, 3%) rotate(-16deg) scaleY(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient::before, .trail-red, .trail-blue { animation: none !important; }
}

/* Correct colour balance: near-black centre, colour confined to the edges */
.ambient {
  background:
    radial-gradient(ellipse at 0% 38%, #65111f66, transparent 33%),
    radial-gradient(ellipse at 100% 38%, #092d5c66, transparent 34%),
    linear-gradient(110deg, #08070d 0%, #030610 34%, #030610 66%, #050914 100%);
}
.ambient::before {
  opacity: .45;
  filter: blur(48px);
  background:
    radial-gradient(ellipse at 0% 50%, #ff24351e, transparent 42%),
    radial-gradient(ellipse at 100% 50%, #087dff22, transparent 43%);
  animation: none;
}
.ambient::after { opacity: .25; }

/* Keep the glass dark, clear and reflective rather than cloudy */
.glass-panel {
  background:
    linear-gradient(110deg,
      rgb(9 8 15 / 83%),
      rgb(4 7 16 / 82%) 45%,
      rgb(5 9 19 / 84%)) padding-box,
    linear-gradient(115deg, #ff405c, #6c263e 18%, #26354f 52%, #078cff 88%, #51caff) border-box;
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  backdrop-filter: blur(8px) saturate(115%);
  box-shadow:
    -8px 6px 45px #ff23390d,
    8px 6px 45px #087dff12,
    inset 0 1px 1px #ffffff18,
    inset 0 0 35px #ffffff02;
}
.glass-panel::before {
  background: linear-gradient(120deg,
    #ff5a6eaa, #ffffff0c 18%, transparent 38%,
    transparent 70%, #238fff44 90%, #50caff);
}

/* Remove the straight neon-line appearance from the background ribbons */
.light-trail {
  filter: blur(18px);
  opacity: .42;
}
.trail-red::before, .trail-red::after,
.trail-blue::before, .trail-blue::after {
  filter: blur(9px);
  opacity: .58;
}
.trail-red { animation-duration: 22s; }
.trail-blue { animation-duration: 24s; }

/* Make the current CSS orb neutral until the glass artwork is installed */
.voice-orb {
  background:
    radial-gradient(ellipse at 30% 18%, #ffffffcc 0%, #d7e6ff66 3%, transparent 13%),
    radial-gradient(ellipse at 28% 35%, #b20d39 0%, transparent 37%),
    radial-gradient(ellipse at 72% 64%, #0758a8 0%, transparent 42%),
    radial-gradient(ellipse at 50% 52%, #02040b 0%, #050817 64%, #0b1831 82%, #02040a 100%);
}
