/* ==========================================================================
   RYL Neverwinter - "Neo" theme
   Modern CSS3 shell around the legacy GBtoolz modules.
   NOTE: keep this file pure ASCII (site is served as euc-kr).
   ========================================================================== */

:root {
  --bg: #07090d;
  --bg-2: #0c1017;
  --panel: rgba(16, 20, 29, .78);
  --panel-solid: #121722;
  --panel-hi: rgba(28, 34, 48, .9);
  --line: rgba(232, 182, 76, .20);
  --line-strong: rgba(232, 182, 76, .45);
  --gold: #e8b64c;
  --gold-2: #ffd98a;
  --gold-3: #a8792a;
  --ember: #ff6a2b;
  --crimson: #d0283f;
  --human: #fae00f;
  --akkan: #ff4d5e;
  --text: #e9e4d8;
  --muted: #98a1b1;
  --ok: #3ddc84;
  --bad: #ff4d5e;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .85), 0 2px 0 rgba(255, 255, 255, .03) inset;
  --glow: 0 0 0 1px var(--line-strong), 0 0 24px -4px rgba(232, 182, 76, .45);
  --font-display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body.neo {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(208, 40, 63, .16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(232, 182, 76, .10), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  background-attachment: fixed;
  color: var(--text);
  font: 400 14px/1.6 var(--font-body);
  overflow-x: hidden;
}
body.neo img { border: 0; }
body.neo ::selection { background: rgba(232, 182, 76, .35); color: #fff; }

/* scrollbar */
body.neo { scrollbar-color: var(--gold-3) var(--bg); scrollbar-width: thin; }
body.neo::-webkit-scrollbar { width: 10px; }
body.neo::-webkit-scrollbar-track { background: var(--bg); }
body.neo::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--gold-3)); border-radius: 10px; border: 2px solid var(--bg); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.neo-skip { position: absolute; left: 12px; top: -60px; z-index: 3000; padding: 10px 16px; border-radius: 8px; background: var(--gold); color: #1a1206; font-weight: 700; text-decoration: none; transition: top .2s; }
.neo-skip:focus { top: 12px; }

/* ember canvas + vignette */
#neo-embers { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .75; }
.neo-vignette { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%); }

.neo-wrap { position: relative; z-index: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.neo-nav {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  border-bottom: 1px solid rgba(232, 182, 76, .12);
  transition: box-shadow .3s var(--ease), height .3s var(--ease);
}
/* The glass blur sits on a pseudo-element: a backdrop-filter on the nav itself would make it the
   containing block of the fixed mobile drawer and squeeze the drawer into the 64px bar. */
.neo-nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(8, 10, 15, .62);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: background .3s var(--ease);
}
.neo-nav.is-scrolled { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8); --nav-h: 56px; height: 56px; }
.neo-nav.is-scrolled::before { background: rgba(8, 10, 15, .9); }
.neo-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), var(--ember), var(--gold), transparent); background-size: 200% 100%; animation: neo-flow 6s linear infinite; opacity: .6; }
@keyframes neo-flow { to { background-position: -200% 0; } }

.neo-nav .neo-wrap { display: flex; align-items: center; gap: 18px; height: 100%; }

.neo-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.neo-brand img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(232, 182, 76, .45)); transition: transform .5s var(--ease); }
.neo-brand:hover img { transform: rotate(-8deg) scale(1.08); }
.neo-brand b { display: block; font: 700 15px/1 var(--font-display); letter-spacing: .12em; background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.neo-brand small { display: block; font-size: 10px; letter-spacing: .32em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }

.neo-menu { display: flex; align-items: center; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; height: 100%; }
.neo-menu > li { position: relative; height: 100%; display: flex; align-items: center; }
.neo-menu > li > a:not(.neo-btn), .neo-menu > li > button {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  color: #cfd3dc; text-decoration: none; font: 600 12.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s, background .2s;
}
.neo-menu > li > a:not(.neo-btn)::after, .neo-menu > li > button::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--ember)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.neo-menu > li > a:not(.neo-btn):hover, .neo-menu > li > button:hover, .neo-menu > li:focus-within > a:not(.neo-btn), .neo-menu > li:focus-within > button { color: #fff; background: rgba(255, 255, 255, .04); }
.neo-menu > li > a:not(.neo-btn):hover::after, .neo-menu > li > button:hover::after, .neo-menu > li.is-active > a:not(.neo-btn)::after, .neo-menu > li.is-active > button::after { transform: scaleX(1); }
.neo-menu > li.is-active > a:not(.neo-btn), .neo-menu > li.is-active > button { color: var(--gold-2); }
.neo-caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); opacity: .7; }
.neo-menu > li.is-open .neo-caret { transform: translateY(1px) rotate(-135deg); }

.neo-menu .neo-cta { margin-left: 8px; }

/* dropdown */
.neo-drop {
  position: absolute; top: calc(100% - 6px); left: 50%; min-width: 220px; margin: 0; padding: 8px; list-style: none;
  background: rgba(14, 17, 25, .96); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px) scale(.98); transform-origin: top center;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
}
.neo-drop::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; background: inherit; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.neo-menu > li.has-drop:hover > .neo-drop, .neo-menu > li.is-open > .neo-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.neo-drop a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: #c6cbd5; text-decoration: none; font-size: 13px; transition: background .2s, color .2s, padding .2s; }
.neo-drop a::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--gold-3); transform: rotate(45deg); transition: background .2s, box-shadow .2s; flex-shrink: 0; }
.neo-drop a:hover, .neo-drop a:focus-visible { background: linear-gradient(90deg, rgba(232, 182, 76, .14), transparent); color: #fff; padding-left: 16px; }
.neo-drop a:hover::before { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.neo-drop .is-locked a { opacity: .65; }
.neo-drop .neo-tag { margin-left: auto; font-size: 10px; padding: 2px 6px; border-radius: 20px; background: rgba(255, 255, 255, .06); color: var(--muted); letter-spacing: .04em; }

/* mega dropdown (guide) */
.neo-drop.neo-mega { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 6px 14px; width: min(860px, calc(100vw - 32px)); padding: 16px; }
.neo-mega h6 { margin: 4px 12px 8px; font: 700 11px/1 var(--font-display); letter-spacing: .18em; color: var(--gold); text-transform: uppercase; }
.neo-mega ul { list-style: none; margin: 0; padding: 0; }
.neo-mega a { padding: 7px 12px; font-size: 12.5px; }

/* burger */
.neo-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); cursor: pointer; position: relative; }
.neo-burger span, .neo-burger span::before, .neo-burger span::after { position: absolute; left: 11px; width: 20px; height: 2px; border-radius: 2px; background: var(--gold-2); transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s; content: ""; }
.neo-burger span { top: 20px; }
.neo-burger span::before { left: 0; top: -6px; }
.neo-burger span::after { left: 0; top: 6px; }
.neo-nav.is-menu-open .neo-burger span { background: transparent; }
.neo-nav.is-menu-open .neo-burger span::before { top: 0; transform: rotate(45deg); }
.neo-nav.is-menu-open .neo-burger span::after { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.neo-btn {
  --b1: var(--gold-2); --b2: var(--gold); --b3: var(--gold-3);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer; overflow: hidden; isolation: isolate;
  font: 700 12.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: #1c1204 !important; background: linear-gradient(180deg, var(--b1), var(--b2) 50%, var(--b3));
  box-shadow: 0 8px 22px -8px rgba(232, 182, 76, .7), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .2);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
}
.neo-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.neo-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(232, 182, 76, .9), inset 0 1px 0 rgba(255, 255, 255, .5); filter: saturate(1.15); }
.neo-btn:hover::before { transform: translateX(120%); }
.neo-btn:active { transform: translateY(0) scale(.98); }
.neo-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.neo-btn--fire { --b1: #ffb27a; --b2: var(--ember); --b3: #b0311b; color: #fff !important; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); box-shadow: 0 8px 22px -8px rgba(255, 106, 43, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.neo-btn--ghost { color: var(--gold-2) !important; background: rgba(232, 182, 76, .06); box-shadow: inset 0 0 0 1px var(--line-strong); }
.neo-btn--ghost:hover { background: rgba(232, 182, 76, .14); box-shadow: inset 0 0 0 1px var(--gold), 0 10px 26px -12px rgba(232, 182, 76, .7); }
.neo-btn--sm { min-height: 34px; padding: 0 14px; font-size: 11px; border-radius: 10px; }
.neo-btn--block { display: flex; width: 100%; }
.neo-ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .55); animation: neo-ripple .6s ease-out forwards; pointer-events: none; }
@keyframes neo-ripple { to { transform: scale(4); opacity: 0; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.neo-hero { position: relative; z-index: 1; overflow: hidden; }
.neo-hero__bg { position: absolute; inset: -40px; background: url(hero.jpg) center top / cover no-repeat; filter: blur(28px) saturate(1.3) brightness(.45); transform: scale(1.1); }
.neo-hero__art { position: relative; max-width: 1110px; margin: 0 auto; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.neo-hero__art > img { display: block; width: 100%; height: auto; animation: neo-kenburns 22s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes neo-kenburns { from { transform: scale(1); } to { transform: scale(1.045); } }
.neo-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(transparent, var(--bg-2)); pointer-events: none; }

/* "Join now" slot baked into the banner art */
.neo-hero__join {
  position: absolute; z-index: 2; left: 10.3%; top: 69.5%; width: 16.6%; height: 27.5%;
  display: flex; align-items: center; justify-content: center; border-radius: 4px; text-decoration: none;
  font: 700 clamp(10px, 1.45vw, 17px)/1 var(--font-display); letter-spacing: .14em; color: #fff; text-shadow: 0 0 10px rgba(255, 106, 43, .9), 0 2px 2px #000;
  background: linear-gradient(135deg, rgba(208, 40, 63, .75), rgba(255, 106, 43, .55)); box-shadow: inset 0 0 0 1px rgba(255, 217, 138, .6), 0 0 22px rgba(255, 106, 43, .5);
  animation: neo-pulse 2.4s ease-in-out infinite;
  transition: transform .25s var(--ease), filter .25s;
}
.neo-hero__join:hover { transform: scale(1.05); filter: brightness(1.2); }
@keyframes neo-pulse { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 217, 138, .6), 0 0 14px rgba(255, 106, 43, .35); } 50% { box-shadow: inset 0 0 0 1px rgba(255, 217, 138, .9), 0 0 34px rgba(255, 106, 43, .85); } }

/* status strip overlapping hero bottom */
.neo-strip { position: relative; z-index: 3; margin-top: 18px; display: grid; grid-template-columns: 1.25fr repeat(3, 1fr) 1.5fr; gap: 12px; }
.neo-stat {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
.neo-stat:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.neo-stat__icon { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, rgba(232, 182, 76, .22), rgba(232, 182, 76, .04)); box-shadow: inset 0 0 0 1px var(--line); color: var(--gold-2); }
.neo-stat__icon svg { width: 22px; height: 22px; }
.neo-stat__label { display: block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.neo-stat__value { display: block; margin-top: 3px; font: 700 20px/1.1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.neo-stat__sub { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.neo-status-dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 12px var(--bad); flex-shrink: 0; }
.neo-status-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; color: var(--bad); animation: neo-ping 1.8s var(--ease) infinite; }
.is-online .neo-status-dot { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.is-online .neo-status-dot::after { color: var(--ok); }
@keyframes neo-ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.neo-status-text { font: 700 18px/1 var(--font-display); letter-spacing: .06em; color: var(--bad); }
.is-online .neo-status-text { color: var(--ok); }

.neo-stat--war { background: linear-gradient(135deg, rgba(208, 40, 63, .25), rgba(16, 20, 29, .8) 60%); }
.neo-stat--war.is-live { border-color: rgba(255, 106, 43, .7); animation: neo-live 1.6s ease-in-out infinite; }
@keyframes neo-live { 50% { box-shadow: 0 0 0 1px rgba(255, 106, 43, .5), 0 0 30px -4px rgba(255, 106, 43, .6); } }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.neo-main { position: relative; z-index: 1; display: grid; grid-template-columns: 270px minmax(0, 1fr) 270px; grid-template-areas: "left content right"; gap: 22px; align-items: start; margin-top: 22px; }
.neo-left { grid-area: left; }
.neo-content { grid-area: content; min-width: 0; }
.neo-right { grid-area: right; }
.neo-left, .neo-right { display: grid; gap: 18px; align-content: start; }

/* generic card */
.neo-card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow); overflow: hidden;
}
.neo-card::before { /* top shine */ content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 217, 138, .6), transparent); }
.neo-card__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid rgba(232, 182, 76, .1); background: linear-gradient(180deg, rgba(232, 182, 76, .07), transparent); }
.neo-card__head h3 { margin: 0; font: 700 13px/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.neo-card__head .neo-ico { color: var(--gold); width: 18px; height: 18px; flex-shrink: 0; }
.neo-card__head a.neo-more { margin-left: auto; font-size: 11px; color: var(--muted); text-decoration: none; letter-spacing: .06em; }
.neo-card__head a.neo-more:hover { color: var(--gold-2); }
.neo-card__body { padding: 16px; }

/* animated gradient border on focus cards */
.neo-card--glow { border-color: transparent; background: linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box, conic-gradient(from var(--ang, 0deg), var(--gold-3), var(--gold-2), var(--ember), var(--crimson), var(--gold-3)) border-box; border: 1px solid transparent; animation: neo-spin 8s linear infinite; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes neo-spin { to { --ang: 360deg; } }

/* ---- account / login ---- */
.neo-field { position: relative; margin-bottom: 12px; }
.neo-field input {
  width: 100%; height: 44px; padding: 16px 40px 4px 40px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .35); color: #fff; font: 500 14px/1 var(--font-body); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.neo-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 182, 76, .18); background: rgba(0, 0, 0, .5); }
.neo-field label { position: absolute; left: 40px; top: 14px; font-size: 13px; color: var(--muted); pointer-events: none; transition: all .2s var(--ease); }
.neo-field input:focus + label, .neo-field input:not(:placeholder-shown) + label { top: 5px; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.neo-field .neo-ico { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.neo-field input:focus ~ .neo-ico { color: var(--gold); }
.neo-eye { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.neo-eye:hover { color: var(--gold-2); background: rgba(255, 255, 255, .05); }
.neo-eye svg { width: 18px; height: 18px; }
.neo-field.is-error input { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255, 77, 94, .18); animation: neo-shake .4s; }
@keyframes neo-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.neo-login-links { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; }
.neo-login-links a { color: var(--muted); text-decoration: none; }
.neo-login-links a:hover { color: var(--gold-2); }

.neo-user { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.neo-avatar { position: relative; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font: 700 22px/1 var(--font-display); color: #1c1204; background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); box-shadow: 0 0 0 2px rgba(0, 0, 0, .4), 0 0 20px -2px rgba(232, 182, 76, .6); text-transform: uppercase; }
.neo-avatar::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); border: 2px solid var(--panel-solid); }
.neo-user small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.neo-user strong { display: block; font: 700 16px/1.2 var(--font-display); color: var(--gold-2); word-break: break-all; }
.neo-user-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.neo-user-chars { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.neo-user-chars li a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .05); color: var(--text); text-decoration: none; font-size: 12.5px; transition: border-color .2s, background .2s; }
.neo-user-chars li a:hover { border-color: var(--line-strong); background: rgba(232, 182, 76, .07); }
.neo-user-chars li a span { color: var(--muted); font-size: 11px; }

/* ---- quick action tiles ---- */
.neo-quick { display: grid; gap: 10px; }
.neo-tile {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; overflow: hidden; text-decoration: none;
  color: var(--text); background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); border: 1px solid rgba(255, 255, 255, .06);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.neo-tile::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: translateY(-50%) rotate(45deg); transition: right .25s var(--ease), border-color .25s; }
.neo-tile:hover { transform: translateX(3px); border-color: var(--line-strong); box-shadow: -3px 0 0 var(--gold), 0 10px 24px -14px rgba(232, 182, 76, .6); }
.neo-tile:hover::after { right: 10px; border-color: var(--gold-2); }
.neo-tile__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; color: #fff; }
.neo-tile__ico svg { width: 20px; height: 20px; }
.neo-tile--join .neo-tile__ico { background: linear-gradient(135deg, var(--crimson), var(--ember)); box-shadow: 0 0 16px -2px rgba(255, 106, 43, .7); }
.neo-tile--guide .neo-tile__ico { background: linear-gradient(135deg, #3b6fd8, #6aa7ff); box-shadow: 0 0 16px -2px rgba(106, 167, 255, .6); }
.neo-tile--dl .neo-tile__ico { background: linear-gradient(135deg, #1f9d61, var(--ok)); box-shadow: 0 0 16px -2px rgba(61, 220, 132, .6); }
.neo-tile b { display: block; font: 700 13px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.neo-tile small { display: block; font-size: 11px; color: var(--muted); }

/* ---- schedule ---- */
.neo-sched { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.neo-sched li { position: relative; padding: 12px 12px 12px 16px; border-radius: 11px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .05); overflow: hidden; }
.neo-sched li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--gold), var(--gold-3)); }
.neo-sched li.is-guild::before { background: linear-gradient(var(--crimson), var(--ember)); }
.neo-sched li.is-live { border-color: rgba(255, 106, 43, .6); background: linear-gradient(90deg, rgba(255, 106, 43, .16), rgba(0, 0, 0, .25)); }
.neo-sched h4 { margin: 0 0 6px; font: 700 12px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); display: flex; align-items: center; gap: 8px; }
.neo-sched .neo-when { display: flex; flex-wrap: wrap; gap: 6px; }
.neo-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 30px; font-size: 11.5px; font-weight: 600; color: #dfe3ea; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); font-variant-numeric: tabular-nums; }
.neo-chip.is-live { color: #fff; background: rgba(255, 106, 43, .3); border-color: rgba(255, 106, 43, .7); }
.neo-live-badge { display: none; font: 700 9px/1 var(--font-body); letter-spacing: .12em; padding: 3px 6px; border-radius: 4px; background: var(--ember); color: #fff; animation: neo-blink 1s steps(2) infinite; }
.is-live .neo-live-badge { display: inline-block; }
@keyframes neo-blink { 50% { opacity: .35; } }
.neo-countdown { margin-top: 12px; padding: 12px; border-radius: 11px; text-align: center; background: radial-gradient(circle at 50% 0, rgba(232, 182, 76, .16), rgba(0, 0, 0, .3)); border: 1px dashed var(--line-strong); }
.neo-countdown small { display: block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.neo-countdown strong { display: block; margin: 4px 0 2px; font: 700 24px/1 var(--font-display); letter-spacing: .06em; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(232, 182, 76, .55); }
.neo-countdown span { font-size: 11.5px; color: var(--gold-2); }
.neo-clock { margin-top: 10px; font-size: 11px; color: var(--muted); text-align: center; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* ---- server list ---- */
.neo-server { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 11px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .05); }
.neo-server + .neo-server { margin-top: 8px; }
.neo-server.is-online { border-color: rgba(61, 220, 132, .18); }
.neo-server b { display: block; font: 700 13px/1.2 var(--font-display); letter-spacing: .08em; }
.neo-server small { display: block; font-size: 11px; color: var(--muted); }
.neo-server .neo-pill { margin-left: auto; }
.neo-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 30px; font: 700 10.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--bad); background: rgba(255, 77, 94, .1); border: 1px solid rgba(255, 77, 94, .35); }
.is-online .neo-pill { color: var(--ok); background: rgba(61, 220, 132, .1); border-color: rgba(61, 220, 132, .35); }
.neo-meter { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.neo-meter div { padding: 10px 4px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.neo-meter b { display: block; font: 700 15px/1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.neo-meter small { display: block; margin-top: 4px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.neo-meter .neo-meter__online { position: relative; background: rgba(61, 220, 132, .05); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .15); cursor: help; }
.neo-meter .neo-meter__online small { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.neo-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.neo-meter__online.is-live b { color: var(--ok); text-shadow: 0 0 12px rgba(61, 220, 132, .5); }
.neo-meter__online.is-live .neo-live-dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: neo-blink 1.2s steps(2) infinite; }

/* ---- item mall promo ---- */
.neo-promo { display: block; position: relative; padding: 20px 18px; text-decoration: none; color: var(--text); overflow: hidden; }
.neo-promo::before { content: ""; position: absolute; inset: 0; background: url(../images/sub_itemmall.jpg) right center / cover no-repeat; opacity: .28; transition: transform .6s var(--ease), opacity .4s; }
.neo-promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 12, 18, .95) 35%, rgba(10, 12, 18, .3)); }
.neo-promo > * { position: relative; z-index: 1; }
.neo-promo:hover::before { transform: scale(1.08); opacity: .45; }
.neo-promo small { display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); font-weight: 700; }
.neo-promo b { display: block; margin: 6px 0 12px; font: 700 20px/1.15 var(--font-display); background: linear-gradient(180deg, #fff, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- rankings ---- */
.neo-rank { margin: 0; padding: 6px; list-style: none; counter-reset: rk; }
.neo-rank li { counter-increment: rk; }
.neo-rank li a, .neo-rank li > span.neo-rank__row {
  display: grid; grid-template-columns: 26px 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
  text-decoration: none; color: var(--text); font-size: 13px; transition: background .2s, transform .2s var(--ease);
}
.neo-rank li a:hover { background: rgba(232, 182, 76, .08); transform: translateX(3px); }
.neo-rank li a::before, .neo-rank li > span.neo-rank__row::before { content: counter(rk); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font: 700 11px/1 var(--font-body); color: var(--muted); background: rgba(255, 255, 255, .05); }
.neo-rank li:nth-child(1) a::before { color: #1c1204; background: linear-gradient(135deg, #fff1b8, #e8b64c); box-shadow: 0 0 14px -2px rgba(232, 182, 76, .9); }
.neo-rank li:nth-child(2) a::before { color: #111; background: linear-gradient(135deg, #f4f6fa, #9aa3b2); }
.neo-rank li:nth-child(3) a::before { color: #fff; background: linear-gradient(135deg, #e3a06b, #8a4f22); }
.neo-rank img { width: 20px; height: 20px; object-fit: contain; }
.neo-rank .neo-flag { justify-self: center; width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); background: var(--human); box-shadow: 0 0 10px rgba(250, 224, 15, .6); }
.neo-rank .is-akkan .neo-flag { background: var(--akkan); box-shadow: 0 0 10px rgba(255, 77, 94, .6); }
.neo-rank .neo-rank__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.neo-rank .neo-rank__val { font-size: 11.5px; color: var(--gold-2); font-variant-numeric: tabular-nums; font-weight: 600; }
.neo-rank .is-human .neo-rank__name { color: var(--human); }
.neo-rank .is-akkan .neo-rank__name { color: #ff8a95; }
.neo-empty { padding: 18px 12px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* ==========================================================================
   CONTENT CARD + LEGACY COMPAT
   ========================================================================== */
.neo-content-card { padding: 0; }
.neo-crumb { display: flex; align-items: center; gap: 8px; padding: 14px 20px; font-size: 12px; color: var(--muted); border-bottom: 1px solid rgba(232, 182, 76, .1); background: linear-gradient(180deg, rgba(232, 182, 76, .06), transparent); }
.neo-crumb a { color: var(--muted); text-decoration: none; }
.neo-crumb a:hover { color: var(--gold-2); }
.neo-crumb b { color: var(--gold-2); font: 700 12px/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.neo-crumb i { width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }

/* the shell table isolates stray </div> tags coming from legacy modules */
.legacy-fit { width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
table.neo-shell { width: 100%; border-collapse: collapse; border-spacing: 0; }
table.neo-shell > tbody > tr > td.legacy { padding: 18px 20px 24px; vertical-align: top; text-align: left; }
table.neo-sac { width: 100%; border-collapse: collapse; border-spacing: 0; }
table.neo-sac > tbody > tr > td { padding: 0; vertical-align: top; }

/* legacy module styles + page components live in neo-pages.css */

/* ==========================================================================
   FOOTER
   ========================================================================== */
.neo-footer { position: relative; z-index: 1; margin-top: 48px; padding: 44px 0 26px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .6) 30%); border-top: 1px solid rgba(232, 182, 76, .14); }
.neo-footer::before { content: ""; position: absolute; left: 50%; top: -1px; width: min(600px, 80%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 18px var(--gold); }
.neo-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.neo-footer h5 { margin: 0 0 14px; font: 700 12px/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.neo-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.neo-footer ul a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color .2s, padding .2s; }
.neo-footer ul a:hover { color: #fff; padding-left: 4px; }
.neo-footer p { margin: 12px 0 0; color: var(--muted); font-size: 13px; max-width: 34ch; }
.neo-footer select { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .4); color: var(--text); font: 500 13px var(--font-body); cursor: pointer; }
.neo-footer select:focus { outline: none; border-color: var(--gold); }
.neo-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 12px; color: var(--muted); }
.neo-footer__bottom img { opacity: .7; transition: opacity .2s; height: 44px; width: auto; }
.neo-footer__bottom a:hover img { opacity: 1; }
.neo-social { display: flex; gap: 8px; margin-top: 16px; }
.neo-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); transition: color .2s, transform .2s var(--ease), border-color .2s; }
.neo-social a:hover { color: var(--gold-2); border-color: var(--line-strong); transform: translateY(-3px); }
.neo-social svg { width: 18px; height: 18px; }

/* ==========================================================================
   TOAST + TOP BUTTON + REVEAL
   ========================================================================== */
.neo-toasts { position: fixed; right: 16px; bottom: 76px; z-index: 4000; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.neo-toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(16, 20, 29, .96); border: 1px solid var(--line-strong); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .9); color: var(--text); font-size: 13.5px; animation: neo-toast-in .35s var(--ease); }
.neo-toast.is-out { animation: neo-toast-out .3s var(--ease) forwards; }
.neo-toast b { display: block; color: var(--gold-2); font: 700 12px/1.3 var(--font-display); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.neo-toast .neo-ico { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
@keyframes neo-toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes neo-toast-out { to { opacity: 0; transform: translateX(30px); } }

.neo-top { position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(16, 20, 29, .85); color: var(--gold-2); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.neo-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.neo-top:hover { box-shadow: var(--glow); }
.neo-top svg { width: 20px; height: 20px; }

.neo-reveal.is-pre { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.neo-reveal.is-pre.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1240px) {
  .neo-main { grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "left content" "right right"; }
  .neo-right { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .neo-strip { grid-template-columns: repeat(3, 1fr); }
  .neo-stat--war { grid-column: span 2; }
}
@media (max-width: 1080px) {
  .neo-burger { display: block; }
  .neo-menu {
    position: fixed; top: var(--nav-h); right: 0; bottom: 0; width: min(360px, 88vw); height: auto; margin: 0; padding: 14px; flex-direction: column; align-items: stretch; gap: 4px; overflow-y: auto;
    background: rgba(9, 11, 16, .98); border-left: 1px solid var(--line); box-shadow: -30px 0 60px -20px rgba(0, 0, 0, .9);
    transform: translateX(105%); transition: transform .35s var(--ease); visibility: hidden;
  }
  .neo-nav.is-menu-open .neo-menu { transform: none; visibility: visible; }
  .neo-menu > li { height: auto; flex-direction: column; align-items: stretch; }
  .neo-menu > li > a:not(.neo-btn), .neo-menu > li > button { width: 100%; height: 48px; justify-content: space-between; font-size: 13px; }
  .neo-menu > li > a:not(.neo-btn)::after, .neo-menu > li > button::after { display: none; }
  .neo-drop, .neo-drop.neo-mega { position: static; width: auto; min-width: 0; transform: none !important; opacity: 1; visibility: visible; display: none; margin: 2px 0 8px; box-shadow: none; background: rgba(255, 255, 255, .03); }
  .neo-drop::before { display: none; }
  .neo-menu > li.has-drop:hover > .neo-drop { display: none; }
  .neo-menu > li.is-open > .neo-drop { display: block; }
  .neo-menu > li.is-open > .neo-drop.neo-mega { display: grid; grid-template-columns: 1fr 1fr; }
  .neo-menu .neo-cta { margin: 10px 0 0; }
  .neo-menu .neo-cta .neo-btn { width: 100%; }
  .neo-scrim { position: fixed; inset: var(--nav-h) 0 0 0; background: rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; z-index: -1; }
  .neo-nav.is-menu-open .neo-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
  .neo-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .neo-main { grid-template-columns: minmax(0, 1fr); grid-template-areas: "content" "left" "right"; }
  .neo-left { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neo-right { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neo-right .neo-card--promo { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .neo-hero__art { -webkit-mask-image: none; mask-image: none; }
  .neo-hero__art > img { height: 190px; object-fit: cover; object-position: 55% 50%; }
  .neo-hero__join { display: none; }
  .neo-strip { margin-top: 14px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .neo-stat { min-height: 66px; padding: 12px; }
  .neo-stat--war { grid-column: 1 / -1; }
  .neo-stat__value { font-size: 17px; }
  .neo-stat__icon { width: 36px; height: 36px; }
}
@media (max-width: 640px) {
  .neo-left, .neo-right { grid-template-columns: minmax(0, 1fr); }
  .neo-brand small { display: none; }
  .neo-footer__grid { grid-template-columns: 1fr; }
  table.neo-shell > tbody > tr > td.legacy { padding: 10px 6px 16px; }
  .neo-crumb { padding: 12px 14px; }
  .neo-menu > li.is-open > .neo-drop.neo-mega { grid-template-columns: 1fr; }
}
