/* 
  NEON BOROUGH: Block Chronicles — Ultra-Premium English Pixel RPG Design System
*/

:root {
  --bg-dark: #0b0e17;
  --bg-card: #131826;
  --bg-card-hover: #1c2438;
  --bg-panel: #171e30;
  
  --emerald: #47e076;
  --emerald-dark: #248a43;
  --emerald-glow: rgba(71, 224, 118, 0.35);
  
  --gold: #ffcf40;
  --gold-dark: #d49a17;
  --gold-glow: rgba(255, 207, 64, 0.4);

  --diamond: #48dbfb;
  --cyan: #0abde3;
  
  --redstone: #ff4757;
  --redstone-dark: #b32b37;
  
  --purple: #a55eea;
  --purple-dark: #8854d0;
  
  --text-main: #f1f2f6;
  --text-muted: #a4b0be;
  --text-dim: #747d8c;
  
  --border-line: rgba(255, 255, 255, 0.12);
  --border-block: #2ed573;
  
  --font-pixel: 'Press Start 2P', monospace;
  --font-retro: 'VT323', monospace;
  --font-body: 'Outfit', sans-serif;
  
  --shadow-block: 5px 5px 0px #000;
  --shadow-block-lg: 8px 8px 0px #000;
  --shadow-block-sm: 3px 3px 0px #000;

  --accent-theme: var(--emerald);
  --glow-theme: var(--emerald-glow);
}

/* Biome Themes Dynamic Overrides */
body.theme-nether {
  --bg-dark: #14080a;
  --bg-card: #241014;
  --bg-card-hover: #33161c;
  --bg-panel: #291217;
  --accent-theme: #ff4757;
  --glow-theme: rgba(255, 71, 87, 0.4);
}

body.theme-lunar {
  --bg-dark: #070b16;
  --bg-card: #0e1529;
  --bg-card-hover: #15203d;
  --bg-panel: #111a33;
  --accent-theme: #0abde3;
  --glow-theme: rgba(10, 189, 227, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Background Particle Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.wrap {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Pixel Typography & Color Utilities */
.font-pixel { font-family: var(--font-pixel); }
.font-retro { font-family: var(--font-retro); }
.text-gold { color: var(--gold); }
.text-emerald { color: var(--emerald); }
.text-cyan { color: var(--cyan); }
.text-redstone { color: var(--redstone); }
.text-purple { color: var(--purple); }

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(11, 14, 23, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--border-line);
  z-index: 100;
  transition: background 0.3s;
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-theme) 0%, #185a2b 100%);
  border: 3px solid #000;
  box-shadow: 3px 3px 0 #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background 0.3s;
}

.brand-text {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
  display: flex;
  flex-direction: column;
}

.brand-sub {
  font-size: 8px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-top: 2px;
}

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

.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-theme);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-theme);
  box-shadow: 0 0 10px var(--accent-theme);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Biome Environment Switcher */
.biome-switcher {
  display: flex;
  background: var(--bg-card);
  border: 2px solid #000;
  box-shadow: var(--shadow-block-sm);
  padding: 3px;
  gap: 4px;
}

.biome-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s;
}

.biome-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.biome-btn.active {
  background: var(--accent-theme);
  color: #000;
  font-weight: bold;
}

.sfx-btn, .bgm-btn {
  background: var(--bg-card);
  border: 2px solid #000;
  box-shadow: var(--shadow-block-sm);
  color: var(--gold);
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--font-pixel);
  font-size: 10px;
  transition: transform 0.1s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sfx-btn:hover, .bgm-btn:hover {
  transform: translate(-1px, -1px);
  background: var(--bg-card-hover);
}

.sfx-btn:active, .bgm-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.nav-cta {
  background: var(--accent-theme);
  color: #0b0e17;
  font-family: var(--font-pixel);
  font-size: 11px;
  padding: 12px 18px;
  text-decoration: none;
  border: 2px solid #000;
  box-shadow: var(--shadow-block-sm);
  font-weight: bold;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000;
  filter: brightness(1.1);
}

.online-badge {
  background: rgba(71, 224, 118, 0.1);
  border: 1px solid rgba(71, 224, 118, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-retro);
  font-size: 18px;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 8px;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 860px;
  padding-top: 140px;
  padding-bottom: 75px;
  display: flex;
  align-items: center;
  background: 
    radial-gradient(circle at 50% 20%, var(--glow-theme) 0%, transparent 60%),
    linear-gradient(180deg, rgba(16, 21, 36, 0.9) 0%, var(--bg-dark) 100%);
  border-bottom: 2px solid var(--border-line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 207, 64, 0.12);
  border: 1px solid rgba(255, 207, 64, 0.35);
  padding: 6px 14px;
  color: var(--gold);
  font-family: var(--font-pixel);
  font-size: 10px;
  margin-bottom: 22px;
  box-shadow: 0 0 10px rgba(255, 207, 64, 0.15);
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.15;
  color: #fff;
  text-shadow: 4px 4px 0 #000, 8px 8px 0 var(--glow-theme);
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--accent-theme);
  display: block;
  transition: color 0.3s;
}

.hero-subtitle {
  font-family: var(--font-retro);
  font-size: 34px;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 34px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-theme) 0%, #209647 100%);
  color: #000;
  font-family: var(--font-pixel);
  font-size: 12px;
  padding: 18px 30px;
  text-decoration: none;
  border: 3px solid #000;
  box-shadow: var(--shadow-block);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

.btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 #000;
  filter: brightness(1.15);
}

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

.btn-secondary {
  background: var(--bg-card);
  color: var(--gold);
  font-family: var(--font-pixel);
  font-size: 12px;
  padding: 18px 30px;
  text-decoration: none;
  border: 3px solid var(--gold-dark);
  box-shadow: var(--shadow-block);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 #000;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 600px;
}

.hero-stat-card {
  background: var(--bg-card);
  border: 2px solid #000;
  box-shadow: var(--shadow-block-sm);
  padding: 14px;
  text-align: center;
  transition: transform 0.2s;
}

.hero-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-theme);
}

.hero-stat-card b {
  display: block;
  font-family: var(--font-retro);
  font-size: 34px;
  color: var(--accent-theme);
  line-height: 1;
}

.hero-stat-card span {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
}

/* Hero Voxel Showcase Card */
.voxel-card {
  background: var(--bg-card);
  border: 4px solid #000;
  box-shadow: var(--shadow-block-lg);
  padding: 30px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.voxel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, var(--glow-theme), transparent 70%);
  pointer-events: none;
}

.voxel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px dashed var(--border-line);
  padding-bottom: 12px;
}

.voxel-title {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--gold);
}

.voxel-level {
  background: var(--purple);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 4px 8px;
  border: 1px solid #000;
  box-shadow: var(--shadow-block-sm);
}

/* 3D CSS Block Character Canvas */
.character-display-stage {
  height: 290px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.css-block-character {
  width: 130px;
  height: 240px;
  position: relative;
  transform-style: preserve-3d;
  animation: float-idle 3s ease-in-out infinite;
}

@keyframes float-idle {
  0%, 100% { transform: translateY(0px) rotateY(0deg); }
  50% { transform: translateY(-14px) rotateY(8deg); }
}

/* ==========================================================================
   BADASS MYTHIC ARMORED BLOCK HERO (GOLD HORNED HELMET, PAULDRONS & CAPE)
   ========================================================================== */

/* Flowing Mythic Cape behind hero */
.hero-cape {
  position: absolute;
  top: 60px;
  left: 10px;
  width: 100px;
  height: 140px;
  background: linear-gradient(180deg, #5b132b 0%, #a21b44 60%, #470d20 100%);
  border: 3px solid #000;
  z-index: 0;
  box-shadow: -6px 8px 15px rgba(0,0,0,0.8);
  transform-origin: top center;
  animation: cape-wave 3.5s ease-in-out infinite;
}

@keyframes cape-wave {
  0%, 100% { transform: rotate(-2deg) skewY(1deg); }
  50% { transform: rotate(3deg) skewY(-2deg); }
}

/* Armored Head + Horned Crown Helmet */
.block-head {
  width: 80px;
  height: 80px;
  background: #232a3b;
  border: 4px solid #000;
  box-shadow: inset 10px 0 0 #181d2a, inset -8px -8px 0 #181d2a;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

/* Horned Golden Helmet Crown */
.block-helmet {
  position: absolute;
  top: -12px;
  left: -8px;
  width: 96px;
  height: 42px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: 3px solid #000;
  box-shadow: 0 4px 0 #000, 0 0 14px var(--gold-glow);
}

.helmet-horns {
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.helmet-horns::before, .helmet-horns::after {
  content: '';
  width: 16px;
  height: 18px;
  background: var(--gold);
  border: 3px solid #000;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.block-eyes {
  position: absolute;
  top: 36px;
  left: 12px;
  width: 56px;
  height: 14px;
  display: flex;
  justify-content: space-between;
}

.block-eye {
  width: 18px;
  height: 14px;
  background: #000;
  border: 2px solid #000;
  position: relative;
}

.block-eye::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* Heavy Steel Breastplate with Core Gem */
.block-chest {
  width: 96px;
  height: 76px;
  background: linear-gradient(180deg, #2f3640 0%, #1e272e 100%);
  border: 4px solid #000;
  margin: -4px auto 0;
  position: relative;
  z-index: 2;
  box-shadow: inset 12px 0 0 rgba(0,0,0,0.35);
  transition: background 0.3s;
}

.chest-plate {
  position: absolute;
  inset: 6px;
  border: 3px solid var(--gold);
  background: rgba(0,0,0,0.3);
}

.chest-gem {
  position: absolute;
  top: 14px;
  left: 26px;
  width: 36px;
  height: 36px;
  background: var(--accent-theme);
  border: 3px solid #000;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 0 14px var(--accent-theme);
}

/* Raised Shoulder Pauldrons & Armors */
.block-arm {
  position: absolute;
  top: 66px; /* High shoulder level */
  width: 24px;
  height: 76px;
  background: #2f3640;
  border: 4px solid #000;
  box-shadow: inset 5px 0 0 #1e272e;
  transition: all 0.2s ease;
  z-index: 3;
}

/* Heavy Spiked Shoulder Pauldrons */
.arm-pauldron {
  position: absolute;
  top: -12px;
  left: -6px;
  width: 32px;
  height: 22px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: 3px solid #000;
  box-shadow: 2px 2px 0 #000;
}

.arm-left { left: -4px; }
.arm-right { right: -4px; }

/* Floating Glowing Diamond Sword in Right Arm */
.hero-weapon {
  position: absolute;
  right: -32px;
  top: 15px;
  font-size: 38px;
  filter: drop-shadow(0 0 12px var(--diamond));
  animation: weapon-glow 2s ease-in-out infinite;
  transform: rotate(20deg);
}

@keyframes weapon-glow {
  0%, 100% { transform: rotate(20deg) translateY(0); filter: drop-shadow(0 0 10px var(--diamond)); }
  50% { transform: rotate(25deg) translateY(-6px); filter: drop-shadow(0 0 18px var(--cyan)); }
}

/* Studded Warrior Belt */
.block-belt {
  width: 96px;
  height: 16px;
  background: var(--gold);
  border: 3px solid #000;
  margin: -4px auto 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 3px 0 #000;
}

/* Heavy Armored Greaves & Boots */
.block-legs {
  width: 88px;
  height: 70px;
  margin: -4px auto 0;
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.block-leg {
  width: 40px;
  height: 70px;
  background: #1e272e;
  border: 4px solid #000;
  box-shadow: inset 6px 0 0 #11171d;
  position: relative;
}

.leg-armor {
  position: absolute;
  top: 12px;
  left: 2px;
  right: 2px;
  height: 24px;
  background: var(--gold);
  border: 2px solid #000;
}

.pedestal-3d {
  width: 210px;
  height: 42px;
  background: #4b6584;
  border: 4px solid #000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pedestal-3d::before {
  content: 'MYTHIC ARMORED HERO';
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--gold);
}

.skin-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.skin-opt {
  width: 34px;
  height: 34px;
  border: 2px solid #000;
  box-shadow: var(--shadow-block-sm);
  cursor: pointer;
  transition: transform 0.15s;
}

.skin-opt:hover { transform: scale(1.15); }
.skin-opt.active { border-color: var(--gold); box-shadow: 0 0 12px var(--gold); }

/* Ticker Marquee Ribbon */
.marquee-ribbon {
  background: var(--gold);
  color: #101524;
  border-block: 4px solid #000;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.marquee-content {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: bold;
  animation: marquee-roll 30s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-right: 40px;
}

.marquee-item span {
  color: var(--redstone);
}

@keyframes marquee-roll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Common Section Layouts */
section {
  padding: 105px 0;
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 65px;
}

.section-eyebrow {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--accent-theme);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: inline-block;
  background: rgba(71, 224, 118, 0.1);
  padding: 6px 14px;
  border: 1px solid rgba(71, 224, 118, 0.25);
  transition: color 0.3s;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(26px, 3.8vw, 44px);
  color: #fff;
  line-height: 1.25;
  text-shadow: 3px 3px 0 #000;
  margin-bottom: 16px;
}

.section-sub {
  font-family: var(--font-retro);
  font-size: 27px;
  color: var(--text-muted);
}

/* Features Grid */
.features-section {
  background: #0f1320;
  border-bottom: 2px solid var(--border-line);
}

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

.feature-card {
  background: var(--bg-card);
  border: 3px solid #000;
  box-shadow: var(--shadow-block);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 8px 14px 0 #000;
  background: var(--bg-card-hover);
  border-color: var(--accent-theme);
}

.feature-number {
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-family: var(--font-pixel);
  font-size: 95px;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
  font-weight: bold;
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  background: var(--bg-panel);
  border: 3px solid #000;
  box-shadow: var(--shadow-block-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--gold);
}

.feature-card h3 {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 14px;
  line-height: 1.4;
}

.feature-card p {
  font-family: var(--font-retro);
  font-size: 23px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* CRAFTING BENCH SANDBOX SECTION — BIG & EPIC Glowing Number Badges */
.crafting-section {
  background: linear-gradient(180deg, #111728 0%, #0d1220 100%);
  border-bottom: 2px solid var(--border-line);
}

.crafting-container {
  background: var(--bg-card);
  border: 4px solid #000;
  box-shadow: var(--shadow-block-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.crafting-bench-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.crafting-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 82px);
  grid-template-rows: repeat(3, 82px);
  gap: 12px;
  background: #1b253b;
  padding: 16px;
  border: 4px solid #000;
  box-shadow: var(--shadow-block-lg);
  position: relative;
}

/* Craft Slots with BIG, BOLD, EPIC Glowing Numbers (1 through 9) */
.craft-slot {
  width: 82px;
  height: 82px;
  background: #101626;
  border: 3px solid #000;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

/* BIG BOLD RUNE NUMBER BADGE IN TOP-LEFT OF EACH SLOT */
.craft-slot::before {
  content: attr(data-slot);
  position: absolute;
  top: 5px;
  left: 8px;
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--gold);
  opacity: 0.75;
  text-shadow: 2px 2px 0 #000, 0 0 10px var(--gold-glow);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1;
}

.craft-slot:hover {
  background: #1e2a47;
  border-color: var(--gold);
  box-shadow: inset 0 0 16px rgba(255, 207, 64, 0.4);
}

.craft-slot:hover::before {
  opacity: 1;
  font-size: 20px;
  color: var(--emerald);
  text-shadow: 2px 2px 0 #000, 0 0 16px var(--emerald-glow);
  transform: scale(1.1);
}

.crafting-result-box {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255,207,64,0.3), #121828);
  border: 4px solid var(--gold);
  box-shadow: 0 0 28px rgba(255,207,64,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  transition: transform 0.2s;
}

.craft-inventory-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.inventory-item-btn {
  background: #192238;
  border: 2px solid #000;
  box-shadow: var(--shadow-block-sm);
  padding: 10px 14px;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s, border-color 0.2s;
}

.inventory-item-btn:hover {
  transform: translateY(-3px);
  border-color: var(--accent-theme);
}

.crafting-info-panel h3 {
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 12px;
}

.crafting-recipes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.recipe-chip {
  background: #182036;
  border: 2px solid #000;
  padding: 12px 18px;
  font-family: var(--font-retro);
  font-size: 22px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recipe-chip b { color: var(--emerald); }

/* EPIC BOSS RAIDS SHOWCASE */
.boss-section {
  background: #090c14;
  border-bottom: 2px solid var(--border-line);
}

.boss-container {
  background: var(--bg-card);
  border: 4px solid #000;
  box-shadow: var(--shadow-block-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.boss-avatar-stage {
  background: radial-gradient(circle at 50% 50%, rgba(255, 71, 87, 0.25), transparent 75%), #171014;
  border: 3px solid #000;
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.boss-icon-lg {
  font-size: 110px;
  filter: drop-shadow(0 10px 15px rgba(255,71,87,0.5));
  animation: boss-pulse 2s ease-in-out infinite;
}

@keyframes boss-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.boss-hp-bar-box {
  width: 85%;
  height: 24px;
  background: #000;
  border: 2px solid #ff4757;
  margin-top: 20px;
  position: relative;
}

.boss-hp-fill {
  height: 100%;
  width: 85%;
  background: linear-gradient(90deg, #ff4757, #ff6b81);
  box-shadow: 0 0 12px #ff4757;
}

.boss-hp-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}

.boss-info-panel h3 {
  font-family: var(--font-pixel);
  font-size: 26px;
  color: var(--redstone);
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 8px;
}

.boss-type-badge {
  display: inline-block;
  background: var(--redstone);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 4px 10px;
  border: 1px solid #000;
  margin-bottom: 20px;
}

.boss-drops-grid {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.drop-item-chip {
  background: #261418;
  border: 2px solid #ff4757;
  padding: 8px 12px;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--gold);
}

/* Characters Showcase Section */
.characters-section {
  background: #0b0e17;
  border-bottom: 2px solid var(--border-line);
  position: relative;
}

.char-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.char-tab {
  background: var(--bg-card);
  border: 3px solid #000;
  box-shadow: var(--shadow-block-sm);
  color: var(--text-muted);
  padding: 12px 22px;
  font-family: var(--font-pixel);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.char-tab:hover {
  color: #fff;
  transform: translateY(-2px);
}

.char-tab.active {
  background: var(--accent-theme);
  color: #000;
  border-color: #000;
  box-shadow: var(--shadow-block);
  font-weight: bold;
}

.char-display-box {
  background: var(--bg-card);
  border: 4px solid #000;
  box-shadow: var(--shadow-block-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.char-visual {
  background: radial-gradient(circle at 50% 50%, var(--glow-theme), transparent 75%), #171f33;
  border: 3px solid #000;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.char-avatar-img {
  width: 165px;
  height: 165px;
  border: 4px solid #000;
  box-shadow: var(--shadow-block);
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.char-avatar-img:hover {
  transform: scale(1.05);
}

.char-role-badge {
  background: var(--gold);
  color: #000;
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 6px 14px;
  border: 2px solid #000;
  box-shadow: var(--shadow-block-sm);
  font-weight: bold;
}

.char-info-panel h3 {
  font-family: var(--font-pixel);
  font-size: 24px;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 8px;
}

.char-title-sub {
  font-family: var(--font-retro);
  font-size: 25px;
  color: var(--accent-theme);
  margin-bottom: 20px;
}

.char-bio {
  font-size: 16.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.65;
}

/* Stat Bars */
.stat-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-label {
  width: 120px;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.stat-track {
  flex: 1;
  height: 16px;
  background: #0b0e17;
  border: 2px solid #000;
  overflow: hidden;
  position: relative;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, #209647 0%, var(--accent-theme) 100%);
  width: 0%;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 10px var(--accent-theme);
}

.stat-value {
  width: 36px;
  font-family: var(--font-retro);
  font-size: 20px;
  color: var(--gold);
  text-align: right;
  flex-shrink: 0;
}

.char-skills {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.skill-chip {
  background: #1a2238;
  border: 2px solid #000;
  padding: 8px 14px;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--diamond);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.skill-chip:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Screenshots / Gallery Section */
.gallery-section {
  background: #0f1320;
  border-bottom: 2px solid var(--border-line);
}

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

.gallery-card {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 3px solid #000;
  box-shadow: var(--shadow-block);
  overflow: hidden;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 14, 23, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.gallery-caption {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zoom-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #000;
  color: var(--accent-theme);
  padding: 6px 10px;
  font-family: var(--font-pixel);
  font-size: 10px;
}

/* Story & Lore Section */
.story-section {
  background: linear-gradient(135deg, #141a2e 0%, #0b0e17 100%);
  border-bottom: 2px solid var(--border-line);
  position: relative;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-content p {
  font-family: var(--font-retro);
  font-size: 26.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.4;
}

.story-quote {
  border-left: 4px solid var(--gold);
  padding-left: 20px;
  font-family: var(--font-retro);
  font-size: 30px;
  color: #fff;
  margin: 30px 0;
  font-style: italic;
}

.story-stats-grid {
  background: var(--bg-card);
  border: 4px solid #000;
  box-shadow: var(--shadow-block-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.story-stat-box {
  background: #182035;
  border: 2px solid #000;
  padding: 20px;
  text-align: center;
}

.story-stat-box b {
  font-family: var(--font-retro);
  font-size: 44px;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.story-stat-box span {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 8px;
  display: block;
}

/* Reviews Section */
.reviews-section {
  background: #0f1320;
  border-bottom: 2px solid var(--border-line);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 3px solid #000;
  box-shadow: var(--shadow-block);
  padding: 30px;
}

.review-stars {
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 14px;
}

.review-text {
  font-family: var(--font-retro);
  font-size: 25px;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 20px;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--border-line);
  padding-top: 14px;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-muted);
}

.review-author b {
  color: var(--diamond);
}

/* System Specs Section */
.specs-section {
  background: #0b0e17;
  border-bottom: 2px solid var(--border-line);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.spec-card {
  background: var(--bg-card);
  border: 3px solid #000;
  box-shadow: var(--shadow-block);
  padding: 30px;
}

.spec-card.recommended {
  border-color: var(--accent-theme);
}

.spec-card h3 {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-card.recommended h3 {
  color: var(--accent-theme);
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-line);
  font-family: var(--font-retro);
  font-size: 22px;
}

.spec-item label {
  color: var(--text-muted);
}

.spec-item span {
  color: #fff;
  font-weight: bold;
}

/* Download CTA Section */
.download-section {
  background: 
    radial-gradient(ellipse at 50% 0%, var(--glow-theme) 0%, transparent 60%),
    #0d111d;
  text-align: center;
  padding: 120px 0;
}

.download-box {
  background: var(--bg-card);
  border: 4px solid #000;
  box-shadow: var(--shadow-block-lg);
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 30px;
}

.download-box h2 {
  font-family: var(--font-pixel);
  font-size: 32px;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 3px 3px 0 #000;
}

.download-box p {
  font-family: var(--font-retro);
  font-size: 28px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.file-info-badge {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 24px;
}

/* Modal Popup Windows */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--bg-card);
  border: 4px solid #000;
  box-shadow: var(--shadow-block-lg);
  max-width: 600px;
  width: 100%;
  padding: 30px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-window {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--redstone);
  color: #fff;
  border: 2px solid #000;
  width: 32px;
  height: 32px;
  font-family: var(--font-pixel);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--redstone-dark);
}

.modal-title {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 20px;
}

/* Download Progress Modal Content */
.dl-progress-bar-container {
  height: 24px;
  background: #0b0e17;
  border: 3px solid #000;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.dl-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald-dark) 0%, var(--emerald) 100%);
  transition: width 0.1s linear;
}

.dl-progress-text {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.dl-complete-msg {
  display: none;
  text-align: center;
  margin-top: 20px;
}

.dl-complete-msg.active {
  display: block;
}

/* Lightbox Image Previewer */
.lightbox-img-box {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border: 3px solid #000;
}

/* Footer */
.footer {
  background: #070a10;
  border-top: 2px solid var(--border-line);
  padding: 40px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-rights {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-dim);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-grid,
  .story-grid,
  .char-display-box,
  .crafting-container,
  .boss-container {
    grid-template-columns: 1fr;
  }
  
  .features-grid,
  .gallery-grid,
  .reviews-grid,
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .features-grid,
  .gallery-grid,
  .reviews-grid,
  .specs-grid,
  .hero-stats-row {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
