/* ==========================================================================
   Crashing Moon — Landing Page Hero Animations & Kinetic Showcase
   ========================================================================== */

/* ================== HERO SECTION ENHANCED LAYOUT ================== */
.hero-stage-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0 40px;
}

.hero-center-content {
    flex: 1 1 640px;
    max-width: 760px;
    text-align: center;
    z-index: 2;
    margin: 0 auto;
}

.hero-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius);
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-meta-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.25); }
}

.hero-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    color: var(--text);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-sub-btn:hover {
    background: var(--surface-3);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ================== FREE-STANDING FLOATING HERO RENDERS (NO CARD / NO BG) ================== */
.hero-floating-render {
    flex: 0 1 280px;
    width: 280px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    user-select: none;
    pointer-events: auto;
}

/* Ambient Radial Faction Glow behind character */
.hero-render-aura {
    position: absolute;
    width: 260px;
    height: 340px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(55px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.hero-render-left .hero-render-aura {
    background: radial-gradient(circle, rgba(79, 140, 255, 0.6) 0%, transparent 70%);
}

.hero-render-right .hero-render-aura {
    background: radial-gradient(circle, rgba(229, 72, 77, 0.6) 0%, transparent 70%);
}

.hero-floating-render:hover .hero-render-aura {
    opacity: 0.75;
}

/* Character Cutout Image (Pure Cutout without background) */
.hero-render-img {
    position: relative;
    z-index: 1;
    width: auto;
    height: 390px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

/* Left Hero (Chou MLBB) Animation */
.hero-render-left .hero-render-img {
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 25px rgba(79, 140, 255, 0.35));
    animation: floatChou 6s ease-in-out infinite alternate;
}

@keyframes floatChou {
    0% {
        transform: translateY(0px) rotate(-1.5deg) scale(1);
    }
    50% {
        transform: translateY(-16px) rotate(0.8deg) scale(1.02);
    }
    100% {
        transform: translateY(-8px) rotate(-0.5deg) scale(1);
    }
}

/* Right Hero (Allain HOK) Animation */
.hero-render-right .hero-render-img {
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 25px rgba(229, 72, 77, 0.35));
    animation: floatAllain 6.5s ease-in-out infinite alternate;
    animation-delay: -3.2s;
}

@keyframes floatAllain {
    0% {
        transform: translateY(-6px) rotate(1.5deg) scale(1);
    }
    50% {
        transform: translateY(12px) rotate(-0.8deg) scale(1.02);
    }
    100% {
        transform: translateY(-14px) rotate(1deg) scale(1);
    }
}

.hero-floating-render:hover .hero-render-img {
    transform: scale(1.06) translateY(-4px);
    animation-play-state: paused;
}

/* Floating Character Badge (Minimalist Glass Tag) */
.hero-render-badge {
    position: relative;
    z-index: 2;
    margin-top: -12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line-strong);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: all 0.25s ease;
}

.hero-render-left .hero-render-badge {
    border-color: rgba(79, 140, 255, 0.4);
}

.hero-render-right .hero-render-badge {
    border-color: rgba(229, 72, 77, 0.4);
}

.hero-render-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.hero-render-left .hero-render-badge-dot {
    background: var(--blue-side-accent);
    box-shadow: 0 0 8px var(--blue-side-accent);
}

.hero-render-right .hero-render-badge-dot {
    background: var(--red-side-accent);
    box-shadow: 0 0 8px var(--red-side-accent);
}

.hero-render-name {
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1;
}

.hero-render-game {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ==========================================================================
   KINETIC HERO STREAM SECTION (Dual-Track Infinite Marquee)
   ========================================================================== */
.champions-stream-section {
    position: relative;
    z-index: 2;
    padding: 44px 0 54px 0;
    border-bottom: 1px solid var(--border-hairline);
    background: rgba(11, 12, 15, 0.65);
    overflow: hidden;
}

.champions-stream-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 0 20px;
}

.champions-stream-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-transform: uppercase;
}

.champions-stream-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin: 4px 0 0 0;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 6px 0;
}

.marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    will-change: transform;
}

/* Left Track (Mobile Legends) */
.marquee-track-left {
    animation: marqueeLeft 32s linear infinite;
}

.marquee-track-left:hover {
    animation-play-state: paused;
}

@keyframes marqueeLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Right Track (Honor of Kings) */
.marquee-track-right {
    animation: marqueeRight 34s linear infinite;
}

.marquee-track-right:hover {
    animation-play-state: paused;
}

@keyframes marqueeRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Champion Ticker Card */
.champion-ticker-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 16px 8px 10px;
    min-width: 210px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.champion-ticker-card:hover {
    background: var(--surface-2);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.champion-ticker-card.mlbb:hover {
    border-color: var(--blue-side-accent);
}

.champion-ticker-card.hok:hover {
    border-color: var(--accent);
}

.champion-ticker-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
    border: 1px solid var(--line);
}

.champion-ticker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.champion-ticker-details {
    display: flex;
    flex-direction: column;
}

.champion-ticker-game {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 3px;
}

.champion-ticker-game.mlbb {
    color: var(--blue-side-accent);
}

.champion-ticker-game.hok {
    color: var(--accent);
}

.champion-ticker-name {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.1;
}

.champion-ticker-role {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--muted);
    text-transform: uppercase;
}

/* Responsive Layout: Keep heroes visible across all screens */
@media (max-width: 1180px) {
    .hero-stage-layout {
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px;
    }
    .hero-center-content {
        order: 1;
        flex: 1 1 100%;
        max-width: 760px;
    }
    .hero-render-left {
        order: 2;
    }
    .hero-render-right {
        order: 3;
    }
}

@media (max-width: 640px) {
    .hero-floating-render {
        flex: 0 1 100%;
        max-width: 280px;
    }
}

/* ==========================================================================
   3D REAL-TIME INTERACTIVE HERO VIEWER (Google model-viewer)
   ========================================================================== */
model-viewer {
    display: block;
    width: 280px;
    height: 390px;
    max-width: 100%;
    background: transparent;
    --poster-color: transparent;
    --progress-bar-color: var(--accent);
    outline: none;
    cursor: grab;
    position: relative;
    z-index: 1;
}

.hero-poster-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

model-viewer:active {
    cursor: grabbing;
}

.hero-3d-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    position: relative;
    z-index: 3;
}

.btn-3d-anim {
    padding: 3px 9px;
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    color: var(--text-2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-3d-anim:hover {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}

.mode-3d-indicator {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    padding: 2px 7px;
    border-radius: 999px;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mode-3d-indicator::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}
