:root {
    --bgA: #070816;
    --bgB: #1a0b3a;
    --neon1: #7c3aed;
    --neon2: #22d3ee;
    --danger: #ff3d6e;
    --text: #e9ecff;
    --muted: #a8b0d6;
    --stroke: rgba(255,255,255,.12);
    --glow: 0 0 22px rgba(124,58,237,.35), 0 0 42px rgba(34,211,238,.18);
}

body {
    min-height: 100vh;
    background: #000;
    color: var(--text);
    overflow-x: hidden;
}

.arena {
    min-height: 100vh;
    position: relative;
    overflow: auto;
    background: radial-gradient(900px 520px at 20% 20%, rgba(124,58,237,.20), transparent 60%), radial-gradient(900px 520px at 80% 25%, rgba(34,211,238,.18), transparent 60%), radial-gradient(1000px 680px at 50% 120%, rgba(255,61,110,.10), transparent 55%), linear-gradient(135deg, var(--bgA), var(--bgB));
}

/* --- TradingView background layer --- */
.tv-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .66; /* tweak for visibility */
    filter: saturate(1.1) contrast(1.05);
    pointer-events: none; /* allow clicks through to form */
}
/* Dark overlay to blend the widget into theme */
.tv-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(900px 520px at 20% 20%, rgba(124,58,237,.22), transparent 60%), radial-gradient(900px 520px at 80% 25%, rgba(34,211,238,.18), transparent 60%), linear-gradient(135deg, rgba(7,8,22,.65), rgba(26,11,58,.55));
    mix-blend-mode: normal;
    pointer-events: none;
}

/* Side light panels (game vibe) */
.side {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(420px, 36vw);
    opacity: .85;
    pointer-events: none;
    z-index: 2;
}

    .side.left {
        left: -60px;
        background: linear-gradient(90deg, rgba(124,58,237,.22), transparent 75%);
        clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
    }

    .side.right {
        right: -60px;
        background: linear-gradient(270deg, rgba(34,211,238,.18), transparent 75%);
        clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
    }

/* Floating crypto coins (decor) */
.crypto-floating {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.coin {
    position: absolute;
    font-size: 2rem;
    opacity: .85;
    animation: floatCoin 18s infinite linear;
    filter: drop-shadow(0 12px 22px rgba(0,0,0,.85));
}

.coin-open {
    left: 10%;
    color: #12c812;
    top: 85%;
    font-size: 3.1rem;
    animation-delay: 0s;
}

.coin-close {
    left: 78%;
    color: #c84112;
    top: 92%;
    font-size: 3rem;
    animation-delay: 3s;
}

.coin-profit {
    left: 78%;
    color: #12c812;
    top: 105%;
    font-size: 2.4rem;
    animation-delay: 6s;
}

.coin-usd {
    left: 88%;
    top: 110%;
    font-size: 2.0rem;
    animation-delay: 9s;
}

.coin-xrp {
    left: 24%;
    top: 112%;
    font-size: 2.2rem;
    animation-delay: 12s;
}

@keyframes floatCoin {
    0% {
        transform: translateY(0) scale(1);
        opacity: .08;
    }

    50% {
        opacity: .16;
    }

    100% {
        transform: translateY(-150vh) scale(1.18);
        opacity: .05;
    }
}

/* Card */
.login-card {
    width: min(480px, 92vw);
    background: rgba(11,15,31,.78);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06) inset, var(--glow);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 5;
    overflow: hidden;
}

    .login-card .topbar {
        height: 6px;
        background: linear-gradient(90deg, var(--neon1), var(--danger), var(--neon2));
        opacity: .95;
    }

.arena-modal {
    background: rgba(11,15,31,.78);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06) inset, var(--glow);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 5;
    overflow: hidden;
}

    .arena-modal .topbar {
        height: 6px;
        background: linear-gradient(90deg, var(--neon1), var(--danger), var(--neon2));
        opacity: .95;
    }

.game-card {
    background: rgba(11,15,31,.78);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06) inset, var(--glow);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.cardtopbar {
    height: 6px;
    background: linear-gradient(90deg, var(--neon1), var(--danger), var(--neon2));
    opacity: .95;
}

.brand {
    letter-spacing: .18em;
    font-size: .78rem;
    color: rgba(233,236,255,.88);
    text-transform: uppercase;
}

.headline {
    font-weight: 900;
    font-size: 1.35rem;
    margin: 2px 0 0;
}

.sub {
    color: var(--muted);
    font-size: .92rem;
    margin-top: 4px;
}

.chip {
    font-size: .98rem;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: #111428b3;
    color: #d2d7ff;
}

.vs-wrap {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    margin: 18px auto 14px;
    position: relative;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.10), transparent 55%);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 0 0 10px rgba(124,58,237,.08), 0 0 0 20px rgba(34,211,238,.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .vs-wrap::before {
        content: "";
        position: absolute;
        inset: -2px;
        background: conic-gradient(from 180deg, rgba(124,58,237,.0), rgba(124,58,237,.45), rgba(34,211,238,.45), rgba(255,61,110,.35), rgba(124,58,237,.0) );
        opacity: .55;
        filter: blur(10px);
    }

.vs {
    position: relative;
    font-weight: 1000;
    font-size: 3.4rem;
    color: #f3f6ff;
    text-shadow: 0 10px 26px rgba(0,0,0,.55);
}

    .vs small {
        display: block;
        font-weight: 800;
        font-size: .78rem;
        margin-top: -6px;
        letter-spacing: .22em;
        text-transform: uppercase;
        color: rgba(233,236,255,.85);
    }

.field {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(5,8,20,.55);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: .2s ease;
}

    .field:focus-within {
        border-color: rgba(34,211,238,.45);
        box-shadow: 0 0 0 4px rgba(34,211,238,.10);
    }

.icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
}

.field input {
    background: transparent;
    border: 0;
    outline: 0;
    width: 100%;
    color: #fff;
}

    .field input::placeholder {
        color: rgba(168,176,214,.85);
    }

.btn-queue {
    border-radius: 14px;
    background: linear-gradient(to right, var(--neon1), var(--danger), var(--neon2));
    padding: .85rem;
    width: 100%;
    border: none;
    color: #060816;
    font-weight: 600;
    letter-spacing: .10em;
    text-transform: uppercase;
    box-shadow: 0 14px 34px rgba(0,0,0,.40), 0 0 18px rgba(124,58,237,0.35);
}

.btn-queue-50 {
    border-radius: 14px;
    background: linear-gradient(to right, var(--neon1), var(--danger), var(--neon2));
    padding: .85rem;
    width: 48%;
    border: none;
    color: #060816;
    font-weight: 600;
    letter-spacing: .10em;
    text-transform: uppercase;
    box-shadow: 0 14px 34px rgba(0,0,0,.40), 0 0 18px rgba(124,58,237,0.35);
}

.btn-mute {
    border-radius: 14px;
    background: linear-gradient(to right, #2a7fff, #64b6ff, #22d3ee);
    padding: .9rem;
    width: 100%;
    border: none;
    color: #060816;
    font-weight: 600;
    letter-spacing: .10em;
    text-transform: uppercase;
    box-shadow: 0 14px 34px rgba(0,0,0,.40), 0 0 18px rgba(42,127,255,0.30);
}

.btn-mute-50 {
    border-radius: 14px;
    background: linear-gradient(to right, #2a7fff, #64b6ff, #22d3ee);
    padding: .9rem;
    width: 48%;
    border: none;
    color: #060816;
    font-weight: 600;
    letter-spacing: .10em;
    text-transform: uppercase;
    box-shadow: 0 14px 34px rgba(0,0,0,.40), 0 0 18px rgba(42,127,255,0.30);
}

.meta a {
    color: rgba(233,236,255,.88);
    text-decoration: none;
    font-size: .82rem;
}

    .meta a:hover {
        text-decoration: underline;
    }

.footer a {
    font-size: .82rem;
    color: #acb4f4;
    text-decoration: none;
}

    .footer a:hover {
        text-decoration: underline;
    }

/* VS Badge */
.vs-badge {
    width: 168px;
    height: 168px;
    margin: 20px auto;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(124,58,237,.4), rgba(11,15,31,.9));
    border: 2px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 40px rgba(124,58,237,.3);
}

    .vs-badge::before {
        content: '';
        position: absolute;
        inset: -10px;
        border-radius: 50%;
        border: 2px solid transparent;
        border-top-color: var(--neon2);
        border-bottom-color: var(--danger);
        animation: spin 10s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* IMPORTANT: make TradingView widget fill container */
.tradingview-widget-container,
.tradingview-widget-container__widget {
    height: 100%;
    width: 100%;
}
