:root {
  --bg: #050506;
  --bg-2: #0c0c10;
  --panel: rgba(10, 10, 14, 0.72);
  --ink: #f2f2f6;
  --muted: #8e8e98;
  --chrome: #cfd0d8;
  --chrome-2: #f7f7fa;
  --line: #2a2a32;
  --ember: #ff5a24;
  --ok: #86efac;
  --danger: #fb7185;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 380px at 50% -8%, rgba(200,200,210,.08), transparent 55%),
    url("/assets/hero.jpg") center 18% / cover no-repeat;
  opacity: .22;
  filter: saturate(.85) contrast(1.1);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,5,6,.5) 0%, rgba(5,5,6,.88) 42%, #050506 100%),
    radial-gradient(520px 180px at 50% 100%, rgba(255,90,36,.1), transparent 70%);
}
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 22px 110px;
}
header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  justify-self: start;
}
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 10px rgba(220,220,230,.3));
}
.brand strong {
  font-family: Cinzel, Times, serif;
  font-size: 20px;
  letter-spacing: 0.18em;
  font-weight: 700;
  background: linear-gradient(180deg, #fff 0%, #c8c8d0 40%, #7d7d86 58%, #f0f0f4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  flex-wrap: nowrap;
}
nav a, .nav-connect {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 0;
}
nav a:hover, nav a.active, .nav-connect:hover { color: var(--chrome-2); }
.nav-connect {
  padding: 8px 14px;
  border: 1px solid #5a5a66;
  color: #111116;
  background: linear-gradient(180deg, #f3f3f7 0%, #9b9ba6 48%, #5e5e68 52%, #d4d4dc 100%);
  font-weight: 700;
  letter-spacing: .18em;
  box-shadow: 0 0 16px rgba(210,210,220,.18);
}
.nav-connect:hover { filter: brightness(1.08); color: #111116; }
.userbox {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 12px;
  justify-self: end;
}
.balance { color: var(--chrome); letter-spacing: 0.08em; }
#app {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
#app.in { opacity: 1; transform: none; }
.hero-banner {
  position: relative;
  margin: 22px 0 26px;
  padding: 8px;
  background:
    linear-gradient(#0a0a0c, #0a0a0c) padding-box,
    linear-gradient(135deg, #f2f2f6, #6a6a74 40%, #d8d8e0 70%, #4a4a52) border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.hero-banner img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: contrast(1.06) saturate(.95);
}
.hero-banner figcaption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 26px 24px 20px;
  background: linear-gradient(180deg, transparent, rgba(5,5,6,.92) 72%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.kicker {
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--chrome);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.lead { max-width: 620px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  font: 600 11px/1 "IBM Plex Sans", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  color: inherit;
  transition: transform .2s var(--ease), filter .2s, border-color .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #f2f2f6 0%, #9a9aa6 48%, #5c5c66 52%, #cfcfd6 100%);
  color: #111116;
  box-shadow: 0 0 18px rgba(200,200,210,.16);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border: 1px solid var(--line); color: var(--chrome); }
.btn-ghost:hover { border-color: var(--chrome); color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.side, .card, .modal-card, .pay, .meta, .perk, .pack {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.side { padding: 22px; display: grid; gap: 14px; }
.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.stat:last-of-type { border: 0; padding: 0; }
.stat b { color: var(--chrome-2); font-weight: 600; }
.connect-box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 13px;
  letter-spacing: .04em;
}
.connect-box small { display: block; color: var(--muted); margin-bottom: 6px; letter-spacing: .16em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 22px; min-height: 148px; display: flex; flex-direction: column; gap: 10px; }
.card h3, .section-title, .pack h3, .kit-title, .tools-title, .buybar .now {
  font-family: Cinzel, Times, serif;
  font-weight: 600;
  letter-spacing: .12em;
}
.card h3 { font-size: 20px; }
.card p, .muted { color: var(--muted); font-size: 13px; line-height: 1.65; }
.price { color: var(--chrome-2); font-size: 18px; letter-spacing: 0.06em; }
section { padding-top: 36px; }
.section-title { font-size: 30px; margin-bottom: 16px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab {
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: border-color .2s, color .2s;
}
.tab.on { border-color: var(--chrome); color: var(--chrome-2); }
.rules { display: grid; gap: 4px; }
.rule {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.rule b { color: var(--chrome); font-size: 12px; letter-spacing: 0.16em; }
.rule p { color: var(--muted); font-size: 13px; line-height: 1.6; }
footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  letter-spacing: .08em;
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  background: #0c0c10;
  border: 1px solid var(--chrome);
  padding: 12px 16px;
  font-size: 12px;
  display: none;
  max-width: 360px;
}
label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
input, select {
  width: 100%;
  background: #08080a;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 12px;
  font: 13px/1.4 "IBM Plex Sans", sans-serif;
}
.list { display: grid; gap: 8px; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 12px;
}
.pay { padding: 16px; display: grid; gap: 10px; }
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.avatar.lg { width: 64px; height: 64px; }
.btn-buy {
  width: 100%;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  padding: 14px 18px;
  letter-spacing: .12em;
}
.btn-buy:hover { background: #15803d; }
.btn-gift {
  background: #101014;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 22px;
  min-width: 140px;
}
.btn-gift:hover { border-color: var(--chrome); }
.shop-page, .pack-page { padding-top: 26px; }
.shop-lead { margin: 0 0 18px; max-width: 720px; }
.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pack {
  padding: 24px 18px 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-height: 420px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.pack:hover {
  transform: translateY(-6px);
  border-color: var(--accent, var(--chrome));
  box-shadow: 0 18px 40px rgba(0,0,0,.4), 0 0 24px color-mix(in srgb, var(--accent) 18%, transparent);
}
.pack .btn-buy { margin-top: auto; }
.pack-badge {
  width: 188px;
  height: 188px;
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
  flex: 0 0 188px;
}
.pack-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.45));
}
.pack h3 { font-size: 22px; margin-top: 6px; text-transform: uppercase; }
.pack-rank { color: var(--muted); font-size: 11px; letter-spacing: .22em; }
.pack-price { display: flex; gap: 10px; align-items: baseline; justify-content: center; margin: 4px 0 10px; }
.pack-price b { color: #4ade80; font-size: 22px; font-weight: 600; }
.pack-price s { color: #ef4444; font-size: 14px; }
.meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 26px; }
.meta { padding: 16px 18px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.meta-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent, var(--chrome));
  letter-spacing: .18em;
  font-size: 11px;
  margin-bottom: 8px;
}
.meta b { color: #4ade80; }
.meta em { color: var(--chrome-2); font-style: normal; }
.kit-stage {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--accent, #cfd0d8) 40%, #1a1a20);
  background: rgba(8,8,10,.9);
  padding: 26px 22px 28px;
  overflow: hidden;
  margin-bottom: 32px;
}
.kit-stage::before {
  content: "";
  position: absolute;
  inset: 8% 18%;
  background: url("/assets/mark.png") center / contain no-repeat;
  opacity: .12;
  pointer-events: none;
}
.kit-title {
  position: relative;
  text-align: center;
  font-size: clamp(30px, 5vw, 58px);
  color: var(--accent, var(--chrome));
  margin-bottom: 18px;
}
.rust {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 228px;
  gap: 24px;
  align-items: start;
}
.block-label {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--muted);
  margin: 0 0 8px;
}
.inv {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.belt { margin-top: 14px; }
.islot {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #17171d, #0c0c10);
  border: 1px solid #32323c;
  position: relative;
  display: grid;
  place-items: center;
  transition: border-color .15s, box-shadow .15s;
}
.islot:hover {
  border-color: color-mix(in srgb, var(--accent, #cfd0d8) 70%, #32323c);
}
.islot img { width: 70%; height: 70%; object-fit: contain; }
.islot span {
  position: absolute;
  left: 4px;
  bottom: 3px;
  font-size: 10px;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}
.wear {
  display: grid;
  grid-template-columns: 68px 68px 68px;
  grid-template-rows: repeat(5, 68px);
  gap: 6px;
  justify-content: center;
}
.wear .h { grid-column: 2; grid-row: 1; }
.wear .b { grid-column: 1; grid-row: 2; }
.wear .c { grid-column: 2; grid-row: 2; }
.wear .g { grid-column: 3; grid-row: 2; }
.wear .k { grid-column: 2; grid-row: 3; }
.wear .l { grid-column: 2; grid-row: 4; }
.wear .f { grid-column: 2; grid-row: 5; }
.tools-title { font-size: clamp(26px, 4vw, 40px); margin: 6px 0 16px; }
.tools-title span { color: var(--ember); }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.perk { padding: 16px 18px; }
.perk h4 { color: var(--accent, var(--chrome)); margin-bottom: 6px; font-size: 14px; letter-spacing: .06em; }
.perk p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.perk code { color: #ffb089; font-family: inherit; }
.buybar {
  position: sticky;
  bottom: 0;
  z-index: 8;
  margin: 28px -22px -18px;
  background: rgba(8, 8, 10, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
}
.buybar .now { font-size: 32px; }
.buybar .old { color: #ef4444; text-decoration: line-through; margin-right: 10px; font-size: 16px; }
.buybar .acts { display: flex; gap: 10px; }
.buybar .btn-buy { width: auto; min-width: 180px; }
.backlink { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.backlink:hover { color: var(--ink); }
.ok { color: var(--ok); }
@media (max-width: 980px) {
  header { grid-template-columns: 1fr; justify-items: start; }
  nav, .userbox { justify-self: start; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .grid, .pack-grid, .rust, .meta-row, .perks { grid-template-columns: 1fr; }
  .hero-banner img { height: 280px; }
  .wear { margin: 0 auto; }
  .buybar { flex-wrap: wrap; }
  .buybar .btn-buy { width: 100%; }
}
