:root {
  --bg: #0b0a0f;
  --bg2: #13111a;
  --card: #18151f;
  --card2: #201c29;
  --line: #2c2636;
  --text: #ece8f2;
  --muted: #a39cae;
  --gold: #f5b942;
  --gold2: #ffd76e;
  --red: #e5383b;
  --red2: #ff5a5f;
  --forged: #55ff55;
  --tempered: #55ffff;
  --mythic: #ff55ff;
  --divine: #ffaa00;
  --godforged: #ff5555;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 10, 15, .72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Bebas Neue", Impact, sans-serif; font-size: 28px; letter-spacing: 1px; }
.brand svg { width: 34px; height: 34px; }
.brand span b { color: var(--gold); font-weight: 400; }
.links { display: flex; gap: 6px; }
.links a {
  padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: .2s;
}
.links a:hover, .links a.on { color: var(--text); background: rgba(255, 255, 255, .06); }
.links a.store { color: #1a1300; background: linear-gradient(135deg, var(--gold), var(--gold2)); }
.links a.store:hover { filter: brightness(1.08); }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; text-align: center; padding: 90px 0 70px;
  background:
    radial-gradient(1000px 420px at 50% -10%, rgba(229, 56, 59, .28), transparent 70%),
    radial-gradient(700px 360px at 80% 20%, rgba(245, 185, 66, .16), transparent 70%);
}
.emblem { width: 170px; height: 170px; margin: 0 auto 18px; filter: drop-shadow(0 12px 40px rgba(229, 56, 59, .45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero h1 {
  font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400;
  font-size: clamp(56px, 10vw, 112px); line-height: .95; letter-spacing: 2px;
  background: linear-gradient(180deg, #fff 10%, var(--gold2) 55%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em { font-style: normal; background: linear-gradient(180deg, #ff8a8c, var(--red)); -webkit-background-clip: text; background-clip: text; }
.hero p.tag { color: var(--muted); font-size: 18px; margin: 14px auto 30px; max-width: 620px; }
.ipbar { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: 0;
  padding: 15px 24px; border-radius: 12px; font-weight: 700; font-size: 15px; letter-spacing: .04em;
  transition: transform .15s, filter .2s, box-shadow .2s; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn.red { background: linear-gradient(135deg, var(--red), #b51d20); color: #fff; box-shadow: 0 10px 30px rgba(229, 56, 59, .35); }
.btn.gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1300; box-shadow: 0 10px 30px rgba(245, 185, 66, .3); }
.btn.ghost { background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid var(--line); }
.btn.discord { background: #5865f2; color: #fff; box-shadow: 0 10px 30px rgba(88, 101, 242, .35); }
.ip .count { background: rgba(0, 0, 0, .3); padding: 3px 9px; border-radius: 999px; font-size: 12px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(120px);
  background: var(--card2); border: 1px solid var(--line); padding: 12px 20px; border-radius: 12px;
  z-index: 50; transition: transform .3s; font-weight: 600;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- layout ---------- */
section { padding: 60px 0; }
.title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.title h2 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 44px; letter-spacing: 1px; }
.title h2 span { color: var(--gold); }
.title p { color: var(--muted); max-width: 560px; }
.grid { display: grid; gap: 20px; }
.main { grid-template-columns: 1fr 360px; }
.card {
  background: linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}

/* ---------- news ---------- */
.post { display: grid; grid-template-columns: 300px 1fr; transition: border-color .2s, transform .2s; }
.post:hover { border-color: rgba(245, 185, 66, .45); transform: translateY(-2px); }
.post .art { min-height: 220px; position: relative; overflow: hidden; }
.post .art .glyph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 74px; }
.post .body { padding: 26px 28px; display: flex; flex-direction: column; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge.latest { background: var(--red); color: #fff; }
.badge.upd { background: rgba(85, 255, 255, .14); color: var(--tempered); }
.badge.evt { background: rgba(245, 185, 66, .16); color: var(--gold2); }
.post h3 { font-size: 24px; margin: 10px 0 8px; line-height: 1.2; }
.post p { color: var(--muted); }
.post .meta { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.post .meta b { color: var(--gold2); }
.news { display: grid; gap: 20px; }

/* ---------- side ---------- */
.side { display: grid; gap: 20px; align-content: start; }
.status { padding: 20px 22px; background: linear-gradient(135deg, #b51d20, var(--red)); border: 0; cursor: pointer; }
.status .row { display: flex; justify-content: space-between; align-items: center; font-weight: 800; letter-spacing: .04em; }
.status .row .pill { background: rgba(0, 0, 0, .28); padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.status small { display: block; margin-top: 6px; opacity: .85; font-weight: 500; }
.dc .top { background: #5865f2; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; }
.dc .top b { font-size: 22px; display: flex; gap: 10px; align-items: center; }
.dc .list { padding: 16px 22px 20px; }
.dc .list p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.quick { padding: 20px 22px; }
.quick h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.quick a { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); color: var(--text); }
.quick a:hover { color: var(--gold2); }

/* ---------- features ---------- */
.feats { grid-template-columns: repeat(4, 1fr); }
.feat { padding: 24px; }
.feat .ic { font-size: 30px; margin-bottom: 12px; }
.feat h4 { font-size: 18px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 14px; }

/* ---------- store ---------- */
.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; margin-bottom: 26px;
  border-radius: var(--radius); background: rgba(85, 255, 85, .06); border: 1px solid rgba(85, 255, 85, .22);
}
.notice b { color: var(--forged); }
.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tabs button {
  background: var(--card); border: 1px solid var(--line); color: var(--muted); padding: 10px 18px;
  border-radius: 10px; cursor: pointer; font-weight: 700; font-family: inherit; font-size: 14px;
}
.tabs button.on { color: #1a1300; background: linear-gradient(135deg, var(--gold), var(--gold2)); border-color: transparent; }
.ranks { grid-template-columns: repeat(5, 1fr); }
.rank { padding: 24px 20px; display: flex; flex-direction: column; position: relative; transition: transform .2s, border-color .2s, box-shadow .2s; }
.rank:hover { transform: translateY(-4px); }
.rank .name { font-family: "Bebas Neue", Impact, sans-serif; font-size: 34px; letter-spacing: 1px; line-height: 1; }
.rank .price { font-size: 30px; font-weight: 800; margin: 12px 0 2px; }
.rank .price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.rank .pts { color: var(--gold2); font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.rank ul { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; font-size: 14px; color: #d6d0df; }
.rank li::before { content: "\2714"; margin-right: 8px; color: var(--c); }
.rank .btn { margin-top: auto; justify-content: center; width: 100%; }
.rank.hot::after {
  content: "MOST POPULAR"; position: absolute; top: 14px; right: -34px; transform: rotate(35deg);
  background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 4px 36px; letter-spacing: .08em;
}
.rank { --c: var(--gold); }
.rank .name, .rank .btn.buy { color: var(--c); }
.rank:hover { border-color: var(--c); box-shadow: 0 14px 40px -12px var(--c); }
.btn.buy { background: rgba(255, 255, 255, .05); border: 1px solid var(--c); }
.btn.buy:hover { background: var(--c); color: #111 !important; }
.r-forged { --c: var(--forged); } .r-tempered { --c: var(--tempered); } .r-mythic { --c: var(--mythic); }
.r-divine { --c: var(--divine); } .r-godforged { --c: var(--godforged); }
.items { grid-template-columns: repeat(4, 1fr); }
.item { padding: 24px; display: flex; flex-direction: column; }
.item .ic { font-size: 34px; }
.item h4 { font-size: 19px; margin: 10px 0 6px; }
.item p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.item .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.item .cost { font-weight: 800; font-size: 22px; }
.item .cost small { display: block; font-size: 12px; color: var(--gold2); font-weight: 700; }
.item .bonus { color: var(--forged); font-size: 12px; font-weight: 800; }
.how { grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.how .card { padding: 22px; }
.how b { color: var(--gold2); font-size: 28px; font-family: "Bebas Neue", Impact, sans-serif; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin-top: 10px; }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); display: none; place-items: center; z-index: 60; padding: 20px; }
.modal.show { display: grid; }
.modal .box { width: 100%; max-width: 440px; padding: 28px; }
.modal h3 { font-size: 22px; margin-bottom: 4px; }
.modal p { color: var(--muted); margin-bottom: 18px; font-size: 14px; }
.modal input {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); font-size: 16px; margin-bottom: 16px; font-family: inherit;
}
.modal .row { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- staff ---------- */
.staff { grid-template-columns: repeat(4, 1fr); }
.member { padding: 24px; text-align: center; }
.member img { width: 84px; height: 84px; image-rendering: pixelated; border-radius: 12px; margin-bottom: 12px; }
.member b { display: block; font-size: 18px; }
.member span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 14px; position: relative; z-index: 1; background: rgba(11, 10, 15, .8); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- small screens ---------- */
@media (max-width: 1080px) {
  .ranks { grid-template-columns: repeat(3, 1fr); }
  .items, .feats, .staff { grid-template-columns: repeat(2, 1fr); }
  .main { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg2); padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .links.open { display: flex; }
  .burger { display: block; }
  .ranks, .items, .feats, .staff, .how { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; }
  .post .art { min-height: 140px; }
  .wrap { padding: 0 16px; }
}
