/* =====================================================================
   GA-Server theme – matches the GA-Server Launcher
   (keeps every class name the old ServerAion Web modules print)
   ===================================================================== */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --bg: #050914;
  --panel: rgba(12, 20, 40, .78);
  --panel-2: rgba(8, 13, 27, .86);
  --line: rgba(125, 211, 252, .16);
  --line-2: rgba(125, 211, 252, .38);
  --text: #eaf2ff;
  --sub: #8ea0bf;
  --muted: #64748b;
  --cyan: #22d3ee;
  --sky: #38bdf8;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --pink: #e879f9;
  --green: #34d399;
  --red: #f87171;
  --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #8b5cf6 100%);
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  font: 15px/1.6 'Be Vietnam Pro', 'Segoe UI', system-ui, sans-serif;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { border: 0; max-width: 100%; }
a { color: #7dd3fc; text-decoration: none; transition: color .2s; }
a:hover { color: #fff; text-decoration: none; }
::selection { background: rgba(56, 189, 248, .35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #070c19; }
::-webkit-scrollbar-thumb { background: linear-gradient(#1e3a5f, #3b2a6b); border-radius: 10px; border: 2px solid #070c19; }
h1, h2, h3, h4 { margin: 0; }

/* ---------- ambient background ---------- */
.bg-art {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(34, 211, 238, .14), transparent 60%),
    radial-gradient(900px 600px at 90% 30%, rgba(139, 92, 246, .16), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(59, 130, 246, .14), transparent 60%),
    var(--bg);
}
.bg-art::after {
  content: ""; position: absolute; inset: 0;
  background: url(../img/ga/bg.jpg) center / cover no-repeat; transform: scaleX(-1);
  opacity: .22; mask-image: linear-gradient(#000 40%, transparent);
}
#fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.topbar.scrolled, body:not(.is-home) .topbar {
  background: rgba(6, 11, 24, .78); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, .35);
}
.topbar-inner { max-width: 1320px; margin: 0 auto; height: 72px; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 38px; filter: drop-shadow(0 0 10px rgba(56, 189, 248, .55)); transition: transform .4s var(--ease); }
.brand:hover img { transform: scale(1.06) rotate(-2deg); }
.brand-name { font: 700 15px 'Cinzel', serif; letter-spacing: .12em; color: #dbeafe; }

.nav { flex: 1; }
ul#menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; position: static; }
ul#menu > li { position: relative; padding: 0; }
ul#menu a, ul#menu span {
  display: flex; align-items: center; gap: 6px; width: auto;
  padding: 9px 14px; border: 0; border-radius: 11px; background: none;
  font: 600 14px 'Be Vietnam Pro', sans-serif; text-transform: none; color: #c9d6ee;
  position: relative; transition: color .2s, background .2s;
}
ul#menu > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transition: transform .35s var(--ease); box-shadow: 0 0 10px var(--cyan);
}
ul#menu > li > a:hover, ul#menu > li > a.active { color: #fff; background: rgba(255, 255, 255, .05); }
ul#menu > li > a:hover::after, ul#menu > li > a.active::after { transform: scaleX(1); }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s; }
ul#menu li.has-sub:hover .caret { transform: rotate(225deg) translateY(-2px); }
ul#menu li ul {
  display: block; position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px; margin: 0; padding: 8px; list-style: none;
  background: rgba(10, 17, 34, .96); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 30px rgba(34, 211, 238, .1);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top left;
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
ul#menu li ul::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
ul#menu li:hover ul { opacity: 1; visibility: visible; transform: none; border-radius: 14px; }
ul#menu li ul li a { width: auto; padding: 10px 12px; font-size: 13.5px; text-transform: none; background: none; border: 0; }
ul#menu li ul li a:hover { background: rgba(56, 189, 248, .12); color: #fff; padding-left: 18px; }

.status-pills { display: flex; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: #c9d6ee; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: relative; }
.pill.on i { background: var(--green); }
.pill.on i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s infinite; }
.pill.players b { color: #fff; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }

.langs { display: flex; gap: 4px; }
.langs img.flags { height: 14px; border-radius: 3px; opacity: .6; transition: transform .25s var(--ease), opacity .25s; display: block; }
.langs a:hover img.flags { opacity: 1; transform: translateY(-2px) scale(1.12); }

.nav-toggle { display: none; }

/* ---------- 3D buttons ---------- */
.btn3d, .button-submit, .button-reg, .button_reg, .button-edit, input[type="submit"], input[type="button"], button:not(.nav-toggle) {
  --face: var(--grad); --depth: #1d3f8f; --glow: rgba(34, 211, 238, .35);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 22px; margin: 0; border: 0; border-radius: 13px; cursor: pointer; overflow: hidden; isolation: isolate;
  font: 700 14px 'Be Vietnam Pro', sans-serif; letter-spacing: .02em; color: #fff !important; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  background: var(--face); float: none;
  box-shadow: 0 5px 0 var(--depth), 0 10px 22px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .15);
  transform: translateY(0); transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .2s;
  -webkit-appearance: none; appearance: none; text-decoration: none !important;
}
.btn3d::before, .button-submit::before, .button_reg::before, .button-edit::before, button:not(.nav-toggle)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-120%); animation: sheen 4.5s var(--ease) infinite;
}
.btn3d:hover, .button-submit:hover, .button-reg:hover, .button_reg:hover, .button-edit:hover, input[type="submit"]:hover, input[type="button"]:hover, button:not(.nav-toggle):hover {
  transform: translateY(-3px); filter: brightness(1.08) saturate(1.1);
  box-shadow: 0 8px 0 var(--depth), 0 18px 36px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .15);
}
.btn3d:active, .button-submit:active, .button-reg:active, .button_reg:active, .button-edit:active, input[type="submit"]:active, input[type="button"]:active, button:not(.nav-toggle):active {
  transform: translateY(4px); transition-duration: .06s;
  box-shadow: 0 1px 0 var(--depth), 0 4px 10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 2px 6px rgba(0, 0, 0, .25);
}
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn3d svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 11px; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 15px; }
.btn-block { display: flex; width: 100%; }
.btn-violet { --face: linear-gradient(135deg, #a855f7, #8b5cf6 45%, #ec4899); --depth: #5b21b6; --glow: rgba(168, 85, 247, .35); }
.btn-ghost {
  --face: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); --depth: rgba(15, 30, 60, .95); --glow: rgba(56, 189, 248, .15);
  outline: 1px solid rgba(125, 211, 252, .35); outline-offset: -1px; backdrop-filter: blur(8px);
}
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; z-index: 0; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- HERO ---------- */
.hero { position: relative; max-width: 1320px; height: 820px; margin: 0 auto; }
.hero-frame {
  position: absolute; left: 300px; right: 24px; top: 150px; height: 600px; border-radius: 26px;
  background: #060b18; border: 1px solid rgba(125, 211, 252, .28);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 0 70px rgba(14, 165, 233, .28), 0 40px 80px rgba(0, 0, 0, .5);
  animation: frameIn 1s var(--ease) both;
}
@keyframes frameIn { from { opacity: 0; transform: scale(.96); } }
.frame-art { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.frame-art::before {
  content: ""; position: absolute; inset: -20px; background: url(../img/ga/bg.jpg) center / cover; transform: scaleX(-1) translate(var(--px, 0), var(--py, 0));
  transition: transform .6s var(--ease);
}
.frame-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 9, 20, 0) 18%, rgba(5, 9, 20, .72) 42%, rgba(5, 9, 20, .88) 100%),
              radial-gradient(380px 380px at 21% 46%, rgba(34, 211, 238, .25), transparent 70%);
  animation: crystal 4.8s ease-in-out infinite;
}
@keyframes crystal { 50% { filter: brightness(1.25); } }
.frame-comet {
  position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 70%, rgba(165, 243, 252, .9) 82%, rgba(196, 181, 253, .9) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: comet 7s linear infinite; filter: drop-shadow(0 0 6px #22d3ee);
}
@keyframes comet { to { --ang: 360deg; } }
.hero-logo {
  position: absolute; top: -78px; left: 67%; width: 340px; transform: translateX(-50%);
  filter: drop-shadow(0 0 22px rgba(56, 189, 248, .65)); animation: logoIn 1.1s .4s var(--ease) both, float 5s 1.5s ease-in-out infinite;
}
.hero-frame::before {
  content: ""; position: absolute; top: -1px; left: 38%; right: 4%; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, #67e8f9 30%, transparent 46%, transparent 54%, #c4b5fd 70%, transparent);
  box-shadow: 0 0 14px #22d3ee; animation: wings 1.2s .8s var(--ease) both;
}
@keyframes logoIn { from { opacity: 0; transform: translate(-50%, -40px) scale(.9); } }
@keyframes float { 50% { translate: 0 -7px; } }
@keyframes wings { from { transform: scaleX(0); } }
.hero-copy { position: absolute; left: 38%; right: 5%; top: 92px; bottom: 40px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > *:nth-child(1) { animation-delay: .7s; } .hero-copy > *:nth-child(2) { animation-delay: .8s; }
.hero-copy > *:nth-child(3) { animation-delay: .9s; } .hero-copy > *:nth-child(4) { animation-delay: 1s; } .hero-copy > *:nth-child(5) { animation-delay: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateX(30px); } }
.tagline { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: #7dd3fc; }
.tagline span { width: 42px; height: 1px; background: linear-gradient(90deg, transparent, #67e8f9); }
.tagline span:last-child { background: linear-gradient(90deg, #c4b5fd, transparent); }
.hero h1 { font: 800 46px/1.12 'Be Vietnam Pro', sans-serif; text-align: center; letter-spacing: -.01em; }
.hero h1 em {
  font-style: normal; background: linear-gradient(90deg, #67e8f9, #a5b4fc, #f0abfc, #67e8f9); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: hue 6s linear infinite;
}
@keyframes hue { to { background-position: 300% 0; } }
.lead { margin: 16px auto 28px; max-width: 560px; text-align: center; color: #a9b7d0; font-size: 16px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { margin-top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 16px; border: 1px solid var(--line-2);
  background: linear-gradient(135deg, rgba(56, 189, 248, .1), rgba(255, 255, 255, .03) 50%, rgba(139, 92, 246, .1)); }
.stat { padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .08); }
.stat .k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--sub); }
.stat .v { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.stat .v i { width: 9px; height: 9px; border-radius: 50%; position: relative; background: var(--red); }
.stat .v.on { color: var(--green); } .stat .v.off { color: var(--red); }
.stat .v.on i { background: var(--green); } .stat .v.on i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s infinite; }
.stat .num { font-size: 24px; }

/* character, half outside the frame */
.hero-char { position: absolute; left: 0; top: 70px; width: 570px; z-index: 3; pointer-events: none; animation: charIn 1.2s .2s var(--ease) both; }
@keyframes charIn { from { opacity: 0; transform: translateX(-120px); } }
.char-inner { position: relative; animation: bob 3.6s ease-in-out infinite; transform: translate(var(--cx, 0), var(--cy, 0)); transition: transform .6s var(--ease); }
@keyframes bob { 50% { translate: 0 -12px; } }
.char-inner > img { display: block; width: 100%; animation: rim 9s linear infinite; }
@keyframes rim {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(56, 189, 248, .55)); }
  35% { filter: drop-shadow(0 0 16px rgba(129, 140, 248, .6)); }
  65% { filter: drop-shadow(0 0 16px rgba(232, 121, 249, .55)); }
}
.char-aura { position: absolute; left: 12%; top: 14%; width: 76%; height: 66%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .28), rgba(139, 92, 246, .12) 60%, transparent); animation: pulse 3.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.94); } }

.weapon { position: absolute; aspect-ratio: 1; translate: -50% -50%; }
.w-left { left: 20.7%; top: 20.7%; width: 24%; transform: rotate(-10deg) scaleY(.76); }
.w-right { left: 81.5%; top: 39.7%; width: 25.5%; transform: rotate(12deg) scaleY(1.04); }
.weapon i, .weapon b { position: absolute; inset: 0; border-radius: 50%; }
.weapon .glow { inset: -45%; background: radial-gradient(closest-side, rgba(56, 189, 248, .55), rgba(99, 102, 241, .22) 55%, transparent); mix-blend-mode: screen; animation: pulse 2.2s ease-in-out infinite; }
.w-right .glow { background: radial-gradient(closest-side, rgba(168, 85, 247, .55), rgba(59, 130, 246, .22) 55%, transparent); animation-duration: 2.6s; }
.weapon .rim {
  inset: 3%; background: conic-gradient(#f43f5e, #facc15, #4ade80, #22d3ee, #6366f1, #d946ef, #f43f5e);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 7px), #000 calc(100% - 3px), transparent 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 7px), #000 calc(100% - 3px), transparent 100%);
  filter: blur(2px); opacity: .75; mix-blend-mode: screen; animation: spin 3.5s linear infinite;
}
.weapon .rune { inset: -18%; border: 2px dotted rgba(56, 189, 248, .7); animation: spin 14s linear infinite; }
.weapon .rune.r2 { inset: -34%; border: 1px dashed rgba(165, 180, 252, .45); animation-duration: 22s; animation-direction: reverse; }
.weapon .shock { border: 3px solid rgba(186, 230, 253, .8); opacity: 0; animation: shock 3.4s var(--ease) infinite; }
.w-right .shock { animation-delay: 1.5s; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes shock { 0% { transform: scale(1); opacity: .9; } 30%, 100% { transform: scale(1.8); opacity: 0; } }
.weapon .sparks { inset: 0; border-radius: 0; }
.spark { position: absolute; left: 50%; top: 50%; width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%; background: #fff;
  box-shadow: 0 0 8px 2px var(--c, #38bdf8); animation: spark var(--d, 1s) ease-out forwards; }
@keyframes spark { from { transform: translate(var(--x0), var(--y0)); opacity: 1; } to { transform: translate(var(--x1), var(--y1)) scale(.2); opacity: 0; } }
.weapon svg.bolt { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; mix-blend-mode: screen; }
.bolt path { fill: none; stroke-linejoin: round; stroke-linecap: round; }

.scroll-hint { position: absolute; left: 50%; bottom: 14px; width: 26px; height: 42px; border: 2px solid rgba(186, 230, 253, .5); border-radius: 14px; translate: -50% 0; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #a5f3fc; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.page-spacer { height: 104px; }

/* ---------- layout ---------- */
main { position: relative; }
.case {
  max-width: 1320px; width: auto; margin: 0 auto 70px; padding: 0 24px; background: none;
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start;
}
.is-home .case { margin-top: 30px; }
.content { display: block; width: auto; min-width: 0; padding: 0; }
.sidebar { display: flex; flex-direction: column; gap: 20px; width: auto; position: sticky; top: 92px; }
.width { width: auto; }

/* ---------- glass panels ---------- */
.news, .list, .top, .menu, .pages, .card {
  position: relative; margin-bottom: 24px; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35); backdrop-filter: blur(14px);
  transition: border-color .35s, box-shadow .35s, transform .5s var(--ease);
  transform-style: preserve-3d;
}
.sidebar .card { margin: 0; padding: 0; overflow: hidden; }
.news::before, .list::before, .card::before, .pages::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, .8), rgba(196, 181, 253, .8), transparent); opacity: .6;
}
.news:hover, .list:hover, .card:hover { border-color: var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 40px rgba(34, 211, 238, .08); }

.news_title a, .news-title, .news-title a, .news_lc, .menu-title {
  display: block; margin: 0 0 14px; font: 700 22px/1.3 'Be Vietnam Pro', sans-serif; color: #fff;
}
.news-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 19px; }
.news-title::before { content: ""; width: 4px; height: 22px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 12px rgba(34, 211, 238, .6); flex-shrink: 0; }
.news-title center { flex: 1; text-align: left; }
.news-title > div[style*="float"] { float: none !important; margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--sub); }
.news_title a { background: linear-gradient(90deg, #fff, #fff) left bottom / 0 2px no-repeat; transition: background-size .4s var(--ease), color .3s; display: inline; }
.news_title a:hover { color: #a5f3fc; background-image: var(--grad); background-size: 100% 2px; }
.news_title { margin-bottom: 6px; }
.news-text { background: none; color: #c9d6ee; line-height: 1.75; overflow-wrap: anywhere; }
.news-text img { border-radius: 12px; margin: 6px 12px 12px 0; }
.news-text a { text-decoration: underline; text-decoration-color: rgba(125, 211, 252, .4); }
.news-date { margin: 14px 0 0; font-size: 12.5px; color: var(--sub); display: flex; align-items: center; gap: 8px; }
.news-date::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 2px solid currentColor; opacity: .7; }
.news hr, hr { border: 0; height: 1px; margin: 14px 0; background: linear-gradient(90deg, rgba(125, 211, 252, .3), rgba(139, 92, 246, .15), transparent); }
.news-date hr { display: none; }
.hr { height: 1px; margin: 26px 0; background: linear-gradient(90deg, transparent, rgba(125, 211, 252, .35), transparent); }
.button-edit { float: right; margin: 14px 0 0 10px; padding: 7px 16px; font-size: 12.5px; --face: linear-gradient(180deg, #334155, #1e293b); --depth: #0b1220; --glow: rgba(0, 0, 0, .3); }

/* sidebar cards */
.card-title {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px; margin: 0;
  font: 700 13px 'Be Vietnam Pro', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #dbeafe;
  background: linear-gradient(90deg, rgba(56, 189, 248, .14), rgba(139, 92, 246, .08) 60%, transparent);
  border-bottom: 1px solid var(--line);
}
.card-title svg { width: 18px; height: 18px; fill: #7dd3fc; filter: drop-shadow(0 0 6px rgba(56, 189, 248, .7)); }
.card-body { padding: 18px 20px 20px; color: #c9d6ee; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); transition: transform .3s var(--ease), background .3s; }
.mini:hover { transform: translateY(-3px); background: rgba(56, 189, 248, .08); }
.mini .num { display: block; font-size: 22px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini .k { font-size: 12px; color: var(--sub); }
.gm-online { font-size: 14px; color: #a9b7d0; }
.card-launcher { text-align: center; }
.launcher-art { height: 120px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .35), transparent), url(../img/ga/bg.jpg) 20% 45% / 260% auto; }
.launcher-art img { width: 170px; filter: drop-shadow(0 0 16px rgba(56, 189, 248, .7)); animation: float 4s ease-in-out infinite; }
.card-launcher b { display: block; font-size: 16px; color: #fff; }
.card-launcher p { margin: 6px 0 16px; font-size: 13px; color: var(--sub); }

/* login box (login_form.php prints tables) */
#login-form { width: auto; color: #c9d6ee; }
#login-form h3 { display: none; }
#login-form table { width: 100%; border-collapse: collapse; }
#login-form td { padding: 0; vertical-align: middle; }
#login-form td[colspan] { height: 6px; }
#login-form td[rowspan] { text-align: right; }
#login-form td span.info + a { font-size: 12.5px; }
#login-form input[type="submit"] { padding: 11px 20px; }
.logintext, .login-field { width: 100% !important; margin-bottom: 10px; }
.info { display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0 8px 4px 0; border-radius: 50%;
  font-size: 11px; font-weight: 700; color: #7dd3fc; background: rgba(56, 189, 248, .14); line-height: 1; }
.dot { display: flex; align-items: center; gap: 4px; padding: 10px 8px; margin: 0 -8px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 14px; color: #c9d6ee; border-radius: 10px; transition: background .25s, padding .25s; }
.dot:hover { background: rgba(56, 189, 248, .08); padding-left: 14px; }
.dot b { color: #fff; }
.dot .ico, .ico { width: 16px; height: 16px; margin: 0 4px 0 0; filter: brightness(1.4) saturate(.6); }

/* ---------- forms ---------- */
input[type="text"], input[type="password"], input[type="email"], input[type="name"], input[type="number"], select, textarea, .field, .field-reg, .login-field, .logintext {
  font: 500 14px 'Be Vietnam Pro', sans-serif; color: #eaf2ff; width: 100%; max-width: 100%;
  padding: 11px 14px; margin-bottom: 8px; border-radius: 12px; outline: none;
  background: rgba(3, 7, 18, .55); border: 1px solid rgba(125, 211, 252, .2);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); transition: border-color .25s, box-shadow .25s, background .25s;
}
input:focus, select:focus, textarea:focus { border-color: #38bdf8; background: rgba(3, 7, 18, .75);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 4px rgba(56, 189, 248, .15), 0 0 24px rgba(56, 189, 248, .2); }
select { width: auto; padding-right: 34px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background: rgba(3, 7, 18, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237dd3fc'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") right 8px center / 20px no-repeat; }
select option { background: #0b1326; color: #eaf2ff; }
.field-reg { width: 280px; }
.content form table td { padding: 4px 8px; color: #c9d6ee; }
.content form img[src*="captcha"] { border-radius: 10px; border: 1px solid var(--line-2); display: block; }
.textarea, .cleditorMain { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2) !important; }

/* messages */
.error, .accept { display: block; margin: 14px auto 0; padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; text-align: center; animation: pop .4s var(--ease); }
.error { color: #fecaca; background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .35); }
.accept { color: #bbf7d0; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .35); }
.error:empty, .accept:empty { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }

/* ---------- tables (rankings, online, legions...) ---------- */
.content table { border-collapse: separate; border-spacing: 0; }
.list table, .news table[width="100%"] { width: 100%; }
td.tophead {
  padding: 12px 10px; border: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7dd3fc;
  background: rgba(56, 189, 248, .08); border-bottom: 1px solid var(--line-2);
}
tr td.tophead:first-child { border-radius: 12px 0 0 0; } tr td.tophead:last-child { border-radius: 0 12px 0 0; }
td.toptext, td.toptextright { padding: 11px 10px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); color: #c9d6ee; transition: background .2s; }
td.toptextright { text-align: right; }
tr:hover > td.toptext, tr:hover > td.toptextright { background: rgba(56, 189, 248, .07); color: #fff; }
.list tr:nth-child(2) td.toptext:first-child, .list tr:nth-child(3) td.toptext:first-child, .list tr:nth-child(4) td.toptext:first-child { font-weight: 800; }
.list tr:nth-child(2) td.toptext:first-child { color: #fde047; text-shadow: 0 0 10px rgba(253, 224, 71, .6); }
.list tr:nth-child(3) td.toptext:first-child { color: #e2e8f0; text-shadow: 0 0 10px rgba(226, 232, 240, .5); }
.list tr:nth-child(4) td.toptext:first-child { color: #fdba74; text-shadow: 0 0 10px rgba(253, 186, 116, .5); }
td.toptext a { font-weight: 600; }
.rankabyss { padding: 16px; border-radius: 14px; text-align: center; font-weight: 700; text-transform: uppercase; color: #fff; height: auto;
  background: linear-gradient(135deg, rgba(56, 189, 248, .18), rgba(139, 92, 246, .18)); border: 1px solid var(--line-2); }

/* ---------- tiles (downloads / admin) ---------- */
#nodecor { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
#nodecor a { text-decoration: none; }
.menu-block, .admin-block, .menu-button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 150px; min-height: 120px; margin: 0; padding: 18px 14px;
  border-radius: 16px; text-align: center; text-shadow: none; color: #dbeafe; border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(56, 189, 248, .16), rgba(15, 23, 42, .6) 55%, rgba(139, 92, 246, .16));
  box-shadow: 0 6px 0 rgba(11, 20, 40, .95), 0 14px 28px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.menu-button { width: auto; min-height: 0; flex-direction: row; justify-content: flex-start; margin-bottom: 10px; }
.menu-block:hover, .admin-block:hover, a.menu-button:hover { color: #fff; background: linear-gradient(160deg, rgba(56, 189, 248, .26), rgba(15, 23, 42, .6) 55%, rgba(139, 92, 246, .26));
  border-color: #7dd3fc; transform: translateY(-4px); box-shadow: 0 10px 0 rgba(11, 20, 40, .95), 0 22px 40px rgba(34, 211, 238, .2), inset 0 1px 0 rgba(255, 255, 255, .25); padding-left: 14px; }
.menu-block:active, .admin-block:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(11, 20, 40, .95), 0 6px 12px rgba(0, 0, 0, .4); }
.menu-block img, .admin-block img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(56, 189, 248, .5)); }

/* download page */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 8px; }
.dl-card { position: relative; padding: 22px; border-radius: 18px; border: 1px solid var(--line-2); overflow: hidden;
  background: linear-gradient(160deg, rgba(56, 189, 248, .12), rgba(10, 16, 32, .7) 60%, rgba(139, 92, 246, .14)); transition: transform .4s var(--ease), border-color .3s; }
.dl-card:hover { border-color: #7dd3fc; }
.dl-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; background: var(--grad); box-shadow: 0 8px 20px rgba(34, 211, 238, .35); }
.dl-card .ic svg { width: 26px; height: 26px; fill: #fff; }
.dl-card h3 { font-size: 18px; color: #fff; }
.dl-card p { margin: 6px 0 18px; font-size: 13.5px; color: var(--sub); }
.dl-card .meta { font-size: 12px; color: #7dd3fc; margin-bottom: 14px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 62px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); color: #c9d6ee; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: var(--grad); box-shadow: 0 4px 0 #1d3f8f, 0 8px 16px rgba(34, 211, 238, .3); }
.steps b { color: #fff; }

/* ---------- paginator (page.js) ---------- */
.nav_news { margin-top: 10px; }
.paginator { font: 500 13px 'Be Vietnam Pro', sans-serif; }
.paginator td span { color: var(--sub); }
.paginator td span a { color: #c9d6ee; border-radius: 8px; transition: background .2s; }
.paginator td span a:hover { color: #fff; background: rgba(56, 189, 248, .25); }
.paginator td span strong { border-radius: 8px; background: var(--grad); color: #fff; box-shadow: 0 3px 0 #1d3f8f; }
.paginator .left, .paginator .right, .paginator .left a, .paginator .right a { color: var(--sub); }
.paginator .scroll_trough { background: rgba(255, 255, 255, .08); border-radius: 3px; }
.paginator .scroll_thumb { background: var(--grad); border-radius: 3px; }
.paginator .current_page_mark { background: #a5f3fc; }

/* tooltip.js */
#tooltip { position: absolute; z-index: 100; visibility: hidden; padding: 7px 11px; border-radius: 9px; font-size: 12.5px; color: #eaf2ff; opacity: .96;
  background: rgba(10, 17, 34, .96); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }

/* ---------- footer ---------- */
.footer { position: relative; width: auto; height: auto; margin: 0; padding: 0; color: var(--sub); background: rgba(4, 8, 18, .85); border-top: 1px solid var(--line); text-shadow: none; overflow: hidden; }
.footer-glow { position: absolute; left: 50%; top: -1px; width: 60%; height: 2px; translate: -50% 0; background: linear-gradient(90deg, transparent, #22d3ee, #8b5cf6, transparent); box-shadow: 0 0 20px #22d3ee; }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 46px 24px 30px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.f-brand img { height: 54px; filter: drop-shadow(0 0 14px rgba(56, 189, 248, .5)); }
.f-brand p { margin: 12px 0 0; font-size: 13px; line-height: 1.7; max-width: 420px; }
.f-col { display: flex; flex-direction: column; gap: 8px; }
.f-col h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #dbeafe; margin-bottom: 6px; }
.f-col a { color: var(--sub); font-size: 14px; width: fit-content; transition: color .2s, transform .25s var(--ease); }
.f-col a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom { text-align: center; padding: 16px; font-size: 12.5px; border-top: 1px solid rgba(255, 255, 255, .05); }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 5px 0 #1d3f8f, 0 12px 24px rgba(34, 211, 238, .35); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top svg { width: 22px; height: 22px; fill: #fff; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- scroll reveal (class added by ga.js) ---------- */
.reveal { opacity: 0; transform: translateY(34px) scale(.985); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- misc legacy helpers ---------- */
.clear { clear: both; }
.mb10 { margin-bottom: 12px; }
.tcenter { text-align: center; }
.right { text-align: right; }
.center { margin: 0 auto; }
.shadow, .border, .border-top, .border-bottom, .dark-shadow { }
fieldset { border: 0; margin: 0; padding: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .status-pills .pill:not(.players) { display: none; }
  .hero-frame { left: 250px; }
  .hero-char { width: 500px; }
  .hero h1 { font-size: 40px; }
}
@media (max-width: 1080px) {
  .case { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .langs { display: none; }
  .hero { height: auto; padding: 100px 24px 40px; }
  .hero-char { position: relative; left: auto; top: auto; width: min(420px, 80vw); margin: 0 auto -150px; }
  .hero-frame { position: relative; left: auto; right: auto; top: auto; height: auto; padding: 150px 24px 30px; }
  .hero-copy { position: relative; left: auto; right: auto; top: auto; bottom: auto; }
  .hero-logo { top: auto; bottom: calc(100% - 70px); left: 50%; width: 260px; display: none; }
  .hero-frame::before { left: 6%; right: 6%; }
  .frame-art::after { background: linear-gradient(180deg, rgba(5, 9, 20, .5), rgba(5, 9, 20, .9) 40%); }
  .scroll-hint { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto; padding: 10px; border: 0; background: none; cursor: pointer; }
  .nav-toggle span { width: 22px; height: 2px; border-radius: 2px; background: #dbeafe; transition: transform .3s, opacity .3s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: absolute; top: 72px; left: 12px; right: 12px; padding: 10px; border-radius: 16px; background: rgba(8, 13, 27, .97); border: 1px solid var(--line-2);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  ul#menu { flex-direction: column; }
  ul#menu li ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 14px; }
  .status-pills, .topbar .btn-sm { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .field-reg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- factions band (home) ---------- */
.factions { position: relative; margin: 10px 0 50px; padding: 90px 24px; overflow: hidden; isolation: isolate; }
.factions-art { position: absolute; inset: 0; z-index: -1; background: url(../img/ga/factions.jpg) center 30% / cover no-repeat; transform: scale(1.08) translateY(var(--fy, 0)); }
.factions-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(5, 9, 20, .35) 22%, rgba(5, 9, 20, .25) 50%, rgba(5, 9, 20, .45) 78%, var(--bg) 100%),
              linear-gradient(90deg, rgba(5, 9, 20, .55), transparent 35%, transparent 65%, rgba(5, 9, 20, .55)); }
.factions-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; }
.faction { padding: 28px; border-radius: 22px; backdrop-filter: blur(12px) saturate(130%); border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transition: transform .5s var(--ease), box-shadow .4s; transform-style: preserve-3d; }
.faction.ely { background: linear-gradient(150deg, rgba(56, 189, 248, .35), rgba(8, 20, 45, .65)); }
.faction.asmo { background: linear-gradient(210deg, rgba(168, 85, 247, .38), rgba(25, 10, 45, .65)); text-align: right; }
.faction:hover { box-shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 0 50px rgba(56, 189, 248, .25); }
.faction.asmo:hover { box-shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 0 50px rgba(168, 85, 247, .3); }
.f-tag { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: #e0f2fe; opacity: .85; }
.faction h2 { font: 700 40px 'Cinzel', serif; margin: 4px 0 6px; color: #fff; text-shadow: 0 0 24px rgba(56, 189, 248, .7); transform: translateZ(30px); }
.faction.asmo h2 { text-shadow: 0 0 24px rgba(192, 132, 252, .8); }
.faction p { margin: 0 0 16px; color: #e2e8f0; font-size: 14.5px; }
.f-count { font-size: 14px; color: #cbd5e1; } .f-count b { font-size: 28px; color: #fff; margin-right: 4px; }
.versus { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.vs-ring { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle, rgba(5, 9, 20, .85) 55%, transparent 56%), conic-gradient(from var(--ang), #22d3ee, #8b5cf6, #e879f9, #22d3ee);
  animation: comet 4s linear infinite; box-shadow: 0 0 40px rgba(139, 92, 246, .5); }
.vs-ring span { font: 700 30px 'Cinzel', serif; color: #fff; text-shadow: 0 0 14px #a5f3fc; animation: pulse 2s ease-in-out infinite; }
.balance { width: 180px; height: 8px; border-radius: 8px; background: linear-gradient(90deg, #a855f7, #7c3aed); overflow: hidden; box-shadow: 0 0 16px rgba(139, 92, 246, .5); }
.balance i { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #3b82f6); box-shadow: 0 0 12px #22d3ee; transition: width 1.6s var(--ease); }

/* ---------- inner page banner ---------- */
.page-banner { position: relative; height: 250px; margin-bottom: -60px; overflow: hidden; }
.page-banner-art { position: absolute; inset: 0; background: url(../img/ga/factions.jpg) center 32% / cover no-repeat; animation: bannerZoom 18s ease-in-out infinite alternate; }
.page-banner::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 20, .55), rgba(5, 9, 20, .35) 40%, var(--bg)), linear-gradient(90deg, rgba(5, 9, 20, .5), transparent 30%, transparent 70%, rgba(5, 9, 20, .5)); }
@keyframes bannerZoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.page-banner + main .case { position: relative; z-index: 1; }

@media (max-width: 860px) {
  .factions-inner { grid-template-columns: 1fr; }
  .faction.asmo { text-align: left; }
  .page-banner { height: 170px; }
}

/* mobile: character above the frame, overlapping its top edge */
@media (max-width: 1080px) {
  .hero { display: flex; flex-direction: column; }
  .hero-char { order: -1; z-index: 3; }
  .hero-frame { z-index: 1; animation: none; }
}