@import url('https://fonts.googleapis.com/css2?family=Nosifer&family=Special+Elite&display=swap');

:root {
  --bg: #150004;
  --bg-2: #250008;
  --panel: rgba(18, 3, 6, .88);
  --panel-2: rgba(38, 2, 9, .76);
  --blood: #b50922;
  --blood-bright: #ef1737;
  --blood-dark: #5e0010;
  --cream: #eadcd5;
  --muted: #a8918d;
  --cyan: #55e8ff;
  --gold: #d7ad4c;
  --line: rgba(201, 17, 45, .42);
  --shadow: 0 24px 80px rgba(0,0,0,.48);
  --radius: 16px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 17% 12%, rgba(133,0,27,.22), transparent 23rem),
    radial-gradient(circle at 92% 0%, rgba(75,0,14,.35), transparent 28rem),
    linear-gradient(180deg, #1a0005, #0d0003 60%, #170004);
  color: var(--cream);
  font-family: 'Special Elite', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.55;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  mix-blend-mode: screen;
  z-index: 100;
  background-image:
    repeating-linear-gradient(92deg, rgba(255,255,255,.025) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(4deg, rgba(0,0,0,.18) 0 2px, transparent 2px 13px);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  box-shadow: inset 0 0 170px 45px rgba(0,0,0,.88);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-shell { position: relative; z-index: 1; }
.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(13,0,3,.96), rgba(13,0,3,.74));
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Nosifer', Impact, sans-serif;
  font-size: 14px;
  letter-spacing: .04em;
  color: #f0e5df;
  text-shadow: 2px 2px 0 #4e000c;
}
.brand-mark {
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid rgba(239,23,55,.64);
  display: grid;
  place-items: center;
  transform: rotate(-4deg);
  background: linear-gradient(145deg, #330009, #0d0002);
  box-shadow: inset 0 0 18px rgba(239,23,55,.14), 0 0 18px rgba(239,23,55,.08);
}
.brand-mark::before { content: 'NJ'; color: var(--blood-bright); font-family: 'Special Elite'; font-weight: 900; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.nav-links a {
  padding: 10px 11px;
  color: #c8b9b4;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: .2s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after, .nav-links a:hover::after {
  content: '';
  position: absolute;
  left: 12%; right: 8%; bottom: 3px;
  height: 2px;
  background: var(--blood-bright);
  box-shadow: 0 0 10px var(--blood-bright);
  transform: rotate(-1.5deg);
}
.coin-sticker {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Nosifer', Impact, sans-serif;
  font-size: 11px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.19), transparent 15%),
    radial-gradient(circle at 50% 45%, #790018 0 37%, #290008 63%, #0c0002 100%);
  border: 2px solid #8c2434;
  box-shadow: inset 0 0 0 5px rgba(0,0,0,.24), 0 4px 24px rgba(164,0,28,.24);
  transform: rotate(5deg);
  text-shadow: 0 2px 1px #000;
}

.hero {
  min-height: 650px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(180,10,35,.25);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(15,0,3,.98) 0%, rgba(15,0,3,.88) 38%, rgba(15,0,3,.25) 67%, rgba(15,0,3,.72) 100%),
    url('../img/hero.webp');
  background-size: cover;
  background-position: center;
  filter: saturate(.9) contrast(1.08) brightness(.76);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(transparent, var(--bg));
}
.hero-inner { position: relative; z-index: 2; padding: 86px 0 100px; max-width: 760px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f16276;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 48px; height: 1px; background: var(--blood-bright); box-shadow: 0 0 9px var(--blood); }
.display {
  margin: 0;
  font-family: 'Nosifer', Impact, sans-serif;
  text-transform: uppercase;
  font-size: clamp(58px, 9vw, 126px);
  line-height: .86;
  letter-spacing: -.055em;
  color: #eadbd4;
  text-shadow: 4px 4px 0 #4f000d, -2px 1px 0 #111, 0 0 28px rgba(181,9,34,.22);
  transform: rotate(-1.1deg);
}
.display .red { color: #b71028; text-shadow: 4px 4px 0 #3d0009, 0 0 28px rgba(239,23,55,.18); }
.hero-copy { max-width: 650px; font-size: 18px; color: #cfbfba; margin: 26px 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  border: 1px solid rgba(205,20,48,.62);
  background: linear-gradient(180deg, rgba(97,0,19,.72), rgba(25,0,6,.85));
  color: #fff;
  min-height: 48px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 6px 3px 7px 4px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 10px 24px rgba(0,0,0,.22);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px) rotate(-.3deg); background: linear-gradient(180deg, rgba(151,0,28,.88), rgba(43,0,10,.92)); box-shadow: 0 12px 28px rgba(0,0,0,.32), 0 0 18px rgba(212,11,44,.12); }
.btn.secondary { color: #d7c8c2; background: rgba(13,0,3,.72); border-color: rgba(183,86,101,.33); }
.btn.icon::after { content: '↗'; font-size: 16px; color: #ff7389; }

.section { padding: 84px 0; position: relative; }
.section.compact { padding: 54px 0; }
.section::before {
  content: '';
  position: absolute;
  left: 5%; right: 5%; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191,15,44,.36), transparent);
}
.section-title {
  margin: 0 0 10px;
  font-family: 'Nosifer', Impact, sans-serif;
  text-transform: uppercase;
  font-size: clamp(28px, 5vw, 58px);
  letter-spacing: -.035em;
  color: #e7d8d2;
  text-shadow: 2px 2px 0 #4d000b;
}
.section-title .red { color: #b30b24; }
.section-lede { max-width: 760px; color: var(--muted); font-size: 17px; margin: 0 0 34px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }

.panel {
  position: relative;
  background:
    linear-gradient(140deg, rgba(80,0,16,.12), transparent 46%),
    var(--panel);
  border: 1px solid rgba(191,20,47,.36);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 40px rgba(120,0,20,.035);
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(181,9,34,.12);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}
.panel-body { padding: 24px; position: relative; z-index: 2; }
.card-kicker { color: #df5268; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.card-title { margin: 7px 0 9px; font-family: 'Nosifer', Impact, sans-serif; font-size: 20px; line-height: 1.25; }
.card-copy { color: #b5a19d; margin: 0; }

.image-card { min-height: 420px; background-size: cover; background-position: center; }
.image-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,0,2,.96)); }
.image-card .panel-body { position: absolute; inset: auto 0 0; }
.image-card h3 { font-family: 'Nosifer', Impact, sans-serif; margin: 0 0 7px; }
.image-card p { color: #c6b4af; margin: 0; }

.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.social-link {
  padding: 18px;
  border: 1px solid rgba(203,29,55,.38);
  background: rgba(16,0,4,.76);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: .18s ease;
}
.social-link:hover { transform: translateY(-3px); border-color: rgba(239,23,55,.72); background: rgba(46,0,10,.82); }
.social-link strong { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.social-link span { color: #d8455e; }

.quote-strip {
  margin: 22px 0 0;
  padding: 28px 30px;
  border-block: 1px solid rgba(176,18,42,.28);
  background: linear-gradient(90deg, transparent, rgba(106,0,21,.2), transparent);
  text-align: center;
  font-family: 'Nosifer', Impact, sans-serif;
  font-size: clamp(20px, 3vw, 36px);
  color: #cdbdb8;
  letter-spacing: -.02em;
}
.quote-strip b { color: #b60c25; font-weight: inherit; }

.page-hero { padding: 82px 0 48px; }
.page-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; }
.page-hero-art {
  min-height: 520px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  position: relative;
  border: 1px solid rgba(192,22,48,.36);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.page-hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,0,4,.1), rgba(18,0,4,.0) 50%, rgba(18,0,4,.35)), linear-gradient(0deg, rgba(12,0,3,.6), transparent 50%); }
.page-hero p { color: #b9a7a2; font-size: 18px; max-width: 650px; }

.lore-chapter { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: stretch; margin-bottom: 24px; }
.lore-chapter:nth-child(even) { grid-template-columns: 1.1fr .9fr; }
.lore-chapter:nth-child(even) .lore-image { order: 2; }
.lore-image { min-height: 440px; background-size: cover; background-position: center; border-radius: 14px; border: 1px solid rgba(185,14,41,.34); box-shadow: var(--shadow); }
.lore-copy { display: flex; align-items: center; }
.lore-copy .panel-body { padding: 34px; }
.lore-copy h2 { font-family: 'Nosifer', Impact, sans-serif; font-size: 27px; margin: 5px 0 14px; color: #e4d4ce; }
.lore-copy p { color: #b7a39e; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(192,22,48,.31);
  border-radius: 12px;
  background: rgba(17,0,4,.8);
  position: relative;
  overflow: hidden;
}
.stat::after { content: ''; position: absolute; right: -25px; bottom: -45px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(182,11,38,.17), transparent 68%); }
.stat-label { color: #9d8884; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.stat-value { margin-top: 9px; font-family: 'Nosifer', Impact, sans-serif; font-size: clamp(19px, 2.4vw, 31px); color: #f1e2dc; overflow-wrap: anywhere; }
.stat-value.red { color: #cf1735; }

.dex-shell { min-height: 470px; position: relative; }
.dex-frame { width: 100%; height: 470px; border: 0; display: block; background: #08090b; }
.dex-placeholder {
  min-height: 470px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(41,255,175,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,255,175,.045) 1px, transparent 1px),
    radial-gradient(circle at 70% 25%, rgba(20,109,76,.16), transparent 24rem), #080a0b;
  background-size: 36px 36px, 36px 36px, auto, auto;
}
.dex-placeholder canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dex-overlay { position: absolute; left: 24px; top: 20px; z-index: 2; }
.dex-overlay strong { font-family: 'Nosifer', Impact, sans-serif; font-size: 17px; }
.dex-overlay p { margin: 5px 0 0; font-size: 12px; color: #8a9692; }

.roadmap { position: relative; }
.roadmap::before { content: ''; position: absolute; top: 48px; bottom: 48px; left: 30px; width: 2px; background: linear-gradient(var(--blood), rgba(181,9,34,.05)); }
.road-item { position: relative; padding-left: 76px; margin-bottom: 24px; }
.road-dot { position: absolute; left: 12px; top: 8px; width: 38px; height: 38px; border-radius: 50%; background: #210006; border: 2px solid var(--blood); box-shadow: 0 0 20px rgba(213,11,43,.19); display: grid; place-items: center; color: #ff7f93; font-weight: 900; }
.road-item .panel-body { padding: 28px 30px; }
.road-item h3 { margin: 0 0 7px; font-family: 'Nosifer', Impact, sans-serif; font-size: 23px; }
.road-item ul { margin: 12px 0 0; padding-left: 18px; color: #b5a39e; }
.road-item li::marker { color: var(--blood-bright); }

.game-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); gap: 18px; align-items: start; }
.game-panel { padding: 14px; }
.game-hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 12px; }
.hud-box { border: 1px solid rgba(191,20,47,.3); background: rgba(12,0,3,.88); padding: 11px 13px; border-radius: 7px; }
.hud-label { font-size: 10px; color: #8f7975; text-transform: uppercase; letter-spacing: .12em; }
.hud-value { font-family: 'Nosifer', Impact, sans-serif; color: #e52a47; margin-top: 3px; font-size: 18px; }
#gameCanvas { width: 100%; aspect-ratio: 4/3; background: #070104; display: block; border: 1px solid rgba(181,9,34,.45); border-radius: 9px; box-shadow: inset 0 0 55px rgba(92,0,17,.3); }
.game-msg { min-height: 24px; color: #cfbcb7; margin: 10px 0 0; font-size: 13px; }
.controls { display: grid; grid-template-columns: repeat(3, 52px); justify-content: center; gap: 6px; margin: 16px 0 4px; }
.controls button { height: 48px; border: 1px solid rgba(183,18,43,.48); background: #230008; color: #f1dfd9; border-radius: 7px; font-size: 18px; cursor: pointer; }
.controls button:hover { background: #41000e; }
.controls .up { grid-column: 2; }
.controls .left { grid-column: 1; grid-row: 2; }
.controls .down { grid-column: 2; grid-row: 2; }
.controls .right { grid-column: 3; grid-row: 2; }
.game-side .panel + .panel { margin-top: 14px; }
.game-side h3 { margin: 0 0 10px; font-family: 'Nosifer', Impact, sans-serif; font-size: 18px; }
.game-side p, .game-side li { color: #b5a29d; }
.game-side ul { padding-left: 18px; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 12px; }
.gallery figure { margin: 0; overflow: hidden; border: 1px solid rgba(188,16,43,.32); border-radius: 12px; position: relative; background: #0b0002; }
.gallery figure:nth-child(1) { grid-column: span 5; grid-row: span 3; }
.gallery figure:nth-child(2) { grid-column: span 4; grid-row: span 2; }
.gallery figure:nth-child(3) { grid-column: span 3; grid-row: span 2; }
.gallery figure:nth-child(4) { grid-column: span 4; grid-row: span 3; }
.gallery figure:nth-child(5) { grid-column: span 3; grid-row: span 3; }
.gallery figure:nth-child(6) { grid-column: span 5; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.08) brightness(.83); transition: .3s ease; }
.gallery figure:hover img { transform: scale(1.035); filter: saturate(1) contrast(1.05) brightness(.94); }

.warning { display: flex; gap: 13px; align-items: flex-start; padding: 17px; border: 1px solid rgba(205,21,49,.35); background: rgba(83,0,15,.11); border-radius: 10px; color: #ad9995; }
.warning strong { color: #e83b54; text-transform: uppercase; }
.codeish { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: rgba(0,0,0,.35); border: 1px solid rgba(185,20,46,.2); padding: 12px; border-radius: 8px; overflow-wrap: anywhere; color: #d5c5c0; }

.footer { padding: 45px 0 58px; border-top: 1px solid rgba(177,14,40,.26); background: rgba(8,0,2,.5); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.footer-title { font-family: 'Nosifer', Impact, sans-serif; font-size: 24px; margin: 0 0 7px; }
.footer p { color: #8e7975; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 9px; }
.footer-links a { border: 1px solid rgba(192,21,48,.3); padding: 9px 11px; border-radius: 7px; color: #c6b6b1; }
.footer-links a:hover { border-color: rgba(239,23,55,.68); color: #fff; }

.blood-drop {
  position: fixed;
  z-index: 120;
  width: 46px;
  height: 58px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-18px) rotate(34deg) scale(.6);
  animation: dropPop 2.8s ease forwards;
}
.blood-drop::before {
  content: '';
  position: absolute;
  inset: 4px 5px 3px;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.55) 0 4%, transparent 5%), linear-gradient(145deg, #ff2444, #8b0017 60%, #3a000a);
  border-radius: 52% 48% 55% 45% / 65% 65% 35% 35%;
  transform: rotate(45deg);
  box-shadow: inset -7px -9px 12px rgba(0,0,0,.28), 0 7px 18px rgba(0,0,0,.35), 0 0 16px rgba(216,10,43,.24);
}
.blood-drop::after { content: '$NORM'; position: absolute; inset: 18px -9px auto; text-align: center; font-size: 9px; font-weight: 900; color: #fff; transform: rotate(-7deg); text-shadow: 1px 1px 0 #46000c; }
@keyframes dropPop {
  0% { opacity: 0; transform: translateY(-22px) rotate(34deg) scale(.4); }
  16% { opacity: 1; transform: translateY(0) rotate(34deg) scale(1.07); }
  78% { opacity: 1; transform: translateY(4px) rotate(30deg) scale(1); }
  100% { opacity: 0; transform: translateY(30px) rotate(43deg) scale(.84); }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.mobile-toggle { display: none; border: 1px solid rgba(193,21,48,.4); background: #200006; color: #fff; width: 44px; height: 40px; border-radius: 7px; }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero-inner, .game-layout { grid-template-columns: 1fr; }
  .page-hero-art { min-height: 460px; }
  .game-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .game-side .panel + .panel { margin-top: 0; }
}

@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto auto; }
  .mobile-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 76px;
    padding: 12px 16px 18px;
    background: rgba(12,0,3,.98);
    border-bottom: 1px solid rgba(190,20,47,.3);
  }
  .nav-links.open { display: grid; grid-template-columns: 1fr 1fr; }
  .coin-sticker { width: 48px; height: 48px; font-size: 9px; }
  .hero { min-height: 590px; }
  .hero::before { background-image: linear-gradient(90deg, rgba(15,0,3,.97), rgba(15,0,3,.82) 55%, rgba(15,0,3,.35)), url('../img/hero.webp'); background-position: 63% center; }
  .hero-inner { padding: 74px 0 86px; }
  .display { font-size: clamp(52px, 18vw, 86px); }
  .hero-copy { font-size: 16px; max-width: 90%; }
  .section { padding: 62px 0; }
  .grid-2, .grid-3, .grid-4, .stat-grid { grid-template-columns: 1fr; }
  .lore-chapter, .lore-chapter:nth-child(even) { grid-template-columns: 1fr; }
  .lore-chapter:nth-child(even) .lore-image { order: initial; }
  .lore-image { min-height: 380px; }
  .social-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 58px; }
  .page-hero-art { min-height: 390px; }
  .game-side { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .gallery figure, .gallery figure:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 22px, var(--max)); }
  .brand span { display: none; }
  .nav { gap: 10px; }
  .nav-links.open { grid-template-columns: 1fr; }
  .display { font-size: clamp(46px, 19vw, 72px); }
  .cta-row { display: grid; }
  .btn { width: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .game-hud { grid-template-columns: 1fr 1fr; }
  .game-hud .hud-box:last-child { grid-column: 1 / -1; }
}
