/* ExYuVucko — High Stakes Gaming & Pinball — Shared design */
:root {
  --bg: #0b0b0f;
  --bg-elevated: #12121a;
  --crimson: #b11226;
  --crimson-dim: rgba(177, 18, 38, 0.15);
  --crimson-glow: rgba(177, 18, 38, 0.35);
  --text: #e8e8ec;
  --text-muted: #8a8a94;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 20px;
  --radius-lg: 24px;
  --space: clamp(1.5rem, 4vw, 3rem);
  --container: min(1200px, 100% - var(--space) * 2);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

.page-wrap { position: relative; min-height: 100vh; }
.ambient-glow {
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 1400px;
  height: 60vh;
  background: radial-gradient(ellipse at center, var(--crimson-dim) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.ambient-glow--bottom { top: auto; bottom: -20%; height: 50vh; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.65rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: flex; align-items: baseline; gap: 0.5rem; }
.brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
}
.brand-name span { color: var(--crimson); }
.brand-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav .live-dot { display: inline-flex; align-items: center; gap: 0.4rem; }
.live-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 10px var(--crimson);
  animation: pulse-live 1.5s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem var(--space);
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, var(--crimson-dim) 0%, transparent 50%);
  pointer-events: none;
  animation: hero-glow 8s ease-in-out infinite alternate;
}
@keyframes hero-glow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}
.hero-content { position: relative; max-width: 900px; }
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.4rem;
  color: var(--text);
  text-transform: uppercase;
}
.hero .subhead {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: var(--text-muted);
  font-weight: 400;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 4px 24px var(--crimson-glow);
}
.btn-primary:hover {
  background: #c9182e;
  box-shadow: 0 6px 32px var(--crimson-glow);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}

section {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem var(--space);
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 0.35rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  max-width: 560px;
}

.content-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.content-card:hover {
  border-color: rgba(177, 18, 38, 0.3);
  box-shadow: 0 8px 32px rgba(177, 18, 38, 0.12);
}
.content-card-thumb {
  aspect-ratio: 16 / 9;
  background: #1a1a22;
  position: relative;
}
.content-card-thumb iframe,
.content-card-thumb .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.content-card-thumb .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.content-card-body { padding: 1.25rem; }
.content-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--text);
}
.content-card-body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.video-embed-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.6rem;
}
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.platform-card:hover {
  border-color: rgba(177, 18, 38, 0.4);
  box-shadow: 0 4px 20px var(--crimson-dim);
  transform: translateY(-2px);
}
.platform-card svg {
  width: 20px;
  height: 20px;
  margin-bottom: 0.35rem;
  stroke: var(--text-muted);
  transition: stroke 0.25s ease;
}
.platform-card:hover svg { stroke: var(--crimson); }

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.download-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.download-card:hover {
  border-color: rgba(177, 18, 38, 0.3);
  box-shadow: 0 8px 28px rgba(177, 18, 38, 0.1);
}
.download-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #1a1a22;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}
.download-card .download-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  min-height: 2.5em;
}
.download-card .btn { width: 100%; }

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.shorts-grid .short-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a22;
}
.shorts-grid .short-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.about-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1rem var(--space);
  margin-top: 1rem;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--crimson);
  opacity: 0.8;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.footer-brand span { color: var(--crimson); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* Global responsive adjustments */
@media (max-width: 900px) {
  :root {
    --space: 1rem; /* 16px min side padding on small screens */
  }

  .header-inner {
    padding-inline: var(--space);
  }

  /* Hamburger toggle */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(11, 11, 15, 0.9);
    cursor: pointer;
    padding: 0;
    margin-left: auto;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle span + span {
    margin-top: 5px;
  }

  .nav-toggle.is-open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle.is-open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  /* Collapse primary nav into overlay */
  .header-inner {
    position: relative;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin: 0;
    padding: 0.6rem var(--space) 0.9rem;
    background: rgba(11, 11, 15, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease;
  }

  .nav.is-open {
    max-height: 260px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    padding-block: 0.35rem;
  }

  /* Touch-friendly targets */
  .btn,
  .platform-card,
  .platform-tab,
  .nav a {
    min-height: 44px;
  }

  /* Stack all content grids to a single column */
  .grid-2,
  .high-scores,
  .platforms-grid,
  .download-grid,
  .shorts-grid,
  .content-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  section {
    padding-inline: var(--space);
  }

  .hero {
    padding-inline: var(--space);
  }

  /* Soften heavy glow / animation on mobile for performance */
  .ambient-glow {
    opacity: 0.7;
  }

  .hero-bg {
    animation: none;
    opacity: 0.75;
  }
}

@media (max-width: 640px) {
  .brand-tag { display: none; }
}
