
/* QMAX V139.5 — Living Shawn + Naya conversation presentation.
   Presentation-only refinement. Existing audio/player architecture remains untouched. */

/* Remove the now-unused supporting block without altering surrounding layout. */
.hmc-premium-welcome-copy__support {
  display: none !important;
}

/* Give the image more room and let the emotional hook remain elegant. */
.hmc-premium-welcome-copy {
  width: min(860px, calc(100% - 54px));
  padding-top: clamp(14px, 1.8vw, 24px);
  padding-bottom: clamp(15px, 1.7vw, 22px);
}

.hmc-premium-welcome-copy__headline {
  gap: clamp(7px, .7vw, 11px);
}

.hmc-premium-welcome-copy__headline span {
  font-size: clamp(28px, 3vw, 49px);
  line-height: 1.04;
  font-weight: 650;
}

.hmc-premium-welcome-copy__headline strong {
  font-size: clamp(32px, 3.45vw, 57px);
  line-height: 1.02;
  font-weight: 730;
}

/* Living conversation */
.hmc-living-conversation {
  width: min(72%, 650px);
  min-width: 500px;
  height: 104px;
  margin: clamp(12px, 1.25vw, 17px) auto clamp(9px, 1vw, 14px);
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 62px;
  align-items: center;
  column-gap: 8px;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.34));
}

.hmc-living-conversation__speaker {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.hmc-living-conversation__portrait {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235,226,242,.82);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 28%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(180deg, rgba(49,29,60,.92), rgba(9,7,12,.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    0 0 0 4px rgba(133,67,177,.09),
    0 8px 20px rgba(0,0,0,.34),
    0 0 18px rgba(153,83,203,.14);
  overflow: hidden;
}

.hmc-living-conversation__portrait::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(184,113,227,.28);
  border-radius: 50%;
  opacity: .55;
  animation: hmcPortraitBreathe 4.8s ease-in-out infinite;
}

.hmc-living-conversation__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hmc-living-conversation__name {
  color: rgba(245,239,248,.74);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 8px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .18em;
}

.hmc-living-conversation__channel {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
}

.hmc-living-conversation__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hmc-living-conversation__voice {
  transform-origin: center;
}

.hmc-living-conversation__voice .voice-line {
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: url(#hmcLivingVoiceGlow);
  transform-origin: center;
}

.hmc-living-conversation__voice .voice-line--ghost {
  opacity: .22;
  transform: translateY(5px) scaleY(.86);
}

.hmc-living-conversation__voice .voice-line--main {
  opacity: .82;
}

.hmc-living-conversation__voice .voice-line--inner {
  opacity: .38;
  transform: translateY(-4px) scaleY(.76);
}

.hmc-living-conversation__voice--left {
  animation: hmcSpeakerLeftIdle 5.8s ease-in-out infinite;
}

.hmc-living-conversation__voice--right {
  animation: hmcSpeakerRightIdle 5.8s ease-in-out infinite;
  animation-delay: -2.9s;
}

.hmc-living-conversation__signal {
  fill: #fff;
  opacity: .62;
  filter: drop-shadow(0 0 8px rgba(183,112,230,.92));
  animation: hmcSignalPulse 3.2s ease-in-out infinite;
}

.hmc-living-conversation__signal--right {
  animation-delay: -1.6s;
}

.hmc-living-conversation__emblem {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(235,225,242,.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 28%, rgba(255,255,255,.17), transparent 32%),
    linear-gradient(180deg, rgba(42,24,52,.94), rgba(9,7,12,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    0 0 0 5px rgba(120,54,163,.08),
    0 0 21px rgba(153,80,207,.24);
  animation: hmcEmblemLiving 4.2s ease-in-out infinite;
}

.hmc-living-conversation__halo {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(174,96,221,.24);
  border-radius: 50%;
  animation: hmcHaloLiving 3.8s ease-out infinite;
}

.hmc-living-conversation__diamond {
  width: 15px;
  height: 15px;
  transform: rotate(45deg);
  border: 1px solid rgba(231,208,245,.94);
  background: linear-gradient(145deg, rgba(196,119,234,.68), rgba(66,27,88,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}

.hmc-living-conversation__core {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(198,129,239,.98);
}

.hmc-living-conversation__caption {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  white-space: nowrap;
  color: rgba(236,228,241,.63);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 7px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .20em;
}

/* The app's existing .stage.playing state becomes the conversation engine. */
.stage.playing .hmc-living-conversation__voice--left {
  animation: hmcSpeakerLeftTalk 3.35s cubic-bezier(.45,0,.25,1) infinite;
}

.stage.playing .hmc-living-conversation__voice--right {
  animation: hmcSpeakerRightTalk 3.35s cubic-bezier(.45,0,.25,1) infinite;
}

.stage.playing .hmc-living-conversation__voice .voice-line--main {
  opacity: 1;
}

.stage.playing .hmc-living-conversation__voice .voice-line--ghost {
  opacity: .36;
}

.stage.playing .hmc-living-conversation__voice .voice-line--inner {
  opacity: .55;
}

.stage.playing .hmc-living-conversation__speaker--shawn .hmc-living-conversation__portrait::after {
  animation: hmcSpeakerRingLeft 3.35s ease-in-out infinite;
}

.stage.playing .hmc-living-conversation__speaker--naya .hmc-living-conversation__portrait::after {
  animation: hmcSpeakerRingRight 3.35s ease-in-out infinite;
}

.stage.playing .hmc-living-conversation__signal {
  animation-duration: .95s;
  opacity: .95;
}

.stage.playing .hmc-living-conversation__emblem {
  animation-duration: 1.9s;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    0 0 0 5px rgba(120,54,163,.12),
    0 0 28px rgba(153,80,207,.36);
}

.hmc-premium-welcome-copy__invitation {
  margin-top: clamp(8px, .8vw, 12px);
  font-size: clamp(13px, .95vw, 15px);
  font-weight: 610;
  color: rgba(252,248,243,.97);
}

/* Idle: calm, alive, expectant */
@keyframes hmcSpeakerLeftIdle {
  0%, 100% { transform: scaleY(.88); opacity: .58; }
  45% { transform: scaleY(1.08); opacity: .82; }
  70% { transform: scaleY(.94); opacity: .66; }
}

@keyframes hmcSpeakerRightIdle {
  0%, 100% { transform: scaleY(.92); opacity: .62; }
  38% { transform: scaleY(1.04); opacity: .78; }
  72% { transform: scaleY(1.10); opacity: .84; }
}

/* Playing: alternating conversational turns, not a mirrored music equalizer */
@keyframes hmcSpeakerLeftTalk {
  0%, 8%   { transform: scaleY(.72); opacity: .68; }
  14%      { transform: scaleY(1.34); opacity: 1; }
  23%      { transform: scaleY(.92); opacity: .80; }
  31%      { transform: scaleY(1.21); opacity: .96; }
  42%      { transform: scaleY(.78); opacity: .70; }
  52%,100% { transform: scaleY(.64); opacity: .54; }
}

@keyframes hmcSpeakerRightTalk {
  0%,45%   { transform: scaleY(.64); opacity: .54; }
  53%      { transform: scaleY(1.22); opacity: .96; }
  62%      { transform: scaleY(.84); opacity: .76; }
  72%      { transform: scaleY(1.36); opacity: 1; }
  82%      { transform: scaleY(.95); opacity: .82; }
  92%,100% { transform: scaleY(.72); opacity: .66; }
}

@keyframes hmcSpeakerRingLeft {
  0%,45%,100% { transform: scale(.94); opacity: .22; }
  15%,32% { transform: scale(1.18); opacity: .72; }
}

@keyframes hmcSpeakerRingRight {
  0%,47%,100% { transform: scale(.94); opacity: .22; }
  63%,78% { transform: scale(1.18); opacity: .72; }
}

@keyframes hmcSignalPulse {
  0%,100% { transform: scale(.72); opacity: .30; }
  50% { transform: scale(1.28); opacity: .92; }
}

@keyframes hmcPortraitBreathe {
  0%,100% { transform: scale(.96); opacity: .28; }
  50% { transform: scale(1.08); opacity: .58; }
}

@keyframes hmcEmblemLiving {
  0%,100% { transform: translate(-50%,-50%) scale(.96); }
  50% { transform: translate(-50%,-50%) scale(1.04); }
}

@keyframes hmcHaloLiving {
  0% { transform: scale(.78); opacity: .48; }
  75%,100% { transform: scale(1.22); opacity: 0; }
}

@media (max-width: 980px) {
  .hmc-living-conversation {
    width: min(78%, 590px);
    min-width: 440px;
    height: 96px;
    grid-template-columns: 56px minmax(0,1fr) 56px;
  }

  .hmc-living-conversation__portrait {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 680px) {
  .hmc-premium-welcome-copy {
    width: calc(100% - 22px);
  }

  .hmc-living-conversation {
    width: min(94%, 500px);
    min-width: 0;
    height: 82px;
    grid-template-columns: 46px minmax(0,1fr) 46px;
    column-gap: 4px;
    margin-top: 9px;
    margin-bottom: 7px;
  }

  .hmc-living-conversation__portrait {
    width: 40px;
    height: 40px;
  }

  .hmc-living-conversation__name {
    font-size: 6px;
    letter-spacing: .12em;
  }

  .hmc-living-conversation__emblem {
    width: 32px;
    height: 32px;
  }

  .hmc-living-conversation__caption {
    display: none;
  }

  .hmc-premium-welcome-copy__headline span {
    font-size: clamp(25px, 7.8vw, 38px);
  }

  .hmc-premium-welcome-copy__headline strong {
    font-size: clamp(28px, 8.6vw, 43px);
  }

  .hmc-premium-welcome-copy__invitation {
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hmc-living-conversation *,
  .stage.playing .hmc-living-conversation * {
    animation: none !important;
  }

  .hmc-living-conversation__voice {
    opacity: .78;
  }
}
