:root {
  --ink: #120d0a;
  --smoke: #1e1712;
  --ash: #2b221b;
  --paper: #efe3c8;
  --bread: #e8a33d;
  --crust: #b8641c;
  --flare: #e5281c;
  --blue: #2a4fa8;
  --muted: #a8977c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: "Archivo", system-ui, sans-serif;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body.shake main { animation: shake .35s; }
@keyframes shake {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-6px,3px); }
  40% { transform: translate(5px,-4px); }
  60% { transform: translate(-4px,-2px); }
  80% { transform: translate(3px,4px); }
}

/* ---------- gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: #000;
  transition: opacity .6s, visibility .6s;
}
.gate.gone { opacity: 0; visibility: hidden; }
.gate-bg {
  position: absolute; inset: 0;
  background: var(--img) center/cover;
  filter: saturate(1.1) contrast(1.1) brightness(.45);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.05); } to { transform: scale(1.15) translateX(-2%); } }
.gate-inner { position: relative; text-align: center; padding: 24px 16px; }
.gate-kicker { font-family: "Special Elite", monospace; color: var(--flare); letter-spacing: .2em; text-transform: uppercase; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.gate-title {
  font-family: "Black Ops One", sans-serif;
  font-size: clamp(56px, 13vw, 170px); line-height: .9;
  color: var(--bread);
  text-shadow: 0 0 30px rgba(232,163,61,.55), 6px 6px 0 #000;
  margin: 14px 0 8px;
}
.gate-sub { font-family: "Special Elite", monospace; font-size: 18px; color: var(--paper); margin-bottom: 28px; }
.gate-btn {
  font-family: "Anton", sans-serif; font-size: clamp(22px, 4vw, 34px); letter-spacing: .06em;
  background: var(--flare); color: #fff; border: 4px solid #000;
  padding: 16px 34px; box-shadow: 8px 8px 0 #000;
  transition: transform .1s, box-shadow .1s;
}
.gate-btn:hover { transform: translate(-2px,-2px) rotate(-1deg); box-shadow: 10px 10px 0 #000; }
.gate-btn:active { transform: translate(6px,6px); box-shadow: 2px 2px 0 #000; }
.gate-quiet { display: block; margin: 20px auto 0; background: none; border: 0; color: var(--muted); text-decoration: underline; font-family: "Special Elite", monospace; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: rgba(18,13,10,.82);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--bread);
}
.logo { display: flex; align-items: center; gap: 10px; font-family: "Black Ops One", sans-serif; font-size: 20px; color: var(--bread); white-space: nowrap; }
.logo img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bread); object-fit: cover; }
.bar-ca {
  margin: 0 auto; display: flex; align-items: center; gap: 8px; min-width: 0;
  background: #000; border: 2px dashed var(--bread); padding: 6px 12px; cursor: pointer;
  font-family: "Special Elite", monospace; font-size: 13px; max-width: 420px;
}
.bar-ca b { color: var(--flare); }
.bar-ca code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-act { display: flex; align-items: center; gap: 8px; }
.snd, .ico {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--ash); border: 2px solid #000; color: var(--paper);
}
.btn-buy {
  font-family: "Anton", sans-serif; letter-spacing: .05em;
  background: var(--bread); color: #000; border: 3px solid #000;
  padding: 8px 16px; box-shadow: 4px 4px 0 #000; white-space: nowrap;
  transition: transform .1s, box-shadow .1s; cursor: pointer;
}
.btn-buy:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 #000; background: #ffbf55; }
.btn-buy.big { font-size: 24px; padding: 14px 26px; box-shadow: 7px 7px 0 #000; }
.btn-ghost {
  font-family: "Anton", sans-serif; letter-spacing: .05em; font-size: 20px;
  color: var(--paper); border: 3px solid var(--paper); padding: 12px 22px; cursor: pointer;
}
.btn-ghost:hover { background: var(--paper); color: #000; }

/* ---------- ticker ---------- */
.ticker {
  position: fixed; top: 61px; left: 0; right: 0; z-index: 49;
  background: var(--flare); color: #fff; overflow: hidden;
  border-bottom: 2px solid #000;
  font-family: "Anton", sans-serif; font-size: 15px; letter-spacing: .06em;
}
.ticker-track { display: inline-flex; white-space: nowrap; padding: 5px 0; animation: tick 40s linear infinite; }
.ticker-track span { padding: 0 28px; }
.ticker-track span::before { content: "■ "; color: #000; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; }
.hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,7,5,.92) 0%, rgba(10,7,5,.55) 45%, rgba(10,7,5,0) 75%), linear-gradient(0deg, var(--ink) 0%, transparent 30%); }
.hero-copy { position: absolute; left: 0; bottom: 12vh; padding: 0 5vw; max-width: 760px; }
.stamp {
  display: inline-block; font-family: "Special Elite", monospace; font-size: 14px; letter-spacing: .14em;
  color: var(--bread); border: 2px solid currentColor; padding: 4px 10px; transform: rotate(-2deg);
  margin-bottom: 18px; text-transform: uppercase;
}
.stamp.red { color: var(--flare); }
.title { font-family: "Black Ops One", sans-serif; line-height: .85; }
.title .t1 { display: block; font-size: clamp(40px, 7vw, 90px); color: var(--paper); }
.title .t2 { display: block; font-size: clamp(64px, 14vw, 200px); color: var(--bread); text-shadow: 0 0 40px rgba(232,163,61,.5), 7px 7px 0 #000; }
.tag { font-family: "Special Elite", monospace; font-size: clamp(18px, 2.4vw, 26px); margin: 16px 0 28px; }
.tag em { color: var(--flare); font-style: normal; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-family: "Special Elite", monospace; color: var(--muted); font-size: 14px; animation: bob 1.6s ease-in-out infinite; white-space: nowrap; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------- headings ---------- */
.h2 { font-family: "Anton", sans-serif; font-size: clamp(40px, 7vw, 96px); line-height: .95; text-transform: uppercase; letter-spacing: .01em; }

/* ---------- story ---------- */
.story { padding: 16vh 5vw 8vh; background: linear-gradient(var(--ink), var(--smoke)); }
.story-head { text-align: center; margin-bottom: 12vh; }
.chap {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 5vw; align-items: center;
  max-width: 1300px; margin: 0 auto 22vh;
}
.chap.flip { grid-template-columns: 1fr 1.35fr; }
.chap.flip .chap-media { order: 2; }
.chap-media {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  border: 4px solid #000; box-shadow: 12px 12px 0 var(--crust);
  transform: rotate(-1.2deg) scale(.92); opacity: .3;
  transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .9s;
  background: #000;
}
.chap.flip .chap-media { transform: rotate(1.2deg) scale(.92); box-shadow: -12px 12px 0 var(--blue); }
.chap.on .chap-media { transform: rotate(0) scale(1); opacity: 1; }
.chap-media img, .chap-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chap-media video { opacity: 0; transition: opacity .5s; }
.chap-media video.ready { opacity: 1; }
.rec { position: absolute; top: 10px; left: 12px; font-family: "Special Elite", monospace; color: var(--flare); font-size: 14px; text-shadow: 0 0 6px #000; animation: blink 1.2s steps(2) infinite; }
.chap-text { transform: translateY(60px); opacity: 0; transition: transform .9s .15s, opacity .9s .15s; }
.chap.on .chap-text { transform: none; opacity: 1; }
.chap-no { font-family: "Black Ops One", sans-serif; font-size: 72px; color: transparent; -webkit-text-stroke: 2px var(--bread); line-height: 1; }
.chap-text h3 { font-family: "Anton", sans-serif; font-size: clamp(30px, 4vw, 52px); text-transform: uppercase; margin: 6px 0 14px; line-height: 1; }
.chap-text p { font-size: 18px; line-height: 1.55; color: #d9ccb2; }
.chap-text .quote {
  margin-top: 18px; display: inline-block;
  font-family: "Special Elite", monospace; font-size: 22px; color: #000;
  background: var(--paper); padding: 8px 14px; border: 3px solid #000; transform: rotate(-1.5deg);
  box-shadow: 5px 5px 0 #000;
}

/* ---------- trailer ---------- */
.trailer { padding: 14vh 5vw; text-align: center; background: var(--smoke); border-top: 3px dashed var(--ash); }
.trailer .h2 { margin-bottom: 40px; }
.tv { position: relative; max-width: 1100px; margin: 0 auto; border: 6px solid #000; box-shadow: 0 0 0 3px var(--bread), 16px 16px 0 #000; background: #000; }
.tv video { width: 100%; aspect-ratio: 16/9; background: #000; }
.tv-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-family: "Anton", sans-serif; font-size: clamp(20px, 3vw, 30px);
  background: var(--flare); color: #fff; border: 4px solid #000; padding: 14px 28px; box-shadow: 6px 6px 0 #000;
}
.tv.playing .tv-play { display: none; }

/* ---------- wanted ---------- */
.wanted { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 6vw; align-items: center; padding: 14vh 5vw; max-width: 1300px; margin: 0 auto; }
.wanted-card {
  background: #e6d3a8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  color: #2a1a0c; padding: 22px; border: 3px solid #5a3a1a; transform: rotate(-2.5deg);
  box-shadow: 14px 14px 0 rgba(0,0,0,.6); text-align: center;
}
.w-top { font-family: "Black Ops One", sans-serif; font-size: 64px; letter-spacing: .08em; line-height: 1; }
.wanted-card img { width: 100%; border: 3px solid #2a1a0c; margin: 10px 0; filter: sepia(.35) contrast(1.05); }
.w-name { font-family: "Anton", sans-serif; font-size: 30px; }
.w-crimes { list-style: none; font-family: "Special Elite", monospace; font-size: 15px; margin: 8px 0; }
.w-crimes li::before { content: "✗ "; color: #9a1a10; }
.w-reward { font-family: "Anton", sans-serif; font-size: 26px; margin-top: 8px; }
.w-reward b { color: #9a1a10; }
.intel { display: grid; gap: 14px; margin-top: 30px; }
.intel div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: baseline; border-bottom: 2px dashed var(--ash); padding-bottom: 14px; }
.intel b { font-family: "Black Ops One", sans-serif; font-size: 24px; color: var(--bread); text-transform: uppercase; }
.intel span { font-size: 18px; color: #d9ccb2; line-height: 1.5; }

/* ---------- enlist ---------- */
.enlist { padding: 14vh 5vw; text-align: center; background: linear-gradient(var(--ink), #24120c); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1200px; margin: 50px auto; text-align: left; }
.steps li { background: var(--paper); color: #1a120c; padding: 22px; border: 3px solid #000; box-shadow: 7px 7px 0 var(--crust); transition: transform .2s; }
.steps li:hover { transform: rotate(-1.5deg) translateY(-4px); }
.steps b { font-family: "Black Ops One", sans-serif; font-size: 40px; color: var(--flare); }
.steps h4 { font-family: "Anton", sans-serif; font-size: 26px; text-transform: uppercase; margin: 6px 0; }
.steps p { font-family: "Special Elite", monospace; font-size: 15px; line-height: 1.45; }
.crate {
  max-width: 820px; margin: 0 auto 36px; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px;
  background: repeating-linear-gradient(90deg, #5b4425 0 46px, #4d391f 46px 50px);
  border: 5px solid #2a1c0e; padding: 18px 22px; text-align: left;
  box-shadow: inset 0 0 0 3px #7a5c33, 10px 10px 0 #000;
}
.crate-label { grid-column: 1 / -1; font-family: "Black Ops One", sans-serif; color: var(--bread); letter-spacing: .08em; }
.crate code { font-family: "Special Elite", monospace; font-size: clamp(14px, 2vw, 20px); background: #000; color: var(--paper); padding: 12px 14px; overflow-wrap: anywhere; }
.crate-btn { font-family: "Anton", sans-serif; font-size: 22px; background: var(--bread); color: #000; padding: 10px 18px; border: 3px solid #000; }
.enlist-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 60px 16px 80px; background: #000; color: var(--muted); }
.foot img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; border: 2px solid var(--bread); object-fit: cover; }
.foot b { color: var(--bread); }
.foot .small { font-size: 13px; margin-top: 10px; max-width: 520px; margin-inline: auto; }

/* ---------- toast + projectiles ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: var(--bread); color: #000; font-family: "Anton", sans-serif; font-size: 20px; padding: 12px 22px; border: 3px solid #000; box-shadow: 5px 5px 0 #000; z-index: 90; transition: transform .3s; }
.toast.show { transform: translate(-50%, 0); }
.boom-fx { position: fixed; z-index: 80; pointer-events: none; font-family: "Anton", sans-serif; color: var(--bread); -webkit-text-stroke: 2px #000; font-size: 42px; animation: pop .7s forwards; }
@keyframes pop { 0% { transform: translate(-50%,-50%) scale(.3) rotate(-10deg); opacity: 1; } 60% { transform: translate(-50%,-80%) scale(1.15) rotate(6deg); opacity: 1; } 100% { transform: translate(-50%,-120%) scale(1) rotate(0); opacity: 0; } }
.bread-fx { position: fixed; z-index: 79; pointer-events: none; font-size: 34px; animation: fly .8s cubic-bezier(.3,.6,.4,1) forwards; }
@keyframes fly { to { transform: translate(var(--dx), var(--dy)) rotate(720deg); opacity: 0; } }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .chap, .chap.flip { grid-template-columns: 1fr; gap: 26px; margin-bottom: 14vh; }
  .chap.flip .chap-media { order: 0; }
  .wanted { grid-template-columns: 1fr; }
  .wanted-card { max-width: 380px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .intel div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  .bar { gap: 8px; padding: 8px 10px; }
  .logo span { display: none; }
  .bar-ca { font-size: 11px; padding: 6px 8px; }
  .btn-buy { padding: 7px 10px; font-size: 14px; }
  .btn-buy.big { font-size: 20px; padding: 12px 18px; }
  .snd { display: none; }
  .ticker { top: 57px; }
  .hero-copy { bottom: 10vh; }
  .steps { grid-template-columns: 1fr; }
  .chap-text p { font-size: 16px; }
  .stamp { font-size: 11px; letter-spacing: .08em; }
  .crate { grid-template-columns: 1fr; }
}
