:root {
  --bg: #000;
  --panel: #261a16;
  --panel-border: #3b2b26;
  --text: #fff;
  --muted: #bda9a3;
  --red: #ff2a00;
  --orange: #ff7a00;
  --yellow: #ffd000;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.4rem; }
.logo-tile {
  background: #1c1414;
  border: 1px solid #362a2a;
  border-radius: 22%;
}
.nav-links { display: flex; gap: 28px; font-weight: 500; color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--text); }

/* Hero */
.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  padding: 60px 20px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #50211c 0%, #1f0d0b 55%, #000 100%);
}
.hero-wall {
  position: absolute;
  inset: -25% -15%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  transform: rotate(-8deg);
  pointer-events: none;
}
.wall-track {
  display: flex;
  width: max-content;
  animation: wall-scroll linear infinite;
  will-change: transform;
}
.wall-track.reverse { animation-direction: reverse; }
.wall-track img {
  flex: none;
  width: 150px;
  height: 150px;
  margin-right: 18px;
  border-radius: 22%;
  object-fit: cover;
  opacity: 0.6;
}
@keyframes wall-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(31, 13, 11, 0.55) 0%, rgba(20, 8, 6, 0.8) 55%, rgba(0, 0, 0, 0.95) 100%),
    linear-gradient(135deg, rgba(255, 42, 0, 0.12), rgba(255, 208, 0, 0.06));
  pointer-events: none;
}
.hero-card {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(24, 12, 10, 0.7);
  text-align: center;
}
.hero-title { display: flex; align-items: center; justify-content: center; gap: 18px; }
.hero-title h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800; line-height: 1.1; }
.hero-tagline { margin-top: 12px; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.stat strong { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1.2; }
.stat span { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(45deg, var(--red), var(--orange));
  box-shadow: 0 8px 28px rgba(255, 100, 0, 0.45);
}
.btn-light { background: #fff; color: #000; }
.btn-dark { background: #382823; border-radius: 999px; padding: 12px 22px; }
.btn-dark:hover { background: #48342e; }
.btn.disabled { opacity: 0.5; pointer-events: none; }

/* Sections */
.section { padding: 90px 20px; text-align: center; }
.section-title { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; }
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow));
}
.section-sub { margin-top: 18px; color: var(--muted); }

/* Games */
.games-section { background: radial-gradient(ellipse at 50% 40%, #3d1813 0%, #000 65%); }
.section-actions { margin-top: 50px; }
.page-top { padding-top: 70px; min-height: 70vh; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 240px));
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}
.game-card { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.game-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 4rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}
.game-card:hover .game-thumb { transform: scale(1.04); }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-card h3 { font-size: 1rem; font-weight: 600; }
.game-card .plays { margin-top: auto; }
.plays {
  padding: 6px 16px;
  border-radius: 999px;
  background: #30211d;
  border: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 0.9rem;
}
.plays b { color: var(--orange); }
.play-icon { font-size: 0.7rem; margin-right: 6px; }

/* About / contact */
.panel {
  max-width: 680px;
  margin: 40px auto 0;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 1.1rem;
}
.panel strong { color: var(--text); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1040px;
  margin: 40px auto 0;
}
.feature {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  text-align: left;
}
.feature-icon { font-size: 1.8rem; }
.feature h3 { margin-top: 10px; font-size: 1.15rem; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact-wrap { max-width: 580px; margin: 36px auto 0; }
.contact-form { display: grid; gap: 16px; }
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 18px;
  border: 0;
  border-radius: 12px;
  background: #fff7f3;
  color: #1a0f0c;
  font: inherit;
  resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9a8580; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--orange); }
.honeypot { display: none; }
.age-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  cursor: pointer;
}
.age-check input {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.age-check input:checked { background: linear-gradient(45deg, var(--red), var(--orange)); border-color: transparent; }
.age-check input:checked::after { content: "✓"; color: #fff; font-weight: 800; font-size: 0.9rem; }
.contact-form button { justify-self: center; margin-top: 4px; border: 0; cursor: pointer; font-family: inherit; }
.contact-form button:disabled { opacity: 0.6; cursor: wait; }
.form-status { min-height: 1.2em; font-weight: 600; }
.form-status a { text-decoration: underline; }
.contact-legal { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.contact-legal a { text-decoration: underline; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding-left: 20px; padding-right: 20px; padding-bottom: 90px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; }
.legal-date { color: var(--muted); margin-bottom: 28px; }
.legal h2 { margin: 34px 0 10px; font-size: 1.3rem; }
.legal p, .legal li { color: #e0d2cd; }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0 22px; display: grid; gap: 6px; }
.legal a { color: var(--orange); text-decoration: underline; }

/* Footer */
.footer { padding: 60px 28px 30px; color: var(--muted); border-top: 1px solid #1f1412; background: #0a0605; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-brand p { margin-top: 12px; max-width: 280px; }
.footer-brand .brand { color: var(--text); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: var(--text); font-size: 1rem; margin-bottom: 4px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #1f1412;
  font-size: 0.85rem;
  display: grid;
  gap: 4px;
}

/* Mobile */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #000;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 28px; border-top: 1px solid #111; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-title { flex-direction: column; gap: 14px; }
  .hero-title img { width: 64px; height: 64px; }
  .hero-card { padding: 28px 20px; }
  .hero-wall { gap: 12px; }
  .wall-track img { width: 96px; height: 96px; margin-right: 12px; }
  .hero-stats { gap: 12px; }
  .stat strong { font-size: 1.9rem; }
  .stat span { font-size: 0.9rem; white-space: nowrap; }
  .page-top .game-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .page-top .game-thumb { border-radius: 16px; }
  .page-top .game-card h3 { font-size: 0.85rem; line-height: 1.3; }
  .page-top .plays { font-size: 0.8rem; padding: 4px 12px; }
  .page-top .btn-dark { font-size: 0.9rem; padding: 9px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
