.account-nav { display: flex; align-items: center; gap: 10px; flex: none; }
.account-login { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.account-signup { padding: 8px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; }
.account-profile { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.account-profile img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); }
.account-profile span { max-width: 95px; overflow: hidden; text-overflow: ellipsis; }
.wallet { display: flex; align-items: center; gap: 6px; }
.wallet-balance { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; background: var(--surface-2); border-radius: 9px; font-size: 12px; }
.wallet-balance img { width: 25px; height: 25px; }
.sparks { color: #ffce60; } .crystals { color: #baacff; }
.account-open { overflow: hidden; }
.account-backdrop { position: fixed; inset: 0; z-index: 100; background: #05060bd9; backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.account-dialog { position: relative; width: min(470px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; box-shadow: 0 30px 100px #0008; max-height: calc(100dvh - 48px); overflow-y: auto; }
.account-register { width: min(860px, 100%); display: grid; grid-template-columns: 0.8fr 1.2fr; }
.account-close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); font-size: 25px; line-height: 1; color: var(--muted); }
.account-content { padding: 34px; min-width: 0; }
.account-content h1 { font: 600 30px/1.08 var(--font-display); margin: 10px 25px 25px 0; }
.account-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .13em; color: var(--accent); font-weight: 700; }
#account-form { display: flex; flex-direction: column; gap: 14px; }
#account-form .field { margin: 0; }
#account-form input { width: 100%; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-soft); color: var(--text); font-size: 14px; }
#account-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.account-art { display: none; }
.account-register .account-art { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 34px; position: relative; background: radial-gradient(ellipse at 50% 25%, #7b5abd38, transparent 70%), #121419; overflow: hidden; }
.account-hero-avatar { position: relative; width: 190px; height: 190px; border-radius: 50%; align-self: center; margin: 10px 0 38px; border: 5px solid #ffffff10; box-shadow: 0 0 60px #a970ff25; }
.account-orbit { position: absolute; top: 100px; left: -50px; width: 440px; height: 180px; border: 1px solid #b89be72e; border-radius: 50%; transform: rotate(-30deg); }
.account-art h2 { font: 600 45px/1 var(--font-display); margin: 12px 0 18px; }
.account-art p { font-size: 14px; color: var(--muted); }
.account-perks { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; color: #c5b5e5; font-size: 12px; }
.account-hint { color: var(--muted); font-size: 11px; margin-top: -8px; }
.account-hint.valid, .account-message.success { color: var(--green); }
.account-hint.invalid { color: var(--danger); }
.password-feedback { color: var(--muted); font-size: 11px; margin-top: -5px; }
.account-passwords { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-passwords .password-feedback { grid-column: 1 / -1; order: 1; }
.password-meter { height: 3px; background: var(--surface-3); border-radius: 3px; margin-bottom: 6px; }
.password-meter i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .2s; border-radius: inherit; }
.password-meter i.ready { background: var(--green); }
.account-avatars { border: 0; padding: 0; margin: 2px 0; }
.account-avatars legend { font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.account-avatar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.account-avatar-choice { padding: 5px 3px; border: 1px solid transparent; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.account-avatar-choice img { width: 48px; height: 48px; border-radius: 50%; }
.account-avatar-choice:hover { background: var(--surface-2); }
.account-avatar-choice.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.account-message { border: 1px solid var(--line-2); background: var(--surface-2); padding: 12px; border-radius: 10px; font-size: 13px; color: var(--danger); margin-bottom: 16px; }
.account-message[hidden] { display: none; }
.account-text, .account-switch button { color: var(--accent); font-weight: 600; font-size: 12px; }
.account-switch { color: var(--muted); text-align: center; font-size: 12px; }
.account-guest { display: block; margin: 24px auto 0; color: var(--muted); font-size: 12px; }
.account-success-mark { width: 58px; height: 58px; border-radius: 50%; background: #35c97f1f; color: var(--green); display: grid; place-items: center; font-size: 28px; margin: 0 0 8px; }
.account-identity { display: flex; align-items: center; gap: 14px; }
.account-identity > img { width: 70px; height: 70px; border-radius: 50%; }
.account-identity div { min-width: 0; display: grid; gap: 4px; }
.account-identity span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.account-identity small { font-size: 10px; color: var(--green); }
.account-wallet { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 10px; align-items: center; padding: 16px 0; }
.account-wallet div { display: grid; font-size: 12px; }
.account-wallet div span { color: var(--muted); font-size: 10px; }
@media (max-width: 1200px) { .site-header { padding-inline: 16px; gap: 10px; } .main-nav a { padding-inline: 8px; } .brand-word { font-size: 18px; } .account-profile span { display: none; } }
@media (max-width: 900px) { .brand-word { display: none; } .main-nav { gap: 0; } .main-nav a { font-size: 12px; padding-inline: 6px; } .account-nav { gap: 8px; } }
@media (max-width: 640px) {
  .account-backdrop { padding: 10px; } .account-dialog { max-height: calc(100dvh - 20px); border-radius: 18px; }
  .account-register { display: block; } .account-register .account-art { display: none; } .account-content { padding: 28px 20px; }
  .account-content h1 { font-size: 27px; } .account-avatar-grid { grid-template-columns: repeat(3, 1fr); }
  .account-passwords { grid-template-columns: 1fr; gap: 14px; } .account-passwords .password-feedback { order: 0; }
  .account-avatar-choice img { width: 58px; height: 58px; } .account-avatar-choice { font-size: 11px; }
  .account-login { font-size: 11px; } .account-signup { font-size: 11px; padding: 7px 10px; }
  .account-nav { gap: 6px; } .wallet { gap: 3px; } .wallet-balance { padding: 3px; gap: 3px; font-size: 11px; }
  .wallet-balance img { width: 20px; height: 20px; } .account-profile img { width: 28px; height: 28px; }
  .main-nav a:not(.active):not([data-nav="home"]) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .password-meter i { transition: none; } }
