/* ============================================================
   SHADOWSKINGS - ACCOUNT SETTINGS
   ============================================================ */

#account-settings-root {
    min-height: 100vh;
    padding: 30px 20px;
    box-sizing: border-box;
    background: #05030a;
    color: #e9e0f5;
    font-family: Georgia, "Times New Roman", serif;
}

.account-settings-frame {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid rgba(143, 92, 255, 0.48);
    border-radius: 8px;
    background: linear-gradient(145deg, #12091e, #07040e);
    box-shadow: 0 0 40px rgba(89, 43, 150, 0.16);
}

.account-settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(143, 92, 255, 0.35);
}

.account-settings-eyebrow {
    color: #a76cff;
    font: 700 11px Arial, sans-serif;
    letter-spacing: 4px;
}

.account-settings-header h1 {
    color: #e4c56b;
    font-size: clamp(28px, 4vw, 42px);
    margin: 12px 0;
}

.account-settings-header p,
.account-settings-section p {
    color: #a99ab9;
    line-height: 1.6;
}

#account-settings-close {
    flex-shrink: 0;
    border: 1px solid #74539a;
    background: #21132f;
    color: #e9e0f5;
    font-size: 28px;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.account-settings-section {
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid rgba(143, 92, 255, 0.25);
    border-radius: 6px;
    background: rgba(18, 9, 30, 0.72);
}

.account-settings-section h2 {
    color: #e4c56b;
    margin: 0 0 12px;
    font-size: 22px;
}

.account-settings-danger {
    border-color: rgba(190, 65, 75, 0.65);
}

.account-settings-danger h2 {
    color: #e58b91;
}

#account-settings-delete {
    padding: 12px 24px;
    border: 1px solid #a14c55;
    border-radius: 4px;
    background: #682932;
    color: white;
    font-weight: bold;
}

#account-settings-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.account-settings-notice {
    font-size: 12px;
}

@media (max-width: 600px) {
    .account-settings-frame {
        padding: 16px;
    }

    .account-settings-section {
        padding: 16px;
    }
}


/* ACCOUNT SETTINGS — LIVE PLAYER INFORMATION */

#account-settings-player-info {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.account-settings-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 16px;
    border: 1px solid rgba(157, 119, 195, 0.22);
    border-radius: 6px;
    background: rgba(24, 17, 34, 0.55);
}

.account-settings-info-row strong {
    color: #c5a5e3;
    font-weight: 600;
}

.account-settings-info-row span {
    color: #eee4f5;
    text-align: right;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .account-settings-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .account-settings-info-row span {
        text-align: left;
    }
}


/* ACCOUNT SETTINGS — PASSWORD SECURITY */

#account-settings-password-form {
    display: grid;
    gap: 12px;
    max-width: 540px;
    margin-top: 18px;
}

#account-settings-password-form label {
    color: #c5a5e3;
    font-weight: 600;
}

#account-settings-password-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    color: #f1e7f8;
    background: #140e1e;
    border: 1px solid rgba(157,119,195,.45);
    border-radius: 6px;
    font: inherit;
}

#account-settings-password-form input:focus {
    outline: 2px solid #a77bd2;
    outline-offset: 2px;
}

#account-settings-password-form button {
    margin-top: 8px;
    padding: 12px 20px;
    background: linear-gradient(#463153, #261b35);
    border: 1px solid #9d77c3;
    border-radius: 6px;
    color: #e9d4ff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

#account-settings-password-form button:disabled {
    opacity: .55;
    cursor: wait;
}

#account-settings-password-status {
    min-height: 20px;
    color: #e8c46a;
}


/* SHADOWSKINGS — ACCOUNT DELETION */

#account-delete-readiness {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid rgba(180, 95, 95, .35);
    border-radius: 6px;
    background: rgba(45, 15, 20, .3);
    color: #e9d4e4;
}

.account-delete-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(180, 95, 95, .2);
}

#account-delete-form {
    display: grid;
    gap: 12px;
    max-width: 540px;
    margin-top: 18px;
}

#account-delete-form label {
    color: #e6b3b3;
    font-weight: 600;
}

#account-delete-form input {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    color: #f1e7f8;
    background: #140e1e;
    border: 1px solid rgba(190, 100, 100, .5);
    border-radius: 6px;
    font: inherit;
}

#account-delete-form input:focus {
    outline: 2px solid #d28282;
    outline-offset: 2px;
}

#account-delete-form button {
    padding: 12px 20px;
    border: 1px solid #a44f4f;
    border-radius: 6px;
    background: linear-gradient(#652b34, #34171f);
    color: #ffe0e0;
    font: inherit;
    font-weight: 700;
}

#account-delete-form button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

#account-delete-status {
    min-height: 20px;
    color: #e8c46a;
}


/* SHADOWSKINGS — ACCOUNT LOGOUT BUTTON */

#account-settings-logout {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    padding: 12px 20px;

    background: linear-gradient(180deg, #44202a, #1b0b15);
    border: 1px solid #a66a75;
    border-radius: 6px;

    color: #e8c46a;
    font: inherit;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#account-settings-logout:hover {
    background: linear-gradient(180deg, #602b38, #29101d);
    border-color: #e8c46a;
}

#account-settings-logout:active {
    background: #1b0b15;
}

#account-settings-logout:focus-visible {
    outline: 2px solid #e8c46a;
    outline-offset: 3px;
}

#account-settings-logout:disabled {
    opacity: 0.55;
    cursor: wait;
}

/* IOS MOBILE ACCOUNT SETTINGS STATUS BAR CLEARANCE */
@media (max-width: 700px) and (pointer: coarse) {

    #account-settings-root {
        box-sizing: border-box;
        padding-top: max(
            78px,
            calc(env(safe-area-inset-top, 0px) + 38px)
        );
    }

}
