/* ===== Exploding Atoms – BONUS HUD (multi-styles) ===== */
/* Prefix: eab- */

.eab-hud{ position:fixed; inset:0; pointer-events:none; z-index:5000; }
.eab-hud__rail{
  position:absolute; top:55%; left:0; right:0; transform:translateY(-50%);
  display:grid; justify-content:center; gap:18px; padding:0 12px;
}
.eab-hud__rail--left{ justify-content:start; }
.eab-hud__rail--right{ justify-content:end; }

/* --- Základné „okno“ (vertikálne) --- */
.eab-toast{
  pointer-events:auto;
  min-width:280px; max-width:90vw;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  gap:10px; padding:30px 24px 36px; border-radius:24px;
  position:relative; overflow:hidden; isolation:isolate;
  color:#fff; transform:scale(.85); opacity:0;
  animation:eab-pop .32s cubic-bezier(.2,.9,.2,1.15) forwards;
  box-shadow:0 10px 26px rgba(0,0,0,.45);
}

/* obsah */
.eab-ico{ font-size:54px; line-height:1; filter:drop-shadow(0 0 10px rgba(255,255,255,.35)); }
.eab-label{ font-size:22px; font-weight:900; letter-spacing:.5px; margin-top:4px; }
.eab-value{ font-size:30px; font-weight:900; margin-top:10px; }
.eab-plus::before{ content:'+'; margin-right:4px; }

/* veľkosti */
.eab-size-sm .eab-ico{ font-size:42px; }
.eab-size-sm .eab-label{ font-size:18px; }
.eab-size-sm .eab-value{ font-size:24px; }

.eab-size-lg{ padding:36px 26px 36px; border-radius:26px; }
.eab-size-lg .eab-ico{ font-size:60px; }
.eab-size-lg .eab-label{ font-size:24px; }
.eab-size-lg .eab-value{ font-size:34px; }

/* jemný lesk prelet (voliteľný) */


/* svetelný pulz naspodu (voliteľný) */
.eab-pulse::before{
  content:''; position:absolute; bottom:-20%; left:50%; width:200%; height:60%;
  transform:translateX(-50%); filter:blur(24px); pointer-events:none;
  background:radial-gradient(circle at center,
    rgba(255,106,168,.35) 0%,
    rgba(79,211,255,.2) 30%,
    transparent 70%);
  animation:eab-pulse 3.5s ease-in-out infinite;
}

/* odlet */
.eab-toast--out{ animation:eab-fly 350ms ease-in forwards; }

/* --- ANIMÁCIE --- */
@keyframes eab-pop{ 0%{transform:scale(.6);opacity:0;filter:blur(1px)}70%{transform:scale(1.08);opacity:1;filter:none}100%{transform:scale(1);opacity:1} }
@keyframes eab-float{ 0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-6px) scale(1.02)} }
@keyframes eab-fly{ 0%{transform:translateY(0) scale(1);opacity:1}100%{transform:translateY(-70px) scale(1);opacity:0} }
@keyframes eab-shine{ 0%{transform:translateX(-60%) rotate(25deg);opacity:0}40%{opacity:.9}100%{transform:translateX(220%) rotate(25deg);opacity:0} }
@keyframes eab-pulse{ 0%,100%{opacity:.6;transform:translateX(-50%) scale(1)}50%{opacity:1;transform:translateX(-50%) scale(1.2)} }

@media (prefers-reduced-motion:reduce){
  .eab-toast,.eab-toast::after,.eab-toast::before{ animation:none !important; }
}

/* ===== VARIANTY (v1 – v8) ===== */

/* v1 – Neon Cyan/Pink (glass-plasma) */
.eab-style-v1{
  background:radial-gradient(140% 120% at 50% 0%, rgba(79,211,255,.28), rgba(15,22,36,.65) 60%, rgba(10,15,30,.85));
  border:1px solid rgba(79,211,255,.45);
  backdrop-filter:blur(12px) saturate(160%); -webkit-backdrop-filter:blur(12px) saturate(160%);
  box-shadow:0 0 22px rgba(79,211,255,.45), 0 0 64px rgba(255,106,168,.28), 0 10px 28px rgba(0,0,0,.55);
}
.eab-style-v1 .eab-ico{ color:#9ae6ff; filter:drop-shadow(0 0 14px rgba(79,211,255,.8)); }
.eab-style-v1 .eab-label{ color:#4fd3ff; text-shadow:0 0 16px rgba(79,211,255,.75); }
.eab-style-v1 .eab-value{ color:#ff6aa8; text-shadow:0 0 18px rgba(255,106,168,.85), 0 2px 0 rgba(0,0,0,.35); }

/* v2 – Gold Premium (double frame) */
.eab-style-v2{
  background:linear-gradient(180deg,#1f2634,#121826);
  border:2px solid #f4c768;
  box-shadow:0 0 0 2px rgba(0,0,0,.45) inset, 0 14px 30px rgba(0,0,0,.55), 0 0 38px rgba(244,199,104,.25);
}
.eab-style-v2::before{
  content:''; position:absolute; inset:8px; border-radius:18px; border:1px dashed rgba(244,199,104,.85); pointer-events:none;
}
.eab-style-v2 .eab-ico{ color:#ffe58a; filter:drop-shadow(0 0 10px rgba(255,229,138,.6)); }
.eab-style-v2 .eab-label{ color:#ffe9a8; text-shadow:0 2px 0 #6a4b00, 0 0 14px rgba(255,229,138,.45); }
.eab-style-v2 .eab-value{ color:#ffd256; text-shadow:0 2px 0 #6a4b00, 0 0 16px rgba(255,210,86,.65); }

/* v3 – Pastel Solid (svetlé, bez skla) */
.eab-style-v3{
  background:#ffe8a8; color:#1d1a14; border:1px solid rgba(0,0,0,.06);
  box-shadow:0 12px 26px rgba(0,0,0,.25), 0 0 0 2px #000 inset;
}
.eab-style-v3 .eab-ico{ color:#a54f00; filter:none; text-shadow:0 2px 0 rgba(255,255,255,.35); }
.eab-style-v3 .eab-label{ color:#7a3a00; text-shadow:0 2px 0 rgba(255,255,255,.4), 0 0 1px rgba(0,0,0,.2); }
.eab-style-v3 .eab-value{ color:#a53f00; text-shadow:0 2px 0 rgba(255,255,255,.45), 0 0 1px rgba(0,0,0,.25); }

/* v4 – Neon Magenta (tmavé, výrazný glow) */
.eab-style-v4{
  background:radial-gradient(120% 120% at 50% -10%, rgba(255,106,168,.28), rgba(20,14,24,.85));
  border:1px solid rgba(255,106,168,.5);
  box-shadow:0 0 22px rgba(255,106,168,.55), 0 12px 26px rgba(0,0,0,.55);
}
.eab-style-v4 .eab-ico{ color:#ff9bc1; filter:drop-shadow(0 0 12px rgba(255,106,168,.8)); }
.eab-style-v4 .eab-label{ color:#ff6aa8; text-shadow:0 0 16px rgba(255,106,168,.8); }
.eab-style-v4 .eab-value{ color:#ffd84a; text-shadow:0 0 16px rgba(255,216,74,.7), 0 2px 0 rgba(0,0,0,.35); }

/* v5 – Crystal Blue (kontrastný) */
.eab-style-v5{
  background:linear-gradient(180deg, rgba(22,32,52,.92), rgba(12,20,34,.92));
  border:1px solid rgba(160,210,255,.35);
  box-shadow:0 0 28px rgba(160,210,255,.35), 0 14px 30px rgba(0,0,0,.55);
}
.eab-style-v5 .eab-ico{ color:#bde0ff; filter:drop-shadow(0 0 10px rgba(189,224,255,.7)); }
.eab-style-v5 .eab-label{ color:#bfe3ff; text-shadow:0 2px 0 rgba(0,0,0,.45), 0 0 16px rgba(189,224,255,.6); }
.eab-style-v5 .eab-value{ color:#7ef9a9; text-shadow:0 2px 0 rgba(0,0,0,.45), 0 0 16px rgba(126,249,169,.7); }

/* v6 – Ticket / Arcade */
.eab-style-v6{
  background:#18222e; border:2px solid #7ef9a9;
  box-shadow:0 0 24px rgba(126,249,169,.4), 0 12px 26px rgba(0,0,0,.55);
}
.eab-style-v6::before, .eab-style-v6::after{
  content:''; position:absolute; top:50%; width:18px; height:18px; border-radius:50%;
  background:#0b1520; transform:translateY(-50%); box-shadow:0 0 0 2px #7ef9a9 inset;
}
.eab-style-v6::before{ left:-9px } .eab-style-v6::after{ right:-9px }
.eab-style-v6 .eab-ico{ color:#7ef9a9; filter:drop-shadow(0 0 10px rgba(126,249,169,.7)); }
.eab-style-v6 .eab-label{ color:#7ef9a9; text-shadow:0 0 16px rgba(126,249,169,.8); }
.eab-style-v6 .eab-value{ color:#ffd84a; text-shadow:0 0 16px rgba(255,216,74,.75), 0 2px 0 rgba(0,0,0,.35); }

/* v7 – Bottom Sheet minimalistický */
.eab-style-v7{
  border-radius:24px; background:#101826; border:1px solid rgba(255,255,255,.2);
  box-shadow:0 16px 34px rgba(0,0,0,.6);
}
.eab-style-v7 .eab-ico{ color:#b8c7ff; filter:none; text-shadow:0 0 1px rgba(255,255,255,.25); }
.eab-style-v7 .eab-label{ color:#eaf3ff; text-shadow:0 2px 0 rgba(0,0,0,.45); }
.eab-style-v7 .eab-value{ color:#9ae6ff; text-shadow:0 2px 0 rgba(0,0,0,.45); }

/* v8 – Lava / Fire */
.eab-style-v8{
  background:radial-gradient(130% 120% at 50% 0%, rgba(255,138,76,.35), rgba(36,18,12,.9));
  border:1px solid rgba(255,138,76,.55);
  box-shadow:0 0 26px rgba(255,138,76,.55), 0 14px 30px rgba(0,0,0,.6);
}
.eab-style-v8 .eab-ico{ color:#ffb88a; filter:drop-shadow(0 0 12px rgba(255,138,76,.8)); }
.eab-style-v8 .eab-label{ color:#ff9a61; text-shadow:0 0 16px rgba(255,138,76,.8); }
.eab-style-v8 .eab-value{ color:#ffe08a; text-shadow:0 0 18px rgba(255,224,138,.85), 0 2px 0 rgba(0,0,0,.35); }


/* === Rarity odlíšenie (jemné, mobil-friendly) ========================= */
/* Bežné (biela/sivá) */
.bonus--common{
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}

/* Pokročilé (modrá) */
.bonus--advanced{
  box-shadow:
    0 0 0 1px rgba(60,160,255,.25),
    0 0 10px rgba(60,160,255,.25);
}

/* Špeciálne (fialová) */
.bonus--special{
  box-shadow:
    0 0 0 1px rgba(168,85,247,.28),
    0 0 12px rgba(168,85,247,.28);
}

/* Epické (zlatá) */
.bonus--epic{
  box-shadow:
    0 0 0 1px rgba(255,190,40,.35),
    0 0 14px rgba(255,190,40,.35);
}

/* Zvýraznenie pri výbere nechávaš svoje .bonus.is-active.
   Pridáme len jemné „vystúpenie“ podľa rarity: */
.bonus.is-active.bonus--advanced { filter: saturate(1.1); }
.bonus.is-active.bonus--special  { filter: saturate(1.15) brightness(1.03); }
.bonus.is-active.bonus--epic     { filter: saturate(1.2) brightness(1.05); }

/* Badge farba podľa rarity (nech je okamžite čitateľné) */
.bonus--common  .qty { background: linear-gradient(135deg,#9ca3af,#d1d5db); }
.bonus--advanced.qty,
.bonus--advanced .qty { background: linear-gradient(135deg,#1da1f2,#79c4ff); }
.bonus--special  .qty { background: linear-gradient(135deg,#a855f7,#d8b4fe); }
.bonus--epic     .qty { background: linear-gradient(135deg,#ffb703,#ffd166); }

/* (voliteľné) jemný „hover“ na desktopoch */
@media (hover:hover){
  .bonus:not(.is-disabled):hover{
    transform: translateY(-2px) scale(1.06);
  }
}

/* ⚡ efekt pri novom bonuse */
.bonus { will-change: transform; backface-visibility: hidden; }

.bonus.is-new{
  animation: bonusBump .28s cubic-bezier(.2,.9,.2,1.1) both;
}

/* jemné zväčšenie pri objavení */
@keyframes bonusBump{
  0%   { transform: scale(.92); }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* 👇 efekt zmiznutia bonusu */
.bonus.is-gone {
  animation: bonusFadeOut .35s ease-in forwards;
}

@keyframes bonusFadeOut {
  0%   { transform: scale(1); opacity: 1; }
  40%  { transform: scale(.9); opacity: .8; }
  100% { transform: scale(0.5); opacity: 0; }
}
