/* ============================================================
   MIRAI Pro — кабинет игрока: регистрация, вход, профиль.
   Та же неон-нуар / glass палитра, что лендинг и админка.
   ============================================================ */

@font-face {
    font-family: "Akony";
    src: url("/assets/fonts/AKONY.woff2") format("woff2");
    font-display: swap;
}

:root {
    --bg: #08080c; --text: rgba(255,255,255,0.92); --muted: rgba(255,255,255,0.55);
    --faint: rgba(255,255,255,0.32); --border: rgba(255,255,255,0.10); --border-strong: rgba(255,255,255,0.20);
    --accent: #f5007d; --accent-bright: #ff2d96; --accent-soft: rgba(245,0,125,0.14); --violet: #7b3cdc;
    --glass: rgba(255,255,255,0.035); --glass-hover: rgba(255,255,255,0.06);
    --ok: #5fe0a0; --err: #ff6b6b;
    --display: "Akony", Helvetica, sans-serif; --body: Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body.acc {
    background: var(--bg); color: var(--text); font-family: var(--body);
    font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
    min-height: 100dvh; position: relative; overflow-x: hidden;
}
.mp-accent { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }

/* Фон */
.mp-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mp-bg-grid {
    position: absolute; inset: -2px;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 35%, transparent 80%);
}
.mp-bg-blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; }
.mp-bg-blob--a { width: 600px; height: 600px; top: -200px; left: -160px; background: radial-gradient(circle, rgba(245,0,125,0.4), transparent 70%); }
.mp-bg-blob--b { width: 520px; height: 520px; bottom: -10%; right: -180px; background: radial-gradient(circle, rgba(123,60,220,0.36), transparent 70%); }

/* Стекло */
.mpa-glass {
    background: var(--glass); border: 1px solid var(--border); border-radius: 18px;
    backdrop-filter: blur(12px) saturate(1.3) brightness(1.04);
    -webkit-backdrop-filter: blur(12px) saturate(1.3) brightness(1.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 60px -34px rgba(0,0,0,0.8);
}

/* Кнопки */
.acc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--body); font-size: 14.5px; font-weight: 600;
    padding: 12px 20px; border-radius: 11px; border: 1px solid transparent; cursor: pointer;
    transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.acc-btn svg { width: 17px; height: 17px; }
.acc-btn--sm { padding: 9px 14px; font-size: 13px; border-radius: 9px; }
.acc-btn--block { width: 100%; margin-top: 4px; }
.acc-btn--primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-bright)); color: #fff;
    box-shadow: 0 8px 26px -10px rgba(245,0,125,0.7), inset 0 1px 0 rgba(255,255,255,0.22);
}
.acc-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -12px rgba(245,0,125,0.85); }
.acc-btn--ghost { background: var(--glass); color: var(--text); border-color: var(--border-strong); }
.acc-btn--ghost:hover { background: var(--glass-hover); border-color: rgba(255,255,255,0.32); }

/* Бренд / заголовки */
.acc-brand { font-family: var(--display); font-size: 26px; letter-spacing: 0.06em; text-decoration: none; }
.acc-top-tag { font-family: var(--body); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ─── Auth (центрированная карточка) ──────────────────────── */
.acc-wrap { position: relative; z-index: 1; min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px; }
.acc-card { width: 100%; max-width: 400px; padding: 36px 30px; text-align: center; }
.acc-card--wide { max-width: 600px; }
.acc-title { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 18px 0 6px; }
.acc-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.acc-foot { margin-top: 18px; font-size: 14px; color: var(--muted); }
.acc-foot a { color: var(--accent-bright); }

/* Поля */
.acc-field { display: block; text-align: left; margin-top: 14px; }
.acc-card > .acc-field:first-of-type { margin-top: 0; }
.acc-label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.acc-label i { color: var(--accent); font-style: normal; }
.acc-label small { color: var(--faint); }
.acc-input {
    width: 100%; font-family: var(--body); font-size: 14.5px; color: var(--text);
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong); border-radius: 10px;
    padding: 11px 13px; transition: border-color 0.18s ease, background 0.18s ease;
}
.acc-input:focus { outline: none; border-color: var(--accent); background: rgba(245,0,125,0.06); }
.acc-input--err { border-color: var(--err); background: rgba(255,107,107,0.06); }

.acc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.acc-grid2 .acc-field { margin-top: 0; }
.acc-field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .acc-grid2 { grid-template-columns: 1fr; } }

.acc-check { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 8px; font-size: 13.5px; color: var(--muted); text-align: left; cursor: pointer; }
.acc-check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--accent); flex-shrink: 0; }
.acc-check--err { color: var(--err); }

.acc-alert { padding: 11px 15px; border-radius: 11px; font-size: 13.5px; margin-bottom: 18px; border: 1px solid; text-align: left; }
.acc-alert--err { background: rgba(255,107,107,0.1); border-color: rgba(255,107,107,0.35); color: var(--err); }
.acc-alert--ok { background: rgba(95,224,160,0.1); border-color: rgba(95,224,160,0.35); color: var(--ok); }

/* ─── Кабинет ─────────────────────────────────────────────── */
.acc-shell { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 26px 22px 70px; }
.acc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }

.acc-hero { display: flex; align-items: center; gap: 22px; padding: 26px 28px; margin-bottom: 16px; }
.acc-avatar {
    width: 76px; height: 76px; border-radius: 18px; flex-shrink: 0;
    display: grid; place-items: center; position: relative;
    background: linear-gradient(135deg, rgba(245,0,125,0.55), rgba(123,60,220,0.5));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.acc-avatar::after { content: attr(data-initials); font-family: var(--display); font-size: 30px; color: #fff; }
.acc-nick { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.acc-hero-meta { color: var(--muted); font-size: 14px; margin: 8px 0 12px; }
.acc-badge { font-size: 12px; letter-spacing: 0.04em; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-bright); border: 1px solid rgba(245,0,125,0.35); }

.acc-cardteaser { display: flex; align-items: center; gap: 18px; padding: 20px 24px; margin-bottom: 30px; }
.acc-cardteaser-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(245,0,125,0.3); flex-shrink: 0; }
.acc-cardteaser-icon svg { width: 24px; height: 24px; color: var(--accent-bright); }
.acc-cardteaser h3 { font-size: 16px; margin-bottom: 4px; }
.acc-cardteaser p { font-size: 13.5px; color: var(--muted); }
.acc-cardteaser code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--accent-bright); }

.acc-section { margin-top: 8px; }
.acc-h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 14px; }
.acc-card-form { padding: 24px 24px 22px; }
.acc-readonly { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.acc-readonly b { color: var(--text); font-weight: 600; }
.acc-form-actions { display: flex; justify-content: flex-end; margin-top: 18px; }

.acc-footer { margin-top: 44px; text-align: center; font-size: 12.5px; color: var(--faint); }
