:root {
  --void: #050208;
  --void-raised: #0d0615;
  --violet: #2b1048;
  --violet-hot: #6f2ca5;
  --pink: #ff3ca6;
  --cyan: #12d9ff;
  --green: #67ff92;
  --text: #dddaf0;
  --muted: #8f8ba8;
  --line: rgba(18, 217, 255, .30);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 5%, rgba(111,44,165,.28), transparent 31rem),
    radial-gradient(circle at 82% 35%, rgba(255,60,166,.055), transparent 26rem),
    radial-gradient(circle at 10% 72%, rgba(18,217,255,.045), transparent 30rem),
    linear-gradient(180deg, #09030f 0%, #050208 58%, #030105 100%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: .02em;
  overflow-x: hidden;
}

.grid,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.grid {
  opacity: .22;
  background-image:
    linear-gradient(rgba(18,217,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,217,255,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), rgba(0,0,0,.38) 66%, transparent 95%);
}

.scanlines {
  opacity: .12;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.055) 0,
    rgba(255,255,255,.055) 1px,
    transparent 1px,
    transparent 4px
  );
}

.site-header,
main,

.copy-block {
  max-width: 900px;
  margin: 0 auto clamp(54px, 7vw, 84px);
  padding: 0 4px;
}

.copy-block p {
  margin: 0;
  color: #c9c5d8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  line-height: 1.75;
}

.gameplay-copy {
  max-width: 960px;
  margin: 0 0 20px;
}

.gameplay-copy p {
  color: #d3cfe0;
}

.status-danger {
  color: #ff4d5e !important;
  text-shadow: 0 0 9px rgba(255,77,94,.28);
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 10px;
  color: var(--cyan);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.header-meta {
  color: var(--muted);
}

.hero {
  padding: clamp(42px, 8vw, 96px) 0 clamp(40px, 7vw, 78px);
  text-align: center;
}

.wordmark {
  display: block;
  width: min(860px, 90vw);
  height: auto;
  margin: 0 auto;
  filter:
    drop-shadow(0 0 16px rgba(255,60,166,.18))
    drop-shadow(0 0 26px rgba(18,217,255,.07));
}

.tagline {
  margin: 22px 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: #eee9f7;
}

.terminal {
  display: inline-block;
  min-width: min(540px, 92vw);
  padding: 14px 18px;
  text-align: left;
  color: var(--green);
  font-size: clamp(.72rem, 1.7vw, .9rem);
  line-height: 1.75;
  border-left: 1px solid rgba(103,255,146,.62);
  background: rgba(2,7,5,.30);
  box-shadow: inset 12px 0 30px rgba(103,255,146,.025);
  text-shadow: 0 0 10px rgba(103,255,146,.28);
}

.prompt {
  opacity: .58;
}

.cursor {
  display: inline-block;
  animation: blink 1s steps(1,end) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.record {
  position: relative;
  margin: 0 0 clamp(70px, 10vw, 120px);
}

.record-kicker,
.record-meta {
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.record-kicker {
  margin: 0 0 8px 2px;
  color: var(--cyan);
}

.record-kicker.hot {
  color: var(--pink);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(.9rem, 2vw, 1.08rem);
  font-weight: 500;
  letter-spacing: .11em;
  color: #f1eef9;
}

.image-frame {
  margin: 0;
  position: relative;
  padding: 5px;
  background:
    linear-gradient(
      135deg,
      rgba(18,217,255,.92),
      transparent 22%,
      transparent 78%,
      rgba(255,60,166,.86)
    );
  box-shadow:
    0 0 0 1px rgba(18,217,255,.3),
    0 0 24px rgba(18,217,255,.14),
    0 0 52px rgba(255,60,166,.08);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.image-frame::before,
.image-frame::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  z-index: 2;
  pointer-events: none;
}

.image-frame::before {
  top: -7px;
  left: -7px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.image-frame::after {
  right: -7px;
  bottom: -7px;
  border-right: 2px solid var(--pink);
  border-bottom: 2px solid var(--pink);
}

.threat-frame {
  background:
    linear-gradient(
      135deg,
      rgba(255,60,166,.94),
      transparent 22%,
      transparent 78%,
      rgba(18,217,255,.84)
    );
  box-shadow:
    0 0 0 1px rgba(255,60,166,.30),
    0 0 28px rgba(255,60,166,.14),
    0 0 50px rgba(18,217,255,.07);
}

.threat-frame::before {
  border-top-color: var(--pink);
  border-left-color: var(--pink);
}

.threat-frame::after {
  border-right-color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 11px;
  color: var(--muted);
}

.threat .record-meta span:nth-child(2) {
  color: var(--green);
  text-shadow: 0 0 8px rgba(103,255,146,.18);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(18,217,255,.12);
  color: var(--muted);
  font-size: .62rem;
  letter-spacing: .14em;
}

.footer-status {
  color: rgba(103,255,146,.62);
}

@media (max-width: 620px) {
  .site-header {
    display: block;
    line-height: 1.7;
  }

  .header-meta {
    margin-top: 4px;
  }

  .hero {
    padding-top: 34px;
  }

  .record-meta {
    display: grid;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
}
