/* ==========================================================================
   HERO: RADIAL BOMB BURST SLIDER & FLYING POINTER FLAG
   ========================================================================== */

.hero-burst {
    position: relative;
    min-height: 92vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #0d2238 0%, #050c18 58%, #02060d 100%);
    padding: 90px 20px 80px;
    user-select: none;
}

.hero-burst.theme-magnustic {
    background: radial-gradient(circle at 50% 50%, #0b2548 0%, #040d1e 58%, #02060d 100%);
}

/* Fullscreen Canvas for Fireballs, Flame Trails & Embers */
.hb-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Detonation Flash Overlay */
.hb-flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 100, 0.55), rgba(0, 230, 195, 0.25) 40%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.hb-flash.boom {
    animation: hbDetonateFlash 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hbDetonateFlash {
    0% { opacity: 0.95; transform: scale(0.6); }
    100% { opacity: 0; transform: scale(2.1); }
}

/* Central Radial Stage */
.hb-stage {
    position: relative;
    width: min(94vw, 960px);
    height: min(76vh, 660px);
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

/* Explosive Shockwave Rings */
.hb-shockwave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
    pointer-events: none;
}

.hb-sw-1 {
    border: 3px solid rgba(255, 195, 60, 0.85);
    box-shadow: 0 0 35px rgba(255, 160, 20, 0.7), inset 0 0 25px rgba(255, 195, 60, 0.5);
}

.hb-sw-2 {
    border: 2px solid rgba(0, 235, 200, 0.75);
    box-shadow: 0 0 30px rgba(0, 235, 200, 0.6);
}

.hb-sw-3 {
    border: 1.5px dashed rgba(255, 255, 255, 0.5);
}

.hb-shockwave.boom-1 { animation: hbWaveOut 1.15s cubic-bezier(0.12, 0.8, 0.25, 1) forwards; }
.hb-shockwave.boom-2 { animation: hbWaveOut 1.4s 0.12s cubic-bezier(0.12, 0.8, 0.25, 1) forwards; }
.hb-shockwave.boom-3 { animation: hbWaveOut 1.65s 0.24s cubic-bezier(0.12, 0.8, 0.25, 1) forwards; }

@keyframes hbWaveOut {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(4.8);
        opacity: 0;
    }
}

/* Central Round Bomb Core Holding Sharp Logo */
.hb-core {
    position: relative;
    width: 195px;
    height: 195px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #13334c 0%, #071626 70%, #040c17 100%);
    border: 2.5px solid rgba(0, 230, 195, 0.65);
    box-shadow:
        0 0 45px rgba(0, 225, 190, 0.35),
        0 0 90px rgba(255, 175, 35, 0.2),
        inset 0 0 30px rgba(0, 225, 190, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 6;
    cursor: pointer;
    transition: border-color 0.4s, box-shadow 0.4s;
}

.hero-burst.theme-magnustic .hb-core {
    border-color: rgba(40, 195, 255, 0.7);
    box-shadow:
        0 0 45px rgba(30, 160, 255, 0.4),
        0 0 90px rgba(0, 240, 180, 0.25),
        inset 0 0 30px rgba(30, 160, 255, 0.25);
}

.hb-core-aura {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 195, 65, 0.45);
    animation: hbSpinSlow 18s linear infinite;
    pointer-events: none;
}

@keyframes hbSpinSlow {
    to { transform: rotate(360deg); }
}

/* Bomb Charge & Detonation Animation on Core */
.hb-core.charging {
    animation: hbCoreCharge 0.55s cubic-bezier(0.36, 0, 0.66, -0.56) forwards;
}

.hb-core.detonating {
    animation: hbCoreDetonate 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hbCoreCharge {
    0% { transform: scale(1); }
    25% { transform: scale(0.92) translate(-3px, 2px); }
    50% { transform: scale(0.84) translate(3px, -3px); filter: brightness(1.35); }
    75% { transform: scale(0.76) translate(-4px, -2px); filter: brightness(1.7); }
    100% { transform: scale(0.7) translate(2px, 3px); filter: brightness(2.2) drop-shadow(0 0 35px #ffbe3b); }
}

@keyframes hbCoreDetonate {
    0% {
        transform: scale(0.7);
        filter: brightness(2.5) drop-shadow(0 0 60px #ffaa00);
    }
    35% {
        transform: scale(1.26);
        filter: brightness(1.6) drop-shadow(0 0 50px #00f0c8);
    }
    68% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* Sharp High-Resolution Core Logos */
.hb-core-logo {
    width: 112px;
    height: 112px;
    object-fit: contain;
    display: none;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.65));
    transform: scale(0.5);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.2), opacity 0.4s;
}

.hb-core-logo.active {
    display: block;
    transform: scale(1);
    opacity: 1;
}

.hb-core-brand-tag {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #ffd166;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-burst.theme-magnustic .hb-core-brand-tag {
    color: #5ce1e6;
}

/* Radial Ring of Flame Feature Nodes */
.hb-flames-ring {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

/* Individual Flame Node shot out from center */
.hb-flame-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.15);
    opacity: 0;
    pointer-events: auto;
    transition:
        transform 0.78s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.45s ease;
    will-change: transform, opacity;
}

.hb-flame-node.erupted {
    opacity: 1;
    transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px))) scale(1);
}

/* Flame Pod Visual Styling */
.hb-flame-card {
    position: relative;
    min-width: 185px;
    max-width: 225px;
    padding: 13px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(16, 40, 62, 0.92) 0%, rgba(8, 20, 36, 0.95) 100%);
    border: 1.5px solid rgba(255, 180, 50, 0.65);
    box-shadow:
        0 0 24px rgba(255, 140, 20, 0.38),
        0 0 45px rgba(0, 225, 190, 0.18),
        inset 0 0 16px rgba(255, 180, 50, 0.2);
    text-align: center;
    backdrop-filter: blur(8px);
    animation: hbFlameBob 3.2s ease-in-out infinite alternate;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.hero-burst.theme-magnustic .hb-flame-card {
    border-color: rgba(45, 210, 255, 0.65);
    box-shadow:
        0 0 24px rgba(30, 160, 255, 0.4),
        0 0 45px rgba(0, 245, 175, 0.2),
        inset 0 0 16px rgba(45, 210, 255, 0.2);
}

/* Animated Fire/Energy Rim around each Feature Pod */
.hb-flame-card::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    background: conic-gradient(
        from 0deg,
        rgba(255, 120, 0, 0.8),
        rgba(255, 215, 70, 0.9),
        rgba(0, 230, 195, 0.8),
        rgba(255, 120, 0, 0.8)
    );
    z-index: -1;
    filter: blur(6px);
    opacity: 0.75;
    animation: hbFlameGlow 2.4s ease-in-out infinite alternate;
}

.hero-burst.theme-magnustic .hb-flame-card::before {
    background: conic-gradient(
        from 0deg,
        rgba(0, 140, 255, 0.85),
        rgba(0, 245, 190, 0.9),
        rgba(80, 200, 255, 0.85),
        rgba(0, 140, 255, 0.85)
    );
}

.hb-flame-card:hover {
    transform: scale(1.08);
    border-color: #ffe082;
    box-shadow: 0 0 34px rgba(255, 190, 60, 0.75);
}

.hb-flame-title {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hb-flame-sub {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: #ffd98e;
}

.hero-burst.theme-magnustic .hb-flame-sub {
    color: #9be8ff;
}

@keyframes hbFlameBob {
    0% { transform: translateY(-4px); }
    100% { transform: translateY(5px); }
}

@keyframes hbFlameGlow {
    0% { opacity: 0.5; filter: blur(5px) scale(0.98); }
    100% { opacity: 0.95; filter: blur(9px) scale(1.03); }
}

/* Bottom Brand Slider Switcher */
.hb-switcher {
    position: relative;
    z-index: 6;
    display: flex;
    gap: 14px;
    margin-top: 18px;
    background: rgba(7, 18, 34, 0.78);
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hb-switch-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 20px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hb-switch-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.hb-switch-btn.active {
    background: linear-gradient(135deg, #0e3b52, #09263a);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 225, 190, 0.3);
    border: 1px solid rgba(0, 230, 195, 0.55);
}

/* ==========================================================================
   POINTER FLAG (Attached directly to pointer tip — no separate pole)
   ========================================================================== */
.hb-cursor-flag {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    will-change: transform;
}

.hb-cursor-flag.visible {
    opacity: 1;
}

.hb-cursor-flag canvas {
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

@media (hover: hover) and (pointer: fine) {
    .hb-cursor-flag {
        display: block;
    }
}

@media (max-width: 768px) {
    .hb-stage {
        height: 580px;
    }
    .hb-core {
        width: 145px;
        height: 145px;
    }
    .hb-core-logo {
        width: 82px;
        height: 82px;
    }
    .hb-flame-card {
        min-width: 135px;
        max-width: 155px;
        padding: 9px 12px;
    }
    .hb-flame-title {
        font-size: 12px;
    }
    .hb-flame-sub {
        font-size: 10px;
    }
}
