/* ============================================
   INSERT COIN GAMES — BASE STYLES
   Shared across all pages: tokens, reset,
   typography, navigation, footer, buttons.
   ============================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Backgrounds */
  --bg: #050507;
  --bg-2: #0a0a0d;
  --surface: #101013;
  --surface-2: #16161b;
  --surface-3: #1f1f25;

  /* Lines / borders */
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-bright: rgba(255, 255, 255, 0.22);

  /* Brand accent — purple */
  --purple: #a855f7;
  --purple-bright: #c084fc;
  --purple-glow: #d8b4fe;
  --purple-dim: #7e3dc7;
  --purple-deep: #4c1d95;

  /* Text */
  --text: #f0f0f2;
  --text-dim: #a0a0a6;
  --text-muted: #5e5e66;
  --text-faint: #3a3a42;

  /* Status colors */
  --gold: #d4a553;
  --crimson: #e34a3d;
  --emerald: #4ade80;
  --amber: #fbbf24;

  /* Shadows */
  --shadow-lg: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  --shadow-accent: 0 0 30px rgba(168, 85, 247, 0.25);
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--purple); color: white; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple-dim); }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ---------- BACKDROP (universal) ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(168, 85, 247, 0.04), transparent 70%),
    linear-gradient(180deg, #050507 0%, #07070a 50%, #050507 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Optional game-specific atmospheric background (set --hero-bg-url inline) */
.game-hero-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-bg-url);
  background-size: cover;
  background-position: center top;
  opacity: 0.16;
  filter: blur(2px) saturate(0.65);
  mask-image: linear-gradient(180deg, black 0%, black 30%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 30%, transparent 80%);
}

/* ---------- TYPOGRAPHY ---------- */
.gothic {
  font-family: 'Pirata One', serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}
.eyebrow {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--purple-bright);
}
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}
p { color: var(--text-dim); }

/* ---------- NAVIGATION ---------- */
nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.3s ease, background 0.3s ease;
}
nav.site-nav.scrolled {
  padding: 0.6rem 2rem;
  background: rgba(5, 5, 7, 0.94);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.2));
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-text .ic {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand-text .sub {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}
.nav-menu a {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a.active { color: var(--text); }
.nav-menu a.active::after,
.nav-menu a:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}
.nav-menu a:hover::after { opacity: 0.6; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  overflow: hidden;
}
.lang-toggle button {
  padding: 0.35rem 0.7rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
}
.lang-toggle button.active {
  background: var(--purple);
  color: white;
}
.lang-toggle button:not(.active):hover { color: var(--text); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--purple-bright);
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ---------- MAIN CONTAINER ---------- */
main {
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}
.btn-primary:hover {
  background: var(--purple-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.55);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--purple);
  background: rgba(168, 85, 247, 0.08);
}
.btn-ghost svg { width: 14px; height: 14px; }

/* ---------- SECTION HEADER (generic) ---------- */
.section { margin-bottom: 4rem; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}
.section-head h2 .accent { color: var(--purple-bright); }
.section-head .loc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Pulse dot used in several places */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem;
  text-align: center;
  background: rgba(5, 5, 7, 0.6);
}
footer p {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
footer .foot-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
footer .sep { color: var(--text-faint); }

/* ---------- REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  main { padding: 5rem 1rem 3rem; }
  nav.site-nav { padding: 0.8rem 1rem; }
  nav.site-nav.scrolled { padding: 0.5rem 1rem; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 5, 7, 0.98);
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu.open { display: flex; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 600px) {
  .brand-text .sub { display: none; }
}
