/* The account screen (src/ui/accountScreen.js) over the entry screen where the loading song plays: the loading key art
   stays visible behind, the music card is lifted above the layer, «Войти в район» gives way to the forms. */
.acct { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: flex-start; padding: 24px clamp(16px, 7vw, 96px);
  background: linear-gradient(90deg, rgba(8, 10, 14, 0.94) 0%, rgba(8, 10, 14, 0.78) 45%, rgba(8, 10, 14, 0.3) 100%); overflow-y: auto; color: var(--ink, #f5f3ee); }
body.acct-open #enter-gate { display: none; }
body.acct-open .yt-radio.loading-music { z-index: 2200; }
.acct-panel { width: min(440px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 18px;
  background: var(--glass-strong, rgba(10, 13, 18, 0.9)); border: 1px solid var(--glass-edge, rgba(255, 255, 255, 0.12)); border-radius: var(--radius, 16px); box-shadow: var(--shadow); }
.acct-brand { font-size: clamp(20px, 3.4vw, 30px); font-weight: 900; letter-spacing: 0.08em; color: #fff; }
.acct-tabs { display: flex; gap: 6px; }
.acct-tabs button, .acct-choice button, .acct-models button { flex: 1; padding: 10px 12px; border-radius: var(--radius-s, 10px); border: 1px solid var(--glass-edge, rgba(255, 255, 255, 0.12));
  background: rgba(255, 255, 255, 0.06); color: var(--ink, #f5f3ee); font-size: 15px; font-weight: 800; cursor: pointer; }
.acct-tabs button.on, .acct-choice button.on, .acct-models button.on { background: var(--accent-soft, rgba(246, 194, 58, 0.18)); border-color: var(--accent-edge, rgba(246, 194, 58, 0.55)); color: var(--accent, #f6c23a); }
.acct-form { display: flex; flex-direction: column; gap: 12px; }
.acct-form.busy { opacity: 0.7; }
.acct-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted, #b3bac2); }
.acct-field input { font-size: 16px; padding: 11px 12px; border-radius: var(--radius-s, 10px); border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.35); color: #fff; font-weight: 600; }
.acct-field input:focus { outline: 2px solid var(--accent, #f6c23a); outline-offset: 1px; }
.acct-main { padding: 14px 18px; border: 0; border-radius: 12px; background: var(--accent, #f6c23a); color: var(--accent-ink, #1a1407); font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.acct-main:disabled, .acct-second:disabled { opacity: 0.55; cursor: default; }
.acct-second { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--accent-edge, rgba(246, 194, 58, 0.55)); background: transparent; color: var(--accent, #f6c23a); font-size: 15px; font-weight: 800; cursor: pointer; }
.acct-link { align-self: flex-start; padding: 4px 0; border: 0; background: none; color: var(--muted, #b3bac2); font-size: 14px; text-decoration: underline; cursor: pointer; }
.acct-msg { margin: 0; min-height: 1em; font-size: 14px; line-height: 1.35; }
.acct-msg:empty { display: none; }
.acct-msg.error { color: #ff8a78; }
.acct-msg.info { color: var(--good, #5fcf6a); }
.acct-h { margin: 0; font-size: 22px; color: #fff; }
.acct-text { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 600; color: var(--ink, #f5f3ee); }
.acct-text b { color: var(--accent, #f6c23a); word-break: break-all; }
.acct-meter { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.acct-meter i { flex: 0 0 120px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); position: relative; overflow: hidden; }
.acct-meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--danger, #e8412c); transition: width 0.2s; }
.acct-meter[data-score="1"] i::after { width: 25%; }
.acct-meter[data-score="2"] i::after { width: 50%; background: #e8a02c; }
.acct-meter[data-score="3"] i::after { width: 75%; background: var(--accent, #f6c23a); }
.acct-meter[data-score="4"] i::after { width: 100%; background: var(--good, #5fcf6a); }
.acct-step { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted, #b3bac2); }
.acct-choice { display: flex; gap: 8px; }
.acct-panel:has(.acct-character) { width: min(640px, 100%); }
.acct-model-row { display: flex; gap: 12px; align-items: stretch; }
.acct-models { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.acct-models button { flex: 0 0 auto; text-align: left; font-size: 14px; }
.acct-preview-box { position: relative; flex: 0 0 auto; }
.acct-preview { width: 200px; height: 253px; border-radius: 12px; background: radial-gradient(ellipse at 50% 40%, rgba(246, 194, 58, 0.16), rgba(0, 0, 0, 0.4)); display: block; }
.acct-preview-note { position: absolute; left: 6px; right: 6px; bottom: 6px; font-size: 12px; color: var(--muted, #b3bac2); text-align: center; }
.acct-line { align-items: center; flex-wrap: wrap; }
.acct-line-text { font-size: 14px; color: var(--accent, #f6c23a); margin-right: 6px; }
@media (max-width: 560px) {
  .acct { padding: 12px; align-items: flex-start; }
  .acct-model-row { flex-direction: column; }
  .acct-preview { width: 100%; height: 220px; }
}
