/* «Чудо начинается с имени» по макету владельца (30.11): стеклянная синяя карточка, заголовок со звёздочками,
   поле имени и красная «Послушать» в одну строку, под ними золотая звуковая волна, справа квадратный портрет в инее.
   Логика и анимации прежние (index.html: data-state before → playing → after, иней тает, видео). */
#voice{padding-block:40px}
#voice .voice{position:relative;max-width:1080px;margin:0 auto;border-radius:28px;padding:26px 20px 24px;gap:20px;
  background:radial-gradient(520px 260px at 8% 0,#2a52944d,transparent 70%),radial-gradient(420px 300px at 100% 100%,#1b3a7240,transparent 70%),
    linear-gradient(160deg,#17325f,#0f2449 55%,#0c1d3e);
  box-shadow:inset 0 0 0 1px #9dbcff3d,inset 0 1px 0 #d8e6ff33,0 24px 60px #0008}
@media (min-width:900px){
  #voice{padding-block:56px}
  #voice .voice{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"text frame" "form frame";grid-template-rows:auto auto;
    align-content:center;align-items:stretch;column-gap:clamp(32px,5vw,64px);row-gap:22px;padding:34px 40px 30px 52px}
  #voice .voice-text{align-self:end}
  #voice .namecard{align-self:start}
  #voice .h2{white-space:nowrap}
  #voice .dm-voice{--w:clamp(250px,24vw,290px);aspect-ratio:1;min-height:0;align-self:center}
}

/* заголовок: золотые четырёхлучевые звёздочки — маленькая слева, крупнее справа чуть ниже конца строки */
#voice .h2{position:relative;display:inline-block;margin:0 0 10px;padding:0 34px 0 30px;font-size:clamp(34px,4.4vw,52px);line-height:1.1;color:#ffd98a;
  text-shadow:0 0 18px #ffc95a40}
#voice .h2::before,#voice .h2::after{content:"";position:absolute;aspect-ratio:1;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0C11 7 13 9 20 10 13 11 11 13 10 20 9 13 7 11 0 10 7 9 9 7 10 0Z' fill='%23ffe3a0'/%3E%3C/svg%3E") center/contain no-repeat;
  filter:drop-shadow(0 0 4px #ffd27a);animation:vstar 3.2s ease-in-out infinite}
#voice .h2::before{left:0;top:50%;width:18px;margin-top:-9px}
#voice .h2::after{right:0;bottom:-2px;width:24px;animation-delay:-1.6s}
@keyframes vstar{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.8) rotate(15deg)}}
#voice .lead{max-width:27em;margin:0;color:#eef3ff;font:600 clamp(16px,1.45vw,19px)/1.45 var(--ui)}

/* поле и кнопка без бумажной карточки */
#voice .namecard{max-width:560px;width:100%;padding:0;gap:12px;background:none;box-shadow:none;transform:none;border-radius:0}
#voice .namecard label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#voice .namecard .row{gap:12px;align-items:center}
#voice .namecard input{height:64px;padding:0 22px;border-radius:18px;border:0;font:800 20px/1 var(--ui);color:#1a2238;
  background:linear-gradient(180deg,#fff9ea,#f3e3c2);box-shadow:inset 0 2px 2px #fff,inset 0 -3px 6px #d9be8a66,0 0 0 1px #f1d79d,0 6px 16px #0005}
#voice .namecard input::placeholder{color:#8a7a5c;font-weight:700}
#voice .namecard input:focus{box-shadow:inset 0 2px 2px #fff,0 0 0 2px #ffd27a,0 0 0 6px #ffd27a33,0 6px 16px #0005}
#voice .listen,#voice .listen:hover,#voice .namecard[data-state="playing"] .listen,#voice .namecard[data-state="playing"] .listen:hover{
  min-height:64px;padding:10px 28px 10px 12px;gap:12px;border-radius:999px;font:900 20px/1 var(--ui);color:#fff;
  background:linear-gradient(180deg,#d1403f,#a8232a 60%,#8d1a22);
  box-shadow:inset 0 1px 0 #ff9c8f80,0 0 0 2px #f2c877,0 0 0 4px #f2c87726,0 0 22px #ffcf7a55,0 10px 20px #0007}
#voice .listen:hover{background:linear-gradient(180deg,#dc4b49,#b2272e 60%,#951c24)}
#voice .listen:active{transform:translateY(2px)}
#voice .listen .dot{width:40px;height:40px;background:none;box-shadow:inset 0 0 0 2.5px #fff}
#voice .listen .dot svg{width:15px;height:15px;margin-left:0}  /* треугольник «Играть» уже смещён внутри своей картинки, пауза — по центру (01.12) */
#voice .namecard[data-state="playing"] .listen{font-size:17px}
#voice .namecard[data-state="after"] .listen,#voice .namecard[data-state="after"] .listen:hover{width:64px;min-width:64px;height:64px;padding:0;
  background:#0c1d3e;color:#ffd98a;box-shadow:inset 0 0 0 2px #f2c877,0 0 16px #ffcf7a33}
#voice .namecard[data-state="after"] .listen .dot{color:#ffd98a;box-shadow:none}
#voice .namecard .msg{color:#d4def3}
#voice .namecard .msg.bad{color:#ffaaa4}
#voice .namecard .ears,#voice .namecard .skip{display:none}

/* звуковая волна: в покое по ней бежит блик, пока Дед Мороз говорит — столбики «прыгают» */
#voice .vwave{display:flex;align-items:center;justify-content:center;gap:3px;height:36px;width:100%;max-width:440px;margin:4px 0 0 18px}
#voice .vwave i{flex:none;width:2.5px;height:var(--h);min-height:2.5px;border-radius:2px;background:linear-gradient(#ffe6a6,#e7ae4a);
  box-shadow:0 0 5px #ffcd6a88;opacity:.55;animation:vglow 2.6s ease-in-out infinite}
#voice .vwave i{animation-delay:calc(var(--d) * 2)}
@keyframes vglow{0%,100%{opacity:.45}50%{opacity:1}}
#voice .namecard[data-state="playing"] .vwave i{opacity:1;animation:vjump .55s ease-in-out infinite alternate;animation-delay:var(--d)}
@keyframes vjump{from{transform:scaleY(.35)}to{transform:scaleY(1.05)}}
#voice .namecard[data-paused] .vwave i{animation-play-state:paused}
html #voice .namecard[data-state="playing"] .vwave i{animation:vjump .55s ease-in-out infinite alternate!important;animation-delay:var(--d)!important}
/* пауза: волна замирает (правило выше с !important перебивало паузу, 01.12) */
html #voice .namecard[data-paused] .vwave i,html #voice .namecard[data-paused] .listen .eq i{animation-play-state:paused!important}

/* телефон */
@media (max-width:899px){
  #voice .voice{grid-template-areas:"text" "form" "frame"}
  #voice .h2{font-size:clamp(30px,8vw,42px)}
  #voice .namecard{justify-self:stretch;max-width:none}
  #voice .dm-voice{--w:min(70vw,280px);aspect-ratio:1}
  #voice .vwave{margin-left:0;max-width:none}
}
@media (max-width:480px){
  #voice .voice{padding:22px 14px 20px;border-radius:22px}
  #voice .h2{padding:0 26px 0 22px}#voice .h2::before{width:14px;margin-top:-7px}#voice .h2::after{width:18px}
  #voice .namecard .row{gap:8px}
  #voice .namecard input{height:56px;padding:0 14px;font-size:18px;border-radius:15px}
  #voice .listen,#voice .listen:hover,#voice .namecard[data-state="playing"] .listen{min-height:56px;padding:8px 16px 8px 8px;font-size:17px;gap:8px}
  #voice .listen .dot{width:34px;height:34px}
  #voice .namecard[data-state="after"] .listen,#voice .namecard[data-state="after"] .listen:hover{width:56px;min-width:56px;height:56px}
  #voice .vwave{gap:2px}#voice .vwave i{width:2px}
}
#voice .namecard[data-state="after"] .listen .i-again{width:26px;height:26px;margin:0}
