:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --text: #F5F5F5;
  --muted: #BDBDBD;
  --primary: #A3E635;
  --secondary: #38BDF8;
  --accent: #F43F5E;
  --border: rgba(245, 245, 245, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  background-image:
    linear-gradient(160deg, rgba(163, 230, 53, 0.06) 0%, transparent 45%),
    linear-gradient(320deg, rgba(56, 189, 248, 0.05) 0%, transparent 50%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 52px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    rgba(245, 245, 245, 0.015) 3px,
    rgba(245, 245, 245, 0.015) 4px
  );
  pointer-events: none;
  z-index: 9990;
  opacity: 0.6;
}

main {
  flex: 1 0 auto;
}

.disclosure {
  width: 100%;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  border-bottom: 1px solid rgba(163, 230, 53, 0.25);
}

.disclosure-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 52px;
  z-index: 1000;
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 8px;
}

.navbar-logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  list-style: none;
  gap: 2px;
}

.nav-links li {
  flex: 1;
  max-width: 72px;
}

.nav-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  text-decoration: none;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
  transition: color 0.15s, filter 0.15s;
}

.nav-link-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-link-item:hover {
  color: var(--primary);
  filter: invert(0.85);
}

.nav-link-item.nav-hidden-mobile {
  display: none;
}

.nav-more-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  padding: 4px 8px;
}

.nav-more-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.96);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: 72px;
}

.mobile-overlay.active {
  display: flex;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.mobile-nav-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 8px;
  font-size: 11px;
  color: var(--text);
  text-decoration: none;
}

.mobile-nav-grid a svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

.mobile-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 22px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px 24px;
  margin-top: auto;
  flex-shrink: 0;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0.4;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-badges {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-badges img {
  height: 44px;
  width: auto;
}

.footer-badges a {
  display: block;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--primary);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.modal-box h2 {
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-stretch: expanded;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-box p {
  margin-bottom: 24px;
  font-size: 14px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid var(--primary);
  text-decoration: none;
  transition: filter 0.15s, transform 0.1s;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
}

.btn-decline {
  background: transparent;
  color: var(--muted);
  border-color: var(--muted);
}

.btn:hover {
  filter: invert(0.9);
}

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 52px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  z-index: 9998;
}

.cookie-banner.active {
  display: block;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.cookie-inner p {
  font-size: 13px;
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.page-content h1 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 24px;
  font-stretch: expanded;
  letter-spacing: 0.04em;
}

.page-content h2 {
  color: var(--secondary);
  font-size: 1.2rem;
  margin: 28px 0 12px;
}

.page-content h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 20px 0 8px;
}

.page-content p {
  margin-bottom: 16px;
}

.page-content ul {
  margin: 0 0 16px 24px;
}

.page-content li {
  margin-bottom: 8px;
}

.contact-form {
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: var(--accent);
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  display: none;
  padding: 24px;
  background: rgba(163, 230, 53, 0.08);
  border: 1px solid var(--primary);
  text-align: center;
  font-size: 16px;
}

.form-success.visible {
  display: block;
}

.dead-pixel {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  opacity: 0.7;
  pointer-events: none;
}

.rebellion-heading {
  font-stretch: expanded;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
}

.noisy-bg {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(163, 230, 53, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(244, 63, 94, 0.03) 0%, transparent 40%);
}

.digital-punk-strip {
  border-left: 3px solid var(--primary);
  padding-left: 16px;
}

.distorted-img {
  filter: drop-shadow(2px 0 0 rgba(244, 63, 94, 0.4)) drop-shadow(-2px 0 0 rgba(56, 189, 248, 0.4));
  transition: filter 0.2s;
}

.distorted-img:hover {
  filter: invert(1) drop-shadow(2px 0 0 var(--accent));
}

.topic-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: filter 0.15s, background 0.15s;
}

.topic-cta:hover {
  background: var(--primary);
  color: var(--bg);
  filter: invert(0.1);
}

@media (min-width: 769px) {
  .nav-link-item.nav-hidden-mobile {
    display: flex;
  }

  .nav-more-btn {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .nav-links li.nav-more-slot {
    display: flex;
    justify-content: center;
  }

  .nav-links li:not(.nav-visible-mobile):not(.nav-more-slot) {
    display: none;
  }

  .nav-more-btn {
    display: flex;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 375px) {
  body {
    overflow-x: hidden;
  }

  .hero,
  .info-section,
  .games-search-visual,
  .finding-rail-img,
  .article-slots-gallery,
  .article-mobile-hero,
  .article-pay-stat-band {
    max-width: 100%;
    overflow: hidden;
  }

  .distorted-img,
  .games-search-visual img,
  .finding-rail-img img,
  .article-slots-gallery img {
    max-width: 100%;
    height: auto;
  }
}
