:root {
  --bg: #020704;
  --bg-soft: #08140b;
  --line: #2ec15f;
  --line-soft: #1f7f3f;
  --text: #8af7ac;
  --text-dim: #65c687;
  --accent: #c7ff7c;
  --panel: rgba(4, 21, 9, 0.88);
  --shadow: 0 0 0 1px rgba(46, 193, 95, 0.65), 0 0 18px rgba(21, 113, 54, 0.35);
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 24px;
  --space-5: 30px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 50% -10%, #134d2a 0%, #031108 38%, #010302 100%);
  color: var(--text);
  font-family: "VT323", monospace;
  letter-spacing: 0.3px;
}

body {
  position: relative;
  overflow-x: hidden;
}

.grid-bg,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(16, 110, 48, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 110, 48, 0.2) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.22;
}

.scanlines {
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.24) 3px,
    rgba(0, 0, 0, 0.24) 4px
  );
  mix-blend-mode: soft-light;
  opacity: 0.35;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(2, 9, 5, 0.92), rgba(1, 5, 3, 0.95));
  box-shadow: var(--shadow);
  position: relative;
}

.top-header {
  padding: var(--space-3);
}

.top-caption {
  margin: 0 0 var(--space-2);
  border: 1px solid var(--line-soft);
  text-align: center;
  color: var(--accent);
  padding: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.hero {
  border: 1px solid var(--line-soft);
  height: clamp(140px, 25vw, 220px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 40%, rgba(117, 255, 163, 0.2) 0%, rgba(117, 255, 163, 0) 18%),
    linear-gradient(to top, rgba(33, 133, 68, 0.58) 0 34%, transparent 35%),
    linear-gradient(to bottom, #030f07, #010604);
}

.moon {
  position: absolute;
  top: 22%;
  left: 51%;
  width: 54px;
  height: 54px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #9affba 0 40%, #58c47d 45% 100%);
  box-shadow: 0 0 24px rgba(122, 252, 174, 0.5);
}

.hills::before,
.hills::after {
  content: "";
  position: absolute;
  bottom: 27%;
  width: 34%;
  height: 40%;
  background: linear-gradient(to top, #103f22, #2f8b4d);
  clip-path: polygon(0 100%, 50% 10%, 100% 100%);
}

.hills::before {
  left: 16%;
}

.hills::after {
  right: 16%;
}

.mist {
  position: absolute;
  inset: 46% 0 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(129, 255, 172, 0.22),
      rgba(129, 255, 172, 0.22) 2px,
      rgba(129, 255, 172, 0) 4px,
      rgba(129, 255, 172, 0) 7px
    );
  filter: blur(0.5px);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: 0 var(--space-3) var(--space-3);
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line-soft);
  padding: 10px 14px;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  background: rgba(5, 23, 11, 0.85);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  outline: none;
  color: var(--accent);
  background: rgba(31, 126, 63, 0.3);
  box-shadow: inset 0 0 0 1px rgba(110, 255, 163, 0.45);
}

.main-panel {
  padding: 0 var(--space-3) var(--space-3);
}

.content-grid {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: var(--space-3);
}

.internal-sites-wide {
  grid-column: 1 / -1;
  padding: var(--space-3);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-3);
  align-items: center;
}

.internal-sites-copy h2 {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: "Press Start 2P", monospace;
  font-size: 28px;
  line-height: 1.2;
}

.internal-sites-copy h2 small {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 10px;
}

.internal-sites-copy p {
  margin: 0;
  font-size: 52px;
  line-height: 0.9;
}

.card {
  border: 1px solid var(--line-soft);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(111, 236, 154, 0.08);
}

.sidebar {
  padding: var(--space-2);
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.status-block h2,
.entry h2,
.single h1 {
  margin: 0 0 6px;
  color: var(--accent);
  font-family: "Press Start 2P", monospace;
  line-height: 1.4;
}

.status-block h2 {
  font-size: 18px;
}

.status-time {
  margin: 0 0 6px;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--text-dim);
}

.status-block p,
.entry p,
.single p,
li {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 0.95;
}

.card-inset {
  border: 1px solid var(--line-soft);
  padding: var(--space-2);
  background: rgba(3, 14, 7, 0.95);
}

.player-block h3 {
  margin: 0 0 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--accent);
}

.player-controls {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

button {
  cursor: pointer;
  border: 1px solid var(--line-soft);
  background: rgba(11, 37, 18, 0.9);
  color: var(--text);
  padding: 8px 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
}

.play-btn {
  width: 100%;
}

button:hover,
button:focus-visible {
  background: rgba(37, 133, 69, 0.45);
  outline: none;
}

.mini-icons {
  display: flex;
  gap: 10px;
}

.mini-icons span {
  width: 56px;
  aspect-ratio: 1;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 30% 30%, rgba(145, 255, 188, 0.4), transparent 65%),
    linear-gradient(130deg, #153f25, #08180f);
}

.journal {
  padding: var(--space-3);
  max-height: 620px;
  overflow: auto;
}

.entry {
  margin-bottom: 24px;
}

.entry h2 {
  font-size: 24px;
}

.entry h2 small {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 10px;
}

.entry ul {
  margin: 0;
  padding-left: 24px;
}

.site-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-links li {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.site-links a {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line-soft);
  padding: 10px 12px;
  background: rgba(5, 23, 11, 0.85);
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
}

.site-links a:hover,
.site-links a:focus-visible {
  outline: none;
  color: var(--accent);
  background: rgba(31, 126, 63, 0.3);
  box-shadow: inset 0 0 0 1px rgba(110, 255, 163, 0.45);
}

.pixel-creature {
  width: 170px;
  height: 120px;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 35% 42%, rgba(150, 255, 183, 0.28), transparent 48%),
    linear-gradient(160deg, #173e26 0%, #0f2618 40%, #07130c 100%);
}

.single {
  padding: var(--space-4);
  min-height: 420px;
}

.single h1 {
  font-size: 24px;
}

.pixel-strip {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.pixel-strip span {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(45deg, #0c2415, #2b7f49);
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  margin: 0 var(--space-3) var(--space-3);
  padding: var(--space-3);
  text-align: center;
}

.badge-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-row a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line-soft);
  padding: 6px 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  background: rgba(8, 31, 15, 0.9);
}

.site-footer p,
.site-footer small {
  margin: 6px 0;
  display: block;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--text-dim);
}

.reveal {
  animation: fadeUp 480ms ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .internal-sites-wide {
    grid-template-columns: 1fr;
  }

  .journal {
    max-height: none;
  }
}

@media (max-width: 700px) {
  .site-shell {
    width: calc(100% - 16px);
    margin: 8px auto;
  }

  .top-header,
  .main-nav,
  .main-panel,
  .site-footer {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }

  .top-caption,
  .main-nav a,
  .site-footer p,
  .site-footer small,
  .badge-row a {
    font-size: 9px;
  }

  .entry h2 {
    font-size: 18px;
  }

  .status-block p,
  .entry p,
  .single p,
  .internal-sites-copy p,
  li {
    font-size: 30px;
  }

  .internal-sites-copy h2 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
