/* Механика из ds-screen (режим помощи Віолетты), перекрашено под токены среднего прода: розовый тон Віолетты = --pink-rgb, стекло = --glass-*, без свечений. */
/* DEVIL-DS · Режим помощи Віолетты: плашка-подсказка, подсветка блоков, чат-панель (bottom sheet). Розовый тон Віолетты: #F472B6 */
/* кнопка Віолетты в режиме: мягкая пульсация */
.dv-btn.is-vpulse { animation: vh-pulse 1.8s ease-in-out infinite; }
@keyframes vh-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.06; } }
/* остальной интерфейс приглушён на 15% */
.screen.is-vhelp .top-menu > :not(#b-violetta), .screen.is-vhelp .sub-bar, .screen.is-vhelp .sub-bottom-bar, .screen.is-vhelp .bottom-bar { opacity: .15; pointer-events: none; transition: opacity .25s ease, translate .25s cubic-bezier(.2,.8,.2,1); }
/* блоки: розовая пунктирная обводка + мерцание */
.vh-block { outline: 1px dashed rgba(var(--pink-rgb), .8); outline-offset: 3px; animation: vh-shimmer 2.4s ease-in-out infinite; cursor: pointer; }
@keyframes vh-shimmer { 0%, 100% { outline-color: rgba(var(--pink-rgb), .35); } 50% { outline-color: rgba(var(--pink-rgb), .95); } }
.vh-block.vh-flash { animation: none; outline-color: var(--pink); background-color: rgba(var(--pink-rgb), .4) !important; transition: background-color .15s ease; }
/* плашка-подсказка */
.vh-hint { position: absolute; left: 16px; right: 16px; top: 166px; height: 40px; z-index: 20; box-sizing: border-box; padding: 0 6px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-radius: 20px; background: rgba(var(--pink-rgb), .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(var(--pink-rgb), .55), 0 0 2px 1px rgba(0, 0, 0, .5); color: rgba(255, 255, 255, .9); font: 400 13px/18px var(--font-ui);
  animation: vh-in .25s cubic-bezier(.2,.8,.2,1) both; }
.vh-x { flex: none; width: 28px; height: 28px; border: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(var(--pink-rgb), .18); box-shadow: inset 0 0 0 1px rgba(var(--pink-rgb), .5); }
.vh-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@keyframes vh-in { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
/* летящий клон блока */
.vh-fly { position: absolute; z-index: 55; margin: 0 !important; pointer-events: none; transform-origin: center; will-change: transform, opacity; background-color: rgba(var(--pink-rgb), .35) !important; outline: 0 !important; animation: none !important; }
/* затемнение и панель чата */
.vh-backdrop { position: absolute; inset: 0; z-index: 49; background: rgba(0, 0, 0, .35); animation: vh-fade .25s ease both; }
@keyframes vh-fade { from { opacity: 0; } to { opacity: 1; } }
.vh-sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; z-index: 50; box-sizing: border-box; display: flex; flex-direction: column; border-radius: 28px 28px 0 0;
  background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(10px) var(--glass-dim); backdrop-filter: blur(10px) var(--glass-dim); color: #fff; font: 400 14px/20px var(--font-ui);
  animation: vh-up .35s cubic-bezier(.2,.8,.2,1) both; }
.vh-sheet::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: rgba(255, 255, 255, .32); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.vh-sheet.is-closing { animation: vh-down .25s ease both; }
.vh-backdrop.is-closing { animation: vh-fadeout .25s ease both; }
@keyframes vh-up { from { translate: 0 100%; } to { translate: 0 0; } }
@keyframes vh-down { from { translate: 0 var(--vh-drag, 0px); } to { translate: 0 100%; } }
@keyframes vh-fadeout { to { opacity: 0; } }
.vh-head { flex: none; touch-action: none; cursor: grab; padding: 8px 16px 10px; }
.vh-grip { width: 36px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: rgba(255, 255, 255, .32); }
.vh-title { display: flex; align-items: center; gap: 10px; font: 600 16px/22px var(--font-ui); }
.vh-ava { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--pink-rgb), .22); box-shadow: inset 0 0 0 1px rgba(var(--pink-rgb), .6); color: var(--pink); }
.vh-ava svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vh-msgs { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 16px 8px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; overscroll-behavior: contain; }
.vh-msgs::-webkit-scrollbar { display: none; }
.vh-b { max-width: 86%; padding: 9px 14px; border-radius: 18px; box-sizing: border-box; animation: vh-in .25s ease both; overflow-wrap: anywhere; }
.vh-b--u { align-self: flex-end; border-bottom-right-radius: 6px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.vh-b--u small { display: block; margin-top: 2px; font-size: 11px; line-height: 15px; color: rgba(255, 255, 255, .55); }
.vh-b--v { align-self: flex-start; border-bottom-left-radius: 6px; background: rgba(var(--pink-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--pink-rgb), .45); }
.vh-dots { display: inline-flex; gap: 4px; align-items: center; height: 20px; }
.vh-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); animation: vh-dot 1s ease-in-out infinite; }
.vh-dots i:nth-child(2) { animation-delay: .15s; } .vh-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes vh-dot { 0%, 100% { opacity: .3; translate: 0 0; } 50% { opacity: 1; translate: 0 -3px; } }
.vh-chips { flex: none; display: flex; gap: 8px; padding: 8px 16px 34px; }
.vh-chip { flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: 18px; cursor: pointer; color: #fff; font: 500 13px/18px var(--font-ui);
  background: rgba(255, 255, 255, .10); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.vh-chip:active { background: rgba(var(--pink-rgb), .25); }
@media (prefers-reduced-motion: reduce) {
  .dv-btn.is-vpulse, .vh-block, .vh-dots i { animation: none !important; }
  .vh-hint, .vh-backdrop, .vh-sheet, .vh-b { animation: none !important; }
}

/* попап у блока */
.vh-popup { position: absolute; z-index: 40; display: flex; gap: 8px; padding: 8px; border-radius: 20px; background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(10px) var(--glass-dim); backdrop-filter: blur(10px) var(--glass-dim);
  box-shadow: var(--glass-shadow); animation: vh-pop .18s ease-out both; }
@keyframes vh-pop { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
.vh-pill { height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 20px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #fff; white-space: nowrap;
  font: 600 13px/18px var(--font-ui); text-transform: uppercase; letter-spacing: .8px;
  background: rgba(255, 255, 255, .10); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.vh-pill:active { background: rgba(var(--pink-rgb), .25); }
.vh-pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vh-flash { background-color: rgba(var(--pink-rgb), .4) !important; }
/* голос: кольцо у кнопки Віолетты */
.vh-ring { position: absolute; z-index: 21; width: 48px; height: 48px; margin: -24px 0 0 -24px; pointer-events: none; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(var(--pink-rgb), .8); }
.vh-ring i { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(var(--pink-rgb), .7); animation: vh-wave 1.8s ease-out infinite; }
.vh-ring i:nth-child(2) { animation-delay: .9s; }
@keyframes vh-wave { from { scale: 1; opacity: .8; } to { scale: 1.9; opacity: 0; } }
/* голос: плашка-субтитры */
.vh-sub { position: absolute; left: 16px; right: 16px; z-index: 30; box-sizing: border-box; padding: 10px 16px 8px; border-radius: 20px; background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(10px) var(--glass-dim); backdrop-filter: blur(10px) var(--glass-dim);
  box-shadow: var(--glass-shadow); color: #fff; font: 400 15px/21px var(--font-ui); animation: vh-subin .28s cubic-bezier(.2,.8,.2,1) both; }
.vh-sub.is-out { animation: vh-subout .25s ease both; }
@keyframes vh-subin { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes vh-subout { to { opacity: 0; translate: 0 40px; } }
.vh-sub__name { min-height: 14px; font: 600 11px/14px var(--font-ui); letter-spacing: .8px; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.vh-sub.is-v .vh-sub__name { color: var(--pink); }
.vh-sub__text { min-height: 21px; animation: vh-fade .25s ease both; }
.vh-sub__demo { margin-top: 4px; font: 400 10px/14px var(--font-ui); color: rgba(255, 255, 255, .38); }
.vh-eq { display: none; align-items: flex-end; gap: 3px; height: 21px; }
.vh-eq i { width: 3px; height: 14px; border-radius: 2px; background: var(--pink); animation: vh-eq 0.9s ease-in-out infinite; transform-origin: bottom; }
.vh-eq i:nth-child(2) { animation-delay: .2s; } .vh-eq i:nth-child(3) { animation-delay: .4s; }
.vh-eq span { margin-left: 8px; font: 400 13px/16px var(--font-ui); color: rgba(255, 255, 255, .6); }
@keyframes vh-eq { 0%, 100% { scale: 1 .3; } 50% { scale: 1 1; } }
.vh-sub.is-listen .vh-eq { display: flex; } .vh-sub.is-listen .vh-sub__text { display: none; }
/* отменённый блок */
.vh-cancelled { opacity: .6; filter: grayscale(.7); transition: opacity .3s ease; }
.vh-stamp { position: absolute; z-index: 5; translate: -100% -50%; pointer-events: none; height: 24px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center;
  font: 600 11px/1 var(--font-ui); letter-spacing: .8px; text-transform: uppercase; color: #fff;
  background: rgba(var(--red-rgb), .25); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 0 2px 1px rgba(0, 0, 0, .7), inset 0 0 0 .8px rgba(255, 255, 255, .35); }
@media (prefers-reduced-motion: reduce) {
  .vh-popup, .vh-sub, .vh-sub__text, .vh-eq i { animation: none !important; }
  .vh-ring i { display: none; }
}
