:root {
  --bg-start: #1a1a2e;
  --bg-end: #16213e;
  --card-bg: #1a1a3e;
  --pixel-yellow: #fde047;
  --pixel-green: #4ade80;
  --pixel-magenta: #f0abfc;
  --text: #ffffff;
  --muted: #b9bfd9;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "VT323", monospace;
  font-size: 22px;
  color: var(--text);
  background: linear-gradient(140deg, var(--bg-start), var(--bg-end));
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.25;
  z-index: 0;
}

a {
  color: var(--pixel-yellow);
  text-decoration: none;
}

img {
  max-width: 100%;
  object-fit: contain;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 20, 0.9);
  border-bottom: 3px solid var(--pixel-magenta);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand span {
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  color: var(--pixel-yellow);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 2px solid var(--pixel-yellow);
  padding: 8px 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #fff;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--pixel-yellow);
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pixel-btn {
  background: var(--pixel-yellow);
  color: #161616;
  border: 2px solid #000;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pixel-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000;
}

.pixel-btn.alt {
  background: var(--pixel-green);
}

.pixel-btn.magenta {
  background: var(--pixel-magenta);
}

.pixel-card {
  background: var(--card-bg);
  border: 2px solid var(--pixel-yellow);
  box-shadow:
    0 0 0 2px rgba(253, 224, 71, 0.25),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  padding: 22px;
  margin: 24px 0;
  position: relative;
}

.pixel-card.alt {
  border-color: var(--pixel-green);
  box-shadow:
    0 0 0 2px rgba(74, 222, 128, 0.3),
    inset 0 0 0 2px rgba(255,255,255,0.05);
}

.pixel-card.magenta {
  border-color: var(--pixel-magenta);
  box-shadow:
    0 0 0 2px rgba(240, 171, 252, 0.28),
    inset 0 0 0 2px rgba(255,255,255,0.05);
}

.pixel-card::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px dashed rgba(255,255,255,0.12);
  pointer-events: none;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.section-title img {
  width: 32px;
  height: 32px;
}

.hero {
  padding: 60px 0 30px;
}

.hero-panel {
  background: rgba(20, 20, 40, 0.88);
  border: 3px solid var(--pixel-magenta);
  padding: 40px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.09) 0px,
      rgba(255,255,255,0.09) 1px,
      transparent 2px,
      transparent 4px
    );
  opacity: 0.2;
  pointer-events: none;
}

.hero-panel h1 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(22px, 3.4vw, 42px);
  line-height: 1.45;
  margin: 0 0 20px;
  text-shadow: 0 0 18px rgba(240,171,252,.45);
}

.hero-panel p {
  max-width: 900px;
  margin: 0 auto 24px;
  color: #eef0ff;
  font-size: 30px;
}

.cta-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 22px;
  background: var(--pixel-yellow);
  color: #000;
  border: 2px solid #000;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  box-shadow: 4px 4px 0 #000;
}

.decor-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 2px solid var(--pixel-green);
  padding: 8px 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
}

.decor-chip img {
  width: 20px;
  height: 20px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.feature-card {
  background: #161634;
  border: 2px solid var(--pixel-green);
  padding: 16px;
}

.feature-card h3 {
  margin: 8px 0;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  line-height: 1.6;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.slider {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--pixel-yellow);
  background: #111129;
}

.slides {
  display: flex;
  transition: transform 0.45s ease;
}

.slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.review-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-btn {
  background: #131329;
  border: 2px solid var(--pixel-magenta);
  color: #fff;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--pixel-magenta);
  color: #130e1f;
}

.review-panel {
  display: none;
  border: 2px solid var(--pixel-magenta);
  padding: 14px;
  background: rgba(0,0,0,.2);
}

.review-panel.active {
  display: block;
}

.stars {
  color: var(--pixel-yellow);
  letter-spacing: 1px;
}

.faq-item {
  border: 2px solid var(--pixel-green);
  margin-bottom: 12px;
  background: #121230;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #fff;
  border: 0;
  padding: 14px;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  cursor: pointer;
}

.faq-a {
  display: none;
  padding: 0 14px 14px;
  color: var(--muted);
}

.faq-item.open .faq-a {
  display: block;
}

.game-thumb {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border: 2px solid var(--pixel-yellow);
  background: #101028;
  padding: 8px;
}

.iframe-wrap {
  border: 3px solid var(--pixel-yellow);
  background: #0f1024;
  padding: 8px;
}

.content-list {
  padding-left: 20px;
}

.content-list li {
  margin: 8px 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}

input, textarea {
  width: 100%;
  border: 2px solid var(--pixel-green);
  background: #0f122f;
  color: #fff;
  padding: 12px;
  font-family: "VT323", monospace;
  font-size: 24px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

label {
  display: block;
  margin: 0 0 6px;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
}

.form-row {
  margin-bottom: 12px;
}

.site-footer {
  border-top: 3px solid var(--pixel-green);
  background: rgba(6, 7, 18, 0.95);
  padding: 24px 0 90px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-top img {
  width: 42px;
  height: 42px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.footer-nav a {
  color: #fff;
  border: 1px solid #3e476d;
  padding: 6px 10px;
  font-size: 19px;
}

.muted {
  color: var(--muted);
}

.store-block {
  text-align: center;
  padding: 20px 0;
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99990;
  padding: 20px;
}

.auth-modal.open {
  display: flex;
}

.auth-card {
  width: min(520px, 95vw);
  background: #171737;
  border: 3px solid var(--pixel-yellow);
  box-shadow: 0 0 0 3px #000;
  padding: 18px;
  position: relative;
}

.auth-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.auth-error {
  min-height: 26px;
  color: #ff9999;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    width: 100%;
    display: none;
    padding-top: 8px;
  }

  .main-nav.open {
    display: flex;
  }

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

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-panel p {
    font-size: 26px;
  }

  .brand span {
    font-size: 10px;
  }

  .auth-area {
    width: 100%;
    justify-content: flex-start;
  }
}
