[hidden]{display:none!important}
.account-shell,.wd-inline-account{--panel:#202027;--panel-soft:#ffffff0b;--line:#ffffff20;--muted:#b9b9c6;--accent:#f5e94f;--danger:#ff8f8f;--success:#8ce6a0}
body.wd-account-page{background:radial-gradient(circle at 20% 0,#303046 0,#17171c 48%,#101014 100%)}
:where(.account-shell,.wd-inline-account) button,
:where(.account-shell,.wd-inline-account) input{font:inherit}
.account-shell{width:min(100%,760px);margin:0 auto;padding:max(20px,env(safe-area-inset-top)) 18px max(32px,env(safe-area-inset-bottom));min-height:100svh}
:where(.account-shell,.wd-inline-account) .account-card{border:1px solid var(--line);border-radius:28px;background:#19191fdd;box-shadow:0 26px 90px #0007;overflow:hidden}
:where(.account-shell,.wd-inline-account) .account-brand{padding:30px 24px 24px;background:linear-gradient(135deg,#ffffff0b,#ffffff03)}
:where(.account-shell,.wd-inline-account) .account-brand h1{font-size:clamp(2.4rem,11vw,4.8rem);max-width:620px}
:where(.account-shell,.wd-inline-account) .account-intro{max-width:540px;margin-bottom:0}
:where(.account-shell,.wd-inline-account) .account-status{margin:18px 20px 0;padding:13px 15px;border:1px solid var(--line);border-radius:14px;background:#ffffff0a;color:#fff}
:where(.account-shell,.wd-inline-account) .account-status[data-type="error"]{border-color:#ff8f8f66;color:#ffd0d0}
:where(.account-shell,.wd-inline-account) .account-status[data-type="success"]{border-color:#8ce6a066;color:#d7ffe0}
:where(.account-shell,.wd-inline-account) .auth-loading{display:flex;align-items:center;gap:12px;padding:28px 24px;color:var(--muted)}
:where(.account-shell,.wd-inline-account) .spinner{width:18px;height:18px;border-radius:50%;border:2px solid #ffffff30;border-top-color:#fff;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
:where(.account-shell,.wd-inline-account) :is(#guest-view,#member-view,#reset-view){padding:20px 20px 26px}
:where(.account-shell,.wd-inline-account) .auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;margin-bottom:20px;border:1px solid var(--line);border-radius:16px;background:#0003}
:where(.account-shell,.wd-inline-account) .auth-tab{min-height:44px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-weight:800;cursor:pointer}
:where(.account-shell,.wd-inline-account) .auth-tab.is-active{background:#fff;color:#15151a}
:where(.account-shell,.wd-inline-account) .account-form{display:grid;gap:16px}
:where(.account-shell,.wd-inline-account) .account-form label{display:grid;gap:7px;color:#f5f5f8;font-weight:760}
:where(.account-shell,.wd-inline-account) .account-form small{color:var(--muted);font-weight:500;line-height:1.4}
:where(.account-shell,.wd-inline-account) .account-form input{text-transform:none;width:100%;min-height:50px;border:1px solid #ffffff2b;border-radius:13px;background:#0e0e13;color:#fff;padding:11px 13px;outline:none}
:where(.account-shell,.wd-inline-account) .account-form input:focus{border-color:#fff;box-shadow:0 0 0 3px #ffffff18}
:where(.account-shell,.wd-inline-account) .account-form input:disabled{opacity:.65}
:where(.account-shell,.wd-inline-account) :is(.primary-button,.secondary-button){min-height:50px;border:0;border-radius:14px;padding:12px 16px;font-weight:900;cursor:pointer}
:where(.account-shell,.wd-inline-account) .primary-button{background:var(--accent);color:#151515}
:where(.account-shell,.wd-inline-account) .secondary-button{background:#ffffff12;color:#fff;border:1px solid var(--line)}
:where(.account-shell,.wd-inline-account) :is(.primary-button,.secondary-button,.text-button):disabled{opacity:.5;cursor:wait}
:where(.account-shell,.wd-inline-account) .text-button{justify-self:start;border:0;padding:4px 0;background:transparent;color:#fff;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
:where(.account-shell,.wd-inline-account) .compact-form{padding-top:4px}
:where(.account-shell,.wd-inline-account) .compact-form>p{margin-top:0}
:where(.account-shell,.wd-inline-account) .member-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}
:where(.account-shell,.wd-inline-account) .member-heading h2,
:where(.account-shell,.wd-inline-account) #reset-view h2{margin:0;font-size:clamp(1.8rem,8vw,3rem);letter-spacing:-.04em}
:where(.account-shell,.wd-inline-account) .member-dot{width:14px;height:14px;border-radius:50%;background:var(--success);box-shadow:0 0 22px var(--success)}
:where(.account-shell,.wd-inline-account) .verification-row{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;color:var(--muted);font-size:.92rem}
:where(.account-shell,.wd-inline-account) .full-width{width:100%}
:where(.account-shell,.wd-inline-account) .account-action-link{display:flex;align-items:center;justify-content:center;text-decoration:none;margin:0 0 10px}
@media(min-width:640px){
  .account-shell{padding-top:42px}
  :where(.account-shell,.wd-inline-account) .account-brand{padding:44px 42px 34px}
  :where(.account-shell,.wd-inline-account) :is(#guest-view,#member-view,#reset-view){padding:28px 42px 40px}
  :where(.account-shell,.wd-inline-account) .account-status{margin-left:42px;margin-right:42px}
  :where(.account-shell,.wd-inline-account) .account-form{max-width:520px}
}

:where(.account-shell,.wd-inline-account) .social-auth{margin:0 0 18px}
:where(.account-shell,.wd-inline-account) .social-button{width:100%;min-height:50px;border:0;border-radius:14px;padding:12px 16px;font-weight:900;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px}
:where(.account-shell,.wd-inline-account) .facebook-button{background:#1877f2;color:#fff}
:where(.account-shell,.wd-inline-account) .facebook-button>span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff;color:#1877f2;font:bold 22px/1 Arial,sans-serif}
:where(.account-shell,.wd-inline-account) .facebook-button:disabled{opacity:.72;cursor:default}
:where(.account-shell,.wd-inline-account) .auth-divider{display:flex;align-items:center;gap:10px;margin:16px 0;color:var(--muted);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
:where(.account-shell,.wd-inline-account) .auth-divider::before,
:where(.account-shell,.wd-inline-account) .auth-divider::after{content:"";height:1px;background:var(--line);flex:1}
:where(.account-shell,.wd-inline-account) .social-connections{display:grid;gap:10px;margin:22px 0;padding:16px;border:1px solid var(--line);border-radius:16px;background:#ffffff07}
:where(.account-shell,.wd-inline-account) .social-connections strong{display:block}
:where(.account-shell,.wd-inline-account) .social-connections small{color:var(--muted);line-height:1.4}


/* Skill badge stays scoped to account surfaces, including game popups. */
:where(.account-shell,.wd-inline-account) .wd-account-ranking{max-width:520px;margin:0 0 20px}
:where(.account-shell,.wd-inline-account) .wd-rank-details{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--panel-soft)}
:where(.account-shell,.wd-inline-account) .wd-rank-badge{display:grid;grid-template-columns:52px minmax(0,1fr) 20px;align-items:center;gap:12px;min-height:88px;padding:16px;cursor:pointer;list-style:none}
:where(.account-shell,.wd-inline-account) .wd-rank-badge::-webkit-details-marker{display:none}
:where(.account-shell,.wd-inline-account) .wd-rank-badge:focus-visible{outline:3px solid var(--rank-color);outline-offset:-3px}
:where(.account-shell,.wd-inline-account) .wd-rank-icon{display:grid;place-items:center;width:52px;height:52px;color:var(--rank-color);border:1px solid currentColor;border-radius:15px}
:where(.account-shell,.wd-inline-account) .wd-rank-icon svg{width:36px;height:36px}
:where(.account-shell,.wd-inline-account) .wd-rank-heading{display:grid;gap:4px;min-width:0}
:where(.account-shell,.wd-inline-account) .wd-rank-heading strong{font-size:1.35rem;line-height:1.2;color:var(--rank-color)}
:where(.account-shell,.wd-inline-account) .wd-rank-heading small{font-size:.75rem;line-height:1.4;color:var(--muted)}
:where(.account-shell,.wd-inline-account) .wd-rank-chevron{font-size:1.5rem}
:where(.account-shell,.wd-inline-account) .wd-rank-details[open] .wd-rank-chevron{transform:rotate(180deg)}
:where(.account-shell,.wd-inline-account) .wd-rank-explanation{padding:0 16px 16px;border-top:1px solid var(--line)}
:where(.account-shell,.wd-inline-account) .wd-rank-explanation h3{font-size:1rem;line-height:1.4;margin:18px 0 8px}
:where(.account-shell,.wd-inline-account) .wd-rank-explanation p{font-size:.9rem;line-height:1.6;margin:0 0 12px}
:where(.account-shell,.wd-inline-account) .wd-rank-list{list-style:none;padding:0;margin:0;display:grid;gap:16px}
:where(.account-shell,.wd-inline-account) .wd-rank-list li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;align-items:start}
:where(.account-shell,.wd-inline-account) .wd-rank-list-icon{color:var(--rank-color)}
:where(.account-shell,.wd-inline-account) .wd-rank-list-icon svg{display:block;width:32px;height:32px}
:where(.account-shell,.wd-inline-account) .wd-rank-list strong{color:var(--rank-color)}
:where(.account-shell,.wd-inline-account) .wd-rank-list li>span:last-child{display:grid;gap:4px;font-size:.85rem;line-height:1.5}
.wd-rank-explorer{--rank-color:#79d4c8}.wd-rank-challenger{--rank-color:#f3a64a}.wd-rank-expert{--rank-color:#c8a6ff}.wd-rank-pro{--rank-color:#f5e94f}
html[data-wd-theme="light"] .wd-rank-explorer{--rank-color:#16685d}html[data-wd-theme="light"] .wd-rank-challenger{--rank-color:#895100}html[data-wd-theme="light"] .wd-rank-expert{--rank-color:#6b35a0}html[data-wd-theme="light"] .wd-rank-pro{--rank-color:#716300}
html[data-wd-theme="high_contrast"] :is(.wd-rank-explorer,.wd-rank-challenger,.wd-rank-expert,.wd-rank-pro){--rank-color:#ffff00}
@media(max-width:380px){:where(.account-shell,.wd-inline-account) .wd-rank-badge{grid-template-columns:44px minmax(0,1fr) 16px;gap:8px;padding:12px}:where(.account-shell,.wd-inline-account) .wd-rank-icon{width:44px;height:44px}}

:where(.account-shell,.wd-inline-account) .password-change-panel{margin:20px 0;border-top:1px solid var(--line);padding-top:16px}
:where(.account-shell,.wd-inline-account) .password-change-panel summary{cursor:pointer;font-weight:700;padding:8px 0}
:where(.account-shell,.wd-inline-account) .password-change-panel .account-status{margin:0}

/* Compact account controls; preserve readable type and 44px touch targets. */
:where(.account-shell,.wd-inline-account) .member-heading{gap:12px;margin-bottom:14px}
:where(.account-shell,.wd-inline-account) .member-heading h2{font-size:clamp(22px,5vw,28px);line-height:1.2;overflow-wrap:anywhere}
:where(.account-shell,.wd-inline-account) .eyebrow{margin:0 0 5px}
:where(.account-shell,.wd-inline-account) .account-form{gap:12px}
:where(.account-shell,.wd-inline-account) .account-form label{gap:5px}
:where(.account-shell,.wd-inline-account) .account-form input{min-height:46px;padding:10px 12px;font-size:16px}
:where(.account-shell,.wd-inline-account) :is(.primary-button,.secondary-button){min-height:44px;padding:10px 14px}
:where(.account-shell,.wd-inline-account) .account-card:has(#member-view:not([hidden])) .account-brand{display:none}

/* Keep verification status and its secondary action clear on narrow screens.
   Game-wide button rules must not turn this into an unpadded primary action. */
:where(.account-shell,.wd-inline-account) .verification-row{display:grid;gap:8px}
:where(.account-shell,.wd-inline-account) #resend-verification{
 display:block;width:100%;min-height:44px;padding:10px 14px;
 border:1px solid var(--line);border-radius:10px;
 background:var(--panel-soft)!important;color:inherit!important;
 font:inherit;font-weight:800;line-height:1.3;text-align:center;
 text-decoration:none;white-space:normal;cursor:pointer;
}
:where(.account-shell,.wd-inline-account) #resend-verification:disabled{opacity:.5;cursor:wait}

/* Keep editing, verification and secondary account tasks in clear groups. */
:where(.account-shell,.wd-inline-account) .member-heading{margin-bottom:12px;gap:8px}
:where(.account-shell,.wd-inline-account) .member-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;min-width:0}
:where(.account-shell,.wd-inline-account) .member-heading .eyebrow{font-size:11px;margin:0}
:where(.account-shell,.wd-inline-account) .member-heading h2{font-size:20px}
:where(.account-shell,.wd-inline-account) .member-dot{width:9px;height:9px;flex:none}
:where(.account-shell,.wd-inline-account) .profile-edit-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}
:where(.account-shell,.wd-inline-account) .profile-edit-row>label{min-width:0}
:where(.account-shell,.wd-inline-account) .profile-edit-row>button{margin-top:26px;min-height:46px}
:where(.account-shell,.wd-inline-account) .verification-row{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;font-size:13px}
:where(.account-shell,.wd-inline-account) #resend-verification{width:auto;padding:8px 10px;font-size:13px}
:where(.account-shell,.wd-inline-account) .password-change-panel{margin:14px 0 0;padding:4px 0;border-bottom:1px solid var(--line)}
:where(.account-shell,.wd-inline-account) .password-change-panel summary{display:list-item;min-height:44px;padding:12px 0;font-size:15px}
:where(.account-shell,.wd-inline-account) .social-connections{margin:0 0 14px;padding:4px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
:where(.account-shell,.wd-inline-account) .social-connections summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:15px;font-weight:700}
:where(.account-shell,.wd-inline-account) .social-connections[open] .social-button{margin:4px 0 8px}
:where(.account-shell,.wd-inline-account) .social-connections small{display:block;padding-bottom:8px}
:where(.account-shell,.wd-inline-account) .account-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
:where(.account-shell,.wd-inline-account) .account-actions :is(a,button){margin:0!important;width:100%;font-size:13px;min-width:0}
@media(max-width:359px){
 :where(.account-shell,.wd-inline-account) .profile-edit-row{grid-template-columns:1fr}
 :where(.account-shell,.wd-inline-account) .profile-edit-row>button{margin-top:0}
 :where(.account-shell,.wd-inline-account) .verification-row{grid-template-columns:1fr}
 :where(.account-shell,.wd-inline-account) #resend-verification{width:100%}
}

:where(.account-shell,.wd-inline-account) .profile-edit-row input{min-width:0!important;max-width:100%}
:where(.account-shell,.wd-inline-account) .account-actions :is(a,button){background:var(--panel-soft)!important;color:inherit!important;border:1px solid var(--line)}

/* Account panels can sit inside a game's themed main element. Keep game-wide
   button colours from making both tabs and recovery links look primary. */
:is(.account-shell,.wd-inline-account) .auth-tabs .auth-tab{background:transparent!important;color:var(--muted)!important}
:is(.account-shell,.wd-inline-account) .auth-tabs .auth-tab.is-active{background:var(--accent)!important;color:var(--wd-accent-text,#281b25)!important}
:is(.account-shell,.wd-inline-account) .account-form .text-button{justify-self:stretch;width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--line)!important;border-radius:10px;background:transparent!important;color:var(--muted)!important;font-weight:800;text-decoration:none;line-height:1.3}
