/* Сетевая игра: вход и регистрация, лобби, профиль, удаление аккаунта */
.net-conn { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.net-conn::before { content: "●"; margin-right: 6px; }
.net-conn.on::before { color: var(--ok); } .net-conn.connecting::before { color: var(--brass-hi); } .net-conn.off::before { color: #ff6b6b; }
.net-block { margin: 0 0 18px; padding: 12px; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- вход и регистрация ---------- */
.auth-tabs.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; width: 100%; margin-bottom: 16px; padding: 0; background: none; box-shadow: inset 0 -1px 0 var(--line); border-radius: 0; }
.auth-tabs.seg button { flex: 1; position: relative; padding: 11px 2px 12px; border-radius: 0; background: none; color: var(--muted); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.auth-tabs.seg button.on { background: none; color: var(--brass-hi); font-weight: 600; }
.auth-tabs.seg button.on::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 0; height: 2px; border-radius: 2px; background: var(--brass); box-shadow: 0 0 8px rgba(207, 174, 106, .6); }
.auth-form label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.auth-form input { flex: none; width: 100%; min-width: 0; height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(5, 8, 16, .85); box-shadow: inset 0 0 0 1px var(--line); outline: none; }
.auth-form input:focus { box-shadow: inset 0 0 0 1.5px var(--brass); }
.auth-form input.bad { box-shadow: inset 0 0 0 1.5px rgba(255, 81, 104, .75); }
.auth-form .btn { margin-top: 6px; }
.auth-err { color: #ff8a8a; font-size: 14px; margin: 4px 0 6px; }
.auth-form .auth-err { margin: -4px 0 12px; }
/* ошибка ника — в строке подписи, через просвет от слова «Ник» */
.auth-form .lbl-row { display: flex; align-items: baseline; gap: 14px; min-height: 20px; }
.auth-form .field-err { flex: 1; min-width: 0; text-align: right; font-size: 13px; color: #ff8a98; animation: err-in .2s ease-out; }
@keyframes err-in { from { opacity: 0; transform: translateX(6px); } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* аватары: сетка 3×3, при нехватке места — страницы со стрелками */
.av-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 6px; }
.av-pick { aspect-ratio: 1; padding: 0; border: 0; background: #0b1020; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); opacity: .75; transition: opacity .15s, box-shadow .15s, transform .1s; }
.av-pick img { width: 100%; height: 100%; display: block; object-fit: cover; }
.av-pick.on { opacity: 1; box-shadow: 0 0 0 2.5px var(--brass), 0 0 16px rgba(207, 174, 106, .45); }
.av-pick:active { transform: scale(.96); }
.av-pager { display: flex; align-items: center; gap: 6px; }
.av-pager .av-row { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.av-pager.single .av-row { max-width: 330px; margin: 0 auto; }
.av-pager .pg { flex: none; width: 30px; height: 96px; border-radius: 10px; color: var(--brass-hi); font-size: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.av-pager .pg:disabled { opacity: .25; }
.av-dots { display: flex; justify-content: center; gap: 6px; margin: 8px 0 4px; }
.av-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(143, 196, 230, .25); }
.av-dots i.on { background: var(--brass); }
/* коды восстановления */
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.codes code { padding: 10px 6px; border-radius: 10px; background: rgba(5, 8, 16, .85); box-shadow: inset 0 0 0 1px var(--line); font-family: ui-monospace, Menlo, monospace; font-size: 16px; letter-spacing: .08em; color: var(--brass-hi); user-select: text; -webkit-user-select: text; }

/* ---------- лобби ---------- */
.me-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 46%; padding: 4px 12px 4px 4px; border-radius: 12px; background: rgba(127, 200, 255, .08); box-shadow: inset 0 0 0 1px rgba(127, 200, 255, .35); font-weight: 600; font-size: 14px; }
.me-chip:empty { display: none; }
.me-chip img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.me-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg.time-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; padding: 4px; }
.seg.time-seg button { min-height: 42px; font-size: 16px; font-weight: 600; border-radius: 9px; }
.seg.time-seg button small { display: block; font-size: 11px; font-weight: 400; opacity: .75; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(5, 8, 16, .85); box-shadow: inset 0 0 0 1px var(--line); outline: none; }
.search-row input:focus { box-shadow: inset 0 0 0 1.5px var(--brass); }
/* строка игрока (лобби и список переписок) */
.net-player { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 2px; border-bottom: 1px solid rgba(143, 196, 230, .1); text-align: left; }
.net-player:last-child { border-bottom: 0; }
.net-player .av { position: relative; flex: none; width: 46px; height: 46px; border-radius: 12px; overflow: visible; }
.net-player .av img { width: 46px; height: 46px; border-radius: 12px; display: block; }
.net-player .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.net-player .txt b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-player .txt small { font-size: 12.5px; color: var(--muted); }
.dot { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 2.5px #0b1020; background: #59637a; }
.dot.lobby { background: var(--ok); box-shadow: 0 0 0 2.5px #0b1020, 0 0 8px rgba(94, 240, 180, .7); } .dot.online { background: var(--brass-hi); } .dot.busy { background: #ff9d3c; }
.badge { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ff6b6b; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.net-modal-av { width: 84px !important; height: 84px !important; border-radius: 18px; margin: 0 auto 8px; display: block; box-shadow: 0 0 0 1px rgba(127, 200, 255, .35), 0 0 24px rgba(127, 200, 255, .25); }

/* ---------- удаление аккаунта ---------- */
.del-form { margin: 4px 0 12px; text-align: left; }
.del-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.del-form input { height: 46px; padding: 0 14px; border: 0; border-radius: 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: rgba(5, 8, 16, .8); box-shadow: inset 0 0 0 1px var(--line); outline: none; }
.del-form input:focus { box-shadow: inset 0 0 0 1.5px rgba(255, 81, 104, .7); }
.del-form .auth-err { margin: 8px 0 0; }
