:root {
    --bg: #08070d;
    --panel: rgba(18, 14, 27, 0.88);
    --panel-border: rgba(182, 89, 255, 0.22);

    --purple: #a855f7;
    --purple-light: #c084fc;
    --purple-dark: #6d28d9;

    --text: #ffffff;
    --muted: #aaa3b8;

    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at top,
            #21102f 0%,
            #0b0810 35%,
            #07060a 70%
        );

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.background-glow {
    position: fixed;
    border-radius: 999px;
    filter: blur(110px);
    opacity: 0.18;
    pointer-events: none;
    z-index: -1;
}

.glow-one {
    width: 420px;
    height: 420px;
    background: #8b5cf6;
    top: 10%;
    left: -170px;
}

.glow-two {
    width: 500px;
    height: 500px;
    background: #d946ef;
    right: -230px;
    top: 50%;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 6%;

    background: rgba(8, 7, 13, 0.78);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid
        rgba(255, 255, 255, 0.06);
}

.logo {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.logo span {
    color: var(--purple-light);
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--muted);
    transition: 0.2s ease;
}

nav a:hover {
    color: white;
}

main {
    width: min(1120px, 90%);
    margin: auto;
}

.hero {
    min-height: 82vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-badge,
.eyebrow,
.coming-soon {
    color: var(--purple-light);
    font-weight: 800;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
}

.hero h1 {
    margin: 15px 0 15px;

    font-size: clamp(
        3.4rem,
        9vw,
        7.5rem
    );

    line-height: 0.93;
    letter-spacing: -0.06em;
}

.hero h1 span {
    background:
        linear-gradient(
            90deg,
            #ffffff,
            #d8b4fe,
            #a855f7
        );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    color: var(--muted);
    font-size: 1.15rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.button {
    border: 0;
    cursor: pointer;

    padding: 14px 22px;
    border-radius: 14px;

    font-weight: 800;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.primary {
    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--purple-dark)
        );

    box-shadow:
        0 10px 35px
        rgba(168, 85, 247, 0.25);

    color: white;
}

.secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section {
    padding: 80px 0;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: clamp(
        2rem,
        5vw,
        3.6rem
    );

    margin: 5px 0;
    letter-spacing: -0.04em;
}

.live-card,
.game-card,
.shop-card {
    background: var(--panel);

    border:
        1px solid
        var(--panel-border);

    border-radius: var(--radius);

    padding: 30px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.2);
}

.live-status-row {
    display: flex;
    align-items: center;
    gap: 10px;

    font-weight: 900;
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #777;
}

.live-card.live .status-dot {
    background: #ff3e66;
    box-shadow:
        0 0 18px
        rgba(255, 62, 102, 0.9);
}

.live-card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.live-card p {
    color: var(--muted);
}

.twitch-button {
    display: inline-block;
    margin-top: 12px;
    background: #9146ff;
    color: white;
}

.social-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(210px, 1fr)
        );

    gap: 14px;
}

.social-card {
    min-height: 140px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 23px;

    background:
        rgba(255, 255, 255, 0.045);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 19px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.social-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(192, 132, 252, 0.5);

    background:
        rgba(168, 85, 247, 0.1);
}

.social-name {
    font-size: 1.3rem;
    font-weight: 900;
}

.social-handle {
    color: var(--muted);
    margin-top: 4px;
}

.game-card {
    text-align: center;
}

.game-card > p {
    color: var(--muted);
}

.reaction-area {
    min-height: 220px;

    margin: 25px 0;

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: clamp(
        2rem,
        8vw,
        4rem
    );

    font-weight: 950;

    user-select: none;

    background:
        rgba(255, 255, 255, 0.04);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    cursor: pointer;
}

.reaction-area.ready {
    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #c026d3
        );

    box-shadow:
        0 0 50px
        rgba(168, 85, 247, 0.3);
}

.score-row {
    display: flex;
    justify-content: center;
    gap: 55px;
    margin-top: 28px;
}

.score-row > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.score-label {
    color: var(--muted);
    font-size: 0.85rem;
}

.score-row strong {
    font-size: 1.5rem;
}

.shop-card {
    min-height: 230px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shop-card h3 {
    font-size: 2rem;
    margin: 10px 0;
}

.shop-card p {
    color: var(--muted);
    max-width: 600px;
}

footer {
    width: min(1120px, 90%);
    margin: 20px auto 0;

    padding: 35px 0 50px;

    display: flex;
    justify-content: space-between;

    color: var(--muted);

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);
}

footer strong {
    color: white;
}

@media (max-width: 700px) {

    .topbar {
        padding: 15px 5%;
    }

    nav {
        display: none;
    }

    .hero {
        min-height: 75vh;
    }

    .section {
        padding: 55px 0;
    }

    .live-card,
    .game-card,
    .shop-card {
        padding: 22px;
    }

    .reaction-area {
        min-height: 180px;
    }

    .score-row {
        gap: 35px;
    }
}

.leaderboard {
    margin-top: 28px;
    padding-top: 22px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);

    text-align: left;
}

.leaderboard-title {
    color: var(--purple-light);

    font-size: 0.78rem;
    font-weight: 900;

    letter-spacing: 0.12em;

    margin-bottom: 12px;
}

.leaderboard ol {
    margin: 0;
    padding-left: 30px;

    color: var(--muted);
}

.leaderboard li {
    padding: 5px 0;
}

.leaderboard li::marker {
    color: var(--purple-light);
    font-weight: 900;
}

.player-name-box {
    margin-bottom: 28px;
    text-align: left;
}

.player-name-box label {
    display: block;
    margin-bottom: 10px;
    color: var(--purple-light);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.player-name-row {
    display: flex;
    gap: 10px;
}

.player-name-row input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    color: white;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    outline: none;
    font: inherit;
}

.player-name-row input:focus {
    border-color: var(--purple-light);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.12);
}

#nameStatus {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.global-leaderboard li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.global-leaderboard li span {
    display: inline-block;
    min-width: 60%;
}

.global-leaderboard li strong {
    float: right;
    color: white;
}

@media (max-width: 600px) {
    .player-name-row {
        flex-direction: column;
    }
}



.auth-top-button {
    padding: 10px 15px;

    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);

    color: white;
    background: rgba(10,10,14,.82);

    backdrop-filter: blur(12px);

    font: inherit;
    font-weight: 800;

    cursor: pointer;
}

.auth-top-primary {
    background:
        linear-gradient(
            135deg,
            rgba(126,34,206,.95),
            rgba(168,85,247,.95)
        );

    border-color:
        rgba(192,132,252,.35);
}

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: grid;
    place-items: center;

    padding: 20px;

    background:
        rgba(0,0,0,.72);

    backdrop-filter:
        blur(8px);
}

.auth-overlay[hidden] {
    display: none;
}

.auth-modal {
    position: relative;

    width: min(460px, 100%);

    padding: 30px;

    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            rgba(25,20,36,.98),
            rgba(10,9,14,.99)
        );

    border:
        1px solid
        rgba(192,132,252,.18);

    box-shadow:
        0 30px 100px
        rgba(0,0,0,.65);
}

.auth-close {
    position: absolute;
    top: 12px;
    right: 15px;

    border: 0;
    background: transparent;
    color: white;

    font-size: 28px;
    cursor: pointer;
}

.auth-tabs {
    display: flex;
    gap: 8px;

    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;

    padding: 11px;

    border-radius: 12px;

    border:
        1px solid
        rgba(255,255,255,.10);

    background:
        rgba(255,255,255,.04);

    color: white;

    font: inherit;
    font-weight: 800;

    cursor: pointer;
}

.auth-tab.active {
    background:
        rgba(139,92,246,.20);

    border-color:
        rgba(168,85,247,.50);
}

.auth-modal label {
    display: block;

    margin: 15px 0;

    color: rgba(255,255,255,.82);

    font-size: .88rem;
    font-weight: 700;
}

.auth-modal input {
    display: block;

    width: 100%;

    margin-top: 7px;
    padding: 13px 14px;

    box-sizing: border-box;

    border-radius: 12px;

    border:
        1px solid
        rgba(255,255,255,.12);

    background:
        rgba(255,255,255,.06);

    color: white;

    outline: none;
    font: inherit;
}

.auth-modal input:focus {
    border-color:
        rgba(168,85,247,.75);

    box-shadow:
        0 0 0 3px
        rgba(168,85,247,.12);
}

.auth-main-button {
    width: 100%;
    margin-top: 10px;
}

.auth-link-button {
    display: block;

    margin:
        14px auto 0;

    border: 0;

    background: transparent;

    color:
        rgb(196,181,253);

    cursor: pointer;
}

.auth-message {
    min-height: 22px;

    margin:
        18px 0 0;

    color:
        rgb(196,181,253);

    text-align: center;
}

.auth-message.error {
    color:
        rgb(248,113,113);
}

.auth-small {
    color:
        rgba(255,255,255,.58);

    font-size: .84rem;
}

@media (max-width: 600px) {
    

    .auth-top-button {
        padding: 8px 11px;
        font-size: .78rem;
    }

    .auth-modal {
        padding: 24px 18px;
    }
}

/* ============================
   AUTH NAVBAR FIX
   ============================ */

.auth-corner {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    z-index: auto;
    pointer-events: auto;
}

.auth-corner button {
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.auth-top-button {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    color: white;
    background: rgba(10,10,14,.82);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.auth-top-button:hover {
    transform: translateY(-1px);
}

.auth-top-primary {
    background: linear-gradient(
        135deg,
        rgba(126,34,206,.95),
        rgba(168,85,247,.95)
    );

    border-color: rgba(192,132,252,.35);
}

.auth-overlay {
    pointer-events: auto;
}

.auth-overlay[hidden] {
    display: none !important;
}

@media (max-width: 850px) {
    .auth-corner {
        margin-left: 0;
        gap: 6px;
    }

    .auth-top-button {
        padding: 8px 10px;
        font-size: .8rem;
    }
}
/* BIFF3EN ACCOUNTS V2 */

.b3-account-v2 {
    margin-top: 22px;
}

.b3-settings-divider {
    height: 1px;
    margin: 22px 0;
    background: rgba(255,255,255,.09);
}

.b3-setting-box {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.b3-setting-box label {
    display: block;
    margin: 10px 0 6px;
    font-size: .88rem;
    font-weight: 700;
}

.b3-setting-box input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;
    background: #211c28;
    color: #fff;
    font: inherit;
}

.b3-setting-box button,
.b3-lock-actions button,
.b3-lock-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 11px 14px;
    border: 0;
    border-radius: 10px;
    background: #8933e8;
    color: #fff;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.b3-setting-box .b3-secondary {
    background: rgba(255,255,255,.08);
}

.b3-danger {
    border-color: rgba(255,80,100,.32);
}

.b3-danger button {
    background: #b3263e;
}

.b3-settings-message {
    min-height: 22px;
    margin-top: 14px;
    color: #caa8ff;
}

.b3-settings-message.error {
    color: #ff7a8c;
}

#minigame.b3-minigame-locked
    > *:not(.b3-game-lock) {
    pointer-events: none;
    user-select: none;
    filter: blur(2px);
    opacity: .32;
}

.b3-game-lock {
    position: relative;
    z-index: 20;
    max-width: 650px;
    margin: 0 auto 26px;
    padding: 26px;
    text-align: center;
    border: 1px solid rgba(174,84,255,.45);
    border-radius: 20px;
    background: rgba(19,13,27,.96);
    box-shadow:
        0 24px 70px rgba(0,0,0,.35);
}

.b3-game-lock[hidden] {
    display: none !important;
}

.b3-lock-icon {
    color: #c56cff;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .14em;
}

.b3-game-lock h3 {
    margin: 8px 0;
}

.b3-game-lock p {
    color: #c6bace;
}

.b3-lock-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.b3-lock-actions button,
.b3-lock-actions a {
    margin-top: 6px;
}