@font-face {
    font-family: DBDArabic;
    src: url('/drawing-game/arabic-d7c65c17615b.woff') format('woff');
    font-display: swap;
}

.dbding-account-link.dbding-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 5px 12px;
    border: 1px solid #b47054;
    border-radius: 10px;
    background: #31191d;
    color: #ffe2ce;
    text-decoration: none;
    white-space: nowrap;
    font-size: .9rem;
}

.dbding-account-link.dbding-account-link:hover { background: #4b2428; color: #fff; }
.dbding-account-menu { flex-wrap: wrap; }
.dbding-account-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 7px 12px;
}
@media (max-width: 650px) {
    .dbding-account-link.dbding-account-link { min-height: 34px; padding: 3px 8px; font-size: .78rem; }
}
.dbding-account-link:focus-visible,
.account-page :focus-visible { outline: 2px solid #ffc591; outline-offset: 3px; }

.account-page {
    margin: 0;
    min-height: 100vh;
    color-scheme: dark;
    color: #f4f1f4;
    background: radial-gradient(ellipse at 70% 0%, #2a151b 0%, #111118 50%, #0b0d12 100%);
    font-family: DBDArabic, Tahoma, Arial, sans-serif;
    line-height: 1.55;
}

.account-page * { box-sizing: border-box; }
.account-header {
    max-width: 1080px;
    margin: 0 auto;
    padding: 22px clamp(16px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #ffffff16;
}

.account-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f8f5f6;
    font: 800 26px/1 system-ui, sans-serif;
    text-decoration: none;
}
.account-brand img { border-radius: 50%; }
.account-brand em { color: #ef4c58; font-style: normal; }
.account-brand small { color: #c1b7bc; font-size: .52em; font-weight: 500; }
.account-home { color: #ffe1ce; text-underline-offset: .25em; }
.account-main { padding: clamp(28px, 7vh, 72px) 16px 42px; }

.account-card {
    width: min(100%, 450px);
    margin-inline: auto;
    padding: clamp(20px, 5vw, 34px);
    border: 1px solid #785457;
    border-radius: 22px;
    background: #17171f;
    box-shadow: 0 22px 58px #0006;
}
.account-card h1 { margin: 0 0 20px; font-size: clamp(1.55rem, 5vw, 2rem); }
.account-muted, .account-field small { color: #c9bec5; }
.account-muted bdi { color: #ffe1ce; font-weight: 700; overflow-wrap: anywhere; }

.account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 4px;
    margin-bottom: 20px;
    border: 1px solid #ffffff19;
    border-radius: 12px;
    background: #111117;
}
.account-tabs a { padding: 7px 10px; border-radius: 8px; text-align: center; color: #d5cbd0; text-decoration: none; }
.account-tabs a[aria-current] { background: #45242b; color: #fff0e4; }
.account-tabs a:hover { color: white; }
.account-form, .account-field { display: grid; }
.account-form { gap: 16px; }
.account-field { gap: 5px; }
.account-field label { font-weight: 600; }
.account-field input {
    width: 100%;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid #6d5c66;
    border-radius: 10px;
    background: #101016;
    color: #fff;
    font: 1rem system-ui, sans-serif;
}
.account-submit {
    min-height: 46px;
    padding: 8px 14px;
    border: 1px solid #d88376;
    border-radius: 10px;
    background: #9f3345;
    color: #fff;
    font: 700 1rem DBDArabic, Tahoma, Arial, sans-serif;
    cursor: pointer;
}
.account-submit:hover { background: #b24252; }
.account-logout { margin-top: 10px; }
.account-error {
    padding: 10px 12px;
    border: 1px solid #965c65;
    border-radius: 9px;
    color: #ffdbe1;
    background: #3d2029;
}


.account-password-input {
    position: relative;
    direction: ltr;
}
.account-password-input input { padding-inline-end: 52px; }
.account-password-toggle {
    position: absolute;
    inset-inline-end: 4px;
    inset-block-start: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 40px;
    height: 38px;
    border: 0;
    border-radius: 7px;
    color: #f1c9bc;
    background: transparent;
    cursor: pointer;
}
.account-password-toggle[hidden],
.account-password-toggle[aria-pressed="false"] .account-password-slash { display: none; }
.account-password-toggle:hover,
.account-password-toggle[aria-pressed="true"] { background: #442830; color: #fff; }
.account-password-toggle:focus-visible { outline-offset: -2px; }

.account-favorites {
    display: grid;
    gap: 9px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}
.account-favorites a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #5d4149;
    border-radius: 10px;
    color: #ffe8df;
    background: #21191f;
    text-decoration: none;
}
.account-favorites a:hover { border-color: #ac746e; background: #39242c; }
.account-favorites a bdi { min-width: 0; overflow-wrap: anywhere; }
.account-favorite-kind {
    flex: none;
    padding: 2px 7px;
    border-radius: 7px;
    color: #ffddbb;
    background: #45242b;
    font-size: .78rem;
}
