/**
 * Page CSS — auto-extracted from resources/views/welcome.blade.php
 * 
 * @auto-generated 2026-06-11
 * @source resources/views/welcome.blade.php
 * 
 * Loaded via @stack('page-css') in layouts/app.blade.php
 */

:root {
        --neon-blue: #e10600;
        --neon-purple: #e10600;
        --neon-pink: #f5c400;
        --dark-bg: #0b0b0b;
        --darker-bg: #050505;
    }

    body {
        background: var(--darker-bg);
        font-family: 'Inter', sans-serif;
    }

.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0b0b0b 0%, #111111 50%, #0b0b0b 100%);
}

/* your original glowing layer */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(225, 6, 0, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(245, 196, 0, 0.18) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite;
}

/* your original overlay image layer */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('{{ $heroBackground }}') center/cover;
    opacity: 0.1;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* NEW: canvas sits above ::before but below ::after and content */
.hero-orb-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0.5; /* visually between ::before (0) and ::after (1) — see note below */
    filter: blur(28px) saturate(140%);
    opacity: 0.95;
    pointer-events: none;
}

/* ensure content is on top */
.hero-content {
    position: relative;
    z-index: 2;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

    .hero-logo {
        max-width: 420px;
        width: min(80vw, 420px);
        height: auto;
        filter: drop-shadow(0 0 25px rgba(225, 6, 0, 0.6));
        animation: floatLogo 6s ease-in-out infinite;
    }

    @keyframes floatLogo {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-14px); }
    }

    .hero-title {
        font-family: 'Press Start 2P', monospace;
        font-size: clamp(1.75rem, 5vw, 3.75rem);
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 0 40px rgba(225, 6, 0, 0.5);
        animation: shimmer 3s infinite;
        line-height: 1.35;
        letter-spacing: 1px;
    }

    @keyframes shimmer {
        0%, 100% { filter: brightness(1); }
        50% { filter: brightness(1.35); }
    }

    .hero-subtitle {
        font-size: clamp(1rem, 2.6vw, 1.35rem);
        font-weight: 400;
        color: #d4d4d4;
        text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    .pre-hero-strip {
        background: #0b0b0b;
        border-top: 1px solid rgba(245, 196, 0, 0.2);
        border-bottom: 1px solid rgba(245, 196, 0, 0.2);
    }

    .media-carousel {
        overflow: hidden;
        position: relative;
        mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
    }

    .media-carousel-track {
        display: flex;
        gap: 0.5rem;
        width: max-content;
        animation: media-scroll 42s linear infinite;
    }

    .media-carousel.media-carousel-videos .media-carousel-track {
        animation-duration: 52s;
    }

    .media-carousel:hover .media-carousel-track {
        animation-play-state: paused;
    }

    .media-carousel-item {
        position: relative;
        width: 220px;
        flex: 0 0 auto;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: #111;
        display: block;
        text-decoration: none;
    }

    .media-carousel-item::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.28);
        transition: background 180ms ease;
        pointer-events: none;
    }

    .media-carousel-game-name {
        position: absolute;
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        padding: 0.35rem 0.5rem;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: #fff;
        background: rgba(7, 7, 7, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 180ms ease, transform 180ms ease, backdrop-filter 180ms ease;
        z-index: 2;
        pointer-events: none;
    }

    .media-carousel-item:hover .media-carousel-game-name,
    .media-carousel-item:focus-visible .media-carousel-game-name {
        opacity: 1;
        transform: translateY(0);
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
    }

    .media-carousel-item:hover::after,
    .media-carousel-item:focus-visible::after {
        background: rgba(0, 0, 0, 0.08);
    }

    .media-carousel-item img,
    .media-carousel-item video {
        width: 100%;
        height: 124px;
        object-fit: cover;
        display: block;
    }

    @keyframes media-scroll {
        from { transform: translateX(0); }
        to { transform: translateX(-50%); }
    }

    .xsp-hof-card {
        position: relative;
        overflow: hidden;
        border: 2px solid var(--neon-purple);
        border-radius: 12px;
        background: #111;
    }

    .xsp-hof-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .xsp-hof-bg img,
    .xsp-hof-bg video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .xsp-hof-bg-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(10,10,10,0.92) 55%, rgba(8,8,8,0.96) 100%);
    }

    
.gift-live-card {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(255,193,7,.12), transparent 38%),
                linear-gradient(135deg, #1a0a00 0%, #230d00 55%, #150800 100%);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 1.25rem 1.4rem 1.1rem;
    color: #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,.38);
}

.gift-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 0 0 rgba(255,59,48,.6);
    animation: gift-pulse 1.6s ease-out infinite;
    vertical-align: middle;
    margin-right: 5px;
}

@keyframes gift-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,59,48,.55); }
    70%  { box-shadow: 0 0 0 7px rgba(255,59,48,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); }
}

.gift-live-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

.gift-live-title {
    font-size: .93rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    letter-spacing: .02em;
}

.gift-live-total {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: #ffd166;
    line-height: 1;
    letter-spacing: -.02em;
    text-shadow: 0 0 22px rgba(255,209,102,.28);
    margin: .55rem 0 .22rem;
    transition: color .15s;
}

.gift-live-total.bump { color: #fff7d6; }

.gift-live-sub {
    font-size: .8rem;
    color: rgba(255,255,255,.55);
    margin-bottom: 1rem;
}

.gift-live-flash {
    position: relative;
    min-height: 72px;
    display: flex;
    align-items: center;
}

.gift-flash-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    padding: .7rem .85rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    animation: gift-slide-in .32s cubic-bezier(.22,1,.36,1) forwards;
}

.gift-flash-item.exiting {
    animation: gift-slide-out .25s ease-in forwards;
}

@keyframes gift-slide-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes gift-slide-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-8px); }
}

.gift-flash-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255,255,255,.22);
    flex-shrink: 0;
    background: rgba(255,255,255,.08);
}

.gift-flash-body {
    flex: 1;
    min-width: 0;
}

.gift-flash-sender {
    font-weight: 700;
    font-size: .97rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.gift-flash-desc {
    font-size: .82rem;
    color: rgba(255,255,255,.62);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: .1rem;
}

.gift-flash-gift-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: rgba(255,255,255,.08);
}

.gift-flash-diamonds {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffd166;
    white-space: nowrap;
    flex-shrink: 0;
}

.gift-live-idle {
    font-size: .88rem;
    color: rgba(255,255,255,.38);
    padding: .5rem 0;
}

@media (max-width: 480px) {
    .gift-flash-gift-img { display: none; }
    .gift-flash-diamonds { font-size: .92rem; }
}

@media (max-width: 767px) {
}

.xsp-hof-content {
        position: relative;
        z-index: 1;
    }

    .history-section {
        background: linear-gradient(135deg, rgba(225, 6, 0, 0.08), rgba(245, 196, 0, 0.08));
        border-top: 1px solid rgba(225, 6, 0, 0.15);
        border-bottom: 1px solid rgba(225, 6, 0, 0.15);
    }

    .history-heading {
        display: grid;
        gap: 0.65rem;
    }

    @media (min-width: 992px) {
        .history-heading {
            grid-template-columns: auto 1fr;
            align-items: center;
        }
    }

    .history-heading h2 {
        margin-bottom: 0;
        font-family: 'Press Start 2P', monospace;
        font-size: clamp(1.4rem, 3vw, 2.2rem);
        background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .history-heading p {
        margin-bottom: 0;
        color: #a6a6a6;
        font-size: 0.95rem;
    }

    .history-track {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(260px, 1fr);
        gap: 1.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scrollbar-width: thin;
    }

    .history-track::-webkit-scrollbar {
        height: 10px;
    }

    .history-track::-webkit-scrollbar-thumb {
        background: rgba(225, 6, 0, 0.45);
        border-radius: 999px;
    }

    .history-card {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        background: rgba(5, 9, 28, 0.85);
        border: 1px solid rgba(225, 6, 0, 0.24);
        border-radius: 18px;
        padding: 1rem;
        min-height: 100%;
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
        transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    }

    .history-card:hover {
        transform: translateY(-6px);
        border-color: rgba(225, 6, 0, 0.55);
        box-shadow: 0 18px 48px rgba(225, 6, 0, 0.35);
    }

    .history-thumb {
        position: relative;
        width: 100%;
        border-radius: 14px;
        overflow: hidden;
        aspect-ratio: 16 / 9;
        background: rgba(10, 14, 39, 0.6);
    }

    .history-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .history-status {
        position: absolute;
        top: 0.75rem;
        left: 0.75rem;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.35rem 0.8rem;
        border-radius: 999px;
        font-size: 0.8rem;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(8px);
        color: #fff;
    }

    .history-body {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .history-title {
        font-size: 1.05rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 0.25rem;
    }

    .history-time {
        color: #9b9b9b;
        font-size: 0.85rem;
    }

    .history-scores {
        display: grid;
        gap: 0.5rem;
    }

    .history-score {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.55rem 0.75rem;
        border-radius: 12px;
        background: rgba(225, 6, 0, 0.08);
        border: 1px solid rgba(225, 6, 0, 0.2);
        font-size: 0.9rem;
        color: #f0f0f0;
    }

    .history-score span:first-child {
        font-weight: 600;
        color: var(--neon-blue);
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .history-score strong {
        color: #fff;
    }

    .history-view-all {
        white-space: nowrap;
    }

    .cta-button {
        position: relative;
        padding: 0.95rem 2.4rem;
        font-weight: 700;
        font-size: 1rem;
        border: 2px solid;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-transform: uppercase;
        letter-spacing: 1px;
        overflow: hidden;
    }

    .cta-button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%);
        transition: width 0.55s, height 0.55s;
    }

    .cta-button:hover::before {
        width: 300px;
        height: 300px;
    }

    .cta-primary {
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
        border-color: var(--neon-blue);
        color: #ffffff;
        box-shadow: 0 8px 32px rgba(225, 6, 0, 0.4);
    }

    .cta-primary:hover {
        color: #ffffff;
    }

    .cta-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 46px rgba(225, 6, 0, 0.55);
    }

    .cta-secondary {
        background: transparent;
        border-color: var(--neon-pink);
        color: #fff;
        box-shadow: 0 8px 30px rgba(225, 6, 0, 0.28);
    }

    .cta-secondary:hover {
        background: var(--neon-pink);
        transform: translateY(-3px);
        box-shadow: 0 12px 44px rgba(225, 6, 0, 0.45);
    }

    .section-title {
        font-family: 'Press Start 2P', monospace;
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 3rem;
        line-height: 1.6;
    }

    .section-subtitle {
        color: #9b9b9b;
        max-width: 680px;
        margin: -2rem auto 3rem;
    }

    .trending-card {
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
        transition: transform 0.3s;
    }

    .trending-card:hover {
        transform: scale(1.02);
    }

    .trending-image {
        position: relative;
        height: 560px;
        background-size: cover;
        background-position: center;
    }

    .trending-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, transparent 55%);
    }

    .trending-badge {
        position: absolute;
        top: 22px;
        left: 22px;
        padding: 8px 16px;
        background: rgba(225, 6, 0, 0.22);
        backdrop-filter: blur(12px);
        border: 1px solid var(--neon-blue);
        border-radius: 20px;
        font-weight: 600;
        color: var(--neon-blue);
        box-shadow: 0 4px 16px rgba(225, 6, 0, 0.35);
    }

    .trending-info {
        position: absolute;
        bottom: 0;
        width: 100%;
        padding: 34px;
        text-align: center;
    }

    .trending-title {
        font-size: 1.8rem;
        font-weight: 900;
        margin-bottom: 15px;
        color: white;
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
    }

    .retro-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .retro-card {
        position: relative;
        background: rgba(10, 14, 39, 0.7);
        border: 2px solid transparent;
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(14px);
    }

    .retro-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
        opacity: 0;
        transition: opacity 0.3s;
    }

    .retro-card:hover {
        transform: translateY(-8px) scale(1.03);
        border-color: var(--neon-blue);
        box-shadow: 0 16px 42px rgba(225, 6, 0, 0.45);
    }

    .retro-card:hover::before {
        opacity: 0.12;
    }

    .retro-thumb {
        width: 100%;
        aspect-ratio: 1;
        background-size: cover;
        background-position: center;
        position: relative;
    }

    .retro-card-body {
        padding: 1rem;
        text-align: center;
        position: relative;
        z-index: 1;
    }

    .retro-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: white;
        line-height: 1.3;
    }

    .retro-panel {
        padding: 1.5rem;
        border-radius: 18px;
        border: 1px solid rgba(245, 196, 0, 0.2);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(225, 6, 0, 0.06));
    }

    .retro-panel-title {
        color: #fff;
        font-size: clamp(1.2rem, 2vw, 1.6rem);
        font-weight: 800;
    }

    .retro-panel-copy {
        color: #d5d5d5;
        max-width: 780px;
    }

    .retro-panel-cta {
        white-space: nowrap;
    }

    .live-type-block {
        position: relative;
        margin-bottom: 3.5rem;
        padding: 2.5rem 2rem;
        background: linear-gradient(135deg, rgba(225, 6, 0, 0.08), rgba(245, 196, 0, 0.08));
        border-radius: 22px;
        border: 1px solid rgba(225, 6, 0, 0.18);
        box-shadow: 0 20px 54px rgba(5, 10, 35, 0.6);
        overflow: hidden;
    }

    .live-type-block::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(225, 6, 0, 0.18), transparent 55%);
        opacity: 0.6;
        pointer-events: none;
    }

    .live-type-header {
        position: relative;
        z-index: 1;
        padding-bottom: 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 1.75rem;
    }

    .live-type-title {
        font-size: clamp(1.35rem, 2.2vw, 1.8rem);
        font-weight: 800;
        color: #ffffff;
        letter-spacing: 0.5px;
    }

    .live-type-subtitle {
        color: #a6a6a6;
        font-size: 0.95rem;
        max-width: 620px;
    }

    .live-view-all {
        position: relative;
        z-index: 1;
        border-color: rgba(225, 6, 0, 0.45);
        color: #ffffff;
        font-weight: 600;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        padding: 0.6rem 1.6rem;
    }

    .live-view-all:hover {
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
        color: #ffffff;
        border-color: transparent;
        box-shadow: 0 10px 26px rgba(225, 6, 0, 0.45);
    }

    .live-type-count {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.35rem 0.8rem;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.4px;
        background: rgba(225, 6, 0, 0.18);
        color: var(--neon-blue);
        border: 1px solid rgba(225, 6, 0, 0.32);
    }

    .live-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

    .live-card {
        background: rgba(10, 14, 39, 0.85);
        border-radius: 16px;
        overflow: hidden;
        border: 2px solid transparent;
        transition: all 0.3s;
        backdrop-filter: blur(14px);
    }

    .live-card:hover {
        transform: translateY(-5px);
        border-color: #e10600;
        box-shadow: 0 16px 44px rgba(225, 6, 0, 0.45);
    }

    .live-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1.2rem;
        padding: 3rem 1.5rem;
        background: rgba(10, 14, 39, 0.7);
        border-radius: 18px;
        border: 1px dashed rgba(225, 6, 0, 0.45);
        box-shadow: inset 0 0 22px rgba(225, 6, 0, 0.12);
        color: #a6a6a6;
    }

    .live-empty strong {
        color: #ffffff;
        font-weight: 700;
    }

    .live-thumbnail {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        background-size: cover;
        background-position: center;
    }

    .live-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        padding: 6px 14px;
        background: #e10600;
        color: white;
        font-weight: 700;
        border-radius: 20px;
        font-size: 0.85rem;
        box-shadow: 0 4px 18px rgba(225, 6, 0, 0.55);
        animation: livePulse 2s infinite;
    }

    @keyframes livePulse {
        0%, 100% { box-shadow: 0 4px 18px rgba(225, 6, 0, 0.55); }
        50% { box-shadow: 0 4px 28px rgba(225, 6, 0, 0.8); }
    }

    .live-card-body {
        padding: 1.5rem;
    }

    .streamer-name {
        font-size: 1.1rem;
        font-weight: 700;
        color: white;
        margin-bottom: 0.5rem;
    }

    .stream-info {
        color: #9b9b9b;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .live-meta-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
        margin-bottom: 1rem;
    }

    .live-meta-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.32rem 0.62rem;
        border-radius: 999px;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.2px;
        text-transform: uppercase;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.06);
        color: #f8f8f8;
    }

    .live-meta-pill-platform {
        background: rgba(225, 6, 0, 0.18);
        border-color: rgba(225, 6, 0, 0.4);
        text-transform: none;
        font-weight: 600;
    }

    .live-meta-pill-platform:hover {
        background: rgba(225, 6, 0, 0.28);
        border-color: rgba(225, 6, 0, 0.55);
        color: #fff;
    }

    .studio-section {
        background: linear-gradient(135deg, rgba(225, 6, 0, 0.08), rgba(245, 196, 0, 0.08));
        border-top: 1px solid rgba(225, 6, 0, 0.18);
        border-bottom: 1px solid rgba(225, 6, 0, 0.18);
    }

    .feature-card {
        background: rgba(10, 14, 39, 0.7);
        border: 2px solid rgba(225, 6, 0, 0.32);
        border-radius: 16px;
        padding: 2rem;
        height: 100%;
        transition: all 0.3s;
        backdrop-filter: blur(10px);
        position: relative;
    }

    .feature-card:hover {
        transform: translateY(-5px);
        border-color: var(--neon-blue);
        box-shadow: 0 15px 40px rgba(225, 6, 0, 0.32);
    }

    .feature-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .feature-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: white;
    }

    .neon-panel {
        position: relative;
        border-radius: 22px;
        padding: clamp(2rem, 4vw, 3rem);
        background: rgba(10, 14, 39, 0.85);
        border: 1px solid rgba(225, 6, 0, 0.22);
        box-shadow: 0 20px 55px rgba(5, 8, 18, 0.6);
        overflow: hidden;
    }

    .neon-panel::before,
    .neon-panel::after {
        content: '';
        position: absolute;
        inset: -40%;
        background: radial-gradient(circle at top, rgba(225, 6, 0, 0.16), transparent 65%);
        opacity: 0.4;
        animation: pulseGlow 10s ease-in-out infinite;
    }

    .neon-panel::after {
        inset: auto;
        top: -35%;
        right: -25%;
        background: radial-gradient(circle at bottom right, rgba(245, 196, 0, 0.2), transparent 60%);
        opacity: 0.35;
    }

    .neon-panel > * {
        position: relative;
        z-index: 1;
    }

    .featured-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: clamp(2rem, 4vw, 3rem);
        align-items: stretch;
    }

    .featured-spotlight {
        position: relative;
        border-radius: 18px;
        overflow: hidden;
        min-height: 320px;
        background-size: cover;
        background-position: center;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    }

    .featured-spotlight::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(160deg, rgba(0, 0, 0, 0.75), transparent 65%);
    }

    .featured-meta {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1.25rem;
    }

    .featured-meta h2 {
        font-family: 'Press Start 2P', monospace;
        font-size: clamp(1.5rem, 3.5vw, 2.5rem);
        line-height: 1.4;
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 0 30px rgba(225, 6, 0, 0.45);
    }

    .featured-meta p {
        color: #d4d4d4;
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .featured-meta .cta-button {
        align-self: flex-start;
    }

    .similar-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .similar-card {
        position: relative;
        border-radius: 16px;
        padding: 1.25rem;
        background: rgba(5, 8, 24, 0.85);
        border: 1px solid rgba(225, 6, 0, 0.18);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
        transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
        text-align: center;
        color: inherit;
    }

    .similar-card:hover {
        transform: translateY(-6px);
        border-color: var(--neon-blue);
        box-shadow: 0 18px 40px rgba(225, 6, 0, 0.35);
    }

    .similar-card span {
        display: block;
        font-weight: 600;
        color: white;
        margin-bottom: 0.5rem;
    }

    .category-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .category-card {
        position: relative;
        border-radius: 18px;
        padding: 1.75rem 1.5rem;
        background: rgba(10, 14, 39, 0.78);
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
        overflow: hidden;
    }

    .category-card::before {
        content: '';
        position: absolute;
        inset: -30%;
        background: radial-gradient(circle at top left, rgba(245, 196, 0, 0.25), transparent 60%);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .category-card:hover {
        transform: translateY(-6px);
        border-color: rgba(225, 6, 0, 0.35);
        box-shadow: 0 20px 45px rgba(225, 6, 0, 0.25);
    }

    .category-card:hover::before {
        opacity: 1;
    }

    .category-title {
        position: relative;
        z-index: 1;
        font-weight: 700;
        color: white;
        font-size: 1.05rem;
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .category-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        position: relative;
        z-index: 1;
    }

    .category-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.4rem 0.85rem;
        border-radius: 999px;
        background: rgba(225, 6, 0, 0.14);
        border: 1px solid rgba(225, 6, 0, 0.25);
        font-size: 0.85rem;
        color: #d4d4d4;
        text-decoration: none;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .category-chip:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(225, 6, 0, 0.35);
        color: white;
    }

    .leaderboard-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    .leaderboard-card {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        padding: 1.5rem;
        border-radius: 18px;
        background: rgba(10, 14, 39, 0.82);
        border: 1px solid rgba(245, 196, 0, 0.25);
        box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55);
        transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
        text-decoration: none;
        color: inherit;
    }

    .leaderboard-card:hover {
        transform: translateY(-6px);
        border-color: rgba(225, 6, 0, 0.45);
        box-shadow: 0 20px 48px rgba(225, 6, 0, 0.3);
    }

    .leaderboard-rank {
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
        color: white;
        font-weight: 700;
        font-size: 1.1rem;
        box-shadow: 0 12px 30px rgba(245, 196, 0, 0.55);
    }

    .leaderboard-meta strong {
        display: block;
        color: white;
        font-size: 1.05rem;
        margin-bottom: 0.25rem;
    }

    .leaderboard-meta span {
        display: block;
        color: #9b9b9b;
        font-size: 0.9rem;
    }

    .lazy-shell {
        position: relative;
        border-radius: 20px;
        background: rgba(10, 14, 39, 0.65);
        border: 1px solid rgba(225, 6, 0, 0.16);
        padding: 3rem 2rem;
        overflow: hidden;
        box-shadow: 0 18px 50px rgba(5, 8, 18, 0.65);
        backdrop-filter: blur(16px);
    }

    .lazy-shell::before {
        content: '';
        position: absolute;
        inset: -20%;
        background: radial-gradient(circle at top, rgba(225, 6, 0, 0.18), transparent 55%);
        opacity: 0.4;
        animation: pulseGlow 8s ease-in-out infinite;
    }

    .lazy-content {
        position: relative;
        z-index: 1;
    }

    .skeleton {
        position: relative;
        overflow: hidden;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.06);
    }

    .skeleton::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
        transform: translateX(-100%);
        animation: skeletonShimmer 1.6s infinite;
    }

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

    .skeleton-line {
        height: 16px;
        border-radius: 999px;
    }

    .skeleton-title {
        height: 26px;
        width: clamp(220px, 36vw, 340px);
        margin: 0 auto;
    }

    .skeleton-subtitle {
        height: 18px;
        width: clamp(260px, 46vw, 420px);
        margin: 1rem auto 0;
    }

    .skeleton-grid {
        display: grid;
        gap: 1.5rem;
    }

    .skeleton-card {
        height: 160px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.06);
    }

    .skeleton-chip {
        height: 12px;
        width: 70%;
        margin: 0.4rem auto;
    }

    .skeleton-card::after,
    .skeleton-chip::after {
        border-radius: inherit;
    }

    .cta-section {
        background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
        position: relative;
        overflow: hidden;
    }

    .cta-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 52%);
    }

    .py-6 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .py-7 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    @media (max-width: 768px) {
        .media-carousel-item {
            width: 170px;
        }

        .retro-panel {
            padding: 1rem;
        }

        .retro-panel-cta {
            width: 100%;
        }

        .media-carousel-item img,
        .media-carousel-item video {
            height: 98px;
        }

        .retro-grid {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 1rem;
        }

        .live-type-block {
            padding: 1.75rem 1.5rem;
        }

        .live-type-header {
            align-items: flex-start;
        }

        .live-view-all {
            width: 100%;
            text-align: center;
        }

        .live-grid {
            grid-template-columns: 1fr;
        }

        .trending-image {
            height: 420px;
        }

        .hero-subtitle {
            font-size: 1.05rem;
        }

        .featured-layout {
            grid-template-columns: 1fr;
        }

        .featured-meta .cta-button {
            align-self: center;
        }

        .category-grid,
        .leaderboard-grid {
            grid-template-columns: 1fr;
        }
    }

/* ============================================================
   VOXEL WAVE HERO UPGRADE (2026-06-12)
   Integrates the new cyber/voxel/CRT hero into the existing
   xoompa hero, preserving the original logo/title/CTAs/orbs
   as much as possible while adding the new visual layer.
   ============================================================ */

:root {
    --voxel-cyan: #00f2ff;
    --voxel-purple: #7000ff;
    --voxel-kick: #53fc18;
    --voxel-dark: #020205;
    --voxel-font-head: 'Press Start 2P', monospace;
    --voxel-font-code: 'Fira Code', 'Courier New', monospace;
}

/* The voxel canvas sits above the original orb canvas (kept as fallback / accent) */
#voxelCanvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

/* CRT scanline + RGB-shift overlay */
.crt-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 255, 0, 0.03));
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    z-index: 6;
    mix-blend-mode: overlay;
}

/* Vignette darkens the edges so the centre pops */
.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 20%, rgba(2, 2, 5, 0.65) 100%);
    z-index: 7;
    pointer-events: none;
}

/* Floating chat-command tags that drift up and fade (the "Missing Info") */
.chat-tags {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
}

.tag {
    position: absolute;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--voxel-purple);
    color: white;
    font-family: var(--voxel-font-code);
    font-size: 0.8rem;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    animation: floatTag 10s infinite linear;
    will-change: transform, opacity;
    text-shadow: 0 0 8px currentColor;
}

@keyframes floatTag {
    0%   { transform: translate(0, 0)        scale(0.9); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translate(100px, -220px) scale(1.05); opacity: 0; }
}

.tag.twitch  { border-color: #9146ff; color: #9146ff; }
.tag.youtube { border-color: #ff0033; color: #ff0033; }
.tag.kick    { border-color: var(--voxel-kick);  color: var(--voxel-kick);  }
.tag.tiktok  { border-color: #ff0050; color: #ff0050; }
.tag.xoompa  { border-color: var(--voxel-cyan);  color: var(--voxel-cyan);  }

/* Glitch title — keeps the existing hero-title content readable, adds a
   layered text-shadow that mimics chromatic aberration. */
.hero-title.glitch-title {
    position: relative;
    color: white;
    text-shadow:
        0 0 1px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(0, 242, 255, 0.35),
        0 0 40px rgba(112, 0, 255, 0.25);
    /* Override the gradient text-fill from the original .hero-title */
    background: none;
    -webkit-text-fill-color: white;
    letter-spacing: 2px;
}

.hero-title.glitch-title::before,
.hero-title.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    color: inherit;
    -webkit-text-fill-color: initial;
}

.hero-title.glitch-title::before {
    text-shadow: -2px 0 var(--voxel-cyan);
    transform: translate(-2px, 0);
    opacity: 0.5;
    animation: glitchA 4s infinite linear alternate-reverse;
}

.hero-title.glitch-title::after {
    text-shadow: 2px 0 var(--voxel-purple);
    transform: translate(2px, 0);
    opacity: 0.5;
    animation: glitchB 4s infinite linear alternate-reverse;
}

@keyframes glitchA {
    0%, 100% { clip-path: inset(0 0 90% 0); transform: translate(-2px, 0); }
    20%      { clip-path: inset(80% 0 0 0); transform: translate(-2px, -1px); }
    40%      { clip-path: inset(40% 0 50% 0); transform: translate(-3px, 1px); }
    60%      { clip-path: inset(20% 0 70% 0); transform: translate(-1px, 0); }
    80%      { clip-path: inset(60% 0 30% 0); transform: translate(-2px, -1px); }
}

@keyframes glitchB {
    0%, 100% { clip-path: inset(0 0 90% 0); transform: translate(2px, 0); }
    20%      { clip-path: inset(70% 0 10% 0); transform: translate(2px, 1px); }
    40%      { clip-path: inset(30% 0 60% 0); transform: translate(3px, -1px); }
    60%      { clip-path: inset(50% 0 40% 0); transform: translate(1px, 1px); }
    80%      { clip-path: inset(10% 0 80% 0); transform: translate(2px, 0); }
}

/* The highlighted portion ("GAME SHOWS") uses a cyan stroke instead of a fill */
.hero-title .highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--voxel-cyan);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
    background: none;
    -webkit-text-fill-color: transparent;
}

/* Typewriter cursor for the inline span in the subtitle */
.hero-subtitle .typewriter {
    color: var(--voxel-cyan);
    font-weight: 700;
    border-right: 2px solid var(--voxel-cyan);
    padding-right: 4px;
    animation: caretBlink 1s steps(2, end) infinite;
}

@keyframes caretBlink {
    0%, 100% { border-color: var(--voxel-cyan); }
    50%      { border-color: transparent; }
}

/* Button matrix — hex clip-path with brand-coloured hover */
.button-matrix {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.matrix-btn {
    position: relative;
    padding: 18px 40px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    overflow: hidden;
    transition: transform 0.3s ease, color 0.3s ease;
}

.matrix-btn .matrix-hex {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    -webkit-clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
            clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    z-index: 0;
}

.matrix-btn .btn-label {
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
}

.matrix-btn:hover {
    color: white;
    transform: translateY(-2px);
}

.matrix-btn:hover .matrix-hex {
    background: var(--voxel-purple);
    transform: scale(1.06);
    border-color: var(--voxel-cyan);
    box-shadow: 0 0 18px rgba(0, 242, 255, 0.45);
}

.matrix-btn.btn-live:hover .matrix-hex {
    background: #ff0033;
    border-color: #ff5577;
}

/* Make sure the new layer still works on small screens */
@media (max-width: 768px) {
    .chat-tags .tag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    .button-matrix {
        gap: 12px;
    }
    .matrix-btn {
        padding: 14px 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tag,
    .hero-title.glitch-title::before,
    .hero-title.glitch-title::after,
    .hero-subtitle .typewriter {
        animation: none;
    }
}

/* ============================================================
   XOOMPA MASTER VOID HERO (2026-06-12)
   Neural brand floor with "X O O M P A" voxel wordmark,
   HUD with SSE log + platform nodes, 3D-flip heading,
   CTA matrix. Replaces the older .hero-section for the welcome
   page. The earlier hero CSS above is preserved for pages that
   still use it (e.g. retro/index, pricing).

   Re-themed 2026-06-12 01:55 UTC to use the actual Xoompa brand
   colours (red + yellow) instead of the design's cyan/purple.
   Mapping:
     --mv-cyan   (accent primary)   #e10600  Xoompa red
     --mv-purple (accent secondary) #f5c400  Xoompa yellow
     --mv-bg     (background dark)  #08070a  (slightly warmer so
                                          the red reads well on it)
   --mv-cyan-soft / --mv-purple-soft are translucent variants used
   for borders and glows.
   ============================================================ */

:root {
    --mv-cyan: #e10600;
    --mv-purple: #f5c400;
    --mv-cyan-soft: rgba(225, 6, 0, 0.35);
    --mv-purple-soft: rgba(245, 196, 0, 0.30);
    --mv-bg: #08070a;
}

.xoompa-master-void {
    position: relative;
    /* Height leaves room at the bottom for the absolutely-positioned
       hero-gift-feed floater (~196px) so the centered .hero-stage
       content shifts up and never overlaps the gift feed.
       100svh on mobile avoids the iOS Safari URL-bar jump. */
    height: calc(100vh - 196px);
    height: calc(100svh - 196px);
    /* Pull up to escape the <main class="py-4">'s 1.5rem top padding
       so the hero sits flush with the navbar. Negative margin on
       the breakout pattern is a no-op visually because the hero's
       dark background matches the navbar's dark style — the
       transition is invisible. */
    margin-top: -1.5rem;
    /* Full-bleed breakout: ignore the parent .container's max-width
       (1140px on desktop) and span the full viewport. The negative
       margin + left:50% is the classic escape pattern.

       NOTE: width:100vw includes the vertical scrollbar width, so
       this element is wider than the visible viewport by ~15px when
       a scrollbar is present. The page-level `overflow-x: hidden` on
       `html, body` (in xoompa.css) clips the overflow so no
       horizontal scrollbar appears. */
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    /* overflow: hidden on this element keeps the brand canvas / gift
       layer / HUD from bleeding past the hero's box. */
    overflow: hidden;
    background: var(--mv-bg);
    color: white;
    font-family: 'Inter', sans-serif;
}

#brandCanvas {
    position: absolute;
    /* The 3D Xoompa wordmark sits behind the centered hero content
       as a "neural floor" backdrop. It now spans the full viewport
       width so the perspective-tilted voxel grid extends edge-to-edge
       — the wordmark itself is centered in the grid via the canvas
       JS (`cols/2, rows/2`) so it stays visually centered regardless
       of canvas size. Non-letter voxels (alpha 0.08) fade into the
       dark background at the edges, so wider canvas = more ambient
       grid, not more visible noise.

       Height stays at 60vh on desktop so the perspective floor
       effect is preserved. The radial mask softens the edges into
       the hero background. */
    left: 50%;
    top: 50%;
    width: 100vw;
    height: 60vh;
    max-width: 100vw;
    transform: translate(-50%, -55%) rotateX(25deg);
    transform-origin: center center;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
            mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
}

@media (max-width: 575.98px) {
    /* On phones, the desktop 60vh height would make the canvas
       too tall on narrow screens. Switch to 4:3 aspect ratio so
       the voxel grid has a predictable shape, and soften the
       perspective tilt so the text doesn't get too distorted on
       tall narrow screens. Width stays full-viewport (matches
       the desktop default). */
    #brandCanvas {
        width: 100vw;
        max-width: 100vw;
        height: auto;
        aspect-ratio: 4 / 3;
        transform: translate(-50%, -55%) rotateX(18deg);
    }
}

/* --- FLIPPING HEADING --- */
.flip-heading {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 20;
}

.sub-line {
    display: block;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 6px;
    /* White per king — was var(--mv-cyan) which is now #e10600 red
       after the 2026-06-12 brand re-theme. Sub-line should be a
       quiet white caption above the gold flip heading. */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    opacity: 0.85;
}

.flip-wrapper {
    position: relative;
    /* Generous height so the 900-weight Orbitron text never
       clips at the top/bottom during rotateX transitions.
       1.4× clamp-max keeps room for ascenders/descenders. */
    height: clamp(70px, 9vw, 110px);
    overflow: hidden;
    perspective: 1000px;
    /* Expand to fit the widest text (e.g. "OBS OVERLAYS") so the
       flip-text no longer clips against the .hero-stage padding.
       max-width: 100% keeps it from spilling past the parent. */
    display: inline-block;
    width: max-content;
    max-width: 100%;
    vertical-align: top;
}
/* Hidden inline sizer — sets the wrapper's intrinsic max-content width
   to the widest flip phrase. Without this, `width: max-content` on the
   wrapper collapses to 0 because all the visible children are
   position: absolute and contribute nothing to intrinsic sizing. */
.flip-sizer {
    display: inline-block;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    /* Match the .flip-text sizing so the sizer measures the same width
       the absolute children will occupy. */
    font-size: clamp(1.4rem, 6.5vw, 3.2rem);
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.flip-text {
    position: absolute;
    /* Each text sizes to its own content (not 100% of the wrapper) so
       the longest phrase doesn't get clipped on either side. The
       translateX(-50%) below keeps it centred in the wrapper. */
    width: max-content;
    left: 50%;
    top: 0;
    transform: translateX(-50%) rotateX(-90deg);
    /* Slightly tighter clamp so even the longest phrase ("OBS OVERLAYS")
       fits comfortably at desktop widths without hugging the wrapper edge. */
    font-size: clamp(1.4rem, 6.5vw, 3.2rem);
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    /* Rich gold gradient — no white, so no pink-fade against the warm
       dark background. Light gold at the top of the glyph, deep gold
       at the bottom. Reads as pure gold, matches the Xoompa yellow
       accent. */
    background: linear-gradient(
        to bottom,
        #ffe27a 0%,
        #f5c400 55%,
        #b88800 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
            background-clip: text;
    /* Subtle warm glow to lift the gold off the dark bg. */
    filter: drop-shadow(0 0 18px rgba(245, 196, 0, 0.45));
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center center;
    white-space: nowrap;
}

.flip-text.active {
    opacity: 1;
    transform: translateX(-50%) rotateX(0deg);
}
.flip-text.exit {
    opacity: 0;
    transform: translateX(-50%) rotateX(90deg);
}

/* --- LOGO AREA --- */
.hero-stage {
    position: relative;
    z-index: 20;
    text-align: center;
    pointer-events: none;
    padding: 0 15px;
    max-width: 100%;
}

.logo-area {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    transform-style: preserve-3d;
    transition: transform 120ms ease-out;
}

.main-logo {
    width: 420px;
    max-width: 80vw;
    height: auto;
    filter: drop-shadow(0 0 20px var(--mv-purple));
    position: relative;
    z-index: 1;
}

.logo-energy-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 60px;
    background: var(--mv-purple);
    filter: blur(50px);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

/* --- HUD LAYOUT --- */
.hud {
    position: absolute;
    z-index: 30;
    font-family: 'JetBrains Mono', monospace;
    pointer-events: none;
    color: white;
}

.hud-tl { top: 20px;  left: 20px;  }
.hud-br { bottom: 20px; right: 20px; }

.hud-tag {
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: var(--mv-cyan);
    margin-bottom: 5px;
}

.hud-log {
    border-left: 2px solid var(--mv-purple);
    padding-left: 10px;
    font-size: 0.65rem;
    color: #fff;
    max-width: 200px;
    opacity: 0.7;
    word-wrap: break-word;
}

.platform-nodes {
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.node {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    cursor: default;
}

.node:hover {
    color: var(--mv-cyan);
    border-color: var(--mv-cyan);
    background: rgba(0, 242, 255, 0.08);
}

.node .kick-letter {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--mv-cyan);
}

/* --- BUTTONS --- */
.cta-matrix {
    display: flex;
    gap: 10px;
    justify-content: center;
    pointer-events: auto;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.m-btn {
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
    display: inline-block;
}

.btn-red    { background: #ff003c; color: white; }
.btn-purple { background: var(--mv-purple); color: white; }
.btn-ghost  { border: 1px solid rgba(255, 255, 255, 0.2); color: white; background: transparent; }

.m-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 242, 255, 0.25);
    color: white;
}

.btn-red:hover    { background: #ff1a52; }
.btn-purple:hover { background: #8a14ff; }
.btn-ghost:hover  { background: rgba(255, 255, 255, 0.08); border-color: var(--mv-cyan); }

.hero-desc {
    color: #b8b8b8;
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.4;
    position: relative;
    z-index: 20;
}

.hero-desc strong {
    color: var(--mv-cyan);
    font-weight: 700;
}

/* --- GIFT ENGINE --- */
.gift-icon {
    position: absolute;
    z-index: 50;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px white);
    pointer-events: none;
    will-change: transform, opacity;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gift-icon img {
    width: 1em;
    height: 1em;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    /* Slight glow to match the emoji drop-shadow */
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}
.gift-icon--sim img {
    /* Simulated gifts get a purple tint to telegraph "demo mode" */
    filter: hue-rotate(-50deg) saturate(0.6);
    box-shadow: 0 0 12px rgba(112, 0, 255, 0.5);
}

/* ============================================================================
 * HERO GIFT FEED PANEL
 * Reuses the gift-ticker-summary endpoint (same as the home "💎 Gifts
 * Processed Live" card) but renders the events as a feed panel inside
 * the hero so visitors see real activity instantly. Each item shows the
 * full event data (avatar, sender, gift name, diamonds) — not just a
 * flying gift icon.
 * ============================================================================ */
.hero-gift-feed {
    /* True floater — sits below the hero box so it never takes
       vertical space in the .xoompa-master-void flex layout. The
       hero's height is reduced by 196px (max-height of the feed
       inner + bottom offset) so the centered .hero-stage content
       shifts up and never sits behind the feed. */
    position: absolute;
    left: 50%;
    bottom: -196px;
    transform: translateX(-50%);
    z-index: 60;
    width: min(560px, calc(100vw - 2rem));
    pointer-events: none;
}

.hero-gift-feed__inner {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    /* Limit visible items so the panel doesn't dominate the hero. */
    max-height: 168px;
    overflow: hidden;
}

.hero-gift-feed__idle {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
    padding: 0.6rem 0;
}

/* Each feed item is a compact .gift-flash-item — same data shape as the
   home gift card but smaller, dimmer, and constrained to the panel. */
.hero-gift-feed .gift-flash-item {
    padding: 0.45rem 0.7rem;
    background: rgba(8, 8, 12, 0.78);
    border: 1px solid rgba(var(--xoompa-red-rgb), 0.22);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    gap: 0.65rem;
}

.hero-gift-feed .gift-flash-avatar {
    width: 32px;
    height: 32px;
    border-color: rgba(var(--xoompa-red-rgb), 0.45);
}

.hero-gift-feed .gift-flash-sender {
    font-size: 0.88rem;
}

.hero-gift-feed .gift-flash-desc {
    font-size: 0.74rem;
}

.hero-gift-feed .gift-flash-gift-img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.hero-gift-feed .gift-flash-diamonds {
    font-size: 0.92rem;
}

@media (max-width: 575.98px) {
    .hero-gift-feed {
        /* On mobile the feed inner is shorter (max-height: 132px
           via the items' own sizing), so we offset less below the
           hero. Keep it visually consistent with the desktop
           "floater below the hero" pattern. */
        bottom: -156px;
        width: calc(100vw - 1.5rem);
    }
    .hero-gift-feed__inner { max-height: 132px; }
    .hero-gift-feed .gift-flash-gift-img { display: none; }
    .hero-gift-feed .gift-flash-avatar { width: 28px; height: 28px; }
    .hero-gift-feed .gift-flash-sender { font-size: 0.82rem; }
    /* Shrink the hero on mobile too so the centered content
       accounts for the smaller floater height. */
    .xoompa-master-void {
        height: calc(100vh - 156px);
        height: calc(100svh - 156px);
    }
}

/* --- DESKTOP ADJUSTMENTS --- */
@media (min-width: 768px) {
    .sub-line    { font-size: 0.9rem; letter-spacing: 12px; }
    /* Keep the desktop wrapper height in sync with the clamp above
       — no fixed override (the clamp adapts by itself). */
    .hero-desc   { font-size: 1.15rem; margin-bottom: 3rem; }
    .m-btn       { font-size: 0.8rem; padding: 15px 32px; flex: initial; }
    .hud-tl      { top: 40px;    left: 40px;  }
    .hud-br      { bottom: 40px; right: 40px; }
    .gift-icon   { font-size: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .xoompa-master-void * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
