/* Account appears above the current page; authentication remains server-side. */
dialog.account-dialog{width:min(1040px,calc(100vw - 48px));max-width:1040px;max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid #b889ad6b;border-radius:23px;overflow:hidden;color:#f4f2fa;background:linear-gradient(140deg,#1e2534,#131c2b);box-shadow:0 35px 130px #000b}
dialog.account-dialog::backdrop{background:#070e1cbd;backdrop-filter:blur(9px)}
.account-dialog-frame{display:flex;flex-direction:column;max-height:calc(100dvh - 50px)}
.account-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none;padding:16px 25px;border-bottom:1px solid #ffffff15;background:#161d2d}
.account-dialog-heading{display:flex;align-items:center;gap:12px}
.account-dialog-heading>span{font-size:29px;line-height:1;color:#f3a0ca}
.account-dialog-header h2{margin:0;padding:0;font-size:17px;font-weight:650;letter-spacing:-.15px;line-height:1.4}
.account-modal-close{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:8px;border:1px solid #ffffff14;border-radius:9px;background:#ffffff04;color:#bfcbdf;transition:background .2s,color .2s}
.account-modal-close:hover{background:#ffffff10;color:#fff}
.account-modal-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.account-dialog-content{min-height:185px;min-width:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:22px 24px 25px}
.account-dialog-content:focus{outline:none}
.account-dialog .login-layout{max-width:none;margin:0;border-radius:17px;grid-template-columns:.92fr 1.08fr}
.account-dialog .login-world{min-height:570px;padding:38px 29px 27px}
.account-dialog .login-world h1{font-size:39px;margin:23px 0}
.account-dialog .login-world-copy>p:last-child{font-size:14px}
.account-dialog .login-world .eyebrow{font-size:9px;letter-spacing:1.65px}
.account-dialog .login-panel{padding:29px 31px 27px}
.account-dialog .login-panel>.eyebrow{display:none}
.account-dialog .login-panel h2{font-size:28px;padding-right:0;margin:0 0 9px}
.account-dialog .login-description{margin-bottom:21px;font-size:13px}
.account-dialog .account-form{gap:15px}
.account-dialog .account-field input{min-height:46px}
.account-dialog .account-submit{min-height:48px}
.account-dialog .captcha-image-row img{width:220px}
.account-dialog .login-registration{margin-top:18px}
.account-dialog .profile-intro{gap:19px;margin-bottom:24px;flex-wrap:wrap}
.account-dialog .profile-identity{flex:1;min-width:220px;gap:18px}
.account-dialog .player-avatar{width:70px;height:70px;font-size:34px;border-radius:19px}
.account-dialog .profile-intro h1{font-size:32px}
.account-dialog .profile-connected{font-size:10px}
.account-dialog .logout-button{min-height:38px;padding:9px 17px;font-size:12px}
.account-dialog .profile-stats{gap:13px;margin-bottom:22px}
.account-dialog .profile-stat{padding:23px 20px;border-radius:14px}
.account-dialog .profile-stat h2{font-size:24px;padding-right:0}
.account-dialog .profile-stat h2.stat-date{font-size:17px}
.account-dialog .history-panel{padding:25px;border-radius:14px;margin-bottom:22px}
.account-dialog .history-heading h2{font-size:23px;padding-right:0}
.account-dialog .history-heading{gap:13px}
.account-dialog .history-tag{padding:6px 9px;font-size:10px}
.account-dialog .history-description{margin:14px 0 22px}
.account-dialog .profile-news{padding:24px;border-radius:14px}
.account-dialog .profile-news h2{font-size:22px;padding-right:0}
.account-modal-loading{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;color:#bac6d9;font-size:14px}
.account-modal-spinner{width:31px;height:31px;border:2px solid #f39ac628;border-top-color:#f39ac6;border-radius:50%;animation:account-modal-spin .8s linear infinite}
.account-modal-failure{max-width:510px;padding:38px 20px;margin:auto;text-align:center;outline:none}
.account-modal-failure .eyebrow{font-size:10px}
.account-modal-failure h3{font-size:23px;margin:15px 0}
.account-modal-failure>p:not(.eyebrow){font-size:14px;line-height:1.8;color:#adbed5}
.account-modal-retry{margin-top:25px;font-size:14px;min-height:46px}
.account-modal-direct{display:block;font-size:12px;color:#eeafd1;margin-top:21px}
.news-site-header .news-account-link{color:#f0b1d2}
@keyframes account-modal-spin{to{transform:rotate(360deg)}}
/* Shared dialog-motion.js handles entrance and exit, including a gentle reduced-motion fade. */
@media(max-width:760px){
dialog.account-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:18px}
.account-dialog-frame{max-height:calc(100dvh - 18px)}
.account-dialog-header{padding:13px 17px;gap:14px}
.account-dialog-header h2{font-size:15px}
.account-dialog-heading{gap:9px}
.account-dialog-heading>span{font-size:26px}
.account-modal-close{width:35px;height:35px}
.account-dialog-content{padding:16px;scrollbar-gutter:auto}
.account-dialog .login-layout{grid-template-columns:1fr;border-radius:13px}
.account-dialog .login-world{display:none}
.account-dialog .login-panel{padding:25px 22px}
.account-dialog .login-panel h2{font-size:26px}
.account-dialog .account-field label{font-size:12px}
.account-dialog .account-field input{font-size:16px;min-height:46px}
.account-dialog .login-description{font-size:12px}
.account-dialog .profile-intro{flex-direction:column;align-items:stretch;gap:14px}
.account-dialog .profile-identity{min-width:0;gap:14px}
.account-dialog .player-avatar{width:58px;height:58px;font-size:28px}
.account-dialog .profile-intro h1{font-size:26px}
.account-dialog .profile-connected{margin-left:72px}
.account-dialog .logout-form{margin:0;align-self:flex-end}
.account-dialog .profile-stats{grid-template-columns:1fr;gap:11px}
.account-dialog .profile-stat h2.stat-date{font-size:21px}
.account-dialog .history-panel{padding:22px 18px}
.account-dialog .history-heading{align-items:flex-start;flex-direction:column;gap:12px}
.account-dialog .history-heading h2{font-size:22px}
.account-dialog .profile-news{padding:22px 18px}
.account-dialog .profile-news h2{font-size:21px}
.account-dialog .captcha-image-row{gap:10px}
.account-modal-failure{padding:25px 10px}
.account-modal-failure h3{font-size:21px}
}
@media(max-width:480px){.news-site-header{height:auto}.news-header-inner{flex-wrap:wrap;gap:7px;padding-block:12px}.news-site-header nav{width:100%;justify-content:center;gap:22px;padding-top:2px}}
@media(prefers-reduced-motion:reduce){.account-dialog *{animation:none!important;transition:none!important}.account-modal-spinner{border-top-color:#f39ac6;border-right-color:#f39ac6}}
