.auth-slot { flex: 0 0 auto; }
.auth-slot { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.steam-login, .auth-user { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px; border: 1px solid rgba(var(--accent-rgb), .4); background: rgba(var(--accent-rgb), .06); color: var(--text); font: 650 12px/1.333 var(--font-body); text-decoration: none; cursor: pointer; transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.steam-login:hover, .auth-user:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.steam-login svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.auth-user { padding: 4px 12px 4px 4px; max-width: 168px; min-width: 0; }
.auth-user__name { max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-balance { display: inline-flex; min-width: 42px; min-height: 34px; align-items: center; justify-content: center; padding: 8px 8px; border: 1px solid rgba(var(--accent-rgb), .34); background: rgba(var(--accent-rgb), .08); color: var(--accent); font: 700 12px/1.333 var(--font-mono); letter-spacing: 0; white-space: nowrap; }
.auth-topup { display: inline-grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(var(--accent-rgb), .48); background: #bc7b2d; color: #11130f; font: 700 18px/1.556 var(--font-display); cursor: pointer; box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.auth-topup:hover { filter: brightness(1.08); transform: translateY(-1px); }
.auth-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; object-fit: cover; background: #252e27; color: var(--accent); }
.account-dialog { width: min(480px, calc(100% - 32px)); padding: 40px; border: 1px solid rgba(var(--accent-rgb), .35); background: #181818; color: var(--text); overflow: auto; max-height: calc(100svh - 32px); }
dialog::backdrop { background: rgba(2, 6, 4, .82); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; top: 12px; right: 12px; display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 1px solid var(--line); background: #161c17; color: var(--text); font-size: 24px; line-height: 1.333; cursor: pointer; z-index: 2; }
.dialog-close:hover { border-color: var(--accent); color: var(--accent); }
.account-avatar { display: grid; width: 76px; height: 76px; place-items: center; margin-block: 32px 24px; object-fit: cover; color: var(--accent); background: #252e27; font-size: 30px; line-height: 1.2; }
.account-dialog h2 { margin: 0 0 12px; font: 600 30px/1.2 var(--font-display); overflow-wrap: anywhere; }
.account-id { font-size: 12px; line-height: 1.333; color: var(--accent); overflow-wrap: anywhere; }
.account-description { margin-block: 24px; color: var(--muted); font-size: 14px; line-height: 1.429; }
.account-steam { display: block; width: fit-content; margin-bottom: 32px; }
.account-dialog > .button { width: 100%; }
.account-logout { display: block; width: 100%; margin-top: 12px; padding: 16px; background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.account-logout:hover { color: var(--text); }
.account-admin { margin-top: 24px; color: var(--accent); }
.profile-portrait { position: relative; display: inline-grid; flex: 0 0 auto; isolation: isolate; }
.profile-portrait--small { width: 32px; height: 32px; }
.profile-portrait--large { width: 84px; height: 84px; margin-block: 32px 24px; }
.profile-portrait .account-avatar { width: 84px; height: 84px; margin: 0; }
.profile-vip-badge { display: none; }
.profile-portrait.is-vip { padding: 4px; border: 1px solid #e3bb67; background: #f3cd7a; box-shadow: none; }
.profile-portrait.is-vip .auth-avatar, .profile-portrait.is-vip .account-avatar { width: 100%; height: 100%; min-width: 0; min-height: 0; }
.profile-portrait.is-vip .profile-vip-badge { position: absolute; display: grid; place-items: center; bottom: -7px; left: 50%; transform: translateX(-50%); padding: 4px 8px; border: 1px solid #e4bc69; color: #17180f; background: #c18c3b; font: 700 12px/1.333 var(--font-mono); letter-spacing: .1em; box-shadow: 0 2px 5px #080b08; }
.profile-portrait--small.is-vip .profile-vip-badge { bottom: -4px; padding: 2px 4px; font-size: 12px; line-height: 1.333; }
.profile-portrait--large.is-vip::before, .profile-portrait--large.is-vip::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; border: 1px solid #e4bc69; background: #181b13; transform: translateY(-50%) rotate(45deg); }
.profile-portrait--large.is-vip::before { left: -7px; }
.profile-portrait--large.is-vip::after { right: -7px; }
.admin-page .auth-user .profile-portrait { overflow: visible; }
.account-vip { margin-top: 24px; padding: 16px; border: 1px solid var(--line); background: rgba(0,0,0,.15); }
.account-vip.is-active { border-color: rgba(var(--accent-rgb), .5); background: #1F1F1F; }
.account-vip h3 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font: 650 14px/1.429 var(--font-body); }
.account-vip__status { color: var(--accent); font-size: 12px; line-height: 1.333; letter-spacing: .14em; }
.account-vip__list { display: grid; gap: 16px; margin: 16px 0 0; padding: 0; list-style: none; }
.account-vip__list li { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid rgba(var(--accent-rgb), .17); }
.account-vip__server { font: 650 12px/1.333 var(--font-body); overflow-wrap: anywhere; }
.account-vip__remaining { color: #f2d495; font: 600 18px/1.556 var(--font-body); }
.account-vip time { color: var(--muted); font: 400 12px/1.333 var(--font-body); }
.account-vip__empty { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.333; }
.account-refresh { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.333; }
.account-refresh:empty { display: none; }
.topup-dialog { width: min(430px, calc(100% - 28px)); padding: 32px; border: 1px solid rgba(var(--accent-rgb), .38); background: #181818; color: var(--text); overflow: auto; max-height: calc(100svh - 28px); box-shadow: 0 28px 90px rgba(0,0,0,.52); }
.topup-dialog h2 { margin: 12px 0 24px; font: 650 clamp(30px, 7vw, 48px)/1 var(--font-display); text-transform: uppercase; }
.topup-form { display: grid; gap: 16px; }
.topup-form label { display: grid; gap: 8px; }
.topup-form label span { color: var(--accent); font-size: 12px; line-height: 1.333; letter-spacing: .16em; }
.topup-form input { width: 100%; min-height: 58px; padding: 12px 16px; border: 1px solid rgba(var(--accent-rgb), .26); background: rgba(0,0,0,.24); color: var(--text); font: 700 24px/1.333 var(--font-display); outline: none; }
.topup-form input:focus { border-color: rgba(var(--accent-rgb), .72); box-shadow: none; }
.topup-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.topup-presets button { min-height: 42px; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--text); font: 700 12px/1.333 var(--font-mono); cursor: pointer; }
.topup-presets button:hover { border-color: var(--accent); color: var(--accent); }
.topup-min { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.333; }
.topup-support { width: 100%; margin-top: 24px; }
.topup-error { margin: -4px 0 0; color: #ffb5a8; font-size: 12px; line-height: 1.333; }
.topup-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.topup-form fieldset:disabled { opacity: .6; }
.topup-status { color: var(--text); font-size: 12px; line-height: 1.333; line-height: 1.6; margin: 0; }
.topup-min a { text-decoration: underline; text-underline-offset: 3px; }
.topup-invoices { margin-top: 24px; display: grid; gap: 24px; }
.topup-invoice { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.topup-invoice p { flex-basis: 100%; margin: 0 0 4px; font-size: 14px; line-height: 1.429; }
.topup-invoice .button { min-height: 42px; padding: 12px 16px; font-size: 12px; line-height: 1.333; }
[data-admin-link][hidden] { display: none !important; }
.access-page { min-height: 100svh; display: grid; place-items: center; padding: 32px; }
.access-card { max-width: 550px; border: 1px solid var(--line); padding: clamp(24px, 5vw, 64px); background: #111711; }
.access-card h1 { font: 600 clamp(36px, 5vw, 60px)/1 var(--font-display); margin: 24px 0; text-transform: uppercase; }
.access-card > p { color: var(--muted); font-size: 14px; line-height: 1.429; }
.access-card > .button { margin-top: 24px; }
.account-dialog, .topup-dialog { overscroll-behavior: contain; }
.steam-login:focus-visible, .auth-user:focus-visible, .auth-topup:focus-visible,
.dialog-close:focus-visible, .account-logout:focus-visible, .topup-presets button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 1180px) { .steam-login { padding-inline: 12px; font-size: 12px; line-height: 1.333; } }
@media (max-width: 1000px) { .site-header__actions { gap: 12px; padding-right: 64px; } .effects-toggle { margin-right: 0; } }
@media (max-width: 450px) { .auth-slot { gap: 4px; } .steam-login { width: 42px; padding: 8px; } .steam-login span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .auth-user { padding: 4px; max-width: 42px; } .auth-user__name { display: none; } .auth-balance { min-width: 34px; min-height: 32px; padding-inline: 4px; font-size: 12px; line-height: 1.333; } .auth-topup { width: 32px; height: 32px; font-size: 16px; line-height: 1.5; } .account-dialog, .topup-dialog { padding: 32px 24px; } .topup-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
