:root{--blue:#0b5ed7;--blue-dark:#082f63;--blue-soft:#eaf3ff;--ink:#111827;--muted:#64748b;--white:#fff;--line:#dbe7f6;--danger:#b42318;--ok:#087443}*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink);background:linear-gradient(180deg,#f7fbff 0%,#fff 40%);min-height:100vh}.topbar{background:var(--blue-dark);color:var(--white);display:flex;align-items:center;justify-content:space-between;padding:14px 28px;gap:20px;position:sticky;top:0;z-index:10;box-shadow:0 8px 22px rgba(8,47,99,.16)}.brand{display:flex;align-items:center;gap:14px;color:var(--white);text-decoration:none;font-weight:800}.brand img{height:34px;width:auto}.topbar nav{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.topbar a{color:var(--white);text-decoration:none;font-weight:650}.container{width:min(1120px,92vw);margin:0 auto;padding:42px 0 80px}.hero{display:grid;grid-template-columns:1.3fr .7fr;gap:32px;align-items:center;padding:42px 0}.hero h1{font-size:clamp(2.4rem,6vw,5rem);line-height:.98;margin:0 0 20px;color:var(--blue-dark)}.hero p{font-size:1.15rem;color:#334155;max-width:680px}.hero-card,.auth-card,.card{background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:24px;padding:26px;box-shadow:0 18px 50px rgba(8,47,99,.09)}.hero-card{background:var(--blue-dark);color:#fff}.hero-card ul{margin:0;padding-left:20px;line-height:1.9}.eyebrow{text-transform:uppercase;letter-spacing:.14em;color:var(--blue);font-weight:800;font-size:.78rem}.actions{display:flex;gap:12px;flex-wrap:wrap}.btn,.btn-small{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;background:var(--blue);color:#fff;text-decoration:none;font-weight:800;cursor:pointer;box-shadow:0 10px 22px rgba(11,94,215,.22)}.btn{padding:13px 20px}.btn-small{padding:8px 13px;font-size:.9rem}.btn.ghost{background:#fff;color:var(--blue-dark);border:1px solid var(--line)}button:disabled,input:disabled{opacity:.55;cursor:not-allowed}.auth-card{max-width:460px;margin:30px auto}.form{display:grid;gap:16px}.form label{display:grid;gap:7px;font-weight:700}.form input,.tip-form input{width:100%;border:1px solid var(--line);border-radius:14px;padding:12px 13px;font:inherit;background:#fff}.alert,.notice{border-radius:16px;padding:13px 16px;font-weight:700}.alert{background:#fff1f0;color:var(--danger);border:1px solid #ffd8d5}.notice{background:#ecfdf3;color:var(--ok);border:1px solid #bbf7d0}.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}.page-head h1{margin:0;color:var(--blue-dark);font-size:2.3rem}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.cards{margin:22px 0 34px}.card span{display:block;color:var(--muted);font-weight:750;margin-bottom:8px}.card strong{font-size:1.8rem;color:var(--blue-dark)}.card.dark{background:var(--blue-dark);color:#fff}.card.dark span,.card.dark strong{color:#fff}.link-card{text-decoration:none;color:inherit}.match-list{display:grid;gap:14px}.match-row{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:0 10px 24px rgba(8,47,99,.06)}.match-info{display:grid;gap:5px}.match-info small{color:var(--muted);font-weight:650}.tip-form{display:flex;align-items:center;gap:8px}.tip-form input{width:70px;text-align:center}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 10px 24px rgba(8,47,99,.06)}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px 16px;border-bottom:1px solid var(--line)}th{background:var(--blue-soft);color:var(--blue-dark);font-size:.9rem}tr:last-child td{border-bottom:0}.muted{color:var(--muted)}.footer{background:#061f42;color:#fff;text-align:center;padding:28px}@media(max-width:820px){.topbar{align-items:flex-start;flex-direction:column}.hero{grid-template-columns:1fr}.grid{grid-template-columns:1fr}.match-row{align-items:flex-start;flex-direction:column}.tip-form{width:100%;justify-content:flex-start}.page-head{align-items:flex-start;flex-direction:column}}.flag-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    margin-right: 0.5rem;
    vertical-align: middle;
    box-shadow: 0 0 0 2px #ffffff, 0 2px 6px rgba(0,0,0,0.15);}

.flag-placeholder {
    display: inline-flex;
    width: 1.6em;
    height: 1.6em;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #d9e7f7;
    color: #123b68;
    font-size: 0.7rem;
    margin-right: 0.45rem;
}

.rank-user {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.team-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.team-name {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.team-separator {
    color: #5c7290;
    font-weight: 700;
}

.flag-avatar {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    box-shadow: 0 0 0 2px #ffffff, 0 2px 6px rgba(0,0,0,0.15);
    vertical-align: middle;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ranking-mini {
    display: grid;
    gap: 0.75rem;
}

.ranking-mini-row {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(10, 54, 102, 0.12);
}

.ranking-mini-row:last-child {
    border-bottom: 0;
}

.ranking-place {
    font-weight: 800;
    color: #063b79;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .ranking-mini-row {
        grid-template-columns: 2rem minmax(0, 1fr);
    }

    .ranking-mini-row strong {
        grid-column: 2;
    }
}

.legal-text {
    line-height: 1.7;
    max-width: 920px;
}

.legal-text h2 {
    margin-top: 1.6rem;
    margin-bottom: 0.5rem;
    color: #063b79;
}

.legal-text ul {
    margin-left: 1.4rem;
}
.ranking-points {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.ranking-points small {
    color: #5c7290;
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .ranking-points {
        grid-column: 2;
        align-items: flex-start;
    }
}
.page-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-light {
    background: #ffffff;
    color: #063b79;
    border: 1px solid #d5e4f7;
    box-shadow: 0 8px 22px rgba(10, 54, 102, 0.12);
}

.btn-light:hover {
    background: #f3f8ff;
}
.stats-section {
    margin-top: 2rem;
}

.stat-list {
    display: grid;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(10, 54, 102, 0.12);
}

.stat-row:last-child {
    border-bottom: 0;
}

.progress-bar {
    width: 100%;
    height: 0.7rem;
    background: #e8f1fb;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.35rem;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: #0b63ce;
    border-radius: 999px;
}
.promo-card {
    grid-column: 1 / -1;
}
@media (max-width: 900px) {
    .promo-card {
        grid-column: span 1;
    }
}
.league-filter-form {
    max-width: 360px;
}
.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.inline-form select {
    min-width: 150px;
}
.badge-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #eef5ff;
    color: #063b79;
    font-size: 0.82rem;
    font-weight: 800;
    border: 1px solid rgba(10, 54, 102, 0.12);
}

.badge-icon {
    font-size: 1rem;
    line-height: 1;
}

.badge-label {
    white-space: nowrap;
}

.more-badge {
    background: #ffffff;
    color: #5c7290;
}

.rank-user-block {
    display: grid;
    gap: 0.35rem;
}

.rank-user-block .badge-list {
    margin-left: 2rem;
}

@media (max-width: 900px) {
    .rank-user-block .badge-list {
        margin-left: 0;
    }

    .badge-label {
        display: none;
    }

    .user-badge {
        padding: 0.3rem 0.45rem;
    }
}
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 3rem;
    align-items: stretch;
}

.hero-logo-card {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 100%;
    padding: 2rem 2rem 1rem;
}

.hero-logo-inner {
    display: grid;
    justify-items: center;
    gap: 1.1rem;
    text-align: center;
    margin-bottom: 0;
}

.hero-logo-inner img {
    max-width: 260px;
    width: 100%;
    height: auto;
}

.hero-logo-inner p {
    margin: 0;
    color: #063b79;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
}
@media (max-width: 900px) {
    .hero {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.25rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 13vw, 4.2rem);
        line-height: 0.95;
        max-width: 100%;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-logo-card {
        align-items: center;
        justify-content: center;
        padding: 1.5rem 0 0;
        min-height: auto;
    }

    .hero-logo-inner img {
        max-width: 220px;
    }

    .hero-logo-inner p {
        font-size: 1rem;
        line-height: 1.4;
        max-width: 320px;
    }
}
@media (max-width: 520px) {
    .hero {
        padding: 2.25rem 1rem;
        gap: 1.75rem;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 15vw, 3.4rem);
        line-height: 0.98;
    }

    .actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .actions .btn,
    .actions .btn.ghost {
        width: auto;
    }

    .hero-logo-inner img {
        max-width: 190px;
    }
}