/* PokéStat account dropdown. Shared across the three released game pages. */
.pokestat-account-toolbar{position:relative!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;width:100%!important;max-width:100%!important;min-height:40px!important;margin:8px 0 14px!important;padding:0!important;z-index:10000!important;isolation:isolate!important;box-sizing:border-box!important}
.pokestat-account-trigger{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:auto!important;min-width:106px!important;min-height:36px!important;margin:0!important;padding:8px 16px!important;border:1px solid #d9ac2e!important;border-radius:10px!important;background:#1c3554!important;color:#ffdf65!important;box-shadow:0 2px 12px #0005!important;font:800 13px/1.2 system-ui,Segoe UI,sans-serif!important;cursor:pointer!important;letter-spacing:0!important;text-transform:none!important}
.pokestat-account-trigger::after{content:'▾';font-size:12px;line-height:1;transition:transform .15s ease}
.pokestat-account-trigger[aria-expanded="true"]::after{transform:rotate(180deg)}
.pokestat-account-trigger:hover{background:#29496c!important}
.pokestat-account-trigger:focus-visible{outline:2px solid #ffda49!important;outline-offset:3px!important}
.pokestat-account-dropdown[hidden]{display:none!important}
.pokestat-account-dropdown{position:absolute!important;right:0!important;top:calc(100% + 8px)!important;z-index:10001!important;width:min(365px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important;max-height:min(76vh,680px)!important;overflow-y:auto!important;padding:20px!important;border:1px solid #577b9e!important;border-top:3px solid #f7ca36!important;border-radius:14px!important;background:radial-gradient(ellipse at 0 0,rgba(217,47,75,.14),transparent 60%),radial-gradient(ellipse at 100% 100%,rgba(49,115,209,.18),transparent 60%),#101e34!important;box-shadow:0 18px 48px #000b!important;color:#f6f8fc!important;font:14px/1.45 system-ui,Segoe UI,sans-serif!important;text-align:left!important;box-sizing:border-box!important}
.pokestat-account-dropdown *{box-sizing:border-box!important}
.pokestat-account-dropdown #pokestatAccountPanel{display:block!important;position:static!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:left!important}
#pokestatAccountPanel .account-top{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;margin:0 0 15px!important}
#pokestatAccountPanel .account-title{font:900 18px/1.25 system-ui,Segoe UI,sans-serif!important;color:#ffdc59!important}
#pokestatAccountPanel .account-note{font:400 12px/1.5 system-ui,Segoe UI,sans-serif!important;color:#afc0d7!important;margin:6px 0 0!important}
#pokestatAccountPanel .account-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:9px!important;width:100%!important;margin:0!important}
#pokestatAccountPanel #pokestatSignedIn .account-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}
#pokestatAccountPanel #pokestatAccountName{grid-column:1/-1!important;display:block!important;min-width:0!important;padding:4px 0 10px!important;text-align:left!important;overflow-wrap:anywhere!important;color:#ffdf66!important;font-size:13px!important;font-weight:800!important}
#pokestatAccountPanel #pokestatDeleteCloud{grid-column:1/-1!important;background:#392536!important;border-color:#9b5369!important;color:#ffd8e0!important}
#pokestatAccountPanel #pokestatGoogleSignIn{background:#f3f5f9!important;border-color:#f3f5f9!important;color:#182944!important}
#pokestatAccountPanel input{display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;margin:0!important;padding:10px 12px!important;background:#091a2e!important;border:1px solid #587590!important;border-radius:9px!important;color:#fff!important;font:500 14px system-ui,Segoe UI,sans-serif!important}
#pokestatAccountPanel input:focus-visible{outline:2px solid #f5ca3d!important;outline-offset:2px!important}
#pokestatAccountPanel button{display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;min-height:39px!important;margin:0!important;padding:9px 11px!important;background:#27486c!important;border:1px solid #6183a7!important;border-radius:9px!important;color:#fff!important;font:800 13px/1.3 system-ui,Segoe UI,sans-serif!important;white-space:normal!important;cursor:pointer!important;box-shadow:none!important}
#pokestatAccountPanel button:hover:not(:disabled){filter:brightness(1.12)!important}
#pokestatAccountPanel button:disabled{opacity:.55!important;cursor:wait!important}
#pokestatAccountPanel [hidden]{display:none!important}
#pokestatAccountPanel .account-status{margin:12px 0 7px!important;color:#b0f1d1!important;font-size:12px!important;line-height:1.5!important;text-align:left!important}
#pokestatAccountPanel .account-error{color:#ffb3b3!important}
@media(max-width:520px){.pokestat-account-toolbar{margin:8px 0 12px!important}.pokestat-account-dropdown{padding:16px!important}}
/* Existing game completion prompts reuse the same account dropdown. */
.pokestat-finish-account{margin-top:18px;padding:15px 17px;border:1px solid #b99c36;border-radius:12px;background:rgba(249,202,40,.07);text-align:center}
.pokestat-finish-account[hidden]{display:none!important}
.pokestat-finish-account p{margin:0 0 12px;color:#f7e6a8;font-weight:700}
.pokestat-finish-account .pokestat-finish-login{background:#f5c940;color:#162439;border:0;border-radius:10px;padding:11px 20px;font-weight:900;cursor:pointer}

/* Static toolbar: visible even before the account module loads. */
#pokestatAccountToolbar{display:flex!important;position:relative!important;visibility:visible!important;opacity:1!important;justify-content:flex-end!important;width:100%!important;max-width:100%!important;margin:7px 0 12px!important;min-height:38px!important;z-index:100000!important}
#pokestatAccountTrigger{display:inline-flex!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:1!important}
#pokestatAccountDropdown{z-index:100001!important}
#pokestatAccountDropdown[hidden]{display:none!important}
/* Move manual save transfers to the bottom of Champion Challenge and Gauntlet. */
.champion-save-tools-bottom{max-width:960px;margin:50px auto 30px;padding:18px;border:1px solid rgba(250,204,21,.32);border-radius:14px;background:rgba(16,29,53,.86);color:#f5f7fb}
.champion-save-tools-bottom h2{margin:0 0 6px;font-size:17px;color:#facc15}
.champion-save-tools-bottom p{margin:0 0 12px;color:#cbd5e1;font-size:13px}
.champion-save-tools-bottom .save-panel-actions{display:flex;flex-wrap:wrap;gap:10px}
.champion-save-tools-bottom button{background:#263b5b;color:#fff;border:1px solid #7287aa;border-radius:10px;padding:10px 17px;font-weight:750;cursor:pointer}
.champion-save-tools-bottom button:hover{background:#345079}
.champion-save-tools-bottom .save-transfer-status{margin:10px 0 0}
@media(max-width:520px){.champion-save-tools-bottom .save-panel-actions{flex-direction:column}.champion-save-tools-bottom button{width:100%}}

/* Profile username editor within the compact account dropdown. */
#pokestatAccountPanel #pokestatSignedIn .account-username-label,
#pokestatAccountPanel #pokestatSignedIn #pokestatPrivateEmail,
#pokestatAccountPanel #pokestatSignedIn #pokestatUsernameInput,
#pokestatAccountPanel #pokestatSignedIn #pokestatUsernameHelp,
#pokestatAccountPanel #pokestatSignedIn #pokestatUsernameSave,
#pokestatAccountPanel #pokestatSignedIn #pokestatUsernameMessage{grid-column:1/-1!important}
#pokestatAccountPanel .account-username-label{font-weight:800!important;color:#f7d65c!important;font-size:13px!important}
#pokestatAccountPanel #pokestatUsernameMessage{margin:0!important;font-size:12px!important;color:#b7dfce!important;overflow-wrap:anywhere!important}
#pokestatAccountPanel #pokestatPrivateEmail{overflow-wrap:anywhere!important}
