/* ─────────────────────────────────────────────────────────────────────────────
   ArenaForce — site styles
   Cartoon-arcade look. Thick dark outlines, flat colour fills, offset
   drop shadows that read as "cartoon 3D". No glows, no neon, no animated
   scanlines — just bold readable shapes with playful weight.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* Backdrop — still dark, just deeper navy without the cyber tint */
  --bg-0: #11132a;
  --bg-1: #1a1d3d;
  --bg-2: #232955;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.10);

  /* Cartoon "ink" outline used everywhere */
  --ink: #0a0c1a;

  /* Cartoon palette — flat, saturated, no transparency */
  --yellow: #ffd83c;
  --yellow-deep: #d49820;
  --coral:  #ff6b6b;
  --coral-deep: #c44a4a;
  --mint:   #4ecdc4;
  --mint-deep:  #2f9890;
  --cream:  #fff4e0;

  /* Text */
  --text: #fff4e0;
  --text-muted: rgba(255, 244, 224, 0.72);
  --text-dim: rgba(255, 244, 224, 0.45);

  --font-display: 'Lilita One', system-ui, sans-serif;
  --font-body: 'Fredoka', system-ui, sans-serif;

  --container: 1120px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Soft cartoon backdrop — large flat colour blobs, no animation. Gives a
   sticker-book feel rather than a "high-tech" vibe. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(800px 600px at 12% 18%, rgba(255, 216, 60, 0.10), transparent 60%),
    radial-gradient(700px 600px at 88% 82%, rgba(255, 107, 107, 0.10), transparent 60%),
    radial-gradient(600px 500px at 50% 50%, rgba(78, 205, 196, 0.07), transparent 70%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

body.nav-open { overflow: hidden; }

/* Reusable cartoon "stack" shadow — flat dark offset, gives the chunky
   sticker / pop-out look without going neon. */
.stack {
  box-shadow: 0 5px 0 var(--ink);
}
.stack-lg {
  box-shadow: 0 7px 0 var(--ink);
}

/* ── Navigation ──────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-0);
  border-bottom: 3px solid var(--ink);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--cream);
  z-index: 51;
}
.brand svg { width: 30px; height: 30px; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  align-items: center;
}
.nav-links a {
  position: relative;
  transition: color 0.2s, transform 0.15s;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--yellow); transform: translateY(-1px); }
.nav-links a.active { color: var(--yellow); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 3px;
  width: 0;
  background: var(--yellow);
  transition: width 0.2s ease;
  border-radius: 2px;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--bg-2);
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  z-index: 51;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.nav-toggle:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-inner { padding: 12px 18px; gap: 12px; }
  .brand { font-size: 15px; gap: 9px; }
  .brand svg { width: 26px; height: 26px; }

  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--bg-0);  /* solid, bulletproof */
    padding: 24px 24px 40px;
    gap: 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: 17px;
    z-index: 49;
    border-bottom: 3px solid var(--ink);
    box-shadow: 0 12px 0 var(--ink);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 18px 4px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    color: var(--cream);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--yellow); }
}

@media (max-width: 380px) {
  .brand { font-size: 13px; gap: 7px; }
  .brand svg { width: 24px; height: 24px; }
  .nav-inner { padding: 12px 14px; gap: 8px; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 130px 0 110px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: 8px 16px;
  background: var(--coral);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.30em;
  margin-bottom: 30px;
  opacity: 0;
  animation: pop-in 0.5s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  transform: rotate(-2deg);
}

/* Cartoon arcade title — solid yellow fill, thick dark outline, offset
   shadow. Uses layered text-shadow because -webkit-text-stroke renders
   inconsistently across browsers. */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 13vw, 144px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: var(--yellow);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  animation: pop-in 0.7s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  /* 8-direction outline (3px) + 8px deep shadow in the darker yellow tint. */
  text-shadow:
    -3px 0 var(--ink),
    3px 0 var(--ink),
    0 -3px var(--ink),
    0 3px var(--ink),
    -3px -3px var(--ink),
    3px -3px var(--ink),
    -3px 3px var(--ink),
    3px 3px var(--ink),
    0 8px 0 var(--yellow-deep),
    0 12px 0 var(--ink);
}
.hero p {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 560px;
  margin: 0 auto 44px;
  color: var(--text-muted);
  opacity: 0;
  animation: pop-in 0.5s 0.45s ease-out forwards;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  border-radius: var(--r-md);
  border: 3px solid var(--ink);
  box-shadow: 0 5px 0 var(--yellow-deep), 0 8px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
  opacity: 0;
  animation: pop-in 0.5s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--yellow-deep), 0 10px 0 var(--ink);
}
.hero-cta:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--yellow-deep), 0 4px 0 var(--ink);
}

@keyframes pop-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  font-weight: 700;
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-hint::after {
  content: '';
  width: 2px;
  height: 24px;
  background: var(--cream);
  border-radius: 2px;
  opacity: 0.5;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* ── Section heading ────────────────────────────────────────────────────── */

.section {
  padding: 90px 0;
  position: relative;
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--mint);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.30em;
  margin-bottom: 16px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
  transform: rotate(-1.5deg);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 60px);
  color: var(--cream);
  letter-spacing: 0.005em;
  text-shadow:
    -2px 0 var(--ink),
    2px 0 var(--ink),
    0 -2px var(--ink),
    0 2px var(--ink),
    -2px -2px var(--ink),
    2px -2px var(--ink),
    -2px 2px var(--ink),
    2px 2px var(--ink),
    0 5px 0 var(--ink);
}

/* ── Games grid ─────────────────────────────────────────────────────────── */

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.game-card {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 3px solid var(--ink);
  box-shadow: 0 7px 0 var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s;
}
.game-card.coming {
  background: var(--bg-1);
  opacity: 0.85;
}

/* Patchwork-themed variant for Seam — denim background, stitched border,
   tweaked tag/title colours so the whole card feels like a fabric sample. */
.game-card.fabric {
  background:
    repeating-linear-gradient(45deg,
      rgba(255, 244, 224, 0.025) 0,
      rgba(255, 244, 224, 0.025) 2px,
      transparent 2px,
      transparent 7px),
    linear-gradient(180deg, #213d5e 0%, #16263f 100%);
  border-color: #3a6da3;
  box-shadow: 0 7px 0 var(--ink);
}
.game-card.fabric:hover {
  background:
    repeating-linear-gradient(45deg,
      rgba(255, 244, 224, 0.035) 0,
      rgba(255, 244, 224, 0.035) 2px,
      transparent 2px,
      transparent 7px),
    linear-gradient(180deg, #28486d 0%, #1a2c47 100%);
}
/* Replace the inner-frame cartoon border with a dashed "stitch" line so
   the card itself reads as a piece of cloth sewn at the edges. */
.game-card.fabric::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1.5px dashed rgba(255, 244, 224, 0.30);
  border-radius: calc(var(--r-lg) - 6px);
  pointer-events: none;
  transition: border-color 0.25s ease;
}
.game-card.fabric:hover::before {
  border-color: rgba(255, 244, 224, 0.50);
}
.game-card.fabric h3 {
  color: #f0d27a;
  text-shadow: 1px 2px 0 var(--ink);
}
.game-card.fabric .game-icon {
  border-width: 4px;
}
.game-card.fabric .tag {
  background: rgba(255, 244, 224, 0.08);
  border-style: dashed;
  border-width: 1.8px;
  color: #e6dcc5;
}
.game-card.fabric .tag.featured {
  background: #ca5211;
  border-style: solid;
  border-color: var(--ink);
  color: var(--cream);
}
.game-card.fabric .game-link {
  color: #f0d27a;
}
.game-card.fabric .game-link:hover {
  border-color: #f0d27a;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 11px 0 var(--ink);
  background: var(--bg-1);
}
.game-card.coming:hover { background: var(--bg-1); }

.game-icon {
  width: 100px;
  height: 100px;
  border-radius: 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-0);
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.game-icon svg { width: 100%; height: 100%; }

.game-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--yellow);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  text-shadow: 1px 2px 0 var(--ink);
}
.game-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}
.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text-muted);
  text-transform: uppercase;
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.tag.featured {
  background: var(--coral);
  color: var(--cream);
  transform: rotate(-3deg);
}
.tag:nth-child(2) { transform: rotate(1.5deg); }
.tag:nth-child(3) { transform: rotate(-1deg); }
.game-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: gap 0.2s, border-color 0.2s;
}
.game-link:hover {
  gap: 14px;
  border-color: var(--yellow);
}
.game-link.disabled {
  color: var(--text-dim);
  cursor: not-allowed;
}

/* ── About ──────────────────────────────────────────────────────────────── */

.about {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.about p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}
.about-contact { margin-top: 32px; }
.about-contact a {
  display: inline-block;
  padding: 14px 28px;
  background: var(--mint);
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  box-shadow: 0 5px 0 var(--mint-deep), 0 8px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.about-contact a:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--mint-deep), 0 10px 0 var(--ink);
}
.about-contact a:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--mint-deep), 0 4px 0 var(--ink);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer {
  border-top: 3px solid var(--ink);
  padding: 32px 28px;
  margin-top: 70px;
  background: var(--bg-1);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--yellow); }

/* ── Reveal on scroll ───────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ── Legal pages ────────────────────────────────────────────────────────── */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 28px 60px;
  position: relative;
  z-index: 1;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 56px);
  color: var(--yellow);
  letter-spacing: 0.005em;
  margin-bottom: 8px;
  text-shadow:
    -2px 0 var(--ink),
    2px 0 var(--ink),
    0 -2px var(--ink),
    0 2px var(--ink),
    -2px -2px var(--ink),
    2px -2px var(--ink),
    -2px 2px var(--ink),
    2px 2px var(--ink),
    0 5px 0 var(--ink);
}
.legal-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 36px;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--coral);
  margin: 36px 0 12px;
  text-shadow: 1px 2px 0 var(--ink);
}
.legal-page p,
.legal-page ul {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.75;
}
.legal-page strong { color: var(--cream); }
.legal-page ul { padding-left: 22px; }
.legal-page a {
  color: var(--mint);
  border-bottom: 2px dotted var(--mint);
  transition: color 0.2s, border-color 0.2s;
}
.legal-page a:hover {
  color: var(--cream);
  border-color: var(--cream);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 28px;
  transition: color 0.2s;
  border: none !important;
}
.back-link:hover { color: var(--yellow); }

/* ── Responsive tweaks ──────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .hero { padding: 90px 0 80px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 40px; }
  .games { gap: 20px; }
  .footer-inner { justify-content: center; text-align: center; }
}
