:root {
    --aew-bg: #0b0b0c;
    --aew-card: #121215;
    --aew-soft: #1a1b20;
    --aew-line: #2a2b31;
    --aew-gold: #f5c04f;
    --aew-gold-2: #cfa53f;
    --aew-red: #e34444;
    --aew-white: #f5f6fa;
    --aew-blue: #49a0ff;
    --aew-green: #38c172;
}

body {
    background: radial-gradient(1200px 600px at 10% 0%, #111 0%, var(--aew-bg) 45%, #09090a 100%);
    color: var(--aew-white);
}

.aew-logo {
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(245, 192, 79, .35);
}

.aew-tab {
    background: var(--aew-soft);
    border: 1px solid var(--aew-line);
    opacity: .85;
    padding: .5rem .75rem;
    border-radius: .5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
}

.aew-tab:hover {
    filter: brightness(1.1);
    opacity: 1;
}

.aew-tab-active {
    background: linear-gradient(180deg, #1c1d22 0%, #121215 100%);
    border-color: var(--aew-gold);
    box-shadow: 0 0 0 1px rgba(245, 192, 79, .25), 0 6px 18px rgba(0, 0, 0, .4);
}

.aew-card {
    background: linear-gradient(180deg, #15161b 0%, #101014 100%);
    border: 1px solid var(--aew-line);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

.btn {
    padding: .5rem .75rem;
    border-radius: .5rem;
    font-weight: 700;
    font-size: .9rem;
    background: #202127;
    border: 1px solid var(--aew-line);
}

.btn:hover {
    filter: brightness(1.08);
}

.btn-gold {
    color: #1b1205;
    background: linear-gradient(180deg, var(--aew-gold) 0%, var(--aew-gold-2) 100%);
    border: none;
}

.btn-ghost {
    background: transparent;
    border: 1px dashed var(--aew-line);
}

.title-chip {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--aew-line);
    background: #0f1014;
}

.champ {
    color: var(--aew-gold);
    font-weight: 800;
}

.winner {
    color: var(--aew-green);
    font-weight: 700;
}

.loser {
    color: #bbb;
}

.result-pop {
    animation: pop .35s ease-out;
}

@keyframes pop {
    from {
        transform: scale(.96);
        opacity: .0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.meter {
    height: 8px;
    background: #202127;
    border-radius: 99px;
    overflow: hidden;
    border: 1px solid var(--aew-line)
}

.meter>div {
    height: 100%;
    background: linear-gradient(90deg, var(--aew-red), var(--aew-gold), #67e8f9);
    box-shadow: 0 0 12px rgba(245, 192, 79, .45) inset
}

/* Bracket */
.bracket {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 280px;
    gap: 24px;
}

.br-round {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.br-match {
    position: relative;
    border: 1px solid var(--aew-line);
    background: #101116;
    border-radius: 10px;
    padding: 10px;
}

.br-team {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
}

.br-team.won {
    background: rgba(56, 193, 114, .14);
    border: 1px solid rgba(56, 193, 114, .35)
}

.br-team.lost {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06)
}

.br-winner {
    font-weight: 800;
    color: var(--aew-gold);
}

.br-connector {
    position: absolute;
    right: -24px;
    top: 50%;
    width: 24px;
    height: 2px;
    background: var(--aew-line)
}