:root {
  --bg: #2B1055;
  --surface: #190B2E;
  --text: #FFC6FF;
  --muted: #BDB2FF;
  --primary: #FF70A6;
  --secondary: #70D6FF;
  --accent: #FFD670;
  --border: rgba(255, 112, 166, 0.3);
  --font-stack: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display-stack: "Arial Black", "Avenir Next Condensed", "Franklin Gothic Medium", "Segoe UI", Arial, sans-serif;
  --noise-strip: "rebellion glitch noisy digital-punk distorted";
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 112, 166, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(112, 214, 255, 0.14), transparent 70%),
    linear-gradient(160deg, #2B1055 0%, #1d0a40 55%, #120726 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255, 198, 255, 0.045) 0px, rgba(255, 198, 255, 0.045) 1px, transparent 1px, transparent 4px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle 3px at 12% 22%, rgba(112, 214, 255, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle 2px at 82% 12%, rgba(255, 214, 112, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle 3px at 91% 64%, rgba(255, 112, 166, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle 2px at 8% 78%, rgba(255, 198, 255, 0.45) 0 2px, transparent 3px);
  animation: dead-pixel-blink 3.4s steps(2, end) infinite;
}

@keyframes dead-pixel-blink {
  0%, 100% { opacity: 0.85; }
  47% { opacity: 0.85; }
  50% { opacity: 0.25; }
  53% { opacity: 0.85; }
}

img {
  max-width: 100%;
  height: auto;
}

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

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

h1, h2, h3 {
  font-family: var(--display-stack);
  font-stretch: expanded;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
}

.disclosure, main, footer {
  position: relative;
  z-index: 1;
}

.disclosure {
  width: 100%;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  padding: 8px 16px;
}

.page-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--text);
  margin: 0 0 1rem;
}

.page-title::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 14px;
  background: var(--primary);
  box-shadow: 4px 4px 0 var(--secondary);
}

.section-title {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  display: inline-block;
}

.section-title .title-echo {
  position: absolute;
  left: 4px;
  top: 4px;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(112, 214, 255, 0.55);
}

.container {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

.section {
  padding: 56px 0;
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 112, 166, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(112, 214, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

.side-nav {
  display: none;
}

.top-nav {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand-lockup img {
  display: block;
  filter: drop-shadow(-2px 0 0 rgba(255, 0, 90, 0.5)) drop-shadow(2px 0 0 rgba(0, 229, 255, 0.5));
}

.brand-name {
  font-family: var(--display-stack);
  font-stretch: expanded;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.brand-name .brand-accent {
  color: var(--primary);
}

.burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px 9px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.burger:hover {
  background: var(--text);
}

.burger:hover span {
  background: var(--bg);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(25, 11, 46, 0.98);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

body.nav-open .mobile-overlay {
  display: flex;
}

.mobile-overlay a {
  font-family: var(--display-stack);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  padding: 10px 24px;
}

.mobile-overlay a:hover {
  background: var(--text);
  color: var(--bg);
}

.overlay-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  padding: 8px 14px;
  cursor: pointer;
}

.overlay-close:hover {
  background: var(--text);
  color: var(--bg);
}

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-col h3 {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 26px 0 18px;
  align-items: center;
}

.footer-badges img {
  width: auto;
  height: 52px;
  max-width: 120px;
  background: #fff;
  padding: 4px;
}

.footer-legal {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid rgba(189, 178, 255, 0.2);
  padding-top: 18px;
  display: grid;
  gap: 12px;
}

.footer-legal p {
  max-width: 900px;
}

.footer-requisites {
  font-size: 12px;
  color: var(--muted);
}

.footer-dgoj {
  font-size: 11px;
  color: rgba(189, 178, 255, 0.75);
  max-width: 1000px;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 7, 38, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.age-gate[hidden] {
  display: none;
}

.age-gate-box {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 6px 6px 0 rgba(255, 112, 166, 0.35), -4px -4px 0 rgba(112, 214, 255, 0.2);
  padding: 32px 28px;
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.age-gate-box h2 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--primary);
}

.age-gate-box p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.age-gate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-block;
  font-family: var(--display-stack);
  font-stretch: expanded;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  padding: 12px 22px;
  border: 1px solid var(--border);
  background: var(--primary);
  color: #1a0830;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.8rem;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 4px 4px 0 rgba(255, 112, 166, 0.3);
  padding: 16px 18px;
  display: none;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.cookie-banner.active {
  display: flex;
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1 1 320px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.noise-marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(25, 11, 46, 0.6);
  position: relative;
  z-index: 1;
  margin: 24px 0;
}

.noise-marquee .marquee-track {
  display: inline-block;
  padding: 8px 0;
  font-family: var(--display-stack);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  animation: marquee-drift 38s linear infinite;
}

.noise-marquee::after {
  content: var(--noise-strip);
  position: absolute;
  right: -40%;
  bottom: -30px;
  font-size: 0.6rem;
  color: transparent;
}

.noise-marquee::before {
  content: "18+ · DGOJ · JUEGO RESPONSABLE · 18+ · DGOJ · JUEGO RESPONSABLE · 18+ · DGOJ · JUEGO RESPONSABLE · 18+ · DGOJ · JUEGO RESPONSABLE ·";
  position: absolute;
  left: 0;
  bottom: -4px;
  white-space: nowrap;
  font-family: var(--display-stack);
  font-size: 0.58rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255, 214, 112, 0.3);
  animation: marquee-reverse 16s linear infinite;
}

@keyframes marquee-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.pixel-rail {
  position: relative;
}

.pixel-rail::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow:
    -14px 12px 0 var(--primary),
    0 20px 0 var(--secondary),
    -26px 26px 0 rgba(255, 198, 255, 0.7);
  animation: dead-pixel-blink 2.6s steps(2, end) infinite;
}

.glitch-img {
  filter: drop-shadow(-3px 0 0 rgba(255, 0, 90, 0.45)) drop-shadow(3px 0 0 rgba(0, 229, 255, 0.45));
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  padding: 22px 0;
}

.stat-item {
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  background: rgba(25, 11, 46, 0.5);
}

.stat-item strong {
  display: block;
  font-family: var(--display-stack);
  font-size: 1.5rem;
  color: var(--accent);
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--muted);
}

.callout {
  border-left: 4px solid var(--primary);
  background: rgba(255, 112, 166, 0.08);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.95rem;
}

.callout-secondary {
  border-left-color: var(--secondary);
  background: rgba(112, 214, 255, 0.08);
}

.checklist-list {
  list-style: none;
  margin: 14px 0;
}

.checklist-list li {
  padding: 8px 0 8px 26px;
  position: relative;
  border-bottom: 1px dashed rgba(189, 178, 255, 0.2);
}

.checklist-list li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  color: var(--primary);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.prose p {
  margin-bottom: 14px;
  color: var(--text);
}

.prose h2 {
  margin: 26px 0 10px;
  color: var(--accent);
  font-size: 1.25rem;
}

.prose h3 {
  margin: 20px 0 8px;
  color: var(--secondary);
  font-size: 1.05rem;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(25, 11, 46, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px;
  font-family: var(--font-stack);
  font-size: 0.95rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--secondary);
}

.form-error {
  color: var(--accent);
  font-size: 0.82rem;
  margin-top: 6px;
}

.form-success {
  border: 1px solid var(--secondary);
  background: rgba(112, 214, 255, 0.08);
  padding: 20px;
  margin-top: 18px;
}

.topic-hero {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.topic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.topic-hero .container {
  position: relative;
  z-index: 1;
}

.topic-hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: #fff;
  text-shadow: 3px 3px 0 rgba(255, 112, 166, 0.55), -3px -1px 0 rgba(112, 214, 255, 0.4);
}

.topic-hero p {
  color: #fff;
  max-width: 640px;
  margin-top: 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.image-frame {
  overflow: hidden;
  max-width: 500px;
  border: 1px solid var(--border);
}

.image-frame img {
  display: block;
  max-width: 100%;
  max-height: 320px;
  width: auto;
  object-fit: cover;
}

.band-mosaic {
  height: 260px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  position: relative;
}

.band-mosaic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(25, 11, 46, 0.35);
}

.side-rail {
  position: sticky;
  top: 24px;
  max-width: 340px;
  width: 100%;
}

.rail-split {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}

.table-mini {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 14px 0;
}

.table-mini th,
.table-mini td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.table-mini th {
  background: rgba(255, 112, 166, 0.1);
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.table-mini tr:hover td {
  background: rgba(112, 214, 255, 0.06);
}

.go-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  gap: 18px;
}

.go-spinner {
  width: 54px;
  height: 54px;
  border: 4px solid rgba(255, 112, 166, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: go-spin 0.9s linear infinite;
}

@keyframes go-spin {
  to { transform: rotate(360deg); }
}

.go-ad {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  border: 1px solid var(--border);
  padding: 3px 10px;
  color: var(--accent);
}

.go-note {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 460px;
}

@media (min-width: 861px) {
  .side-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 72px;
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    z-index: 50;
    padding: 14px 0;
    align-items: center;
    gap: 6px;
  }

  .side-nav .side-logo {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .side-nav .side-logo img {
    display: block;
  }

  .side-nav a.side-link {
    position: relative;
    width: 42px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display-stack);
    font-size: 0.95rem;
    color: var(--text);
    border: 1px solid transparent;
  }

  .side-nav a.side-link:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--border);
  }

  .side-nav a.side-link::after {
    content: attr(data-label);
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.72rem;
    font-family: var(--font-stack);
    text-transform: none;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s;
    z-index: 60;
  }

  .side-nav a.side-link:hover::after {
    opacity: 1;
  }

  .disclosure, main, footer {
    margin-left: 72px;
  }
}

@media (max-width: 860px) {
  .side-nav {
    display: none;
  }

  .top-nav {
    display: flex;
  }

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

  .side-rail {
    position: static;
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .band-mosaic {
    height: 170px;
  }

  .image-frame {
    max-width: 100%;
  }
}
