:root {
  --bg: #a9ccff;
  --panel: #c8d9ff;
  --ink: #2f3f71;
  --accent: #ff9cd2;
  --accent-2: #7dd9ff;
  --grid: #ffffff44;
  --line: #7a97d6;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "VT323", monospace;
  background:
    linear-gradient(transparent 0 96%, var(--grid) 96% 100%),
    linear-gradient(90deg, transparent 0 96%, var(--grid) 96% 100%),
    radial-gradient(circle at 14% 6%, #f2c4ff 0%, #d6ceff 28%, #9fcbff 58%, #8cc3f5 100%);
  background-size: 24px 24px, 24px 24px, cover;
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.4;
}

.crt {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    #00000000 0,
    #00000000 2px,
    #8fc6f31e 3px,
    #8fc6f31e 4px
  );
  mix-blend-mode: soft-light;
  z-index: 50;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #f1f6ffcc;
  border-bottom: 3px solid var(--accent);
  padding: 14px 20px;
}

.brand {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: var(--accent-2);
}

nav {
  display: flex;
  gap: 14px;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 28px;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #e778bf;
}

main {
  width: min(1140px, 94%);
  margin: 0 auto;
  padding: 28px 0 80px;
}

.hero {
  border: 3px solid var(--accent);
  background: linear-gradient(140deg, #f6c8ea, #c5e1ff 60%, #b6edff);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 8px 8px 0 #7aa1d55e;
  animation: pop-in 500ms steps(4);
}

.status {
  display: inline-block;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  background: var(--accent-2);
  color: #2f3f71;
  padding: 8px 10px;
  margin: 0 0 18px;
}

h1, h2, h3 {
  font-family: "Press Start 2P", monospace;
  margin: 0 0 14px;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(22px, 4vw, 40px);
  color: #d961aa;
}

h2 {
  font-size: clamp(18px, 3vw, 24px);
}

h3 {
  font-size: 16px;
}

p {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0 0 12px;
}

.tagline {
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border: 3px solid var(--accent);
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  background: #dff0ff;
  transition: transform 0.2s steps(2), background 0.2s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  background: #f3e4ff;
}

.btn.alt {
  border-color: var(--accent-2);
  background: #cbf4ff;
}

.panel {
  border: 3px solid var(--line);
  background: linear-gradient(180deg, #d7e5ff, #c8d9ff);
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: 6px 6px 0 #7392d155;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.mini-stats div {
  border: 2px solid #83a6e0;
  background: #eaf2ff;
  padding: 10px 12px;
}

.mini-stats strong {
  display: block;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: #4468ad;
  margin-bottom: 6px;
}

.mini-stats span {
  font-size: 22px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.info-card {
  border: 2px solid #83a6e0;
  background: #edf5ff;
  padding: 12px;
  box-shadow: 3px 3px 0 #7d9ed84f;
}

.info-card h3 {
  color: #4468ad;
}

.info-card p {
  font-size: clamp(20px, 2.1vw, 26px);
  margin: 0;
}

.media-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 10px 0 2px;
}

.vault-group {
  border: 2px solid #8eace4;
  background: #dce8ffb3;
  padding: 14px;
  margin-bottom: 14px;
}

.vault-group h3 {
  margin-bottom: 10px;
  color: #4468ad;
}

.media-card {
  margin: 0;
  border: 2px solid #83a6e0;
  background: #f3f8ff;
  overflow: hidden;
  box-shadow: 4px 4px 0 #7d9ed84f;
  transition: transform 0.18s steps(2), box-shadow 0.2s ease;
}

.media-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #678dd466;
}

.media-card img,
.video-card video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #dcecff;
  image-rendering: pixelated;
  display: block;
}

.media-card img {
  cursor: zoom-in;
}

.video-card video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.discord-line {
  margin-top: 12px;
  font-size: clamp(18px, 2vw, 24px);
  font-family: "Press Start 2P", monospace;
  color: #4468ad;
  min-height: 20px;
}

.discord-btn {
  margin-left: 10px;
}

.contact-grid {
  margin-top: 10px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: #0b1630e8;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  object-fit: contain;
  image-rendering: pixelated;
  border: 3px solid #9ab6eb;
  background: #dcecff;
  box-shadow: 10px 10px 0 #284d9278;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 2px solid #9ab6eb;
  background: #dcecff;
  color: #2f3f71;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

footer {
  text-align: center;
  font-size: 24px;
  padding: 16px;
  border-top: 3px solid #8eaee4;
  background: #f1f6ffcc;
}

@keyframes pop-in {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  nav a {
    font-size: 24px;
  }

  .hero,
  .panel {
    padding: 16px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .media-grid,
  .video-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
