.cc-hero,
.cc-dialog {
    --cc-accent: #54e3af;
    --cc-ink: #f2f7f6;
    --cc-muted: #a4b7b6;
    --cc-border: #2a393b;
    color: var(--cc-ink);
}

.cc-hero [hidden] { display: none !important; }

.cc-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(20px, 4vw, 38px);
    margin: 0 0 20px;
    border: 1px solid var(--cc-border);
    border-radius: 15px;
    background: radial-gradient(ellipse at 92% 10%, #174035 0%, transparent 54%), #11181b;
}

.cc-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.cc-hero-logo {
    flex: none;
    width: clamp(46px, 7vw, 68px);
    height: clamp(46px, 7vw, 68px);
    padding: 8px;
    border: 1px solid #344b49;
    border-radius: 12px;
    background: #e3ebe7;
    object-fit: contain;
}

.cc-eyebrow {
    color: var(--cc-accent);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.cc-identity h1 {
    font-family: var(--font-display, inherit);
    font-size: clamp(1.75rem, 4.4vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    margin: 0;
    overflow-wrap: anywhere;
}

.cc-identity-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: .88rem;
    color: var(--cc-muted);
    margin: 10px 0 0;
}

.cc-identity-context span {
    color: #d1e1dd;
    border-left: 1px solid #455551;
    padding-left: 12px;
}

.cc-trigger,
.cc-fallback button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid #76edc4;
    border-radius: 8px;
    background: var(--cc-accent);
    color: #081d17;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.cc-trigger:hover,
.cc-fallback button:hover { background: #83f5cd; }

.cc-chevron {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.cc-fallback {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    max-width: 330px;
    font-size: .85rem;
}

.cc-fallback label { flex-basis: 100%; }

.cc-fallback select,
.cc-search input {
    min-width: 0;
    border: 1px solid var(--cc-border);
    border-radius: 8px;
    background: #0d1518;
    color: var(--cc-ink);
}

.cc-fallback select { flex: 1; padding: 10px; }

.cc-dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(960px, calc(100vw - 40px));
    max-width: none;
    max-height: min(680px, calc(100dvh - 40px));
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #3a5854;
    border-radius: 17px;
    background: #11191c;
    box-shadow: 0 30px 100px #0009, 0 0 32px #53e3af15;
}

.cc-dialog:not([open]) { display: none; }

.cc-dialog::backdrop {
    background: #060b0ddd;
    backdrop-filter: blur(5px);
}

.cc-shell {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: min(575px, calc(100dvh - 42px));
}

.cc-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 12px;
    background: linear-gradient(105deg, #1c3732, transparent 65%);
}

.cc-dialog-header h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.cc-close,
.cc-back {
    flex: none;
    border: 1px solid var(--cc-border);
    border-radius: 8px;
    background: #172326;
    color: var(--cc-ink);
    cursor: pointer;
}

.cc-close {
    width: 42px;
    height: 42px;
    font-size: 1.65rem;
    line-height: 1;
}

.cc-search { padding: 6px 24px 18px; }

.cc-search input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font: inherit;
}

.cc-search input::placeholder { color: var(--cc-muted); }

.cc-browser {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1.48fr);
    min-height: 0;
    border-top: 1px solid var(--cc-border);
}

.cc-mobile-nav { display: none; }

.cc-column {
    min-width: 0;
    min-height: 0;
    padding: 16px;
    overflow: auto;
    scrollbar-color: #506867 #11191c;
}

.cc-column + .cc-column { border-left: 1px solid var(--cc-border); }
.cc-continents { background: #101619; }
.cc-competitions { background: #142023; }

.cc-column h3 {
    color: var(--cc-accent);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 10px 10px;
}

.cc-column h4 {
    color: var(--cc-muted);
    font-size: .78rem;
    font-weight: 600;
    margin: 12px 10px 4px;
}

.cc-option {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--cc-ink);
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-size: .91rem;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.cc-option:hover,
.cc-close:hover,
.cc-back:hover { background: #233739; }

.cc-option[aria-pressed="true"],
.cc-option[aria-current="page"] {
    border-color: #3b7465;
    background: #1e3a34;
    color: #a5f4d9;
}

.cc-league span { min-width: 0; }
.cc-league strong,
.cc-league small { display: block; }
.cc-league small { margin-top: 3px; color: var(--cc-muted); font-size: .76rem; }
.cc-league img { flex: none; object-fit: contain; }

.cc-results {
    border-top: 1px solid var(--cc-border);
    padding-inline: 24px;
}

.cc-results p { color: var(--cc-muted); }

.cc-hero :is(a, button, input, select):focus-visible {
    outline: 2px solid var(--cc-accent);
    outline-offset: 2px;
}

.cc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 700px) {
    .cc-hero { flex-wrap: wrap; gap: 16px; }
    .cc-trigger { width: 100%; justify-content: space-between; }
    .cc-dialog {
        width: 100%;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
    }
    .cc-shell { height: 100%; }
    .cc-dialog-header { padding: 14px 16px 12px; }
    .cc-search { padding: 4px 16px 14px; }
    .cc-browser { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    .cc-mobile-nav {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px 0;
        color: var(--cc-muted);
        font-size: .82rem;
    }
    .cc-back { min-height: 38px; padding: 6px 10px; }
    .cc-browser[data-step="continent"] { grid-template-rows: minmax(0, 1fr); }
    .cc-browser[data-step="continent"] .cc-mobile-nav,
    .cc-browser:not([data-step="continent"]) .cc-continents,
    .cc-browser:not([data-step="country"]) .cc-countries,
    .cc-browser:not([data-step="competition"]) .cc-competitions { display: none; }
    .cc-column + .cc-column { border-left: 0; }
    .cc-option { min-height: 46px; }
}

.cc-flag {
    display: inline-block;
    flex-shrink: 0;
    object-fit: contain;
    vertical-align: middle;
}
