@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --pitch-950: #071c12;
    --pitch-900: #0b2b1b;
    --pitch-800: #104527;
    --pitch-700: #16713a;
    --pitch-600: #1d9148;
    --pitch-500: #2eb85c;
    --lime: #84df3b;
    --surface: #ffffff;
    --surface-soft: #f5f8f5;
    --text: #14231a;
    --muted: #657269;
    --line: #dfe8e1;
    --shadow: 0 18px 45px rgba(7, 38, 21, .12);
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
    text-align: center;
    background: linear-gradient(rgba(245, 250, 246, .94), rgba(236, 245, 238, .97)), repeating-linear-gradient(90deg, #d9eadc 0, #d9eadc 12.5%, #cfe3d3 12.5%, #cfe3d3 25%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .38;
    background: radial-gradient(circle at 50% -15%, rgba(132, 223, 59, .32), transparent 36%), linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.8) 50%, transparent calc(50% + 1px));
}

a {
    color: var(--pitch-700);
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

a:hover { color: var(--pitch-600); }

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 88px;
    padding: 0 24px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(17, 83, 44, .1);
    box-shadow: 0 5px 24px rgba(8, 45, 24, .08);
    backdrop-filter: blur(14px);
}

.site-header-inner {
    width: min(1180px, 100%);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; line-height: 0; }

.header-context {
    margin-left: auto;
    margin-right: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.active-championship {
    padding: 7px 11px;
    color: var(--pitch-800);
    font-size: 12px;
    font-weight: 750;
    background: #eaf7ed;
    border: 1px solid #cde7d3;
    border-radius: 20px;
}

.header-chat {
    min-height: 34px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    background: var(--pitch-700);
    border: 1px solid var(--pitch-600);
    border-radius: 18px;
}

.header-chat:hover,
.header-chat:focus-visible,
.header-chat.is-active { color: #fff; background: var(--pitch-600); }

header .brand img {
    width: auto;
    height: 66px;
    max-width: 260px;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: #fff;
    background: var(--pitch-800);
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(10, 72, 36, .2);
}

.menu-toggle span {
    width: 21px;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 3px;
    transition: transform .28s ease, opacity .2s ease;
}

nav {
    position: sticky;
    top: 88px;
    z-index: 990;
    width: 100%;
    padding: 8px max(20px, calc((100% - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    background: linear-gradient(115deg, var(--pitch-950), var(--pitch-800));
    border-bottom: 3px solid var(--lime);
    box-shadow: 0 10px 24px rgba(7, 36, 18, .16);
}

nav a,
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 13px;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: 10px;
}

nav a:hover, nav a:focus-visible, nav a.is-active,
.nav-dropdown-toggle:hover, .nav-dropdown-toggle:focus-visible,
.nav-dropdown.is-active > .nav-dropdown-toggle,
.nav-dropdown.is-open > .nav-dropdown-toggle {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .14);
}

nav a.is-active,
.nav-dropdown.is-active > .nav-dropdown-toggle {
    color: var(--pitch-950);
    background: var(--lime);
    border-color: rgba(255, 255, 255, .2);
}

.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
    gap: 8px;
    color: rgba(255, 255, 255, .88);
    font-family: inherit;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.nav-chevron {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
}

.nav-dropdown.is-open .nav-chevron { transform: translateY(2px) rotate(225deg); }

.nav-submenu {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    z-index: 1020;
    width: max-content;
    min-width: 220px;
    max-width: 320px;
    max-height: min(60vh, 420px);
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    background: var(--pitch-950);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 13px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
    transform: translate(-50%, -6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.nav-dropdown:hover > .nav-submenu,
.nav-dropdown.is-open > .nav-submenu {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.nav-submenu a {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
}

.nav-submenu-empty {
    padding: 11px 12px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    text-align: left;
}

.nav-close { display: none; }
.menu-overlay { display: none; }

@media (min-width: 901px) {
    .nav-dropdown::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 8px;
    }
}

section {
    width: min(1040px, calc(100% - 32px));
    margin: 36px auto;
    padding: clamp(24px, 4vw, 48px);
    flex: 1 0 auto;
    overflow: hidden;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(28, 112, 58, .12);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

h1, h2, h3, h4 { color: var(--pitch-950); }

h1 {
    margin: 0 0 30px;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.04em;
}

h1::after {
    content: "";
    width: 64px;
    height: 5px;
    margin: 16px auto 0;
    display: block;
    background: linear-gradient(90deg, var(--pitch-600), var(--lime));
    border-radius: 10px;
}

h2 { margin: 32px 0 14px; font-size: clamp(22px, 3vw, 30px); }
h4 { margin: 14px 0; }
p { color: var(--muted); line-height: 1.7; }
form { width: min(100%, 720px); margin: 0 auto; }

.page-intro { margin: -12px auto 28px; }

.rules-content {
    width: min(100%, 780px);
    margin: 0 auto 32px;
    text-align: left;
}

.rules-content h2 { margin-top: 34px; }

.rules-points {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rules-point-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 15px;
}

.rules-point-card strong { color: var(--pitch-700); font-size: 28px; }
.rules-point-card span { color: var(--pitch-950); font-weight: 750; }
.rules-point-card small { color: var(--muted); line-height: 1.5; }

.rules-packages {
    margin: 22px 0 32px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
}

.rules-price {
    margin: 0;
    padding: 22px;
    display: flex;
    flex-direction: column;
    text-align: left;
    background: #eaf8ee;
    border: 1px solid #a9dbb7;
    border-radius: 16px;
}

.rules-price > span { display: block; color: var(--pitch-700); font-weight: 700; }
.rules-price strong { margin-top: 5px; display: block; color: var(--pitch-950); font-size: 26px; line-height: 1.2; }
.rules-price p { margin: 14px 0; }
.rules-price ul { margin: 0; padding: 0; display: grid; flex: 1; align-content: start; gap: 10px; list-style: none; }
.rules-price li { position: relative; padding-left: 25px; color: var(--pitch-950); line-height: 1.45; }
.rules-price li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--pitch-600);
    font-weight: 900;
}

.package-choose-button {
    margin-top: 22px;
    padding: 13px 16px;
    display: block;
    color: #fff;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    background: var(--pitch-700);
    border-radius: 11px;
}

.package-choose-button:hover,
.package-choose-button:focus-visible { color: #fff; background: var(--pitch-600); outline: none; }
.package-choose-button.premium { background: var(--pitch-600); }
.package-choose-button.premium:hover,
.package-choose-button.premium:focus-visible { background: var(--pitch-500); }

.rules-price-premium {
    background: linear-gradient(145deg, #eef9f0, #f7fff4);
    border-color: var(--pitch-500);
    box-shadow: 0 12px 28px rgba(8, 82, 39, .09);
}

.guest-packages {
    width: min(100%, 780px);
    margin: 46px auto 0;
    text-align: left;
}

.guest-packages h2 { margin: 0; text-align: center; }

.or-divider {
    width: min(100%, 440px);
    margin: 24px auto 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.or-divider::before, .or-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.register-btn { width: min(100%, 440px); border-left-color: var(--lime); }

.notice {
    width: min(100%, 720px);
    margin: 0 auto 22px;
    padding: 13px 16px;
    font-weight: 650;
    border: 1px solid;
    border-radius: 12px;
}

.notice.success { color: var(--pitch-800); background: #eaf8ee; border-color: #a9dbb7; }
.notice.error { color: #8c2525; background: #fff0f0; border-color: #edb4b4; }

.reminder-feedback {
    width: fit-content;
    max-width: 100%;
    margin: -10px auto 24px;
    padding: 8px 13px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    background: #f4f7f4;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.reminder-feedback.success { color: var(--pitch-700); background: #edf8f0; border-color: #b9dec3; }
.reminder-feedback.error { color: #8c2525; background: #fff3f3; border-color: #edc1c1; }

.reminder-panel {
    width: min(100%, 720px);
    margin: 20px auto 26px;
    padding: 18px;
    background: #f6faf7;
    border: 1px solid var(--line);
    border-radius: 15px;
}

.reminder-panel form { width: 100%; }
.reminder-panel small { margin-top: 9px; display: block; color: var(--muted); }

.reminder-button {
    width: min(100%, 300px);
    min-height: 50px;
    padding: 12px 22px;
    color: var(--pitch-900);
    font: 800 14px/1.2 Inter, Arial, sans-serif;
    background: #fff;
    border: 1px solid #b8d8c0;
    border-radius: 13px;
    cursor: pointer;
    box-shadow: 0 7px 17px rgba(8, 54, 27, .08);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.reminder-button::before { content: "✉"; margin-right: 9px; color: var(--pitch-600); }

.reminder-button:hover,
.reminder-button:focus-visible {
    transform: translateY(-2px);
    border-color: var(--pitch-500);
    box-shadow: 0 11px 22px rgba(8, 54, 27, .13);
    outline: none;
}

.form-panel {
    width: min(100%, 720px);
    margin: 0 auto 34px;
    padding: 24px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.form-panel h2 { margin-top: 0; }

.form-panel label {
    display: block;
    margin: 16px 0 7px;
    color: var(--pitch-900);
    font-weight: 750;
    text-align: left;
}

.user-form { width: min(100%, 520px); }
.user-form input { width: 100%; }

.field-help {
    margin: 10px 0 18px;
    font-size: 13px;
    text-align: left;
}

.games-form { width: min(100%, 900px); }

.api-import-panel {
    width: min(100%, 900px);
    margin: 0 auto 32px;
    padding: 24px;
    text-align: left;
    background: #f6faf7;
    border: 1px solid #cfe3d4;
    border-radius: 18px;
}

.api-import-heading {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.api-import-heading h2 { margin: 8px 0 0; }
.api-import-heading p { max-width: 300px; margin: 7px 0 0; text-align: right; }

.api-search-form {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.api-search-form label,
.api-fixtures-form > label { margin: 0; }

.api-search-form > label { min-width: 0; }
.api-search-form > label > input { display: block; height: 48px; }
.api-search-help { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: left; }

.api-search-form label span,
.api-fixtures-form > label { margin-bottom: 7px; display: block; color: var(--pitch-900); font-size: 12px; font-weight: 750; }

.api-search-form input,
.api-search-form input[type="number"],
.api-search-form select { width: 100% !important; min-width: 0; }

.api-competition-picker { grid-column: 1 / -1; min-width: 0; }
.api-competition-picker summary { padding: 14px; border: 1px solid #c9ded1; border-radius: 8px; cursor: pointer; color: var(--pitch-900); font-weight: 750; }
.api-competition-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; padding: 16px 0; }
.api-competition-options fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid #c9ded1; border-radius: 8px; }
.api-competition-options legend { font-size: 13px; font-weight: 750; }
.api-search-form .api-competition-options label { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; cursor: pointer; }
.api-search-form .api-competition-options input[type="checkbox"] { width: 18px !important; height: 18px; min-height: 0; margin: 0; padding: 0; flex: 0 0 18px; accent-color: var(--pitch-700); }
.api-search-form .api-competition-options label span { margin: 0; font-weight: 500; line-height: 18px; }

.api-search-button {
    min-height: 48px;
    padding: 11px 18px;
    color: #fff;
    font: 750 13px/1.2 Inter, Arial, sans-serif;
    white-space: nowrap;
    background: var(--pitch-700);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

.api-search-button:hover,
.api-search-button:focus-visible { background: var(--pitch-600); outline: none; }

.api-fixtures-form { width: 100%; margin-top: 24px; }
.api-fixtures-form select { width: min(100%, 440px); margin: 0 0 16px; }

.api-fixture-list { margin-bottom: 18px; display: grid; gap: 9px; }

.api-fixture-card {
    margin: 0;
    padding: 13px 14px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.api-fixture-card:hover { border-color: #acd4b7; box-shadow: 0 7px 18px rgba(8, 54, 27, .07); }
.api-fixture-card:has(input:checked) { background: #edf8f0; border-color: var(--pitch-500); }
.api-fixture-card input { position: absolute; opacity: 0; pointer-events: none; }

.api-fixture-check {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border: 2px solid #a9b9ad;
    border-radius: 6px;
}

.api-fixture-card input:checked + .api-fixture-check { background: var(--pitch-600); border-color: var(--pitch-600); }
.api-fixture-card input:checked + .api-fixture-check::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 800; }
.api-fixture-card input:focus-visible + .api-fixture-check { box-shadow: 0 0 0 4px rgba(46, 184, 92, .16); }

.api-fixture-details { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.api-fixture-details strong { color: var(--pitch-950); }
.api-fixture-details em { color: var(--pitch-500); font-style: normal; }
.api-fixture-details small { color: var(--muted); line-height: 1.45; }

.api-status {
    padding: 5px 8px;
    color: var(--pitch-700);
    font-size: 11px;
    font-weight: 800;
    background: #e8f5eb;
    border-radius: 12px;
}

.api-sync-panel {
    width: min(100%, 720px);
    margin: 0 auto 26px;
    padding: 15px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
    background: #f2f8f3;
    border: 1px solid #cfe3d4;
    border-radius: 14px;
}

.api-sync-panel div { display: flex; flex-direction: column; gap: 4px; }
.api-sync-panel strong { color: var(--pitch-900); }
.api-sync-panel small { color: var(--muted); line-height: 1.4; }
.api-sync-panel .api-search-button { flex: 0 0 auto; }

.game-entry-list {
    margin: 22px 0;
    display: grid;
    gap: 12px;
}

.game-entry {
    margin: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: 1.25fr 1.25fr 1fr .8fr;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.game-entry legend {
    padding: 0 8px;
    color: var(--pitch-700);
    font-size: 12px;
    font-weight: 800;
}

.game-entry label { margin: 0; }
.game-entry label span { display: block; margin-bottom: 6px; font-size: 12px; }

.round-limit-summary {
    width: min(100%, 720px);
    margin: 0 auto 22px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--pitch-900);
    background: #eaf8ee;
    border: 1px solid #a9dbb7;
    border-radius: 14px;
}

.round-limit-summary strong { font-size: 20px; }
.round-limit-summary span { color: var(--muted); }

.edition-reset-panel {
    text-align: center;
    border-color: #efb0b0;
    background: #fffafa;
}

.edition-reset-panel form { width: 100%; }

.danger-action-btn {
    margin-top: 12px;
    color: #fff;
    background: linear-gradient(135deg, #b42323, #df3c3c);
    border-color: #a61d1d;
    box-shadow: 0 10px 22px rgba(180, 35, 35, .2);
}

.danger-action-btn:hover,
.danger-action-btn:focus-visible {
    background: linear-gradient(135deg, #981b1b, #c82e2e);
}

.championship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    text-align: left;
}

.championship-card {
    position: relative;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(8, 54, 27, .07);
}

.championship-card.active { border: 2px solid var(--pitch-500); }
.championship-card.single { width: min(100%, 620px); margin: 24px auto; text-align: center; }
.championship-card h2, .championship-card h3 { margin: 18px 0 8px; }

.status-badge {
    display: inline-flex;
    padding: 5px 9px;
    color: var(--pitch-800);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: #e8f7ec;
    border-radius: 20px;
}

.payment-badge {
    display: inline-flex;
    margin-left: 5px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-radius: 20px;
}

.payment-badge.paid { color: #126232; background: #dff5e5; }
.payment-badge.unpaid { color: #8a5a08; background: #fff0c9; }

.payment-button {
    display: flex;
    width: fit-content;
    min-width: 150px;
    min-height: 48px;
    margin: -8px auto 24px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #111827, #2563eb);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .2);
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.payment-button:hover,
.payment-button:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .28);
    filter: brightness(1.08);
}

.championship-card .payment-button {
    margin: 16px auto 0;
}

.inline-action { width: auto; margin-top: 12px; }

.small-action-btn {
    min-height: 38px;
    padding: 8px 12px;
    color: var(--pitch-800);
    font: 700 12px/1 Inter, Arial, sans-serif;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
}

.small-action-btn:hover { color: #fff; background: var(--pitch-700); border-color: var(--pitch-700); }

input, select, textarea {
    width: min(100%, 440px);
    min-height: 48px;
    margin: auto;
    padding: 11px 14px;
    color: var(--text);
    font: inherit;
    background: #fff;
    border: 1px solid #cad8cd;
    border-radius: 12px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--pitch-500);
    box-shadow: 0 0 0 4px rgba(46, 184, 92, .13);
}

input[readonly] { background: var(--surface-soft); }

input[type="number"], select[style*="width:50px"] {
    width: 58px !important;
    min-width: 58px;
    text-align: center;
}

input[type="submit"] {
    width: min(100%, 260px);
    min-height: 50px;
    padding: 12px 24px;
    color: #fff;
    font-weight: 750;
    background: linear-gradient(135deg, var(--pitch-700), var(--pitch-600));
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(20, 126, 59, .2);
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(20, 126, 59, .28);
}

.round_btn {
    width: min(100%, 720px);
    min-height: 58px;
    margin: 12px auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pitch-900);
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #fff, #f3f8f4);
    border: 1px solid var(--line);
    border-left: 5px solid var(--pitch-500);
    border-radius: 14px;
    box-shadow: 0 7px 18px rgba(8, 54, 27, .07);
}

.round_btn:hover {
    color: var(--pitch-700);
    transform: translateY(-2px);
    border-color: rgba(46, 184, 92, .42);
    border-left-color: var(--lime);
    box-shadow: 0 12px 24px rgba(8, 54, 27, .12);
}

.archive-button {
    color: #fff;
    background: linear-gradient(135deg, var(--pitch-800), var(--pitch-600));
    border-color: var(--pitch-700);
}

.archive-button:hover,
.archive-button:focus-visible { color: #fff; }

.archive-list {
    width: min(100%, 820px);
    margin: 24px auto;
    display: grid;
    gap: 22px;
}

.archive-edition {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(8, 54, 27, .08);
}

.archive-edition-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.archive-edition-header h2 { margin: 10px 0 0; }
.archive-edition-header > p { margin: 0; color: var(--muted); text-align: right; }
.table-scroll { width: 100%; overflow-x: auto; }
.archive-table { margin-bottom: 0; }
.table.board-details-table { display: table; min-width: 360px; }
.board-details-table td:first-child { overflow-wrap: anywhere; }
.board-details-table td:not(:first-child) { white-space: nowrap; }
.archive-table th:first-child, .archive-table td:first-child { width: 80px; text-align: center; }
.archive-table th:last-child, .archive-table td:last-child { width: 120px; text-align: center; }
.archive-empty { color: var(--pitch-800); background: #f4faf5; border-color: var(--line); }

@media (max-width: 600px) {
    .round-limit-summary,
    .archive-edition-header { align-items: flex-start; flex-direction: column; }
    .archive-edition-header > p { text-align: left; }
    .archive-edition { padding: 18px 14px; }
}

.back {
    width: auto !important;
    min-width: 135px;
    min-height: 46px;
    padding: 11px 18px;
    display: inline-flex;
    border-left-width: 1px;
    box-shadow: none;
}

.green { color: #fff; background: linear-gradient(135deg, var(--pitch-700), var(--pitch-600)); }

.table {
    width: 100%;
    margin: 18px auto;
    display: table;
    overflow: hidden;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line) !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(8, 54, 27, .06);
}

.table td, .table th {
    padding: 13px 14px;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.table td:last-child, .table th:last-child { border-right: 0; }
.table tr:last-child td { border-bottom: 0; }

.table tr:first-child td, .table tr:first-child th {
    color: #fff;
    font-weight: 750;
    background: var(--pitch-800);
}

.table tr:not(:first-child):nth-child(odd) td:not(.user-status) { background: var(--surface-soft); }
.table h4 { margin: 3px 0; color: #fff; }

.table td.user-status {
    padding: 0;
    color: #fff;
    font-weight: 800;
}

.users-mobile-details { display: none; }

.table tr td.user-status.status-active { background: #16833d; }
.table tr td.user-status.status-inactive { background: #c93636; }

.table td.user-status a {
    width: 100%;
    min-height: 48px;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}

.table td.user-status a:hover,
.table td.user-status a:focus-visible {
    color: #fff;
    background: rgba(0, 0, 0, .14);
    outline: none;
}

.table td.users-empty {
    padding: 24px 14px;
    color: var(--muted);
    text-align: center;
    background: #fff;
}

.team-name {
    width: 28%;
    font-weight: 650;
}

.home-team { text-align: right; }
.away-team { text-align: left; }

.score-cell { width: 44%; }

.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.score-separator {
    color: var(--pitch-800);
    font-size: 22px;
    font-weight: 800;
}

.score-stepper {
    height: 46px;
    display: inline-grid;
    grid-template-columns: 34px 42px 34px;
    align-items: stretch;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cbdacf;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(8, 54, 27, .07);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.score-stepper:focus-within {
    border-color: var(--pitch-500);
    box-shadow: 0 0 0 4px rgba(46, 184, 92, .13);
}

.score-stepper button {
    min-width: 0;
    padding: 0;
    color: var(--pitch-800);
    font: 700 19px/1 Inter, Arial, sans-serif;
    background: var(--surface-soft);
    border: 0;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}

.score-stepper button:hover,
.score-stepper button:focus-visible {
    color: #fff;
    background: var(--pitch-600);
    outline: none;
}

.score-stepper button:disabled,
.score-stepper input:disabled {
    color: #8b958e;
    background: #edf1ee;
    cursor: not-allowed;
}

.score-stepper input {
    width: 42px !important;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    border: 0;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    -moz-appearance: textfield;
}

.score-stepper input::-webkit-inner-spin-button,
.score-stepper input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.match-deadline {
    margin-top: 9px;
    display: block;
    font-size: 11px;
    font-weight: 750;
}

.match-deadline.open { color: var(--pitch-700); }
.match-deadline.locked { color: #8c2525; }

.score-error {
    display: block;
    margin: 8px auto;
    max-width: 280px;
    color: #8c2525;
    font-weight: 700;
    white-space: normal;
}

.score-stepper input[aria-invalid="true"] {
    background: #fff0f0;
    box-shadow: inset 0 0 0 2px #c44040;
}
.prediction-table tr.match-locked td { background: #f4f5f4; }
.prediction-table tr.match-locked .team-name { color: #68726b; }

.prediction-table tr.prediction-submit-row td {
    padding: 18px;
    text-align: center;
    background: linear-gradient(180deg, #fff, #f4faf5);
}

.prediction-submit-button {
    width: min(100%, 340px);
    min-height: 54px;
    padding: 13px 26px;
    color: #fff;
    font: 800 15px/1.2 Inter, Arial, sans-serif;
    background: linear-gradient(135deg, var(--pitch-700), var(--pitch-500));
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(22, 113, 58, .24);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.prediction-submit-button::before {
    content: "✓";
    margin-right: 9px;
    font-size: 17px;
}

.prediction-submit-button:hover,
.prediction-submit-button:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 14px 28px rgba(22, 113, 58, .32);
    outline: none;
}

.prediction-submit-button:active {
    transform: translateY(0);
    box-shadow: 0 7px 16px rgba(22, 113, 58, .22);
}

.primary-form-button {
    width: min(100%, 320px);
    min-height: 54px;
    margin-top: 20px;
    padding: 13px 26px;
    color: #fff;
    font: 800 15px/1.2 Inter, Arial, sans-serif;
    background: linear-gradient(135deg, var(--pitch-700), var(--pitch-500));
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(22, 113, 58, .24);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.primary-form-button::before {
    content: "+";
    margin-right: 9px;
    font-size: 19px;
    line-height: 0;
}

.primary-form-button:hover,
.primary-form-button:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 14px 28px rgba(22, 113, 58, .32);
    outline: none;
}

.primary-form-button:active {
    transform: translateY(0);
    box-shadow: 0 7px 16px rgba(22, 113, 58, .22);
}

.stacked-form {
    padding: 16px;
    display: grid;
    gap: 12px;
    text-align: left;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.stacked-form label { color: var(--pitch-900); font-weight: 750; }
.stacked-form input { width: 100%; min-width: 0; }

.chat-message {
    width: min(75%, 560px);
    margin: 9px 0;
    padding: 13px 16px;
    clear: both;
    line-height: 1.5;
    text-align: left;
    overflow-wrap: anywhere;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 6px 16px 16px 16px;
}

.chat-timestamp {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.chat-message.mine .chat-timestamp { color: rgba(255, 255, 255, .8); }

.chat-message.mine {
    float: right;
    color: #fff;
    text-align: right;
    background: var(--pitch-700);
    border-color: var(--pitch-700);
    border-radius: 16px 6px 16px 16px;
}

section::after { content: ""; display: table; clear: both; }

footer {
    width: 100%;
    margin-top: auto;
    padding: 20px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    text-align: center;
    background: var(--pitch-950);
    border-top: 3px solid var(--pitch-500);
}

footer a { color: #fff; font-weight: 600; }
.footer-dot { margin: 0 9px; color: var(--lime); }

@media (max-width: 900px) {
    body.menu-open { overflow: hidden; }
    header { height: 74px; padding: 0 16px; }
    header .brand img { height: 54px; max-width: 205px; }
    .active-championship { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .menu-toggle { display: flex; }
    .menu-open .menu-toggle {
        position: fixed;
        top: 15px;
        right: 16px;
        z-index: 1200;
        background: rgba(255, 255, 255, .12);
        box-shadow: none;
        visibility: hidden;
    }
    .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
    .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1100;
        width: min(86vw, 360px);
        height: 100dvh;
        padding: 92px 20px 30px;
        display: flex;
        align-content: flex-start;
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 7px;
        overflow-y: auto;
        border: 0;
        border-left: 3px solid var(--lime);
        box-shadow: -18px 0 45px rgba(1, 17, 8, .3);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform .36s cubic-bezier(.22, 1, .36, 1), visibility .36s;
    }

    nav::before {
        content: "MENIU";
        position: absolute;
        top: 31px;
        left: 22px;
        color: rgba(255, 255, 255, .52);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .18em;
    }

    .nav-close {
        position: absolute;
        top: 18px;
        right: 18px;
        width: 46px;
        height: 46px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font: 400 34px/1 Inter, Arial, sans-serif;
        background: rgba(255, 255, 255, .1);
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 12px;
        cursor: pointer;
    }

    .nav-close:hover, .nav-close:focus-visible { background: rgba(255, 255, 255, .18); outline: none; }

    nav > a,
    nav > .nav-dropdown { width: 100%; }

    nav a,
    .nav-dropdown-toggle { width: 100%; min-height: 48px; padding: 12px 14px; font-size: 14px; text-align: left; }

    .nav-dropdown-toggle { justify-content: space-between; }

    .nav-submenu {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        max-height: 0;
        margin: 0;
        padding: 0 5px;
        gap: 2px;
        overflow: hidden;
        visibility: hidden;
        opacity: 1;
        background: rgba(0, 0, 0, .16);
        border: 0;
        border-radius: 11px;
        box-shadow: none;
        transform: none;
        pointer-events: none;
        transition: max-height .28s ease, margin .28s ease, padding .28s ease;
    }

    .nav-dropdown.is-open > .nav-submenu {
        max-height: min(55vh, 420px);
        margin-top: 5px;
        padding: 5px;
        overflow-y: auto;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .nav-submenu a { min-height: 42px; padding: 10px 12px; font-size: 13px; }
    body.menu-open nav { transform: translateX(0); visibility: visible; }

    .menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 1050;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(3, 22, 11, .58);
        backdrop-filter: blur(3px);
        transition: opacity .3s ease, visibility .3s;
    }

    body.menu-open .menu-overlay { visibility: visible; opacity: 1; }

    section {
        width: min(100% - 22px, 1040px);
        margin: 20px auto;
        padding: 26px 18px 32px;
        border-radius: 18px;
    }

    h1 { margin-bottom: 24px; }
    .game-entry { grid-template-columns: 1fr 1fr; }
    .api-search-form { grid-template-columns: 1fr 1fr; }
    .api-search-button { width: 100%; }
    .table { display: block; overflow-x: auto; font-size: 13px; }
    .users-table { display: table; table-layout: fixed; }
    .users-table tr > td:nth-child(2),
    .users-table tr > td:nth-child(3),
    .users-table tr > td:nth-child(4),
    .users-table .users-desktop-name { display: none; }
    .users-table .users-mobile-details { display: block; }
    .users-table .users-mobile-details > span { display: block; margin-top: 5px; }
    .users-table .user-info { text-align: left; overflow-wrap: anywhere; }
    .users-table .user-name { font-weight: 750; }
    .users-table tr > td.user-status,
    .users-table tr:first-child > td:last-child { width: 76px; }
    .table td, .table th { padding: 10px 7px; }
    .table input, .table select { min-height: 42px; padding: 8px 7px; }
    .score-stepper { height: 42px; grid-template-columns: 30px 36px 30px; }
    .score-stepper input { width: 36px !important; min-height: 40px; padding: 0; }
}

@media (max-width: 520px) {
    header .brand img { height: 48px; max-width: 180px; }
    .active-championship { display: none; }
    .header-context { margin-right: 8px; }
    .header-chat { min-height: 32px; padding: 6px 10px; }
    .menu-toggle { width: 44px; height: 44px; border-radius: 12px; }
    .round_btn { min-height: 54px; padding: 14px 15px; font-size: 14px; }
    .rules-points, .rules-packages { grid-template-columns: 1fr; }
    .rules-point-card, .rules-price { padding: 18px; }
    .game-entry { grid-template-columns: 1fr; }
    .api-import-panel { padding: 18px 14px; }
    .api-import-heading { flex-direction: column; gap: 4px; }
    .api-import-heading p { text-align: left; }
    .api-search-form { grid-template-columns: 1fr; }
    .api-competition-options { grid-template-columns: minmax(0, 1fr); }
    .api-fixture-card { padding: 12px 10px; grid-template-columns: 22px minmax(0, 1fr); }
    .api-status { grid-column: 2; width: fit-content; }
    .api-sync-panel { align-items: stretch; flex-direction: column; }
    .table { font-size: 12px; }
    .table td, .table th { padding: 9px 5px; }
    input[type="number"], select[style*="width:50px"] { width: 46px !important; min-width: 46px; }
    .match-score { gap: 4px; }
    .score-stepper { height: 38px; grid-template-columns: 25px 28px 25px; border-radius: 9px; }
    .score-stepper input { width: 28px !important; min-width: 0; min-height: 36px; font-size: 14px; }
    .score-stepper button { font-size: 16px; }
    .score-separator { font-size: 16px; }
    .chat-message { width: 88%; }
    footer span, footer a { display: block; margin: 3px 0; }
    footer .footer-dot { display: none; }
}

@media (max-width: 600px) {
    .prediction-table,
    .prediction-table tbody { display: block; width: 100%; }
    .prediction-table tr { display: block; }
    .prediction-table tr > td { display: block; width: 100%; }

    .prediction-table tr.match-open,
    .prediction-table tr.match-locked {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        border-bottom: 1px solid var(--line);
    }

    .prediction-table .team-name {
        min-width: 0;
        padding: 14px 8px 6px;
        border: 0;
        font-size: 14px;
        line-height: 1.4;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .prediction-table .home-team { grid-column: 1; grid-row: 1; }
    .prediction-table .away-team { grid-column: 2; grid-row: 1; }
    .prediction-table .score-cell {
        grid-column: 1 / -1;
        grid-row: 2;
        min-width: 0;
        padding: 6px 8px 14px;
        border: 0;
    }

    .prediction-table .match-score {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
        gap: 4px;
    }

    .prediction-table .score-stepper {
        justify-self: center;
        height: 46px;
        grid-template-columns: 32px 32px 32px;
        border-radius: 10px;
    }

    .prediction-table .score-stepper input {
        width: 32px !important;
        min-height: 44px;
        padding: 0;
        font-size: 16px;
    }

    .prediction-table .score-stepper button { font-size: 20px; }
    .prediction-table .score-separator { font-size: 20px; }
    .prediction-table .match-deadline { margin-top: 12px; line-height: 1.5; }
    .prediction-table tr.prediction-submit-row td { padding: 14px 10px; }
    .prediction-table .prediction-submit-button { padding-right: 12px; padding-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
