:root {
  --bg: #07080d;
  --bg-2: #0d1018;
  --panel: #12161f;
  --panel-2: #181d28;
  --line: rgba(245, 230, 75, 0.14);
  --ink: #eef2ff;
  --mute: #8b93a7;
  --gold: #f5e64b;
  --gold-2: #ffe98a;
  --cyan: #00e5ff;
  --mag: #ff2ec8;
  --ok: #7dff8a;
  --err: #ff5d6c;
  --common: #9aa0a6;
  --uncommon: #6adf4a;
  --rare: #49acf2;
  --epic: #c359ff;
  --legendary: #f3af38;
  --mythic: #ffd54a;
  --icon: #5be2ff;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --ui: "Outfit", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --top: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, .display {
  font-family: var(--display);
  margin: 0 0 0.2em;
  letter-spacing: 0.04em;
  line-height: 0.92;
  font-weight: 400;
  text-transform: uppercase;
}
p { margin: 0 0 0.8em; }
button, input, textarea, select { font: inherit; color: inherit; }

.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; background: var(--gold); color: #111; padding: 8px 12px; z-index: 80; }

.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.mute { color: var(--mute); }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
.crumbs { font-family: var(--mono); font-size: 0.78rem; color: var(--mute); margin-bottom: 10px; }
.crumbs a { color: var(--mute); }
.lead { font-size: 1.12rem; color: #c9d0e0; max-width: 42rem; }

.scan {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 50;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.08) 2px 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.35;
}

/* top */
.top {
  position: sticky; top: 0; z-index: 40;
  height: calc(var(--top) + var(--safe-top));
  padding-top: var(--safe-top);
  background: linear-gradient(180deg, rgba(7,8,13,.92), rgba(7,8,13,.55));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  height: var(--top);
  display: flex; align-items: center; gap: 22px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); flex-shrink: 0;
}
.brand:hover { color: var(--gold); }
.brand strong {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.12em;
  display: block; line-height: 1;
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--mute);
  text-transform: uppercase;
}
.brand-mark {
  width: 34px; height: 34px;
  background:
    linear-gradient(135deg, var(--cyan), transparent 55%),
    linear-gradient(315deg, var(--mag), transparent 55%),
    var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}
.nav {
  display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap;
}
.nav a {
  color: var(--mute);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 10px;
  letter-spacing: 0.02em;
}
.nav a:hover, .nav a.is-active { color: var(--gold); }
.nav-cta {
  margin-left: 8px;
  background: var(--gold);
  color: #111 !important;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  padding: 8px 16px !important;
}
.nav-cta:hover { background: var(--gold-2); }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--line);
  margin-left: auto; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--gold); margin: 0 auto;
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  border: 0; cursor: pointer; text-decoration: none;
}
.btn-gold { background: var(--gold); color: #111; }
.btn-gold:hover { background: var(--gold-2); color: #111; }
.btn-cyan { background: var(--cyan); color: #041018; }
.btn-cyan:hover { filter: brightness(1.08); color: #041018; }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* hero */
.hero {
  position: relative;
  min-height: min(86vh, 820px);
  display: grid; align-items: end;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,8,13,.88) 0%, rgba(7,8,13,.35) 48%, rgba(7,8,13,.2) 100%),
    linear-gradient(180deg, rgba(7,8,13,.15), rgba(7,8,13,.92));
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: end;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.35);
  padding: 5px 10px;
  background: rgba(0, 229, 255, 0.06);
}
.hero h1 {
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  color: #fff;
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.18);
}
.hero .lead { color: #d7dcea; }

.panel {
  background: rgba(12, 16, 24, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  padding: 18px 18px 16px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.panel .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--mag); text-transform: uppercase; }
.cd {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px;
}
.cd b {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.cd span { font-family: var(--mono); font-size: 0.65rem; color: var(--mute); letter-spacing: 0.12em; text-transform: uppercase; }
.panel .meta { margin-top: 12px; font-size: 0.9rem; color: var(--mute); }

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0a0c12;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.ticker-track {
  display: flex; gap: 28px; width: max-content;
  animation: marquee 28s linear infinite;
  padding: 10px 0;
}
.ticker-item { white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section { padding: 72px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.shop-grid, .news-grid, .event-grid, .ov-grid {
  display: grid; gap: 16px;
}
.shop-grid { grid-template-columns: repeat(4, 1fr); }
.news-grid { grid-template-columns: repeat(3, 1fr); }
.event-grid { grid-template-columns: repeat(2, 1fr); }
.ov-grid { grid-template-columns: repeat(3, 1fr); }

.item-card, .news-card, .event-card, .ov-card, .drop-card {
  background: var(--panel);
  border: 1px solid var(--line);
  color: inherit;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease;
}
.item-card:hover, .news-card:hover, .event-card:hover, .drop-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 230, 75, 0.4);
  color: inherit;
}
.item-card .shot {
  aspect-ratio: 1;
  background: #0a0c12;
  position: relative;
  overflow: hidden;
}
.item-card .shot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.news-card > img, .event-card > img, .drop-card > img {
  width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover;
}
.item-card .body, .news-card .body, .event-card .body, .ov-card, .drop-card .body {
  padding: 14px 14px 16px;
}
.item-card h3, .news-card h3, .event-card h3, .drop-card h3 { font-size: 1.45rem; }
.price {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.88rem;
}
.rarity {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.rarity.common { color: var(--common); }
.rarity.uncommon { color: var(--uncommon); }
.rarity.rare { color: var(--rare); }
.rarity.epic { color: var(--epic); }
.rarity.legendary { color: var(--legendary); }
.rarity.mythic { color: var(--mythic); }
.rarity.icon { color: var(--icon); }
.item-card[data-rarity="legendary"] { box-shadow: inset 0 0 0 1px rgba(243, 175, 56, 0.35); }
.item-card[data-rarity="mythic"] { box-shadow: inset 0 0 0 1px rgba(255, 213, 74, 0.5); }
.item-card[data-rarity="epic"] { box-shadow: inset 0 0 0 1px rgba(195, 89, 255, 0.3); }

.heat {
  display: flex; gap: 3px; margin-top: 8px;
}
.heat i {
  width: 10px; height: 14px;
  background: #2a3140;
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}
.heat i.on { background: var(--mag); }
.heat i.on:nth-child(4), .heat i.on:nth-child(5) { background: var(--gold); }

.map-wrap {
  position: relative;
  border: 1px solid var(--line);
  background: #05060a;
}
.map-wrap img { width: 100%; height: auto; display: block; }
.pin {
  position: absolute;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 14px rgba(245, 230, 75, 0.7);
  border: 0; cursor: pointer;
  z-index: 2;
}
.pin[data-heat="5"] { background: var(--mag); box-shadow: 0 0 16px rgba(255, 46, 200, 0.8); }
.pin[data-heat="4"] { background: #ff7a3a; }
.pin-tip {
  position: absolute; left: 22px; top: -6px;
  background: rgba(7,8,13,.92);
  color: var(--ink);
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--line);
  opacity: 0; pointer-events: none;
  transform: translateY(4px);
  transition: opacity .12s ease;
}
.pin:hover .pin-tip, .pin:focus .pin-tip { opacity: 1; transform: none; }

.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th, .rank-table td {
  text-align: left; padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
.rank-table th {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mute); font-weight: 500;
}
.rank-table td.num { font-variant-numeric: tabular-nums; font-family: var(--mono); }
.rank-table tbody tr:first-child td, .rank-table tr:nth-child(2) td { color: var(--gold); }

.ov-card .scope {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan);
}
.ov-card.lobby .scope { color: var(--mag); }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start;
}
.form-card, .legal {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
}
.contact-form, .form { display: grid; gap: 4px; }
.contact-form label, .form label {
  display: grid; gap: 6px;
  font-size: 0.82rem; color: var(--mute); font-weight: 600; margin-bottom: 12px;
}
.contact-form input, .contact-form select, .contact-form textarea,
.form input, .form select, .form textarea {
  width: 100%; background: var(--bg);
  border: 1px solid var(--line); color: var(--ink);
  padding: 11px 12px; font-size: 16px; outline: none;
}
.contact-form textarea, .form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--cyan);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; }
.form-note[data-state="ok"] { color: var(--ok); }
.form-note[data-state="error"] { color: var(--err); }
.flash-ok { color: var(--ok); }
.flash-error { color: var(--err); }

.page-hero { padding: 36px 0 10px; }
.page-hero h1, .display { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero-shot { margin: 18px 0; border: 1px solid var(--line); }
.hero-shot img { width: 100%; max-height: 420px; object-fit: cover; }
.prose { max-width: 42rem; color: #d0d6e4; }
.prose p { margin-bottom: 0.9em; }

.char-band {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.char-band img { width: 100%; height: 100%; object-fit: cover; max-height: 560px; }
.char-copy { padding: 48px 40px; display: grid; align-content: center; }

.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 calc(88px + var(--safe-bottom));
  background: #05060a;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.brand-plain {
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: 0.12em;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 6px 0; }
.foot a { color: var(--mute); }
.foot a:hover { color: var(--gold); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 28px; color: var(--mute); font-size: 0.88rem;
}
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: rgba(7,8,13,.92);
  border-top: 1px solid var(--line);
  gap: 8px; z-index: 30;
}
.mobile-cta .btn { flex: 1; }

.legal-body { white-space: pre-wrap; }

@media (max-width: 980px) {
  .hero-inner, .shop-grid, .news-grid, .event-grid, .ov-grid, .split, .char-band, .foot-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(7,8,13,.97);
    flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav-cta { margin: 8px 0 0; }
  .mobile-cta { display: flex; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5rem); }
}
