:root {
  --bg-0: #070915;
  --bg-1: #15132d;
  --panel: #121128;
  --panel-alt: #181637;
  --line: #4e4a82;
  --line-bright: #7ed8ff;
  --text: #e5ecff;
  --text-soft: #b5b8d6;
  --accent: #8e63ff;
  --accent-2: #95ebff;
  --danger: #ff5f9b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 1.25rem;
  line-height: 1.25;
  background:
    radial-gradient(circle at 18% 0%, rgba(126, 216, 255, 0.2), transparent 44%),
    radial-gradient(circle at 86% 100%, rgba(144, 99, 255, 0.22), transparent 48%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  min-height: 100vh;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.35;
}

.site-frame {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  margin: 1.25rem auto;
  border: 2px solid var(--line);
  background: rgba(8, 12, 24, 0.86);
  box-shadow:
    0 0 0 2px rgba(126, 216, 255, 0.18) inset,
    0 0 30px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.site-frame::before {
  content: "";
  position: absolute;
  inset: -25%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='54' viewBox='0 0 90 54'%3E%3Cg fill='none' stroke='%237ed8ff' stroke-width='2'%3E%3Cpath d='M18 20c-7 0-12 5-12 12s5 12 12 12h8l8-7h22l8 7h8c7 0 12-5 12-12s-5-12-12-12h-14l-7 6H39l-7-6z'/%3E%3Cpath d='M26 26v8M22 30h8'/%3E%3Ccircle cx='64' cy='27' r='2'/%3E%3Ccircle cx='70' cy='31' r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 160px 96px;
  animation: driftControllers 55s linear infinite;
}

.site-frame::after {
  content: "";
  position: absolute;
  inset: -25%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='42' viewBox='0 0 70 42'%3E%3Cg fill='none' stroke='%23af8dff' stroke-width='1.8'%3E%3Cpath d='M15 16c-5.5 0-9 3.8-9 9s3.5 9 9 9h6l6-5h16l6 5h6c5.5 0 9-3.8 9-9s-3.5-9-9-9h-10l-5 4H32l-5-4z'/%3E%3Cpath d='M22 21v7M18.5 24.5h7'/%3E%3Ccircle cx='49' cy='22.5' r='1.6'/%3E%3Ccircle cx='54.5' cy='26' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 120px 72px;
  animation: driftControllersReverse 70s linear infinite;
}

.site-frame > * {
  position: relative;
  z-index: 1;
}

.hud-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 1rem;
  border-bottom: 2px solid var(--line);
  background: linear-gradient(90deg, #0c122d, #2a2254 55%, #332869);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hud-badge {
  font-family: "Press Start 2P", monospace;
  font-size: 0.6rem;
  color: var(--accent-2);
}

.hud-now {
  white-space: nowrap;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 6rem);
}

.sidebar {
  border-right: 2px solid var(--line);
  padding: 1rem;
  background: linear-gradient(180deg, #100f25, #17133a);
}

.sidebar img {
  width: 100%;
  border: 2px solid var(--line-bright);
  box-shadow: 0 0 20px rgba(126, 216, 255, 0.22);
}

.sidebar h2,
.panel-title {
  margin: 1rem 0 0.6rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.7rem;
  color: var(--accent-2);
  line-height: 1.5;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  background: rgba(126, 216, 255, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateX(4px);
  border-color: var(--line-bright);
  background: rgba(142, 99, 255, 0.2);
}

.sidebar p {
  color: var(--text-soft);
  margin: 0.6rem 0;
}

.main {
  padding: 1.1rem;
  animation: bootUp 360ms ease-out;
  min-width: 0;
}

.hero {
  border: 2px solid var(--line);
  padding: 1rem;
  background: linear-gradient(180deg, rgba(16, 20, 44, 0.92), rgba(20, 18, 52, 0.86));
}

.hero h1 {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  color: var(--accent-2);
  line-height: 1.55;
}

.hero p {
  margin: 0.8rem 0 0;
}

.section {
  margin-top: 1rem;
  min-width: 0;
}

.section-header {
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.6rem;
  border-left: 4px solid var(--accent);
  border-bottom: 1px solid rgba(126, 216, 255, 0.45);
  background: linear-gradient(90deg, rgba(142, 99, 255, 0.36), rgba(20, 18, 52, 0.9));
  font-family: "Press Start 2P", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  line-height: 1.6;
  color: #eff9ff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}

.latest-blog-preview {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 17, 43, 0.96), rgba(18, 16, 40, 0.88));
  padding: 0.7rem;
}

.latest-blog-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0.8rem;
  align-items: stretch;
}

.latest-blog-image-link {
  display: block;
  width: 300px;
  height: 100%;
  align-self: stretch;
  border: 1px solid var(--line);
  background: #070913;
  overflow: hidden;
}

.latest-blog-image-link img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

.latest-blog-copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.latest-blog-date {
  margin: 0 0 0.3rem;
  color: var(--accent-2);
  text-transform: uppercase;
  font-size: 1.2rem;
}

.latest-blog-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.05;
}

.latest-blog-excerpt {
  margin: 0.5rem 0 0.8rem;
  color: var(--text-soft);
}

.latest-blog-readmore {
  margin-top: auto;
  align-self: flex-end;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.3rem 0.5rem;
  text-decoration: none;
  background: rgba(126, 216, 255, 0.1);
  transition: border-color 160ms ease, background 160ms ease;
}

.latest-blog-readmore:hover,
.latest-blog-readmore:focus-visible {
  border-color: var(--line-bright);
  background: rgba(142, 99, 255, 0.24);
}

.latest-blog-loading {
  margin: 0;
  color: var(--text-soft);
}

.featured-video {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0.8rem;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.65rem;
  min-width: 0;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-copy {
  padding: 0.25rem;
  min-width: 0;
}

.video-copy h3,
.card-content h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.reveal > * {
  animation: cardIn 300ms ease-out;
}

.post-card,
.game-card {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  min-width: 0;
}

.post-card:hover,
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.post-card img,
.game-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 0.65rem;
  min-width: 0;
}

.card-content p {
  margin: 0;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.card-meta {
  display: block;
  margin-top: 0.5rem;
  color: var(--accent-2);
  text-transform: uppercase;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.card-header {
  padding: 0.4rem 0.6rem;
  text-transform: uppercase;
  font-family: "Press Start 2P", monospace;
  font-size: 0.56rem;
  color: #fff;
}

.card-header.retro {
  background: linear-gradient(90deg, #8d57ff, #b35dff);
}

.card-header.modern {
  background: linear-gradient(90deg, #33a8df, #69dcff);
}

.quick-review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.quick-review-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid var(--line);
  background: var(--panel-alt);
  padding: 0.55rem;
  min-width: 0;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.quick-review-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.quick-review-card img {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.quick-review-body {
  padding-top: 0.45rem;
}

.cartridge-shell {
  width: 220px;
  min-height: 270px;
  border: 2px solid #6d70b6;
  border-radius: 10px 10px 14px 14px;
  background:
    linear-gradient(180deg, rgba(184, 198, 255, 0.3), rgba(93, 102, 161, 0.28)),
    linear-gradient(180deg, #8f9bd6, #555f95 64%, #444d84);
  box-shadow:
    inset 0 -6px 0 rgba(16, 25, 42, 0.55),
    inset 0 6px 0 rgba(222, 236, 255, 0.18),
    0 10px 18px rgba(0, 0, 0, 0.35);
  padding: 14px 14px 22px;
  position: relative;
}

.cartridge-shell::before {
  content: none;
}

.cartridge-shell::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 84px;
  height: 14px;
  transform: translateX(-50%);
  border: 2px solid #6d70b6;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #485180;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.cartridge-shell img {
  margin: 18px auto 0;
  border: 2px solid #364872;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(194, 211, 236, 0.35);
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.quick-review-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 1.8vw, 1.8rem);
  line-height: 1.05;
}

.quick-review-meta {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  text-transform: uppercase;
}

.quick-review-stars {
  margin: 0.4rem 0 0;
  color: var(--accent-2);
  letter-spacing: 1px;
}

.quick-review-blurb {
  margin: 0.4rem 0 0;
  color: var(--text);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.slot-card {
  border: 1px solid var(--line);
  background: var(--panel-alt);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.slot-shell {
  width: 100%;
  max-width: 170px;
  min-height: 212px;
  padding: 10px;
}

.slot-shell img {
  margin-top: 14px;
  width: 100%;
  max-width: none;
  aspect-ratio: 2 / 3;
}

.slot-title {
  margin: 0.45rem 0 0;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.15;
  text-align: center;
}

.slot-meta {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  text-transform: uppercase;
  font-size: 0.95rem;
  text-align: center;
}

.slot-progress {
  margin-top: auto;
  width: 100%;
  padding-top: 0.45rem;
}

.slot-progress-track {
  width: 100%;
  height: 0.5rem;
  border: 1px solid var(--line);
  background: rgba(6, 8, 18, 0.72);
  border-radius: 999px;
  overflow: hidden;
}

.slot-progress-fill {
  height: 100%;
  width: var(--slot-progress, 0%);
  background: linear-gradient(90deg, #5fb7ff, #9c72ff);
}

.slot-progress-text {
  margin: 0.2rem 0 0;
  color: var(--accent-2);
  font-size: 0.85rem;
  text-transform: uppercase;
  text-align: right;
}

.site-footer {
  border-top: 2px solid var(--line);
  margin-top: 1rem;
  padding-top: 0.7rem;
  color: var(--text-soft);
  font-size: 1.35rem;
}

a {
  color: var(--accent-2);
}

a:hover {
  color: #fff;
}

@keyframes bootUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes driftControllers {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-180px, -110px, 0);
  }
}

@keyframes driftControllersReverse {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(160px, 95px, 0);
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .featured-video {
    grid-template-columns: 1fr;
  }

  .latest-blog-grid {
    grid-template-columns: 1fr;
  }

  .latest-blog-image-link {
    width: 300px;
    margin: 0 auto;
  }

  .latest-blog-image-link img {
    min-height: 220px;
  }

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

  .quick-review-card {
    grid-template-columns: 1fr;
  }

  .cartridge-shell {
    width: 100%;
    min-height: 240px;
  }

  .quick-review-card img {
    max-width: 220px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1.05rem;
  }

  .site-frame {
    width: calc(100% - 1rem);
    margin: 0.5rem auto;
  }

  .hud-bar {
    flex-direction: column;
    align-items: flex-start;
  }

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

.article {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.9rem;
}

.article-header {
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
}

.article-title {
  margin: 0;
  color: #fff;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.76rem, 1.4vw, 1.05rem);
  line-height: 1.65;
}

.article-meta {
  margin-top: 0.55rem;
  color: var(--accent-2);
  text-transform: uppercase;
}

.back-link {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  text-decoration: none;
  background: rgba(126, 216, 255, 0.1);
}

.back-link:hover,
.back-link:focus-visible {
  border-color: var(--line-bright);
  background: rgba(142, 99, 255, 0.24);
}

.article-cover {
  width: min(100%, 820px);
  display: block;
  border: 1px solid var(--line);
  margin: 0 auto 0.85rem;
}

.article-body p {
  margin: 0 0 0.8rem;
  color: var(--text);
}

.article-body h2 {
  margin: 1rem 0 0.6rem;
  color: #fff;
  font-family: "Press Start 2P", monospace;
  font-size: 0.62rem;
  line-height: 1.7;
  text-transform: uppercase;
}

.pull-quote {
  margin: 1rem 0;
  border-left: 4px solid var(--accent);
  padding: 0.5rem 0.8rem;
  background: rgba(142, 99, 255, 0.2);
  color: #fff;
}

.article-body iframe {
  width: 100%;
  border: 1px solid var(--line);
}
