/* =====================================================================
   UNREAL Neon v1.2 — сторінка сервера, вхід/реєстрація, 404, графік,
   3D-нахил карток, лінія завантаження, світло за курсором.
   ===================================================================== */

/* ---------- світло, що йде за курсором (координати — unreal.js) ---------- */
.ufx__spot { position: absolute; left: 0; top: 0; width: 700px; height: 700px; margin: -350px 0 0 -350px; border-radius: 50%; display: block;
  background: radial-gradient(circle, rgba(34,211,238,.10), rgba(139,92,246,.06) 40%, transparent 70%);
  transform: translate3d(var(--cx, -1000px), var(--cy, -1000px), 0); transition: transform .25s ease-out; will-change: transform; }

/* ---------- лінія завантаження між сторінками ---------- */
.uload { position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 200; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, #22d3ee, #6366f1, #e040fb); box-shadow: 0 0 14px rgba(34,211,238,.9), 0 0 4px #e040fb; }
.uload.is-on { opacity: 1; width: 82%; transition: width 6s cubic-bezier(.1,.7,.2,1); }

/* ---------- 3D-нахил карток ---------- */
.gcards, .usrv { perspective: 1100px; }
.gcard.is-tilt, .usrv__card.is-tilt { transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .12s ease-out, box-shadow .3s, border-color .3s; }

/* ---------- графік онлайну ---------- */
.chart__plot path[stroke="#e2b45a"] { stroke: #22d3ee; stroke-width: 2.5px; filter: drop-shadow(0 0 6px rgba(34,211,238,.8)); }
.chart__plot stop { stop-color: #6366f1; }
.chart__plot circle { fill: #22d3ee; stroke: #060714; filter: drop-shadow(0 0 8px #22d3ee); }
.chart__plot path[stroke="#3a4254"] { stroke: #3b4380; }
.chart .tip { background: rgba(8,10,26,.95); border-color: rgba(34,211,238,.45); border-radius: 10px; box-shadow: 0 0 22px rgba(34,211,238,.2); }
.chart__sum b { color: #fff; font-family: var(--font-d); }
.seg { background: rgba(4,6,18,.6); border-color: var(--line2); border-radius: 12px; padding: 4px; }
.seg button { border-radius: 9px; font-weight: 800; transition: color .2s, background .2s; }
.seg button.is-on { background: var(--grad); color: #fff; box-shadow: 0 0 16px rgba(99,102,241,.45); }

/* ---------- сторінка сервера ---------- */
.crumbs { font-weight: 700; text-transform: uppercase; letter-spacing: .8px; font-size: 12px; }
.crumbs a { color: #a4acd4; }
.crumbs a:hover { color: var(--accent2); }
.ushead { position: relative; overflow: hidden; isolation: isolate; padding: 26px; border-radius: 24px; border: 1px solid var(--line2);
  background: rgba(10,12,30,.7); grid-template-columns: 340px minmax(0, 1fr) 200px; gap: 28px; }
.ushead__bg { position: absolute; inset: -40px; z-index: -2; background: #141938 center/cover no-repeat; filter: blur(30px) saturate(1.3) brightness(.55); transform: scale(1.1); }
.ushead::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 300px at 0% 0%, rgba(34,211,238,.18), transparent 70%), radial-gradient(500px 300px at 100% 100%, rgba(192,38,211,.2), transparent 70%), linear-gradient(90deg, rgba(6,7,20,.55), rgba(6,7,20,.85)); }
.ushead .shead__map { min-height: 200px; border-radius: 18px; border: 1px solid rgba(34,211,238,.35); box-shadow: 0 0 34px rgba(34,211,238,.15), 0 18px 40px rgba(0,0,0,.5); }
.ushead .shead__mapname { font-family: var(--font-d); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 8px; background: rgba(6,7,20,.75); border: 1px solid rgba(34,211,238,.3); }
.ushead .shead__title { font-family: var(--font-d); font-size: 34px; font-weight: 900; font-style: italic; text-transform: uppercase; color: #fff; text-shadow: 0 0 30px rgba(99,102,241,.4); }
.ushead .status { border-radius: 999px; padding: 3px 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; font-size: 11.5px; }
.ushead .status--on { color: #34f5a5; background: rgba(52,245,165,.12); box-shadow: 0 0 16px rgba(52,245,165,.25); }
.ushead .tag { border-radius: 999px; }
.tag--boost { color: #a5f3fc; background: rgba(34,211,238,.12); border-color: rgba(34,211,238,.45); }
.uconnect { padding: 12px 22px; }
.uconnect .ico { width: 16px; height: 16px; }
.shead__actions .btn--ghost.copy { background: rgba(4,6,18,.6); border: 1px solid var(--line2); }
.shead__actions .btn--ghost.copy:hover { border-color: rgba(34,211,238,.6); box-shadow: 0 0 18px rgba(34,211,238,.2); }
.shead__owner { margin-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.verified { color: #34f5a5; }
.ushead .vote { border-radius: 18px; background: rgba(6,8,24,.65); border: 1px solid var(--line2); padding: 18px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: center; }
.ushead .vote__num { font-family: var(--font-d); font-size: 48px; font-weight: 900; font-style: italic; color: #fff; text-shadow: 0 0 26px rgba(52,245,165,.5); }
.ushead .vote__lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }

.tiles { gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); padding: 16px 18px; transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s; }
.tile::before { content: ""; position: absolute; width: 120px; height: 120px; right: -50px; top: -50px; border-radius: 50%; background: #6366f1; opacity: .12; filter: blur(26px); }
.tile:nth-child(2)::before { background: #22d3ee; } .tile:nth-child(3)::before { background: #c026d3; } .tile:nth-child(4)::before { background: #34f5a5; }
.tile:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.5); box-shadow: 0 0 26px rgba(34,211,238,.12); }
.tile__l { text-transform: uppercase; letter-spacing: .8px; font-size: 11.5px; font-weight: 800; color: #a4acd4; }
.tile__v { font-family: var(--font-d); font-weight: 900; font-style: italic; color: #fff; font-size: 30px; }
.tile__v--sm { font-size: 17px; font-style: normal; font-weight: 800; }
.tile--pl { padding-right: 84px; }
.tile__ring { position: absolute; right: 16px; top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%;
  background: conic-gradient(#22d3ee calc(var(--f) * 1%), #6366f1 calc(var(--f) * 1%), rgba(255,255,255,.06) 0);
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 57%); mask: radial-gradient(circle, transparent 55%, #000 57%); filter: drop-shadow(0 0 8px rgba(34,211,238,.5)); }
.tile--pl .bar { display: none; }

.cols .card .card__head h2, .card .card__head h2 { font-family: var(--font-d); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .5px; }
.table th { color: #a4acd4; border-bottom-color: var(--line2); }
.table td { border-bottom-color: rgba(255,255,255,.05); }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover td { background: rgba(34,211,238,.05); }
/* перші три гравці — медалі */
.cols > .card:first-child .table tbody tr:nth-child(-n+3) td:first-child { font-weight: 900; font-family: var(--font-d); }
.cols > .card:first-child .table tbody tr:nth-child(1) td:first-child { color: #fbbf24; text-shadow: 0 0 10px rgba(251,191,36,.7); }
.cols > .card:first-child .table tbody tr:nth-child(2) td:first-child { color: #e2e8f0; text-shadow: 0 0 10px rgba(226,232,240,.5); }
.cols > .card:first-child .table tbody tr:nth-child(3) td:first-child { color: #f59e0b; opacity: .85; }
.cols > .card:first-child .table tbody tr:nth-child(1) td:nth-child(2) { color: #fde68a; font-weight: 800; }

/* ---------- вхід / реєстрація ---------- */
.uauth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); max-width: 1120px; margin: 20px auto 10px; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line2); background: rgba(10,12,30,.75); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(99,102,241,.12);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.uauth__art { position: relative; overflow: hidden; padding: 44px 44px 40px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; min-height: 560px;
  background: radial-gradient(500px 340px at 10% 0%, rgba(34,211,238,.28), transparent 70%), radial-gradient(520px 380px at 100% 100%, rgba(192,38,211,.3), transparent 70%), #0a0c22; }
.uauth__art::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px); }
.uauth__art > * { position: relative; z-index: 1; }
.uauth__scope { position: absolute !important; z-index: 0 !important; width: 420px; height: 420px; right: -110px; top: -110px; border-radius: 50%;
  border: 1px solid rgba(34,211,238,.35); box-shadow: 0 0 60px rgba(34,211,238,.15), inset 0 0 60px rgba(34,211,238,.1); }
.uauth__scope i { position: absolute; border-radius: 50%; border: 1px solid rgba(34,211,238,.2); }
.uauth__scope i:nth-child(1) { inset: 16%; } .uauth__scope i:nth-child(2) { inset: 32%; } .uauth__scope i:nth-child(3) { inset: 44%; border-color: rgba(192,38,211,.4); }
.uauth__sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(34,211,238,.5), rgba(99,102,241,.2) 40deg, transparent 90deg); animation: usweep 4s linear infinite; }
.uauth__logo { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; filter: drop-shadow(0 0 18px rgba(34,211,238,.7)); }
.uauth__logo svg { width: 100%; height: 100%; display: block; }
.uauth__art h2 { font-family: var(--font-d); font-size: 38px; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.08; color: #fff; margin: 0; }
.uauth__art ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.uauth__art li { display: flex; align-items: center; gap: 12px; color: #c3c9ec; font-weight: 700; font-size: 15px; }
.uauth__art li .ico { width: 34px; height: 34px; padding: 8px; flex: none; border-radius: 10px; color: var(--accent2); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.3); }
.uauth .auth { max-width: none; margin: 0; padding: 44px 44px 36px; display: flex; flex-direction: column; justify-content: center; }
.uauth .auth .h1 { font-family: var(--font-d); font-size: 40px; font-weight: 900; font-style: italic; text-transform: uppercase; color: #fff; }
.uauth .auth .card { background: none; border: 0; padding: 0; margin-top: 18px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.uauth .field > span { text-transform: uppercase; letter-spacing: .8px; font-size: 11.5px; font-weight: 800; color: #a4acd4; }
.uauth .input { height: 50px; font-size: 15px; border-radius: 12px; }
.uauth .btn--lg, .uauth form .btn { width: 100%; justify-content: center; height: 52px; font-family: var(--font-d); text-transform: uppercase; letter-spacing: 1px; font-size: 15px; }

/* ---------- 404 ---------- */
.u404 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 50px; align-items: center; max-width: 1100px; margin: 30px auto; }
.u404__scope { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  border: 1px solid rgba(251,113,133,.45); box-shadow: 0 0 60px rgba(251,113,133,.15), inset 0 0 60px rgba(251,113,133,.08);
  background: radial-gradient(circle, rgba(251,113,133,.08), rgba(8,10,28,.7) 65%); overflow: hidden; }
.u404__scope i { position: absolute; border-radius: 50%; border: 1px solid rgba(251,113,133,.22); }
.u404__scope i:nth-child(1) { inset: 16%; } .u404__scope i:nth-child(2) { inset: 32%; } .u404__scope i:nth-child(3) { inset: 45%; }
.u404__scope b { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(251,113,133,.45), rgba(192,38,211,.15) 40deg, transparent 90deg); animation: usweep 2.6s linear infinite; }
.u404__x { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.u404__x::before, .u404__x::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; border-radius: 4px; background: #fb7185; box-shadow: 0 0 14px #fb7185; transform: rotate(45deg); }
.u404__x::after { transform: rotate(-45deg); }
.u404__code { position: relative; display: inline-block; font-family: var(--font-d); font-size: 150px; font-weight: 900; font-style: italic; line-height: .9;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(99,102,241,.5)); }
.u404__code::before, .u404__code::after { content: attr(data-text); position: absolute; inset: 0; -webkit-text-fill-color: currentColor; opacity: 0; pointer-events: none; }
.u404__code::before { color: #22d3ee; animation: uglitch 3s infinite steps(1); }
.u404__code::after { color: #e040fb; animation: uglitch2 3s infinite steps(1); }
.u404 .h1 { font-family: var(--font-d); font-size: 34px; font-weight: 900; font-style: italic; text-transform: uppercase; color: #fff; margin: 6px 0 10px; }
.u404__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- адаптація ---------- */
@media (max-width: 1199px) {
  .ushead { grid-template-columns: 260px minmax(0, 1fr); }
  .ushead .vote { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; }
}
@media (max-width: 900px) {
  .uauth { grid-template-columns: minmax(0, 1fr); }
  .uauth__art { min-height: 0; padding: 30px 26px; }
  .uauth__art ul { display: none; }
  .uauth__art h2 { font-size: 26px; padding-right: 120px; }
  .uauth__scope { width: 240px; height: 240px; right: -70px; top: -70px; }
  .uauth .auth { padding: 28px 24px; }
  .u404 { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 20px; }
  .u404__scope { width: 220px; }
  .u404__btns { justify-content: center; }
}
@media (max-width: 760px) {
  .ushead { grid-template-columns: minmax(0, 1fr); padding: 16px; border-radius: 18px; }
  .ushead .shead__title { font-size: 24px; }
  .u404__code { font-size: 100px; }
  .uauth .auth .h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .uauth__sweep, .u404__scope b, .u404__code::before, .u404__code::after { animation: none !important; }
  .ufx__spot { display: none; }
}
@media (hover: none) { .ufx__spot { display: none; } }
