/* Shared, restrained account UI. Authentication remains server-rendered. */
body.acct-xp {
  --bg: #101113;
  --bg-2: #101113;
  --surface: #17191c;
  --surface-2: #17191c;
  --text: #eeeef0;
  --text-2: #a3a5aa;
  --text-3: #a3a5aa;
  --border: #2b2e33;
  --border-bright: #44484f;
  --water: #a8c3df;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow: none;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font-display);
}
body.acct-xp::before,
body.acct-xp .scene,
body.acct-xp .waterline,
body.acct-xp .game-card::before,
body.acct-xp .game-card::after,
body.acct-xp .pack-card::before { display: none; }
body.acct-xp .acct-wrap { max-width: 880px; margin: 0 auto; padding: 0 32px; }
body.acct-xp .topbar { position: static; background: transparent; border: 0; backdrop-filter: none; }
body.acct-xp nav { padding: 24px 0; }
body.acct-xp .brand { font-size: 14px; font-weight: 550; gap: 10px; min-height: 44px; }
body.acct-xp .brand img { width: 24px; height: 24px; }
body.acct-xp h1 { font-size: 30px; font-weight: 550; letter-spacing: -0.8px; line-height: 1.25; }
body.acct-xp h2 { font-size: 16px; font-weight: 550; letter-spacing: -0.2px; line-height: 1.4; }
body.acct-xp p { overflow-wrap: break-word; }
body.acct-xp a:focus-visible,
body.acct-xp button:focus-visible { outline: 2px solid var(--water); outline-offset: 4px; }
body.acct-xp a:hover { color: var(--text); }

/* Sign in has one heading and one primary action. */
body.acct-xp .signin-main { padding: clamp(48px, 12vh, 120px) 0 96px; }
body.acct-xp .signin-stage {
  display: block; width: 100%; max-width: 360px; min-height: 0;
  margin: 0 auto; padding: 0; text-align: left; background: none;
  border: 0; border-radius: 0; box-shadow: none;
}
body.acct-xp .signin-stage h1 { margin: 0 0 12px; font-size: 30px; font-weight: 550; letter-spacing: -0.8px; }
body.acct-xp .signin-stage .lede { margin: 0 0 32px; color: var(--text-2); font-size: 15px; }
body.acct-xp .signin-return { color: var(--text-2); margin: -16px 0 24px; font-size: 13px; }
body.acct-xp .signin-actions { display: flex; align-items: stretch; flex-direction: column; gap: 12px; }
body.acct-xp .btn-lakeside,
body.acct-xp .btn-discord {
  display: flex; justify-content: center; align-items: center; min-height: 46px;
  padding: 10px 16px; border-radius: 6px; font-size: 14px; font-weight: 550;
  letter-spacing: 0; box-shadow: none; text-decoration: none; transform: none;
}
body.acct-xp .btn-lakeside { background: var(--water); border: 1px solid var(--water); color: #101113; }
body.acct-xp .btn-discord { background: none; border: 1px solid var(--border-bright); color: var(--text); }
body.acct-xp .btn-lakeside:hover { background: #bbd0e5; border-color: #bbd0e5; color: #101113; filter: none; box-shadow: none; transform: none; }
body.acct-xp .btn-discord:hover { background: var(--surface); border-color: var(--text-2); box-shadow: none; transform: none; }
body.acct-xp .signin-note { margin-top: 24px; color: var(--text-2); font-size: 13px; line-height: 1.7; }
body.acct-xp .signin-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Account identity and the game list use a single aligned column. */
body.acct-xp .id-hero { padding: 40px 0 48px; align-items: flex-end; gap: 24px; }
body.acct-xp .id-left { gap: 0; min-width: 0; }
body.acct-xp .id-left h1 { font-size: 30px; margin: 0 0 16px; }
body.acct-xp .account-name { font-weight: 500; overflow-wrap: anywhere; }
body.acct-xp .id-left .mail { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
body.acct-xp .signout { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; color: var(--text-2); white-space: nowrap; border-radius: 0; }
body.acct-xp .signout:hover { color: var(--text); box-shadow: none; }
body.acct-xp .portal-section { margin: 0 0 48px; }
body.acct-xp .section-label { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--text-2); text-transform: none; letter-spacing: 0; }
body.acct-xp .game-cards { display: block; }
body.acct-xp .game-card,
body.acct-xp .game-card.mf {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px;
  padding: 24px 0; background: none; border: 0; border-top: 1px solid var(--border);
  border-radius: 0; box-shadow: none; transform: none; overflow: visible;
}
body.acct-xp .game-card:hover { border-color: var(--border); background: none; box-shadow: none; transform: none; }
body.acct-xp .game-card .top { grid-column: 1; margin: 0; justify-content: flex-start; gap: 12px; }
body.acct-xp .game-card .game-heading { flex: 0 1 auto; gap: 0; }
body.acct-xp .game-card h2 { font-size: 16px; font-weight: 550; }
body.acct-xp .status-chip { color: var(--text-2); font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; background: none; border: 0; padding: 0; border-radius: 0; }
body.acct-xp .game-card .desc { grid-column: 1; max-width: 50ch; margin: 0; color: var(--text-2); font-size: 14px; }
body.acct-xp .game-card .links { grid-column: 2; grid-row: 1 / span 3; align-self: center; align-items: flex-end; flex-direction: column; gap: 0; margin: 0; }
body.acct-xp .game-card .links a,
body.acct-xp .game-card .links a.go {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0;
  background: none; color: var(--text); border: 0; border-radius: 0;
  font-size: 14px; font-weight: 500; text-decoration: none;
}
body.acct-xp .game-card .links a:not(.go) { color: var(--text-2); font-weight: 400; font-size: 13px; }
body.acct-xp .game-card .links a:hover { color: var(--water); text-decoration: underline; text-underline-offset: 4px; filter: none; }
body.acct-xp .empty-note { grid-column: 1; margin: 2px 0 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--text-2); font-size: 13px; }
body.acct-xp .purchases { grid-column: 1 / -1; margin-top: 12px; border-radius: 0; background: var(--surface); }
body.acct-xp .purchase-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
body.acct-xp .sub-card { padding: 24px 0; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; gap: 24px; }
body.acct-xp .sub-card h2 { font-size: 16px; font-weight: 550; }
body.acct-xp .sub-card p { max-width: 55ch; color: var(--text-2); font-size: 14px; }
body.acct-xp .pat-mark { display: none; }
body.acct-xp .sub-card .pat,
body.acct-xp .pat-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--text); font-size: 13px; font-weight: 400; border-radius: 0; }
body.acct-xp .sub-card .pat:hover,
body.acct-xp .pat-link:hover { color: var(--water); text-decoration: underline; text-underline-offset: 4px; }
body.acct-xp .secret-box { overflow-wrap: anywhere; }
body.acct-xp .buy-banner,
body.acct-xp .link-note { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text); }
body.acct-xp .warn-note { border-radius: 6px; overflow-wrap: anywhere; }

/* Store and checkout follow the same hierarchy as the account list. */
body.acct-xp .store-hero { padding-top: 40px; }
body.acct-xp .store-hero .eyebrow,
body.acct-xp .checkout-card .eyebrow { color: var(--text-2); font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; margin-bottom: 12px; }
body.acct-xp .store-hero .lede { font-size: 15px; }
body.acct-xp .store-grid { display: block; margin-top: 40px; }
body.acct-xp .pack-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px; padding: 24px 0; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; }
body.acct-xp .pack-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
body.acct-xp .pack-top { grid-column: 1; }
body.acct-xp .pack-card h3 { font-size: 16px; font-weight: 550; }
body.acct-xp .pack-desc { grid-column: 1; margin: 0; max-width: 50ch; font-size: 14px; }
body.acct-xp .pack-foot { grid-column: 2; grid-row: 1 / span 2; align-self: center; gap: 24px; margin: 0; }
body.acct-xp .pack-price { font-size: 15px; font-weight: 500; }
body.acct-xp .pack-price small { display: none; }
body.acct-xp .pack-owned { color: var(--text-2); font-weight: 400; }
body.acct-xp .pack-buy { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; background: none; border: 0; border-radius: 0; color: var(--text); font-weight: 500; box-shadow: none; }
body.acct-xp .pack-buy:hover { color: var(--water); transform: none; box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
body.acct-xp .checkout-stage { max-width: 420px; margin: 48px auto 0; }
body.acct-xp .checkout-card { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
body.acct-xp .checkout-card h1 { font-size: 28px; font-weight: 550; line-height: 1.3; }
body.acct-xp .co-signed { margin: 24px 0; overflow-wrap: anywhere; }
body.acct-xp .co-summary { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; margin: 24px 0; }
body.acct-xp .co-total { padding: 20px 0 0; border: 0; }
body.acct-xp .co-total .amt { font-size: 24px; font-weight: 550; }
body.acct-xp .pay-btn { min-height: 46px; padding: 12px 16px; background: var(--water); color: #101113; border-color: var(--water); border-radius: 6px; box-shadow: none; font-size: 14px; font-weight: 550; }
body.acct-xp .pay-btn:hover { transform: none; box-shadow: none; }
body.acct-xp .co-secure { display: block; padding: 0; margin: 20px 0 0; background: none; border: 0; border-radius: 0; font-size: 13px; color: var(--text-2); }
body.acct-xp .checkout-legal a { color: var(--text); }
body.acct-xp .checkout-back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; }
@media (max-width: 560px) {
  body.acct-xp .pack-card { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  body.acct-xp .pack-foot { grid-column: 1; grid-row: auto; margin-top: 4px; justify-content: space-between; }
}
body.acct-xp footer { margin-top: 32px; padding: 24px 0; border: 0; background: none; color: var(--text-2); font-size: 12px; }

@media (max-width: 560px) {
  body.acct-xp .acct-wrap { padding: 0 24px; }
  body.acct-xp nav { padding: 16px 0; }
  body.acct-xp .signin-main { padding: 56px 0 64px; }
  body.acct-xp .id-hero { flex-direction: row; flex-wrap: wrap; padding: 32px 0 40px; gap: 16px; }
  body.acct-xp .game-card { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  body.acct-xp .game-card .links { grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; gap: 0 24px; margin-top: 4px; }
  body.acct-xp .game-card .top { flex-wrap: wrap; gap: 4px 12px; }
  body.acct-xp .game-card .game-heading { min-width: 0; }
  body.acct-xp .sub-card { flex-direction: column; gap: 8px; align-items: flex-start; }
  body.acct-xp .purchase-row { grid-template-columns: minmax(0, 1fr) auto; }
  body.acct-xp .purchase-row > span:last-child { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  body.acct-xp *, body.acct-xp *::before, body.acct-xp *::after { animation: none; transition: none; }
}

/* Legal information stays visible without competing with account actions. */
body.acct-xp .footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; }
body.acct-xp .footer-brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
body.acct-xp .legal-links { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 0 20px; padding: 0; }
body.acct-xp .legal-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--text-2); text-decoration: none; }
body.acct-xp .legal-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
body.acct-xp .signin-cookie-note { margin-top: 20px; color: var(--text-2); font-size: 12px; line-height: 1.7; }
body.acct-xp .signin-cookie-note a { color: var(--text); text-underline-offset: 3px; }
body.acct-xp .account-notice { max-width: 620px; margin: 40px auto 0; }
body.acct-xp .account-notice h1 { margin-bottom: 16px; }
body.acct-xp .account-notice h2 { margin: 32px 0 12px; }
body.acct-xp .account-notice p { color: var(--text-2); margin-bottom: 16px; }
body.acct-xp .account-notice a { color: var(--text); text-underline-offset: 3px; overflow-wrap: anywhere; }
body.acct-xp .cookie-details { margin: 32px 0; }
body.acct-xp .cookie-details > div { border-top: 1px solid var(--border); padding: 20px 0; }
body.acct-xp .cookie-details dt { font-weight: 550; margin-bottom: 8px; }
body.acct-xp .cookie-details dd { color: var(--text-2); margin: 0; }
body.acct-xp .cookie-details code { font-size: 13px; overflow-wrap: anywhere; }
