:root {
  --void: #07070a;
  --panel: #101217;
  --line: #2a2e38;
  --lime: #c6ff4a;
  --pink: #ff4d8d;
  --ice: #9be7ff;
  --paper: #f3f1ea;
  --dim: #8b90a0;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body.home {
  min-height: 100vh;
  color: var(--paper);
  background: var(--void);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  overflow-x: hidden;
}

body.home::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.home::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.12) 2px 3px
  );
  mix-blend-mode: multiply;
}

.spot {
  pointer-events: none;
  position: fixed;
  width: 48vw;
  height: 48vw;
  left: 0;
  top: 0;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(198, 255, 74, 0.16), transparent 62%);
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0 0.4rem;
}

.brand {
  color: var(--lime);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.nav a {
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-color: var(--lime);
  color: var(--lime);
}

.hero {
  padding: 2.2rem 0 1.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.4rem;
  align-items: end;
}

.kicker {
  color: var(--pink);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}

h1 {
  font-family: "Unbounded", "IBM Plex Mono", sans-serif;
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 8.4rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

h1 span {
  display: block;
  color: var(--lime);
}

.tag {
  max-width: 34rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--paper);
  margin: 0;
}

.tag em {
  color: var(--ice);
  font-style: normal;
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #141820, #0c0e13);
  padding: 1rem;
}

.panel h2 {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 400;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.meter {
  height: 10px;
  background: #1c212b;
  border: 1px solid var(--line);
  overflow: hidden;
}

.meter > i {
  display: block;
  height: 100%;
  width: 37%;
  background: linear-gradient(90deg, var(--pink), var(--lime));
  animation: pulse 2.4s ease-in-out infinite;
}

.log {
  margin: 0.85rem 0 0;
  min-height: 6.4rem;
  color: var(--lime);
  font-size: 0.74rem;
  line-height: 1.55;
}

.log div { opacity: 0.55; }
.log div:last-child { opacity: 1; color: var(--ice); }

.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  margin: 1.6rem 0;
  padding: 0.55rem 0;
}

.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: slide 22s linear infinite;
  color: var(--lime);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

section { padding: 0.4rem 0 2rem; }

.sec-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.sec-h h2 {
  font-family: "Unbounded", sans-serif;
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: -0.03em;
}

.sec-h a { color: var(--ice); font-size: 0.78rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  padding: 1rem;
  min-height: 10rem;
  background: #0c0e14;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--lime);
}

.card small {
  color: var(--pink);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.card h3 {
  font-family: "Unbounded", sans-serif;
  font-size: 1.15rem;
  margin: 0.55rem 0 0.4rem;
}

.card p { margin: 0; color: var(--dim); font-size: 0.84rem; line-height: 1.5; }

.links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.links a {
  color: var(--paper);
  text-decoration: none;
  border: 1px dashed var(--line);
  padding: 0.75rem 0.85rem;
  font-size: 0.84rem;
}

.links a:hover { border-color: var(--ice); color: var(--ice); }

.links a b { display: block; color: var(--lime); font-weight: 500; }

.foot {
  padding: 1.2rem 0 2.6rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.75rem;
}

.foot a { color: var(--ice); }

.exe-game {
  border: 1px solid var(--line);
  background: #0a0c11;
  padding: 1.1rem;
}

.exe-game .play {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: 0.85rem 0 1rem;
}

.exe-game select,
.exe-game button {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.55rem 0.7rem;
  background: #12151c;
  color: var(--paper);
  border: 1px solid var(--line);
}

.exe-game button {
  background: var(--lime);
  color: #111;
  border-color: var(--lime);
  cursor: pointer;
  font-weight: 500;
}

.exe-game button:hover { filter: brightness(1.08); }

.window {
  border: 1px solid var(--lime);
  background: #07080c;
  box-shadow: 8px 8px 0 #1b1f14;
  display: none;
}

.window.show { display: block; animation: boot 0.35s ease; }

.titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--lime);
  color: #111;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
}

.titlebar b { font-weight: 500; }

.dots span {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.25rem;
  border: 1px solid #111;
}

.window pre {
  margin: 0;
  padding: 0.9rem 1rem 1.1rem;
  white-space: pre-wrap;
  color: var(--lime);
  font-size: 0.78rem;
  line-height: 1.55;
  min-height: 12rem;
}

.window .save {
  display: inline-block;
  margin: 0 1rem 1rem;
  color: #111;
  background: var(--ice);
  border: 1px solid var(--ice);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  font-size: 0.75rem;
}

.guides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

@keyframes boot {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%, 100% { width: 34%; }
  50% { width: 41%; }
}

@keyframes slide {
  to { transform: translateX(-100%); }
}

@media (max-width: 860px) {
  .hero-grid, .cards, .links, .guides { grid-template-columns: 1fr; }
  h1 { font-size: 3.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .meter > i, .marquee span { animation: none; }
}
