@font-face {
    font-family: 'Audiowide';
    src: url('/wc/fonts/Audiowide.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #030712;
    --bg2: #080f1e;
    --clr-card: rgba(15, 23, 42, 0.45);
    --clr-card2: rgba(30, 41, 59, 0.65);
    --clr-card-solid: #090e1a;
    --clr-border: rgba(255, 255, 255, 0.08);
    --clr-border2: rgba(255, 255, 255, 0.15);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted2: #475569;

    --green: #10b981;
    --c1: #10b981;
    --clr-green: #10b981;
    --green-bright: #34d399;
    --clr-green-bright: #34d399;
    --green-deep: #047857;
    --green-dim: rgba(16, 185, 129, 0.12);
    --red: #f43f5e;
    --clr-red: #f43f5e;
    --gold: #f59e0b;
    --clr-gold: #f59e0b;
    --blue: #06b6d4;
    --blue-deep: #083344;
    --grad: linear-gradient(90deg, #0284c7 0%, #06b6d4 26%, #f43f5e 55%, #10b981 80%, #34d399 100%);
    --green-btn: linear-gradient(180deg, #34d399, #10b981);
    --font-display: 'Righteous', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
}
* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: contain;
    -webkit-text-size-adjust: 100%;
    direction: ltr;
    text-align: left;
}
body {
    overflow-x: hidden;
    overflow-y: auto;
}
#app {
    min-height: 100vh;
    position: relative;
}

.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(120% 75% at 50% -20%, rgba(16, 185, 129, 0.15), transparent 50%),
        radial-gradient(100% 80% at 0% 100%, rgba(6, 182, 212, 0.08), transparent 50%),
        radial-gradient(100% 80% at 100% 100%, rgba(244, 63, 94, 0.05), transparent 50%), var(--bg);
}

.glass {
    background: var(--clr-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--clr-border);
}
.glass-strong {
    background: var(--clr-card2);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--clr-border2);
}

.display {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}
.mono {
    font-family: var(--font-mono);
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 60px;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}
.sidebar {
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    background: rgba(3, 7, 18, 0.94);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: 1px solid var(--clr-border);
}

.main-content {
    padding-top: 60px;
    padding-bottom: 90px;
    min-height: 100vh;
}
@media (min-width: 1024px) {
    .main-content {
        margin-left: 260px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(3, 7, 18, 0.94);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid var(--clr-border);
    padding: 8px 12px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 12px;
    color: var(--muted2);
    transition: all 0.25s;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}
.nav-btn i {
    font-size: 1.15rem;
    transition:
        transform 0.25s,
        color 0.25s;
}
.nav-btn span {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-body);
}
.nav-btn.active {
    color: var(--green-bright);
}
.nav-btn.active i {
    transform: translateY(-3px) scale(1.15);
    filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.5));
}

.side-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    background: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.side-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}
.side-btn.active {
    background: var(--green-dim);
    color: var(--green-bright);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.05);
}
.side-btn.active i {
    color: var(--green-bright);
}

.flag-img-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.flag-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.match-card {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.match-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
}
.match-card-header {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}
.match-card-body {
    padding: 20px 18px;
    position: relative;
    z-index: 1;
}
.match-teams {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
.team-side {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.team-name {
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    max-width: 100px;
    line-height: 1.25;
    color: #f1f5f9;
    transition: color 0.2s;
    overflow-wrap: break-word;
}
.match-card:hover .team-name {
    color: #fff;
}
.vs-badge {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted2);
}

.finished-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: radial-gradient(ellipse at 50% 40%, rgba(10, 16, 28, 0.95), rgba(4, 7, 13, 0.98));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.finished-teams {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}
.finished-score {
    font-family: var(--font-display);
    font-size: 54px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}
.finished-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green-bright);
    margin-top: 8px;
    font-family: var(--font-body);
}

.bet-market {
    margin-bottom: 14px;
}
.market-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bet-row {
    display: flex;
    gap: 8px;
}
.bet-btn {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 6px;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}
.bet-btn:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.04);
}
.bet-btn:active {
    transform: scale(0.96);
}
.bet-btn.selected {
    border-color: var(--green-bright);
    background: rgba(16, 185, 129, 0.08);
    box-shadow:
        0 0 0 1px var(--green-bright),
        0 0 20px rgba(16, 185, 129, 0.15) inset;
}
.bet-btn.locked {
    pointer-events: none;
}
.bet-btn.voted {
    cursor: default;
}
.bet-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
    z-index: 0;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.bet-btn.selected .bet-bar {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.35), rgba(16, 185, 129, 0.1));
}
.bet-label {
    font-size: 11px;
    font-weight: 800;
    color: #e2e8f0;
    z-index: 1;
    position: relative;
    text-align: center;
    line-height: 1.15;
    transition: color 0.2s;
}
.bet-btn.selected .bet-label {
    color: #fff;
}
.bet-odd {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    z-index: 1;
    position: relative;
    font-family: var(--font-mono);
}
.bet-btn.selected .bet-odd {
    color: var(--green-bright);
}
.bet-tag {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 8px;
    font-weight: 800;
    color: var(--muted2);
    z-index: 1;
    font-family: var(--font-mono);
}

.no-scroll::-webkit-scrollbar {
    display: none;
}
.no-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.group-pill {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--clr-border);
    background: rgba(255, 255, 255, 0.03);
    font-weight: 800;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-family: var(--font-body);
}
.group-pill:hover {
    border-color: rgba(16, 185, 129, 0.4);
    color: #fff;
}
.group-pill.active {
    background: var(--green-btn);
    color: #030712;
    border-color: transparent;
}

.view-tab {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    outline: none;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    background: none;
    cursor: pointer;
    transition: all 0.2s;
}
.view-tab.active {
    background: rgba(16, 185, 129, 0.08);
    color: var(--green-bright);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.lb-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--clr-border);
    transition: background 0.15s;
}
.lb-row:last-child {
    border-bottom: none;
}
.lb-rank {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--clr-border);
    color: var(--muted);
    flex-shrink: 0;
}

.lb-hero {
    background:
        radial-gradient(ellipse 120% 160% at 0% -40%, rgba(245, 158, 11, 0.16), transparent 70%), rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}
.lb-hero-rank {
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1;
    color: var(--clr-gold);
    min-width: 58px;
    text-align: center;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}
.podium {
    display: grid;
    grid-template-columns: 1fr 1.12fr 1fr;
    align-items: end;
    gap: 8px;
    margin-bottom: 22px;
}
.podium-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    width: 100%;
}
.podium-crown {
    font-size: 20px;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}
.podium-av {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
}
.podium-name {
    font-size: 12px;
    font-weight: 800;
    color: #f1f5f9;
    margin-top: 8px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 2px;
}
.podium-pts {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 800;
    color: var(--clr-gold);
    margin-top: 2px;
}
.podium-ped {
    width: 100%;
    margin-top: 10px;
    border-radius: 14px 14px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    font-family: var(--font-display);
    font-size: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
}
.ped-1 {
    height: 84px;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.02));
    color: #fde68a;
}
.ped-2 {
    height: 62px;
    background: linear-gradient(180deg, rgba(203, 213, 225, 0.18), rgba(203, 213, 225, 0.02));
    color: #e2e8f0;
}
.ped-3 {
    height: 48px;
    background: linear-gradient(180deg, rgba(180, 83, 9, 0.22), rgba(180, 83, 9, 0.02));
    color: #fbbf24;
}
.rank-move {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
}

.pred-card {
    background: var(--clr-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--clr-border);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.pred-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--clr-border);
}

.ledger-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--clr-border);
    transition: background 0.15s;
}
.ledger-row:last-child {
    border-bottom: none;
}
.ledger-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}

.modal-bg {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-box {
    background: #080e1b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.7);
}

.toast-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    background: #0c1424;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    padding: 6px 0 10px;
}

.wc-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s;
}
.wc-input:focus {
    border-color: var(--green-bright);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    background: rgba(255, 255, 255, 0.06);
}
select.wc-input {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 11px;
    padding-right: 38px;
}
.wc-input option,
select option {
    background-color: #0e1626;
    color: #f1f5f9;
    font-weight: 600;
}
.wc-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

.btn-green {
    background: var(--green-btn);
    border: none;
    border-radius: 14px;
    padding: 15px 24px;
    color: #030712;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s;
    outline: none;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
}
.btn-green:hover {
    filter: brightness(1.08);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
}
.btn-green:active {
    transform: scale(0.97);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 15px 24px;
    color: #f1f5f9;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-red {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: 14px;
    padding: 15px 24px;
    color: #fda4af;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}
.btn-red:hover {
    background: rgba(244, 63, 94, 0.18);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.badge-green {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--green-bright);
}
.badge-yellow {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--gold);
}
.badge-red {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: #fda4af;
}
.badge-blue {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

.pts-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.22);
    padding: 6px 12px;
    border-radius: 10px;
}

.combo-btn {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}
.combo-btn:hover {
    border-color: rgba(16, 185, 129, 0.4);
}
.combo-btn.selected {
    border-color: var(--green-bright);
    background: rgba(16, 185, 129, 0.08);
    box-shadow:
        0 0 0 1px var(--green-bright),
        0 0 15px rgba(16, 185, 129, 0.15) inset;
}
.combo-btn.locked {
    pointer-events: none;
}
.combo-btn.voted {
    cursor: default;
}

.auth-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    padding: 24px;
    position: relative;
    z-index: 10;
}
.auth-card {
    width: 100%;
    max-width: 400px;
    margin: auto;
    background: rgba(9, 15, 28, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 44px 36px;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}
.auth-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    opacity: 0.6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    background: linear-gradient(90deg, #4a0505 0%, #801818 15%, #0f3c22 45%, #1c4a5a 68%, #725f20 84%, #2b0e2d 100%);
}

.standings-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--clr-border);
    font-size: 13px;
}
.standings-row:last-child {
    border-bottom: none;
}
.standings-row.promoted {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.06), transparent);
    box-shadow: inset 4px 0 0 var(--green-bright);
}

.st-table {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 14px;
}
.st-head,
.st-row {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    gap: 8px;
}
.st-head {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--clr-border);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.st-row {
    border-bottom: 1px solid var(--clr-border);
    transition: background 0.2s;
}
.st-row:last-child {
    border-bottom: none;
}
.st-row.q {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), transparent 70%);
    box-shadow: inset 3px 0 0 var(--green-bright);
}
.st-row.q3 {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.09), transparent 70%);
    box-shadow: inset 3px 0 0 var(--gold);
}
.st-pos {
    width: 15px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted2);
    flex-shrink: 0;
    font-family: var(--font-mono);
}
.st-row.q .st-pos {
    color: var(--green-bright);
}
.st-row.q3 .st-pos {
    color: var(--gold);
}
.st-team {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.st-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}
.st-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.st-res {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    font-family: var(--font-body);
}
.st-res.w {
    background: #34d399;
    color: #053527;
}
.st-res.d {
    background: #64748b;
    color: #f8fafc;
}
.st-res.l {
    background: #f43f5e;
    color: #fff1f2;
}
.st-res.none {
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.st-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-nums {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
}
.st-c {
    width: 25px;
    text-align: center;
    color: var(--muted);
}
.st-c.w {
    color: #6ee7b7;
}
.st-c.l {
    color: #fca5a5;
}
.st-ga {
    width: 40px;
    text-align: center;
    color: var(--muted);
}
.st-gd {
    width: 30px;
    text-align: center;
    color: #e2e8f0;
}
.st-pts {
    width: 32px;
    text-align: center;
    color: var(--green-bright);
    font-weight: 800;
}
.st-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted2);
    border-top: 1px solid var(--clr-border);
    background: rgba(255, 255, 255, 0.015);
}
.st-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--green-bright);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}
.st-legend-dot.y {
    background: var(--gold);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    margin-left: 8px;
}
@media (max-width: 480px) {
    .st-head,
    .st-row {
        padding: 10px 9px;
        gap: 6px;
    }
    .st-team {
        gap: 6px;
    }
    .st-c {
        width: 21px;
    }
    .st-ga {
        width: 34px;
    }
    .st-gd {
        width: 25px;
    }
    .st-pts {
        width: 27px;
    }
    .st-flag {
        width: 22px;
        height: 22px;
    }
    .st-res {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }
    .st-name {
        font-size: 12px;
    }
    .st-nums {
        font-size: 11px;
    }
}

.admin-match-card {
    background: var(--clr-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.groups-bar-wrap {
    overflow-x: auto;
    padding-bottom: 8px;
}
.groups-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: max-content;
}

.networth-hero {
    background:
        radial-gradient(ellipse 100% 140% at 50% -30%, rgba(16, 185, 129, 0.18), transparent 70%),
        rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.pred-card-pending {
    border-left: 4px solid var(--blue);
}
.pred-card-won {
    border-left: 4px solid var(--green-bright);
}
.pred-card-lost {
    border-left: 4px solid var(--red);
}

.wc-logo {
    font-family: 'Audiowide', sans-serif;
    letter-spacing: 0.02em;
    font-size: 24px;
    color: #fff;
}
.wc-logo .accent {
    color: var(--green-bright);
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
}

@keyframes tabIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.tab-anim {
    animation: tabIn 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

#ptr {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 60;
    height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
#ptr i {
    font-size: 26px;
    color: var(--green-bright);
    filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.6));
}
#ptr.spin i {
    animation: spin 0.7s linear infinite;
}

@media (max-width: 640px) {
    .modal-bg {
        align-items: flex-end;
        padding: 0;
    }
    .modal-box {
        max-width: none;
        width: 100%;
        border-radius: 28px 28px 0 0;
        max-height: 92vh;
        padding-bottom: calc(28px + env(safe-area-inset-bottom));
        animation: sheetUp 0.34s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .modal-box::before {
        content: '';
        display: block;
        width: 44px;
        height: 5px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.15);
        margin: -12px auto 20px;
    }
}
@keyframes sheetUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: none;
    }
}

.ab-pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}
.ab-page {
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--clr-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.ab-page:hover {
    border-color: rgba(16, 185, 129, 0.4);
    color: #fff;
}
.ab-page.active {
    background: var(--green-bright);
    border-color: transparent;
    color: #030712;
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.25);
}

.ledger-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
}
.ledger-step {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 11px;
    border: 1px solid var(--clr-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.ledger-step:hover:not(:disabled) {
    border-color: rgba(16, 185, 129, 0.4);
    color: #fff;
}
.ledger-step:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.ledger-day-btn {
    width: 100%;
    height: 38px;
    border-radius: 11px;
    border: 1px solid var(--clr-border);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.ledger-day-btn:hover {
    border-color: rgba(16, 185, 129, 0.4);
}
.ledger-day-caret {
    transition: transform 0.2s;
}
.ledger-day-caret.open {
    transform: rotate(180deg);
}
.ledger-jump-menu {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--clr-border2);
    background: var(--clr-card-solid);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.ledger-jump-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.ledger-jump-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.ledger-jump-item.active {
    background: rgba(52, 211, 153, 0.12);
    color: var(--green-bright);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.spinning {
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

.main-content h1 {
    font-family: var(--font-display) !important;
    color: #fff;
    letter-spacing: 0.02em;
}
@keyframes livePulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.75);
    }
}
.badge-green .fa-circle,
.badge-red .fa-circle {
    animation: livePulse 1.4s ease-in-out infinite;
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type='number'] {
    -moz-appearance: textfield;
}
#boot-splash {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: var(--bg);
    transition: opacity 0.5s ease;
}
#boot-splash.hide {
    opacity: 0;
    pointer-events: none;
}

#app {
    position: relative;
    z-index: 1;
}

#toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    max-width: 360px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

#boot-splash .boot-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
#boot-splash .boot-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
#boot-splash .wc-logo {
    font-size: 26px;
}
#boot-splash .wc-logo .accent {
    margin-left: 1px;
}
#boot-splash .boot-spinner {
    color: var(--green-bright);
    font-size: 22px;
}

.rank-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-body);
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    padding: 3px 7px;
    white-space: nowrap;
}
.rank-chip-label {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.lb-host {
    margin-bottom: 16px;
}

.lb-carousel {
    position: relative;
}
.lb-stage {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
}
.arena-nav {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    font-size: 12px;
    cursor: pointer;
    outline: none;
    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.arena-nav:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--green-bright);
    color: var(--green-bright);
}
.arena-nav:active {
    transform: scale(0.9);
}
@keyframes lb-in-r {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes lb-in-l {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.lb-wrap.anim-r {
    animation: lb-in-r 0.3s cubic-bezier(0.22, 0.8, 0.28, 1);
}
.lb-wrap.anim-l {
    animation: lb-in-l 0.3s cubic-bezier(0.22, 0.8, 0.28, 1);
}
.lb-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 11px;
}
.lb-dot-nav {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    outline: none;
    background: rgba(255, 255, 255, 0.22);
    border: none;
    transition: all 0.25s;
}
.lb-dot-nav:hover {
    background: rgba(255, 255, 255, 0.45);
}
.lb-dot-nav.active {
    width: 20px;
    border-radius: 4px;
    background: var(--green-bright);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.lb-wrap {
    position: relative;
    width: 100%;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 22px;
    padding: 14px 16px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(3, 7, 18, 0.34), rgba(3, 7, 18, 0.62)),
        linear-gradient(90deg, #4a0505 0%, #801818 15%, #0f3c22 45%, #1c4a5a 68%, #725f20 84%, #2b0e2d 100%);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}
.lb-wrap::before {
    content: '';
    position: absolute;
    inset: -40%;
    z-index: -1;
    background:
        radial-gradient(38% 60% at 6% 50%, rgba(250, 61, 61, 0.4), transparent 70%),
        radial-gradient(40% 70% at 52% 118%, rgba(19, 217, 19, 0.34), transparent 70%),
        radial-gradient(40% 70% at 96% 50%, rgba(168, 85, 247, 0.4), transparent 70%);
    filter: blur(14px);
    opacity: 0.9;
    pointer-events: none;
}
.lb-wrap:hover {
    transform: translateY(-1px);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.lb-wrap:active {
    transform: scale(0.992);
}

.lb-empty {
    cursor: default;
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
    padding: 22px 16px;
}

.lb-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.lb-grp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 5px 11px;
}
.lb-grp i {
    font-size: 9px;
    color: var(--green-bright);
}
.lb-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 4px 10px;
}

.lb-board {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.lb-team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.lb-l {
    justify-content: flex-end;
}
.lb-r {
    justify-content: flex-start;
}
.lb-tla {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}
.lb-flag {
    flex-shrink: 0;
    width: 34px;
    height: 25px;
    border-radius: 5px;
    overflow: hidden;
}
.lb-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lb-vs {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
    position: relative;
    top: 1px;
}

.lb-score {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 6px 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, #3df0e0, #20d9c8);
    box-shadow:
        0 6px 18px rgba(45, 225, 210, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.lb-score span {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 32px;
    line-height: 1;
    color: #07312e;
    min-width: 24px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.lb-divider {
    width: 2px;
    height: 26px;
    border-radius: 2px;
    background: rgba(7, 49, 46, 0.3);
}
.lb-score-ft {
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.lb-score-ft span {
    color: #1e293b;
}
.lb-score-ft .lb-divider {
    background: rgba(30, 41, 59, 0.3);
}

.lb-board-big {
    gap: 16px;
}
.lb-board-big .lb-tla {
    font-size: 26px;
}
.lb-board-big .lb-flag {
    width: 40px;
    height: 29px;
    border-radius: 6px;
}

.lb-wrap.lb-live {
    justify-content: flex-start;
}
.lb-live-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.lb-live .lb-board-big {
    gap: 16px;
}
.lb-live .lb-board-big .lb-tla {
    font-size: 27px;
}
.lb-live .lb-board-big .lb-flag {
    width: 42px;
    height: 30px;
    border-radius: 6px;
}
.lb-live .lb-score {
    gap: 15px;
    padding: 7px 20px;
    border-radius: 14px;
}
.lb-live .lb-score span {
    font-size: 35px;
    min-width: 26px;
}
.lb-live .lb-divider {
    height: 29px;
}
.lb-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fecdd3;
    background: rgba(244, 63, 94, 0.16);
    border-color: rgba(244, 63, 94, 0.35);
}
.lb-badge-live .lb-dot {
    width: 7px;
    height: 7px;
}
.lb-badge-ft {
    color: rgba(255, 255, 255, 0.85);
}

.lb-status {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 11px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.lb-ft {
    color: rgba(255, 255, 255, 0.78);
}
.lb-live-ind {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fda4af;
}
.lb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f43f5e;
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.6);
    animation: lb-pulse 1.4s infinite;
}
@keyframes lb-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.55);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(244, 63, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
    }
}

.lb-timer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}
.lb-tu {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.lb-tu span {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.lb-tu label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 480px) {
    .lb-stage {
        border-radius: 18px;
    }
    .lb-wrap {
        padding: 12px 12px;
        border-radius: 18px;
        min-height: 150px;
    }
    .lb-board {
        gap: 9px;
    }
    .lb-team {
        gap: 7px;
    }
    .lb-tla {
        font-size: 17px;
        letter-spacing: 0.02em;
    }
    .lb-flag {
        width: 28px;
        height: 20px;
        border-radius: 4px;
    }
    .lb-vs {
        font-size: 15px;
    }

    .lb-board-big {
        gap: 10px;
    }
    .lb-board-big .lb-tla {
        font-size: 19px;
    }
    .lb-board-big .lb-flag {
        width: 30px;
        height: 22px;
    }

    .lb-score {
        gap: 9px;
        padding: 5px 12px;
        border-radius: 11px;
    }
    .lb-score span {
        font-size: 24px;
        min-width: 18px;
    }
    .lb-divider {
        height: 20px;
    }

    .lb-live .lb-board-big {
        gap: 10px;
    }
    .lb-live .lb-board-big .lb-tla {
        font-size: 21px;
    }
    .lb-live .lb-board-big .lb-flag {
        width: 32px;
        height: 23px;
    }
    .lb-live .lb-score {
        gap: 10px;
        padding: 6px 14px;
        border-radius: 12px;
    }
    .lb-live .lb-score span {
        font-size: 28px;
        min-width: 20px;
    }
    .lb-live .lb-divider {
        height: 23px;
    }

    .lb-timer {
        gap: 6px;
        margin-top: 12px;
    }
    .lb-tu {
        padding: 6px 3px;
        border-radius: 10px;
    }
    .lb-tu span {
        font-size: 16px;
    }
    .lb-status {
        margin-top: 9px;
    }
}

.profile-chip {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--green-bright);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.profile-chip:hover {
    border-color: rgba(16, 185, 129, 0.4);
}
.ko-round-pill {
    min-width: 52px;
    height: 38px;
    padding: 0 14px;
    border-radius: 11px;
    border: 1px solid var(--clr-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.ko-round-pill:hover {
    border-color: rgba(16, 185, 129, 0.4);
    color: #fff;
}
.ko-round-pill.active {
    background: var(--green-bright);
    border-color: transparent;
    color: #030712;
}
.ko-bet {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--clr-border);
}
.ko-score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 8px;
}
.ko-num {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ko-num button {
    width: 32px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--clr-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}
.ko-num button:hover {
    border-color: rgba(16, 185, 129, 0.4);
    color: #fff;
}
.ko-num input {
    width: 44px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--clr-border2);
    background: rgba(255, 255, 255, 0.04);
    color: #f1f5f9;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}
.ko-num input::-webkit-outer-spin-button,
.ko-num input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ko-dash {
    color: var(--muted2);
    font-size: 18px;
    font-weight: 800;
}
.ko-first-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}
.ko-first-btn {
    padding: 11px 6px;
    border-radius: 12px;
    border: 1px solid var(--clr-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ko-first-btn:hover {
    border-color: rgba(16, 185, 129, 0.4);
    color: #fff;
}
.ko-first-btn.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--green-bright);
    color: var(--green-bright);
}
.ko-bet.ko-locked {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.ko-locked-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}
.ko-ext {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1px 7px;
}
.team-name.ko-elim {
    color: var(--muted2);
    text-decoration: line-through;
    text-decoration-color: rgba(148, 163, 184, 0.7);
    text-decoration-thickness: 2px;
}
.ko-firstinfo {
    margin: 14px auto 0;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--clr-border);
    border-radius: 99px;
    padding: 6px 14px;
}
.ko-firstinfo i {
    color: var(--green-bright);
}
.ko-firstinfo strong {
    color: #f1f5f9;
}
.ko-foot-note {
    margin-top: 12px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--muted2);
}
.ko-myresult {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--clr-border);
}
.ko-myresult.won {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.02));
}
.ko-myresult.lost {
    border-color: rgba(244, 63, 94, 0.25);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(244, 63, 94, 0.02));
}
.ko-myresult-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}
.ko-myresult-pick {
    font-size: 13px;
    font-weight: 800;
    color: #f1f5f9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ko-myresult-pts {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    gap: 3px;
}
.ko-myresult.won .ko-myresult-pts {
    color: var(--green-bright);
}
.ko-myresult.lost .ko-myresult-pts {
    color: #ff8fa3;
}
.ko-myresult-pts span {
    font-size: 10px;
    font-weight: 800;
    opacity: 0.7;
}
.ko-help-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--clr-border);
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}
.ko-help-row:last-child {
    border-bottom: none;
}
.ko-help-row b {
    font-family: var(--font-mono);
    font-size: 13px;
}
.lb-toggle {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 18px;
}
.lb-toggle-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: none;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}
.lb-toggle-btn.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--green-bright);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ko-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ff8fa3;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.28);
    border-radius: 8px;
    padding: 3px 8px;
}
.ko-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff4d6d;
    animation: koLivePulse 1.2s ease-in-out infinite;
}
@keyframes koLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7); }
}
.ko-banner-card {
    position: relative;
    border-radius: 20px;
    padding: 16px 18px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(3, 7, 18, 0.42), rgba(3, 7, 18, 0.68)),
        linear-gradient(90deg, #4a0505 0%, #801818 15%, #0f3c22 45%, #1c4a5a 68%, #725f20 84%, #2b0e2d 100%);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ko-banner-flag {
    width: 48px;
    height: 36px;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
}
.ko-banner-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ko-pred-rows {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--clr-border);
    border-radius: 14px;
    overflow: hidden;
}
.ko-pred-team {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}
.ko-pred-team + .ko-pred-team {
    border-top: 1px solid var(--clr-border);
}
.ko-pred-flag {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
}
.ko-pred-flag img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.ko-pred-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 800;
    color: #f1f5f9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ko-pred-team .ko-num {
    margin-left: auto;
}
.ko-cflag {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    background: #0b1220;
}
.ko-cflag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ko-cflag-split img {
    position: absolute;
    inset: 0;
}
.ko-cflag-split .ko-cflag-a {
    clip-path: polygon(0 0, 100% 0, 0 100%);
}
.ko-cflag-split .ko-cflag-b {
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.ko-cflag-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-50%) rotate(-45deg);
    transform-origin: center;
}
.ko-cflag-lg {
    width: 48px;
    height: 48px;
}
.ko-cflag-md {
    width: 38px;
    height: 38px;
}
.ko-stadium-name {
    font-size: 11px;
    font-weight: 800;
    color: #cbd5e1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ko-host-tag {
    width: 16px;
    height: 6px;
    border-radius: 99px;
    flex-shrink: 0;
}
.ko-host-usa {
    background: #378add;
    box-shadow: 0 0 8px rgba(55, 138, 221, 0.55);
}
.ko-host-mexico {
    background: var(--green-bright);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.55);
}
.ko-host-canada {
    background: #f43f5e;
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.55);
}
.ko-tbd-note {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.05);
    border: 1px dashed rgba(245, 158, 11, 0.25);
    color: var(--clr-gold);
    font-size: 12px;
    font-weight: 700;
}
.ko-lock-btn {
    width: 100%;
    margin-top: 16px;
    height: 44px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--green-bright);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.ko-lock-btn:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: var(--green-bright);
}
.ko-lock-btn:disabled {
    opacity: 0.7;
    cursor: default;
}
.ko-change-btn {
    width: 100%;
    margin-top: 12px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--clr-border);
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s;
}
.ko-change-btn:hover {
    border-color: rgba(244, 63, 94, 0.4);
    color: #ff8fa3;
    background: rgba(244, 63, 94, 0.06);
}
.ff-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: var(--clr-gold);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.ff-btn:hover {
    background: rgba(245, 158, 11, 0.16);
    transform: translateY(-1px);
}
