/* MU Nemesis portal — dark fantasy theme (crimson + gold), art from the game client. */
:root {
  --bg: #0b0a10;
  --bg2: #110f18;
  --panel: rgba(19, 16, 27, .86);
  --panel2: rgba(28, 23, 38, .92);
  --line: rgba(216, 169, 90, .22);
  --line2: rgba(216, 169, 90, .45);
  --gold: #d8a95a;
  --gold2: #f5dca3;
  --gold3: #9c7334;
  --crimson: #a9142a;
  --crimson2: #e03a50;
  --text: #ede7db;
  --muted: #a69e91;
  --dim: #6f6858;
  --ok: #4fc58e;
  --warn: #e9b44c;
  --err: #ff6474;
  --blue: #7cc0ff;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --display: 'Cinzel', 'Noto Serif', Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font: 15px/1.6 var(--font); color: var(--text); background: var(--bg);
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(169, 20, 42, .18), transparent 60%),
                    radial-gradient(900px 500px at -10% 30%, rgba(60, 80, 160, .12), transparent 60%);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold2); text-decoration: none; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.25; margin: 0 0 .5em; letter-spacing: .01em; }

/* ---------------------------------------------------------------- top bar */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.topbar.solid, .topbar.open { background: rgba(10, 9, 14, .88); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.topbar-in { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand-mark { width: 38px; height: 38px; background: url(/assets/favicon.svg) center/contain no-repeat; filter: drop-shadow(0 0 10px rgba(224, 58, 80, .55)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font: 800 19px/1 var(--display); letter-spacing: .12em; background: linear-gradient(180deg, #fff3cf, var(--gold) 55%, var(--gold3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { white-space: nowrap; color: var(--text); opacity: .82; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 14.5px; position: relative; }
.nav a:hover { opacity: 1; background: rgba(255, 255, 255, .05); }
.nav a.active { opacity: 1; color: var(--gold2); }
.nav a.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.nav a.nav-hot { color: #ffd2d8; }
.nav a.nav-hot::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--crimson2); margin-right: 7px; vertical-align: middle; box-shadow: 0 0 8px var(--crimson2); }
.account { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.burger { display: none; margin-left: 4px; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 10px; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--gold2); border-radius: 2px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.chip .ava { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--crimson), #4a0d17); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #ffe; }
.chip .bal { color: var(--gold2); font-weight: 600; }

/* ---------------------------------------------------------------- buttons */
.btn { --c1: #3a3245; --c2: #2a2433; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--line2); background: linear-gradient(180deg, var(--c1), var(--c2)); color: var(--text); font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .2s, filter .2s; white-space: nowrap; text-align: center; }
.btn:hover { filter: brightness(1.12); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: none; }
.btn-gold { --c1: #f1cf86; --c2: #b37f31; color: #2a1806; border-color: #f6dea7; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); box-shadow: 0 6px 22px rgba(216, 169, 90, .28), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover { color: #1a0f03; box-shadow: 0 8px 30px rgba(216, 169, 90, .45), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-crimson { --c1: #d23048; --c2: #7d0d1f; border-color: #ff7d8e; box-shadow: 0 6px 22px rgba(224, 58, 80, .3); }
.btn-ghost { background: rgba(10, 9, 14, .45); backdrop-filter: blur(6px); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 15px 30px; font-size: 16.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--gold2); cursor: pointer; padding: 0; font-weight: 500; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(100vh, 920px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -4%; background: var(--bg) center/cover no-repeat; z-index: -2; animation: kenburns 28s ease-in-out infinite alternate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 7, 11, .94) 0%, rgba(8, 7, 11, .72) 36%, rgba(8, 7, 11, .15) 70%, rgba(8, 7, 11, .35) 100%),
              linear-gradient(180deg, rgba(8, 7, 11, .55) 0%, transparent 22%, transparent 70%, var(--bg) 100%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(2px 2px at 20% 30%, rgba(255, 200, 120, .7), transparent), radial-gradient(1.5px 1.5px at 60% 70%, rgba(255, 140, 100, .6), transparent), radial-gradient(2px 2px at 80% 20%, rgba(255, 220, 160, .5), transparent), radial-gradient(1.5px 1.5px at 35% 85%, rgba(255, 160, 120, .6), transparent); animation: embers 9s linear infinite; opacity: .8; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
@keyframes embers { from { transform: translateY(0); opacity: .8; } to { transform: translateY(-60px); opacity: .2; } }
.hero-in { width: 100%; max-width: 1240px; margin: 0 auto; padding: 120px 20px 90px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold2); margin-bottom: 18px; }
.hero-kicker::before { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-title { font: 800 clamp(48px, 8.4vw, 112px)/.95 var(--display); letter-spacing: .06em; margin: 0; background: linear-gradient(180deg, #fff8e2 0%, #f0cd85 45%, #a3732e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 26px rgba(0, 0, 0, .8)); }
.hero-title span { display: block; font-size: .42em; letter-spacing: .5em; margin: .35em 0 0 .1em; background: linear-gradient(90deg, #ff9aa8, var(--crimson2)); -webkit-background-clip: text; background-clip: text; }
.hero-sub { font-family: var(--serif); font-size: clamp(17px, 2vw, 21px); max-width: 560px; color: #e9dfcf; margin: 26px 0 30px; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-status { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: rgba(10, 9, 14, .6); border: 1px solid var(--line); backdrop-filter: blur(6px); font-size: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.up { background: var(--ok); box-shadow: 0 0 0 0 rgba(79, 197, 142, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(79, 197, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 197, 142, 0); } }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--muted); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll::after { content: ''; width: 1px; height: 34px; background: linear-gradient(180deg, var(--gold), transparent); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------------------------------------------------------- sections */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .eyebrow { font-size: 12px; letter-spacing: .38em; text-transform: uppercase; color: var(--crimson2); font-weight: 600; }
.section-head h2 { font: 700 clamp(28px, 3.6vw, 42px)/1.15 var(--serif); margin: 10px 0 12px; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.divider { height: 26px; background: url(/assets/game/ui-divider-gem.png) center/auto 26px no-repeat; margin: 16px auto 0; opacity: .9; }
.page { padding: 110px 0 80px; min-height: 70vh; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 36px); margin: 0; }
.page-banner { position: relative; padding: 140px 0 46px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-banner .bg { position: absolute; inset: 0; background: center 30%/cover no-repeat; z-index: -2; opacity: .55; }
.page-banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 10, 16, .4), var(--bg)); }
.page-banner h1 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 6px; }
.page-banner + .page { padding-top: 34px; }

/* quick cards */
.quick { margin-top: -64px; position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.qcard { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--panel2); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); transition: transform .2s, border-color .2s; }
.qcard:hover { transform: translateY(-3px); border-color: var(--line2); color: #fff; }
.qcard .ic { width: 50px; height: 50px; flex: none; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(255, 220, 160, .25), rgba(169, 20, 42, .25)); border: 1px solid var(--line); }
.qcard .ic img { width: 34px; height: 34px; object-fit: contain; }
.qcard .ic svg { width: 26px; height: 26px; fill: var(--gold2); }
.qcard b { display: block; font-size: 15.5px; }
.qcard small { color: var(--muted); font-size: 13px; }

/* panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: relative; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-title h3 { margin: 0; font-size: 19px; }
.frame { position: relative; }
.frame::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(245, 220, 163, .7), rgba(216, 169, 90, .1) 30%, rgba(216, 169, 90, .1) 70%, rgba(224, 58, 80, .6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* news + events */
.news-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tab { padding: 7px 14px; border-radius: 8px; border: 1px solid transparent; background: rgba(255, 255, 255, .04); cursor: pointer; font-size: 14px; color: var(--muted); }
.tab.active { color: var(--gold2); border-color: var(--line2); background: rgba(216, 169, 90, .08); }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; padding: 12px 4px; border-bottom: 1px dashed rgba(216, 169, 90, .14); color: var(--text); }
.news-list li a:hover { color: var(--gold2); }
.tag { display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--gold2); white-space: nowrap; }
.tag.su-kien { color: #ffb3bd; border-color: rgba(224, 58, 80, .5); }
.tag.huong-dan { color: #a9d6ff; border-color: rgba(124, 192, 255, .45); }
.tag.bao-tri { color: #ffd88a; border-color: rgba(233, 180, 76, .5); }
.news-date { color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: #000; border: 1px solid var(--line); box-shadow: var(--shadow); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.slider { background: radial-gradient(circle at 50% 40%, #2a1822, #08070b 75%); }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85)); font-family: var(--serif); font-size: 17px; }
.slider-dots { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; z-index: 2; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; padding: 0; }
.slider-dots button.on { background: var(--gold2); width: 22px; border-radius: 6px; }

/* classes */
.classes { position: relative; overflow: hidden; }
.classes::before { content: ''; position: absolute; inset: 0; background: url(/assets/game/hero-sanctum-hall.webp) center/cover; opacity: .28; z-index: -1; }
.class-stage { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center; min-height: 520px; }
.class-art { position: relative; height: 520px; display: grid; place-items: center; }
.class-art::before { content: ''; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(224, 58, 80, .35), transparent 65%); filter: blur(10px); }
.class-art img { position: relative; max-height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .7)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.class-info h3 { font: 800 clamp(30px, 4vw, 48px)/1 var(--display); letter-spacing: .06em; margin: 0 0 6px; background: linear-gradient(180deg, #fff3d6, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.class-info .vn { font-family: var(--serif); color: var(--crimson2); font-size: 18px; margin-bottom: 14px; }
.class-info p { color: #ddd4c4; max-width: 520px; }
.stats { display: grid; gap: 9px; max-width: 420px; margin: 18px 0; }
.stat { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--crimson), var(--gold)); border-radius: 4px; transition: width .6s; }
.class-picks { display: flex; gap: 10px; margin-top: 26px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.class-pick { flex: none; width: 74px; height: 150px; border-radius: 10px; border: 1px solid var(--line); background: center/cover no-repeat #1a1620; cursor: pointer; opacity: .55; transition: opacity .2s, transform .2s, border-color .2s; position: relative; padding: 0; }
.class-pick:hover { opacity: .85; }
.class-pick.on { opacity: 1; border-color: var(--gold2); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(216, 169, 90, .3); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { border-radius: var(--radius); overflow: hidden; background: var(--panel2); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line2); }
.feature .pic { aspect-ratio: 16/10; background: center/cover no-repeat #000; position: relative; }
.feature .pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(19, 16, 27, .95)); }
.feature .txt { padding: 4px 18px 20px; }
.feature h3 { font-size: 19px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* topup promo strip */
.promo { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 34px; border-radius: 20px; background: linear-gradient(120deg, rgba(169, 20, 42, .35), rgba(19, 16, 27, .9) 45%), url(/assets/game/boss-crimson-dragon-knight.webp) right center/auto 120% no-repeat, var(--panel2); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.promo h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.promo ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.promo li::before { content: '◆'; color: var(--gold); margin-right: 10px; font-size: 11px; }

/* tables */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid rgba(216, 169, 90, .1); white-space: nowrap; }
th { font-weight: 600; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; background: rgba(255, 255, 255, .03); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .025); }
td.r, th.r { text-align: right; }
.rank-no { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; background: rgba(255, 255, 255, .06); }
.rank-no.r1 { background: linear-gradient(135deg, #ffe7a6, #b8862e); color: #2a1806; }
.rank-no.r2 { background: linear-gradient(135deg, #f1f1f1, #8d96a3); color: #1a1d22; }
.rank-no.r3 { background: linear-gradient(135deg, #f3b98a, #8f4f22); color: #2a1406; }
.plus { color: var(--ok); }
.minus { color: #ff9aa6; }
.st { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.st-SUCCESS, .st-delivered { color: var(--ok); border-color: rgba(79, 197, 142, .45); }
.st-PENDING, .st-CREATING { color: var(--warn); border-color: rgba(233, 180, 76, .45); }
.st-FAILED, .st-ERROR { color: var(--err); border-color: rgba(255, 100, 116, .45); }
.st-CANCELED, .st-refunded { color: var(--muted); border-color: rgba(166, 158, 145, .4); }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 14px; }

/* forms */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 110px 16px 60px; position: relative; isolation: isolate; }
.auth-wrap::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url(/assets/game/hero-dark-wizard-starfall.webp) center/cover; }
.auth-wrap::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 10, 16, .55), rgba(11, 10, 16, .88) 60%); }
.auth-card { width: min(440px, 100%); padding: 30px; border-radius: 18px; background: rgba(16, 13, 22, .9); border: 1px solid var(--line2); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.auth-card h1 { font-size: 28px; margin-bottom: 4px; }
.field { display: grid; gap: 6px; margin-bottom: 15px; }
.field label { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(216, 169, 90, .28); background: rgba(0, 0, 0, .35); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 169, 90, .18); }
.input::placeholder { color: var(--dim); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); margin: 6px 0 14px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--gold); }
.form-msg { min-height: 22px; font-size: 14px; margin: 4px 0 10px; }
.form-msg.err { color: var(--err); }
.form-msg.ok { color: var(--ok); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-alt { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--gold2); cursor: pointer; font-size: 13px; padding: 6px; }

/* dashboard */
.dash { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.wallet-card { padding: 24px; border-radius: 18px; background: linear-gradient(150deg, rgba(169, 20, 42, .5), rgba(30, 20, 30, .9) 55%), url(/assets/game/icon-diamond-badge.png) 112% 120%/160px no-repeat, var(--panel2); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.wallet-card .lbl { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold2); }
.wallet-card .big { font: 700 40px/1.1 var(--serif); margin: 6px 0 2px; }
.wallet-card .big small { font-size: 16px; color: var(--gold2); margin-left: 6px; }
.wallet-card .row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin-top: 14px; color: var(--muted); }
.kv b { color: var(--text); font-weight: 600; text-align: right; }
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.role { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.role b { font-size: 16px; }
.role .meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.side-nav { display: grid; gap: 4px; margin-top: 16px; }
.side-nav a { padding: 10px 14px; border-radius: 10px; color: var(--text); border: 1px solid transparent; }
.side-nav a:hover, .side-nav a.on { background: rgba(216, 169, 90, .08); border-color: var(--line); color: var(--gold2); }

/* top-up */
.topup { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: start; }
.amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.amount { padding: 14px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; text-align: center; transition: border-color .2s, background .2s, transform .15s; }
.amount:hover { border-color: var(--line2); }
.amount.on { border-color: var(--gold2); background: linear-gradient(180deg, rgba(216, 169, 90, .16), rgba(216, 169, 90, .04)); transform: translateY(-2px); }
.amount b { display: block; font-size: 18px; font-family: var(--serif); }
.amount small { color: var(--muted); font-size: 12.5px; }
.amount .bonus { color: var(--ok); }
.banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bank { padding: 11px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; text-align: center; font-weight: 600; font-size: 14px; }
.bank.on { border-color: var(--gold2); color: var(--gold2); background: rgba(216, 169, 90, .1); }
.step { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; font-weight: 600; }
.step i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; background: linear-gradient(180deg, var(--gold2), var(--gold3)); color: #2a1806; }
.summary { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 16px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px dashed var(--line2); margin: 18px 0; font-size: 14.5px; }
.summary b { text-align: right; }
.summary .tot { font-size: 19px; color: var(--gold2); font-family: var(--serif); }
.qr-box { text-align: center; }
.qr-img { width: min(300px, 100%); aspect-ratio: 1; margin: 0 auto 14px; border-radius: 14px; background: #fff; padding: 12px; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(216, 169, 90, .35), var(--shadow); }
.qr-img img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.qr-wait { color: #333; font-size: 14px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(216, 169, 90, .25); border-top-color: var(--gold); animation: spin 1s linear infinite; margin: 0 auto 10px; }
.qr-img .spinner { border-color: rgba(0, 0, 0, .12); border-top-color: #b37f31; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-rows { display: grid; gap: 8px; text-align: left; margin: 14px 0; }
.pay-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(216, 169, 90, .12); font-size: 14.5px; }
.pay-row span { color: var(--muted); font-size: 13px; }
.pay-row b { word-break: break-all; }
.pay-row.hl { border-color: var(--gold); background: rgba(216, 169, 90, .1); }
.pay-row.hl b { color: var(--gold2); font-size: 17px; letter-spacing: .04em; }
.copy { border: 1px solid var(--line2); background: rgba(0, 0, 0, .25); color: var(--gold2); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; cursor: pointer; }
.countdown { font-variant-numeric: tabular-nums; color: var(--warn); font-weight: 600; }
.notice { padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(233, 180, 76, .4); background: rgba(233, 180, 76, .08); font-size: 14px; color: #f3dca8; margin: 12px 0; }
.notice.err { border-color: rgba(255, 100, 116, .45); background: rgba(255, 100, 116, .08); color: #ffc2c8; }
.notice.ok { border-color: rgba(79, 197, 142, .45); background: rgba(79, 197, 142, .08); color: #bdf0d6; }
.success-burst { font-size: 54px; line-height: 1; margin: 10px 0; }

/* shop */
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tier { position: relative; border-radius: 16px; padding: 20px 16px 16px; text-align: center; background: linear-gradient(180deg, rgba(40, 60, 120, .35), rgba(19, 16, 27, .95)); border: 1px solid var(--line); cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.tier:hover { transform: translateY(-4px); border-color: var(--line2); }
.tier.on { border-color: var(--gold2); box-shadow: 0 10px 30px rgba(216, 169, 90, .25); }
.tier .gem { width: 74px; height: 74px; margin: 0 auto 10px; background: url(/assets/game/icon-diamond-badge.png) center/contain no-repeat; filter: drop-shadow(0 8px 18px rgba(124, 192, 255, .35)); }
.tier b { display: block; font: 700 22px/1.2 var(--serif); }
.tier small { color: var(--muted); }
.tier .price { margin-top: 10px; display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(216, 169, 90, .14); color: var(--gold2); font-weight: 700; }

/* news article */
.article { max-width: 820px; margin: 0 auto; }
.article .cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; border: 1px solid var(--line); }
.article .body { font-size: 16px; line-height: 1.8; color: #e4dccd; }
.article .body p { margin: 0 0 1.1em; }
.article .body ul { padding-left: 1.3em; }
.news-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ncard { border-radius: var(--radius); overflow: hidden; background: var(--panel2); border: 1px solid var(--line); color: var(--text); display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.ncard:hover { transform: translateY(-3px); border-color: var(--line2); color: var(--text); }
.ncard .pic { aspect-ratio: 16/8; background: center/cover no-repeat #15121c; }
.ncard .txt { padding: 14px 16px 18px; }
.ncard h3 { font-size: 17px; margin: 8px 0 6px; }
.ncard p { color: var(--muted); font-size: 14px; margin: 0; }

/* download */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl-card { padding: 28px; border-radius: 18px; background: var(--panel2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.dl-card .os { display: flex; align-items: center; gap: 14px; }
.dl-card .os svg { width: 46px; height: 46px; fill: var(--gold2); }
.dl-card ol { margin: 6px 0 0; padding-left: 1.2em; color: var(--muted); }
.dl-card ol li { margin-bottom: 5px; }

/* toasts + modal */
.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast { padding: 13px 16px; border-radius: 12px; background: rgba(22, 18, 30, .96); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 14.5px; animation: tin .25s ease-out; }
.toast.err { border-color: rgba(255, 100, 116, .6); }
.toast.ok { border-color: rgba(79, 197, 142, .6); }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(460px, 100%); padding: 26px; border-radius: 18px; background: #15111c; border: 1px solid var(--line2); box-shadow: var(--shadow); }
.modal h3 { font-size: 21px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* footer */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 9, 14, .6), #07060a); margin-top: 40px; }
.footer-in { max-width: 1240px; margin: 0 auto; padding: 46px 20px 26px; display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 30px; }
.footer-brand p { max-width: 380px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-cols h4 { font-family: var(--font); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold2); margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; }
.footer-cols a:hover { color: var(--text); }
.footer-links { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.footer-note { text-align: center; color: var(--dim); font-size: 12.5px; padding: 16px 20px 26px; margin: 0; border-top: 1px solid rgba(216, 169, 90, .08); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .quick { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .topup, .dash { grid-template-columns: 1fr; }
}
@media (max-width: 1040px) {
  .burger { display: flex; }
  .nav { position: fixed; top: 66px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px 16px 18px; background: rgba(10, 9, 14, .97); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; margin: 0; z-index: -1; }
  .topbar.open .nav { transform: none; }
  .nav a { padding: 12px 10px; font-size: 16px; }
  .account .chip .who { display: none; }
  .class-stage { grid-template-columns: 1fr; }
  .class-art { height: 360px; }
  .footer-in { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; background-size: auto, auto 70%, auto; background-position: 0 0, right bottom, 0 0; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .topbar-in { padding: 10px 16px; gap: 12px; }
  .brand-text small { display: none; }
  .brand-text b { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero-in { padding: 100px 16px 80px; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 7, 11, .5) 0%, rgba(8, 7, 11, .75) 45%, var(--bg) 100%); }
  .hero-cta .btn { flex: 1 1 100%; }
  .quick { grid-template-columns: 1fr; margin-top: -40px; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .pay-row { grid-template-columns: 1fr auto; }
  .pay-row span { grid-column: 1 / -1; }
  .account .btn-ghost { display: none; }
  .panel { padding: 16px; }
  .auth-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
