.account-panel{scroll-margin-top:100px}.account-panel [hidden]{display:none!important}.account-panel form{display:grid;gap:12px;max-width:480px;margin-top:22px}.account-panel label{font-weight:700}.account-panel input{width:100%;box-sizing:border-box;min-height:48px;border:1px solid #53604e;border-radius:12px;background:#121a12;color:#f8faf5;padding:12px 14px;font:inherit}.account-panel button{font:inherit;font-weight:750;cursor:pointer;border:1px solid #64745a;border-radius:12px;padding:12px 18px;background:#1d291b;color:#f5f9f0;min-height:46px}.account-panel button:disabled{opacity:.6;cursor:wait}.account-panel input:focus-visible,.account-panel button:focus-visible{outline:3px solid #a3e635;outline-offset:3px}.account-panel .auth-primary{background:#b2ed62;color:#17200c;border-color:#b2ed62}.auth-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.auth-tabs button[aria-pressed=true]{border-color:#b2ed62;color:#b2ed62}.account-panel .auth-text{background:transparent;border-color:transparent;text-align:left;padding-left:0}.auth-note,#passwordHint,#migrationHint{font-size:.9rem;line-height:1.65;opacity:.8}.account-panel #accountStatus{min-height:24px;line-height:1.6}.account-panel #authMember{display:flex;gap:12px;flex-wrap:wrap}.account-panel #migrationHint{flex-basis:100%}html[data-theme=light] .account-panel input{background:#fff;color:#142316;border-color:#a3afa0}html[data-theme=light] .account-panel button{background:#edf3e9;color:#1b341b;border-color:#a3afa0}html[data-theme=light] .account-panel .auth-primary{background:#275c23;color:#fff}html[data-theme=light] .auth-tabs button[aria-pressed=true]{background:#dcefd0;border-color:#376b28;color:#214c17}html[data-theme=light] .account-panel .auth-text{background:transparent}
.profile-editor{border-top:1px solid #52604d;margin-top:28px;padding-top:24px}.profile-editor h3{font-size:1.35rem}.avatar-editor{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.avatar-preview{width:104px;height:104px;flex:0 0 104px;overflow:hidden;border-radius:28px;background:#23321d;border:1px solid #607653;display:grid;place-items:center}.avatar-preview img{width:100%;height:100%;object-fit:cover}.avatar-preview span{font-size:40px;color:#b8ef6a}.avatar-editor p{font-size:.85rem;line-height:1.6;opacity:.75}.file-choice{display:inline-block;cursor:pointer;border:1px solid #718965;border-radius:12px;padding:10px 16px}.account-panel .file-native{display:block;margin-top:10px;max-width:320px;font-size:.85rem}.account-chip{display:inline-flex!important;align-items:center;gap:8px;max-width:160px;min-height:38px;padding:5px 11px!important;border:1px solid #53624d;border-radius:50px;text-decoration:none;color:#edf6e8!important;font-weight:700;font-size:13px!important}.account-chip span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-chip img{width:26px;height:26px;border-radius:50%;object-fit:cover}.owner-link{font-size:12px!important;color:#b2ed62!important;white-space:nowrap}.hub-header nav,.site-header nav{align-items:center}html[data-theme=light] .account-chip{color:#193717!important;border-color:#94b486;background:#e8f1e2}html[data-theme=light] .owner-link{color:#315d22!important}html[data-theme=light] .avatar-preview{background:#e6efdf;border-color:#aac398}html[data-theme=light] .avatar-preview span{color:#456b2c}.profile-editor [hidden]{display:none!important}
/* Account entry is a header action, outside game navigation. */
.cabinet-button{display:inline-flex;align-items:center;gap:11px;flex:0 0 auto;min-height:49px;padding:9px 14px;border:1px solid #8cad6a;border-radius:14px;background:linear-gradient(135deg,#bce98c14,#caff7205);color:#eaf6df;text-decoration:none;margin-left:auto;font:700 12px/1.35 Manrope,Hub,Arial,sans-serif;transition:background .2s,border-color .2s}.cabinet-button:hover{background:#a3d76b22;border-color:#c5ef91}.cabinet-button:focus-visible{outline:3px solid #caff8a;outline-offset:4px}.cabinet-button-icon{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border:1px solid #8daa6b66;border-radius:50%;color:#bee891;font-size:22px}.cabinet-button img{width:32px;height:32px;flex:0 0 32px;border-radius:50%;object-fit:cover}.cabinet-button-label{display:grid;gap:3px;max-width:155px}.cabinet-button-label strong{font-size:12px}.cabinet-button-label small{font-size:10px;font-weight:500;color:#acbc9f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cabinet-button>b{font-size:17px;color:#bce98b}.site-header .header-end:has(.cabinet-button) .edition{display:none}.site-header .header-end:has(.cabinet-button){gap:14px}.settings-account-link{display:inline-block;padding:18px 22px;margin-top:22px;border:1px solid #64834a;border-radius:12px;color:#c5eda0;font-weight:750}.hub-header:has(>.cabinet-button){gap:24px}.hub-header:has(>.cabinet-button)>nav{margin-left:auto;min-width:0}html[data-theme=light] .cabinet-button{background:#e6f0de;color:#203d17;border-color:#8da978}html[data-theme=light] .cabinet-button:hover{background:#d7e9c8}html[data-theme=light] .cabinet-button-label small{color:#4d6941}html[data-theme=light] .cabinet-button-icon,html[data-theme=light] .cabinet-button>b{color:#3e6629}html[data-theme=light] .settings-account-link{color:#2c591c}
@media(max-width:900px){.hub-header:has(>.cabinet-button){flex-wrap:wrap}.hub-header:has(>.cabinet-button)>nav{order:3;width:100%;margin-left:0;justify-content:center;flex-wrap:wrap}.hub-header:has(>.cabinet-button)>.cabinet-button{order:2}.cabinet-button{min-height:44px;padding:8px 10px}.cabinet-button-label small{display:none}}@media(max-width:450px){.cabinet-button-label strong{font-size:11px}.cabinet-button{gap:7px}.cabinet-button>b{display:none}.site-header .header-end .clock{display:none}}
html{scrollbar-gutter:stable}.motion-disabled *,.motion-disabled *::before,.motion-disabled *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
/* Modal shell is styled before lazy content arrives, avoiding a white flash. */
.cabinet-dialog{position:fixed;inset:0;width:min(1120px,calc(100vw - 36px));max-width:none;max-height:calc(100dvh - 36px);margin:auto;padding:0;border:1px solid #66884c;border-radius:24px;background:#0c120f;color:#ecf4e4;overflow-y:auto;box-shadow:0 30px 110px #0007}.cabinet-dialog::backdrop{background:#040905b8}.cabinet-dialog [hidden]{display:none!important}.cabinet-modal-bar{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:12px 20px;background:#132014;border-bottom:1px solid #3a542d}.cabinet-modal-bar>button{background:#1e301a;border:1px solid #5b7945;color:#e1f2d3;border-radius:10px;padding:9px 13px;font:650 12px/1.5 Manrope,Hub,Arial,sans-serif}.cabinet-modal-bar>strong{font:700 13px/1.5 Manrope,Hub,Arial,sans-serif}.cabinet-modal-bar .cabinet-close{margin-left:auto;font:400 28px/1 Arial,sans-serif;width:42px;height:42px;padding:0}.cabinet-loading{padding:45px 30px;font:600 14px/1.7 Manrope,Hub,Arial,sans-serif}.cabinet-modal-open{overflow:hidden}html[data-theme=light] .cabinet-dialog{background:#f3f7ee;color:#1c3814;border-color:#a3bf8a}html[data-theme=light] .cabinet-modal-bar{background:#edf4e4;border-color:#b9ceaa}html[data-theme=light] .cabinet-modal-bar>button{background:#fff;color:#2d4f20;border-color:#b1c89f}
/* A rectangular player card: a dedicated portrait, nickname, and account caption. */
.cabinet-button{display:grid;grid-template-columns:42px minmax(0,1fr) 14px;gap:12px;width:224px;min-height:64px;padding:10px 14px 10px 11px;border:1px solid #536b5c;border-left:3px solid #c3ff62;border-radius:6px;background:#17221d;color:#f1f7ed;box-shadow:inset 0 1px #ffffff0b;transition:background .18s,border-color .18s,transform .18s;overflow:hidden}.cabinet-button:hover{background:#223126;border-color:#b1d58e;transform:translateY(-1px)}.cabinet-avatar{width:40px;height:40px;display:grid;place-items:center;overflow:hidden;flex-shrink:0;border:1px solid #698369;border-radius:7px;background:#293b2b;color:#d7f3bf;font:800 19px/1 Manrope,Hub,Arial,sans-serif}.cabinet-avatar>img{display:block;width:40px;height:40px;object-fit:cover;border-radius:0;flex:none}.cabinet-avatar>svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.cabinet-button-label{display:grid;min-width:0;max-width:none;gap:5px}.cabinet-button-label strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 14px/1.25 Manrope,Hub,Arial,sans-serif;letter-spacing:0}.cabinet-button-label small{display:block;font:600 10px/1.25 Manrope,Hub,Arial,sans-serif;letter-spacing:.02em;color:#b2c4ac}.cabinet-chevron{font:400 27px/1 Arial,sans-serif;color:#bfe990;transition:transform .18s}.cabinet-button:hover .cabinet-chevron{transform:translateX(2px)}.portal-home-link{display:inline-flex;gap:9px;align-items:center;font-weight:800}.portal-home-link img{width:24px;height:24px;filter:none!important;object-fit:contain;flex-shrink:0}
html[data-theme=light] .cabinet-button{background:#fff;color:#183323;border-color:#adc2a5;border-left-color:#477225;box-shadow:0 2px 8px #233d1510}html[data-theme=light] .cabinet-button:hover{background:#edf5e7;border-color:#60884b}html[data-theme=light] .cabinet-avatar{background:#e6f0dc;border-color:#b0c69e;color:#365b23}html[data-theme=light] .cabinet-button-label small{color:#52684b}html[data-theme=light] .cabinet-chevron{color:#3c6426}
@media(max-width:900px){.cabinet-button{width:206px;min-height:58px;grid-template-columns:38px minmax(0,1fr) 12px;padding:8px 11px;gap:10px}.cabinet-avatar,.cabinet-avatar>img{width:36px;height:36px}.cabinet-button-label small{display:block}}
@media(max-width:450px){.cabinet-button{width:176px;grid-template-columns:34px minmax(0,1fr);padding:8px 9px;gap:9px;min-height:55px}.cabinet-avatar,.cabinet-avatar>img{width:32px;height:32px}.cabinet-button-label strong{font-size:12px}.cabinet-button-label small{font-size:9px}.cabinet-chevron{display:none}.hub-header:has(>.cabinet-button){gap:12px}.hub-brand>span{font-size:15px}.hub-brand small{font-size:7px!important}.hub-brand{gap:8px}.hub-brand>img{width:32px!important;height:32px!important}}
@media(prefers-reduced-motion:reduce){.cabinet-button,.cabinet-chevron{transition:none}.cabinet-button:hover,.cabinet-button:hover .cabinet-chevron{transform:none}}

/* Shared parent identity in every game footer. */
footer .footer-signature{display:inline-flex;align-items:center;gap:11px;flex-shrink:0;text-decoration:none;color:#edf6e8;font:800 16px/1.2 Manrope,Hub,Arial,sans-serif;letter-spacing:-.03em}footer .footer-signature img{display:block;width:36px;height:36px;flex-shrink:0;object-fit:contain;border-radius:0;filter:none!important}footer .footer-signature strong>span{color:#b9ed7e}html[data-theme=light] footer .footer-signature{color:#203d20}html[data-theme=light] footer .footer-signature strong>span{color:#3e682a}
.recovery-result{margin-top:24px;padding:22px;border:1px solid var(--accent,#68edb4);border-radius:16px;background:var(--panel,rgba(104,237,180,.06))}.recovery-result h3{margin:0 0 12px;font-size:20px}.recovery-result textarea{display:block;box-sizing:border-box;width:100%;padding:14px;margin:8px 0 16px;border:1px solid currentColor;border-radius:10px;background:transparent;color:inherit;font:600 15px/1.6 monospace;resize:none;overflow-wrap:anywhere}.recovery-result button{margin:5px 8px 5px 0}#authMember button{margin:6px 8px 6px 0}#recoveryField,#legacyEmailField{margin-bottom:16px}
