/* ==========================================================================
   KOSTIA RAMPAGE — v2.4 Summer Remaster
   Design language: Soviet-glitch HUD.
   Dark navy panels, aqua target-lock accents, red chromatic-aberration glitch,
   corner-bracket reticle motif reused across buttons, frames and cards.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --c-void:        #05070c;
  --c-bg:          #070c15;
  --c-panel:       #0d1826;
  --c-panel-2:     #101f33;
  --c-panel-edge:  #1c3350;

  /* Accents */
  --c-aqua:        #2be9d4;
  --c-aqua-dim:    #17847a;
  --c-aqua-glow:   rgba(43, 233, 212, 0.35);
  --c-red:         #ff2e4d;
  --c-red-dim:     #8f1327;
  --c-red-glow:    rgba(255, 46, 77, 0.35);
  --c-yellow:      #ffb020;
  --c-glitch:      #cf2eff; /* violet-pink-purple neon, title glitch layer only */
  --c-white-pure:  #ffffff;

  /* Text */
  --c-text:        #eef4f7;
  --c-text-dim:    #8ea0b3;
  --c-text-faint:  #4d5c6e;

  /* Type */
  --f-display: 'Saira Extra Condensed', 'Oswald', sans-serif;
  --f-ui:      'Oswald', 'Saira Extra Condensed', sans-serif;

  /* Layout */
  --container-w: 1180px;
  --pad-inline: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 7rem);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-glitch: steps(2, jump-start);

  /* Corner bracket size */
  --corner-size: 16px;
  --corner-thick: 2px;
}

/* --------------------------------------------------------------------------
   1. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, p { margin: 0; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--c-aqua);
  color: var(--c-void);
}

:focus-visible {
  outline: 2px solid var(--c-aqua);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--c-text);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  position: relative;
  padding-bottom: 1.1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-aqua), transparent);
}

/* --------------------------------------------------------------------------
   2. BACKGROUND LAYERS
   -------------------------------------------------------------------------- */
.background-wrap {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: var(--c-void);
}

.bg-image {
  position: absolute;
  inset: -5%;
  background:
    radial-gradient(ellipse 60% 45% at 20% 15%, rgba(43, 233, 212, 0.10), transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 80%, rgba(255, 46, 77, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(5, 8, 16, 0.55) 0%, rgba(5, 8, 16, 0.75) 100%),
    url('bg.png');
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  filter: saturate(1.05);
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.028) 0px,
    rgba(255, 255, 255, 0.028) 1px,
    transparent 2px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
  animation: scan-drift 9s linear infinite;
}

@keyframes scan-drift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(3px); }
}

.noise {
  position: absolute;
  inset: -20%;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: noise-shift 1.1s var(--ease-glitch) infinite;
}

@keyframes noise-shift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-2%, 1%); }
  100% { transform: translate(1%, -1%); }
}

.floating-deco {
  position: fixed;
  z-index: -2;
  width: clamp(60px, 8vw, 110px);
  opacity: 0.16;
  filter: drop-shadow(0 0 12px var(--c-aqua-glow));
  pointer-events: none;
}

.floating-deco-1 {
  top: 12%;
  left: 4%;
  animation: float-a 14s ease-in-out infinite;
}

.floating-deco-2 {
  bottom: 10%;
  right: 5%;
  animation: float-b 17s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-24px) rotate(10deg); }
}

@keyframes float-b {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(20px) rotate(-8deg); }
}

@media (max-width: 768px) {
  .floating-deco { opacity: 0.09; width: 56px; }
}

@media (max-width: 480px) {
  .floating-deco { display: none; }
}

/* --------------------------------------------------------------------------
   3. CORNER BRACKETS (signature reticle motif)
   -------------------------------------------------------------------------- */
.corner {
  position: absolute;
  width: var(--corner-size);
  height: var(--corner-size);
  pointer-events: none;
  border: var(--corner-thick) solid var(--c-aqua);
  opacity: 0.85;
  transition: all 0.3s var(--ease-out);
}

.corner.tl { top: -2px;    left: -2px;   border-right: none;  border-bottom: none; }
.corner.tr { top: -2px;    right: -2px;  border-left: none;   border-bottom: none; }
.corner.bl { bottom: -2px; left: -2px;   border-right: none;  border-top: none; }
.corner.br { bottom: -2px; right: -2px;  border-left: none;   border-top: none; }

/* --------------------------------------------------------------------------
   4. FX MUSIC TOGGLE
   -------------------------------------------------------------------------- */
.fx-toggle {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(13, 24, 38, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--c-panel-edge);
  box-shadow: 0 0 0 rgba(43, 233, 212, 0);
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.fx-toggle:hover { border-color: var(--c-aqua); }

.fx-icon {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--c-text-dim);
}

.fx-label {
  font-family: var(--f-ui);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--c-text-faint);
}

.fx-toggle.fx-active {
  border-color: var(--c-aqua);
  box-shadow: 0 0 18px var(--c-aqua-glow);
  animation: fx-pulse 1.8s ease-in-out infinite;
}

.fx-toggle.fx-active .fx-icon { color: var(--c-aqua); }

@keyframes fx-pulse {
  0%, 100% { box-shadow: 0 0 12px var(--c-aqua-glow); }
  50%      { box-shadow: 0 0 24px var(--c-aqua-glow); }
}

/* --------------------------------------------------------------------------
   5. HEADER / NAV
   -------------------------------------------------------------------------- */
.game-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid rgba(43, 233, 212, 0.15);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.header-left.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 6px var(--c-aqua-glow));
}

.version-tag {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-version {
  font-family: var(--f-ui);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--c-text-dim);
}

.live-indicator {
  font-family: var(--f-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-red);
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 0 8px var(--c-red);
  animation: live-blink 1.6s ease-in-out infinite;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.nav-link {
  font-family: var(--f-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  position: relative;
  padding-block: 4px;
  transition: color 0.25s var(--ease-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--c-aqua);
  transition: width 0.25s var(--ease-out);
}

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

.nav-link:hover::after { width: 100%; }

.nav-btn {
  font-family: var(--f-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--c-aqua);
  color: var(--c-aqua);
  background: rgba(43, 233, 212, 0.06);
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--c-aqua);
  color: var(--c-void);
  box-shadow: 0 0 20px var(--c-aqua-glow);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 74px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding-block: clamp(2rem, 6vw, 3rem);
}

.hero-logo {
  width: clamp(90px, 12vw, 140px);
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 22px var(--c-aqua-glow));
}

.title-container {
  position: relative;
  width: 100%;
  height: clamp(3.6rem, 13vw, 8rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 10vw, 7rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Colors/alphas match the game's GML draw call exactly:
   col_red @ 0.4, col_glitch (violet-pink-purple) @ 0.4, c_white @ 1 */
.title-red {
  color: var(--c-red);
  opacity: 0.4;
}

.title-glitch {
  color: var(--c-glitch);
  opacity: 0.4;
}

.title-white {
  color: var(--c-white-pure);
  opacity: 1;
}

.hero-subtitle {
  font-family: var(--f-ui);
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-aqua);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1rem;
}

.hero-buttons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.hero-button-frame {
  position: relative;
  padding: 6px;
}

.hero-button-frame:hover .corner {
  width: calc(var(--corner-size) + 4px);
  height: calc(var(--corner-size) + 4px);
}

.hero-button-wrapper { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.1rem;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: transform 0.2s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.btn-label { position: relative; z-index: 1; }

.btn-primary {
  background: var(--c-aqua);
  color: var(--c-void);
  box-shadow: 0 0 0 rgba(43, 233, 212, 0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--c-aqua-glow);
}

.glitch-btn:hover {
  animation: btn-glitch 0.35s var(--ease-glitch);
}

@keyframes btn-glitch {
  0%   { box-shadow: 2px 0 0 var(--c-red), -2px 0 0 var(--c-aqua); }
  50%  { box-shadow: -2px 0 0 var(--c-red), 2px 0 0 var(--c-aqua); }
  100% { box-shadow: 0 8px 30px var(--c-aqua-glow); }
}

.btn-large { padding: 1.2rem 3.2rem; font-size: 1.05rem; }

.hero-button-wrapper .btn {
  padding: 1.08rem 2.9rem;
  font-size: 0.98rem;
}

.btn-subtext {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--c-text-faint);
  text-align: center;
  max-width: 480px;
}

.btn-share {
  display: none;
  margin-top: 0.75rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  border: 1px dashed var(--c-panel-edge);
  transition: all 0.25s var(--ease-out);
}

.btn-share:hover {
  color: var(--c-aqua);
  border-color: var(--c-aqua);
}

.share-subtext {
  font-size: 0.75rem;
  color: var(--c-aqua);
  min-height: 1.1em;
}

/* --------------------------------------------------------------------------
   7. GAMEPLAY SECTION
   -------------------------------------------------------------------------- */
.gameplay-wrap { display: flex; justify-content: center; }

.gameplay-frame {
  position: relative;
  padding: 10px;
  border: 1px solid var(--c-panel-edge);
  background: var(--c-panel);
  max-width: 900px;
  width: 100%;
}

.gameplay-gif {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   8. GALLERY
   -------------------------------------------------------------------------- */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.screenshot-card {
  position: relative;
  margin: 0;
  background: var(--c-panel);
  border: 1px solid var(--c-panel-edge);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out), transform 0.2s var(--ease-out);
  will-change: transform;
}

.screenshot-card:hover {
  border-color: var(--c-aqua);
}

.screenshot-card::after {
  content: '⤢';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--c-void);
  background: var(--c-aqua);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  pointer-events: none;
}

.screenshot-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.screenshot-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.screenshot-caption {
  padding: 0.7rem 1rem;
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  border-top: 1px solid var(--c-panel-edge);
}

/* --------------------------------------------------------------------------
   8b. GALLERY LIGHTBOX (big mode + scrollable navigation)
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(4, 6, 11, 0.94);
  backdrop-filter: blur(10px);
}

.lightbox.active { display: grid; }

.lightbox-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: min(1100px, 92vw);
  max-height: 78vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--c-panel-edge);
  background: var(--c-panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  font-family: var(--f-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

.lightbox-close {
  position: absolute;
  top: clamp(0.8rem, 2vw, 1.6rem);
  right: clamp(0.8rem, 2vw, 1.6rem);
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--c-text);
  border: 1px solid var(--c-panel-edge);
  background: rgba(13, 24, 38, 0.85);
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.lightbox-close:hover {
  color: var(--c-red);
  border-color: var(--c-red);
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  translate: 0 -50%;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  color: var(--c-text);
  border: 1px solid var(--c-panel-edge);
  background: rgba(13, 24, 38, 0.85);
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.lightbox-arrow:hover {
  color: var(--c-void);
  background: var(--c-aqua);
  border-color: var(--c-aqua);
}

.lightbox-prev { left: clamp(0.8rem, 3vw, 2rem); }
.lightbox-next { right: clamp(0.8rem, 3vw, 2rem); }

.lightbox-thumbs {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  max-width: min(1100px, 92vw);
  overflow-x: auto;
  padding-block: 0.4rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--c-aqua) transparent;
}

.lightbox-thumbs::-webkit-scrollbar { height: 6px; }
.lightbox-thumbs::-webkit-scrollbar-thumb { background: var(--c-aqua-dim); }
.lightbox-thumbs::-webkit-scrollbar-track { background: transparent; }

.lightbox-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--c-panel-edge);
  opacity: 0.55;
  overflow: hidden;
  transition: opacity 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb:hover { opacity: 0.85; }

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--c-aqua);
}

@media (max-width: 768px) {
  .lightbox-arrow { width: 40px; height: 40px; }
  .lightbox-img { max-height: 55vh; }
  .lightbox-thumb { width: 64px; height: 44px; }
}

@media (max-width: 480px) {
  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
}

/* --------------------------------------------------------------------------
   9. FEATURES / IDEOLOGY
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  padding: 1.8rem 1.6rem 2rem;
  background: var(--c-panel);
  border: 1px solid var(--c-panel-edge);
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
  transition: border-color 0.3s var(--ease-out), transform 0.2s var(--ease-out);
  will-change: transform;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mouse-x) var(--mouse-y), var(--c-aqua-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover { border-color: var(--c-aqua); }

.feature-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--f-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-void);
  background: var(--c-aqua);
  padding: 0.3rem 0.7rem;
}

.feature-num {
  font-family: var(--f-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--c-panel-edge);
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}

.feature-icon-box {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-aqua);
  margin-bottom: 1rem;
}

.feature-icon { width: 100%; height: 100%; }

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.panel-icon { color: var(--c-red); font-size: 1rem; }

.panel-header h3 {
  font-family: var(--f-ui);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text);
}

.feature-card p {
  position: relative;
  font-size: 0.9rem;
  color: var(--c-text-dim);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   10. STATS
   -------------------------------------------------------------------------- */
.dark-overlay {
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35) 15%, rgba(0,0,0,0.35) 85%, transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding-block: 1rem;
  border-left: 1px solid var(--c-panel-edge);
}

.stat-item:first-child { border-left: none; }

.stat-number {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4rem);
  color: var(--c-aqua);
  text-shadow: 0 0 24px var(--c-aqua-glow);
  line-height: 1;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

/* --------------------------------------------------------------------------
   11. FINAL CTA
   -------------------------------------------------------------------------- */
.final-cta {
  padding-block: clamp(4rem, 10vw, 8rem);
  text-align: center;
}

.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.glitch-text {
  position: relative;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.6rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-text);
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: inherit;
}

.glitch-text::before {
  color: var(--c-red);
  animation: glitch-shift-1 4s infinite linear;
  clip-path: inset(0 0 55% 0);
}

.glitch-text::after {
  color: var(--c-aqua);
  animation: glitch-shift-2 4.5s infinite linear;
  clip-path: inset(55% 0 0 0);
}

@keyframes glitch-shift-1 {
  0%, 92%, 100% { transform: translate(0, 0); opacity: 0; }
  93%           { transform: translate(-3px, -1px); opacity: 0.8; }
  95%           { transform: translate(3px, 1px); opacity: 0.8; }
  97%           { transform: translate(-2px, 0); opacity: 0; }
}

@keyframes glitch-shift-2 {
  0%, 90%, 100% { transform: translate(0, 0); opacity: 0; }
  91%           { transform: translate(3px, 1px); opacity: 0.8; }
  94%           { transform: translate(-3px, -1px); opacity: 0.8; }
  96%           { transform: translate(2px, 0); opacity: 0; }
}

.cta-wrap p {
  color: var(--c-text-dim);
  font-size: 1rem;
  max-width: 460px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.8rem;
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--c-panel-edge);
  background: rgba(6, 10, 18, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  align-items: start;
}

.footer-left { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-logo { width: 56px; opacity: 0.85; }

.footer-brand {
  font-family: var(--f-ui);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--c-text-dim);
}

.dev-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.author {
  font-size: 0.8rem;
  color: var(--c-text-faint);
}

.author strong { color: var(--c-text-dim); }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--c-text-dim);
  width: fit-content;
  transition: color 0.25s var(--ease-out);
}

.social-link:hover { color: var(--c-aqua); }

.footer-center { display: flex; align-items: flex-start; justify-content: flex-end; }

.satire-box {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border: 1px solid var(--c-yellow);
  background: rgba(255, 176, 32, 0.06);
  max-width: 420px;
}

.warning-icon {
  font-family: var(--f-ui);
  font-weight: 700;
  color: var(--c-yellow);
  flex-shrink: 0;
}

.satire-notice {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--c-text-dim);
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE — TABLET (≤1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header-right {
    position: fixed;
    top: 74px;
    right: 0;
    height: calc(100svh - 74px);
    width: min(320px, 78vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.6rem;
    padding: 2.2rem 1.8rem;
    background: rgba(7, 12, 21, 0.97);
    backdrop-filter: blur(12px);
    border-left: 1px solid var(--c-panel-edge);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
  }

  .header-right.active { transform: translateX(0); }

  .nav-link { font-size: 0.95rem; }

  .nav-btn { width: 100%; text-align: center; }

  .mobile-menu-toggle { display: flex; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }

  .stat-item:nth-child(3) { border-left: none; }
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE — SMALL TABLET / LARGE PHONE (≤768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .section { padding-block: clamp(3rem, 10vw, 5rem); }

  .hero { min-height: auto; padding-block: 5.5rem 3rem; }

  .hero-buttons-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-button-frame { width: 100%; }
  .hero-button-wrapper .btn { width: 100%; }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-center { justify-content: flex-start; }

  .satire-box { max-width: none; }

  .gameplay-frame { padding: 6px; }
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE — PHONE (≤480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root { --section-pad: 3rem; }

  .header-flex { height: 64px; }
  .hero { padding-top: 64px; }

  .nav-logo { height: 30px; }

  .header-right { top: 64px; height: calc(100svh - 64px); width: 100%; }


  .hero-logo { width: 76px; }

  .title-container { height: clamp(2.6rem, 22vw, 4.5rem); }

  .hero-subtitle { letter-spacing: 0.15em; }

  .features-grid { grid-template-columns: 1fr; }

  .screenshots-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .stat-item:nth-child(odd) { border-left: none; }

  .cta-buttons { flex-direction: column; width: 100%; }

  .cta-buttons .btn { width: 100%; }

  .btn-large { padding: 1rem 1.6rem; }

  .section-title { margin-bottom: 2rem; }
}

/* --------------------------------------------------------------------------
   16. PRINT (bonus — clean fallback)
   -------------------------------------------------------------------------- */
@media print {
  .background-wrap, .fx-toggle, .mobile-menu-toggle, .floating-deco { display: none; }
  body { background: #fff; color: #000; }
}
