:root {
  --rust: #d85b24;
  --rust-dark: #7f2c16;
  --cyan: #28e0dc;
  --yellow: #f2c94c;
  --red: #ff3b30;
  --metal: #242b2e;
  --ink: #090c0e;
  --cream: #e9dfbd;
  --green: #9ad13a;
  --stage-edge: max(3vw, calc((100vw - 1600px) / 2 + 24px));
}

* { box-sizing: border-box; }
.hidden { display: none !important; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--cream);
  background: #090c0e;
  font-family: "Chakra Petch", sans-serif;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='34' viewBox='0 0 30 34'%3E%3Cpath d='M7 3v16c0 8 16 8 16 0v-5' fill='none' stroke='%2328e0dc' stroke-width='5'/%3E%3Cpath d='M4 3h6M20 14h6' stroke='%23f2c94c' stroke-width='5'/%3E%3Cpath d='M14 27l-4 5' stroke='%23101415' stroke-width='3'/%3E%3C/svg%3E") 8 3, crosshair;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.sparks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  background:
    radial-gradient(circle, #ffb026 0 1px, transparent 2px) 16% 30%/120px 180px,
    radial-gradient(circle, #ff6a16 0 1px, transparent 2px) 82% 20%/160px 220px;
  animation: sparks 5s linear infinite;
  opacity: .7;
}

@keyframes sparks {
  from { transform: translateY(-100px); }
  to { transform: translateY(240px); }
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 3.5vw;
}

.brand {
  color: var(--cream);
  text-decoration: none;
  transform: rotate(-1deg);
}

.brand-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--cyan);
}

.brand-title {
  font: 36px/1 "Black Ops One", sans-serif;
  letter-spacing: -.04em;
  text-shadow: 3px 3px 0 #55200f;
}

.brand-title i {
  color: var(--rust);
  font-style: normal;
}

.ticker {
  padding: 9px 14px;
  border: 1px solid #586063;
  background: rgba(12, 16, 18, .82);
  box-shadow: 4px 4px 0 #000;
  font-weight: 800;
  letter-spacing: .14em;
}

.header-panel {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.live-stats {
  display: flex;
  gap: 6px;
}

.live-stats span,
.live-stats a {
  padding: 6px 9px;
  color: #778382;
  border: 1px solid #374142;
  background: rgba(7, 11, 12, .88);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .45);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
}

.live-stats b {
  margin-left: 5px;
  color: var(--yellow);
}

.live-stats a {
  color: var(--cyan);
}

.ticker-led {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: blink .8s infinite;
}

.hero {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(4, 8, 11, .18) 35%, #090b0d 100%),
    url("assets/junkyard-night.png") center top / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 45%, transparent 0 22%, rgba(0, 0, 0, .45) 70%);
}

.scene-copy {
  position: absolute;
  z-index: 4;
  top: 145px;
  left: var(--stage-edge);
  width: min(330px, 25vw);
  transform: rotate(-1deg);
}

.eyebrow {
  display: inline-block;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.scene-copy h1 {
  margin: 12px 0 15px;
  color: #e8dfc3;
  font: clamp(52px, 5vw, 86px)/.82 "Black Ops One", sans-serif;
  letter-spacing: -.06em;
  text-shadow: 5px 5px 0 rgba(0, 0, 0, .5);
}

.scene-copy h1 span { color: var(--rust); }
.scene-copy p {
  max-width: 315px;
  margin: 0;
  color: #c2bdad;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.level-objective {
  margin: 0;
  color: var(--yellow);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .12em;
}

.cabinet-wrap {
  position: absolute;
  z-index: 5;
  top: 68px;
  left: 50%;
  width: 620px;
  height: 820px;
  transform: translateX(-50%);
}

.cabinet {
  position: absolute;
  left: 65px;
  width: 455px;
  filter: drop-shadow(22px 30px 12px rgba(0,0,0,.65));
}

.cabinet-top {
  position: relative;
  z-index: 3;
  height: 103px;
  padding-top: 27px;
  text-align: center;
  background:
    linear-gradient(88deg, transparent 0 5%, rgba(255,255,255,.05) 7%, transparent 8%),
    linear-gradient(#713019, #c54b1f 45%, #792610);
  border: 5px solid #1b2021;
  clip-path: polygon(6% 0, 94% 3%, 100% 100%, 0 96%);
  box-shadow: inset 0 8px 0 rgba(255,255,255,.08), inset 0 -12px 0 rgba(0,0,0,.24);
}

.cabinet-top::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px dashed rgba(25, 18, 12, .55);
  clip-path: inherit;
}

.cabinet-top h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #efdfaf;
  font: 49px/.9 "Black Ops One", sans-serif;
  letter-spacing: -.05em;
  text-shadow: 4px 4px 0 #3e170e;
}

.cabinet-top h2 span { color: var(--yellow); }
.marquee-small, .marquee-sub {
  position: relative;
  z-index: 1;
  display: block;
  color: #2d1710;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .25em;
}

.marquee-sub { margin-top: 5px; }
.bolt {
  position: absolute;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #313738;
  box-shadow: inset 2px 2px 0 #73797a;
}
.bolt-a { top: 15px; left: 22px; }
.bolt-b { right: 20px; bottom: 14px; }

.screen-shell {
  position: relative;
  width: 445px;
  margin: -4px auto 0;
  padding: 18px 20px 25px;
  background: linear-gradient(100deg, #242c2e, #151a1c 55%, #363b3a);
  border-left: 6px solid #090c0d;
  border-right: 6px solid #090c0d;
}

.screen-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .65;
  background: repeating-linear-gradient(105deg, transparent 0 37px, #552512 39px, transparent 41px);
}

.screen-bezel {
  position: relative;
  z-index: 1;
  padding: 14px;
  background: #060909;
  border: 4px solid #3b4444;
  border-radius: 30px 24px 28px 22px;
  box-shadow: inset 8px 8px 15px #000, 0 4px 0 #77341c;
}

.screen {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 18px 15px 20px 14px;
  background: #061215;
  box-shadow: inset 0 0 25px #000, 0 0 20px rgba(40,224,220,.12);
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.screen-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  background: radial-gradient(circle, rgba(14,57,58,.86), rgba(3,12,14,.97) 75%);
}

.screen-overlay.hidden {
  display: none;
}

.screen-overlay h3 {
  margin: 7px 0 15px;
  color: #dff7e4;
  font: clamp(26px, 3.2vw, 42px)/.9 "Black Ops One", sans-serif;
  letter-spacing: .02em;
  text-shadow: 0 0 12px rgba(40, 224, 220, .55);
}

.pixel-skull {
  color: var(--rust);
  font-size: 26px;
  filter: contrast(2);
}

.boot-label {
  margin: 5px 0 0;
  color: var(--cyan);
  font-size: 9.5px;
  letter-spacing: .3em;
}

.boot-screen {
  padding: 12px 16px;
}

.boot-screen h3 {
  margin: 4px 0 10px;
  font-size: clamp(28px, 2.5vw, 38px);
}

.boot-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  width: 100%;
}

.menu-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 7px;
  min-width: 0;
  padding: 8px 8px;
  color: #8ea7a4;
  border: 1px solid #42605e;
  background: rgba(3, 14, 16, .8);
  text-align: left;
  cursor: pointer;
}

.menu-choice:hover,
.menu-choice.primary {
  color: #071011;
  border-color: var(--yellow);
  background: var(--yellow);
}

.menu-choice span {
  grid-row: 1 / 3;
  color: var(--rust);
  font: 19px "Black Ops One";
}

.menu-choice:hover span,
.menu-choice.primary span {
  color: #6f2d13;
}

.menu-choice strong {
  color: inherit;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .08em;
}

.menu-choice small {
  overflow: hidden;
  font-size: 7.5px;
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
}

.terminal-screen {
  justify-content: flex-start;
  gap: 5px;
  padding: 13px 18px 12px;
  text-align: left;
}

.terminal-screen .eyebrow {
  max-width: calc(100% - 82px);
  font-size: 9px;
  letter-spacing: .22em;
}

.terminal-screen h3 {
  align-self: flex-start;
  max-width: 265px;
  margin: 3px 0 7px;
  font-size: 26px;
  line-height: .86;
}

.terminal-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
}

.terminal-copy p {
  margin: 0;
  color: #93aeaa;
  font-size: 8.4px;
  line-height: 1.22;
}

.terminal-copy b {
  color: var(--yellow);
}

.terminal-back {
  position: absolute;
  z-index: 12;
  top: 12px;
  right: 14px;
  min-width: 62px;
  padding: 6px 8px;
  font-size: 8px;
  box-shadow: 0 3px 0 #8d6117, 0 5px 10px #000;
  transform: skew(-3deg);
}

.pause-screen {
  gap: 10px;
}

.pause-screen h3 {
  margin-bottom: 0;
  color: var(--yellow);
  font-size: 42px;
}

.pause-screen p {
  max-width: 240px;
  margin: 0 0 3px;
  color: #9dbbb8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
}

.screen-roadmap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  width: 100%;
}

.screen-roadmap article {
  display: grid;
  grid-template-columns: 28px 1fr;
  min-height: 42px;
  padding: 6px 7px 5px;
  border: 1px solid #375452;
  background: rgba(0, 0, 0, .27);
}

.screen-roadmap span {
  grid-row: 1 / 3;
  color: var(--rust);
  font: 17px "Black Ops One";
}

.screen-roadmap b {
  color: var(--yellow);
  font-size: 10px;
  line-height: 1;
}

.screen-roadmap small {
  color: #78928f;
  font-size: 7.6px;
  line-height: 1.1;
}

.insert-coin, .screen-button {
  min-width: 160px;
  padding: 9px 15px;
  color: #111;
  border: 0;
  background: var(--yellow);
  box-shadow: 0 5px 0 #8d6117, 0 8px 15px #000;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
  transform: skew(-3deg);
}

.insert-coin:active, .screen-button:active {
  transform: skew(-3deg) translateY(4px);
  box-shadow: 0 1px 0 #8d6117;
}

.screen-button.terminal-back {
  min-width: 64px;
  width: auto;
  padding: 6px 9px;
  font-size: 9px;
  box-shadow: 0 3px 0 #8d6117, 0 5px 10px #000;
}

.screen-button.terminal-back:active {
  transform: skew(-3deg) translateY(2px);
  box-shadow: 0 1px 0 #8d6117;
}

.coin {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  color: #56350a;
  border: 2px dotted #56350a;
  border-radius: 50%;
}

.blink {
  margin: 14px 0 0;
  color: #8db8b4;
  font-size: 8px;
  letter-spacing: .15em;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink { 50% { opacity: .25; } }

.controls {
  display: flex;
  gap: 24px;
  margin-bottom: 18px;
  color: #9dbbb8;
  font-size: 9.5px;
  letter-spacing: .1em;
}

.ready-screen {
  justify-content: flex-start;
  padding: 16px 18px 70px;
  cursor: pointer;
}

.ready-screen .eyebrow {
  margin-top: 0;
}

.ready-screen h3 {
  margin: 6px 0 8px;
  font-size: clamp(29px, 2.7vw, 38px);
  line-height: .86;
  white-space: nowrap;
}

.ready-screen .controls {
  gap: 8px;
  margin: 7px 0 0;
}

.ready-screen .start-button {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 230px;
  min-height: 46px;
  padding: 7px 16px 6px;
  border: 2px solid #ffe47c;
  box-shadow: 0 5px 0 #8d6117, 0 0 18px rgba(242, 201, 76, .35);
  transform: translateX(-50%) skew(-3deg);
}

.ready-screen .start-button strong {
  font-size: 15px;
  line-height: 1;
}

.ready-screen .start-button small {
  margin-top: 4px;
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: .1em;
}

.ready-screen .start-button:hover {
  background: #ffe472;
  box-shadow: 0 5px 0 #8d6117, 0 0 28px rgba(242, 201, 76, .65);
}

.ready-screen .start-button:active {
  bottom: 9px;
  transform: translateX(-50%) skew(-3deg);
  box-shadow: 0 1px 0 #8d6117;
}

kbd {
  padding: 3px 5px;
  color: var(--yellow);
  border: 1px solid #6c8884;
  background: #071010;
}

.result-stamp {
  padding: 4px 8px;
  color: var(--rust);
  border: 2px solid var(--rust);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2em;
  transform: rotate(-4deg);
}

.result-screen p {
  margin: -5px 0 15px;
  color: #99b7b4;
  font-size: 12px;
}

.ca-screen h3 { color: var(--yellow); }
.ca-value {
  width: 88%;
  padding: 9px;
  color: var(--cyan);
  border: 1px dashed var(--cyan);
  background: rgba(0,0,0,.35);
  cursor: pointer;
}
.ca-value span { display: block; font-size: 12px; font-weight: 900; }
.ca-value small { color: #71918e; font-size: 8px; letter-spacing: .15em; }
.screen-link {
  margin-top: 12px;
  padding: 0;
  color: #819d99;
  border: 0;
  border-bottom: 1px solid;
  background: none;
  font-size: 9px;
  cursor: pointer;
}

.scanlines {
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 2px 4px);
  animation: scan 8s linear infinite;
}

@keyframes scan { to { background-position-y: 80px; } }
.screen-glare {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255,255,255,.1), transparent 28%);
}

.control-deck {
  position: relative;
  z-index: 4;
  height: 112px;
  margin-top: -4px;
  background:
    linear-gradient(165deg, #b3421c 0 48%, #762812 49%),
    var(--rust);
  border: 6px solid #111718;
  clip-path: polygon(4% 0, 96% 0, 100% 82%, 92% 100%, 8% 100%, 0 82%);
  box-shadow: inset 0 8px 0 rgba(255,255,255,.08);
}

.arcade-button {
  position: absolute;
  bottom: 35px;
  width: 44px;
  height: 27px;
  border: 4px solid #34130a;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 0 #250d08, 0 10px 4px #000;
}
.arcade-button:active { bottom: 29px; box-shadow: 0 2px 0 #250d08; }
.deck-pause {
  position: absolute;
  left: 75px;
  bottom: 38px;
  min-width: 78px;
  padding: 10px 12px 8px;
  color: #101516;
  border: 4px solid #31140b;
  background: linear-gradient(#e9dfbd, #b99b4b);
  box-shadow: 0 7px 0 #27110b, 0 10px 5px #000;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .14em;
  cursor: pointer;
  transform: skew(-5deg);
}

.deck-pause:active {
  bottom: 32px;
  box-shadow: 0 1px 0 #27110b;
}

.deck-pause.is-paused {
  color: #051112;
  background: var(--cyan);
  box-shadow: 0 7px 0 #0b4b4a, 0 10px 5px #000, 0 0 13px rgba(40, 224, 220, .4);
}

.arcade-button.red { left: 185px; background: #f0442d; }
.arcade-button.yellow { left: 245px; background: var(--yellow); }
.arcade-button.cyan {
  left: 305px;
  background: var(--cyan);
  box-shadow: 0 8px 0 #0b4b4a, 0 10px 4px #000, 0 0 12px rgba(40, 224, 220, .3);
}
.arcade-button::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  color: rgba(20, 12, 8, .86);
  font-size: 6.5px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .06em;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.arcade-button.red::after { content: "JUMP"; }
.arcade-button.yellow::after { content: "DUCK"; }
.arcade-button.cyan::after { content: "EMP"; }

.coin-slot {
  position: absolute;
  right: 9px;
  bottom: 41px;
  display: grid;
  justify-items: center;
  color: #1b0d08;
  font-weight: 900;
  font-size: 9px;
}
.coin-slot span {
  display: block;
  width: 36px;
  height: 16px;
  margin-bottom: 3px;
  border: 4px solid #242929;
  background: #080a0a;
  box-shadow: 0 3px 0 rgba(255,255,255,.12);
}

.cabinet-lower {
  position: relative;
  height: 320px;
  margin: -8px 15px 0;
  background:
    linear-gradient(100deg, rgba(255,255,255,.04), transparent 20%),
    linear-gradient(90deg, #202627, #151a1b 48%, #252a29);
  border: 6px solid #0d1112;
  clip-path: polygon(3% 0, 97% 0, 91% 100%, 9% 100%);
  box-shadow: inset 0 0 35px #080a0a;
}

.speaker {
  position: absolute;
  top: 45px;
  left: 60px;
  width: 150px;
  transform: rotate(-3deg);
}
.speaker i {
  display: block;
  height: 8px;
  margin: 9px;
  border-radius: 5px;
  background: #080b0c;
  box-shadow: inset 0 2px 3px #000, 0 1px 0 #3d4545;
}

.social-panel {
  position: absolute;
  top: 48px;
  right: 55px;
  display: grid;
  grid-template-columns: repeat(2, 42px);
  gap: 9px;
}
.social-panel a {
  display: grid;
  place-items: center;
  height: 35px;
  color: var(--cyan);
  border: 2px solid #090c0d;
  background: #303839;
  box-shadow: inset 0 0 0 2px #515a59, 3px 4px 0 #060808;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
}
.social-panel a:hover { color: #0c1313; background: var(--cyan); }

.upgrade-hatch {
  position: absolute;
  left: 50%;
  bottom: 56px;
  width: 230px;
  padding: 12px;
  color: var(--yellow);
  border: 3px solid #080b0c;
  background: #252c2d;
  box-shadow: inset 0 0 0 2px #4a5353, 5px 7px 0 #080a0b;
  cursor: pointer;
  transform: translateX(-50%) rotate(1deg);
}
.upgrade-hatch span { display: block; font-weight: 900; letter-spacing: .18em; }
.upgrade-hatch small { color: #949e9d; }
.upgrade-hatch.locked { filter: grayscale(1); cursor: not-allowed; }

.warning-sticker {
  position: absolute;
  right: 47px;
  bottom: 13px;
  padding: 3px 7px;
  color: #17120b;
  background: var(--yellow);
  font-size: 7px;
  font-weight: 900;
  transform: rotate(-7deg);
}

.rust-boy {
  position: absolute;
  z-index: 7;
  right: -8px;
  bottom: 65px;
  width: 145px;
  height: 260px;
  filter: drop-shadow(13px 16px 7px rgba(0,0,0,.55));
  transform: rotate(2deg);
  transition: transform .2s;
}

.junkbot-character {
  position: absolute;
  z-index: 7;
  right: -330px;
  bottom: -12px;
  width: 430px;
  height: 430px;
  filter: drop-shadow(16px 22px 11px rgba(0, 0, 0, .62));
  cursor: pointer;
  transform: rotate(1deg);
  transform-origin: center bottom;
  transition: transform .2s, filter .2s;
}

.junkbot-character:hover {
  filter: drop-shadow(16px 22px 11px rgba(0, 0, 0, .62)) brightness(1.06);
  transform: rotate(-1deg) translateY(-3px);
}

.junkbot-character.happy {
  animation: bot-image-hop .45s ease 2;
}

.junkbot-character img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

@keyframes bot-image-hop {
  50% { transform: translateY(-18px) rotate(-2deg); }
}

.junkbot-character .speech {
  top: 44px;
  right: -26px;
  min-width: 172px;
}
.rust-boy.happy { animation: boy-hop .45s ease 2; }
@keyframes boy-hop { 50% { transform: translateY(-16px) rotate(-2deg); } }

.head {
  position: absolute;
  z-index: 4;
  top: 30px;
  left: 29px;
  width: 95px;
  height: 83px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.14), transparent 22%),
    linear-gradient(145deg, #b64d25, #6d2e1c 60%, #3f2520);
  border: 5px solid #202324;
  clip-path: polygon(7% 0, 95% 7%, 100% 89%, 88% 100%, 5% 94%, 0 15%);
  box-shadow: inset -8px -7px 0 rgba(0,0,0,.18);
}
.helmet {
  position: absolute;
  z-index: 6;
  top: 20px;
  left: 24px;
  width: 105px;
  height: 35px;
  border-radius: 50px 50px 3px 3px;
  background: #7a3d22;
  border: 5px solid #292928;
  transform: rotate(3deg);
  box-shadow: inset 12px 5px 0 rgba(255,255,255,.08);
}
.helmet::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -7px;
  width: 52px;
  height: 10px;
  background: #2b2d2c;
}
.dent {
  position: absolute;
  top: 8px;
  left: 36px;
  width: 22px;
  height: 12px;
  border-radius: 50%;
  border-bottom: 3px solid #452016;
  transform: rotate(-15deg);
}
.eye {
  position: absolute;
  top: 32px;
}
.eye-screen {
  left: 15px;
  width: 32px;
  height: 28px;
  border-radius: 47%;
  border: 4px solid #252a29;
  background: #14393d;
  box-shadow: inset 0 0 8px #000, 0 0 6px var(--cyan);
}
.eye-screen i {
  position: absolute;
  top: 7px;
  left: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.eye-red {
  right: 14px;
  top: 39px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #271312;
  box-shadow: 0 0 11px var(--red);
}
.mouth {
  position: absolute;
  left: 38px;
  bottom: 12px;
  width: 35px;
  height: 8px;
  border-top: 4px solid #271817;
  transform: rotate(-5deg);
}
.mouth::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 8px;
  width: 4px;
  height: 8px;
  background: #281817;
  box-shadow: 10px 0 #281817;
}
.antenna {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 70px;
  width: 5px;
  height: 30px;
  background: #323635;
  transform: rotate(-15deg);
}
.antenna i {
  position: absolute;
  top: -7px;
  left: -5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
}
.wire-scarf {
  position: absolute;
  z-index: 5;
  top: 105px;
  left: 23px;
  width: 104px;
  height: 22px;
  border: 6px solid var(--cyan);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(8deg);
}
.body {
  position: absolute;
  z-index: 3;
  top: 112px;
  left: 39px;
  width: 78px;
  height: 83px;
  background: linear-gradient(120deg, #6e7470, #303637 62%);
  border: 5px solid #1a1e1e;
  clip-path: polygon(9% 0, 93% 5%, 100% 90%, 12% 100%, 0 15%);
}
.chest-panel {
  position: absolute;
  top: 18px;
  left: 19px;
  display: grid;
  place-items: center;
  width: 39px;
  height: 35px;
  color: var(--yellow);
  border: 3px solid #111;
  background: #843719;
  font: 24px/1 "Black Ops One", sans-serif;
}
.magnet {
  position: absolute;
  right: -18px;
  top: 21px;
  width: 24px;
  height: 34px;
  border: 7px solid #d7592a;
  border-bottom-color: transparent;
  border-radius: 12px 12px 0 0;
  transform: rotate(90deg);
}
.arm, .leg {
  position: absolute;
  z-index: 2;
  background: #77361f;
  border: 5px solid #1c2020;
}
.arm { top: 125px; width: 28px; height: 73px; }
.arm i, .leg i {
  position: absolute;
  background: #343a39;
  border: 4px solid #161919;
}
.arm i { left: -6px; bottom: -11px; width: 32px; height: 27px; border-radius: 40%; }
.arm-left { left: 20px; transform: rotate(12deg); }
.arm-right { right: 8px; transform: rotate(-16deg); }
.leg { top: 186px; width: 30px; height: 61px; }
.leg i { left: -9px; bottom: -12px; width: 46px; height: 23px; }
.leg-left { left: 42px; transform: rotate(4deg); }
.leg-right { right: 22px; transform: rotate(-4deg); }

.speech {
  position: absolute;
  top: -25px;
  right: -80px;
  min-width: 125px;
  padding: 9px;
  color: #101516;
  background: var(--cream);
  border: 3px solid #171c1d;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: rotate(3deg) translateY(8px) scale(.92);
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}

.speech.is-visible {
  opacity: 1;
  visibility: visible;
  transform: rotate(3deg) translateY(0) scale(1);
  transition: opacity .28s ease, transform .28s ease;
}
.speech::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 20px;
  width: 18px;
  height: 18px;
  background: var(--cream);
  border-right: 3px solid #171c1d;
  border-bottom: 3px solid #171c1d;
  transform: rotate(45deg);
}

.cable {
  position: absolute;
  z-index: -1;
  top: -150px;
  left: 20px;
  width: 140px;
  height: 430px;
  border-left: 7px solid #101516;
  border-bottom: 7px solid #101516;
  border-radius: 0 0 0 70%;
  transform: rotate(12deg);
}

.mission-card {
  position: absolute;
  z-index: 4;
  top: 590px;
  left: var(--stage-edge);
  width: min(310px, 25vw);
  padding: 28px 20px 18px;
  color: #212322;
  background: #b7ab82;
  box-shadow: 10px 14px 0 rgba(0,0,0,.4);
  transform: rotate(2deg);
}

.contract-plate {
  position: absolute;
  z-index: 7;
  top: 220px;
  right: var(--stage-edge);
  width: min(315px, 25vw);
  padding: 18px;
  color: #a8b3b1;
  border: 2px solid #3f4b4b;
  background:
    repeating-linear-gradient(105deg, transparent 0 58px, rgba(216, 91, 36, .08) 60px 62px),
    rgba(8, 13, 14, .9);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, .45), inset 0 0 24px rgba(0, 0, 0, .55);
  transform: rotate(-1deg);
}

.contract-plate::before,
.contract-plate::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #687271;
  box-shadow: inset 2px 2px 0 #242a2a;
}

.contract-plate::before { top: 8px; left: 8px; }
.contract-plate::after { right: 8px; bottom: 8px; }
.plate-label {
  display: block;
  color: var(--cyan);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .17em;
}
.contract-plate > strong {
  display: block;
  margin: 7px 0 11px;
  color: var(--cream);
  font: 19px "Black Ops One";
}
.ca-field {
  display: grid;
  grid-template-columns: 1fr auto;
}
.ca-field input {
  min-width: 0;
  padding: 10px;
  color: var(--yellow);
  border: 1px solid #4e5a59;
  border-right: 0;
  outline: 0;
  background: #071011;
  font: 9px "Chakra Petch";
  font-weight: 800;
  letter-spacing: .06em;
}
.ca-field button {
  padding: 0 11px;
  color: #081011;
  border: 0;
  background: var(--yellow);
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}
.contract-plate small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #687372;
  font-size: 7px;
  letter-spacing: .1em;
}

.live-status {
  color: #8fdc63 !important;
  font-weight: 900;
}

.live-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green), 0 0 18px rgba(154, 209, 58, .45);
}
.tape {
  position: absolute;
  top: -12px;
  left: 25%;
  padding: 4px 25px;
  color: #3b3422;
  background: rgba(223,196,113,.75);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  transform: rotate(-2deg);
}
.mission-row {
  display: grid;
  grid-template-columns: 27px 1fr 20px;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed #6c654d;
}
.mission-row span { color: #8e3a1d; font: 17px "Black Ops One"; }
.mission-row p { margin: 0; font-size: 11px; font-weight: 800; }
.mission-row b { color: #3c5f1b; font-size: 14px; }
.level-meter { margin-top: 15px; }
.level-meter > div:first-child { display: flex; justify-content: space-between; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.meter-track { height: 9px; margin-top: 6px; background: #554f3e; box-shadow: inset 0 2px 2px #302c22; }
.meter-track i { display: block; width: 0; height: 100%; background: var(--rust); transition: width .3s; }

.backroom-tab {
  position: absolute;
  z-index: 8;
  left: min(calc(50% + 510px), calc(100% - var(--stage-edge) - 180px));
  top: 595px;
  width: 178px;
  min-height: 58px;
  padding: 11px 14px 10px 42px;
  color: var(--cyan);
  border: 2px solid #252d2e;
  background: rgba(8, 13, 14, .92);
  box-shadow: 6px 7px 0 rgba(0,0,0,.5);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: left;
  cursor: pointer;
  transform: rotate(1deg);
  transition: transform .2s, border-color .2s, filter .2s;
}
.backroom-tab span {
  position: absolute;
  left: 13px;
  top: 12px;
  font: 25px "Black Ops One";
  color: var(--yellow);
}
.backroom-tab strong,
.backroom-tab small {
  display: block;
}
.backroom-tab strong {
  white-space: nowrap;
}
.backroom-tab small {
  margin-top: 4px;
  color: #778382;
  font-size: 7px;
  letter-spacing: .08em;
}
.backroom-tab:not(.locked):hover {
  border-color: var(--cyan);
  transform: translateY(-3px) rotate(-1deg);
}
.backroom-tab.locked {
  opacity: .58;
  filter: grayscale(.85);
  cursor: not-allowed;
}

.modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 5, 6, .87);
  backdrop-filter: blur(6px);
}
.modal.hidden { display: none; }
.modal-panel {
  position: relative;
  width: min(850px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 42px;
  border: 6px solid #151a1b;
  outline: 2px solid #505958;
  background:
    repeating-linear-gradient(105deg, transparent 0 80px, rgba(214,84,31,.07) 81px 84px),
    #242b2c;
  box-shadow: 18px 22px 0 #050708, inset 0 0 45px #111;
}
.modal-panel h2 {
  margin: 8px 0 4px;
  font: clamp(38px, 5vw, 65px)/.9 "Black Ops One";
  color: var(--cream);
}
.modal-panel h2 span { color: var(--rust); }
.modal-intro { color: #899392; font-size: 13px; }
.modal-close {
  position: absolute;
  right: 16px;
  top: 13px;
  width: 38px;
  height: 38px;
  color: var(--cream);
  border: 2px solid #56605f;
  background: #171c1d;
  font-size: 25px;
  cursor: pointer;
}

.modal-pause-note {
  position: absolute;
  right: 66px;
  top: 23px;
  display: none;
  color: var(--yellow);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
  animation: blink 1.2s steps(2) infinite;
}

.modal.game-paused .modal-pause-note {
  display: block;
}
.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.upgrade-card {
  position: relative;
  min-height: 230px;
  padding: 20px;
  color: #d2d0c5;
  border: 2px solid #4a5352;
  background: #171c1d;
  text-align: left;
  cursor: pointer;
  transition: transform .18s, border-color .18s;
}

.upgrade-level {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 6px;
  color: var(--cyan);
  border: 1px solid #3d5553;
  background: #0c1213;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

.upgrade-card.maxed .upgrade-level {
  color: var(--green);
  border-color: var(--green);
}

.upgrade-card.maxed {
  border-color: var(--green);
}
.upgrade-card:hover:not(:disabled) { transform: translateY(-5px) rotate(-1deg); border-color: var(--yellow); }
.upgrade-card:disabled { opacity: .45; cursor: not-allowed; }
.upgrade-card.owned { border-color: var(--green); }
.upgrade-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 25px;
  color: var(--yellow);
  border: 3px solid #080b0c;
  background: var(--rust-dark);
  box-shadow: 5px 5px 0 #080a0a;
  font: 35px "Black Ops One";
}
.upgrade-card strong { display: block; color: var(--cream); font-size: 14px; letter-spacing: .05em; }
.upgrade-card p { min-height: 45px; color: #828c8b; font-size: 11px; line-height: 1.4; }
.upgrade-card small { color: var(--yellow); font-weight: 900; }
.inventory { margin-top: 20px; color: #8d9896; font-size: 12px; text-align: right; letter-spacing: .12em; }
.inventory strong { color: var(--yellow); font-size: 22px; }

.lore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.lore-card { padding: 14px; border: 1px solid #495251; background: #121718; transform: rotate(-1deg); }
.lore-card:nth-child(2) { transform: rotate(1deg); }
.lore-card > span { color: var(--cyan); font-size: 8px; letter-spacing: .2em; }
.lore-card h3 { margin: 12px 0 7px; color: var(--yellow); font: 18px "Black Ops One"; }
.lore-card p { color: #87918f; font-size: 11px; line-height: 1.5; }
.lore-art {
  display: grid;
  place-items: center;
  aspect-ratio: 4/3;
  margin-top: 8px;
  color: var(--rust);
  background: repeating-linear-gradient(0deg, #173237 0 2px, #0c191b 3px 5px);
  font: 55px "Black Ops One";
  text-shadow: 4px 4px 0 #000;
}
.locked-lore { filter: blur(2px) grayscale(1); user-select: none; }

.score-bay,
.repair-bay {
  position: relative;
  z-index: 5;
  min-height: 650px;
  padding: 80px 5vw 90px;
  overflow: hidden;
  border-top: 2px solid #313a3b;
  background:
    radial-gradient(circle at 85% 10%, rgba(40, 224, 220, .08), transparent 28%),
    repeating-linear-gradient(105deg, transparent 0 105px, rgba(216, 91, 36, .055) 107px 110px),
    #111718;
}

.score-bay {
  min-height: auto;
  border-top: 2px solid #1f383a;
  background:
    radial-gradient(circle at 18% 18%, rgba(242, 201, 76, .1), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(40, 224, 220, .1), transparent 30%),
    repeating-linear-gradient(105deg, transparent 0 105px, rgba(40, 224, 220, .045) 107px 110px),
    #0b1011;
}

.repair-bay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 30%, rgba(0,0,0,.35));
}

.score-bay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 38%, rgba(0,0,0,.28));
}

.section-heading {
  position: relative;
  max-width: 760px;
}
.section-heading h2 {
  margin: 10px 0 13px;
  font: clamp(44px, 6vw, 78px)/.88 "Black Ops One";
  letter-spacing: -.04em;
}
.section-heading h2 span { color: var(--rust); }
.section-heading p {
  max-width: 580px;
  color: #899391;
  font-size: 13px;
  line-height: 1.5;
}

.score-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, .9fr) minmax(330px, 1.5fr) minmax(230px, .9fr);
  gap: 16px;
  margin-top: 38px;
}

.auth-card,
.leaderboard-card,
.free-card {
  border: 2px solid #3d4747;
  background:
    repeating-linear-gradient(105deg, transparent 0 70px, rgba(216, 91, 36, .06) 72px 74px),
    #101617;
  box-shadow: 8px 10px 0 rgba(0,0,0,.35), inset 0 0 24px rgba(0,0,0,.45);
  padding: 20px;
}

.auth-card h3,
.leaderboard-card h3,
.free-card h3 {
  margin: 8px 0 10px;
  color: var(--cream);
  font: 24px/1 "Black Ops One";
  letter-spacing: -.02em;
}

.auth-card p,
.free-card p,
.leaderboard-status {
  color: #899391;
  font-size: 12px;
  line-height: 1.45;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.auth-button {
  min-width: 190px;
  color: #101516;
  border-color: #c9952f;
  background: var(--yellow);
}

.ghost-button {
  min-width: 145px;
}

.leaderboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mini-button {
  min-width: 105px;
  padding: 10px;
}

.leaderboard-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 3px 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #344343;
  background: rgba(3, 10, 11, .58);
}

.leaderboard-list li > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #101516;
  background: var(--yellow);
  font: 14px "Black Ops One";
  box-shadow: 3px 3px 0 #030505;
}

.leaderboard-list strong {
  color: var(--cream);
  font-size: 13px;
  letter-spacing: .08em;
}

.leaderboard-list small {
  color: #7f918e;
  font-size: 10px;
  letter-spacing: .08em;
}

.leaderboard-list .empty-score {
  display: block;
  color: #7f918e;
  font-size: 12px;
}

.leaderboard-status {
  margin: 14px 0 0;
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: .12em;
}

.campaign-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 42px;
}
.campaign-map::before {
  content: "";
  position: absolute;
  top: 37px;
  left: 4%;
  right: 4%;
  height: 3px;
  background: #3a4444;
}
.level-node {
  position: relative;
  z-index: 1;
  min-height: 135px;
  padding: 16px 13px;
  color: #98a3a1;
  border: 2px solid #424d4c;
  background: #171d1e;
  box-shadow: 6px 7px 0 #080b0b;
  text-align: left;
  cursor: pointer;
  transition: transform .18s, border-color .18s;
}
.level-node:hover:not(.locked) {
  border-color: var(--cyan);
  transform: translateY(-4px);
}
.level-node span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: #111;
  border-radius: 50%;
  background: var(--yellow);
  font: 19px "Black Ops One";
  box-shadow: 3px 4px 0 #090c0c;
}
.level-node strong {
  display: block;
  color: var(--cream);
  font-size: 12px;
  letter-spacing: .06em;
}
.level-node small {
  display: block;
  margin-top: 7px;
  color: #687371;
  font-size: 8px;
}
.level-node.locked {
  filter: grayscale(1);
  opacity: .4;
  cursor: not-allowed;
}
.level-node.completed {
  border-color: var(--green);
}
.level-node.completed span {
  color: #0c140b;
  background: var(--green);
}
.level-node.active {
  border-color: var(--yellow);
}

.aux-console {
  position: relative;
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  align-items: center;
  gap: 14px;
  margin-top: 42px;
  padding: 22px;
  border: 2px solid #3d4747;
  background: #0b1011;
  box-shadow: inset 0 0 28px #030505;
}
.aux-console h3 {
  margin: 5px 0 0;
  color: var(--cream);
  font: 20px "Black Ops One";
}
.aux-button {
  min-width: 145px;
  padding: 13px;
  color: #8d9997;
  border: 2px solid #3d4746;
  background: #1b2223;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
}
.aux-button i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #4b5554;
}
.aux-button.active {
  color: var(--cyan);
  border-color: var(--cyan);
}
.aux-button.active i {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

body.yard-lights .hero::before {
  background: radial-gradient(circle at 50% 43%, rgba(255, 204, 91, .13) 0 20%, rgba(0, 0, 0, .25) 65%);
}
body.crt-overdrive .screen {
  filter: saturate(1.65) contrast(1.15);
  box-shadow: inset 0 0 25px #000, 0 0 35px rgba(40,224,220,.5);
}
.sparks.spark-dump {
  opacity: 1;
  animation-duration: .8s;
  filter: brightness(2);
}

footer {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 18px 4vw;
  color: #5e6665;
  border-top: 1px solid #293031;
  background: #070a0b;
  font-size: 9px;
  letter-spacing: .13em;
}
footer strong { color: #8c4b2c; }

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 28px;
  padding: 11px 18px;
  color: #0b1112;
  background: var(--cyan);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .12em;
  transform: translate(-50%, 100px);
  transition: transform .25s;
}
.toast.show { transform: translate(-50%, 0); }

.glitch { animation: glitch .25s steps(2) 3; }
@keyframes glitch {
  25% { transform: translate(5px, -2px); filter: hue-rotate(80deg); }
  50% { transform: translate(-6px, 2px); filter: invert(.2); }
  75% { transform: translate(3px, 1px); }
}

@media (max-width: 1050px) {
  .scene-copy { width: 250px; }
  .scene-copy h1 { font-size: 56px; }
  .mission-card { top: 615px; width: 230px; }
  .cabinet-wrap { transform: translateX(-43%) scale(.9); transform-origin: top center; }
  .backroom-tab { left: auto; right: 18px; top: 650px; }
  .contract-plate { top: 310px; right: 2vw; width: 225px; }
  .campaign-map { grid-template-columns: repeat(3, 1fr); }
  .score-grid { grid-template-columns: 1fr 1fr; }
  .leaderboard-card { grid-column: 1 / -1; }
  .aux-console { grid-template-columns: 1fr; }
  .aux-button { width: 100%; }
}

@media (min-width: 1100px) and (max-width: 1950px) {
  .site-header {
    padding-left: var(--stage-edge);
    padding-right: var(--stage-edge);
  }

  .hero {
    min-height: 880px;
  }

  .scene-copy {
    top: 135px;
  }

  .scene-copy h1 {
    font-size: clamp(52px, 4.35vw, 76px);
  }

  .cabinet-wrap {
    top: 60px;
    transform: translateX(-50%) scale(.94);
    transform-origin: top center;
  }

  .mission-card {
    top: 555px;
  }

  .contract-plate {
    top: 210px;
  }

  .backroom-tab {
    top: 565px;
  }
}

@media (min-width: 2000px) {
  .site-header {
    padding-left: max(72px, calc(50vw - 900px));
    padding-right: max(72px, calc(50vw - 900px));
  }

  .hero {
    min-height: 980px;
  }

  .scene-copy {
    top: 155px;
    left: calc(50% - 830px);
    width: 380px;
  }

  .scene-copy h1 {
    font-size: 88px;
  }

  .scene-copy p {
    max-width: 345px;
    font-size: 16px;
  }

  .cabinet-wrap {
    top: 74px;
    transform: translateX(-50%) scale(1.08);
    transform-origin: top center;
  }

  .mission-card {
    top: 640px;
    left: calc(50% - 830px);
    width: 340px;
  }

  .contract-plate {
    top: 250px;
    right: calc(50% - 900px);
    width: 340px;
  }

  .backroom-tab {
    top: 645px;
    left: calc(50% + 560px);
  }
}

@media (max-width: 820px) {
  .hero { min-height: 1260px; background-position: 58% top; }
  .site-header { position: absolute; padding: 18px; }
  .brand-title { font-size: 22px; }
  .scene-copy {
    top: 110px;
    left: 22px;
    width: calc(100% - 44px);
    text-align: center;
  }
  .scene-copy h1 { font-size: clamp(45px, 14vw, 75px); }
  .scene-copy p { margin: auto; }
  .header-panel { gap: 5px; }
  .live-stats { flex-direction: column; align-items: flex-end; gap: 3px; }
  .live-stats span { padding: 4px 6px; font-size: 7px; }
  .contract-plate {
    top: 315px;
    left: 50%;
    right: auto;
    width: min(340px, 88vw);
    transform: translateX(-50%);
  }
  .cabinet-wrap {
    top: 500px;
    left: 50%;
    transform: translateX(-50%) scale(.83);
  }
  .junkbot-character {
    right: -205px;
    width: 350px;
    height: 350px;
  }
  .mission-card {
    top: auto;
    bottom: 35px;
    left: 50%;
    width: min(330px, 85vw);
    transform: translateX(-50%) rotate(1deg);
  }
  .backroom-tab {
    left: 50%;
    right: auto;
    top: 1055px;
    transform: translateX(-50%);
  }
  .backroom-tab:not(.locked):hover {
    transform: translateX(-50%) translateY(-3px);
  }
  .upgrade-grid, .lore-grid { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr; }
  .leaderboard-head { flex-direction: column; }
  .repair-bay { padding: 60px 24px; }
  .campaign-map { grid-template-columns: 1fr; }
  .campaign-map::before { display: none; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 520px) {
  .ticker { font-size: 11px; }
  .brand-kicker { display: none; }
  .hero { min-height: 1260px; }
  .scene-copy { top: 92px; }
  .scene-copy h1 { margin-top: 8px; }
  .status-strip { font-size: 7px; }
  .contract-plate { top: 300px; }
  .cabinet-wrap {
    top: 475px;
    transform: translateX(-50%) scale(.63);
  }
  .backroom-tab { top: 900px; }
  .mission-card { bottom: 30px; }
  .modal-panel { padding: 35px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
