/* THENN·OS account layer: original brand colours, existing game typography. */
.home-progress-row{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:stretch;gap:14px;width:min(760px,100%);flex-shrink:0}
#app .home-progress-row #player-progress{width:100%}
#app .account-entry{display:grid;grid-template-columns:32px minmax(0,1fr) 20px;align-items:center;gap:12px;min-height:66px;padding:10px 16px;border:3px solid #182a20;border-radius:16px 10px 18px 12px;background:#224b37;color:#fff1d8;text-align:left;box-shadow:0 5px 0 #091a13,0 0 0 2px #e89630 inset;text-shadow:none;transition:background .15s}
.account-entry>svg{width:32px;height:32px;color:#f3cb69}.account-entry>span:not(.account-entry-arrow){display:grid;gap:6px;min-width:0}.account-entry strong{font:400 16px/1.35 var(--font-display);color:#fff1d8}.account-entry small{font:800 12px/1.5 var(--font-ui);color:#d2dccb}.account-entry-arrow{justify-self:end;color:#fff1d8;font:900 22px/1 var(--font-ui)}
#app .account-entry:hover{background:#2d5c43}.account-entry[data-connected=true]>svg{color:var(--lime-hi)}
.account-profile-entry{display:grid;gap:5px;width:100%;padding:16px 18px;margin:16px 0;border:2px solid #FBA825;border-radius:14px;background:#131F1C;color:#fff;text-align:left;font:inherit;cursor:pointer}.account-profile-entry>span{font-size:12px;color:#ccd4cd}.account-profile-entry strong{font-size:15px;color:#FFB84D}
.game-account{--account-orange:#FBA825;--account-green:#131F1C;--account-muted:#C4CEC7;position:relative;width:min(940px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow:auto;border:2px solid #FBA82599;border-radius:28px;background:var(--account-green);color:#fff;box-shadow:0 12px 0 #0005,0 36px 110px #000a;font-family:var(--font-ui);text-align:left;isolation:isolate}
.game-account::backdrop{background:#06130fe0;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.game-account[open]{animation:account-appear .2s ease-out}.game-account [hidden]{display:none!important}
.account-close{position:absolute;top:12px;right:12px;z-index:3;display:grid;place-items:center;width:44px;height:44px;border:1px solid #ffffff45;border-radius:50%;background:#131F1C;color:#fff;font:28px/1 var(--font-ui);cursor:pointer}
.account-close:hover{background:#314237}.account-layout{display:grid;grid-template-columns:1.05fr 1fr}
.account-game-side{padding:42px 36px 28px;background:radial-gradient(ellipse at 10% 45%,#36563b80,transparent 72%),#0e211b;min-width:0;border-right:1px solid #ffffff15}
.account-eyebrow{margin:0 0 24px;color:var(--account-muted);font-size:10px;font-weight:900;letter-spacing:2px}
.game-account h2{font-family:var(--font-display);font-size:clamp(32px,4vw,44px);font-weight:400;line-height:1.18;letter-spacing:-1px;text-shadow:0 3px 0 #0005;margin:0 0 18px}.game-account h2 em{font-style:normal;color:var(--account-orange)}
.account-intro{max-width:34ch;margin:0;color:#d2ddd4;font-size:15px;line-height:1.65;font-weight:650}
.account-player-card{display:grid;grid-template-columns:minmax(0,1fr);margin:30px 0 20px;padding:24px;background:#101e19;border:1px solid #95b78a55;border-radius:18px;box-shadow:0 6px 0 #0003}
.account-player-info{display:grid;gap:12px;min-width:0}.account-save-location{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:800;letter-spacing:.3px;color:#ccd7cd}.account-save-location i{width:6px;height:6px;border-radius:50%;background:var(--lime-hi)}.account-level-line{display:flex;align-items:center;gap:16px}.account-level-line img{width:84px;height:84px;object-fit:contain;flex-shrink:0}.account-level-line strong{font-size:44px;line-height:1.15;white-space:nowrap;font-weight:950;letter-spacing:-1px}.account-player-info>span:not(.account-save-location){font-weight:800;font-size:15px;color:var(--lime-hi)}.account-player-info .xp-meter{height:8px;margin:3px 0;background:#3a4b39}.account-player-info small{font-size:13px;color:var(--account-muted);font-weight:700}
.account-local-note{font-size:12px;line-height:1.6;color:var(--account-muted);margin:0 0 10px;max-width:38ch}
.account-brand-side{padding:42px 34px 28px;min-width:0;background:linear-gradient(155deg,#28362855,transparent 50%),var(--account-green)}
.account-brand-logo{display:block;width:min(252px,85%);height:auto;margin:0 0 18px}.account-state-label{display:inline-flex;align-items:center;gap:7px;font-size:10px;letter-spacing:.7px;font-weight:900;color:#ffd081;text-transform:uppercase}.account-state-label::before{content:"";width:6px;height:6px;background:var(--account-orange);border-radius:50%}
.game-account h3{font-family:var(--font-display);font-weight:400;font-size:32px;letter-spacing:-.6px;line-height:1.15;margin:14px 0 12px}.account-brand-intro{font-size:13px;font-weight:650;line-height:1.6;color:var(--account-muted);margin:0}
.account-benefits{display:grid;gap:17px;padding:0;margin:24px 0;list-style:none}.account-benefits li{display:flex;align-items:center;gap:13px}.account-benefits svg{width:26px;height:26px;flex-shrink:0;color:var(--account-orange)}.account-benefits li>span{display:grid;gap:3px}.account-benefits strong{font-size:13px;font-weight:900}.account-benefits small{font-size:11px;line-height:1.5;color:var(--account-muted)}
.game-account .account-primary{width:100%;min-height:52px;height:auto;padding:12px 16px;border:0;border-radius:12px;background:var(--account-orange);color:#131F1C;box-shadow:0 4px 0 #995d14;font:900 14px/1.3 var(--font-ui);text-align:center;cursor:pointer;transition:filter .15s}.game-account .account-primary:hover:not(:disabled){filter:brightness(1.08)}.game-account .account-primary:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px 0 #995d14}.game-account .account-primary:disabled{background:#596047;color:#e0e5d4;box-shadow:0 3px 0 #303727;cursor:default}
.account-status{margin:18px 0 14px;padding:12px 14px;border-left:3px solid var(--account-orange);background:#ffffff05;color:#e0e6df;font-size:12px;line-height:1.6;font-weight:650}.account-status[data-tone=warning]{background:#FBA8250d;color:#ffe0a5}
.game-account .account-text-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;height:auto;padding:8px 0;border:0;background:none;color:#ffd081;font:800 12px/1.4 var(--font-ui);cursor:pointer;text-align:left;text-decoration:underline;text-underline-offset:4px}.game-account .account-text-action:disabled{color:#aab5ac;cursor:default}.account-session-actions{display:flex;gap:18px;flex-wrap:wrap}
.account-privacy{margin:18px 0 0;font-size:10px;line-height:1.65;color:var(--account-muted)}.account-privacy a{display:inline-flex;gap:4px;align-items:center;min-height:24px;color:#d4dfd5;text-underline-offset:3px}
.account-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 28px;background:#0c1713;border-top:1px solid #ffffff17}.account-footer>span{font-size:12px;font-weight:700;color:var(--account-muted)}.account-footer button{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:44px;height:auto;padding:9px 14px;border:1px solid #ffffff38;border-radius:10px;background:none;color:#fff;font:800 12px/1.4 var(--font-ui);cursor:pointer}.account-footer button:hover{background:#ffffff0b}
.account-cloud-panel{border-top:1px solid #ffffff25;padding-top:16px;margin-top:22px}.account-stand-comparison{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}.account-stand-comparison>div{display:grid;gap:3px}.account-stand-comparison>div>span{font-size:10px;color:var(--account-muted)}.account-stand-comparison strong{font-size:21px}.account-stand-comparison>span{color:var(--account-orange)}.account-cloud-panel>p{font-size:10px;color:var(--account-muted);margin:12px 0}.account-confirmation{padding:16px;margin-top:14px;border:1px solid var(--account-orange);border-radius:12px;background:#263421}.account-confirmation h4{font-size:14px;margin:0 0 8px}.account-confirmation p{font-size:12px;line-height:1.55;margin:0 0 14px;color:#e0e6df}.account-confirmation .account-text-action{width:100%}
.account-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.game-account button:focus-visible,.game-account a:focus-visible,.account-profile-entry:focus-visible,.account-entry:focus-visible{outline:3px solid #FFB84D;outline-offset:4px}
@keyframes account-appear{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@media(max-width:700px){.home-progress-row{grid-template-columns:1fr;width:min(460px,100%);gap:10px}#app .account-entry{padding:12px 16px}.game-account{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:22px}.account-layout{grid-template-columns:1fr}.account-game-side{padding:28px 24px 20px;border-right:0;border-bottom:1px solid #ffffff1a}.account-eyebrow{margin-bottom:18px;padding-right:24px}.game-account h2{font-size:34px}.account-intro{font-size:13px;max-width:42ch}.account-player-card{margin:20px 0 16px;padding:20px}.account-level-line{gap:12px}.account-level-line img{width:64px;height:64px}.account-level-line strong{font-size:clamp(28px,8vw,38px)}.account-brand-side{padding:24px}.account-brand-logo{width:220px;margin-bottom:16px}.game-account h3{font-size:28px}.account-benefits{gap:16px;margin:20px 0}.account-footer{padding:14px 20px;flex-direction:column;gap:6px}.account-footer>span{display:none}.account-footer button{width:100%}}
@media(max-width:480px){.home-progress-row{grid-template-columns:1fr;width:min(380px,100%);gap:8px}#app .account-entry{min-height:72px;padding:10px 12px;gap:10px}.account-entry strong{font-size:15px}.account-game-side{padding:28px 20px 16px}.account-brand-side{padding:24px 20px}.account-status{font-size:12px}.account-intro{line-height:1.6}.account-close{top:8px;right:8px}}
@media(max-height:500px) and (min-width:701px){.account-game-side,.account-brand-side{padding-top:28px}.game-account{max-height:calc(100dvh - 16px)}.account-eyebrow{margin-bottom:14px}}
@media(prefers-reduced-motion:reduce){.game-account[open]{animation:none}.account-entry,.game-account .account-primary{transition:none}}
/* Account controls deliberately use the calmer THENN·OS treatment. */
#app #game-account-dialog button{--comic-face:none;background:none;color:#fff;border-radius:10px;box-shadow:none;text-shadow:none}
#app #game-account-dialog .account-close{padding:0;background:#131F1C;border:1px solid #ffffff45;border-radius:50%;color:#fff}
#app #game-account-dialog .account-close{position:sticky;top:12px;left:calc(100% - 56px);margin:12px 12px -56px auto}
#app #game-account-dialog .account-primary{background:#FBA825;color:#131F1C;border-radius:12px;box-shadow:0 4px 0 #995d14}
#app #game-account-dialog .account-primary:disabled{opacity:1;background:#596047;color:#e0e5d4;box-shadow:0 3px 0 #303727}
#app #game-account-dialog .account-text-action{background:none;color:#ffd081;text-decoration:underline;text-underline-offset:4px}
#app #game-account-dialog .account-text-action:disabled{opacity:1;color:#aab5ac}
#app #game-account-dialog .account-footer button{border:1px solid #ffffff38;background:#16271e;color:#fff}
#app #player-account-open{background:#131F1C;color:#fff;border:2px solid #FBA825;border-radius:14px;box-shadow:0 3px 0 #0004}
#game-account-dialog .account-footer{position:sticky;bottom:0;z-index:2;padding-block:12px}
#game-account-meter::-webkit-progress-bar{background:#3a4b39}#game-account-meter::-webkit-progress-value{background:#FBA825}#game-account-meter::-moz-progress-bar{background:#FBA825}
@media(min-width:701px){.account-game-side,.account-brand-side{padding-top:32px;padding-bottom:22px}.account-benefits{gap:14px;margin-block:20px}.account-player-card{margin-top:24px}.account-status{margin-top:14px}}

/* A quiet account invitation after the XP and skin rewards. */
#app #match-result .result-account-prompt{display:grid;gap:14px;margin:20px 0 0;padding:20px 22px;border:3px solid #182a20;border-radius:16px 10px 18px 12px;background:#224b37;color:#fff1d8;box-shadow:0 5px 0 #091a13,0 0 0 2px #e89630 inset}
#app #match-result .result-account-prompt[hidden]{display:none}
#app #match-result .result-account-prompt h2{font:400 22px/1.3 var(--font-display);margin:0 0 7px;color:#fff1d8}
#app #match-result .result-account-prompt p{font:750 13px/1.6 var(--font-ui);margin:0;color:#d2dccb;max-width:46ch}
#app #match-result #result-account-open{display:inline-flex;justify-content:space-between;align-items:center;gap:16px;width:fit-content;min-height:44px;height:auto;padding:10px 14px;border:2px solid #182a20;border-radius:10px 7px 12px 8px;background:#ffb235;color:#182a20;box-shadow:0 3px 0 #091a13;font:900 13px/1.4 var(--font-ui);text-shadow:none;text-align:left}
#app #match-result #result-account-open:hover{background:#ffca64}
#app #match-result #result-account-open:focus-visible{outline:3px solid #fff1d8;outline-offset:4px}
@media(max-width:480px){#app #match-result .result-account-prompt{padding:18px}#app #match-result .result-account-prompt h2{font-size:20px}#app #match-result #result-account-open{width:100%}}
@media(max-width:980px){#app #match-result .result-account-prompt{order:4}#app #match-result .result-status{order:5}}
