/* --- GOOGLE FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@400;600;700;800;900&family=Bebas+Neue&display=swap');

/* --- OFFICIAL BRAND DESIGN TOKENS --- */
:root {
  /* Colors */
  --bg: #06111a;                      /* Main abyssal water-deep dark */
  --deep: #030b12;                    /* Darker bottom ocean depth */
  --text: #f0ece0;                    /* High-contrast warm off-white */
  --muted: #9db8c6;                  /* Soft blue-gray for paragraphs */
  --text-dim: #5c7482;                /* Dark industrial metal gray */
  
  --rust: #c7682d;                    /* Primary warm industrial rust orange */
  --rust-bright: #e0813c;             /* Hover bright rust */
  --rust-glow: rgba(199, 104, 45, 0.35);
  
  --gold: #d9b46a;                    /* Scrap gold / brass accent */
  --gold-light: #f2d07d;
  
  --cyan: #7fd6ff;                    /* Glowing bioluminescent neon cyan */
  --cyan-dim: rgba(127, 214, 255, 0.18);
  --cyan-glow: rgba(127, 214, 255, 0.35);

  --panel: rgba(4, 12, 19, 0.76);     /* Translucent card background */
  --border: rgba(255, 255, 255, 0.11);
  --border-gold: rgba(217, 180, 106, 0.3);
  --border-cyan-bright: rgba(127, 214, 255, 0.3);

  /* Diagnostics Bioluminescent Blue Water Theme */
  --phosphor: #00d8ff;                /* Glowing light blue / cyan */
  --phosphor-dim: rgba(0, 216, 255, 0.15);
  --phosphor-glow: rgba(0, 216, 255, 0.35);
  --amber: #ffb000;                   /* Warning amber */
  --amber-glow: rgba(255, 176, 0, 0.25);
  --terminal-bg: #020912;             /* Deep dark blue water base */
  --terminal-border: #0a2f47;         /* Deep-sea metallic blue border */

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-ui: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  /* Layout Constants */
  --max-width: 1200px;
  --header-height: 80px;
  --border-radius-sm: 2px;             /* Hard, industrial angles */
  --border-radius-md: 4px;
  --border-radius-lg: 8px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & SCROLL PROPERTIES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--deep);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--deep);
  border-radius: 4px;
  transition: var(--transition-smooth);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* --- OFFICIAL PARALLAX BACKGROUNDS & FILTERS --- */
.parallax-scene {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(to bottom, #07131d 0%, #020a12 70%, #010508 100%);
}

.parallax-layer {
  position: absolute;
  inset: -8%;
  will-change: transform;
}

.storm-layer {
  background:
    radial-gradient(circle at 50% 20%, rgba(127, 214, 255, 0.08), transparent 30%),
    radial-gradient(circle at 10% 60%, rgba(199, 104, 45, 0.05), transparent 40%),
    linear-gradient(to bottom, rgba(6, 17, 26, 0.5), rgba(3, 11, 18, 0.95));
}

.wave-layer {
  top: auto;
  height: 60vh;
  bottom: -10vh;
  opacity: 0.25;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(127, 214, 255, 0.1), transparent 35%),
    radial-gradient(ellipse at 70% 70%, rgba(255, 255, 255, 0.08), transparent 35%),
    repeating-radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 20px);
  filter: blur(1.5px);
  animation: wavePulse 16s ease-in-out infinite alternate;
}

.fog-layer {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.05), transparent 30%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.01) 0 1px, transparent 1px 12px);
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: fogMove 22s ease-in-out infinite alternate;
}

@keyframes wavePulse {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.04) translateY(-15px); }
}

@keyframes fogMove {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-20px, 10px) scale(1.05); }
}

/* Vignette border framing */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.9) 100%);
  pointer-events: none;
}

/* Cybernetic Scanlines (Opacity reduced to 0.03 for complete text crispness) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: 0.03;
  pointer-events: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

p {
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* --- GLASS CONTAINER PANEL --- */
.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  border: 1px solid transparent;
  position: relative;
}

.btn-primary {
  background: var(--cyan);
  color: var(--deep);
  box-shadow: 0 0 15px rgba(127, 214, 255, 0.25);
  font-weight: 800;
}

.btn-primary:hover {
  background: #aae4ff;
  box-shadow: 0 0 25px rgba(127, 214, 255, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(127, 214, 255, 0.04);
  box-shadow: 0 0 15px var(--cyan-dim);
  transform: translateY(-2px);
}

.btn-rust {
  background: var(--rust);
  color: var(--text);
  box-shadow: 0 0 15px var(--rust-glow);
  font-weight: 800;
}

.btn-rust:hover {
  background: var(--rust-bright);
  box-shadow: 0 0 25px rgba(199, 104, 45, 0.5);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* --- NAVIGATION HEADER --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: #040c13f0;
  backdrop-filter: blur(16px);
  height: 70px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.15));
  transition: var(--transition-smooth);
}

header.scrolled .nav-logo {
  height: 32px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-menu a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 8px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: var(--transition-smooth);
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition-smooth);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 40px) 20px 80px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at center, rgba(6, 17, 26, 0.4) 0%, var(--deep) 85%),
    linear-gradient(to bottom, transparent 60%, var(--deep) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(199, 104, 45, 0.1);
  border: 1px solid rgba(199, 104, 45, 0.3);
  color: var(--rust-bright);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-tag span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--rust-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--rust-bright);
  animation: pulse 1.5s infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.9), 0 0 40px rgba(127, 214, 255, 0.08);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 45px;
  letter-spacing: 0.02em;
  font-weight: 400;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- SECTION STRUCTURES --- */
section {
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  position: relative;
}

.section-container {
  width: 100%;
  max-width: var(--max-width);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  color: var(--cyan);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: 0.06em;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  color: var(--text);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

/* --- TRAILER & CAPSULE WIDGET --- */
.trailer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 40px;
  align-items: stretch;
}

.trailer-video-wrapper {
  position: relative;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
}

.hud-border {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
  z-index: 5;
  opacity: 0.7;
}
.hud-tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.hud-tr { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.hud-bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.hud-br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

.trailer-iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Steam Widget Card */
.steam-widget-card {
  padding: 24px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

.widget-capsule {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 8px;
  font-size: 0.85rem;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-label {
  font-family: var(--font-ui);
  color: var(--muted);
  letter-spacing: 0.05em;
}

.meta-value {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
}

.text-gold {
  color: var(--gold);
}

/* --- SCREENSHOTS CAROUSEL --- */
.gallery-section {
  background: linear-gradient(to bottom, var(--deep), #06111a);
}

.carousel-container {
  width: 100%;
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  border: 1px solid var(--border);
}

.carousel-slides-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
  overflow: hidden;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 6s ease-in-out;
}

.carousel-slide.active img {
  transform: scale(1);
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(to top, rgba(3, 11, 18, 0.9) 0%, rgba(3, 11, 18, 0.6) 60%, transparent 100%);
  font-family: var(--font-ui);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--text);
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  border-top: 1px solid rgba(255,255,255,0.03);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(3, 11, 18, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: var(--transition-smooth);
  font-family: monospace;
}

.carousel-arrow:hover {
  background: var(--cyan);
  color: var(--deep);
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

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

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: scale(1.2);
}

/* --- RUSTED SONAR DIAGNOSTICS HUB & BUG TRACKER --- */
.sonar-terminal-frame {
  background-color: #2b170c;          /* Oxidized metal core */
  border: 8px solid #5a2e19;          /* Rusted outer framing border */
  border-radius: var(--border-radius-md);
  padding: 16px;
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.9), 
    inset 0 0 30px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.lock-bolt-tl, .lock-bolt-tr, .lock-bolt-bl, .lock-bolt-br {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #3d1c0c;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.6);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.06), 0 2px 3px rgba(0,0,0,0.8);
  z-index: 10;
}
.lock-bolt-tl { top: 6px; left: 6px; }
.lock-bolt-tr { top: 6px; right: 6px; }
.lock-bolt-bl { bottom: 6px; left: 6px; }
.lock-bolt-br { bottom: 6px; right: 6px; }

/* CRT screen inside the iron framing */
.crt-screen {
  background-color: var(--terminal-bg);
  border: 2px solid var(--terminal-border);
  border-radius: var(--border-radius-sm);
  position: relative;
  min-height: 520px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

/* Bioluminescent watery grid overlay (Faded down to 0.03 opacity over text for soft water grid feel) */
.crt-screen::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: 
    linear-gradient(rgba(18, 24, 30, 0) 50%, rgba(0, 0, 0, 0.2) 50%),
    linear-gradient(90deg, rgba(0, 216, 255, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(0, 216, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 4px, 20px 20px, 20px 20px;
  z-index: 30;
  opacity: 0.04;
  pointer-events: none;
}

/* Deep-sea Bioluminescent Water Shimmer Overlay (Oscillates slowly for a gorgeous aquatic breathing atmosphere) */
.crt-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 216, 255, 0.03) 0%, rgba(2, 9, 18, 0.1) 80%, transparent 100%);
  pointer-events: none;
  z-index: 31;
  animation: waterShimmer 7s ease-in-out infinite;
}

@keyframes waterShimmer {
  0% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.02); }
  100% { opacity: 0.75; transform: scale(1); }
}

/* Rotating Boat Steering Wheel (Replacing the radar decoration) */
.lock-wheel-container {
  width: 140px;
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border: 1px dashed var(--phosphor-dim);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 216, 255, 0.04) 0%, transparent 75%);
}

.lock-wheel {
  width: 100px;
  height: 100px;
  animation: rotateWheelReverse 30s linear infinite;
}

.lock-icon-overlay {
  position: absolute;
  font-size: 2.2rem;
  color: var(--phosphor);
  text-shadow: 0 0 10px var(--phosphor-glow);
  z-index: 5;
}

@keyframes rotateWheelReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Steam Authentication Lock overlay screen */
.steam-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: radial-gradient(circle at center, rgba(3, 11, 18, 0.98) 0%, rgba(3, 8, 12, 0.99) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  transition: opacity 0.5s ease;
}

.lock-panel {
  max-width: 460px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  position: relative;
}

.lock-icon {
  font-size: 2.5rem;
  color: var(--phosphor);
  text-shadow: 0 0 8px var(--phosphor-glow);
}

.lock-panel h3 {
  font-family: var(--font-ui);
  font-size: 1.6rem;
  color: var(--phosphor);
  letter-spacing: 0.05em;
  margin-top: 15px;
}

.lock-panel p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 12px 0 24px;
  line-height: 1.5;
}

.auth-scanner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  background: rgba(0, 216, 255, 0.04);
  border: 1px solid var(--phosphor-dim);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
}

.scanner-text {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--phosphor);
  letter-spacing: 0.1em;
}

/* --- Dedicated Widescreen 3-Pane Grid --- */
.terminal-widescreen-grid {
  display: grid;
  grid-template-columns: 300px 1fr 460px;
  grid-template-rows: 1fr auto;
  height: 100%;
  width: 100%;
}

.btn-back-surface {
  display: block;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  color: var(--phosphor);
  border: 1px solid var(--phosphor-dim);
  padding: 10px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  background: rgba(0, 216, 255, 0.02);
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: inset 0 0 5px rgba(0,216,255,0.05);
}

.btn-back-surface:hover {
  background: var(--phosphor-dim);
  box-shadow: 0 0 15px var(--phosphor-glow);
  color: var(--deep);
  border-color: var(--phosphor);
}

/* Sidebar Controls */
.terminal-sidebar-controls {
  border-right: 1px solid var(--terminal-border);
  background-color: rgba(3, 8, 12, 0.5);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 216, 255, 0.03);
  border: 1px solid var(--phosphor-dim);
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
}

.user-avatar {
  font-size: 1.3rem;
  color: var(--phosphor);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-steam-id {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.03em;
}

.user-status-text {
  font-size: 0.72rem;
  color: var(--phosphor);
  text-transform: uppercase;
  font-family: monospace;
  letter-spacing: 0.08em;
}

.user-status-text.role-dev {
  color: var(--rust-bright);
}

.user-status-text.role-unverified {
  color: var(--muted);
}

/* Rusted inputs for diagnostics controls */
.diagnostics-input-group {
  width: 100%;
}

.diagnostics-input {
  width: 100%;
  background: rgba(3, 11, 18, 0.7);
  border: 1px solid var(--terminal-border);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.diagnostics-input:focus {
  border-color: var(--phosphor);
  box-shadow: 0 0 10px var(--phosphor-dim);
}

.diagnostics-input.text-phosphor {
  color: var(--phosphor);
  font-family: monospace;
}

.diagnostics-select {
  width: 100%;
  background: #040d12;
  border: 1px solid var(--terminal-border);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  outline: none;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.diagnostics-select:focus {
  border-color: var(--phosphor);
}

.diagnostics-select.text-phosphor {
  color: var(--phosphor);
  background: #020710;
}

.diagnostics-textarea {
  width: 100%;
  height: 80px;
  background: rgba(3, 11, 18, 0.7);
  border: 1px solid var(--terminal-border);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  border-radius: var(--border-radius-sm);
  resize: vertical;
  transition: var(--transition-smooth);
}

.diagnostics-textarea:focus {
  border-color: var(--phosphor);
  box-shadow: 0 0 10px var(--phosphor-dim);
}

.diagnostics-textarea.text-phosphor {
  color: var(--phosphor);
}

.diagnostics-textarea.bg-dark-scan {
  background: #010308;
  border-color: #061524;
}

/* Control Box modules */
.diagnostics-control-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.box-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.sort-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sort-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 8px 6px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.sort-btn:hover, .sort-btn.active {
  border-color: var(--phosphor);
  color: var(--phosphor);
}

.sort-btn.active {
  background: rgba(0, 216, 255, 0.05);
}

.filter-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  text-align: left;
  transition: var(--transition-smooth);
}

.filter-row:hover {
  background: rgba(255,255,255,0.02);
  color: var(--text);
}

.filter-row.active {
  border-color: var(--phosphor-dim);
  background: rgba(0, 216, 255, 0.03);
  color: var(--phosphor);
}

.filter-row .badge {
  font-family: monospace;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 10px;
  color: var(--muted);
}

.filter-row.active .badge {
  background: var(--phosphor-dim);
  color: var(--phosphor);
}

/* Center Logs Feed */
.terminal-logs-feed {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--terminal-border);
  overflow: hidden;
}

.feed-header-bar, .form-header-bar {
  background-color: rgba(3, 8, 12, 0.7);
  border-bottom: 1px solid var(--terminal-border);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--phosphor);
}

.terminal-ping {
  font-family: monospace;
  font-size: 0.75rem;
  animation: pulse 1.5s infinite;
}

.bugs-feed-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overscroll-behavior: contain;
}

/* Bug Cards inside feed */
.bug-card-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  background: rgba(3, 11, 18, 0.4);
  border: 1px solid var(--terminal-border);
  padding: 14px;
  border-radius: var(--border-radius-sm);
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.bug-card-item:hover {
  border-color: var(--phosphor-dim);
  background: rgba(0, 216, 255, 0.02);
  box-shadow: 0 4px 12px rgba(0, 216, 255, 0.02);
}

.bug-card-item.selected-card {
  border-color: var(--phosphor);
  background: rgba(0, 216, 255, 0.03);
}

/* Score Panel upvote elements */
.card-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vote-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px;
  transition: var(--transition-smooth);
}

.vote-btn:hover {
  color: var(--phosphor);
}

.vote-btn.up-voted {
  color: var(--phosphor);
}

.vote-btn.down-voted {
  color: var(--rust-bright);
}

.score-count {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.card-score-box.upvoted-active .score-count {
  color: var(--phosphor);
}

/* Bug Details card grid */
.card-details-box {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.card-bug-title {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta-line {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.card-meta-line span {
  color: var(--text-dim);
}

/* Status Badges */
.card-badge-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.status-badge {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-badge.badge-critical {
  color: #ff4d4d;
  background: rgba(255, 77, 77, 0.08);
  border-color: rgba(255, 77, 77, 0.2);
}

.status-badge.badge-scanning {
  color: var(--amber);
  background: rgba(255, 176, 0, 0.08);
  border-color: rgba(255, 176, 0, 0.2);
}

.status-badge.badge-resolved {
  color: var(--cyan);
  background: rgba(127, 214, 255, 0.08);
  border-color: rgba(127, 214, 255, 0.2);
}

.status-badge.badge-completed {
  color: var(--phosphor);
  background: rgba(0, 216, 255, 0.08);
  border-color: rgba(0, 216, 255, 0.2);
}

/* Submit bug report panel form */
.terminal-reporting-form {
  grid-column: span 3;
  border-top: 1px solid var(--terminal-border);
  background-color: rgba(3, 8, 12, 0.85);
  padding: 16px 20px;
}

.bug-submit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-inputs-row {
  display: flex;
  gap: 16px;
}

.input-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-block label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-dim);
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-3 { flex: 3; }

.form-submit-row {
  display: flex;
  justify-content: flex-end;
}

/* Dedicated Widescreen Right Details Pane (Locks overscroll, fills screen) */
.terminal-widescreen-details {
  border-left: 1px solid var(--terminal-border);
  background: radial-gradient(circle at top left, #050d12 0%, #010409 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  height: 100%;
}

.drawer-inner-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
}

/* Empty Scope Radar Sweep decoration styling */
.terminal-empty-scope {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--phosphor);
  text-align: center;
}

.scope-wheel-container {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px double var(--phosphor-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 216, 255, 0.04) 0%, transparent 80%);
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(0, 216, 255, 0.05);
  position: relative;
}

.rotating-steering-wheel {
  width: 110px;
  height: 110px;
  opacity: 0.85;
  filter: drop-shadow(0 0 8px var(--phosphor-glow));
  animation: rotateWheel 25s linear infinite;
}

@keyframes rotateWheel {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.terminal-empty-scope span {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-shadow: 0 0 5px var(--phosphor-glow);
}

.drawer-bug-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px dashed var(--terminal-border);
  padding-bottom: 20px;
  margin-bottom: 16px;
}

.drawer-title-block h3 {
  font-family: var(--font-ui);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--phosphor);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.drawer-meta-line {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}

.drawer-desc-block {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.02);
  padding: 14px;
  border-radius: var(--border-radius-sm);
}

.drawer-desc-block h4 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.drawer-desc-block p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

/* Comments Section inside details pane */
.drawer-comments-section {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.comments-header {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--phosphor);
  margin-bottom: 12px;
}

.comments-feed-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.comment-card {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.02);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.comment-card.dev-comment {
  border-color: var(--rust-glow);
  background: rgba(199, 104, 45, 0.03);
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.comment-user {
  font-weight: 700;
}

.dev-comment .comment-user {
  color: var(--rust-bright);
}

.comment-date {
  color: var(--text-dim);
}

.comment-body {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text);
  padding-right: 45px;
}

.comment-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.comment-delete-btn:hover {
  color: #ff4d4d;
}

.comment-submit-form {
  width: 100%;
}

.comment-input-group {
  display: flex;
  border: 1px solid var(--terminal-border);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.comment-input-group:focus-within {
  border-color: var(--phosphor);
}

.comment-btn {
  background: var(--phosphor);
  color: var(--deep);
  border: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.comment-btn:hover {
  background: #4df4ff;
}

/* --- SURVIVAL PILLARS --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.pillar-card {
  padding: 40px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(127, 214, 255, 0.03), transparent 60%);
  pointer-events: none;
}

.pillar-card:hover {
  border-color: var(--cyan-dim);
  box-shadow: 0 15px 30px rgba(127, 214, 255, 0.03);
}

.pillar-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 30px;
}

.pillar-card h3 {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}

.pillar-card p {
  font-size: 0.98rem;
  line-height: 1.6;
}

/* --- MOMENTS TIMELINE --- */
.moments-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.moment-panel {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 30px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border);
  align-items: center;
  transition: var(--transition-smooth);
}

.moment-panel:hover {
  transform: translateX(8px);
  border-color: var(--rust-glow);
  box-shadow: 0 0 20px rgba(199, 104, 45, 0.05);
}

.moment-marker {
  font-size: 2.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--rust-bright);
}

.moment-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.moment-info h3 {
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

.moment-info p {
  font-size: 0.98rem;
  line-height: 1.5;
}

/* --- WISHLIST CARD & NEWSLETTER --- */
.wishlist-section {
  background: radial-gradient(circle at center, #081a29 0%, var(--deep) 100%);
  border-top: 1px solid var(--border);
}

.wishlist-card {
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border);
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.wishlist-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: var(--rust);
  box-shadow: 0 0 10px var(--rust);
}

.wishlist-card h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  line-height: 1.1;
}

.wishlist-card h2 span {
  color: var(--cyan);
  text-shadow: 0 0 15px rgba(127, 214, 255, 0.2);
}

.wishlist-card p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

.wishlist-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Newsletter Signup */
.newsletter-form {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.newsletter-title {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.newsletter-input-group {
  display: flex;
  width: 100%;
  max-width: 480px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.newsletter-input-group:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.newsletter-input {
  flex: 1;
  background: rgba(3, 11, 18, 0.6);
  border: none;
  padding: 14px 20px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.newsletter-input::placeholder {
  color: var(--text-dim);
}

.newsletter-btn {
  background: var(--cyan);
  color: var(--deep);
  border: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.newsletter-btn:hover {
  background: #aae4ff;
}

/* --- FOOTER --- */
footer {
  background-color: var(--deep);
  padding: 60px 20px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.footer-container {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  height: 30px;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.05));
}

.footer-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--cyan);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: var(--transition-smooth);
  font-size: 1.1rem;
}

.social-icon:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.triad-pixel {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.triad-pixel a {
  color: var(--muted);
  font-weight: 600;
}

.triad-pixel a:hover {
  color: var(--cyan);
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* --- RESPONSIVE LAYOUT BREAKPOINTS --- */
@media (max-width: 1024px) {
  .trailer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .steam-widget-card {
    flex-direction: row;
    gap: 30px;
    align-items: center;
  }
  
  .widget-capsule {
    max-width: 250px;
  }
  
  .widget-meta {
    flex: 1;
  }

  /* Widescreen terminal collapses to simple stacked layout on smaller screens */
  .terminal-widescreen-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    height: auto;
  }

  .terminal-sidebar-controls {
    border-right: none;
    border-bottom: 1px solid var(--terminal-border);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .user-profile-badge, .diagnostics-input-group, .sort-control-group, .filter-control-group {
    flex: 1;
    min-width: 200px;
  }

  .filter-vertical-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .terminal-logs-feed {
    min-height: 350px;
    height: 400px;
  }

  .terminal-widescreen-details {
    border-left: none;
    border-top: 1px solid var(--terminal-border);
    min-height: 400px;
    height: 500px;
  }

  .terminal-empty-scope {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 20px;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--deep);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: var(--transition-smooth);
    z-index: 99;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .carousel-container {
    aspect-ratio: auto;
    height: 380px;
  }
  
  .carousel-dots {
    bottom: 90px;
  }
  
  .slide-caption {
    font-size: 0.98rem;
    padding: 16px;
  }
  
  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
  
  .prev-arrow { left: 10px; }
  .next-arrow { right: 10px; }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .pillar-card {
    padding: 30px;
  }
  
  .wishlist-card {
    padding: 40px 20px;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
}

@media (max-width: 580px) {
  .steam-widget-card {
    flex-direction: column;
    align-items: stretch;
  }
  
  .widget-capsule {
    max-width: 100%;
  }
  
  .moment-panel {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
  }

  .form-inputs-row {
    flex-direction: column;
    gap: 10px;
  }

  .bug-card-item {
    grid-template-columns: 40px 1fr;
    gap: 10px;
  }

  .card-badge-box {
    grid-column: span 2;
    justify-content: flex-start;
    margin-top: 6px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .carousel-container {
    height: 250px;
  }
  
  .carousel-dots {
    bottom: 80px;
    gap: 8px;
  }
  
  .newsletter-input-group {
    flex-direction: column;
    border-radius: var(--border-radius-sm);
    border: none;
    gap: 10px;
    background: transparent;
  }
  
  .newsletter-input {
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    width: 100%;
  }
  
  .newsletter-btn {
    border-radius: var(--border-radius-sm);
    padding: 14px 20px;
    width: 100%;
  }
}
