﻿/* Ehna - live gifts catalog & full-screen gift effects */

/* ---------- shared coin ---------- */
.ehna-coin {
  display: inline-block;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8d6 0 16%, #ffd84d 42%, #e69500 76%, #a85f00);
  box-shadow: inset 0 0 0 1px rgba(122, 74, 0, .55), 0 0 6px rgba(255, 200, 70, .35);
}

/* ---------- catalog dialog (bootbox) as a dark bottom sheet ---------- */
.ehna-gifts-sheet .modal-dialog {
  max-width: 640px;
}
.ehna-gifts-sheet .modal-content {
  background: linear-gradient(180deg, #1f1d2e 0%, #14131d 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.ehna-gifts-sheet .modal-header {
  border: 0;
  padding: 14px 16px 6px;
}
.ehna-gifts-sheet .modal-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.ehna-gifts-sheet .bootbox-close-button,
.ehna-gifts-sheet .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: .7;
}
.ehna-gifts-sheet .modal-body {
  padding: 0 12px 12px;
}
@media (max-width: 575.98px) {
  .ehna-gifts-sheet .modal-dialog {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .ehna-gifts-sheet.fade .modal-dialog {
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  }
  .ehna-gifts-sheet.show .modal-dialog {
    transform: none;
  }
  .ehna-gifts-sheet .modal-content {
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .ehna-gifts-sheet .modal-content::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, .25);
  }
  .ehna-gifts-sheet .modal-header {
    padding-top: 6px;
  }
}

/* own sheet (used when bootbox is not available) */
.ehna-gifts-modal {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ehna-gifts-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  transition: opacity .3s;
}
.ehna-gifts-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  background: linear-gradient(180deg, #1f1d2e 0%, #14131d 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  color: #fff;
  opacity: 0;
  transform: translateY(24px) scale(.98);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .25s;
}
.ehna-gifts-modal.show .ehna-gifts-backdrop {
  opacity: 1;
}
.ehna-gifts-modal.show .ehna-gifts-panel {
  opacity: 1;
  transform: none;
}
.ehna-gifts-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px 16px;
}
.ehna-gifts-panel-head strong {
  font-size: 16px;
}
.ehna-gifts-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.ehna-gifts-panel-body {
  padding: 0 12px 12px;
}
@media (max-width: 575.98px) {
  .ehna-gifts-modal {
    align-items: flex-end;
    padding: 0;
  }
  .ehna-gifts-panel {
    max-height: 86vh;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    transform: translateY(100%);
  }
  .ehna-gifts-panel::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, .25);
  }
  .ehna-gifts-panel-head {
    padding-top: 6px;
  }
}

.ehna-gifts {
  color: #fff;
  font-size: 13px;
}
.ehna-gifts-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 10px;
}
.ehna-gifts-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  white-space: nowrap;
}
.ehna-gifts-balance strong {
  color: #ffcf4a;
  font-weight: 800;
}
.ehna-gifts-balance small {
  opacity: .65;
}
.ehna-gifts-balance.wallet {
  margin-inline-start: auto;
}
.ehna-gifts-balance.wallet i {
  color: #7fd0ff;
}
.ehna-gifts-balance.wallet strong {
  color: #fff;
}

.ehna-gifts-tabs {
  display: flex;
  gap: 6px;
  margin: 0 -2px 8px;
  padding: 0 2px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ehna-gifts-tabs::-webkit-scrollbar {
  display: none;
}
.ehna-gifts-tabs button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  background: transparent;
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.ehna-gifts-tabs button:hover {
  color: #fff;
}
.ehna-gifts-tabs button.active {
  background: #fff;
  color: #15141f;
}

.ehna-gifts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  max-height: min(48vh, 430px);
  padding: 2px 2px 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
@media (min-width: 576px) {
  .ehna-gifts-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .ehna-gifts-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.ehna-gift {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 8px 4px 6px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  color: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.ehna-gift:hover {
  background: rgba(255, 255, 255, .07);
}
.ehna-gift:active {
  transform: scale(.96);
}
.ehna-gift.is-hidden {
  display: none;
}
.ehna-gift.selected {
  border-color: #ff3d7f;
  background: linear-gradient(180deg, rgba(255, 61, 127, .2), rgba(255, 61, 127, .04));
  box-shadow: 0 0 0 3px rgba(255, 61, 127, .14), 0 8px 20px rgba(255, 61, 127, .22);
}
.ehna-gift-img {
  display: block;
  width: 100%;
  max-width: 64px;
  aspect-ratio: 1 / 1;
}
.ehna-gift-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s cubic-bezier(.2, 1.4, .4, 1);
}
.ehna-gift.selected .ehna-gift-img img {
  transform: translateY(-2px) scale(1.14);
}
.ehna-gift-name {
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, .88);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ehna-gift-price {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #ffcf4a;
  font-size: 11px;
  font-weight: 700;
}
.ehna-gift-price .ehna-coin {
  width: 11px;
  height: 11px;
}
.ehna-gifts-empty {
  grid-column: 1 / -1;
  padding: 30px 10px;
  color: rgba(255, 255, 255, .5);
  text-align: center;
}

.ehna-gifts-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.ehna-gifts-selected {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ehna-gifts-selected img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.ehna-gifts-selected > span {
  min-width: 0;
}
.ehna-gifts-selected strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ehna-gifts-selected small {
  color: #ffcf4a;
  font-weight: 700;
}
.ehna-gifts-send {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 10px 28px;
  background: linear-gradient(90deg, #ff2d6f, #ff7a45);
  box-shadow: 0 6px 18px rgba(255, 45, 111, .4);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: transform .15s, opacity .2s, box-shadow .2s;
}
.ehna-gifts-send:active {
  transform: scale(.95);
}
.ehna-gifts-send:disabled {
  opacity: .4;
  box-shadow: none;
}

/* ---------- banner pills (small gifts) ---------- */
.ehna-gift-lanes {
  position: fixed;
  z-index: 2147482000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}
.ehna-gift-lanes.is-rtl {
  align-items: flex-end;
}
.ehna-gift-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  height: 44px;
  padding: 3px 52px 3px 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 45, 111, .94), rgba(255, 122, 69, .78) 72%, rgba(255, 122, 69, .05));
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  color: #fff;
  animation: ehna-pill-in .5s cubic-bezier(.2, 1.3, .4, 1) both;
}
.ehna-gift-pill .av {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
}
.ehna-gift-pill .tx {
  min-width: 0;
  line-height: 1.2;
}
.ehna-gift-pill .tx b,
.ehna-gift-pill .tx small {
  display: block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ehna-gift-pill .tx b {
  font-size: 13px;
}
.ehna-gift-pill .tx small {
  font-size: 11px;
  opacity: .92;
}
.ehna-gift-pill .gf {
  position: absolute;
  top: 50%;
  right: -6px;
  width: 56px;
  height: 56px;
  object-fit: contain;
  transform: translateY(-50%);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
  animation: ehna-gift-in .55s cubic-bezier(.2, 1.5, .4, 1) .15s both;
}
.ehna-gift-pill .cb {
  position: absolute;
  top: 50%;
  left: 100%;
  margin-left: 10px;
  color: #ffe066;
  font-size: 15px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 0 #c2410c, 0 0 12px rgba(255, 170, 0, .7);
  transform: translateY(-50%);
}
.ehna-gift-pill .cb em {
  font-size: 28px;
  font-style: italic;
}
.ehna-gift-pill.pop .cb {
  animation: ehna-combo .4s cubic-bezier(.2, 1.6, .4, 1);
}
.ehna-gift-pill.out {
  animation: ehna-pill-out .4s ease-in forwards;
}
.is-rtl .ehna-gift-pill {
  flex-direction: row-reverse;
  padding: 3px 3px 3px 52px;
  background: linear-gradient(270deg, rgba(255, 45, 111, .94), rgba(255, 122, 69, .78) 72%, rgba(255, 122, 69, .05));
  animation-name: ehna-pill-in-rtl;
}
.is-rtl .ehna-gift-pill .gf {
  right: auto;
  left: -6px;
}
.is-rtl .ehna-gift-pill .cb {
  left: auto;
  right: 100%;
  margin: 0 10px 0 0;
}
.is-rtl .ehna-gift-pill.out {
  animation-name: ehna-pill-out-rtl;
}
@keyframes ehna-pill-in {
  from { opacity: 0; transform: translateX(-110%); }
  to { opacity: 1; transform: none; }
}
@keyframes ehna-pill-in-rtl {
  from { opacity: 0; transform: translateX(110%); }
  to { opacity: 1; transform: none; }
}
@keyframes ehna-pill-out {
  to { opacity: 0; transform: translate(-40px, -14px); }
}
@keyframes ehna-pill-out-rtl {
  to { opacity: 0; transform: translate(40px, -14px); }
}
@keyframes ehna-gift-in {
  from { opacity: 0; transform: translateY(-50%) scale(.2) rotate(-25deg); }
  to { opacity: 1; transform: translateY(-50%) scale(1); }
}
@keyframes ehna-combo {
  0% { transform: translateY(-50%) scale(1); }
  45% { transform: translateY(-50%) scale(1.6); }
  100% { transform: translateY(-50%) scale(1); }
}

/* ---------- full-screen effect ---------- */
.ehna-gfx {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.ehna-gfx .vig {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 44%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, .5) 72%, rgba(0, 0, 0, .78));
  opacity: 0;
  transition: opacity .45s;
}
.ehna-gfx .rays {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 180vmax;
  height: 180vmax;
  margin: -90vmax 0 0 -90vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255, 222, 130, 0) 0deg 6deg, rgba(255, 222, 130, .3) 8deg 11deg, rgba(255, 222, 130, 0) 13deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .65) 14%, transparent 42%);
  mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .65) 14%, transparent 42%);
  opacity: 0;
  animation: ehna-spin 20s linear infinite;
  transition: opacity .6s;
}
.ehna-gfx .rays.r2 {
  background: repeating-conic-gradient(from 10deg, rgba(255, 120, 190, 0) 0deg 12deg, rgba(255, 120, 190, .22) 14deg 17deg, rgba(255, 120, 190, 0) 19deg 30deg);
  animation-direction: reverse;
  animation-duration: 28s;
}
.ehna-gfx .glow {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 84vmin;
  height: 84vmin;
  margin: -42vmin 0 0 -42vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 102, .55), rgba(255, 120, 180, .2) 45%, transparent 70%);
  opacity: 0;
  transform: scale(.3);
  transition: transform .9s cubic-bezier(.2, 1.2, .3, 1), opacity .5s;
}
.ehna-gfx .flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 44%, #fff, rgba(255, 240, 200, .6) 38%, transparent 75%);
  opacity: 0;
}
.ehna-gfx .stage {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(66vmin, 520px);
  height: min(66vmin, 520px);
  transform: translate(-50%, -50%);
}
.ehna-gfx .stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .45));
}
.ehna-gfx .parts {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 0;
  height: 0;
}
.ehna-gfx .p {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background: center / contain no-repeat;
  opacity: 0;
  animation: ehna-burst var(--t, 1.6s) cubic-bezier(.12, .75, .3, 1) var(--d, 0s) forwards;
}
.ehna-gfx .p.star {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-52 -52 104 104'%3E%3Cpath d='M0 -50L12 -16L48 -15L19 7L30 41L0 21L-30 41L-19 7L-48 -15L-12 -16Z' fill='%23ffd84d' stroke='%23fff3b0' stroke-width='5'/%3E%3C/svg%3E");
}
.ehna-gfx .p.spark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0 -10C1.2 -2.6 2.6 -1.2 10 0C2.6 1.2 1.2 2.6 0 10C-1.2 2.6 -2.6 1.2 -10 0C-2.6 -1.2 -1.2 -2.6 0 -10Z' fill='%23ffffff'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, .9));
}
.ehna-gfx .p.heart {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-52 -48 104 84'%3E%3Cpath d='M0 34C-30 14 -50 -2 -50 -20C-50 -36 -38 -46 -25 -46C-13 -46 -4 -39 0 -30C4 -39 13 -46 25 -46C38 -46 50 -36 50 -20C50 -2 30 14 0 34Z' fill='%23ff4f8b'/%3E%3C/svg%3E");
}
.ehna-gfx .p.conf {
  height: calc(var(--s) * .45);
  border-radius: 2px;
  background: var(--c);
}
.ehna-gfx .rain {
  position: absolute;
  top: -40px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  opacity: 0;
  animation: ehna-rain var(--t) linear var(--d) forwards;
}
.ehna-gfx .rain.coin {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8d6 0 15%, #ffd84d 42%, #e69500 76%, #a85f00);
  box-shadow: inset 0 0 0 2px rgba(122, 74, 0, .5), 0 0 10px rgba(255, 200, 70, .5);
}
.ehna-gfx .rain.conf {
  height: calc(var(--s) * .45);
  border-radius: 2px;
  background: var(--c);
}
.ehna-gfx .cap {
  position: absolute;
  bottom: max(12vh, 90px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 92vw;
  padding: 6px 18px 6px 6px;
  border: 1px solid rgba(255, 215, 120, .6);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(30, 20, 52, .9), rgba(70, 24, 78, .9));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 26px rgba(255, 200, 90, .35);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, 30px);
  transition: transform .5s cubic-bezier(.2, 1.3, .4, 1) .35s, opacity .4s .35s;
}
.ehna-gfx .cap .av {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 2px solid #ffd84d;
  border-radius: 50%;
  object-fit: cover;
}
.ehna-gfx .cap .tx {
  min-width: 0;
  line-height: 1.25;
}
.ehna-gfx .cap b,
.ehna-gfx .cap small {
  display: block;
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ehna-gfx .cap b {
  font-size: 15px;
}
.ehna-gfx .cap small {
  font-size: 12px;
  opacity: .85;
}
.ehna-gfx .cap .pts {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffd84d;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}
.ehna-gfx .cap .pts em {
  font-style: normal;
}
.ehna-gfx .cap .ehna-coin {
  width: 16px;
  height: 16px;
}

/* timeline */
.ehna-gfx.in .vig,
.ehna-gfx.in .rays {
  opacity: 1;
}
.ehna-gfx.in .glow {
  opacity: 1;
  transform: scale(1);
}
.ehna-gfx.in .stage img {
  animation: ehna-pop .9s cubic-bezier(.2, 1.4, .4, 1) forwards, ehna-floaty 2.6s ease-in-out .9s infinite alternate;
}
.ehna-gfx.in .cap {
  opacity: 1;
  transform: translate(-50%, 0);
}
.ehna-gfx.out .vig,
.ehna-gfx.out .rays,
.ehna-gfx.out .glow {
  opacity: 0;
  transition-duration: .6s;
}
.ehna-gfx.out .stage {
  animation: ehna-leave .7s ease-in forwards;
}
.ehna-gfx.out .cap {
  opacity: 0;
  transform: translate(-50%, 20px);
  transition-delay: 0s;
}
.ehna-gfx.tier-1 .rays.r2 {
  display: none;
}
.ehna-gfx.tier-3 .glow {
  background: radial-gradient(circle, rgba(255, 236, 160, .7), rgba(255, 110, 200, .3) 45%, rgba(120, 80, 255, .12) 62%, transparent 72%);
}
.ehna-gfx.mega.in {
  animation: ehna-shake .8s cubic-bezier(.36, .07, .19, .97) .3s;
}
.ehna-gfx.mega.in .flash {
  animation: ehna-flash 1s ease-out .25s, ehna-flash 1s ease-out 1.7s;
}
.ehna-shake {
  animation: ehna-shake .8s cubic-bezier(.36, .07, .19, .97) .3s;
}

@keyframes ehna-spin {
  to { transform: rotate(360deg); }
}
@keyframes ehna-pop {
  0% { opacity: 0; transform: scale(.15) rotate(-10deg); }
  55% { opacity: 1; transform: scale(1.1) rotate(3deg); }
  75% { transform: scale(.95) rotate(-1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes ehna-floaty {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-14px) scale(1.03); }
}
@keyframes ehna-leave {
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}
@keyframes ehna-burst {
  0% { opacity: 1; transform: translate(0, 0) scale(.3) rotate(0); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--r)); }
}
@keyframes ehna-rain {
  0% { opacity: 0; transform: translateY(0) rotate(0) rotateY(0); }
  8% { opacity: 1; }
  100% { opacity: 1; transform: translateY(calc(100vh + 80px)) rotate(var(--r)) rotateY(720deg); }
}
@keyframes ehna-flash {
  0% { opacity: 0; }
  15% { opacity: .85; }
  100% { opacity: 0; }
}
@keyframes ehna-shake {
  10%, 90% { transform: translate3d(-2px, 1px, 0); }
  20%, 80% { transform: translate3d(4px, -2px, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 3px, 0); }
  40%, 60% { transform: translate3d(6px, -3px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ehna-gift-pill,
  .ehna-gift-pill .gf,
  .ehna-gift-pill.pop .cb,
  .ehna-gift-pill.out {
    animation-duration: .01ms;
  }
  .ehna-shake {
    animation: none;
  }
}

.js_ehna-sel-img[src^="data:"] { visibility: hidden; }

/* ---------- voice rooms: recipients row, quantity, seat charm, room total ---------- */
.ehna-gifts-to {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 8px;
}
.ehna-gifts-to.is-shake { animation: ehnaToShake .5s; }
@keyframes ehnaToShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.ehna-gifts-to-label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
}
.ehna-gifts-to-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ehna-gifts-to-list::-webkit-scrollbar { display: none; }
.ehna-gifts-to-item {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: none;
  opacity: .6;
  transition: opacity .15s, border-color .15s, transform .15s;
}
.ehna-gifts-to-item img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ehna-gifts-to-item small {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 16px;
  color: #fff;
  background: #7c6cff;
}
.ehna-gifts-to-item.active { opacity: 1; border-color: #ffd84d; transform: scale(1.06); }
.ehna-gifts-to-empty { font-size: 12px; color: rgba(255, 255, 255, .5); }
.ehna-gifts-qty {
  display: flex;
  gap: 4px;
  margin-inline-end: auto;
}
.ehna-gifts-qty button {
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .06);
}
.ehna-gifts-qty button.active {
  color: #2b1a00;
  border-color: transparent;
  background: linear-gradient(135deg, #ffe58a, #f0a500);
}
.ehna-gifts.is-room .ehna-gifts-selected { display: none; }
.ehna-gifts.is-room .ehna-gifts-foot { gap: 8px; }

.voice-seat-charm {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  padding: 1px 7px 1px 4px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  color: #ffe58a;
  background: rgba(0, 0, 0, .32);
}
.voice-seat-charm .ehna-coin { width: 10px; height: 10px; }
.vr-room-gifts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  margin-inline-start: 6px;
  padding: 0 9px 0 6px;
  border-radius: 13px;
  font-size: 12px;
  color: #ffe58a;
  background: rgba(0, 0, 0, .3);
  white-space: nowrap;
}
.vr-room-gifts b { font-weight: 700; }
.voice-room-gift-line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.voice-room-gift-line img { width: 26px; height: 26px; object-fit: contain; }
.voice-room-gift-line b { color: #ffd84d; }
