.voice-room {box-sizing:border-box;width:min(460px,calc(100vw - 28px));max-height:90dvh;padding:24px;color:#422a31;border:1px solid #d5bdad;border-radius:22px;background:radial-gradient(ellipse at 60% 41%,#fae2cf,transparent 58%),#fbf5eb;box-shadow:0 24px 80px #29132344;text-align:center}
.voice-room::backdrop {background:#271e24a8;backdrop-filter:blur(5px)}
.voice-room-head,.voice-actions {display:flex;align-items:center;gap:8px}
.voice-room-head {justify-content:space-between;font-size:.95rem}
.voice-room .voice-close {width:44px;border:0;background:transparent;font:1.55rem/1 sans-serif}
.voice-stage {display:grid;place-items:center;height:clamp(135px,28vh,245px)}
.voice-orb {--level:0;width:clamp(86px,16vh,138px);aspect-ratio:1;border-radius:47% 54% 46% 52%;background:radial-gradient(ellipse at 66% 25%,#ffdec6,transparent 43%),radial-gradient(ellipse at 30% 73%,#77304e,transparent 58%),linear-gradient(138deg,#d58b7a,#ab526a 55%,#623046);box-shadow:inset -5px -5px 16px #63354155,0 0 0 9px #bd797719,0 0 0 24px #bd79770d;transform:scale(calc(1 + var(--level) * .27));transition:transform .12s}
.voice-room[data-phase=waiting] .voice-orb {animation:voice-drift 3s ease-in-out infinite}
.voice-room[data-phase=speaking] .voice-orb {animation:voice-drift 1.3s ease-in-out infinite alternate}
@keyframes voice-drift {50% {border-radius:57% 43% 53% 44%;transform:rotate(12deg) scale(1.09)}}
.voice-state {font-weight:750;font-size:1.2rem}
.voice-caption {margin:.5rem auto 1.3rem;max-width:34ch;max-height:12vh;overflow:auto;color:#6b5358;font-size:.92rem}
.voice-actions {justify-content:center;flex-wrap:wrap}
.voice-room .voice-action {background:#542c3c;color:white}
@media(prefers-reduced-motion:reduce){.voice-room .voice-orb {animation:none!important;transform:none;transition:none}}

.voice-widget button {font-family:inherit;cursor:pointer}
.voice-room button {border:1px solid #bca697;border-radius:22px;background:#fffaf0;color:#552c3d;padding:8px 15px;min-height:44px}
.voice-entry {position:fixed;left:max(14px,env(safe-area-inset-left));bottom:max(14px,env(safe-area-inset-bottom));z-index:90}
.voice-launch {position:relative;display:flex;align-items:center;gap:8px;background:#502838;color:#fff4e8;padding:11px 16px;min-height:46px;border:1px solid #e8c2b9;border-radius:30px;box-shadow:0 4px 18px #3a172838;font-size:.88rem;font-weight:650}
.voice-hint {
  position:absolute;left:calc(100% + 8px);bottom:50%;transform:translateY(50%);
  width:max-content;padding:6px 12px;border:1px solid #d5bdad;border-radius:12px;
  background:#fff8ee;color:#502838;box-shadow:0 3px 12px #3a17281c;
  font-size:.82rem;line-height:1.6;visibility:hidden;
}
.voice-widget:not(:has(dialog[open])) .voice-launch:focus-visible + .voice-hint {visibility:visible}
@media (hover:hover) {
  .voice-widget:not(:has(dialog[open])) .voice-entry:hover .voice-hint {visibility:visible}
  .voice-hint::before {content:"";position:absolute;right:100%;top:0;width:8px;height:100%}
}
@media (max-width:420px) {
  .voice-hint {left:0;bottom:calc(100% + 8px);transform:none}
  .voice-hint::before {top:100%;right:0;width:100%;height:8px}
}
.voice-launch svg {
  box-sizing:content-box;
  padding:5px;
  margin-inline-start:-6px;
  border-radius:50%;
  color:#ffe4d3;
  background:#ffffff19;
}
.voice-launch::after {
  content:"";
  position:absolute;
  inset:-1px;
  border:1px solid #aa686e;
  border-radius:inherit;
  pointer-events:none;
  opacity:0;
}
.voice-launch:focus-visible {outline:3px solid #91485d;outline-offset:3px}
@media (hover:hover) {
  .voice-launch:hover {background:#653248;box-shadow:0 6px 20px #3a17284a}
}
.voice-launch:active {background:#40202e;box-shadow:0 1px 5px #3a172838}
@media (prefers-reduced-motion:no-preference) {
  .voice-launch {transition:transform .16s ease,background-color .16s,box-shadow .16s}
  .voice-launch::after {animation:voice-invite 1.25s ease-out .65s 2}
  @media (hover:hover) {
    .voice-launch:hover {transform:translateY(-2px)}
  }
  .voice-launch:active {transform:scale(.97)}
  .voice-widget:not(:has(dialog[open])) .voice-launch:not(:hover, :focus-visible, :active) svg {
    animation:voice-mic-ripple 8s ease-out 3.2s infinite;
  }
  @keyframes voice-mic-ripple {
    0%, 75% {box-shadow:0 0 0 0 transparent}
    80% {box-shadow:0 0 0 1px #ffded340}
    100% {box-shadow:0 0 0 7px transparent}
  }
  @keyframes voice-invite {
    from {opacity:.65;transform:scale(1)}
    to {opacity:0;transform:scale(1.09,1.3)}
  }
}
.voice-book:not([hidden]) {display:grid;justify-items:center;gap:9px;padding:12px;color:#422a31;text-decoration:none}
.voice-book img {width:auto;max-width:65%;height:clamp(100px,25vh,208px);object-fit:contain;filter:drop-shadow(2px 6px 5px #422a3136)}
.voice-room:has(.voice-book:not([hidden])) .voice-stage {display:none}

.voice-detail {display:grid;justify-items:center;gap:8px;width:100%;color:inherit;text-decoration:none}
.voice-buy:not([hidden]) {display:inline-flex;align-items:center;min-height:44px;padding:0 22px;border-radius:22px;background:#542c3c;color:#fff4e8;font-weight:650;text-decoration:none}
.voice-buy:hover {background:#6d394d}
