/*
 * SpyClub: Players Finder
 * Visual configuration.
 *
 * Change values here first:
 * - colors
 * - fonts
 * - spacing
 * - radii
 */
.scpf[data-scpf] {
    --scpf-font-body: Arial, Helvetica, sans-serif;
    --scpf-font-heading: Georgia, "Times New Roman", serif;
    --scpf-font-size: 16px;
    --scpf-line-height: 1.25;

    --scpf-color-text: #e6dfd2;
    --scpf-color-muted: #a79d8d;
    --scpf-color-accent: #caa56f;
    --scpf-color-accent-strong: #e2c28f;
    --scpf-color-border: #5b513f;
    --scpf-color-panel: #403c37;
    --scpf-color-panel-soft: #403c37;
    --scpf-color-tab-text: #9f9788;
    --scpf-color-tab-text-active: #e6dfd2;
    --scpf-color-input-accent: #198754;
    --scpf-color-button-bg: #c06f72;
    --scpf-color-button-bg-hover: #cf8285;
    --scpf-color-button-text: #f8f9fa;

    --scpf-radius: 14px;
    --scpf-radius-small: 3px;
    --scpf-gap-xs: 8px;
    --scpf-gap-sm: 12px;
    --scpf-gap-md: 20px;
    --scpf-gap-lg: 30px;
    --scpf-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

div.scpf[data-scpf],
div.scpf[data-scpf] *,
div.scpf[data-scpf] *::before,
div.scpf[data-scpf] *::after {
    box-sizing: border-box;
}

div.scpf[data-scpf] {
    color: var(--scpf-color-text);
    font-family: var(--scpf-font-body);
    font-size: var(--scpf-font-size);
    line-height: var(--scpf-line-height);
}

div.scpf[data-scpf] button,
div.scpf[data-scpf] input,
div.scpf[data-scpf] label,
div.scpf[data-scpf] span,
div.scpf[data-scpf] p,
div.scpf[data-scpf] h2,
div.scpf[data-scpf] section,
div.scpf[data-scpf] form,
div.scpf[data-scpf] div {
    font-family: inherit;
    color: inherit;
    line-height: inherit;
    letter-spacing: normal;
    text-transform: none;
}

div.scpf[data-scpf] .scpf__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0 0 18px;
    padding: 0;
    border-bottom: 0;
}

div.scpf[data-scpf] .scpf__tab {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 -1px;
    padding: 0 0 10px;
    border-bottom: 2px solid transparent;
    color: var(--scpf-color-tab-text);
    cursor: pointer;
    font-family: var(--scpf-font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

div.scpf[data-scpf] .scpf__tab:hover,
div.scpf[data-scpf] .scpf__tab:focus-visible {
    color: var(--scpf-color-tab-text-active);
    border-bottom-color: rgba(202, 165, 111, 0.45);
    outline: none;
}

div.scpf[data-scpf] .scpf__tab.is-active {
    color: var(--scpf-color-tab-text-active);
    border-bottom-color: var(--scpf-color-accent);
}

div.scpf[data-scpf] .scpf__panel {
    margin: 0;
}

div.scpf[data-scpf] .scpf__card {
    width: 100%;
    background: var(--scpf-color-panel);
    border: 1px solid var(--scpf-color-border);
    border-radius: var(--scpf-radius);
    box-shadow: var(--scpf-shadow);
    padding: var(--scpf-gap-lg) 22px 22px;
}

div.scpf[data-scpf] .scpf__intro {
    all: unset;
    box-sizing: border-box;
    display: block;
    margin: 0 0 18px;
    color: var(--scpf-color-muted);
    font-family: var(--scpf-font-body);
    font-size: 15px;
    line-height: 1.45;
}

div.scpf[data-scpf] .scpf__form {
    display: grid;
    gap: 0;
}

div.scpf[data-scpf] .scpf__allow-find,
div.scpf[data-scpf] .scpf__finder-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 0 0 6px;
    padding: 0 0 0;
    border-bottom: 0;
}

div.scpf[data-scpf] .scpf__finder-mode {
    margin-bottom: 6px;
}

div.scpf[data-scpf] .scpf__group {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 10px 0 8px;
    border-top: 1px solid rgba(202, 165, 111, 0.36);
}

div.scpf[data-scpf] .scpf__group-title {
    all: unset;
    display: block;
    margin: 0;
    padding: 0;
    color: var(--scpf-color-accent);
    font-family: var(--scpf-font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

div.scpf[data-scpf] .scpf__options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0;
    padding: 0;
}

div.scpf[data-scpf] .scpf__option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: var(--scpf-color-text);
    font-size: 14px;
    font-weight: 400;
}

div.scpf[data-scpf] .scpf__option input[type="checkbox"],
div.scpf[data-scpf] .scpf__option input[type="radio"] {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--scpf-color-input-accent);
}

div.scpf[data-scpf] .scpf__option--default span {
    color: var(--scpf-color-accent-strong);
}

div.scpf[data-scpf] .scpf__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 22px;
}

div.scpf[data-scpf] .scpf__button,
div.scpf[data-scpf] .scpf__link {
    font-family: var(--scpf-font-body);
    font-size: 14px;
    line-height: 1.2;
}

div.scpf[data-scpf] .scpf__button {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: var(--scpf-radius-small);
    background: var(--scpf-color-button-bg);
    color: var(--scpf-color-button-text);
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
}

div.scpf[data-scpf] .scpf__button:hover,
div.scpf[data-scpf] .scpf__button:focus-visible {
    background: var(--scpf-color-button-bg-hover);
    outline: none;
}

div.scpf[data-scpf] .scpf__link {
    all: unset;
    box-sizing: border-box;
    color: var(--scpf-color-muted);
    cursor: pointer;
    text-decoration: none;
}

div.scpf[data-scpf] .scpf__link:hover,
div.scpf[data-scpf] .scpf__link:focus-visible {
    color: var(--scpf-color-accent-strong);
    outline: none;
}

div.scpf[data-scpf] .scpf__panel[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    div.scpf[data-scpf] .scpf__tab {
        width: auto;
        font-size: 18px;
    }

    div.scpf[data-scpf] .scpf__card {
        padding: 18px 16px;
    }

    div.scpf[data-scpf] .scpf__group-title {
    all: unset;
    display: block;
    margin: 0;
    padding: 0;
    color: var(--scpf-color-accent);
    font-family: var(--scpf-font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

    div.scpf[data-scpf] .scpf__options {
        display: grid;
        gap: 8px;
    }
}

div.scpf[data-scpf] .scpf__group-title {
    all: unset;
    display: block;
    margin: 0;
    padding: 0;
    color: var(--scpf-color-accent);
    font-family: var(--scpf-font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}


div.scpf[data-scpf] .scpf__finder-toggle {
    margin: 0 0 14px;
}

div.scpf[data-scpf] .scpf__search-toggle-button {
    all: unset;
    cursor: pointer;
    color: var(--scpf-color-muted);
    font-size: 13px;
    text-decoration: underline;
}

div.scpf[data-scpf] .scpf__results {
    margin-top: 18px;
}

div.scpf[data-scpf] .scpf__results-table {
    display: grid;
    gap: 10px;
}

div.scpf[data-scpf] .scpf__result-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 12px;
    align-items: stretch;
}

div.scpf[data-scpf] .scpf__result-main {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--scpf-color-border);
    border-radius: 12px;
    background: rgba(0,0,0,0.12);
}

div.scpf[data-scpf] .scpf__result-player {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

div.scpf[data-scpf] .scpf__result-matches {
    display: grid;
    gap: 4px;
    color: var(--scpf-color-muted);
    font-size: 13px;
    line-height: 1.35;
}

div.scpf[data-scpf] .scpf__result-score {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
}

div.scpf[data-scpf] .scpf__results-empty {
    padding: 14px 16px;
    border: 1px solid var(--scpf-color-border);
    border-radius: 12px;
    color: var(--scpf-color-muted);
}


div.scpf[data-scpf] .scpf__search-toggle-button {
    all: unset;
    box-sizing: border-box;
    color: var(--scpf-color-muted);
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
}

div.scpf[data-scpf] .scpf__search-toggle-button:hover,
div.scpf[data-scpf] .scpf__search-toggle-button:focus-visible {
    color: var(--scpf-color-text);
    outline: none;
}

div.scpf[data-scpf] .scpf__finder-toggle {
    margin: 0 0 14px;
}

div.scpf[data-scpf] .scpf__results-head {
    margin: 0 0 10px;
    padding-top: 8px;
    color: var(--scpf-color-accent);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

div.scpf[data-scpf] .scpf__results-table {
    display: grid;
    gap: 10px;
}

div.scpf[data-scpf] .scpf__result-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 12px;
    align-items: stretch;
}

div.scpf[data-scpf] .scpf__result-main {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(202, 165, 111, 0.22);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.08);
}

div.scpf[data-scpf] .scpf__result-player {
    margin: 0 0 8px;
    color: var(--scpf-color-text);
    font-size: 16px;
    font-weight: 700;
}

div.scpf[data-scpf] .scpf__result-matches {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    color: #f8f9fa;
    font-size: 13px;
    line-height: 1.45;
}

div.scpf[data-scpf] .scpf__result-match {
    color: #f8f9fa;
}

div.scpf[data-scpf] .scpf__result-score {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #f8f9fa;
    font-size: 28px;
    font-weight: 700;
}

div.scpf[data-scpf] .scpf__results-empty {
    padding: 12px 0 0;
    color: var(--scpf-color-muted);
}


div.scpf[data-scpf] .scpf__result-main {
    display: flex;
    align-items: center;
    min-height: 58px;
}

div.scpf[data-scpf] .scpf__result-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    width: 100%;
    min-width: 0;
}

div.scpf[data-scpf] .scpf__result-player {
    margin: 0;
    flex: 0 0 auto;
}

div.scpf[data-scpf] .scpf__result-matches {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    min-width: 0;
    color: var(--scpf-color-muted);
    font-size: 12px;
    line-height: 1.35;
}

div.scpf[data-scpf] .scpf__result-match {
    color: var(--scpf-color-muted);
    white-space: normal;
}

div.scpf[data-scpf] .scpf__result-match-label {
    color: var(--scpf-color-muted);
}

div.scpf[data-scpf] .scpf__result-match-value {
    color: #f8f9fa;
}
