* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #05070b;
    --background-soft: #0b1018;
    --panel: rgba(13, 19, 29, 0.94);
    --panel-light: rgba(20, 28, 41, 0.92);

    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);

    --text: #f3f7ff;
    --text-soft: #aab5c7;
    --text-muted: #6f7c90;

    --red: #e42035;
    --red-dark: #9e1020;
    --red-light: #ff5264;

    --green: #3be085;
    --gold: #f0c968;

    --shadow:
        0 24px 65px rgba(0, 0, 0, 0.48);

    --radius-large: 26px;
    --radius-medium: 18px;
    --radius-small: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
    color: var(--text);
    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(228, 32, 53, 0.14),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(39, 91, 166, 0.1),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #05070b 0%,
            #080c13 45%,
            #040609 100%
        );
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 40px 40px;
}


/* HEADER */

.create-header {
    width: min(1460px, calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.create-header a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.create-header a:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.create-header ion-icon {
    font-size: 20px;
}

.create-header-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.create-header-home {
    color: var(--red-light) !important;
}


/* PAGINA */

.create-page {
    width: min(1460px, calc(100% - 40px));
    margin: 0 auto;
    padding:
        76px
        0
        110px;
}


/* INTRODUZIONE */

.create-introduction {
    position: relative;
    width: 100%;
    max-width: none;
    margin-bottom: 80px;
}

.create-section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--red-light);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.create-section-label::before {
    content: "";
    width: 38px;
    height: 2px;
    background: var(--red);
    box-shadow:
        0 0 18px rgba(228, 32, 53, 0.75);
}

.create-introduction h1 {
    max-width: 1050px;
    margin-bottom: 40px;
    font-size: clamp(58px, 7.5vw, 118px);
    line-height: 0.9;
    font-weight: 950;
    letter-spacing: -0.065em;
    text-transform: uppercase;
}

.create-introduction p {
    max-width: 1320px;
    margin-top: 24px;
    color: var(--text-soft);
    font-size: clamp(22px, 2.2vw, 34px);
    line-height: 1.42;
    letter-spacing: -0.025em;
}

.create-introduction-main {
    color: var(--text) !important;
    font-size: clamp(30px, 3.4vw, 52px) !important;
    line-height: 1.18 !important;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.create-information-box {
    max-width: 1320px;
    margin-top: 30px;
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid rgba(59, 224, 133, 0.26);
    border-radius: var(--radius-medium);
    background:
        linear-gradient(
            135deg,
            rgba(59, 224, 133, 0.08),
            rgba(59, 224, 133, 0.025)
        );
}

.create-information-box > ion-icon {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--green);
    font-size: 27px;
}

.create-information-box div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.create-information-box strong {
    color: var(--text);
    font-size: 15px;
}

.create-information-box span {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.55;
}


/* AREA PRINCIPALE */

.create-workspace {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(360px, 500px);
    gap: 42px;
    align-items: start;
}

.create-form-column,
.create-preview-column {
    min-width: 0;
}

.create-panel-heading {
    margin-bottom: 18px;
}

.create-panel-heading > span {
    display: block;
    margin-bottom: 7px;
    color: var(--red-light);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.create-panel-heading h2 {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
}


/* FORM */

.create-player-form {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background:
        linear-gradient(
            145deg,
            rgba(18, 26, 39, 0.98),
            rgba(8, 12, 19, 0.98)
        );
    box-shadow: var(--shadow);
}

.create-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 22px;
}

.create-field:last-of-type {
    margin-bottom: 0;
}

.create-field label {
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.create-field label span {
    color: var(--red-light);
}

.create-field input,
.create-field select {
    width: 100%;
    height: 54px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-small);
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    padding: 0 16px;
    font-size: 15px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.create-field input::placeholder {
    color: var(--text-muted);
}

.create-field input:focus,
.create-field select:focus {
    border-color: rgba(228, 32, 53, 0.75);
    background: rgba(255, 255, 255, 0.065);
    box-shadow:
        0 0 0 4px rgba(228, 32, 53, 0.11);
}

.create-field select {
    cursor: pointer;
}

.create-field select option {
    color: #111;
    background: #fff;
}

.create-form-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 16px;
}

.create-field input[type="file"] {
    height: auto;
    min-height: 56px;
    padding: 12px;
    cursor: pointer;
}

.create-field input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 9px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    font-weight: 800;
    cursor: pointer;
}

.create-field small {
    color: var(--text-muted);
    font-size: 12px;
}

.create-form-message {
    min-height: 21px;
    margin-top: 5px;
    color: var(--red-light);
    font-size: 13px;
    font-weight: 700;
}

.create-submit-button {
    width: 100%;
    min-height: 58px;
    margin-top: 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            var(--red-light),
            var(--red-dark)
        );
    box-shadow:
        0 15px 35px rgba(228, 32, 53, 0.22);
    font-size: 14px;
    font-weight: 950;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.create-submit-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
    box-shadow:
        0 18px 42px rgba(228, 32, 53, 0.32);
}

.create-submit-button:active {
    transform: translateY(0);
}

.create-submit-button ion-icon {
    font-size: 22px;
}


/* COLONNA PREVIEW */

.create-preview-column {
    position: sticky;
    top: 28px;
}

.create-preview-stage {
    min-height: 620px;
    padding: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(228, 32, 53, 0.15),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(18, 26, 39, 0.94),
            rgba(5, 8, 13, 0.98)
        );
    box-shadow: var(--shadow);
}


/* CARTA PREVIEW */

.new-player-card-preview {
    position: relative;
    width: min(100%, 350px);
    aspect-ratio: 0.69;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 50% 24%,
            rgba(255, 255, 255, 0.1),
            transparent 32%
        ),
        linear-gradient(
            160deg,
            #212b3a 0%,
            #0b111b 48%,
            #05070b 100%
        );
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.55),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.new-player-card-preview::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: 4;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 21px;
}

.new-player-card-preview::after {
    content: "";
    position: absolute;
    inset:
        auto
        -30%
        -26%
        -30%;
    height: 55%;
    z-index: 1;
    background:
        radial-gradient(
            ellipse,
            rgba(228, 32, 53, 0.55),
            rgba(228, 32, 53, 0.05) 55%,
            transparent 72%
        );
    filter: blur(20px);
}

.preview-player-photo {
    position: absolute;
    inset:
        0
        0
        auto;
    height: 65%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.28);
    background:
        radial-gradient(
            circle at 50% 55%,
            rgba(255, 255, 255, 0.1),
            transparent 50%
        );
}

.preview-player-photo ion-icon {
    font-size: 128px;
}

.preview-player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.preview-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            180deg,
            transparent 20%,
            rgba(5, 7, 11, 0.25) 48%,
            rgba(5, 7, 11, 0.97) 76%
        );
}

.preview-card-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 25px 24px;
}

.preview-card-status {
    position: absolute;
    top: 25px;
    left: 24px;
    max-width: 150px;
    padding: 8px 11px;
    border: 1px solid rgba(240, 201, 104, 0.28);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(0, 0, 0, 0.4);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.1em;
}

.preview-overall-box {
    position: absolute;
    top: 23px;
    right: 22px;
    width: 58px;
    height: 67px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.045)
        );
    backdrop-filter: blur(8px);
}

.preview-overall-box span {
    color: var(--text-soft);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.preview-overall-box strong {
    margin-top: 2px;
    font-size: 27px;
    line-height: 1;
}

.preview-player-identity {
    position: absolute;
    right: 24px;
    bottom: 72px;
    left: 24px;
}

.preview-player-identity h3 {
    overflow: hidden;
    color: #fff;
    font-size: clamp(26px, 4vw, 39px);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.preview-player-identity p {
    margin-top: 8px;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-player-details {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.preview-detail-separator {
    color: var(--red-light);
}

.preview-card-ranking {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-card-ranking span {
    color: var(--red-light);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.16em;
}

.create-preview-note {
    max-width: 440px;
    margin: 16px auto 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}


/* RISULTATO FINALE */

.created-card-result {
    margin-top: 74px;
    padding: 50px 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background:
        linear-gradient(
            145deg,
            rgba(16, 24, 36, 0.96),
            rgba(5, 8, 13, 0.98)
        );
    box-shadow: var(--shadow);
    text-align: center;
}

.created-card-result[hidden] {
    display: none;
}

.created-card-result-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.created-card-result-heading ion-icon {
    margin-bottom: 14px;
    color: var(--green);
    font-size: 52px;
}

.created-card-result-heading > span {
    color: var(--green);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.17em;
}

.created-card-result-heading h2 {
    margin-top: 10px;
    font-size: clamp(27px, 4vw, 46px);
}

#createdCardContainer {
    margin-top: 34px;
    display: flex;
    justify-content: center;
}

.created-card-actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 13px;
}

.created-card-actions a,
.created-card-actions button {
    min-height: 50px;
    padding: 0 20px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
}

.created-card-primary-action {
    border: 1px solid rgba(228, 32, 53, 0.45);
    background:
        linear-gradient(
            135deg,
            var(--red),
            var(--red-dark)
        );
}

.created-card-secondary-action {
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.055);
}


/* TABLET */

@media (max-width: 980px) {

    .create-page {
        padding-top: 52px;
    }

    .create-workspace {
        grid-template-columns: 1fr;
    }

    .create-preview-column {
        position: static;
    }

    .create-preview-stage {
        min-height: 560px;
    }

    .new-player-card-preview {
        width: min(100%, 330px);
    }
}


/* MOBILE */

@media (max-width: 620px) {

    .create-header {
        width: min(100% - 24px, 1460px);
        min-height: 68px;
    }

    .create-header a {
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .create-page {
        width: min(100% - 24px, 1460px);
        padding:
            42px
            0
            72px;
    }

    .create-introduction {
        margin-bottom: 38px;
    }

    .create-introduction h1 {
        font-size: clamp(38px, 13vw, 57px);
    }

    .create-introduction-main {
        font-size: 17px !important;
    }

    .create-introduction p {
        font-size: 14px;
        line-height: 1.65;
    }

    .create-information-box {
        padding: 17px;
    }

    .create-player-form {
        padding: 20px;
        border-radius: 20px;
    }

    .create-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .create-field {
        margin-bottom: 18px;
    }

    .create-workspace {
        gap: 34px;
    }

    .create-preview-stage {
        min-height: auto;
        padding: 22px 14px;
        border-radius: 20px;
    }

    .new-player-card-preview {
        width: min(100%, 285px);
        border-radius: 23px;
    }

    .preview-player-identity h3 {
        font-size: 30px;
    }

    .preview-player-photo ion-icon {
        font-size: 105px;
    }

    .created-card-result {
        padding: 36px 16px;
    }

    .created-card-actions {
        flex-direction: column;
    }

    .created-card-actions a,
    .created-card-actions button {
        width: 100%;
    }
}
/* ANTEPRIMA BASATA SULLE PLAYER CARD REALI */

.create-preview-stage .create-card-live-preview {
    width: min(100%, 390px);
    margin: 0;
}


.create-card-live-preview .preview-stats strong {
    color: rgba(255, 255, 255, 0.45);
}

.create-card-live-preview .preview-photo-plus {
    pointer-events: none;
}

.create-empty-identity {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.create-empty-identity span {
    color: var(--red-light);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.create-empty-identity strong {
    color: var(--text);
    font-size: 14px;
    letter-spacing: 0.04em;
}

.create-empty-identity small {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.4;
}

@media (max-width: 620px) {
    .create-preview-stage .create-card-live-preview {
        width: min(100%, 300px);
    }
}
/* IDENTITÀ ANTEPRIMA PLAYER CARD */

.create-card-live-preview .preview-player-info > h3 {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.create-card-live-preview .player-meta {
    align-items: flex-end;
}

.create-card-live-preview .preview-country {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 8px;
}

.create-card-live-preview .preview-country strong {
    flex: 0 0 auto;

    color: var(--gold);
    font-size: 11px;
    font-weight: 950;
}

.create-card-live-preview .preview-country span {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.create-card-live-preview .preview-platform-age {
    flex: 0 0 auto;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;

    color: var(--gold);
}

.create-card-live-preview .preview-platform-age > strong {
    font-size: 12px;
    font-weight: 900;
}

.create-card-live-preview .preview-platform-age > small {
    color: var(--text-soft);
    font-size: 9px;
    font-weight: 800;
}

.create-card-live-preview .preview-platform-age small span {
    margin-left: 3px;

    color: var(--gold);
}


/* FOTO SEMPRE A RIEMPIMENTO COMPLETO */

.create-card-live-preview .preview-image {
    overflow: hidden;
}

.create-card-live-preview .preview-player-photo {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center center;
}
/* ======================================================
   PASSO 2 - DISTRIBUZIONE STATISTICHE INIZIALI
   ====================================================== */

.initial-stats-step {
    width: min(100%, 1460px);
    margin: 0 auto;
    padding: 26px 0 70px;
}

.initial-stats-step[hidden] {
    display: none !important;
}


/* TITOLO PASSO 2 */

.initial-stats-heading {
    margin-bottom: 22px;
    text-align: center;
}

.initial-stats-heading .create-section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #ff4655;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.18em;
}

.initial-stats-heading .create-section-label::before,
.initial-stats-heading .create-section-label::after {
    content: "";
    width: 34px;
    height: 1px;
    background: #e42035;
}

.initial-stats-heading h2 {
    margin: 0;
    color: #f5f5f5;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.initial-stats-heading p {
    max-width: 760px;
    margin: 13px auto 0;
    color: #aeb8c0;
    font-size: 15px;
    line-height: 1.55;
}


/* LAYOUT GENERALE */

.initial-stats-layout {
    display: block;
}

.initial-stats-editor {
    width: 100%;
}


/* CONTATORE PRINCIPALE */

.initial-points-counter {
    max-width: 720px;
    margin: 0 auto 24px;
    padding: 18px 24px;
    border: 1px solid rgba(228, 32, 53, 0.48);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: end;
    gap: 9px;
    background:
        radial-gradient(
            circle at 50% 0,
            rgba(228, 32, 53, 0.18),
            transparent 58%
        ),
        linear-gradient(
            145deg,
            rgba(17, 21, 28, 0.98),
            rgba(6, 9, 14, 0.98)
        );
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.initial-points-counter::after {
    content: "";
    grid-column: 1 / -1;
    width: 100%;
    height: 8px;
    margin-top: 7px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            #e42035,
            #ff4052
        );
    box-shadow:
        0 0 18px rgba(228, 32, 53, 0.55);
}

.initial-points-counter > span {
    align-self: center;
    color: #ff4655;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.13em;
}

.initial-points-counter strong {
    color: #ffffff;
    font-size: clamp(42px, 5vw, 65px);
    font-weight: 950;
    line-height: 0.9;
}

.initial-points-counter strong.is-complete {
    color: #4ee17d;
    text-shadow:
        0 0 18px rgba(78, 225, 125, 0.35);
}

.initial-points-counter strong.is-error {
    color: #ff5264;
}

.initial-points-counter small {
    padding-bottom: 5px;
    color: #adb6bd;
    font-size: 18px;
    font-weight: 800;
}


/* GRIGLIA CATEGORIE */

.initial-stats-categories {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 14px;
}

.initial-stat-category {
    --category-color: #e42035;

    min-width: 0;
    overflow: hidden;
    border: 1px solid #354049;
    border-radius: 12px;
    background:
        linear-gradient(
            150deg,
            rgba(15, 22, 28, 0.98),
            rgba(6, 10, 14, 0.99)
        );
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.initial-stat-category:nth-child(1) {
    --category-color: #ff414f;
}

.initial-stat-category:nth-child(2) {
    --category-color: #37a8ff;
}

.initial-stat-category:nth-child(3) {
    --category-color: #a76cff;
}

.initial-stat-category:nth-child(4) {
    --category-color: #ff8a2c;
}

.initial-stat-category:nth-child(5) {
    --category-color: #4bdd6d;
}

.initial-stat-category:nth-child(6) {
    --category-color: #ffc229;
}

.initial-stat-category h3 {
    min-height: 58px;
    margin: 0;
    padding: 0 20px;
    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    color: #f5f5f5;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.initial-stat-category h3::before {
    content: "";
    width: 13px;
    height: 13px;
    margin-right: 12px;
    border: 3px solid
        var(--category-color);
    border-radius: 50%;
    box-shadow:
        0 0 13px
        color-mix(
            in srgb,
            var(--category-color) 55%,
            transparent
        );
}


/* RIGHE ATTRIBUTI */

.initial-stat-list {
    padding: 8px 14px 14px;
}

.initial-stat-row {
    min-height: 46px;
    padding: 5px 4px;
    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.075);
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 12px;
}

.initial-stat-row:last-child {
    border-bottom: 0;
}

.initial-stat-label {
    overflow: hidden;
    color: #d8dde1;
    font-size: 15px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.initial-stat-control {
    display: grid;
    grid-template-columns:
        34px
        43px
        34px;
    align-items: center;
    gap: 7px;
}

.initial-stat-value {
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
    text-align: center;
}


/* PULSANTI PIÙ E MENO */

.initial-stat-button {
    width: 34px;
    height: 31px;
    padding: 0;
    border:
        1px solid
        rgba(150, 165, 175, 0.4);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background:
        linear-gradient(
            180deg,
            #1b252c,
            #0d1318
        );
    font-size: 21px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.initial-stat-button:hover:not(:disabled) {
    border-color:
        var(--category-color);
    background:
        linear-gradient(
            180deg,
            #26343d,
            #111a20
        );
    box-shadow:
        0 0 13px
        color-mix(
            in srgb,
            var(--category-color) 35%,
            transparent
        );
    transform: translateY(-1px);
}

.initial-stat-button:active:not(:disabled) {
    transform: translateY(0);
}

.initial-stat-button:disabled {
    opacity: 0.28;
    cursor: not-allowed;
}


/* MESSAGGIO E AZIONI */

#initialStatsMessage {
    min-height: 24px;
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.initial-stats-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.initial-stats-actions button {
    min-width: 220px;
    min-height: 52px;
}

#backToIdentityButton {
    border: 1px solid #59666f;
    color: #ffffff;
    background:
        linear-gradient(
            180deg,
            #20292f,
            #11171b
        );
}

#confirmPlayerCardButton {
    border: 1px solid #db3646;
    color: #ffffff;
    background:
        linear-gradient(
            180deg,
            #be2838,
            #651019
        );
    box-shadow:
        0 0 20px
        rgba(210, 30, 48, 0.22);
}

#confirmPlayerCardButton:disabled {
    border-color: #63343a;
    color: rgba(255, 255, 255, 0.48);
    background:
        linear-gradient(
            180deg,
            #39191e,
            #210c0f
        );
    box-shadow: none;
    cursor: not-allowed;
}


/* RIEPILOGO INFERIORE */

.initial-card-preview-column {
    margin-top: 16px;
    padding: 20px 24px;
    border: 1px solid #354049;
    border-radius: 12px;
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(15, 22, 28, 0.98),
            rgba(6, 10, 14, 0.99)
        );
}

.initial-card-preview-column .create-panel-heading,
#initialLargeCardPreview {
    display: none;
}

.initial-overall-summary {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 18px;
}

.initial-overall-summary::before {
    content: "OVR";
    width: 84px;
    height: 94px;
    border: 2px solid #b32b39;
    clip-path:
        polygon(
            50% 0,
            93% 18%,
            93% 72%,
            50% 100%,
            7% 72%,
            7% 18%
        );
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background:
        linear-gradient(
            160deg,
            #252d33,
            #090d10
        );
    font-size: 18px;
    font-weight: 950;
}

.initial-overall-summary > span {
    color: #c5cdd2;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.initial-overall-summary strong {
    color: #ffffff;
    font-size: 52px;
    font-weight: 950;
    line-height: 1;
}

.initial-overall-summary small {
    grid-column: 2 / -1;
    color: #aeb7bd;
    font-size: 14px;
    line-height: 1.5;
}


/* TABLET */

@media (max-width: 1100px) {
    .initial-stats-categories {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}


/* MOBILE */

@media (max-width: 700px) {
    .initial-stats-step {
        padding-top: 15px;
    }

    .initial-stats-heading {
        text-align: left;
    }

    .initial-stats-heading .create-section-label {
        justify-content: flex-start;
    }

    .initial-stats-heading
    .create-section-label::before {
        display: none;
    }

    .initial-stats-heading h2 {
        font-size: 34px;
        line-height: 1.08;
    }

    .initial-stats-heading p {
        margin-left: 0;
        font-size: 14px;
    }

    .initial-points-counter {
        grid-template-columns:
            1fr auto;
        padding: 16px;
    }

    .initial-points-counter small {
        display: none;
    }

    .initial-stats-categories {
        grid-template-columns: 1fr;
    }

    .initial-stat-category h3 {
        min-height: 52px;
        padding: 0 15px;
        font-size: 18px;
    }

    .initial-stat-list {
        padding:
            6px
            10px
            12px;
    }

    .initial-stat-label {
        font-size: 14px;
    }

    .initial-stat-control {
        grid-template-columns:
            31px
            38px
            31px;
        gap: 5px;
    }

    .initial-stat-button {
        width: 31px;
        height: 29px;
    }

    .initial-stats-actions {
        flex-direction: column;
    }

    .initial-stats-actions button {
        width: 100%;
        min-width: 0;
    }

    .initial-card-preview-column {
        padding: 17px;
    }

    .initial-overall-summary {
        grid-template-columns:
            70px
            minmax(0, 1fr);
        gap: 13px;
    }

    .initial-overall-summary::before {
        width: 68px;
        height: 76px;
        font-size: 14px;
    }

    .initial-overall-summary strong {
        font-size: 42px;
    }

    .initial-overall-summary small {
        grid-column: 1 / -1;
    }
}
/* Valore statistica modificabile direttamente */

.initial-stat-value-input {
    width: 43px;
    height: 31px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 5px;
    outline: none;
    color: #ffffff;
    background: transparent;
    font-family: inherit;
    font-size: 18px;
    font-weight: 950;
    line-height: 31px;
    text-align: center;
    appearance: none;
    -moz-appearance: textfield;
}

.initial-stat-value-input:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.035);
}

.initial-stat-value-input:focus {
    border-color: var(--category-color);
    background: #0c1217;
    box-shadow:
        0 0 12px
        color-mix(
            in srgb,
            var(--category-color) 32%,
            transparent
        );
}

/* Protezione nel caso il browser lo interpreti come number */

.initial-stat-value-input::-webkit-inner-spin-button,
.initial-stat-value-input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}