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

html {
  background: #0a0812;
  scroll-behavior: smooth;
}

body {
  color: #f0eaff;
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
}

#bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
}

/* ── PARTICLES ── */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 14px 44px;
  background: rgba(10, 8, 18, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  transition: filter 0.35s ease;
}

.nav-logo:hover img {
  filter:
    drop-shadow(0 0 6px rgba(129,90,235,0.9))
    drop-shadow(0 0 18px rgba(129,90,235,0.5))
    drop-shadow(0 0 36px rgba(129,90,235,0.25));
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 80px;
  list-style: none;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.43em;
  text-transform: uppercase;
  color: rgba(240,234,255,0.6);
  text-decoration: none;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.nav-links a:hover {
  color: #f0eaff;
  text-shadow:
    0 0 6px rgba(129,90,235,0.9),
    0 0 18px rgba(129,90,235,0.5),
    0 0 36px rgba(129,90,235,0.25);
}

.nav-secret {
  color: rgba(240,234,255,0.2) !important;
  letter-spacing: 0.2em !important;
}

.nav-secret.is-glitching {
  color: rgba(240,234,255,0.85) !important;
  text-shadow:
    0 0 6px rgba(129,90,235,0.9),
    0 0 18px rgba(129,90,235,0.5) !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.45em;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: rgba(240,234,255,0.5);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.lang-btn:hover,
.lang-btn.is-open {
  color: #f0eaff;
  border-color: rgba(129,90,235,0.45);
}

.lang-chevron {
  font-size: 9px;
  transition: transform 0.2s;
}

.lang-btn.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 190px;
  max-height: 320px;
  overflow-y: auto;
  background: rgba(10, 8, 20, 0.96);
  border: 1px solid rgba(129,90,235,0.2);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: none;
  flex-direction: column;
  padding: 4px;
  z-index: 200;
  scrollbar-width: thin;
  scrollbar-color: rgba(129,90,235,0.3) transparent;
}

.lang-dropdown.is-open {
  display: flex;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  border-radius: 5px;
  padding: 7px 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  width: 100%;
}

.lang-item:hover {
  background: rgba(129,90,235,0.12);
}

.lang-item.is-active {
  background: rgba(129,90,235,0.18);
}

.lang-code {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(129,90,235,0.75);
  min-width: 36px;
}

.lang-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(240,234,255,0.65);
}

.lang-item.is-active .lang-name {
  color: #f0eaff;
}

.socials {
  display: flex;
  gap: 22px;
  align-items: center;
}

.socials a {
  color: rgba(240,234,255,0.35);
  font-size: 18px;
  text-decoration: none;
  transition: color 0.2s;
}

.socials a:hover { color: #f0eaff; }

/* ── HERO SECTION ── */
/* No z-index here — keeps hero out of stacking context
   so the fixed canvas (z:1) stays visible above bg-img (z:0)
   while hero content (z:2) sits above the canvas */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, #06080a);
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -4vw;
}

.hero-logo {
  width: 28vw;
  height: auto;
  display: block;
}

.tagline {
  font-family: 'Inter', sans-serif;
  font-size: 1.65vw;
  font-weight: 400;
  letter-spacing: 0.43em;
  text-transform: uppercase;
  color: #815AEB;
  margin-top: 30px;
  padding-left: 0.43em;
}

/* ── CTA BUTTONS ── */
.cta-group {
  display: flex;
  gap: 1vw;
  margin-top: 3vw;
  flex-wrap: wrap;
  justify-content: center;
}

.store-icon {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.cta-game-logo {
  height: 1.4em;
  width: auto;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 1vw;
  font-weight: 500;
  letter-spacing: 0.43em;
  text-transform: uppercase;
  color: rgba(240,234,255,0.85);
  background: transparent;
  border: 1px solid #815AEB;
  border-radius: 999px;
  padding: 0.9vw 2.4vw;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
  background: rgba(129,90,235,0.15);
  color: #fff;
  box-shadow: 0 0 28px rgba(129,90,235,0.35);
}

/* Scroll hint arrow */
.scroll-hint {
  position: absolute;
  bottom: 2.5vw;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(240,234,255,0.25);
  font-size: 18px;
  text-decoration: none;
  animation: bounce 2.2s ease-in-out infinite;
  z-index: 3;
  transition: color 0.2s;
}

.scroll-hint:hover { color: rgba(240,234,255,0.6); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── GAME SECTION ── */
.game-section {
  position: relative;
  min-height: calc(100vh - 64px);
  background: #06080a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3vw;
  padding: 3vw 8vw;
  scroll-margin-top: 64px;
  z-index: 2;
  overflow: hidden;
}

.game-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6vw;
  width: 100%;
}

/* Pool water glow from center */
.game-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 70vh;
  background: radial-gradient(ellipse, rgba(50,185,175,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.05) 3px,
    rgba(0,0,0,0.05) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.game-content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 44vw;
}

.game-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72vw;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: rgba(100,210,200,0.72);
  text-transform: uppercase;
  margin-bottom: 1.6vw;
}

.game-logo {
  width: 42vw;
  height: auto;
  display: block;
  margin-bottom: 2vw;
  animation: glitch-logo 7s infinite;
}

.game-genre {
  font-family: 'Inter', sans-serif;
  font-size: 0.72vw;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: rgba(90,185,178,0.7);
  text-transform: uppercase;
  margin-bottom: 2.8vw;
}

.game-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1.05vw;
  font-weight: 400;
  line-height: 1.85;
  color: rgba(190,220,218,0.85);
  margin-bottom: 3.5vw;
}

.game-cta {
  width: 100%;
  margin-top: 0;
  flex-wrap: nowrap;
  gap: 0.6vw;
  justify-content: center;
}

.cta-btn--game {
  border-color: rgba(80,185,178,0.32);
  color: rgba(130,210,205,0.75);
  font-size: 0.85vw;
}

.cta-btn--game:hover {
  background: rgba(60,175,168,0.1);
  color: #78ddd5;
  box-shadow: 0 0 24px rgba(50,170,162,0.22);
}

.itch-support-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 3vw;
  padding: 0 6vw;
}

.itch-support-wrap iframe {
  max-width: 100%;
  border-radius: 4px;
}

.itch-support-note {
  font-family: 'Inter', sans-serif;
  font-size: max(0.7vw, 10px);
  color: rgba(180,180,180,0.55);
  text-align: center;
  max-width: 550px;
  line-height: 1.6;
}

.store-icon--game {
  filter: brightness(0) invert(80%) sepia(30%) saturate(400%) hue-rotate(145deg);
  opacity: 0.78;
}

/* ── GAME TRAILER ── */
.game-screen {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 46vw;
}

.game-trailer {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid rgba(60,185,178,0.1);
  box-shadow: 0 0 55px rgba(40,160,152,0.1);
  filter: saturate(0.9) brightness(0.92);
}

.game-trailer-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(6,8,10,0.4) 0%, transparent 12%, transparent 88%, rgba(6,8,10,0.4) 100%),
    linear-gradient(to bottom, rgba(6,8,10,0.3) 0%, transparent 12%, transparent 85%, rgba(6,8,10,0.5) 100%);
  pointer-events: none;
}

/* ── TRAILER CONTROLS ── */
.trailer-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 1vw 0.7vw;
  background: linear-gradient(to top, rgba(3,9,11,0.85) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.game-screen:hover .trailer-controls { opacity: 1; }

.tc-seek-wrap {
  position: relative;
  height: 3px;
  margin-bottom: 0.55vw;
  cursor: pointer;
}

.tc-seek-bg {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}

.tc-seek-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: rgba(80,200,192,0.75);
  border-radius: 2px;
  pointer-events: none;
}

.tc-seek {
  position: absolute;
  inset: -6px 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
  height: 14px;
  margin: 0;
}

.tc-bottom {
  display: flex;
  align-items: center;
  gap: 0.8vw;
}

.tc-btn {
  background: none;
  border: none;
  color: rgba(200,235,232,0.7);
  font-size: 0.85vw;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}

.tc-btn:hover { color: #78ddd5; }

.tc-time {
  font-family: 'Inter', sans-serif;
  font-size: 0.65vw;
  color: rgba(180,220,216,0.5);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.tc-vol-wrap {
  display: flex;
  align-items: center;
  gap: 0.5vw;
  margin-left: auto;
}

.tc-vol-track {
  position: relative;
  width: 5vw;
  height: 3px;
  cursor: pointer;
}

.tc-vol-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: rgba(80,200,192,0.65);
  border-radius: 2px;
  pointer-events: none;
}

.tc-vol {
  position: absolute;
  inset: -6px 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
  height: 14px;
  margin: 0;
}

/* ── TRAILER ── */
.trailer-section {
  position: relative;
  background: #03090b;
  z-index: 2;
  padding: 0 8vw 6vw;
}

.trailer-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(60,185,178,0.08);
}

.trailer-video {
  width: 100%;
  display: block;
  filter: saturate(0.88) brightness(0.92);
}

.trailer-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(3,9,11,0.45) 0%, transparent 12%, transparent 88%, rgba(3,9,11,0.45) 100%),
    linear-gradient(to bottom, rgba(3,9,11,0.35) 0%, transparent 10%, transparent 88%, rgba(3,9,11,0.55) 100%);
  pointer-events: none;
}

/* ── SHARED SECTION LABEL ── */
.section-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65vw;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: rgba(80,190,182,0.65);
  text-transform: uppercase;
  margin-bottom: 2.2vw;
}

/* ── SCREENSHOTS ── */
.screenshots-section {
  position: relative;
  background: #03090b;
  z-index: 2;
  padding: 0 8vw 6vw;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.screenshots-header {
  margin-bottom: 2.2vw;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.shot {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  filter: grayscale(0.55) brightness(0.72) saturate(0.7);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.shot--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.shot--featured img {
  aspect-ratio: unset;
  height: 100%;
}

/* Teal border glow on hover */
.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(60,185,178,0);
  transition: border-color 0.4s, box-shadow 0.4s;
  pointer-events: none;
  z-index: 3;
}

.shot:hover::after {
  border-color: rgba(60,185,178,0.35);
  box-shadow: inset 0 0 22px rgba(40,170,162,0.12);
}

.shot:hover img {
  filter: grayscale(0) brightness(0.95) saturate(1.05);
  transform: scale(1.03);
}

/* Light sweep on hover */
.shot-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(180,235,230,0.07) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: none;
  z-index: 2;
  pointer-events: none;
}

.shot:hover .shot-sweep {
  animation: shot-sweep-anim 0.55s ease forwards;
}

/* Glitch flash on hover */
.shot-glitch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.shot:hover .shot-glitch {
  animation: shot-glitch-anim 0.5s steps(1) forwards;
}

@keyframes shot-sweep-anim {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

@keyframes shot-glitch-anim {
  0%   { background: none; clip-path: none; }
  15%  {
    background: rgba(40,200,192,0.06);
    clip-path: inset(22% 0 55% 0);
    transform: translateX(-4px);
  }
  25%  { background: none; clip-path: none; transform: none; }
  35%  {
    background: rgba(255,40,80,0.04);
    clip-path: inset(60% 0 18% 0);
    transform: translateX(3px);
  }
  45%  { background: none; clip-path: none; transform: none; }
  100% { background: none; }
}

.shot--hidden { display: none; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 8, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-img-wrap {
  position: relative;
  z-index: 2;
  max-width: 88vw;
  max-height: 84vh;
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.lightbox.is-open .lightbox-img-wrap {
  transform: scale(1);
}

.lightbox-img-wrap img {
  display: block;
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
  border: 1px solid rgba(60,185,178,0.12);
  box-shadow: 0 0 60px rgba(30,150,142,0.15);
}

.lightbox-glitch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: shot-glitch-anim 0.45s steps(1) forwards;
}

.lightbox-close {
  position: absolute;
  top: 2vw; right: 2vw;
  z-index: 3;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(200,235,232,0.6);
  font-size: 1.1vw;
  width: 2.4vw; height: 2.4vw;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}

.lightbox-close:hover {
  color: #78ddd5;
  border-color: rgba(60,185,178,0.5);
}

.lightbox-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(200,235,232,0.5);
  font-size: 1vw;
  width: 3vw; height: 3vw;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lightbox-arrow:hover {
  color: #78ddd5;
  border-color: rgba(60,185,178,0.45);
  background: rgba(40,160,152,0.08);
}

.lightbox-prev { left: 2.5vw; }
.lightbox-next { right: 2.5vw; }

.lightbox-counter {
  position: absolute;
  bottom: 2.2vw;
  left: 50%; transform: translateX(-50%);
  z-index: 3;
  font-family: 'Inter', sans-serif;
  font-size: 0.7vw;
  letter-spacing: 0.2em;
  color: rgba(160,210,206,0.35);
}

/* ── GIFS ── */
.gifs-section {
  position: relative;
  background: #03090b;
  z-index: 2;
  padding: 0 8vw 6vw;
}

.gifs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  max-width: 1200px;
  margin: 0 auto;
}

.gif-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(60,185,178,0.06);
}

.gif-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
  transition: filter 0.4s;
}

.gif-card:hover img {
  filter: saturate(1.15) brightness(1.0);
}

/* ── FEATURES SECTION ── */
.features-section {
  position: relative;
  background: #03090b;
  padding: 0 8vw 8vw;
  z-index: 2;
}

.features-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(50,175,168,0.15), transparent);
  margin-bottom: 6vw;
}

.features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(50,170,162,0.06);
  border: 1px solid rgba(50,170,162,0.06);
}

.feature-card {
  aspect-ratio: 1;
  padding: 3.5vw 2.8vw 3.2vw;
  background: #03090b;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 9, 0.88);
  box-shadow: inset 0 0 5vw 2vw rgba(2, 7, 9, 0);
  transition: background 0.4s, box-shadow 0.4s;
  z-index: 0;
}

.feature-card:hover::after {
  background: rgba(2, 7, 9, 0.62);
  box-shadow: inset 0 0 5vw 2vw rgba(2, 7, 9, 0.40);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(60,185,178,0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  position: relative;
  z-index: 1;
  font-size: 1.5vw;
  color: rgba(60,185,178,0.6);
  margin-bottom: 1.8vw;
  display: block;
  transition: color 0.4s;
}

.feature-card:hover .feature-icon {
  color: rgba(80,210,202,0.90);
}

.feature-title {
  position: relative;
  z-index: 1;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78vw;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(110,200,194,0.9);
  margin-bottom: 1.4vw;
  text-transform: uppercase;
  transition: color 0.4s;
}

.feature-card:hover .feature-title {
  color: rgba(150,225,218,0.95);
}

.feature-desc {
  position: relative;
  z-index: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.88vw;
  line-height: 1.78;
  color: rgba(160,210,206,0.75);
  transition: color 0.4s;
}

.feature-card:hover .feature-desc {
  color: rgba(200,230,226,0.95);
}

/* ── CAPTURED ON TAPE ── */
.tape-section {
  position: relative;
  background: #03090b;
  z-index: 2;
  padding: 0 8vw 8vw;
}

.tape-header {
  margin-bottom: 2.2vw;
}

.tape-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2vw;
}

.tape-item {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.tape-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid rgba(60,185,178,0.12);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.tape-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.7) contrast(1.05) brightness(0.85);
}

.tape-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.14) 3px,
    rgba(0,0,0,0.14) 4px
  );
  pointer-events: none;
}

.tape-caption {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9vw;
  color: rgba(160,210,206,0.7);
  letter-spacing: 0.06em;
  text-align: center;
  font-style: italic;
}

/* ── EXPLORE ── */
.explore-section {
  position: relative;
  background: #03090b;
  z-index: 2;
  padding: 0 8vw 8vw;
}

.explore-header {
  margin-bottom: 2.2vw;
}

.explore-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.82vw;
  color: rgba(160,210,206,0.65);
  margin-top: 0.6vw;
  letter-spacing: 0.06em;
}

.explore-layout {
  display: flex;
  gap: 2vw;
  align-items: stretch;
}

.explore-viewer {
  flex: 1.6;
  position: relative;
  display: flex;
  align-items: center;
}

.explore-cells {
  flex: 1;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.explore-cell {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  cursor: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.explore-cell.is-active {
  opacity: 1;
  pointer-events: all;
}

.explore-nav-btn {
  position: absolute;
  z-index: 3;
  background: rgba(4,14,16,0.7);
  border: 1px solid rgba(60,185,178,0.25);
  color: rgba(160,210,206,0.7);
  font-size: 1vw;
  width: 2.4vw;
  height: 2.4vw;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.explore-nav-btn:hover {
  color: #78ddd5;
  border-color: rgba(60,185,178,0.6);
  background: rgba(60,185,178,0.1);
}

.explore-nav-prev { left: -1.4vw; }
.explore-nav-next { right: -1.4vw; }

.explore-map-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.explore-map-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.6vw;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(60,185,178,0.5);
}

.explore-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-room {
  cursor: pointer;
  transition: stroke 0.25s, fill 0.25s;
}

.map-room:hover {
  stroke: rgba(60,185,178,0.55) !important;
  fill: rgba(6,24,28,0.95) !important;
}

.map-room.is-active {
  stroke: rgba(60,185,178,0.85) !important;
  fill: rgba(6,30,32,0.95) !important;
}


.map-spot {
  transition: r 0.25s, fill 0.25s;
  cursor: pointer;
}

.map-spot.is-active {
  fill: rgba(60,185,178,0.85) !important;
  stroke: rgba(120,220,215,1) !important;
}


.explore-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle var(--cr, 0px) at var(--cx, 50%) var(--cy, 50%), rgba(2,7,9,0.0) 0%, rgba(2,7,9,0.96) 100%);
}

.explore-clue {
  position: absolute;
  z-index: 1;
  font-family: 'Orbitron', monospace;
  font-size: 1.1vw;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(180, 230, 220, 0.82);
  text-shadow: 0 0 12px rgba(80,210,200,0.6);
  pointer-events: none;
  user-select: none;
}

.explore-code-wrap {
  margin-top: 2.5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2vw;
}

.explore-code-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72vw;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(110,200,194,0.5);
}

.explore-code-inputs {
  display: flex;
  gap: 0.8vw;
}

.code-char {
  width: 3.2vw;
  height: 3.2vw;
  background: rgba(4,16,18,0.9);
  border: 1px solid rgba(60,185,178,0.25);
  color: rgba(150,225,218,0.9);
  font-family: 'Orbitron', monospace;
  font-size: 1.1vw;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.code-char:focus {
  border-color: rgba(60,185,178,0.6);
  box-shadow: 0 0 14px rgba(60,185,178,0.15);
}

.code-char.is-correct {
  border-color: rgba(60,185,178,0.8);
  box-shadow: 0 0 20px rgba(60,185,178,0.3);
  color: rgba(100,230,215,1);
}

.code-char.is-wrong {
  border-color: rgba(200,60,60,0.6);
  box-shadow: 0 0 14px rgba(200,60,60,0.2);
}

.explore-code-msg {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72vw;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(60,185,178,0.7);
  min-height: 1.2em;
}

/* ── WALLPAPERS ── */
.wallpapers-section {
  position: relative;
  background: #03090b;
  z-index: 2;
  padding: 0 8vw 8vw;
}

.wp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.2vw;
}

.wp-tabs {
  display: flex;
  gap: 0.4vw;
}

.wp-tab {
  background: none;
  border: 1px solid rgba(60,185,178,0.2);
  color: rgba(110,200,194,0.45);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.62vw;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.4vw 1.1vw;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.wp-tab:hover,
.wp-tab.is-active {
  color: rgba(110,200,194,0.9);
  border-color: rgba(60,185,178,0.5);
  background: rgba(60,185,178,0.06);
}

.wp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.wp-hidden { display: none; }

.wp-cell--hidden {
  display: none;
}

.wp-cell {
  animation: wp-fadein 0.4s ease both;
}

@keyframes wp-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wp-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3vw;
  margin: 2vw auto 0;
  background: none;
  border: none;
  color: rgba(110,200,194,0.35);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.52vw;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s;
}

.wp-toggle:hover {
  color: rgba(110,200,194,0.7);
}

.wp-toggle-icon {
  font-size: 0.7vw;
  transition: transform 0.4s ease;
}

.wp-cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  background: #03090b;
}

.wp-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s, filter 0.4s;
  filter: brightness(0.75) saturate(0.8);
}

.wp-cell:hover img {
  transform: scale(1.04);
  filter: brightness(1) saturate(1);
}

.wp-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.2vw;
  background: linear-gradient(to top, rgba(2,7,9,0.7) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
}

.wp-cell:hover .wp-overlay { opacity: 1; }

.wp-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6vw;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(150,225,218,0.9);
  border: 1px solid rgba(60,185,178,0.4);
  padding: 0.35vw 0.9vw;
  background: rgba(4,16,18,0.7);
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.wp-download:hover {
  background: rgba(60,185,178,0.15);
  color: #fff;
  border-color: rgba(60,185,178,0.7);
}

/* ── PAGE GLITCH ── */
@keyframes page-glitch-anim {
  0%   { transform: none; filter: none; opacity: 1; }
  8%   { transform: translate(-4px, 0) skewX(-3deg); filter: hue-rotate(90deg) brightness(1.6); opacity: 0.85; }
  16%  { transform: translate(5px, 0) skewX(2deg); filter: hue-rotate(-90deg); opacity: 1; }
  24%  { transform: translate(-3px, 3px); filter: hue-rotate(180deg) brightness(0.7); }
  32%  { transform: translate(4px, -2px) skewX(-2deg); filter: none; opacity: 0.9; }
  40%  { transform: translate(-5px, 0); filter: hue-rotate(90deg) brightness(1.4); }
  48%  { transform: translate(0, 3px) skewX(3deg); filter: hue-rotate(-45deg); opacity: 1; }
  56%  { transform: translate(4px, 0); filter: brightness(2); opacity: 0.7; }
  64%  { transform: translate(-2px, -3px); filter: hue-rotate(90deg); }
  72%  { transform: translate(3px, 1px) skewX(-1deg); filter: none; opacity: 1; }
  80%  { transform: translate(-1px, 0); filter: hue-rotate(45deg) brightness(1.2); }
  100% { transform: none; filter: none; opacity: 1; }
}

body.page-glitch {
  animation: page-glitch-anim 0.7s steps(2) forwards;
}

/* ── VHS MODAL ── */
.vhs-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.vhs-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.vhs-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 6, 0.92);
  cursor: pointer;
}

.vhs-frame {
  position: relative;
  z-index: 1;
  width: min(72vw, 900px);
  background: #060a0c;
  border: 1px solid rgba(180,230,100,0.2);
  box-shadow: 0 0 60px rgba(0,0,0,0.8), inset 0 0 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.vhs-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5vw 1vw;
  background: rgba(0,0,0,0.6);
  border-bottom: 1px solid rgba(180,230,100,0.1);
  font-family: 'Orbitron', monospace;
  font-size: 0.62vw;
  letter-spacing: 0.18em;
  color: rgba(180,230,100,0.7);
}

.vhs-rec {
  display: flex;
  align-items: center;
  gap: 0.4vw;
  color: rgba(220,60,60,0.9);
}

.vhs-rec-dot {
  width: 0.5vw;
  height: 0.5vw;
  border-radius: 50%;
  background: rgba(220,60,60,0.9);
  animation: rec-blink 1.1s ease-in-out infinite;
}

@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.vhs-img-wrap {
  position: relative;
  overflow: hidden;
}

.vhs-img {
  display: block;
  width: 100%;
  filter: saturate(0.7) contrast(1.1) brightness(0.88);
}

.vhs-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.18) 3px,
    rgba(0,0,0,0.18) 4px
  );
  pointer-events: none;
}

.vhs-noise {
  position: absolute;
  inset: 0;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.vhs-steam-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2vw;
  background: linear-gradient(to top, rgba(2,4,6,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s;
}

.vhs-img-wrap:hover .vhs-steam-reveal {
  opacity: 1;
}

.vhs-steam-btn {
  font-size: 0.85vw;
}

.vhs-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5vw 1vw;
  background: rgba(0,0,0,0.6);
  border-top: 1px solid rgba(180,230,100,0.1);
  font-family: 'Orbitron', monospace;
  font-size: 0.62vw;
  letter-spacing: 0.18em;
  color: rgba(180,230,100,0.4);
}

.vhs-close {
  background: none;
  border: 1px solid rgba(180,230,100,0.2);
  color: rgba(180,230,100,0.5);
  font-family: 'Orbitron', monospace;
  font-size: 0.58vw;
  letter-spacing: 0.2em;
  padding: 0.3vw 0.8vw;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.vhs-close:hover {
  color: rgba(180,230,100,0.9);
  border-color: rgba(180,230,100,0.5);
}

/* ── ABOUT ── */
/* ── STUDIO WRAP (About + Contact shared bg) ── */
.studio-wrap {
  position: relative;
}

.studio-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  z-index: 0;
}

.studio-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #06080a 0%, transparent 30%);
  pointer-events: none;
  z-index: 1;
}

.about-section {
  position: relative;
  padding: 8vw;
}

.about-inner {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8vw;
  align-items: flex-start;
}

.about-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 1.6vw;
}

.about-section .section-label {
  font-family: 'Inter', sans-serif;
  font-size: 1.65vw;
  font-weight: 400;
  letter-spacing: 0.43em;
  color: #815AEB;
}

.about-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.6vw;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #f0eaff;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(129,90,235,0.25);
}

.about-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95vw;
  line-height: 1.9;
  color: #f0eaff;
  letter-spacing: 0.04em;
  max-width: 46ch;
}

.about-stats {
  display: flex;
  gap: 3.5vw;
  margin-top: 1vw;
  padding-top: 2vw;
  border-top: 1px solid rgba(240,234,255,0.12);
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3vw;
}

.about-stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.6vw;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #f0eaff;
}

.about-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65vw;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(240,234,255,0.45);
}

.about-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2vw;
}

.about-card {
  background: rgba(10,8,20,0.6);
  border: 1px solid rgba(129,90,235,0.18);
  border-top: 2px solid rgba(129,90,235,0.55);
  padding: 2.5vw;
  display: flex;
  flex-direction: column;
  gap: 2vw;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 60px rgba(129,90,235,0.07), inset 0 0 40px rgba(129,90,235,0.03);
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: 1.2vw;
}

.about-card-img {
  width: 3.8vw;
  height: 3.8vw;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(129,90,235,0.4);
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(129,90,235,0.2);
}

.about-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.45vw;
}

.about-card-info {
  display: flex;
  flex-direction: column;
}

.about-card-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.05vw;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #f0eaff;
}

.about-card-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.66vw;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(129,90,235,0.75);
  margin-top: 0.35vw;
}

.about-card-bio {
  font-family: 'Inter', sans-serif;
  font-size: 0.82vw;
  line-height: 1.9;
  color: rgba(240,234,255,0.78);
  letter-spacing: 0.03em;
  padding-top: 1.6vw;
  border-top: 1px solid rgba(129,90,235,0.12);
}

.about-card--game {
  gap: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.about-game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/6;
  overflow: hidden;
}

.about-game-thumb img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.75) brightness(0.9);
  display: block;
}

.about-game-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,8,20,0.85) 100%);
}

.about-game-logo {
  display: none;
}

.about-game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5vw;
  align-items: center;
  padding: 1.2vw 1.8vw;
}

.about-game-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.6vw;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,234,255,0.5);
  border: 1px solid rgba(240,234,255,0.12);
  padding: 0.2vw 0.7vw;
}

.about-game-status {
  font-family: 'Inter', sans-serif;
  font-size: 0.6vw;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(129,90,235,0.9);
  border: 1px solid rgba(129,90,235,0.35);
  padding: 0.2vw 0.7vw;
  margin-left: auto;
}

.about-game-wip {
  display: flex;
  flex-direction: column;
  gap: 0.35vw;
  padding: 1.2vw 1.8vw 1.8vw;
  border-top: 1px solid rgba(129,90,235,0.12);
}

.about-game-wip-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6vw;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(129,90,235,0.6);
}

.about-game-wip-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.9vw;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #f0eaff;
}

.site-copy {
  position: absolute;
  bottom: 1.8vw;
  left: 2vw;
  z-index: 2;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(240,234,255,0.28);
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* ── CONTACT ── */
.contact-section {
  position: relative;
  padding: 2vw 8vw 8vw;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.contact-inner {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 8vw;
  align-items: flex-start;
  width: 100%;
}

.contact-section .section-label {
  font-family: 'Inter', sans-serif;
  font-size: 1.65vw;
  font-weight: 400;
  letter-spacing: 0.43em;
  color: #815AEB;
  margin-bottom: 0;
}

.contact-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 1.6vw;
}

.contact-right {
  flex: 1;
  padding-top: 3.4vw;
}

.contact-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.6vw;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #f0eaff;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(129,90,235,0.25);
}

.contact-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.95vw;
  line-height: 1.9;
  color: rgba(240,234,255,0.78);
  max-width: 42ch;
  letter-spacing: 0.04em;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: 'Inter', sans-serif;
  font-size: 0.9vw;
  letter-spacing: 0.08em;
  color: #f0eaff;
  text-decoration: none;
  border-bottom: 1px solid rgba(240,234,255,0.35);
  padding-bottom: 0.3vw;
  transition: color 0.3s, border-color 0.3s;
}

.contact-email:hover {
  color: #f0eaff;
  border-color: rgba(129,90,235,0.5);
  text-shadow:
    0 0 6px rgba(129,90,235,0.9),
    0 0 18px rgba(129,90,235,0.5),
    0 0 36px rgba(129,90,235,0.25);
}

.contact-socials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6vw;
}

.contact-social {
  display: flex;
  align-items: center;
  gap: 0.8vw;
  font-family: 'Inter', sans-serif;
  font-size: 0.78vw;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,234,255,0.85);
  text-decoration: none;
  background: transparent;
  border: 1px solid #815AEB;
  padding: 0.7vw 1vw;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.contact-social i {
  font-size: 0.9vw;
  flex-shrink: 0;
}

.contact-social:hover {
  background: rgba(129,90,235,0.15);
  color: #fff;
  box-shadow: 0 0 28px rgba(129,90,235,0.35);
}

/* ── FOOTER ── */

/* ── ANIMATIONS ── */
@keyframes glitch {
  0%, 90%, 100% { text-shadow: none; transform: translateX(0) skewX(0); }
  91% { text-shadow: -3px 0 rgba(255,20,100,0.55), 3px 0 rgba(40,225,215,0.65); transform: translateX(-3px) skewX(-1.5deg); }
  92% { text-shadow: 3px 0 rgba(255,20,100,0.55), -3px 0 rgba(40,225,215,0.65); transform: translateX(3px) skewX(1deg); }
  93% { text-shadow: none; transform: translateX(0); }
  94% { text-shadow: -1px 0 rgba(255,20,100,0.3), 1px 0 rgba(40,225,215,0.3); transform: translateX(-1px); }
  95% { text-shadow: none; transform: translateX(0); }
}

@keyframes glitch-logo {
  0%, 85%, 100% {
    clip-path: none;
    transform: translate(0, 0) skewX(0deg);
    filter: none;
    opacity: 1;
  }

  /* burst 1 */
  86% {
    clip-path: inset(18% 0 52% 0);
    transform: translate(-6px, 0) skewX(-3deg);
    filter: hue-rotate(180deg) saturate(2);
    opacity: 0.9;
  }
  86.5% {
    clip-path: inset(62% 0 8% 0);
    transform: translate(6px, 0) skewX(2deg);
    filter: hue-rotate(-90deg) saturate(3);
  }
  87% {
    clip-path: inset(35% 0 30% 0);
    transform: translate(-3px, 2px) skewX(1deg);
    filter: hue-rotate(90deg) saturate(2);
  }
  87.5% {
    clip-path: none;
    transform: translate(4px, 0) skewX(0deg);
    filter: brightness(1.6) saturate(0.4);
    opacity: 1;
  }
  88% {
    clip-path: none;
    transform: translate(0, 0);
    filter: none;
    opacity: 1;
  }

  /* burst 2 — faster, smaller */
  92% {
    clip-path: inset(44% 0 44% 0);
    transform: translate(8px, 0);
    filter: hue-rotate(200deg) saturate(4) brightness(1.4);
    opacity: 0.85;
  }
  92.3% {
    clip-path: inset(5% 0 80% 0);
    transform: translate(-5px, 0) skewX(-2deg);
    filter: hue-rotate(-120deg) saturate(3);
  }
  92.6% {
    clip-path: none;
    transform: translate(2px, 0);
    filter: brightness(2) saturate(0.2);
  }
  93% {
    clip-path: none;
    transform: translate(0, 0);
    filter: none;
    opacity: 1;
  }
}

@keyframes water-shimmer {
  0%, 100% { opacity: 0.6; transform: scaleX(1); }
  33%       { opacity: 1;   transform: scaleX(1.04) translateX(2%); }
  66%       { opacity: 0.7; transform: scaleX(0.97) translateX(-1%); }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE  ≤ 1100px  (tablet landscape)
══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  /* nav */
  .nav-links { gap: 40px; }
  .socials   { display: none; }
  .nav-right { gap: 16px; }

  /* hero */
  .hero-logo { width: 45vw; }
  .tagline   { font-size: 2.4vw; }
  .cta-btn   { font-size: 13px; padding: 12px 26px; }

  /* game */
  .game-top {
    flex-direction: column;
    align-items: center;
    gap: 4vw;
  }
  .game-content { max-width: 82vw; }
  .game-screen  { width: 82vw; }
  .game-logo    { width: 74vw; }
  .game-eyebrow, .game-genre { font-size: max(0.9vw, 10px); }
  .game-desc    { font-size: max(1.1vw, 14px); }
  .game-cta     { flex-wrap: wrap; }
  .cta-btn--game { font-size: 12px; padding: 9px 20px; }

  /* features — keep 4-col, shrink padding */
  .feature-card   { padding: 2.5vw 2vw; }
  .feature-icon   { font-size: max(1.5vw, 18px); }
  .feature-title  { font-size: max(0.78vw, 10px); }
  .feature-desc   { font-size: max(0.88vw, 12px); }

  /* section label minimum */
  .section-label  { font-size: max(0.65vw, 9px); }
  .explore-sub    { font-size: max(0.82vw, 11px); }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE  ≤ 768px  (tablet portrait / phone)
══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── nav ── */
  nav          { padding: 14px 24px; }
  .nav-links   { display: none; }
  .nav-right   { gap: 12px; }
  .socials     { display: flex; gap: 12px; }
  .socials a   { font-size: 16px; }

  /* ── hero ── */
  .hero-logo   { width: 70vw; }
  .tagline     { font-size: 3.8vw; letter-spacing: 0.3em; margin-top: 20px; }
  .cta-group   { gap: 10px; margin-top: 6vw; }
  .cta-btn     { font-size: 11px; padding: 10px 22px; letter-spacing: 0.22em; }
  .scroll-hint { bottom: 20px; }

  /* ── shared section label ── */
  .section-label { font-size: 9px; margin-bottom: 18px; }

  /* ── game section ── */
  .game-section { padding: 48px 24px; gap: 32px; min-height: unset; }
  .game-top     { gap: 32px; }
  .game-content { max-width: 100%; }
  .game-screen  { width: 100%; }
  .game-logo    { width: 88vw; margin-bottom: 16px; }
  .game-eyebrow { font-size: 10px; margin-bottom: 10px; }
  .game-genre   { font-size: 10px; margin-bottom: 16px; }
  .game-desc    { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
  .game-cta     { flex-wrap: wrap; gap: 8px; }
  .cta-btn--game { font-size: 11px; padding: 8px 18px; }
  .tc-btn       { font-size: 13px; }
  .tc-time      { font-size: 10px; }
  .tc-vol-track { width: 60px; }

  /* ── screenshots ── */
  .screenshots-section { padding: 0 24px 48px; }
  .screenshots-header  { margin-bottom: 18px; }
  .screenshots-grid    { grid-template-columns: repeat(2, 1fr); }
  .shot--featured      { grid-column: span 2; grid-row: span 1; }
  .shot--featured img  { aspect-ratio: 16/9; height: auto; }

  /* ── features ── */
  .features-section { padding: 0 24px 48px; }
  .features-inner   { grid-template-columns: repeat(2, 1fr); }
  .feature-card     { aspect-ratio: auto; padding: 28px 22px; }
  .feature-icon     { font-size: 22px; margin-bottom: 14px; }
  .feature-title    { font-size: 11px; margin-bottom: 12px; }
  .feature-desc     { font-size: 13px; }

  /* ── tape / gifs ── */
  .tape-section  { padding: 0 24px 48px; }
  .tape-header   { margin-bottom: 18px; }
  .tape-grid     { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tape-item     { gap: 8px; }
  .tape-caption  { font-size: 13px; }

  /* ── explore ── */
  .explore-section    { padding: 0 24px 48px; }
  .explore-header     { margin-bottom: 18px; }
  .explore-sub        { font-size: 12px; }
  .explore-layout     { flex-direction: column; gap: 20px; }
  .explore-viewer     { width: 100%; }
  .explore-map-wrap   { width: 100%; }
  .explore-nav-prev   { left: 0; }
  .explore-nav-next   { right: 0; }
  .explore-nav-btn    { width: 34px; height: 34px; font-size: 12px; }
  .explore-map-title  { font-size: 9px; }
  .explore-code-wrap  { margin-top: 20px; gap: 12px; }
  .explore-code-label { font-size: 10px; }
  .explore-code-inputs { gap: 8px; }
  .code-char {
    width: 44px; height: 44px;
    font-size: 16px; /* 16px min prevents iOS auto-zoom */
  }
  .explore-code-msg { font-size: 10px; }

  /* ── wallpapers ── */
  .wallpapers-section { padding: 0 24px 48px; }
  .wp-header     { margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
  .wp-grid       { grid-template-columns: repeat(2, 1fr); }
  .wp-tab        { font-size: 9px; padding: 5px 12px; }
  .wp-toggle     { font-size: 8px; margin-top: 14px; }
  .wp-toggle-icon { font-size: 11px; }
  .wp-download   { font-size: 9px; padding: 4px 10px; }
  .wp-overlay    { padding-bottom: 10px; }

  /* ── vhs modal ── */
  .vhs-frame       { width: 94vw; }
  .vhs-top-bar,
  .vhs-bottom-bar  { font-size: 9px; padding: 8px 12px; }
  .vhs-rec         { gap: 5px; }
  .vhs-rec-dot     { width: 6px; height: 6px; }
  .vhs-close       { font-size: 9px; padding: 4px 10px; }
  .vhs-steam-btn   { font-size: 12px; padding: 8px 18px; }

  /* ── lightbox ── */
  .lightbox-close  { width: 36px; height: 36px; font-size: 14px; top: 12px; right: 12px; }
  .lightbox-arrow  { width: 36px; height: 36px; font-size: 13px; }
  .lightbox-prev   { left: 6px; }
  .lightbox-next   { right: 6px; }
  .lightbox-counter { font-size: 11px; bottom: 14px; }

  /* ── about ── */
  .about-section   { padding: 48px 24px; }
  .about-inner     { flex-direction: column; gap: 40px; }
  .about-section .section-label { font-size: 16px; letter-spacing: 0.3em; }
  .about-title     { font-size: 8vw; }
  .about-left      { gap: 16px; }
  .about-text      { font-size: 15px; max-width: 100%; }
  .about-stats     { gap: 24px; margin-top: 8px; padding-top: 18px; flex-wrap: wrap; }
  .about-stat-value { font-size: 22px; }
  .about-stat-value img { height: 22px !important; }
  .about-stat-label { font-size: 10px; }
  .about-right     { gap: 14px; }
  .about-card      { padding: 20px; gap: 16px; }
  .about-card-header { gap: 12px; }
  .about-card-img  { width: 48px; height: 48px; }
  .about-card-img img { padding: 6px; }
  .about-card-name { font-size: 15px; }
  .about-card-role { font-size: 10px; margin-top: 4px; }
  .about-card-bio  { font-size: 13px; line-height: 1.8; padding-top: 14px; }
  .about-game-meta { padding: 12px 16px; gap: 6px; }
  .about-game-tag  { font-size: 9px; padding: 3px 8px; }
  .about-game-status { font-size: 9px; padding: 3px 8px; }
  .about-game-wip  { padding: 12px 16px 16px; gap: 6px; }
  .about-game-wip-label { font-size: 9px; }
  .about-game-wip-value { font-size: 14px; }

  /* ── contact ── */
  .contact-section { padding: 24px 24px 72px; min-height: unset; align-items: flex-start; }
  .contact-inner   { flex-direction: column; gap: 36px; }
  .contact-section .section-label { font-size: 16px; letter-spacing: 0.3em; }
  .contact-left    { gap: 18px; }
  .contact-right   { padding-top: 0; width: 100%; }
  .contact-title   { font-size: 8vw; }
  .contact-sub     { font-size: 14px; max-width: 100%; }
  .contact-email   { font-size: 13px; }
  .contact-socials { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .contact-social  { font-size: 11px; padding: 10px 14px; gap: 10px; }
  .contact-social i { font-size: 14px; }
  .site-copy       { font-size: 10px; bottom: 12px; left: 16px; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE  ≤ 480px  (small phones)
══════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* ── nav — keep only logo + lang ── */
  nav        { padding: 12px 16px; }
  .socials   { display: none; }
  .nav-right { gap: 8px; }

  /* ── hero ── */
  .hero-logo { width: 85vw; }
  .tagline   { font-size: 4.8vw; letter-spacing: 0.22em; }
  .cta-btn   { font-size: 10px; padding: 9px 18px; letter-spacing: 0.18em; }
  .cta-group { gap: 8px; margin-top: 8vw; }

  /* ── game ── */
  .game-section { padding: 40px 16px; }
  .game-logo    { width: 92vw; }

  /* ── screenshots ── */
  .screenshots-section { padding: 0 16px 40px; }

  /* ── features — single column ── */
  .features-section { padding: 0 16px 40px; }
  .features-inner   { grid-template-columns: 1fr; }
  .feature-card     { padding: 24px 20px; }

  /* ── tape ── */
  .tape-section { padding: 0 16px 40px; }
  .tape-grid    { gap: 12px; }

  /* ── explore ── */
  .explore-section { padding: 0 16px 40px; }

  /* ── wallpapers — single column ── */
  .wallpapers-section { padding: 0 16px 40px; }
  .wp-grid            { grid-template-columns: 1fr; }

  /* ── about ── */
  .about-section { padding: 40px 16px; }
  .about-title   { font-size: 9.5vw; }
  .about-stats   { flex-direction: column; gap: 16px; }

  /* ── contact ── */
  .contact-section { padding: 20px 16px 64px; }
  .contact-title   { font-size: 9.5vw; }
  .contact-socials { grid-template-columns: 1fr; }

  /* ── lightbox ── */
  .lightbox-img-wrap     { max-width: 96vw; max-height: 80vh; }
  .lightbox-img-wrap img { max-width: 96vw; max-height: 80vh; }
  .lightbox-close { top: 8px; right: 8px; }
}

