/* ================= OOPSIGNAL / $OSIG ================= */
@property --hole { syntax: '<length>'; inherits: false; initial-value: 0px; }

:root {
  --red: #ff1a0d;
  --red-hot: #ff4a26;
  --red-deep: #b30000;
  --blood: #4a0000;
  --ink: #050202;
  --panel: rgba(18, 5, 4, .72);
  --panel-solid: #120504;
  --line: rgba(255, 40, 20, .22);
  --line-hot: rgba(255, 40, 20, .6);
  --white: #f7f2ec;
  --muted: #b8a6a1;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --glow: 0 0 24px rgba(255, 26, 13, .55);
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

/* ---------- background ---------- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; display: block; }
body.no-gl #bg { display: none; }
body.no-gl {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 26, 13, .28), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(120, 0, 0, .35), transparent 50%),
    var(--ink);
  background-attachment: fixed;
}
.scanlines {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 3px);
}

.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 10px var(--red), 0 0 2px #fff inset;
  animation: blink 1s steps(2, jump-none) infinite;
  flex: none;
}
@keyframes blink { 50% { opacity: .25; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  border: 0; cursor: pointer; padding: 16px 28px; font-size: 14px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-red {
  background: var(--red); color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 10px 40px rgba(255, 26, 13, .45);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-red:hover { background: var(--red-hot); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 10px 60px rgba(255, 26, 13, .7); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--white); border-color: var(--line-hot); }
.btn-sm { padding: 11px 16px; font-size: 12px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- portal intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; text-align: center;
  background: #030000; overflow: hidden;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1px));
          mask: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1px));
}
.intro::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent var(--hole), rgba(255, 60, 30, .95) calc(var(--hole) + 2px), transparent calc(var(--hole) + 60px));
  opacity: 0;
}
.intro.open { animation: portal 1.05s cubic-bezier(.75, 0, .2, 1) forwards; pointer-events: none; }
.intro.open::after { opacity: 1; animation: portal 1.05s cubic-bezier(.75, 0, .2, 1) forwards; }
@keyframes portal { 0% { --hole: 0px; } 85% { opacity: 1; } 100% { --hole: 150vmax; opacity: 0; } }

.intro-beam {
  position: absolute; width: 220vmax; height: 220vmax; left: 50%; top: 50%;
  margin: -110vmax 0 0 -110vmax;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(255, 26, 13, .0) 66%, rgba(255, 26, 13, .55) 74%, transparent 80%,
                                      transparent 0 12%, rgba(255, 26, 13, .35) 24%, transparent 30%);
  animation: spin 2.2s linear infinite;
  filter: blur(24px);
}
.intro-inner { position: relative; padding: 24px; display: grid; justify-items: center; gap: 18px; }
.intro-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .3em; color: var(--red-hot);
}
.intro h1 { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 15vw, 210px); line-height: .85; letter-spacing: .01em; text-shadow: 0 0 60px rgba(255, 26, 13, .8); }
.intro-slogan { font-family: var(--mono); font-weight: 800; letter-spacing: .14em; font-size: clamp(12px, 1.6vw, 16px); }
.intro small { font-family: var(--mono); color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* glitch title */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
}
.glitch::before { color: var(--red); transform: translate(-4px, 0); clip-path: inset(0 0 60% 0); animation: g1 2.6s infinite steps(1); mix-blend-mode: screen; }
.glitch::after { color: #fff; transform: translate(4px, 0); clip-path: inset(62% 0 0 0); animation: g2 3.1s infinite steps(1); opacity: .7; }
@keyframes g1 { 0%, 88%, 100% { transform: translate(0); clip-path: inset(0 0 100% 0); } 90% { transform: translate(-6px, 2px); clip-path: inset(10% 0 55% 0); } 94% { transform: translate(5px, -2px); clip-path: inset(40% 0 30% 0); } }
@keyframes g2 { 0%, 84%, 100% { transform: translate(0); clip-path: inset(100% 0 0 0); } 86% { transform: translate(6px, 0); clip-path: inset(60% 0 10% 0); } 91% { transform: translate(-4px, 1px); clip-path: inset(20% 0 65% 0); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(5, 2, 2, .92), rgba(5, 2, 2, .7));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--red), var(--glow); }
.brand span { font-family: var(--display); font-size: 24px; letter-spacing: .03em; }
.brand b { font-family: var(--mono); font-size: 12px; color: var(--red-hot); padding: 3px 7px; border: 1px solid var(--line-hot); }
.nav nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav nav a { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--white); }
.nav-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 800; font-size: 12px; letter-spacing: .12em;
  padding: 9px 14px; border: 1px solid var(--line-hot); background: rgba(255, 26, 13, .08);
}
.nav-chip:hover { background: rgba(255, 26, 13, .2); }

/* ---------- ticker ---------- */
.ticker { display: flex; height: 40px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .65); overflow: hidden; position: relative; z-index: 2; }
.ticker-label {
  flex: none; display: grid; place-items: center; padding: 0 16px 0 clamp(16px, 4vw, 64px);
  background: var(--red); color: #fff; font-family: var(--display); font-size: 18px; letter-spacing: .08em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); padding-right: 28px;
}
.ticker-track { flex: 1; overflow: hidden; display: flex; align-items: center;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: flex; align-items: center; white-space: nowrap; animation: tick 48s linear infinite; font-family: var(--mono); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.ticker-move span { padding: 0 22px; }
.ticker-move i { color: var(--red); font-style: normal; font-size: 9px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections common ---------- */
main { position: relative; z-index: 1; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 800; font-size: 12px; letter-spacing: .26em; color: var(--red-hot);
  text-transform: uppercase;
}
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-head h2, .dossier-body h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 88px); line-height: .92; letter-spacing: .01em;
}
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- game ---------- */
.game {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(340px, 1.3fr) minmax(290px, 1fr);
  gap: clamp(20px, 2.5vw, 44px);
  align-items: center;
  max-width: 1640px; margin: 0 auto;
  overflow-x: clip;
  min-height: calc(100svh - var(--nav-h) - 40px);
  padding: clamp(24px, 3vw, 48px) clamp(16px, 4vw, 64px) clamp(48px, 5vw, 80px);
}
.game-left { display: grid; gap: 22px; align-content: center; }
.title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 7.6vw, 140px); line-height: .84; letter-spacing: .005em;
}
.title span { display: block; color: var(--red); text-shadow: 0 0 40px rgba(255, 26, 13, .65); }
.slogan { font-family: var(--mono); font-weight: 800; font-size: clamp(12px, 1vw, 15px); letter-spacing: .14em; color: var(--white); border-left: 3px solid var(--red); padding-left: 12px; }

.score-card {
  position: relative; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.score-card::before { content: ''; position: absolute; left: -1px; top: -1px; width: 40px; height: 3px; background: var(--red); box-shadow: var(--glow); }
.score-label { font-family: var(--mono); font-size: 12px; letter-spacing: .24em; color: var(--muted); }
.score { font-family: var(--display); font-size: clamp(54px, 5.4vw, 92px); line-height: 1; letter-spacing: .01em; margin: 6px 0 10px; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(255, 26, 13, .35); overflow-wrap: anywhere; }
.score-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.score-sub b { color: var(--white); }

.threat { display: grid; gap: 8px; }
.threat-head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--muted); }
.threat-head b { color: var(--red-hot); text-align: right; }
.threat-bar, .panic-bar { height: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); overflow: hidden; }
.threat-bar i, .panic-bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: repeating-linear-gradient(-45deg, var(--red) 0 8px, var(--red-deep) 8px 16px); box-shadow: var(--glow); transition: transform .25s ease; }
.threat-next { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* stage */
.game-center { display: grid; justify-items: center; gap: 18px; }
.stage { position: relative; width: min(100%, 620px); aspect-ratio: 1; }
.beam {
  position: absolute; inset: -22%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 290deg, rgba(255, 40, 20, .6) 345deg, transparent 360deg),
              conic-gradient(from 180deg, transparent 0deg, transparent 300deg, rgba(255, 40, 20, .35) 350deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%);
          mask: radial-gradient(circle, #000 18%, transparent 68%);
  animation: spin 3.2s linear infinite;
  mix-blend-mode: screen;
}
body.red-alert .beam { animation-duration: .7s; }
.halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 26, 13, .45), transparent 65%); filter: blur(10px); animation: halo 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes halo { 50% { opacity: .55; transform: scale(.94); } }

.stage-score { display: none; }
@media (max-width: 820px) {
  .stage-score {
    display: flex; align-items: baseline; gap: 8px; position: absolute; z-index: 3; left: 50%; top: 0;
    transform: translate(-50%, -30%); pointer-events: none; white-space: nowrap;
    background: rgba(8, 1, 1, .78); border: 1px solid var(--line-hot); padding: 4px 14px;
    box-shadow: 0 0 24px rgba(255, 26, 13, .35);
  }
  .stage-score b { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; }
  .stage-score span { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--muted); }
}
.siren {
  position: absolute; inset: 0; border: 0; background: none; cursor: pointer; border-radius: 50%;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  animation: bob 2.6s ease-in-out infinite;
}
.siren img {
  width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 50%, transparent 70.5%);
          mask: radial-gradient(circle at 50% 50%, #000 50%, transparent 70.5%);
  transition: filter .2s;
}
.siren:hover img { filter: brightness(1.08) saturate(1.1); }
.siren:focus-visible { outline-offset: -20px; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.fx { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.fl {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--display); font-size: clamp(22px, 2.4vw, 34px); color: #fff; white-space: nowrap;
  text-shadow: 0 0 12px var(--red), 0 2px 0 var(--red-deep);
  animation: floatUp .9s cubic-bezier(.2, .7, .3, 1) forwards;
}
.fl.big { font-size: clamp(30px, 3.4vw, 48px); color: #ffe4dc; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.1); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -260%) scale(1); } }
.ring { position: absolute; left: 50%; top: 50%; width: 60%; aspect-ratio: 1; border: 2px solid var(--red); border-radius: 50%; transform: translate(-50%, -50%) scale(.7); animation: ring .7s ease-out forwards; box-shadow: 0 0 20px var(--red), inset 0 0 20px rgba(255, 26, 13, .4); }
@keyframes ring { to { transform: translate(-50%, -50%) scale(1.55); opacity: 0; } }
.spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--red), 0 0 4px #fff; animation: spark .6s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; } }

.panic { width: min(100%, 460px); display: grid; gap: 8px; }
.panic-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.panic-head b { color: var(--white); }
.panic-bar { height: 14px; }
.panic-bar i { transition: transform .08s linear; }
body.red-alert .panic-head b { color: var(--red-hot); animation: blink .4s steps(2, jump-none) infinite; }
.hint { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; letter-spacing: .04em; max-width: 420px; }
.hint b { color: var(--red-hot); }

/* shop */
.shop { background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; max-height: min(78vh, 760px); }
.shop-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.shop-head h2 { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .03em; text-transform: uppercase; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--white); }
.icon-btn:hover { border-color: var(--line-hot); }
.icon-btn .ico-off { display: none; }
.icon-btn[aria-pressed="true"] .ico-on { display: none; }
.icon-btn[aria-pressed="true"] .ico-off { display: block; color: var(--muted); }
.shop-list { overflow-y: auto; padding: 8px; display: grid; gap: 6px; scrollbar-width: thin; scrollbar-color: var(--red-deep) transparent; }
.up {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; text-align: left;
  padding: 12px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .06); cursor: pointer;
  transition: border-color .2s, background .2s, opacity .2s, transform .1s;
}
.up:disabled { cursor: not-allowed; opacity: .45; }
.up.can { border-color: var(--line-hot); background: rgba(255, 26, 13, .08); }
.up.can:hover { background: rgba(255, 26, 13, .16); }
.up.can:active { transform: scale(.985); }
.up-idx { font-family: var(--mono); font-weight: 800; font-size: 12px; color: var(--red-hot); border: 1px solid var(--line); height: 34px; display: grid; place-items: center; }
.up-body { display: grid; min-width: 0; }
.up-name { font-weight: 800; font-size: 15px; line-height: 1.2; }
.up-desc { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.up-side { display: grid; justify-items: end; gap: 2px; }
.up-cost { font-family: var(--mono); font-weight: 800; font-size: 13px; color: var(--white); }
.up.can .up-cost { color: var(--red-hot); }
.up-own { font-family: var(--display); font-size: 18px; color: var(--muted); line-height: 1; }
.up.locked .up-name { font-family: var(--mono); letter-spacing: .2em; color: var(--muted); }
.up.locked .up-idx { color: var(--muted); }
.shop-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); margin-top: auto; }
.shop-foot .btn-red { flex: 1; }

/* red alert overlay */
.alarm {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0; transition: opacity .3s;
  box-shadow: inset 0 0 0 4px var(--red), inset 0 0 160px rgba(255, 26, 13, .6);
}
.alarm span {
  position: absolute; top: calc(var(--nav-h) + 52px); left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-family: var(--display); font-size: clamp(16px, 2vw, 24px); letter-spacing: .12em;
  padding: 6px 18px; white-space: nowrap; box-shadow: 0 0 40px var(--red);
}
body.red-alert .alarm { opacity: 1; animation: alarm .5s steps(2, jump-none) infinite; }
@keyframes alarm { 50% { box-shadow: inset 0 0 0 2px var(--red-deep), inset 0 0 60px rgba(255, 26, 13, .25); } }

/* ---------- launch ---------- */
.launch { max-width: 1240px; margin: 0 auto; padding: clamp(64px, 9vw, 140px) clamp(16px, 4vw, 64px); text-align: center; }
.launch .sec-head { justify-items: center; }
.countdown {
  position: relative; overflow: hidden;
  display: flex; justify-content: center; align-items: flex-start; gap: clamp(4px, 1.6vw, 22px);
  padding: clamp(28px, 4vw, 56px) clamp(12px, 3vw, 48px);
  background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.countdown::before, .countdown::after { content: ''; position: absolute; pointer-events: none; }
.countdown::before { inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%); opacity: .4; }
.countdown::after { left: 0; right: 0; top: -40%; height: 40%; background: linear-gradient(transparent, rgba(255, 26, 13, .14), transparent); animation: scan 3.4s linear infinite; }
@keyframes scan { to { top: 110%; } }
.cd-cell { display: grid; justify-items: center; gap: 8px; }
.cd-cell b { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 10vw, 150px); line-height: 1; width: 1.12em; text-align: center; font-variant-numeric: tabular-nums; }
.cd-cell span { font-family: var(--mono); font-size: clamp(9px, 1vw, 12px); letter-spacing: .24em; color: var(--muted); }
.cd-sep { font-family: var(--display); font-size: clamp(36px, 7vw, 110px); line-height: 1.1; color: var(--red); opacity: .7; animation: blink 1s steps(2, jump-none) infinite; }
.countdown.scrambling .cd-cell b { color: #ff7a66; opacity: .32; filter: blur(.4px); }
.stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg);
  font-family: var(--display); font-size: clamp(64px, 13vw, 200px); line-height: 1; letter-spacing: .06em;
  color: var(--red); padding: .04em .28em .08em;
  border: .055em solid var(--red);
  background: rgba(8, 1, 1, .62);
  text-shadow: 0 0 40px rgba(255, 26, 13, .7);
  box-shadow: 0 0 60px rgba(255, 26, 13, .4), inset 0 0 40px rgba(255, 26, 13, .25);
  -webkit-mask: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, .82) 61%) , linear-gradient(#000, #000);
  opacity: 0;
}
.launch.in .stamp { animation: stampIn .55s .35s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes stampIn { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-18deg) scale(2.4); } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); } }
body.has-date .stamp { display: none; }
.cd-note { margin: 22px auto 0; max-width: 560px; color: var(--muted); font-size: 15px; }

.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); }
.status-grid div { background: var(--panel-solid); padding: 18px 12px; display: grid; gap: 6px; }
.status-grid span { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: var(--muted); }
.status-grid b { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: .03em; }
.blink { color: var(--red-hot); animation: blink 1.2s steps(2, jump-none) infinite; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.social { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 16px; border: 1px dashed var(--line-hot); color: var(--muted); }

/* ---------- lore ---------- */
.lore { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 6vw, 100px) clamp(16px, 4vw, 64px) clamp(64px, 8vw, 120px); }
.dossier { display: grid; grid-template-columns: minmax(260px, .9fr) 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(72px, 9vw, 140px); }
.dossier-img { position: relative; border: 1px solid var(--line); background: #000; }
.dossier-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dossier-img::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(255, 255, 255, .12); pointer-events: none; }
.file-tag { position: absolute; left: -1px; bottom: -1px; background: var(--red); color: #fff; font-family: var(--mono); font-weight: 800; font-size: 12px; letter-spacing: .2em; padding: 8px 12px; }
.dossier-body { display: grid; gap: 20px; }
.dossier-body p { color: #d9ccc8; font-size: clamp(16px, 1.3vw, 18px); max-width: 560px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts div { background: var(--panel-solid); padding: 12px 14px; }
.facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; color: var(--red-hot); }
.facts dd { font-weight: 600; font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { position: relative; padding: 26px 22px 24px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s, transform .25s; }
.card::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--red); box-shadow: var(--glow); transition: width .35s ease; }
.card:hover { border-color: var(--line-hot); transform: translateY(-3px); }
.card:hover::before { width: 100%; }
.card-no { font-family: var(--mono); font-weight: 800; font-size: 12px; color: var(--red-hot); letter-spacing: .2em; }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 30px; text-transform: uppercase; letter-spacing: .02em; margin: 10px 0 6px; }
.card p { color: var(--muted); font-size: 15px; }

.lower-thirds { display: grid; gap: 12px; margin-top: clamp(48px, 6vw, 80px); }
.lt { display: flex; align-items: stretch; width: fit-content; max-width: 100%; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lt:nth-child(2) { margin-left: clamp(0px, 8vw, 120px); }
.lt:nth-child(3) { margin-left: clamp(0px, 16vw, 240px); }
.lt b { background: var(--red); color: #fff; font-family: var(--display); font-weight: 400; font-size: clamp(18px, 2.4vw, 32px); letter-spacing: .08em; padding: 10px 18px; display: grid; place-items: center; white-space: nowrap; }
.lt span { background: var(--white); color: #0a0000; font-family: var(--display); font-size: clamp(20px, 2.8vw, 38px); padding: 10px 22px; text-transform: uppercase; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(0, 0, 0, .7); padding: 40px clamp(16px, 4vw, 64px) 48px; display: grid; gap: 20px; position: relative; z-index: 1; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--red); }
.footer-brand b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .03em; line-height: 1; }
.footer-brand span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.disclaimer { max-width: 820px; color: var(--muted); font-size: 13px; }
.copy { font-family: var(--mono); font-size: 12px; color: #6f605c; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 16px; bottom: 16px; z-index: 120; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; box-shadow: 0 12px 40px rgba(0, 0, 0, .6), 0 0 30px rgba(255, 26, 13, .25); animation: toastIn .45s cubic-bezier(.2, 1.4, .4, 1); }
.toast b { flex: none; background: var(--red); color: #fff; font-family: var(--display); font-weight: 400; letter-spacing: .08em; font-size: 16px; padding: 10px 12px; display: grid; place-items: center; }
.toast span { background: var(--white); color: #0a0000; font-weight: 800; font-size: 14px; padding: 10px 14px; flex: 1; }
.toast.out { transition: opacity .5s, transform .5s; opacity: 0; transform: translateX(-30px); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-60px); } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .game { grid-template-columns: 1fr 1.15fr; min-height: auto; }
  .shop { grid-column: 1 / -1; max-height: none; }
  .shop-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 820px) {
  :root { --nav-h: 60px; }
  .nav nav { display: none; }
  .brand span { font-size: 20px; }
  .game { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  .game-left { text-align: center; justify-items: center; gap: 14px; }
  .title { font-size: clamp(60px, 19vw, 110px); }
  .title span { display: inline; }
  .slogan { border-left: 0; padding-left: 0; }
  .score-card { width: 100%; text-align: center; }
  .score-sub { justify-content: center; }
  .threat { width: 100%; }
  .stage { width: min(100%, 440px); }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .dossier { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .toasts { left: 50%; transform: translateX(-50%); }
}
@media (max-width: 520px) {
  .brand b { display: none; }
  .nav-chip { font-size: 11px; padding: 8px 10px; }
  .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .shop-list { grid-template-columns: 1fr; }
  .lt:nth-child(n) { margin-left: 0; }
  .ticker-label { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker-move { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .launch .stamp { opacity: 1; }
}
