/* ===============================
   VIS Horror — Styles
   Drop your images in assets/images and audio in assets/audio
   =============================== */

/* Base reset (minimal) */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

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

/* Accessibility helpers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  z-index: 100;
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}

.skip-to-content:focus {
  top: 0;
}

:root {
  --bg: #050505;
  --bg-2: #0a0a0c;
  --card: #101014;
  --text: #e8eaef;
  --muted: #9aa3b2;
  --accent: #e03636;
  /* blood red */
  --accent-2: #4a0f0f;
  /* deep blood */
  --accent-cold: #2d3a4f;
  /* cold blue/bruise */
  --accent-glow: rgba(224, 54, 54, 0.6);
  --glass: rgba(5, 5, 5, 0.3);
  --glass-strong: rgba(5, 5, 5, 0.85);
  --ring: rgba(224, 54, 54, 0.35);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  --cursor-size: 400px;
}

/* Custom Cursor */
body {
  cursor: none;
  /* Hide default cursor */
}

.cursor-light {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--cursor-size);
  height: var(--cursor-size);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

/* Hover states for cursor */
body.hovering .cursor-light {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(224, 54, 54, 0.08) 0%, rgba(224, 54, 54, 0) 60%);
}

body.hovering .cursor-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% -10%, #131520 0%, transparent 60%),
    radial-gradient(1000px 600px at 100% 0%, #101219 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Header / Transparent Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transform: translate3d(0, 0, 0);
  transition: transform 450ms cubic-bezier(.22, .61, .36, 1), background 200ms ease;
  will-change: transform, background;
}

.site-header.scrolled {
  background: var(--glass-strong);
}

.site-header.hide {
  transform: translate3d(0, -100%, 0);
}

.site-header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
  border-radius: 4px;
}

.logo-img {
  height: 64px;
  width: auto;
  display: block;
}

@media (min-width: 900px) {
  .logo-img {
    height: 88px;
  }
}

.nav {
  display: flex;
  gap: 64px;
  justify-self: center;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.98rem;
}

.nav a:hover {
  color: var(--text);
}

.nav a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
  border-radius: 4px;
}

.audio-toggle {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.audio-toggle[aria-pressed="true"] {
  outline: 2px solid var(--ring);
}

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.menu-icon {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: background 0.3s;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  bottom: -6px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile navigation styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 12px 24px;
    display: block;
    border-left: 3px solid transparent;
    transition: border-color 0.2s, background 0.2s;
  }

  .nav a:hover,
  .nav a:focus {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--accent);
  }

  .site-header .container {
    grid-template-columns: auto 1fr;
    position: relative;
  }
}

/* Buttons - Horror Game Studio Theme */
.btn {
  --p: 11px 22px;
  --radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--p);
  border-radius: var(--radius);
  border: 2px solid rgba(224, 54, 54, 0.4);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 100%),
    linear-gradient(135deg, rgba(15, 17, 22, 0.98), rgba(10, 11, 13, 0.98));
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    inset 2px 0 0 rgba(224, 54, 54, 0.15);
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(224, 54, 54, 0.05) 20%,
      rgba(224, 54, 54, 0.15) 50%,
      rgba(224, 54, 54, 0.05) 80%,
      transparent 100%);
  opacity: 0;
  transform: translateX(-100%);
  transition: all 400ms ease;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(224, 54, 54, 0.8) 30%,
      rgba(224, 54, 54, 1) 50%,
      rgba(224, 54, 54, 0.8) 70%,
      transparent 100%);
  box-shadow: 0 0 8px rgba(224, 54, 54, 0.8);
}

.btn:hover::before {
  opacity: 1;
  transform: translateX(100%);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(224, 54, 54, 0.7);
  box-shadow:
    0 6px 24px rgba(224, 54, 54, 0.35),
    0 3px 12px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 0 rgba(0, 0, 0, 0.6),
    inset 2px 0 0 rgba(224, 54, 54, 0.3);
}

.btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.7),
    inset 0 2px 6px rgba(0, 0, 0, 0.6),
    inset 2px 0 0 rgba(224, 54, 54, 0.4);
}

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--accent),
    0 6px 24px rgba(224, 54, 54, 0.4);
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  padding: 0;
}

.steam-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.btn-icon {
  padding: 14px;
  width: 52px;
  height: 52px;
  border-radius: 6px;
}

.btn-icon .steam-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@media (min-width: 900px) {
  .btn-icon {
    width: 58px;
    height: 58px;
  }
}

.btn-primary {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%),
    linear-gradient(135deg, rgba(180, 30, 30, 1), rgba(100, 10, 10, 1));
  border-color: rgba(200, 40, 40, 0.9);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 0 12px rgba(224, 54, 54, 0.5);
  box-shadow:
    0 4px 16px rgba(224, 54, 54, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.6),
    inset 2px 0 0 rgba(255, 100, 100, 0.3);
}

.btn-primary::before {
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(255, 150, 150, 0.2) 20%,
      rgba(255, 100, 100, 0.4) 50%,
      rgba(255, 150, 150, 0.2) 80%,
      transparent 100%);
}

.btn-primary::after {
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(255, 80, 80, 1) 30%,
      rgba(255, 50, 50, 1) 50%,
      rgba(255, 80, 80, 1) 70%,
      transparent 100%);
  box-shadow: 0 0 12px rgba(255, 80, 80, 1);
}

.btn-primary:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%),
    linear-gradient(135deg, rgba(220, 50, 50, 1), rgba(140, 20, 20, 1));
  border-color: rgba(255, 70, 70, 1);
  box-shadow:
    0 8px 32px rgba(224, 54, 54, 0.6),
    0 4px 16px rgba(224, 54, 54, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.7),
    inset 2px 0 0 rgba(255, 120, 120, 0.5);
  transform: translateY(-3px);
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 16px rgba(255, 80, 80, 0.8);
}

.btn-primary:active {
  box-shadow:
    0 2px 8px rgba(224, 54, 54, 0.5),
    0 1px 4px rgba(0, 0, 0, 0.8),
    inset 0 2px 8px rgba(0, 0, 0, 0.7),
    inset 2px 0 0 rgba(224, 54, 54, 0.6);
}

.btn-ghost {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 100%),
    rgba(15, 17, 22, 0.7);
  color: var(--text);
  border-color: rgba(224, 54, 54, 0.35);
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    inset 2px 0 0 rgba(224, 54, 54, 0.1);
}

.btn-ghost::before {
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(224, 54, 54, 0.05) 20%,
      rgba(224, 54, 54, 0.12) 50%,
      rgba(224, 54, 54, 0.05) 80%,
      transparent 100%);
}

.btn-ghost::after {
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(224, 54, 54, 0.6) 30%,
      rgba(224, 54, 54, 0.8) 50%,
      rgba(224, 54, 54, 0.6) 70%,
      transparent 100%);
  box-shadow: 0 0 8px rgba(224, 54, 54, 0.6);
}

.btn-ghost:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%),
    rgba(25, 28, 35, 0.9);
  border-color: rgba(224, 54, 54, 0.6);
  box-shadow:
    0 6px 20px rgba(224, 54, 54, 0.25),
    0 3px 12px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    inset 2px 0 0 rgba(224, 54, 54, 0.25);
}

.btn-ghost:active {
  background: rgba(10, 11, 13, 0.95);
  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.7),
    inset 0 2px 6px rgba(0, 0, 0, 0.6),
    inset 2px 0 0 rgba(224, 54, 54, 0.3);
}

/* Sections */
section {
  padding: 72px 0;
}

.stage,
section {
  scroll-margin-top: 100px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0;
}

.section-head p {
  color: var(--muted);
  margin-top: 6px;
}

/* Games grid */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.card {
  grid-column: span 12;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.card:focus-within {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.card .media {
  aspect-ratio: 16 / 9;
  background: #0c0e13;
}

.card .body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.card h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.card p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 680px) {
  .card {
    grid-column: span 6;
  }
}

@media (min-width: 980px) {
  .card {
    grid-column: span 4;
  }
}

/* About */
.about p {
  color: var(--muted);
  max-width: 70ch;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Footer Steam button */
.footer-steam-btn {
  padding: 8px 16px !important;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-steam-btn .steam-icon {
  width: 16px;
  height: 16px;
}

.footer-steam-btn span {
  color: var(--muted);
}

.footer-steam-btn:hover span {
  color: var(--text);
}

/* Mobile footer adjustments */
@media (max-width: 600px) {
  .site-footer .container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* Motion accessibility: reduce large/continuous effects, keep essential UI transitions */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  /* Keep simple crossfades for essential UI; they are low-motion */
}

/* ==============================
   Stage (full-viewport hero)
   ============================== */
.stage {
  position: relative;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
}

.stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(80px, 16vh, 220px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(75% 60% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35) 75%, rgba(0, 0, 0, 0.65) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.stage-track {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  will-change: transform;
}

.stage-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
}

.stage-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-items: end;
  height: 100%;
  padding-bottom: 8vh;
}

.stage-info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 28px;
  row-gap: 10px;
  justify-items: start;
}

.stage-brand {
  display: flex;
  align-items: center;
}

.stage-logo {
  width: min(520px, 60vw);
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6));
}

.stage-copy {
  max-width: 70ch;
}

.stage-desc {
  color: var(--text);
  opacity: 0.9;
  margin: 6px 0 14px;
  text-wrap: pretty;
}

.stage-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  z-index: 3;
  display: grid;
  gap: 10px;
}

.card h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.card p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 680px) {
  .card {
    grid-column: span 6;
  }
}

@media (min-width: 980px) {
  .card {
    grid-column: span 4;
  }
}

/* About */
.about p {
  color: var(--muted);
  max-width: 70ch;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Footer Steam button */
.footer-steam-btn {
  padding: 8px 16px !important;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-steam-btn .steam-icon {
  width: 16px;
  height: 16px;
}

.footer-steam-btn span {
  color: var(--muted);
}

.footer-steam-btn:hover span {
  color: var(--text);
}

/* Mobile footer adjustments */
@media (max-width: 600px) {
  .site-footer .container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* Motion accessibility: reduce large/continuous effects, keep essential UI transitions */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  /* Keep simple crossfades for essential UI; they are low-motion */
}

/* ==============================
   Stage (full-viewport hero)
   ============================== */
.stage {
  position: relative;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
}

.stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(80px, 16vh, 220px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(75% 60% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35) 75%, rgba(0, 0, 0, 0.65) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.stage-track {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  will-change: transform;
}

.stage-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
}

.stage-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-items: end;
  height: 100%;
  padding-bottom: 8vh;
}

.stage-info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 28px;
  row-gap: 10px;
  justify-items: start;
}

.stage-brand {
  display: flex;
  align-items: center;
}

.stage-logo {
  width: min(520px, 60vw);
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6));
}

.stage-copy {
  max-width: 70ch;
}

.stage-desc {
  color: var(--text);
  opacity: 0.9;
  margin: 6px 0 14px;
  text-wrap: pretty;
}

.stage-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  z-index: 3;
  display: grid;
  gap: 10px;
}

.card h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.card p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 680px) {
  .card {
    grid-column: span 6;
  }
}

@media (min-width: 980px) {
  .card {
    grid-column: span 4;
  }
}

/* About */
.about p {
  color: var(--muted);
  max-width: 70ch;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Footer Steam button */
.footer-steam-btn {
  padding: 8px 16px !important;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-steam-btn .steam-icon {
  width: 16px;
  height: 16px;
}

.footer-steam-btn span {
  color: var(--muted);
}

.footer-steam-btn:hover span {
  color: var(--text);
}

/* Mobile footer adjustments */
@media (max-width: 600px) {
  .site-footer .container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* Motion accessibility: reduce large/continuous effects, keep essential UI transitions */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  /* Keep simple crossfades for essential UI; they are low-motion */
}

/* ==============================
   Stage (full-viewport hero)
   ============================== */
.stage {
  position: relative;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
}

.stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(80px, 16vh, 220px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(75% 60% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35) 75%, rgba(0, 0, 0, 0.65) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.stage-track {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  will-change: transform;
}

.stage-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
}

.stage-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-items: end;
  height: 100%;
  padding-bottom: 8vh;
}

.stage-info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 28px;
  row-gap: 10px;
  justify-items: start;
}

.stage-brand {
  display: flex;
  align-items: center;
}

.stage-logo {
  width: min(520px, 60vw);
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6));
}

.stage-copy {
  max-width: 70ch;
}

.stage-desc {
  color: var(--text);
  opacity: 0.9;
  margin: 6px 0 14px;
  text-wrap: pretty;
}

.stage-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  z-index: 3;
  border: 2px solid rgba(224, 54, 54, 0.5);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 100%),
    linear-gradient(135deg, rgba(15, 17, 22, 0.95), rgba(10, 11, 13, 0.95));
  color: var(--text);
  width: 50px;
  height: 50px;
  border-radius: 2px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    inset 2px 0 0 rgba(224, 54, 54, 0.2);
  transition: opacity 220ms ease, background 150ms ease, transform 220ms ease, border-color 150ms ease, box-shadow 200ms ease;
}

.stage:hover .stage-btn,
.stage:focus-within .stage-btn {
  opacity: 1;
  pointer-events: auto;
}

.stage-btn.prev {
  left: 12px;
}

.stage-btn.next {
  right: 12px;
}

.stage-btn.prev {
  transform: translateY(-50%) translateX(-8px);
}

.stage-btn.next {
  transform: translateY(-50%) translateX(8px);
}

.stage:hover .stage-btn.prev,
.stage:focus-within .stage-btn.prev {
  transform: translateY(-50%) translateX(0);
}

.stage:hover .stage-btn.next,
.stage:focus-within .stage-btn.next {
  transform: translateY(-50%) translateX(0);
}

.stage-btn:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%),
    linear-gradient(135deg, rgba(25, 28, 35, 1), rgba(15, 17, 22, 1));
  border-color: rgba(224, 54, 54, 0.8);
  box-shadow:
    0 6px 24px rgba(224, 54, 54, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.6),
    inset 2px 0 0 rgba(224, 54, 54, 0.4);
}

.stage-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.stage-dots button {
  width: 12px;
  height: 12px;
  border-radius: 1px;
  border: 2px solid rgba(224, 54, 54, 0.4);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 100%),
    rgba(15, 17, 22, 0.9);
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    inset 1px 0 0 rgba(224, 54, 54, 0.15);
  position: relative;
}

.stage-dots button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(224, 54, 54, 0.6) 50%,
      transparent 100%);
  opacity: 0.5;
}

.stage-dots button:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%),
    rgba(224, 54, 54, 0.25);
  border-color: rgba(224, 54, 54, 0.7);
  box-shadow:
    0 3px 12px rgba(224, 54, 54, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.6),
    inset 1px 0 0 rgba(224, 54, 54, 0.3);
}

.stage-dots button[aria-current="true"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%),
    linear-gradient(135deg, rgba(180, 30, 30, 1), rgba(100, 10, 10, 1));
  border-color: rgba(224, 54, 54, 1);
  box-shadow:
    0 0 16px rgba(224, 54, 54, 0.8),
    0 0 8px rgba(255, 80, 80, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.5),
    inset 1px 0 0 rgba(255, 100, 100, 0.4);
}

.stage-dots button[aria-current="true"]::after {
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(255, 80, 80, 1) 50%,
      transparent 100%);
  opacity: 1;
  box-shadow: 0 0 6px rgba(255, 80, 80, 1);
}

@media (max-width: 900px) {
  .stage-info {
    grid-template-columns: 1fr;
  }

  .stage-logo {
    width: min(360px, 70vw);
  }
}

/* Stage controls: pause + progress slider */
.stage-controls {
  position: absolute;
  right: 32px;
  bottom: 30px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 150ms ease, transform 160ms ease, border-color 150ms ease;
}

.stage-toggle:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.stage-toggle .bar {
  display: inline-block;
  width: 3px;
  height: 14px;
  background: #fff;
  margin: 0 1px;
  border-radius: 2px;
}

.stage-toggle[aria-pressed="false"] .bar {
  display: none;
}

.stage-toggle[aria-pressed="false"] .bar:first-child {
  width: 0;
  height: 0;
  margin: 0;
}

.stage-toggle[aria-pressed="false"] .bar:last-child {
  width: 0;
  height: 0;
  margin: 0;
}

.stage-toggle[aria-pressed="false"]::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #fff;
  margin-left: 2px;
}

.stage-slider {
  width: 120px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.stage-progress {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.55);
  transition: width 80ms linear;
}

/* Latest rail */
.latest {
  padding: 54px 0 8px;
}

.rail {
  position: relative;
}

.rail::before,
.rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity 200ms ease;
}

.rail::before {
  left: 0;
  background: linear-gradient(90deg, rgba(10, 11, 13, 0.95), rgba(10, 11, 13, 0));
}

.rail::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(10, 11, 13, 0.95), rgba(10, 11, 13, 0));
}

.rail.at-start::before {
  opacity: 0;
}

.rail.at-end::after {
  opacity: 0;
}

.rail-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  z-index: 2;
  border: 2px solid rgba(224, 54, 54, 0.5);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 100%),
    linear-gradient(135deg, rgba(15, 17, 22, 0.96), rgba(10, 11, 13, 0.96));
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 2px;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  font-size: 22px;
  box-shadow:
    0 3px 14px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    inset 2px 0 0 rgba(224, 54, 54, 0.2);
  transition: opacity 200ms ease, background 150ms ease, transform 220ms ease, border-color 150ms ease, box-shadow 200ms ease;
  backdrop-filter: blur(10px);
}

.rail:hover .rail-btn,
.rail:focus-within .rail-btn {
  opacity: 1;
  pointer-events: auto;
}

.rail-btn.left {
  left: 6px;
  transform: translateY(-50%) translateX(-6px);
}

.rail-btn.right {
  right: 6px;
  transform: translateY(-50%) translateX(6px);
}

.rail:hover .rail-btn.left,
.rail:focus-within .rail-btn.left {
  transform: translateY(-50%) translateX(0);
}

.rail:hover .rail-btn.right,
.rail:focus-within .rail-btn.right {
  transform: translateY(-50%) translateX(0);
}

.rail-btn:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%),
    linear-gradient(135deg, rgba(25, 28, 35, 1), rgba(15, 17, 22, 1));
  border-color: rgba(224, 54, 54, 0.8);
  box-shadow:
    0 5px 20px rgba(224, 54, 54, 0.35),
    0 3px 14px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 0 rgba(0, 0, 0, 0.6),
    inset 2px 0 0 rgba(224, 54, 54, 0.35);
}

.rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 40px;
  scroll-snap-type: x proximity;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
}

.rail-track.dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.rail-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  scroll-snap-align: start;
}

.rail-card:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.rail-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  filter: saturate(0.7) contrast(1.05);
}

.rail-meta {
  padding: 10px;
  display: grid;
  gap: 4px;
}

.rail-meta h3 {
  font-size: 1rem;
  margin: 0;
}

.rail-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Game cards: hover video preview */
.game-card .media {
  position: relative;
}

.game-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card .media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -80px 80px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* Social Nav */
.social-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-right: 16px;
}

.social-nav a {
  display: block;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}

.social-nav a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.social-nav .icon {
  width: 20px;
  height: 20px;
  filter: invert(1);
  /* Make white if SVGs are black */
}

@media (max-width: 768px) {
  .hidden-mobile {
    display: none;
  }
}

/* YouTube Carousel */
.yt-carousel {
  position: relative;
  margin-top: 32px;
  padding: 0 48px;
}

.yt-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scrollbar-width: none;
  /* Firefox */
}

.yt-track::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.yt-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
}

@media (min-width: 768px) {
  .yt-slide {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (min-width: 1024px) {
  .yt-slide {
    flex: 0 0 calc(33.333% - 16px);
  }
}

.yt-embed {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  background: #000;
}

.yt-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.yt-slide h3 {
  padding: 16px;
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.yt-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.yt-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.yt-btn.prev {
  left: 0;
}

.yt-btn.next {
  right: 0;
}

/* Mute Icon */
.audio-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}