/* css/golden-slice.css — Golden Slices: HUD banner, announcement banners,
   near-miss whisper, jackpot gold-rain + takeover. Gold-on-dark. */

/* ── HUD banner (right side, clear of pity chip bottom-left + destiny top) ── */
#golden-hud-banner {
    position: fixed;
    top: 14px;
    right: 14px;
    display: none;
    padding: 6px 14px;
    background: rgba(30, 22, 6, 0.85);
    border: 1px solid #FFD700;
    border-radius: 999px;
    color: #FFD700;
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    z-index: 6000;
    pointer-events: none;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}
#golden-hud-banner.visible {
    display: block;
    animation: golden-hud-pulse 1.4s ease-in-out infinite;
}
@keyframes golden-hud-pulse {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 215, 0, 0.3); }
    50%      { box-shadow: 0 0 22px rgba(255, 215, 0, 0.6); }
}

/* ── Announcement banners ── */
.golden-banner {
    position: fixed;
    top: 26%;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 30px;
    border-radius: 12px;
    z-index: 8200;
    pointer-events: none;
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 3px;
    text-align: center;
    animation: golden-banner-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.golden-banner-out { opacity: 0; transition: opacity 0.7s ease; }

.golden-banner-open {
    font-size: clamp(26px, 6vw, 52px);
    color: #FFF6C0;
    background: linear-gradient(180deg, rgba(60,44,6,0.9), rgba(20,14,2,0.9));
    border: 2px solid #FFD700;
    text-shadow: 0 0 18px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 165, 0, 0.5);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
    background-size: 200% 100%;
    animation: golden-banner-in 0.5s cubic-bezier(0.34,1.56,0.64,1) both, golden-shimmer 1.6s linear infinite;
}
@keyframes golden-shimmer {
    0%   { filter: brightness(1); }
    50%  { filter: brightness(1.35); }
    100% { filter: brightness(1); }
}

.golden-banner-fade {
    font-size: clamp(16px, 3.5vw, 26px);
    font-style: italic;
    color: #cbb98a;
    background: rgba(20, 14, 2, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.4);
    letter-spacing: 1px;
}

.golden-whisper {
    font-size: clamp(15px, 3vw, 22px);
    font-style: italic;
    color: #e8c268;
    background: rgba(20, 14, 2, 0.75);
    border: 1px dashed rgba(255, 180, 0, 0.5);
    letter-spacing: 1px;
    top: 32%;
}

@keyframes golden-banner-in {
    0%   { opacity: 0; transform: translateX(-50%) scale(0.7); }
    100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* ── Jackpot gold rain ── */
.golden-rain {
    position: fixed;
    inset: 0;
    z-index: 8100;
    pointer-events: none;
    overflow: hidden;
}
.golden-rain-drop {
    position: absolute;
    top: -20px;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, #fff6c0, #FFD700 60%, #b8860b);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
    animation-name: golden-rain-fall;
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
    animation-iteration-count: 1;
}
@keyframes golden-rain-fall {
    0%   { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    100% { transform: translateY(105vh) rotate(360deg); opacity: 0.9; }
}

/* ── Jackpot takeover ── */
.golden-takeover {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 8300;
    pointer-events: none;
    text-align: center;
    animation: golden-takeover-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.golden-takeover-out { opacity: 0; transform: translate(-50%, -50%) scale(1.2); transition: all 0.6s ease; }
.golden-takeover-label {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: clamp(20px, 5vw, 40px);
    letter-spacing: 8px;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}
.golden-takeover-amount {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: clamp(56px, 14vw, 140px);
    color: #FFF6C0;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 0 60px rgba(255, 165, 0, 0.6);
}
@keyframes golden-takeover-in {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 768px) {
    /* Sit the golden HUD below the toast zone (toasts start at top:16px, ~40px
       tall) so a debt-paid toast never lands on top of the GOLDEN SPIN banner. */
    #golden-hud-banner { top: 56px; right: 8px; font-size: 11px; }
}
