
/* =========================================
   MY UNIVERSE - ONBOARDING
   BETA LOCALE
   ========================================= */

[hidden] {
    display: none !important;
}

.startup-screen,
.auth-screen,
.onboarding-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow-y: auto;
    background:
        radial-gradient(
            ellipse at 70% 30%,
            #0c2946,
            #040914 55%,
            #01040a
        );
    color: #edf8ff;
    font-family: Inter, Arial, sans-serif;
}

/* AVVIO */

.startup-screen {
    display: grid;
    place-content: center;
    text-align: center;
    gap: 14px;
}

.startup-logo {
    font-size: 55px;
    color: #00e5ff;
}

.startup-screen h1 {
    font-size: 36px;
    margin: 0;
}

.startup-screen p {
    color: #9baec3;
    letter-spacing: 3px;
}

.startup-loader {
    height: 4px;
    background: linear-gradient(
        90deg,
        #0066ff,
        #00e5ff
    );
    border-radius: 10px;
}

/* ACCESSO */

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr minmax(300px, 420px);
    align-items: center;
    gap: 50px;
    max-width: 1250px;
    margin: auto;
    padding: 45px 30px;
}

.auth-introduction h1 {
    font-size: clamp(38px, 5.2vw, 78px);
    line-height: 1.04;
    letter-spacing: -2px;
    margin: 28px 0;
}

.auth-introduction h1 span,
.onboarding-step h1 span {
    color: #00e5ff;
}

.auth-introduction p {
    font-size: 17px;
    line-height: 1.8;
    color: #a4b9d0;
    max-width: 480px;
}

.auth-brand,
.auth-eyebrow,
.auth-kicker,
.onboarding-eyebrow {
    color: #00e5ff;
    letter-spacing: 3px;
    font-weight: 800;
    font-size: 12px;
}

.auth-features {
    display: grid;
    gap: 13px;
    margin-top: 35px;
    color: #cae8fa;
}

.auth-features span {
    color: #00e5ff;
    margin-right: 10px;
}

.auth-card {
    padding: 30px;
    border: 1px solid #185578;
    border-radius: 24px;
    background: #0b1727;
    box-shadow: 0 15px 70px #0008;
}

.auth-card-top,
.auth-card-footer {
    font-size: 10px;
    letter-spacing: 2px;
    color: #829eb8;
    margin-bottom: 25px;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-form-header h2 {
    font-size: 30px;
    margin: 12px 0;
}

.auth-form-header p {
    color: #9ab0c5;
    margin-bottom: 18px;
}

.auth-form label:not(.auth-check),
.onboarding-fields label,
.world-dialog label {
    font-size: 13px;
    font-weight: 700;
    color: #bfd4e6;
}

.auth-form input:not([type=checkbox]),
.onboarding-fields input,
.onboarding-fields select,
.world-dialog input,
.world-dialog select {
    width: 100%;
    padding: 14px 13px;
    border-radius: 11px;
    border: 1px solid #2b4765;
    background: #050d1a;
    color: #fff;
    font: inherit;
    outline: none;
    min-width: 0;
}

.auth-form input:focus,
.onboarding-fields input:focus,
.onboarding-fields select:focus {
    border-color: #00e5ff;
}

.auth-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #aabfd3;
    font-size: 12px;
    line-height: 1.6;
}

.auth-check a {
    color: #00e5ff;
}

.auth-primary-button {
    border: 0;
    border-radius: 11px;
    padding: 15px 20px;
    background: linear-gradient(
        100deg,
        #0066ff,
        #00d9ff
    );
    color: #001324;
    font-weight: 900;
    letter-spacing: .5px;
    cursor: pointer;
    font-size: 13px;
}

.auth-primary-button:hover {
    filter: brightness(1.17);
}

.auth-switch {
    text-align: center;
    color: #a2b6ca;
    font-size: 13px;
}

.auth-switch button,
.auth-text-button {
    border: 0;
    background: transparent;
    color: #00e5ff;
    cursor: pointer;
    font-weight: 800;
}

.auth-message {
    color: #cce7ff;
    line-height: 1.5;
    font-size: 12px;
}

.auth-card-footer {
    margin: 25px 0 0;
    text-align: center;
}

/* CONFIGURAZIONE PROFILO */

.onboarding-container {
    max-width: 850px;
    margin: auto;
    padding: 28px 24px 60px;
}

.onboarding-top,
.onboarding-progress-text,
.onboarding-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.onboarding-exit,
.onboarding-back {
    padding: 12px 16px;
    color: #cceaff;
    border: 1px solid #244663;
    background: #0b1727;
    border-radius: 10px;
    cursor: pointer;
}

.onboarding-progress {
    margin: 38px 0 45px;
}

.onboarding-progress-text {
    font-size: 11px;
    letter-spacing: 2px;
    color: #90b0c9;
    margin-bottom: 10px;
}

.onboarding-progress-bar {
    height: 6px;
    border-radius: 6px;
    background: #12263d;
    overflow: hidden;
}

.onboarding-progress-fill {
    height: 100%;
    background: linear-gradient(
        90deg,
        #0066ff,
        #00e5ff
    );
    transition: width .3s;
}

.onboarding-step h1 {
    font-size: clamp(32px, 5vw, 56px);
    margin: 16px 0;
}

.onboarding-step > p {
    color: #a5bbd1;
    margin-bottom: 30px;
}

.onboarding-fields {
    display: grid;
    gap: 14px;
    max-width: 550px;
}

.onboarding-actions {
    margin-top: 30px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* SCELTA PASSIONI */

.hobby-selection {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hobby-option {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    padding: 22px 8px;
    border: 1px solid #23415d;
    background: #0b1829;
    border-radius: 16px;
    cursor: pointer;
    text-align: center;
}

.hobby-option:has(input:checked) {
    border-color: #00e5ff;
    box-shadow: 0 0 18px #00e5ff33;
}

.hobby-option input {
    position: absolute;
    top: 10px;
    right: 10px;
    accent-color: #00e5ff;
}

.hobby-icon {
    font-size: 33px;
}

.hobby-option small {
    font-size: 9px;
    color: #88a1bb;
    letter-spacing: 1px;
}

/* ANTEPRIMA MONDO */

.world-creation-preview {
    background:
        radial-gradient(
            circle at center,
            #16314d,
            #07101d
        );
    border: 1px solid #235477;
    padding: 27px;
    border-radius: 18px;
    text-align: center;
    margin-top: 15px;
}

.world-preview-icon {
    font-size: 44px;
    margin: 20px 0;
}

/* MODALE NUOVO MONDO */

.world-dialog {
    max-width: min(92vw, 500px);
    width: 100%;
    padding: 30px;
    border: 1px solid #23658a;
    border-radius: 20px;
    background: #091628;
    color: #fff;
}

.world-dialog::backdrop {
    background: #000b;
    backdrop-filter: blur(5px);
}

.world-dialog form {
    display: grid;
    gap: 12px;
}

.world-dialog h2 {
    margin: 0;
}

.world-dialog p {
    color: #9eb3c9;
}

/* SIDEBAR */

.add-world-button {
    width: 100%;
    padding: 13px 10px;
    margin-top: 18px;
    color: #00e5ff;
    background: #071d30;
    border: 1px solid #215d7b;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 800;
}

.logout-button {
    display: block;
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: #91a8c0;
    cursor: pointer;
    font-size: 12px;
}

#personal-world-navigation {
    display: grid;
    gap: 5px;
}

/* RESPONSIVE */

@media (max-width: 800px) {
    .auth-layout {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 16px;
    }

    .auth-introduction h1 {
        font-size: 38px;
    }

    .auth-features {
        margin-top: 15px;
    }

    .auth-card {
        padding: 22px;
    }

    .hobby-selection {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .onboarding-container {
        padding: 20px 15px 50px;
    }
}
