:root {
    --bg: #07040f;
    --bg-2: #0e0820;
    --card: rgba(24, 14, 48, .72);
    --line: rgba(168, 85, 247, .28);
    --violet: #a855f7;
    --violet-2: #c084fc;
    --pink: #f0abfc;
    --text: #ece6fa;
    --muted: #9a8fb8;
    --live: #ff2e63;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

a { color: var(--violet-2); text-decoration: none; }
h1, h2, h3, .brand { font-family: 'Orbitron', 'Segoe UI', sans-serif; letter-spacing: .04em; }

.bg-glow {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(60rem 30rem at 15% -10%, rgba(168, 85, 247, .25), transparent 60%),
        radial-gradient(50rem 30rem at 100% 30%, rgba(240, 171, 252, .10), transparent 60%),
        linear-gradient(180deg, var(--bg), var(--bg-2));
}

/* Topbar */
.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; justify-content: space-between; align-items: center;
    padding: .8rem clamp(1rem, 4vw, 3rem);
    background: rgba(7, 4, 15, .75); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; color: var(--text); }
.brand span, h1 span { color: var(--violet); text-shadow: 0 0 18px var(--violet); }
.topbar nav { display: flex; gap: 1.4rem; }
.topbar nav a { color: var(--muted); font-size: .92rem; transition: color .2s, text-shadow .2s; }
.topbar nav a:hover { color: var(--pink); text-shadow: 0 0 10px var(--violet); }

/* Hero */
.hero { text-align: center; padding: clamp(4rem, 12vw, 9rem) 1rem 4rem; }
.eyebrow { color: var(--violet-2); text-transform: uppercase; letter-spacing: .3em; font-size: .8rem; margin: 1.6rem 0 0; }
.hero h1 {
    font-size: clamp(2.8rem, 11vw, 7rem); font-weight: 800; margin: .3rem 0;
    text-shadow: 0 0 30px rgba(168, 85, 247, .35);
}
.tagline { max-width: 38rem; margin: 0 auto 2rem; color: var(--muted); font-size: 1.1rem; }
.cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
    padding: .8rem 1.6rem; border-radius: 10px; border: 1px solid var(--violet);
    color: var(--text); font-weight: 600; transition: all .2s;
}
.btn:hover { box-shadow: 0 0 22px rgba(168, 85, 247, .6); transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, #7c3aed, var(--violet)); border-color: transparent; box-shadow: 0 0 20px rgba(168, 85, 247, .45); }

/* Live badge */
.live-badge {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted);
}
.live-badge i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--muted); }
.live-badge.live { color: #fff; border-color: var(--live); background: rgba(255, 46, 99, .15); box-shadow: 0 0 18px rgba(255, 46, 99, .45); }
.live-badge.live i { background: var(--live); animation: pulse 1.4s infinite; }
.live-badge.offline i { background: #6b5f87; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 46, 99, .7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 46, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 46, 99, 0); }
}

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: 3rem 1.2rem; }
.section h2 { font-size: 1.6rem; margin: 0 0 1.4rem; }
.section h2::after { content: ""; display: block; width: 60px; height: 3px; margin-top: .5rem; background: var(--violet); box-shadow: 0 0 12px var(--violet); }

.card {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--violet); box-shadow: 0 0 26px rgba(168, 85, 247, .25); }
.about { max-width: 46rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.game h3 { margin: 0 0 .4rem; color: var(--pink); font-size: 1.05rem; }
.game p { margin: 0; color: var(--muted); }

/* Stream */
.stream-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1rem; }
.player-frame, .chat-frame {
    border: 1px solid var(--violet); border-radius: 14px; overflow: hidden; background: #000;
    box-shadow: 0 0 30px rgba(168, 85, 247, .3);
}
.player-frame { aspect-ratio: 16 / 9; }
.player-frame iframe, .chat-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.chat-frame { min-height: 420px; }
@media (max-width: 900px) {
    .stream-grid { grid-template-columns: 1fr; }
    .chat-frame { height: 480px; }
    .topbar nav { gap: .9rem; }
}

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.chip {
    background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
    padding: .4rem 1.1rem; cursor: pointer; font: inherit; transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--violet); }
.chip.active { color: #fff; background: var(--violet); border-color: var(--violet); box-shadow: 0 0 16px rgba(168, 85, 247, .6); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.shot {
    position: relative; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    background: #000; cursor: zoom-in; transition: all .25s;
}
.shot:hover { border-color: var(--violet); box-shadow: 0 0 28px rgba(168, 85, 247, .45); transform: translateY(-4px); }
.shot img { width: 100%; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.shot-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1rem .8rem; text-align: left;
    background: linear-gradient(transparent, rgba(7, 4, 15, .92)); color: var(--text);
    display: flex; flex-direction: column;
}
.shot-caption small { color: var(--violet-2); }

.lightbox {
    position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem;
    background: rgba(5, 2, 12, .9); backdrop-filter: blur(6px); cursor: zoom-out;
}
.lightbox figure { position: relative; margin: 0; max-width: min(1000px, 100%); cursor: default; }
.lightbox img { width: 100%; border-radius: 14px; border: 1px solid var(--violet); box-shadow: 0 0 50px rgba(168, 85, 247, .5); }
.lightbox figcaption { margin-top: .8rem; text-align: center; color: var(--muted); }
.lightbox .close {
    position: absolute; top: -.8rem; right: -.8rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
    border: 1px solid var(--violet); background: var(--bg); color: var(--text); cursor: pointer;
}

.muted { color: var(--muted); }
.footer { text-align: center; padding: 3rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer p { margin: .2rem 0; }
