:root {
  --bg-1: #1a1a2e;
  --bg-2: #16213e;
  --card: #1a1a3e;
  --text: #ffffff;
  --muted: #b7bfd6;
  --yellow: #fde047;
  --green: #4ade80;
  --magenta: #f0abfc;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(145deg, var(--bg-1), var(--bg-2));
  color: var(--text);
  font-family: "VT323", monospace;
  font-size: 22px;
  line-height: 1.45;
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(15, 20, 39, 0.96);
  border-bottom-color: #2f3b63;
  backdrop-filter: blur(8px);
}

.header-row {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Press Start 2P", cursive;
  font-size: 11px;
  letter-spacing: 0.6px;
}

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

.brand .sprite {
  font-size: 18px;
}

.nav-and-auth {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  font-family: "Press Start 2P", cursive;
  font-size: 10px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 6px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  background: var(--yellow);
}

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

.pixel-btn {
  border: none;
  border-radius: 0;
  padding: 10px 16px;
  font-family: "Press Start 2P", cursive;
  font-size: 10px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.pixel-btn:hover {
  transform: translateY(-2px);
}

.pixel-btn.yellow {
  background: var(--yellow);
  color: #141414;
}

.pixel-btn.outline {
  background: transparent;
  color: var(--text);
  border: 2px solid #6f78a0;
}

.auth-pill {
  border: 2px solid var(--green);
  background: rgba(74, 222, 128, 0.12);
  padding: 8px 10px;
  font-size: 20px;
}

main {
  padding-bottom: 50px;
}

.hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

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

.hero::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 171, 252, 0.2), transparent 62%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: "Press Start 2P", cursive;
  font-size: clamp(22px, 4vw, 46px);
  line-height: 1.35;
  margin: 0 0 20px;
  text-shadow: 0 0 20px rgba(253, 224, 71, 0.4);
}

.hero p {
  margin: 0 auto 16px;
  max-width: 760px;
}

.hero .market-note {
  color: var(--yellow);
  font-size: 24px;
}

.section {
  padding: 50px 0;
}

.section-title {
  font-family: "Press Start 2P", cursive;
  font-size: clamp(17px, 2.3vw, 28px);
  margin: 0 0 18px;
  line-height: 1.4;
}

.lead {
  color: var(--muted);
  margin-top: 0;
}

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

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

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

.card {
  background: var(--card);
  padding: 20px;
  border: 2px solid var(--yellow);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.alt-green {
  border-color: var(--green);
}

.card.alt-magenta {
  border-color: var(--magenta);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.4);
}

.card h3 {
  font-family: "Press Start 2P", cursive;
  font-size: 14px;
  margin: 0 0 10px;
  line-height: 1.5;
}

.pixel-icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border: 2px solid currentColor;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.gallery-item {
  background: #101228;
  border: 2px solid #2f3b63;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 260px;
}

.slider-wrap {
  position: relative;
  overflow: hidden;
  border: 2px solid #354476;
  background: #111631;
}

.slider-track {
  display: flex;
  transition: transform 0.35s ease;
}

.slide {
  min-width: 100%;
  padding: 10px;
}

.slide img {
  width: 100%;
  height: 420px;
}

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

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

.tab-btn {
  font-family: "Press Start 2P", cursive;
  font-size: 10px;
  padding: 10px 12px;
  border: 2px solid #5e6c9e;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--yellow);
  color: #111;
  border-color: var(--yellow);
}

.tab-panel {
  display: none;
}

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

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

.faq-item {
  border: 2px solid #354476;
  background: #151a36;
}

.faq-q {
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  padding: 14px 16px;
  font-size: 24px;
}

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

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

.market-block {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  border: 2px solid var(--yellow);
  background: #161b34;
  padding: 16px;
}

.market-block img {
  height: 56px;
}

.market-text {
  font-family: "Press Start 2P", cursive;
  font-size: 12px;
  line-height: 1.6;
}

.page-hero {
  padding: 50px 0 20px;
}

.page-hero h1 {
  margin: 0;
  font-family: "Press Start 2P", cursive;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.45;
}

.inline-logo {
  width: 56px;
  height: 56px;
}

.split {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.iframe-wrap {
  border: 2px solid #354476;
  background: #0d1127;
  padding: 10px;
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid #39466f;
  padding: 30px 0 90px;
  background: #11162f;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: #d6dcf8;
  text-decoration: underline;
}

.fineprint {
  color: #c2cae9;
  margin: 14px 0 6px;
}

.small {
  color: #98a5cd;
  font-size: 19px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.show {
  display: flex;
}

.modal-card {
  width: min(460px, 95vw);
  background: #181d3a;
  border: 2px solid var(--yellow);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
}

.modal-title {
  margin: 0 0 12px;
  font-family: "Press Start 2P", cursive;
  font-size: 16px;
}

.modal-switch {
  color: var(--green);
  cursor: pointer;
  text-decoration: underline;
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  margin-bottom: 4px;
}

.field input,
.field textarea {
  width: 100%;
  border: 2px solid #4a5885;
  background: #0f1330;
  color: #fff;
  padding: 10px;
  font: inherit;
}

.form-error {
  color: #ff8fa7;
  min-height: 24px;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .header-row {
    align-items: flex-start;
    padding: 12px 0;
  }

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

  .main-nav a,
  .pixel-btn,
  .tab-btn {
    font-size: 9px;
  }

  .slide img {
    height: 300px;
  }

  .hero {
    min-height: 62vh;
  }
}
