/* =====================================================================
   UNREAL Neon v1.1 — радар, бігучий рядок, частинки, обертові рамки,
   номери місць, шкала заповненості, поява при прокрутці, glitch.
   ===================================================================== */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* частинки (canvas малює unreal.js) */
.ufx__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .55; }

/* шапка при прокрутці */
.hdr { transition: background .3s, box-shadow .3s; }
.is-scrolled .hdr { background: rgba(5,6,18,.9); box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 1px 0 rgba(34,211,238,.25); }

/* відблиск, що пробігає по головних кнопках */
.btn--gold, .btn--accent { position: relative; overflow: hidden; isolation: isolate; }
.btn--gold::after, .btn--accent::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: ushine 4.5s ease-in-out infinite; }
@keyframes ushine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* бігучий рядок live-серверів */
.uticker { display: flex; align-items: stretch; margin: 4px 0 26px; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; background: rgba(8,10,26,.75); }
.uticker__lbl { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 30px 0 18px; font-family: var(--font-d); font-weight: 900; font-style: italic; letter-spacing: 2px; color: #fff;
  background: var(--grad); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.uticker__lbl i { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: udot 1.4s infinite; }
.uticker__vp { flex: 1; overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.uticker__track { display: flex; width: max-content; animation: uticker 60s linear infinite; }
.uticker:hover .uticker__track { animation-play-state: paused; }
@keyframes uticker { to { transform: translateX(-50%); } }
.uticker__it { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; white-space: nowrap; color: #cdd3f5; border-right: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.uticker__it:hover { color: #fff; background: rgba(34,211,238,.06); }
.uticker__it b { font-weight: 800; }
.uticker__map { font-family: var(--font-d); font-size: 12px; letter-spacing: .8px; color: var(--accent2); }
.uticker__pl { font-weight: 800; font-size: 12px; color: #34f5a5; background: rgba(52,245,165,.1); border: 1px solid rgba(52,245,165,.3); padding: 1px 8px; border-radius: 999px; }

/* glitch заголовка */
.ugrad { position: relative; display: inline-block; }
.ugrad::before, .ugrad::after { content: attr(data-text); position: absolute; inset: 0; -webkit-text-fill-color: currentColor; pointer-events: none; opacity: 0; }
.ugrad::before { color: #22d3ee; animation: uglitch 7s infinite steps(1); }
.ugrad::after { color: #e040fb; animation: uglitch2 7s infinite steps(1); }
@keyframes uglitch {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: none; }
  92% { opacity: .9; transform: translate(-4px, 1px); clip-path: inset(10% 0 55% 0); }
  94% { opacity: .9; transform: translate(3px, -1px); clip-path: inset(60% 0 8% 0); }
  96% { opacity: .8; transform: translate(-2px, 0); clip-path: inset(35% 0 40% 0); } }
@keyframes uglitch2 {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: none; }
  92% { opacity: .9; transform: translate(4px, -1px); clip-path: inset(55% 0 12% 0); }
  94% { opacity: .9; transform: translate(-3px, 1px); clip-path: inset(5% 0 70% 0); }
  96% { opacity: .8; transform: translate(2px, 0); clip-path: inset(45% 0 30% 0); } }
.uhero:hover .ugrad::before, .uhero:hover .ugrad::after { animation-duration: 2.2s; }

/* герой: текст + статистика ліворуч, радар праворуч */
.uhero { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); }
.uhero .uhero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 30px; }
.uhero .ustat { padding: 16px 16px 14px; }
.uhero .ustat b { font-size: 32px; }
.uhero .ustat small { font-size: 11.5px; }
.uradar { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.uradar__scope { position: relative; width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.10), rgba(8,10,28,.6) 60%, rgba(8,10,28,.9) 70%);
  border: 1px solid rgba(34,211,238,.45); box-shadow: 0 0 60px rgba(34,211,238,.18), inset 0 0 60px rgba(34,211,238,.10); }
.uradar__ring { position: absolute; inset: 16.6%; border-radius: 50%; border: 1px solid rgba(34,211,238,.22); }
.uradar__ring--2 { inset: 33.3%; }
.uradar__ring--3 { inset: 45%; border-color: rgba(192,38,211,.35); }
.uradar__cross { position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(rgba(34,211,238,.18), rgba(34,211,238,.18)) center / 1px 100% no-repeat, linear-gradient(90deg, rgba(34,211,238,.18), rgba(34,211,238,.18)) center / 100% 1px no-repeat; }
.uradar__sweep { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34,211,238,.55), rgba(99,102,241,.22) 40deg, transparent 90deg); animation: usweep 4s linear infinite; }
@keyframes usweep { to { transform: rotate(360deg); } }
.uradar__core { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(34,211,238,.3), 0 0 22px #22d3ee; }
.uradar__blip { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; z-index: 2;
  background: #34f5a5; box-shadow: 0 0 12px #34f5a5; animation: ublip 4s ease-out infinite; animation-delay: var(--d); }
.uradar__blip::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(52,245,165,.6); animation: uping 4s ease-out infinite; animation-delay: var(--d); }
@keyframes ublip { 0% { opacity: 1; transform: scale(1.3); } 40% { opacity: .75; transform: scale(1); } 100% { opacity: .35; } }
@keyframes uping { 0% { transform: scale(.4); opacity: 1; } 50%, 100% { transform: scale(2.2); opacity: 0; } }
.uradar__blip span { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px); white-space: nowrap; pointer-events: none; opacity: 0;
  font-size: 12px; font-weight: 800; color: #fff; background: rgba(6,8,22,.95); border: 1px solid rgba(34,211,238,.5); padding: 4px 9px; border-radius: 8px; transition: opacity .2s, transform .2s; }
.uradar__blip:hover { animation-play-state: paused; opacity: 1; z-index: 5; }
.uradar__blip:hover span { opacity: 1; transform: translateX(-50%); }
.uradar__cap { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-align: center; }
.uradar__cap b { color: #fff; font-family: var(--font-d); }

/* номери місць на картках */
.gcards { counter-reset: upos; }
.gcard { counter-increment: upos; }
.gcard__body::after { content: counter(upos, decimal-leading-zero); position: absolute; right: 12px; top: -50px; z-index: 2; pointer-events: none;
  font-family: var(--font-d); font-weight: 900; font-style: italic; font-size: 54px; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px rgba(165,243,252,.6); text-shadow: 0 0 30px rgba(34,211,238,.35); }
.slots--first .gcard__body::after { -webkit-text-stroke-color: rgba(253,230,138,.75); text-shadow: 0 0 30px rgba(251,191,36,.35); }

/* обертова неонова рамка: зайняті «Будь першим» — завжди, TOP — при наведенні */
.slots--first .gcard:not(.gcard--free)::before { background: conic-gradient(from var(--ang), #f59e0b, #fde68a 20%, transparent 35%, transparent 65%, #e040fb 80%, #f59e0b); animation: uang 5s linear infinite; padding: 1.5px; }
.slots--top .gcard:not(.gcard--free):hover::before { background: conic-gradient(from var(--ang), #22d3ee, #6366f1, #c026d3, #22d3ee); animation: uang 3s linear infinite; }
@keyframes uang { to { --ang: 360deg; } }

/* шкала заповненості сервера */
.row2__pl { position: relative; overflow: hidden; }
.row2__fill { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--f); background: linear-gradient(90deg, #34f5a5, #22d3ee, #e040fb); box-shadow: 0 0 8px rgba(34,211,238,.8); border-radius: 2px; }

/* поява при прокрутці (клас ux-rv ставить unreal.js — без JS усе видно одразу) */
.ux-rv .rv { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--rd, 0s); }
.ux-rv .rv.is-in { opacity: 1; translate: 0 0; }

@media (max-width: 1199px) {
  .uhero { grid-template-columns: minmax(0, 1fr); }
  .uradar { display: none; }
}
@media (max-width: 760px) {
  .uhero .uhero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uticker__lbl { padding: 0 22px 0 12px; font-size: 12px; }
  .uticker__it { padding: 10px 14px; font-size: 13px; }
  .gcard__body::after { font-size: 34px; top: -34px; }
}
@media (prefers-reduced-motion: reduce) {
  .uticker__track, .uradar__sweep, .uradar__blip, .uradar__blip::after, .ugrad::before, .ugrad::after,
  .btn--gold::after, .btn--accent::after, .slots--first .gcard::before { animation: none !important; }
  .ux-rv .rv { opacity: 1; translate: none; }
}
