:root {
  --bg: #020617;
  --surface: #0F172A;
  --text: #F8FAFC;
  --muted: #64748B;
  --primary: #BEF264;
  --secondary: #334155;
  --accent: #84CC16;
  --border: rgba(190, 242, 100, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(190, 242, 100, 0.03) 0%, transparent 50%),
    linear-gradient(225deg, rgba(15, 23, 42, 0.9) 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(190, 242, 100, 0.015) 2px,
    rgba(190, 242, 100, 0.015) 4px
  );
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.disclosure-banner {
  width: 100%;
  background: linear-gradient(90deg, var(--surface) 0%, rgba(51, 65, 85, 0.95) 50%, var(--surface) 100%);
  color: var(--text);
  font-size: 11px;
  text-align: center;
  padding: 10px 16px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  line-height: 1.5;
  border-bottom: 2px solid var(--border);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.navbar-logo img {
  height: 36px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.2s;
}

.nav-link::before {
  content: "▣";
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::before,
.nav-link.active::before {
  color: var(--accent);
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
  width: 100%;
}

.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--secondary);
  border: 2px outset var(--muted);
  padding: 8px 10px;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--surface);
  border-left: 3px solid var(--secondary);
  box-shadow: -6px 0 20px rgba(0, 0, 0, 0.6);
  z-index: 200;
  padding: 80px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer .nav-link {
  display: block;
  padding: 14px 16px;
  border-left: 3px solid transparent;
  margin-bottom: 4px;
}

.mobile-drawer .nav-link::before {
  display: none;
}

.mobile-drawer .nav-link:hover,
.mobile-drawer .nav-link.active {
  border-left-color: var(--accent);
  background: rgba(190, 242, 100, 0.05);
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 199;
}

.drawer-overlay.open {
  display: block;
}

.site-footer {
  background: var(--surface);
  border-top: 3px solid var(--secondary);
  margin-top: auto;
  padding: 40px 24px 32px;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px groove var(--secondary);
}

.footer-logo img {
  height: 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}

.footer-badge {
  display: block;
}

.footer-badge img {
  max-height: 48px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-badge:hover img {
  opacity: 1;
}

.footer-legal {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}

.age-gate-overlay,
.cookie-banner {
  position: fixed;
  z-index: 1000;
}

.age-gate-overlay {
  inset: 0;
  background: rgba(2, 6, 23, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-gate-overlay.hidden {
  display: none;
}

.age-gate-modal,
.cookie-banner-inner {
  background: var(--surface);
  border: 3px outset var(--secondary);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6);
  max-width: 480px;
  width: 100%;
  padding: 28px;
}

.age-gate-modal h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}

.age-gate-modal p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.age-gate-actions {
  display: flex;
  gap: 12px;
}

.cookie-banner {
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner p {
  flex: 1;
  min-width: 200px;
  font-size: 13px;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-retro {
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  border: 2px outset var(--muted);
  background: linear-gradient(180deg, var(--secondary) 0%, #1e293b 100%);
  color: var(--text);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-retro:hover {
  background: linear-gradient(180deg, #475569 0%, var(--secondary) 100%);
}

.btn-retro:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  border-style: inset;
}

.btn-primary-retro {
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--bg);
  border-color: var(--primary);
}

.btn-primary-retro:hover {
  background: linear-gradient(180deg, #d9f99d 0%, var(--primary) 100%);
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.legal-content h1 {
  font-family: "Courier New", Courier, monospace;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px double var(--border);
}

.legal-content h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  color: var(--text);
  margin: 28px 0 12px;
}

.legal-content h3 {
  font-size: 16px;
  color: var(--primary);
  margin: 20px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content strong {
  color: var(--text);
}

.contact-form {
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 3px inset var(--secondary);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  background: var(--bg);
  border: 2px inset var(--secondary);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: #f87171;
  font-size: 13px;
  margin: -12px 0 12px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  display: none;
  padding: 24px;
  background: rgba(190, 242, 100, 0.1);
  border: 2px solid var(--accent);
  text-align: center;
  color: var(--primary);
  font-size: 16px;
}

.form-success.visible {
  display: block;
}

@media (max-width: 1024px) {
  .navbar-nav {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .mobile-drawer {
    display: block;
  }
}

.retro-ninety-os {
  font-family: "Courier New", Courier, monospace;
  border: 3px outset var(--secondary);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.skeuomorphic-panel {
  background: linear-gradient(180deg, var(--secondary) 0%, #1e293b 100%);
  border: 2px ridge var(--muted);
}

.nostalgic-dither-bg {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 3px,
    rgba(190, 242, 100, 0.04) 3px,
    rgba(190, 242, 100, 0.04) 6px
  );
}

.operating-system-window {
  background: var(--surface);
  border: 3px solid var(--secondary);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.1), 4px 4px 0 rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .disclosure-banner {
    font-size: 10px;
    padding: 8px 12px;
  }

  .navbar-inner {
    padding: 12px 16px;
  }

  .age-gate-actions {
    flex-direction: column;
  }
}
