:root {
  --ink: #0d0c12;
  --panel: #16151f;
  --panel2: #201d2d;
  --line: #514871;
  --violet: #9d8df1;
  --violet-strong: #7b68ee;
  --coffee: #c68b59;
  --coffee-dark: #4a2c2a;
  --hot: #ff2a6d;
  --mint: #05ffa1;
  --paper: #e9e5f4;
  --muted: #bdb5cf;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.72;
  overflow-x: hidden;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.13;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    rgba(157, 141, 241, 0.14) 3px 4px
  );
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  width: min(calc(100% - 40px), var(--max));
  margin: auto;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  background: var(--mint);
  color: #000;
  padding: 8px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 12, 18, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(157, 141, 241, 0.25);
}
.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  font-family: Consolas, monospace;
  font-size: 14px;
  color: var(--mint);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.brand:before {
  content: "● ";
  color: var(--hot);
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}
.nav a:hover,
.nav a:focus {
  color: var(--mint);
}
.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-size: 20px;
  width: 40px;
  height: 36px;
}
.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(13, 12, 18, 0.97) 7%,
      rgba(13, 12, 18, 0.7) 52%,
      rgba(13, 12, 18, 0.25)
    ),
    url("../img/{C57AD43A-2E8F-44AA-8819-B530D85CFC16}.webp") center/cover;
}
.hero-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--ink), transparent 35%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 82px 0;
  max-width: 720px;
}
.eyebrow,
.section-tag {
  font-family: Consolas, monospace;
  color: var(--mint);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.08;
  margin: 14px 0;
  letter-spacing: 0;
}
.hero h1 span {
  display: block;
  font:
    500 clamp(15px, 2vw, 20px) Consolas,
    monospace;
  color: var(--violet);
  margin-top: 12px;
}
.hero p {
  font-size: 18px;
  max-width: 650px;
  color: #ded9ea;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--mint);
  background: var(--mint);
  color: #08130f;
  font-weight: 700;
  cursor: pointer;
  font:
    700 15px "Microsoft YaHei",
    sans-serif;
  transition: 0.2s;
}
.button:hover {
  background: #c6ffe8;
  transform: translateY(-2px);
}
.button.ghost {
  border-color: var(--violet);
  background: transparent;
  color: var(--paper);
}
.button.ghost:hover {
  background: var(--violet);
  color: #0d0c12;
}
.status {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font:
    12px Consolas,
    monospace;
  color: var(--muted);
}
.status span {
  border: 1px solid #403958;
  padding: 5px 8px;
  background: rgba(22, 21, 31, 0.65);
}
.console-wrap {
  padding: 0 0 84px;
  background: linear-gradient(#0d0c12, #16151f);
}
.console {
  margin-top: -60px;
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  box-shadow: 10px 10px 0 rgba(74, 44, 42, 0.6);
  background: var(--panel);
}
.console-top {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font:
    12px Consolas,
    monospace;
  color: var(--muted);
}
.console-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
}
.machine-screen {
  min-height: 210px;
  padding: 22px;
  background: #090910;
  border: 1px solid #403959;
  color: var(--mint);
  font-family: Consolas, monospace;
  display: flex;
  flex-direction: column;
}
.machine-screen strong {
  font-size: 17px;
  color: var(--coffee);
}
.machine-output {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px dashed #453e5d;
  min-height: 62px;
}
.input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.terminal-input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  background: #0b0a11;
  color: var(--paper);
  font:
    16px Consolas,
    monospace;
  padding: 14px;
}
.terminal-input:focus {
  outline: 1px solid var(--mint);
}
.brew {
  border: 1px solid var(--coffee);
  background: var(--coffee-dark);
  color: #fff;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}
.section {
  padding: 86px 0;
}
.section.alt {
  background: var(--panel);
}
.section h2 {
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.18;
  margin: 10px 0 24px;
}
.section h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 10px;
  color: #fff;
}
.lead {
  max-width: 820px;
  color: var(--muted);
  font-size: 17px;
}
.grid {
  display: grid;
  gap: 18px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  border: 1px solid #3e3754;
  background: #191721;
  padding: 24px;
  position: relative;
}
.card:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--mint);
  border-left: 1px solid var(--mint);
  top: 6px;
  left: 6px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.card .num {
  font:
    13px Consolas,
    monospace;
  color: var(--coffee);
  display: block;
  margin-bottom: 10px;
}
.entity-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.entity-list div {
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.entity-list strong {
  display: block;
  font:
    12px Consolas,
    monospace;
  color: var(--mint);
  letter-spacing: 0.08em;
}
.entity-list span {
  font-size: 14px;
}
.image-card {
  padding: 0;
  overflow: hidden;
}
.image-card figure {
  margin: 0;
}
.image-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.image-card figcaption {
  padding: 12px 15px;
  color: var(--muted);
  font-size: 14px;
}
.steps {
  counter-reset: step;
}
.step {
  padding-left: 66px;
}
.step:after {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  position: absolute;
  left: 22px;
  top: 22px;
  color: var(--hot);
  font:
    20px Consolas,
    monospace;
}
.index-card {
  min-height: 155px;
  display: flex;
  flex-direction: column;
}
.index-card a {
  color: var(--mint);
  font-size: 14px;
  margin-top: auto;
}
.timeline {
  border-left: 1px solid var(--violet);
  margin-left: 10px;
  padding-left: 25px;
  display: grid;
  gap: 25px;
}
.timeline article {
  position: relative;
}
.timeline article:before {
  content: "";
  position: absolute;
  left: -32px;
  top: 8px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--coffee);
  background: var(--ink);
}
.timeline time {
  font:
    13px Consolas,
    monospace;
  color: var(--coffee);
}
.faq details {
  border-top: 1px solid #3c3650;
  padding: 17px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding-right: 28px;
  position: relative;
}
.faq summary:after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--mint);
  font:
    24px Consolas,
    monospace;
}
.faq details[open] summary:after {
  content: "-";
}
.faq p {
  color: var(--muted);
  max-width: 850px;
}
.page-hero {
  padding: 86px 0 54px;
  background: radial-gradient(circle at 80% 0, #3e3268 0, transparent 37%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(34px, 5vw, 57px);
  line-height: 1.12;
  margin: 12px 0;
}
.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}
.breadcrumbs {
  font:
    13px Consolas,
    monospace;
  color: var(--violet);
}
.article {
  max-width: 900px;
}
.article h2 {
  margin-top: 50px;
}
.article ul,
.article ol {
  color: var(--muted);
  padding-left: 22px;
}
.article li + li {
  margin-top: 8px;
}
.notice {
  border-left: 3px solid var(--coffee);
  padding: 15px 18px;
  background: rgba(74, 44, 42, 0.22);
  color: #ded9ea;
}
.meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.download-panel {
  padding: 28px;
  margin: 45px 0;
  background: linear-gradient(110deg, #221d32, #32253a);
  border: 1px solid var(--coffee);
}
.site-footer {
  padding: 52px 0 25px;
  background: #08070c;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
}
.site-footer h2 {
  font-size: 15px;
  color: var(--paper);
  margin: 0 0 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
}
.footer-links a:hover {
  color: var(--mint);
}
.copyright {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #292437;
  font:
    12px Consolas,
    monospace;
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: 300px;
  padding: 14px 16px;
  background: #201d2d;
  color: var(--paper);
  border-left: 3px solid var(--mint);
  box-shadow: 0 10px 30px #000;
  transform: translateY(160%);
  transition: 0.25s;
}
.toast.show {
  transform: translateY(0);
}
@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }
  .header-inner {
    height: 58px;
  }
  .menu-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    padding: 15px;
    flex-direction: column;
    align-items: stretch;
    background: #16151f;
    border-bottom: 1px solid var(--line);
  }
  .nav.open {
    display: flex;
  }
  .hero {
    min-height: 620px;
  }
  .hero-media {
    background:
      linear-gradient(90deg, rgba(13, 12, 18, 0.94), rgba(13, 12, 18, 0.68)),
      url("../img/{C57AD43A-2E8F-44AA-8819-B530D85CFC16}.webp") center/cover;
  }
  .hero-content {
    padding: 58px 0 98px;
  }
  .hero p {
    font-size: 16px;
  }
  .console-wrap {
    padding-bottom: 58px;
  }
  .console-body {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .input-row {
    flex-wrap: wrap;
  }
  .terminal-input {
    min-height: 48px;
  }
  .brew {
    height: 46px;
    width: 100%;
  }
  .section {
    padding: 58px 0;
  }
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .entity-list {
    grid-template-columns: 1fr 1fr;
  }
  .entity-list div {
    padding: 12px;
  }
  .page-hero {
    padding: 60px 0 38px;
  }
  .step {
    padding-left: 58px;
  }
  .footer-grid {
    gap: 20px;
  }
}

/* CRT terminal skin: derived from the supplied cold-violet and coffee contrast palette. */
body {
  background-color: #0d0c12;
  background-image: linear-gradient(
      115deg,
      transparent 0 74%,
      rgba(123, 104, 238, 0.08) 74% 75%,
      transparent 75%
    ),
    radial-gradient(
      circle at 12% 15%,
      rgba(123, 104, 238, 0.12),
      transparent 28%
    );
}
body:after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 19;
  opacity: 0.1;
  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='.45'/%3E%3C/svg%3E");
}
.site-header {
  background: linear-gradient(
    90deg,
    rgba(13, 12, 18, 0.98),
    rgba(22, 21, 31, 0.96)
  );
  border-bottom: 1px solid #9d8df1;
  box-shadow: 0 5px 0 rgba(74, 44, 42, 0.38);
}
.site-header:before {
  content: "CHANNEL 04  //  ARCHIVE LINK STABLE";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18px;
  padding-left: max(20px, calc((100% - 1180px) / 2));
  background: #08070c;
  border-bottom: 1px solid #332c49;
  color: #05ffa1;
  font:
    10px/18px Consolas,
    monospace;
  letter-spacing: 0.11em;
}
.header-inner {
  height: 76px;
  padding-top: 18px;
  gap: 14px;
}
.brand {
  padding: 4px 8px;
  border: 1px solid #453b60;
  background: #0b0a11;
}
.nav {
  gap: 0;
  border: 1px solid #403958;
  background: #0b0a11;
}
.nav a {
  padding: 6px 10px;
  border-right: 1px solid #403958;
  font:
    11px Consolas,
    monospace;
  letter-spacing: 0.03em;
}
.nav a:last-child {
  border: 0;
}
.nav a:hover,
.nav a:focus {
  background: #7b68ee;
  color: #0d0c12;
}
.visual-toggle {
  margin-left: auto;
  border: 1px solid #ff2a6d;
  background: #160b13;
  color: #ffd7e3;
  padding: 6px 9px;
  font:
    11px Consolas,
    monospace;
  cursor: pointer;
  white-space: nowrap;
}
.visual-toggle:before {
  content: "◉ ";
  color: #ff2a6d;
}
.visual-toggle[aria-pressed="true"] {
  border-color: #05ffa1;
  background: #0b1713;
  color: #d3ffed;
}
.visual-toggle[aria-pressed="true"]:before {
  color: #05ffa1;
}
body.archive-mode {
  --hot: #c68b59;
}
body.archive-mode .hero-media {
  filter: grayscale(0.36) contrast(0.9);
}
body.archive-mode .section-tag,
body.archive-mode .brand,
body.archive-mode .machine-screen {
  color: #c68b59;
}
.hero {
  min-height: 680px;
}
.hero-content:before {
  content: "ARCHIVE // OBSERVATION LOG";
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid rgba(5, 255, 161, 0.45);
  background: rgba(8, 7, 12, 0.76);
  font:
    11px Consolas,
    monospace;
  color: #05ffa1;
  letter-spacing: 0.12em;
}
.console {
  border: 2px solid #655a86;
  box-shadow:
    12px 12px 0 #4a2c2a,
    0 0 0 6px #0a0910;
}
.console:before,
.console:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ff2a6d;
  right: 12px;
  border-radius: 50%;
  box-shadow: -20px 0 #05ffa1;
}
.console:before {
  top: 11px;
}
.console:after {
  bottom: 12px;
  left: 12px;
  right: auto;
  background: #c68b59;
  box-shadow: 20px 0 #5d5278;
}
.console-body {
  padding: 28px 30px;
  background: linear-gradient(90deg, rgba(74, 44, 42, 0.23), transparent 48%);
}
.machine-screen {
  box-shadow:
    inset 0 0 40px rgba(123, 104, 238, 0.18),
    0 0 22px rgba(5, 255, 161, 0.08);
}
.machine-output:before {
  content: "▾ DISPENSE SLOT";
  display: block;
  font-size: 10px;
  color: #ff2a6d;
  margin-bottom: 6px;
}
.input-row {
  padding: 12px;
  background: #0a0910;
  border: 1px dashed #675b88;
}
.brew {
  min-width: 132px;
  position: relative;
  overflow: hidden;
}
.brew:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(198, 139, 89, 0.45),
    transparent
  );
  transform: translateX(-120%);
  transition: 0.4s;
}
.brew:hover:after {
  transform: translateX(120%);
}
.card {
  background: linear-gradient(135deg, #191721 0, #16151f 100%);
  box-shadow: inset 0 1px rgba(157, 141, 241, 0.11);
}
.card:hover {
  border-color: #9d8df1;
  transform: translateY(-2px);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.page-hero {
  background: linear-gradient(
      120deg,
      rgba(13, 12, 18, 0.98),
      rgba(22, 21, 31, 0.76)
    ),
    repeating-linear-gradient(
      135deg,
      transparent 0 22px,
      rgba(123, 104, 238, 0.065) 22px 23px
    ),
    #0d0c12;
}
.site-footer {
  background: linear-gradient(180deg, #0b0a11, #08070c);
}
@media (max-width: 760px) {
  .site-header:before {
    padding-left: 14px;
    font-size: 9px;
  }
  .header-inner {
    height: 68px;
    padding-top: 18px;
  }
  .brand {
    font-size: 11px;
  }
  .visual-toggle {
    font-size: 9px;
    padding: 6px;
  }
  .menu-toggle {
    margin-left: 0;
  }
  .nav {
    top: 68px;
    padding: 0;
  }
  .nav a {
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid #403958;
  }
  .console-body {
    padding: 18px;
  }
}

.game-download-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:1rem;background:rgba(0,0,0,.72)}.game-download-modal-content{width:min(100%,460px);padding:1.5rem;border:2px solid #1b1614;border-radius:4px;background:#fff9f0;color:#211917;box-shadow:9px 9px 0 rgba(0,0,0,.3)}.game-download-modal-content h2{margin:0 0 .75rem;font-size:1.25rem}.game-download-modal-content p{line-height:1.7}.game-download-modal-actions{display:flex;justify-content:flex-end;gap:.7rem;margin-top:1.25rem}.game-download-modal-actions button{padding:.65rem 1rem;border:1px solid #6d5142;background:#fff9f0;color:#211917;font:inherit;cursor:pointer}.game-download-modal-actions [data-action=confirm]{background:#211917;color:#fff9f0}