/* ==========================================================================
   GAME NEWBIE - RETRO PIXEL STYLESHEET
   ========================================================================== */

:root {
  --bg-dark: #0a0815;
  --bg-panel: #131027;
  --bg-panel-alt: #1c173b;
  --border-color: #000000;
  --pixel-border-light: #3d346b;
  
  /* Retro Accent Palette */
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff2a85;
  --pixel-gold: #ffd700;
  --pixel-gold-dark: #b8860b;
  --pixel-green: #22c55e;
  --pixel-red: #ef4444;
  --pixel-purple: #8b5cf6;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-accent: #00f0ff;
  
  /* Fonts */
  --font-pixel-heading: 'Press Start 2P', monospace, cursive;
  --font-pixel-body: 'VT323', monospace;
  
  /* Pixel Size Unit */
  --px-unit: 4px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-pixel-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.4;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ==========================================================================
   CRT SCANLINE & RETRO OVERLAY
   ========================================================================== */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.35) 50%
  ), 
  linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 4px, 6px 100%;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

body:not(.crt-enabled) .crt-overlay {
  display: none;
}

/* Background Canvas */
#pixelCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Container */
.hud-container,
.section-container,
.footer-container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   PIXEL BOXES & PANELS (8-BIT BEVEL BORDERS)
   ========================================================================== */
.pixel-panel {
  background: var(--bg-panel);
  position: relative;
  border: 4px solid #000;
  box-shadow: 
    -4px -4px 0 0 var(--border-color),
    4px 4px 0 0 var(--border-color),
    -4px 4px 0 0 var(--border-color),
    4px -4px 0 0 var(--border-color),
    inset -4px -4px 0 0 #00000088,
    inset 4px 4px 0 0 #ffffff22,
    0 12px 0 0 rgba(0, 0, 0, 0.4);
}

.panel-header {
  background: #1e1b4b;
  border-bottom: 4px solid #000;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  box-shadow: inset 1px 1px 0 #fff;
}
.panel-dot.red { background: var(--pixel-red); }
.panel-dot.yellow { background: var(--pixel-gold); }
.panel-dot.green { background: var(--pixel-green); }

.panel-title {
  font-family: var(--font-pixel-heading);
  font-size: 0.65rem;
  color: var(--neon-cyan);
  margin-left: 6px;
  letter-spacing: 1px;
}

.panel-body {
  padding: 24px;
}

/* ==========================================================================
   PIXEL BUTTONS
   ========================================================================== */
.pixel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-pixel-heading);
  font-size: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  padding: 12px 20px;
  border: none;
  color: #000;
  position: relative;
  text-transform: uppercase;
  transition: transform 0.08s ease, filter 0.15s ease;
  user-select: none;
  outline: none;
}

.pixel-btn-primary {
  background: var(--pixel-gold);
  box-shadow: 
    inset -4px -4px 0 0 #b8860b,
    inset 4px 4px 0 0 #fff,
    4px 4px 0 0 #000,
    -4px -4px 0 0 #000,
    4px -4px 0 0 #000,
    -4px 4px 0 0 #000;
  color: #111;
}

.pixel-btn-secondary {
  background: var(--neon-cyan);
  box-shadow: 
    inset -4px -4px 0 0 #0284c7,
    inset 4px 4px 0 0 #fff,
    4px 4px 0 0 #000,
    -4px -4px 0 0 #000,
    4px -4px 0 0 #000,
    -4px 4px 0 0 #000;
  color: #000;
}

.pixel-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.pixel-btn:active {
  transform: translateY(2px);
  box-shadow: 
    inset 4px 4px 0 0 rgba(0,0,0,0.4),
    2px 2px 0 0 #000;
}

.pixel-btn.btn-large {
  padding: 16px 26px;
  font-size: 0.85rem;
}

.pixel-btn.full-w {
  width: 100%;
}

.pixel-btn-icon {
  background: #1e1b4b;
  color: var(--pixel-gold);
  border: 2px solid #000;
  box-shadow: inset -2px -2px 0 #000, inset 2px 2px 0 #fff3;
  padding: 6px 10px;
  font-family: var(--font-pixel-heading);
  font-size: 0.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.1s ease;
}

.pixel-btn-icon:hover {
  background: #2e266b;
  color: #fff;
}

/* ==========================================================================
   HUD HEADER
   ========================================================================== */
.hud-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 8, 21, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 4px solid #000;
  padding: 12px 0;
  box-shadow: 0 4px 0 0 rgba(0, 240, 255, 0.2);
}

.hud-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hud-brand .hud-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-pixel-heading);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.hud-logo .highlight {
  color: var(--pixel-gold);
}

.hud-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-link {
  font-family: var(--font-pixel-heading);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 4px;
  transition: color 0.15s ease;
}

.hud-link .link-bracket {
  color: #4b5563;
  transition: color 0.15s ease;
}

.hud-link:hover,
.hud-link.active {
  color: var(--neon-cyan);
}

.hud-link:hover .link-bracket,
.hud-link.active .link-bracket {
  color: var(--neon-magenta);
}

.hud-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel-heading);
  font-size: 0.65rem;
}

.hud-coin-counter {
  background: #1e1b4b;
  padding: 6px 10px;
  border: 2px solid #000;
  color: var(--pixel-gold);
}

.hud-coin-counter .stat-val {
  color: #fff;
  min-width: 24px;
}

.mobile-menu-btn {
  display: none;
  background: #1e1b4b;
  border: 2px solid #000;
  padding: 6px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 3px;
  background: var(--neon-cyan);
}

/* ==========================================================================
   PIXEL COIN ICON
   ========================================================================== */
.pixel-coin-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  background: var(--pixel-gold);
  box-shadow: 
    -2px 0 0 0 #000, 2px 0 0 0 #000, 0 -2px 0 0 #000, 0 2px 0 0 #000,
    inset -2px -2px 0 0 var(--pixel-gold-dark),
    inset 2px 2px 0 0 #ffffff;
}

.pixel-coin-icon.spin {
  animation: coinSpin 1.6s infinite ease-in-out;
}

@keyframes coinSpin {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.2); }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.marquee-badge {
  display: inline-block;
  background: #2e1065;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #fff2, inset -2px -2px 0 #000, 0 0 10px #7928ca;
  color: var(--neon-cyan);
  font-family: var(--font-pixel-heading);
  font-size: 0.65rem;
  padding: 6px 14px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero-title-box {
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-pixel-heading);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hero-title .title-top {
  color: #fff;
  text-shadow: 
    4px 4px 0 #000, 
    -4px -4px 0 #000, 
    4px -4px 0 #000, 
    -4px 4px 0 #000,
    6px 6px 0 var(--neon-magenta);
}

.hero-title .title-bottom {
  color: var(--pixel-gold);
  text-shadow: 
    4px 4px 0 #000, 
    -4px -4px 0 #000, 
    4px -4px 0 #000, 
    -4px 4px 0 #000,
    6px 6px 0 #b8860b;
}

.hero-subtitle {
  font-family: var(--font-pixel-heading);
  font-size: clamp(0.75rem, 2vw, 1.15rem);
  color: var(--neon-cyan);
  text-shadow: 2px 2px 0 #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-subtitle .bracket-left,
.hero-subtitle .bracket-right {
  color: var(--neon-magenta);
}

/* Floating Sprites */
.hero-floating-elements {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 18px 0;
}

.float-sprite {
  font-family: var(--font-pixel-heading);
  font-size: 0.7rem;
  padding: 6px 12px;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  animation: floatBounce 2.5s infinite ease-in-out alternate;
  user-select: none;
}

.sprite-coin {
  background: var(--pixel-gold);
  color: #000;
  animation-delay: 0s;
}

.sprite-heart {
  background: var(--pixel-red);
  color: #fff;
  animation-delay: 0.4s;
}

.sprite-star {
  background: var(--pixel-purple);
  color: #fff;
  animation-delay: 0.8s;
}

@keyframes floatBounce {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* Dialogue Box */
.dialogue-box {
  max-width: 760px;
  margin: 20px auto 30px;
  background: #0f172a;
  border: 4px solid #fff;
  box-shadow: 
    -4px 0 0 0 #000, 4px 0 0 0 #000, 0 -4px 0 0 #000, 0 4px 0 0 #000,
    0 10px 0 0 rgba(0,0,0,0.5);
  padding: 18px 22px;
  text-align: left;
}

.dialogue-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-pixel-heading);
  font-size: 0.65rem;
  color: var(--pixel-green);
  border-bottom: 2px dashed #334155;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.dialogue-content {
  font-size: 1.4rem;
  line-height: 1.35;
  color: #f1f5f9;
}

.text-accent {
  color: var(--neon-cyan);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0 40px;
}

.press-start-prompt {
  font-family: var(--font-pixel-heading);
  font-size: 0.7rem;
  color: var(--pixel-gold);
  letter-spacing: 1px;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================= */
.section {
  padding: 70px 0;
  position: relative;
  z-index: 2;
}

.pixel-heading-wrap {
  text-align: center;
  margin-bottom: 45px;
}

.pixel-tag {
  display: inline-block;
  background: #3b0764;
  color: var(--neon-cyan);
  font-family: var(--font-pixel-heading);
  font-size: 0.6rem;
  padding: 4px 10px;
  border: 2px solid #000;
  margin-bottom: 10px;
}

.pixel-heading {
  font-family: var(--font-pixel-heading);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: #fff;
  text-shadow: 3px 3px 0 #000, 5px 5px 0 var(--neon-magenta);
  margin-bottom: 8px;
}

.pixel-subheading {
  font-family: var(--font-pixel-heading);
  font-size: 0.75rem;
  color: var(--pixel-gold);
  letter-spacing: 1px;
}

/* ==========================================================================
   ABOUT / STORY SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.story-card .panel-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rpg-avatar-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid #231d4d;
}

.pixel-avatar {
  width: 50px;
  height: 50px;
  background: #38bdf8;
  border: 4px solid #000;
  position: relative;
  box-shadow: inset -4px -4px 0 #0284c7;
}

.avatar-eyes {
  position: absolute;
  top: 14px;
  left: 10px;
  width: 6px;
  height: 6px;
  background: #000;
  box-shadow: 18px 0 0 #000;
}

.avatar-mouth {
  position: absolute;
  bottom: 12px;
  left: 15px;
  width: 14px;
  height: 4px;
  background: #000;
}

.avatar-info .avatar-name {
  font-family: var(--font-pixel-heading);
  font-size: 0.8rem;
  color: var(--neon-cyan);
}

.avatar-info .avatar-level {
  font-family: var(--font-pixel-heading);
  font-size: 0.65rem;
  color: var(--pixel-gold);
}

.story-paragraph {
  font-size: 1.35rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.stats-bars {
  margin-top: 10px;
  background: #0b0918;
  border: 2px solid #000;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: grid;
  grid-template-columns: 100px 1fr 50px;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel-heading);
  font-size: 0.6rem;
}

.stat-name {
  color: #94a3b8;
}

.pixel-meter {
  height: 14px;
  background: #1e1b4b;
  border: 2px solid #000;
  overflow: hidden;
  box-shadow: inset 1px 1px 0 #000;
}

.pixel-fill {
  height: 100%;
  transition: width 1s ease-in-out;
}

.fill-cyan { background: var(--neon-cyan); }
.fill-green { background: var(--pixel-green); }
.fill-yellow { background: var(--pixel-gold); }
.fill-purple { background: var(--pixel-purple); }

.stat-number {
  text-align: right;
  color: var(--pixel-gold);
}

/* Feature cards */
.about-features-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-box {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.15s ease;
}

.feature-box:hover {
  transform: translateX(6px);
  border-color: var(--neon-cyan);
}

.feature-icon-pixel {
  font-size: 2.2rem;
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e1b4b;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
}

.feature-title {
  font-family: var(--font-pixel-heading);
  font-size: 0.85rem;
  color: var(--pixel-gold);
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 1.25rem;
  color: #cbd5e1;
  line-height: 1.35;
}

/* ==========================================================================
   PRODUCTS SECTION (ITEM SELECTION CARDS)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    -4px -4px 0 0 var(--border-color),
    4px 4px 0 0 var(--border-color),
    -4px 4px 0 0 var(--border-color),
    4px -4px 0 0 var(--border-color),
    0 16px 0 0 rgba(0, 0, 0, 0.6),
    0 0 20px rgba(0, 240, 255, 0.25);
}

.product-card.featured-product {
  border-color: var(--pixel-gold);
}

.product-badge {
  font-family: var(--font-pixel-heading);
  font-size: 0.6rem;
  padding: 8px 12px;
  text-align: center;
  border-bottom: 4px solid #000;
  color: #000;
  letter-spacing: 1px;
}

.badge-coin { background: var(--pixel-gold); }
.badge-featured { background: var(--neon-magenta); color: #fff; }
.badge-retro { background: var(--neon-cyan); }

.product-preview {
  background: #090814;
  border-bottom: 4px solid #000;
  padding: 24px;
  text-align: center;
  position: relative;
}

.pixel-art-screen {
  width: 100%;
  max-width: 200px;
  height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pixel-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 0 #000);
}

.product-rarity {
  font-family: var(--font-pixel-heading);
  font-size: 0.55rem;
  color: var(--pixel-gold);
  margin-top: 10px;
  letter-spacing: 1px;
}

.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-family: var(--font-pixel-heading);
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 12px;
  min-height: 2.6rem;
}

.product-desc {
  font-size: 1.25rem;
  line-height: 1.4;
  color: #cbd5e1;
  margin-bottom: 18px;
  flex-grow: 1;
}

.product-specs {
  background: #0c091d;
  border: 2px solid #000;
  padding: 10px 12px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-pixel-heading);
  font-size: 0.55rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
}

.spec-k {
  color: #94a3b8;
}

.spec-v {
  color: var(--neon-cyan);
}

.product-action {
  margin-top: auto;
}

/* ==========================================================================
   INTERACTIVE MINI-GAME / ARCADE CABINET
   ========================================================================== */
.arcade-cabinet-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.arcade-cabinet {
  background: #1e113a;
  border: 6px solid #000;
  box-shadow: 
    0 16px 0 0 #000,
    0 0 35px rgba(121, 40, 202, 0.45);
  position: relative;
}

.cabinet-top {
  background: #3b0764;
  border-bottom: 4px solid #000;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-pixel-heading);
  font-size: 0.75rem;
  color: var(--pixel-gold);
  text-shadow: 2px 2px 0 #000;
}

.marquee-lights {
  color: var(--neon-cyan);
  animation: lightsBlink 0.8s infinite alternate;
}

@keyframes lightsBlink {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.cabinet-screen {
  background: #030712;
  border: 4px solid #000;
  margin: 18px;
  padding: 30px 20px;
  box-shadow: inset 0 0 30px #000;
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.screen-pixel-logo {
  font-size: 3rem;
  margin-bottom: 10px;
  animation: floatBounce 2s infinite ease-in-out alternate;
}

.screen-main-msg {
  font-family: var(--font-pixel-heading);
  font-size: 1.1rem;
  color: var(--pixel-green);
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
  margin-bottom: 10px;
}

.screen-sub-msg {
  font-family: var(--font-pixel-heading);
  font-size: 0.65rem;
  color: var(--pixel-gold);
}

.combo-indicator {
  font-family: var(--font-pixel-heading);
  font-size: 0.75rem;
  color: var(--neon-magenta);
  height: 20px;
  margin-top: 6px;
}

.cabinet-controls {
  background: #110c24;
  border-top: 4px solid #000;
  border-bottom: 4px solid #000;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
}

.joystick-base {
  width: 70px;
  height: 70px;
  background: #334155;
  border: 4px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset -4px -4px 0 #1e293b;
  position: relative;
}

.joystick-stick {
  width: 26px;
  height: 26px;
  background: var(--pixel-red);
  border: 3px solid #000;
  border-radius: 50%;
  box-shadow: inset 3px 3px 0 #fff;
  transition: transform 0.1s ease;
  cursor: grab;
}

.arcade-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.arcade-btn {
  padding: 16px 20px;
  font-family: var(--font-pixel-heading);
  font-size: 0.75rem;
  cursor: pointer;
  border: 4px solid #000;
  outline: none;
  text-transform: uppercase;
  user-select: none;
  transition: transform 0.05s ease, filter 0.1s ease;
}

.arcade-btn.btn-gold {
  background: var(--pixel-gold);
  color: #000;
  box-shadow: 
    inset 3px 3px 0 #fff,
    inset -3px -3px 0 #b8860b,
    4px 4px 0 #000;
}

.arcade-btn.btn-red {
  background: var(--pixel-red);
  color: #fff;
  box-shadow: 
    inset 3px 3px 0 #fff,
    inset -3px -3px 0 #991b1b,
    4px 4px 0 #000;
}

.arcade-btn:hover {
  filter: brightness(1.15);
}

.arcade-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 #000;
}

.cabinet-bottom {
  padding: 18px;
  background: #181230;
  display: flex;
  justify-content: center;
}

.coin-door {
  background: #0f0a1c;
  border: 3px solid #000;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.coin-return-slot {
  width: 14px;
  height: 20px;
  background: #334155;
  border: 2px solid #000;
  box-shadow: inset 0 2px 0 #000;
}

.coin-instruction {
  font-family: var(--font-pixel-heading);
  font-size: 0.6rem;
  color: #94a3b8;
}

/* ==========================================================================
   PHILOSOPHY / CREED SECTION
   ========================================================================== */
.philosophy-section {
  padding: 50px 0;
}

.creed-box {
  background: #0d0a1d;
  border: 4px solid var(--pixel-gold);
  box-shadow: 
    -4px -4px 0 0 #000, 4px 4px 0 0 #000, -4px 4px 0 0 #000, 4px -4px 0 0 #000,
    0 0 25px rgba(255, 215, 0, 0.25);
  padding: 40px 30px;
  text-align: center;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.creed-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--neon-cyan);
  border: 2px solid #000;
}

.creed-corner.top-left { top: -6px; left: -6px; }
.creed-corner.top-right { top: -6px; right: -6px; }
.creed-corner.bottom-left { bottom: -6px; left: -6px; }
.creed-corner.bottom-right { bottom: -6px; right: -6px; }

.creed-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.creed-quote {
  font-family: var(--font-pixel-heading);
  font-size: clamp(0.95rem, 2.2vw, 1.45rem);
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 20px;
}

.creed-author {
  font-family: var(--font-pixel-heading);
  font-size: 0.75rem;
  color: var(--pixel-gold);
  letter-spacing: 2px;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-box {
  padding: 45px 30px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1f1142 0%, #12092b 100%);
}

.cta-badge {
  display: inline-block;
  background: var(--neon-magenta);
  color: #fff;
  font-family: var(--font-pixel-heading);
  font-size: 0.65rem;
  padding: 6px 14px;
  border: 2px solid #000;
  margin-bottom: 20px;
}

.cta-headline {
  font-family: var(--font-pixel-heading);
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  color: var(--pixel-gold);
  text-shadow: 3px 3px 0 #000;
  margin-bottom: 18px;
  line-height: 1.35;
}

.cta-description {
  font-size: 1.4rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.4;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.easter-egg-hint {
  font-family: var(--font-pixel-heading);
  font-size: 0.6rem;
  color: #64748b;
  letter-spacing: 1px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.hud-footer {
  background: #080512;
  border-top: 4px solid #000;
  padding: 40px 0 30px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel-heading);
  font-size: 1rem;
  color: #fff;
}

.footer-tagline {
  font-family: var(--font-pixel-heading);
  font-size: 0.7rem;
  color: var(--neon-cyan);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  font-family: var(--font-pixel-heading);
  font-size: 0.65rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  border-top: 2px dashed #1e1b4b;
  padding-top: 20px;
  text-align: center;
  font-size: 1.15rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.system-signature {
  font-family: var(--font-pixel-heading);
  font-size: 0.55rem;
  color: #475569;
}

/* ==========================================================================
   MODAL DIALOG (ITEM DETAIL)
   ========================================================================== */
.pixel-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.pixel-modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(2px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-x {
  margin-left: auto;
  background: var(--pixel-red);
  color: #fff;
  border: 2px solid #000;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-family: var(--font-pixel-heading);
  font-size: 0.6rem;
  line-height: 1;
}

.modal-content-body {
  text-align: center;
}

.modal-icon-badge {
  font-size: 3rem;
  margin-bottom: 12px;
}

.modal-prod-title {
  font-family: var(--font-pixel-heading);
  font-size: 1rem;
  color: var(--neon-cyan);
  margin-bottom: 12px;
}

.modal-prod-desc {
  font-size: 1.3rem;
  line-height: 1.4;
  color: #cbd5e1;
  margin-bottom: 20px;
  text-align: left;
}

.modal-feature-list {
  text-align: left;
  background: #090715;
  border: 2px solid #000;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #e2e8f0;
}

.modal-feature-list li {
  list-style-type: none;
  position: relative;
  padding-left: 20px;
}

.modal-feature-list li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--pixel-gold);
  font-size: 0.8rem;
}

/* ==========================================================================
   ACHIEVEMENT NOTIFICATION TOAST
   ========================================================================== */
.achievement-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #130e29;
  border: 4px solid var(--pixel-gold);
  box-shadow: 
    4px 4px 0 #000, 
    -4px -4px 0 #000,
    0 0 20px rgba(255, 215, 0, 0.4);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10001;
  transform: translateY(150%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.achievement-toast.show {
  transform: translateY(0);
}

.toast-icon {
  font-size: 2rem;
}

.toast-title {
  font-family: var(--font-pixel-heading);
  font-size: 0.65rem;
  color: var(--pixel-gold);
}

.toast-desc {
  font-size: 1.2rem;
  color: #fff;
}

/* ==========================================================================
   ANIMATIONS & BLINK EFFECTS
   ========================================================================== */
.blink-slow {
  animation: pixelBlink 1.2s infinite steps(1);
}

.blink-fast {
  animation: pixelBlink 0.6s infinite steps(1);
}

@keyframes pixelBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 1.2rem;
  }
  
  .hud-nav {
    position: fixed;
    top: 57px;
    left: 0;
    width: 100%;
    background: #0f0b22;
    border-bottom: 4px solid #000;
    flex-direction: column;
    padding: 20px;
    display: none;
  }

  .hud-nav.open {
    display: flex;
  }

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

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

  .cabinet-controls {
    flex-direction: column;
  }

  .stat-row {
    grid-template-columns: 80px 1fr 40px;
  }

  .hud-stat-item .btn-text {
    display: none;
  }
}

