:root {
  --black: #0D0D0D;
  --black2: #080808;
  --paper: #F2EDE4;
  --paper2: #EDE6D8;
  --red: #E10600;
  --cyan: #00E5FF;
  --grey: rgba(242,237,228,0.58);
  --line: rgba(242,237,228,0.16);
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pixel: 'Press Start 2P', ui-monospace, monospace;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --six: 'Six Caps', Impact, sans-serif;
  --vt: 'VT323', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
}
button, a, input { cursor: none; }
a { color: var(--cyan); }
::selection { background: var(--red); color: var(--paper); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
  opacity: 0.04;
  background-image: radial-gradient(rgba(242,237,228,0.35) 0.7px, transparent 0.8px);
  background-size: 4px 4px;
}

body::after {
  content: "";
  position: fixed;
  inset: -90px;
  z-index: 1501;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(2) infinite;
}

@keyframes grain { 0% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-20px,11px,0); } 100% { transform: translate3d(14px,-9px,0); } }
@keyframes blink { 0%,55% { opacity: 1; } 56%,100% { opacity: 0; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(225,6,0,0); } 50% { box-shadow: 0 0 26px 3px rgba(225,6,0,.7); } }
@keyframes marqL { to { transform: translateX(-50%); } }
@keyframes marqR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 8% { opacity: .82; } 9% { opacity: .28; } 10% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: .36; } 49% { opacity: .95; } 73% { opacity: .72; } 74% { opacity: 1; } }
@keyframes glitchA { 0%,100% { transform: translate(0,0); clip-path: inset(0 0 0 0); } 16% { transform: translate(5px,-2px); clip-path: inset(12% 0 63% 0); } 17% { transform: translate(0,0); clip-path: inset(0 0 0 0); } 51% { transform: translate(-6px,2px); clip-path: inset(69% 0 14% 0); } 52% { transform: translate(0,0); clip-path: inset(0 0 0 0); } }
@keyframes glitchB { 0%,100% { transform: translate(0,0); clip-path: inset(0 0 0 0); } 27% { transform: translate(-4px,1px); clip-path: inset(35% 0 40% 0); } 28% { transform: translate(0,0); clip-path: inset(0 0 0 0); } 68% { transform: translate(4px,-1px); clip-path: inset(5% 0 78% 0); } 69% { transform: translate(0,0); clip-path: inset(0 0 0 0); } }

.site {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,229,255,.05), transparent 24%),
    radial-gradient(circle at 78% 10%, rgba(225,6,0,.035), transparent 22%),
    radial-gradient(rgba(242,237,228,.05) 1px, transparent 1.4px) 0 0 / 8px 8px,
    var(--black);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.scanlines {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px);
  opacity: 0.85;
}
.hero-sign {
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  z-index: 0;
  text-align: center;
  pointer-events: none;
}
.sign {
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--vt);
  font-size: clamp(70px, 10.5vw, 168px);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.sign-red { color: var(--red); animation: glitchA 2.4s linear infinite; }
.sign-cream { color: var(--paper); animation: glitchB 3.1s linear infinite; }
.sign-cyan { position: relative; display: inline-block; color: var(--cyan); text-shadow: 0 0 18px rgba(0,229,255,.75), 0 0 60px rgba(0,229,255,.45); animation: flicker 5s linear infinite; }
.sign-sub { margin: 8px 0 0; font-family: var(--pixel); font-size: 9px; letter-spacing: .5em; color: rgba(242,237,228,.45); }

.topbar {
  position: relative;
  z-index: 6;
  height: 46px;
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 0 44px;
  border-bottom: 1px solid rgba(242,237,228,.08);
  font-family: var(--pixel);
  font-size: 9px;
  color: rgba(242,237,228,.7);
}
.topbar > span:first-child { color: var(--cyan); }
.live-dot { display: flex; align-items: center; gap: 10px; justify-self: end; }
.live-dot i { width: 8px; height: 8px; background: var(--red); display: inline-block; animation: blink 1.2s steps(1) infinite; }
.tiny-button {
  text-decoration: none;
  color: var(--paper);
  font: 9px var(--pixel);
  background: rgba(10,10,10,.7);
  border: 1px solid rgba(242,237,228,.28);
  padding: 10px 14px;
}
.tiny-button:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-layout {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 34px;
  padding: 120px 44px 12px;
  min-height: 690px;
}
.hero-portrait-shell {
  flex: 1.1;
  position: relative;
  min-height: 500px;
}
.splat {
  position: absolute;
  top: 4%; left: 8%;
  width: 70%; height: 82%;
  opacity: .85;
  background-image:
    radial-gradient(circle at 48% 46%, var(--red) 0 33%, transparent 34%),
    radial-gradient(circle at 76% 28%, var(--red) 0 11%, transparent 12%),
    radial-gradient(circle at 22% 66%, var(--red) 0 13%, transparent 14%),
    radial-gradient(circle at 84% 62%, var(--red) 0 8%, transparent 9%),
    radial-gradient(circle at 30% 20%, var(--red) 0 9%, transparent 10%),
    radial-gradient(circle at 64% 84%, var(--red) 0 7%, transparent 8%),
    radial-gradient(circle at 6% 38%, var(--red) 0 5%, transparent 6%),
    radial-gradient(circle at 94% 44%, var(--red) 0 4%, transparent 5%);
}
.hero-portrait {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 96%;
  width: auto;
  max-width: none;
  filter: contrast(1.05);
  transform-origin: bottom center;
}
.hero-portrait-shell.layout-bossTower .hero-portrait { height: 100%; }
.hero-portrait-shell.layout-floatingSticker .hero-portrait { height: 96%; }
.hero-caption {
  position: absolute;
  left: 4px;
  bottom: 10px;
  right: 4px;
  text-transform: uppercase;
}
.hero-caption p:first-child {
  margin: 0 0 8px;
  font: 9px var(--pixel);
  letter-spacing: .2em;
  color: var(--cyan);
}
.hero-caption h1 {
  margin: 0;
  font: 400 clamp(58px, 6.2vw, 92px)/.92 var(--display);
  color: var(--paper);
  text-shadow: 6px 6px 0 var(--red);
}
.hero-caption p:last-child {
  margin: 12px 0 0;
  font: 8px var(--pixel);
  letter-spacing: .18em;
  color: var(--red);
}

.control-panel {
  width: 470px;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}
.panel-head, .drop-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
}
.panel-head span, .drop-head span { font-family: var(--pixel); }
.panel-head span:first-child { font-size: 10px; color: var(--paper); }
.panel-head span:last-child { font-size: 9px; color: var(--cyan); }
.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}
.roster-slot {
  aspect-ratio: 3/4;
  padding: 0;
  border: 1px solid rgba(242,237,228,.25);
  background: #101010;
  position: relative;
  overflow: hidden;
  color: var(--paper);
}
.roster-slot.active {
  border: 3px solid var(--red);
  animation: pulse 1.7s ease-in-out infinite;
}
.roster-slot img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%;
  image-rendering: pixelated;
  filter: grayscale(1) brightness(.65);
  transform: scale(1.01);
}
.roster-slot.active img { filter: none; }
.roster-slot small,
.locked-slot small {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(6,6,6,.88);
  color: var(--paper);
  font: 6.5px var(--pixel);
  letter-spacing: .06em;
  padding: 6px 2px;
  text-align: center;
}
.locked-slot {
  aspect-ratio: 3/4;
  border: 1px dashed rgba(242,237,228,.25);
  background:
    linear-gradient(90deg, transparent, rgba(0,229,255,.12), transparent),
    radial-gradient(circle at 50% 30%, rgba(242,237,228,.12), transparent 35%),
    #101010;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.locked-slot::before {
  content: "?";
  font: 26px var(--pixel);
  color: rgba(242,237,228,.2);
  filter: blur(1px);
}
.locked-slot small { color: rgba(242,237,228,.32); font-size: 5.5px; line-height: 1.4; }

.drop-panel {
  border: 1px solid rgba(242,237,228,.25);
  background: rgba(10,10,10,.72);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.drop-head span:first-child { font-size: 8px; color: var(--red); }
.drop-head span:last-child { font-size: 7px; color: var(--cyan); }
.panel-copy {
  margin: 0;
  font: 9px/1.7 var(--pixel);
  color: rgba(242,237,228,.52);
  letter-spacing: .08em;
}
.build-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.build-row > div {
  border: 1px solid rgba(242,237,228,.18);
  padding: 10px 10px 9px;
  min-height: 76px;
}
.build-row b, .receipt-kicker, .meter-title b {
  display: block;
  color: var(--cyan);
  font: 7px var(--pixel);
  letter-spacing: .18em;
  margin-bottom: 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 5px 7px;
  border: 1px solid rgba(242,237,228,.32);
  font: 7px var(--pixel);
  color: var(--paper);
  background: rgba(242,237,228,.05);
}
.chips-red .chip { color: var(--red); border-color: var(--red); background: rgba(225,6,0,.08); }
.build-row small { display: block; margin-top: 8px; font-size: 10px; color: rgba(242,237,228,.54); }

.meters { display: flex; flex-direction: column; gap: 12px; }
.meter-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}
.meter-title b { margin: 0; color: var(--paper); }
.meter-title span { font: 7px var(--pixel); color: var(--cyan); }
.cartridge {
  position: relative;
  height: 30px;
  border: 1px solid rgba(242,237,228,.45);
  background: #141414;
  overflow: hidden;
  touch-action: none;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.45);
}
.cartridge::after {
  content: "PSSSH";
  position: absolute;
  right: 7px; top: 50%;
  transform: translateY(-50%);
  font: 6px var(--pixel);
  color: rgba(242,237,228,.35);
  z-index: 3;
}
.cartridge-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 50%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 5px, transparent 5px 10px),
    linear-gradient(90deg, var(--red), rgba(0,229,255,.78));
  transition: width .08s linear;
}
.cartridge-handle {
  position: absolute;
  top: -3px;
  width: 12px;
  height: 34px;
  transform: translateX(-6px);
  background: var(--paper);
  border: 3px solid var(--black);
  box-shadow: 0 0 0 2px var(--red);
  z-index: 4;
  transition: left .08s linear;
}
.stage-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin-top: 6px;
  font: 5.8px var(--pixel);
  color: rgba(242,237,228,.46);
  text-align: center;
}
.stage-labels span.active { color: var(--red); }
.meter-hint { margin: 6px 0 0; font-size: 10px; line-height: 1.5; color: rgba(242,237,228,.48); }
.receipt {
  border: 1px solid rgba(225,6,0,.7);
  padding: 11px 12px;
  background: rgba(225,6,0,.04);
}
.receipt h2 {
  margin: 0 0 7px;
  font: 28px/.9 var(--display);
  color: var(--paper);
}
.receipt p { margin: 0 0 7px; font-size: 11px; line-height: 1.45; color: rgba(242,237,228,.75); }
.receipt p:nth-of-type(2) { color: var(--red); font-size: 13px; }
.receipt p:nth-of-type(3) { color: rgba(242,237,228,.55); }
.outline-button {
  color: var(--paper); background: transparent; border: 1px solid rgba(242,237,228,.4);
  font: 7px var(--pixel); padding: 9px 11px;
}
.outline-button:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-footer {
  position: relative;
  z-index: 6;
  height: 58px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 44px;
  border-top: 1px solid rgba(242,237,228,.14);
  font-size: 10px;
  letter-spacing: .2em;
  color: rgba(242,237,228,.5);
}
.press-start {
  font-family: var(--pixel);
  color: var(--paper);
  animation: blink 1.1s steps(1) infinite;
}
.coin-slot { display: flex; align-items: center; gap: 14px; letter-spacing: 0; }
.coin-slot b { font: 9px var(--pixel); color: var(--cyan); }
.coin-button {
  font: 9px var(--pixel);
  color: var(--paper);
  background: var(--red);
  border: none;
  padding: 12px 15px;
  text-decoration: none;
  animation: pulse 1.8s ease-in-out infinite;
}

.ticker-wall { border-bottom: 1px solid rgba(242,237,228,.14); overflow: hidden; }
.ticker-row {
  height: 96px;
  overflow: hidden;
  border-bottom: 1px solid rgba(242,237,228,.1);
  display: flex;
  width: max-content;
  min-width: 200%;
  animation: marqL 16s linear infinite;
}
.ticker-row.reverse { animation: marqR 19s linear infinite; }
.ticker-row > div { display: flex; align-items: center; gap: 30px; padding-right: 30px; white-space: nowrap; }
.ticker-row span { font-family: var(--six); font-size: 90px; line-height: 96px; }
.ticker-row b { font-size: 46px; color: var(--red); }
.row-cream { color: var(--paper); }
.row-stroke span { color: rgba(242,237,228,.07); -webkit-text-stroke: 2px var(--paper); }
.row-red { background: var(--red); color: var(--black); animation-duration: 13s; }
.row-red b { color: var(--paper); }
.row-small { height: 42px; background: var(--black2); animation-duration: 24s; }
.row-small span { font-family: var(--pixel); font-size: 9px; line-height: 42px; color: var(--cyan); letter-spacing: .22em; }

.ops-section {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 54px;
  padding: 58px 44px 72px;
  min-height: 720px;
  background:
    linear-gradient(rgba(0,229,255,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.13) 1px, transparent 1px),
    var(--black2);
  background-size: 48px 48px;
  border-bottom: 1px solid rgba(242,237,228,.16);
}
.corner { position: absolute; width: 42px; height: 42px; border-color: var(--cyan); opacity: .9; }
.corner.tl { left: 0; top: 0; border-left: 2px solid; border-top: 2px solid; }
.corner.tr { right: 0; top: 0; border-right: 2px solid; border-top: 2px solid; }
.corner.bl { left: 0; bottom: 0; border-left: 2px solid; border-bottom: 2px solid; }
.corner.br { right: 0; bottom: 0; border-right: 2px solid; border-bottom: 2px solid; }
.section-kicker {
  margin: 0 0 28px;
  font: 10px var(--pixel);
  letter-spacing: .24em;
  color: var(--cyan);
}
.tear-help {
  color: rgba(242,237,228,.65);
  background: transparent;
  border: 0;
  padding: 0;
  font: 10px var(--pixel);
  letter-spacing: .2em;
  margin-bottom: 28px;
}
.paper-stack {
  position: relative;
  height: 520px;
}
.paper {
  position: absolute;
  left: 0;
  top: 0;
  width: min(560px, 100%);
  height: 430px;
  padding: 50px 52px;
  background:
    radial-gradient(rgba(13,13,13,.11) 1px, transparent 1.2px) 0 0 / 9px 9px,
    var(--paper);
  color: #050505;
  box-shadow: 20px 20px 0 var(--red), 0 22px 50px rgba(0,0,0,.55);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
  transform-origin: 20% 15%;
}
.paper::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 38px;
  background: linear-gradient(135deg, transparent 0 18px, var(--black2) 18px 36px, transparent 36px) 0 0 / 54px 38px repeat-x;
}
.paper.p1 { transform: translate(0,0) rotate(-1.6deg); z-index: 3; }
.paper.p2 { transform: translate(10px,8px) rotate(2deg); z-index: 2; }
.paper.p3 { transform: translate(-8px,14px) rotate(-.8deg); z-index: 1; }
.paper.torn { transform: translate(70%,115%) rotate(29deg); opacity: 0; }
.paper p:first-child { margin: 0 0 22px; font: 9px var(--pixel); color: var(--red); letter-spacing: .24em; }
.paper h2 { margin: 0 0 22px; font: 58px/.88 var(--display); letter-spacing: .01em; }
.paper p { font: 14px/1.75 var(--mono); max-width: 420px; }
.paper strong {
  display: inline-block;
  margin-top: 12px;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 8px 12px;
  font: 11px var(--pixel);
  transform: rotate(-7deg);
}
.tear-label { margin: 0; text-align: center; font: 8px var(--pixel); letter-spacing: .22em; color: rgba(242,237,228,.35); }
.ops-right { position: relative; padding-top: 72px; }
.rec { position: absolute; right: 0; top: 0; margin: 0; color: var(--red); font: 9px var(--pixel); letter-spacing: .16em; }
.ops-right h2 { margin: 0 0 20px; font: 58px/.88 var(--display); }
.ops-right h2 span { color: var(--red); }
.ops-copy { margin: 0 0 28px; max-width: 640px; color: rgba(242,237,228,.6); font-size: 13px; line-height: 1.95; letter-spacing: .04em; }
.cycle-feed-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 24px; }
.cycle-card, .live-feed {
  border: 1px solid rgba(242,237,228,.25);
  background: rgba(10,10,10,.72);
  padding: 20px;
}
.cycle-card p:first-child { margin: 0 0 8px; font: 9px var(--pixel); color: var(--cyan); letter-spacing: .24em; }
.cycle-card h3 { margin: 0; font: 52px/.88 var(--display); }
.cycle-card h4 { margin: 3px 0 18px; font: 32px/.9 var(--display); color: var(--paper); }
.cycle-card > p:not(:first-child) { color: var(--red); font-size: 16px; line-height: 1.35; }
dl { display: grid; gap: 10px; margin: 18px 0 0; }
dl div { border: 1px solid rgba(242,237,228,.18); padding: 12px; }
dt { font: 7px var(--pixel); color: rgba(242,237,228,.55); margin-bottom: 8px; }
dd { margin: 0; font: 10px var(--pixel); color: var(--paper); }
.feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.feed-head span { font: 10px var(--pixel); letter-spacing: .18em; }
.feed-head button { background: transparent; color: var(--paper); border: 1px solid rgba(242,237,228,.28); font: 7px var(--pixel); padding: 8px 10px; }
.feed-list { display: grid; gap: 8px; max-height: 340px; overflow: auto; }
.feed-item { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: baseline; padding: 10px 12px; background: rgba(242,237,228,.055); border-left: 4px solid var(--cyan); font-size: 11px; line-height: 1.45; }
.feed-item.server { border-left-color: var(--red); }
.feed-item b { font-family: var(--pixel); font-size: 7px; color: var(--paper); }
.feed-item span { color: rgba(242,237,228,.68); }

.palette-section {
  display: grid;
  grid-template-columns: .9fr .85fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: 74px 44px;
  background: #090909;
  border-bottom: 1px solid rgba(242,237,228,.16);
}
.palette-copy h2 { margin: 0 0 22px; font: 60px/.85 var(--display); }
.palette-copy p:not(.section-kicker) { margin: 0; color: rgba(242,237,228,.6); line-height: 1.7; }
.wheel-wrap { display: flex; justify-content: center; }
.color-wheel {
  width: min(360px, 38vw);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(#E10600, #F07B18, #D9C72F, #39B54A, #00B9D0, #283C9A, #5B3A86, #D4145A, #E10600);
  box-shadow: inset 0 0 0 44px rgba(242,237,228,.18), inset 0 0 0 90px rgba(242,237,228,.18), 0 0 60px rgba(0,0,0,.5);
  overflow: hidden;
}
.color-wheel::after {
  content: "";
  position: absolute;
  inset: 37%;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid rgba(13,13,13,.22);
}
.color-wheel span { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; color: var(--black); font: 11px var(--pixel); }
.palette-list { display: grid; gap: 10px; }
.palette-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(242,237,228,.2);
  background: rgba(10,10,10,.6);
  padding: 12px;
}
.palette-item.active { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.swatches { display: flex; gap: 5px; }
.swatches i { width: 22px; height: 30px; display: block; border: 1px solid rgba(242,237,228,.25); }
.palette-item b { font: 8px var(--pixel); color: var(--paper); }
.palette-item small { color: rgba(242,237,228,.5); }
.palette-item button { color: var(--red); background: transparent; border: 0; font: 7px var(--pixel); }
.palette-item.active button { color: var(--red); }
.palette-item.locked { opacity: .48; }

.drop-archive {
  padding: 74px 44px;
  background: var(--black);
  border-bottom: 1px solid rgba(242,237,228,.16);
}
.archive-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 24px; }
.archive-head h2 { margin: 0; font: 56px/.9 var(--display); }
.archive-head span { font: 18px var(--pixel); color: var(--red); }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.archive-card { border: 1px solid rgba(242,237,228,.22); padding: 18px; min-height: 190px; background: rgba(242,237,228,.04); }
.archive-card p:first-child { color: var(--cyan); font: 8px var(--pixel); letter-spacing: .18em; margin: 0 0 12px; }
.archive-card h3 { margin: 0 0 6px; font: 32px/.9 var(--display); }
.archive-card b { color: var(--red); font: 9px var(--pixel); }
.archive-card p { color: rgba(242,237,228,.65); font-size: 12px; line-height: 1.55; }
.archive-empty { border: 1px dashed rgba(242,237,228,.24); padding: 24px; color: rgba(242,237,228,.55); }

.faq-section {
  position: relative;
  background: var(--paper);
  color: var(--black);
  padding: 54px 44px 70px 175px;
}
.faq-marker {
  position: absolute;
  left: 30px;
  top: 62px;
  font: 110px/.8 var(--display);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--black);
}
.faq-marker::before {
  content: "";
  position: absolute;
  top: -18px; left: 8px;
  width: 110px; height: 12px;
  background: var(--red);
  box-shadow: 0 24px 0 var(--red);
}
.faq-kicker { margin: 0 0 20px; font: 9px var(--pixel); letter-spacing: .24em; color: rgba(13,13,13,.55); }
.faq-row { border-top: 3px solid var(--black); }
.faq-row:last-child { border-bottom: 3px solid var(--black); }
.faq-question {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr 30px;
  gap: 16px;
  align-items: center;
  padding: 18px 8px;
  color: var(--black);
  background: transparent;
  border: 0;
  text-align: left;
}
.faq-question span:first-child { font: 10px var(--pixel); }
.faq-question strong { font: 24px var(--display); letter-spacing: .02em; }
.faq-question span:last-child { font: 13px var(--pixel); color: var(--red); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .36s ease; }
.faq-answer p { margin: 0; padding: 0 8px 22px 72px; color: rgba(13,13,13,.75); font-size: 13px; line-height: 1.7; max-width: 800px; }
.faq-row.open .faq-answer { max-height: 180px; }

.site-footer {
  background: var(--black2);
  padding: 24px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font: 8px var(--pixel);
  color: rgba(242,237,228,.55);
}
.site-footer span:first-child { color: var(--paper); }
.site-footer span:last-child { color: var(--cyan); }

#monoOverlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  backdrop-filter: grayscale(1) contrast(1.06);
  -webkit-backdrop-filter: grayscale(1) contrast(1.06);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  display: block;
}
.paint-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(8,8,8,.92);
  border: 1px solid rgba(242,237,228,.3);
  padding: 10px 12px;
  color: var(--paper);
  box-shadow: 0 0 25px rgba(0,0,0,.35);
}
.paint-dock span:first-child { font: 7px var(--pixel); color: var(--cyan); }
.paint-dock button {
  font: 7px var(--pixel);
  color: var(--paper);
  background: #1A1A1A;
  border: 1px solid rgba(242,237,228,.35);
  padding: 7px 9px;
}
.paint-dock button:hover { border-color: var(--cyan); }
.paint-dock span:last-child { font: 7px var(--pixel); color: rgba(242,237,228,.6); }
#mobilePaintToggle { display: none; }

#pssshCursor {
  position: fixed;
  top: 0; left: 0;
  width: 74px;
  height: 74px;
  z-index: 1600;
  pointer-events: none;
  opacity: 0;
  transform: translate(-100px,-100px);
  transition: opacity .15s ease;
}
#pssshCursor i {
  position: absolute;
  left: 16px; top: 28px;
  width: 14px; height: 34px;
  background: var(--cyan);
  box-shadow: 4px 0 0 #F2EDE4, 8px -8px 0 var(--red), 12px -9px 0 var(--red), -6px 7px 0 var(--cyan);
  transform: rotate(73deg);
}
#pssshCursor i::before {
  content: "";
  position: absolute;
  left: -8px; top: -5px;
  width: 18px; height: 5px;
  background: var(--paper);
}
#pssshCursor span {
  position: absolute;
  left: 38px; top: 4px;
  font: 7px var(--pixel);
  letter-spacing: .08em;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .hero-layout { flex-direction: column; padding: 104px 24px 12px; min-height: 0; }
  .control-panel { width: 100%; }
  .hero-portrait-shell { min-height: 660px; }
  .ops-section, .palette-section { grid-template-columns: 1fr; }
  .cycle-feed-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { cursor: auto; }
  button, a, input { cursor: pointer; }
  #pssshCursor { display: none; }
  .topbar { grid-template-columns: 1fr auto; padding: 0 18px; gap: 10px; }
  .topbar .tiny-button:nth-of-type(1), .topbar .tiny-button:nth-of-type(2) { display: none; }
  .hero-sign { top: 46px; }
  .sign { font-size: 54px; }
  .sign-sub { font-size: 6px; letter-spacing: .24em; }
  .hero-layout { padding: 105px 18px 8px; gap: 20px; }
  .hero-portrait-shell { min-height: 430px; order: 1; }
  .control-panel { order: 0; }
  .roster-grid { grid-template-columns: repeat(6, minmax(92px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
  .roster-slot, .locked-slot { width: 92px; }
  .hero-portrait { height: 92%; }
  .hero-caption h1 { font-size: 56px; }
  .build-row { grid-template-columns: 1fr; }
  .hero-footer { padding: 0 18px; height: auto; min-height: 58px; flex-wrap: wrap; justify-content: center; text-align: center; font-size: 9px; }
  .hero-footer > span:nth-child(2) { display: none; }
  .ticker-row { height: 66px; }
  .ticker-row span { font-size: 62px; line-height: 66px; }
  .ticker-row b { font-size: 32px; }
  .row-small { height: 34px; }
  .row-small span { font-size: 7px; line-height: 34px; }
  .ops-section { padding: 44px 18px 56px; gap: 30px; }
  .paper-stack { height: 430px; }
  .paper { height: 350px; padding: 34px 28px; }
  .paper h2 { font-size: 42px; }
  .ops-right { padding-top: 20px; }
  .ops-right h2 { font-size: 46px; }
  .palette-section, .drop-archive { padding: 52px 18px; }
  .palette-copy h2, .archive-head h2 { font-size: 44px; }
  .color-wheel { width: 250px; }
  .archive-grid { grid-template-columns: 1fr; }
  .faq-section { padding: 44px 18px 58px 68px; }
  .faq-marker { left: 14px; top: 58px; font-size: 56px; }
  .faq-question { grid-template-columns: 32px 1fr 24px; gap: 9px; }
  .faq-question strong { font-size: 20px; }
  .faq-answer p { padding-left: 0; }
  .paint-dock { left: 10px; right: 10px; bottom: 10px; justify-content: center; flex-wrap: wrap; }
  #canToggle { display: none; }
  #mobilePaintToggle { display: inline-block; }
}

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