/* ==========================================================================
   MAIRAP.XYZ WIKI - 8-BIT RETRO DRAGON BALL x MINECRAFT THEME
   Optimized Typography for Vietnamese: Chakra Petch (Gaming Header) & Be Vietnam Pro (Clean Body)
   Palette: Golden Orange (#FF6A00, #FFBE0B), Ki Blue, Obsidian, Minecraft Bevels
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,500;0,600;0,700;0,800;1,700&family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Press+Start+2P&display=swap');

:root {
  --bg-deep: #0f0c15;
  --bg-dark: #191424;
  --bg-card: #20182e;
  --bg-card-hover: #2c2140;
  
  --db-orange: #ff6a00;
  --db-orange-light: #ff8c1a;
  --db-orange-dark: #b83d00;
  
  --db-gold: #ffbe0b;
  --db-gold-light: #ffea79;
  --db-gold-dark: #c48b00;

  --ki-blue: #00b4d8;
  --ki-blue-glow: #90e0ef;
  --saiyan-red: #d90429;
  --shenron-green: #2ec4b6;
  --frieza-purple: #9d4edd;
  
  --mc-dirt: #866043;
  --mc-stone: #686868;
  --mc-green: #4ade80;
  --mc-gold: #ffaa00;
  --mc-red: #f87171;
  --mc-aqua: #38bdf8;
  
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;

  --font-game: 'Chakra Petch', sans-serif;
  --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-pixel-num: 'Press Start 2P', monospace;
}

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

/* Crisp rendering with proper subpixel smoothing for Vietnamese diacritics */
body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image: 
    linear-gradient(rgba(15, 12, 21, 0.88), rgba(15, 12, 21, 0.94)),
    url('../images/shenron_kame_house.png'),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.25) 2px, rgba(0, 0, 0, 0.25) 4px);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* Images retain sharp pixel rendering */
img, .pixel-art {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

html {
  scroll-behavior: smooth;
}

/* CRT Scanlines Overlay */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(
    rgba(18, 16, 26, 0) 50%, 
    rgba(0, 0, 0, 0.22) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.02),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.02)
  );
  background-size: 100% 4px, 6px 100%;
  opacity: 0.6;
  transition: opacity 0.3s;
}

body.scanlines-disabled .crt-overlay {
  display: none;
}

/* Typography with Full Vietnamese Diacritics Support */
h1, h2, h3, h4, .pixel-title {
  font-family: var(--font-game);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.35;
}

h1 { font-size: 1.7rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.95rem; }

p, li, span, td, th {
  font-family: var(--font-body);
  letter-spacing: 0.2px;
}

strong {
  font-weight: 700;
}

.text-gold { color: var(--db-gold); }
.text-orange { color: var(--db-orange); }
.text-blue { color: var(--ki-blue); }
.text-green { color: var(--mc-green); }
.text-red { color: var(--saiyan-red); }

/* Pixel Box Containers */
.pixel-box {
  background: var(--bg-card);
  border: 4px solid #000;
  box-shadow: 
    inset 4px 4px 0 0 rgba(255, 255, 255, 0.1),
    inset -4px -4px 0 0 rgba(0, 0, 0, 0.6),
    0 6px 0 0 #000;
  padding: 24px;
  position: relative;
  transition: transform 0.15s ease;
}

.pixel-box-orange {
  background: linear-gradient(135deg, #2b170c 0%, #1c1122 100%);
  border: 4px solid #000;
  box-shadow: 
    inset 4px 4px 0 0 var(--db-orange-light),
    inset -4px -4px 0 0 var(--db-orange-dark),
    0 6px 0 0 #000;
}

.pixel-box-gold {
  background: linear-gradient(135deg, #2e2208 0%, #1f182c 100%);
  border: 4px solid #000;
  box-shadow: 
    inset 4px 4px 0 0 var(--db-gold-light),
    inset -4px -4px 0 0 var(--db-gold-dark),
    0 6px 0 0 #000;
}

.pixel-box-mc {
  background: #14071c;
  border: 4px solid #280058;
  box-shadow: 
    inset 4px 4px 0 0 #4a008c,
    inset -4px -4px 0 0 #180034,
    0 6px 0 0 #000;
}

/* 8-Bit Interactive Buttons */
.pixel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  padding: 12px 20px;
  border: 3px solid #000;
  text-transform: uppercase;
  transition: all 0.05s ease;
  user-select: none;
  position: relative;
  letter-spacing: 0.5px;
}

.pixel-btn-orange {
  background: var(--db-orange);
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  box-shadow: 
    inset 3px 3px 0 0 #ffa34d,
    inset -3px -3px 0 0 #943200,
    0 5px 0 0 #000;
}

.pixel-btn-orange:hover {
  background: var(--db-orange-light);
  transform: translateY(-2px);
  box-shadow: 
    inset 3px 3px 0 0 #ffca80,
    inset -3px -3px 0 0 #ab3d00,
    0 7px 0 0 #000;
}

.pixel-btn-orange:active {
  transform: translateY(4px);
  box-shadow: 
    inset 3px 3px 0 0 #943200,
    inset -3px -3px 0 0 #ffa34d,
    0 1px 0 0 #000;
}

.pixel-btn-gold {
  background: var(--db-gold);
  color: #1a0f00;
  box-shadow: 
    inset 3px 3px 0 0 #fff080,
    inset -3px -3px 0 0 #997000,
    0 5px 0 0 #000;
}

.pixel-btn-gold:hover {
  background: #ffd043;
  transform: translateY(-2px);
  box-shadow: 
    inset 3px 3px 0 0 #fff8b3,
    inset -3px -3px 0 0 #b38300,
    0 7px 0 0 #000;
}

.pixel-btn-gold:active {
  transform: translateY(4px);
  box-shadow: 
    inset 3px 3px 0 0 #997000,
    inset -3px -3px 0 0 #fff080,
    0 1px 0 0 #000;
}

.pixel-btn-mc {
  background: #3c3848;
  color: #fff;
  text-shadow: 1px 1px 0 #1e1e1e;
  box-shadow: 
    inset 3px 3px 0 0 #615a72,
    inset -3px -3px 0 0 #24202e,
    0 5px 0 0 #000;
}

.pixel-btn-mc:hover {
  background: #4c465b;
  box-shadow: 
    inset 3px 3px 0 0 #736b87,
    inset -3px -3px 0 0 #2b2737,
    0 7px 0 0 #000;
  transform: translateY(-2px);
}

.pixel-btn-mc:active {
  transform: translateY(4px);
  box-shadow: 
    inset 3px 3px 0 0 #24202e,
    inset -3px -3px 0 0 #615a72,
    0 1px 0 0 #000;
}

.pixel-btn-discord {
  background: #5865F2;
  color: #fff;
  text-shadow: 1px 1px 0 #1e2570;
  box-shadow: 
    inset 3px 3px 0 0 #7983f5,
    inset -3px -3px 0 0 #3c45a5,
    0 5px 0 0 #000;
}

.pixel-btn-discord:hover {
  background: #6975f7;
  transform: translateY(-2px);
  box-shadow: 
    inset 3px 3px 0 0 #8b94f8,
    inset -3px -3px 0 0 #4752c4,
    0 7px 0 0 #000;
}

.pixel-btn-discord:active {
  transform: translateY(4px);
  box-shadow: 
    inset 3px 3px 0 0 #3c45a5,
    inset -3px -3px 0 0 #7983f5,
    0 1px 0 0 #000;
}

/* Pixel Tabs Navigation */
.pixel-tabs-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.pixel-tab-btn {
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  background: #191224;
  color: var(--text-secondary);
  border: 3px solid #000;
  cursor: pointer;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.08),
    inset -2px -2px 0 #000,
    0 5px 0 #000;
  transition: all 0.1s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pixel-tab-btn:hover {
  background: #281d3a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.12),
    inset -2px -2px 0 #000,
    0 7px 0 #000;
}

.pixel-tab-btn.active {
  background: var(--db-orange);
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  box-shadow: 
    inset 3px 3px 0 #ffa34d,
    inset -3px -3px 0 #943200,
    0 5px 0 #000;
}

.pixel-tab-pane {
  display: none;
}

.pixel-tab-pane.active {
  display: block;
  animation: tabFadeIn 0.22s ease-in-out;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header & Top Bar */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #140f20;
  border-bottom: 4px solid #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

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

.logo-ball {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 35% 35%, #ffea79, #ff7700);
  border: 3px solid #000;
  box-shadow: 0 0 10px #ff9900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c40000;
  font-size: 18px;
  animation: pulseBall 2s infinite ease-in-out;
}

@keyframes pulseBall {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px #ff7700; }
  50% { transform: scale(1.08); box-shadow: 0 0 18px #ffbb00; }
}

.logo-text h1 {
  font-size: 1.25rem;
  color: var(--db-gold);
  text-shadow: 2px 2px 0 #000, 0 0 10px rgba(255, 190, 11, 0.5);
  margin-bottom: 1px;
}

.logo-text span {
  font-family: var(--font-game);
  font-weight: 600;
  font-size: 12px;
  color: var(--ki-blue-glow);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border: 2px solid transparent;
  transition: all 0.12s;
  letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 106, 0, 0.2);
  border: 2px solid var(--db-orange);
  box-shadow: 0 0 8px var(--db-orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-toggle-btn, .crt-toggle-btn {
  background: #272138;
  border: 2px solid #000;
  color: var(--db-gold);
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.1), inset -2px -2px 0 #000;
}

.audio-toggle-btn:hover, .crt-toggle-btn:hover {
  background: #393152;
}

/* 7 Dragon Balls Collector Bar */
.dragon-balls-banner {
  background: linear-gradient(90deg, #1b1208, #2a1608, #1b1208);
  border-bottom: 3px solid #000;
  padding: 8px 15px;
  text-align: center;
  position: relative;
}

.balls-tracker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.balls-label {
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 13px;
  color: var(--db-gold);
  text-shadow: 1px 1px 0 #000;
}

.balls-row {
  display: flex;
  gap: 8px;
}

.d-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #000;
  background: radial-gradient(circle at 35% 35%, #888, #444);
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.4);
}

.d-ball.collected {
  background: radial-gradient(circle at 35% 35%, #fff275, #ff6600);
  color: #c00;
  box-shadow: 0 0 10px #ffaa00;
  animation: floatBall 2s ease-in-out infinite alternate;
}

@keyframes floatBall {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.summon-dragon-btn {
  font-size: 11px;
  padding: 7px 14px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 40px 20px 60px;
  background: radial-gradient(circle at 50% 30%, #3a1c0d 0%, #171124 70%, #0f0c15 100%);
  border-bottom: 6px solid #000;
  overflow: hidden;
}

.hero-bg-art {
  position: absolute;
  top: 0;
  right: 5%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
  filter: contrast(1.2) brightness(0.9);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.badge-event {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d90429;
  color: #fff;
  border: 3px solid #000;
  box-shadow: 3px 3px 0 #000;
  padding: 6px 14px;
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  animation: flashBadge 1.2s infinite;
}

@keyframes flashBadge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.92; transform: scale(1.02); }
}

.hero-title {
  font-size: 2.3rem;
  color: var(--db-gold);
  text-shadow: 
    3px 3px 0 #000,
    -1px -1px 0 #ff6a00,
    0 0 25px rgba(255, 106, 0, 0.6);
  line-height: 1.25;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 25px;
}

.hero-subtitle strong {
  color: var(--db-orange-light);
}

/* IP Box - Large 8-bit copy widget */
.server-ip-banner {
  background: #120b1c;
  border: 4px solid #000;
  box-shadow: 
    inset 4px 4px 0 0 #ff7700,
    inset -4px -4px 0 0 #5e2600,
    0 8px 0 0 #000;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.ip-info-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ip-label {
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 12px;
  color: var(--db-gold-light);
  letter-spacing: 0.5px;
}

.ip-address-display {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ip-text {
  font-family: var(--font-pixel-num);
  font-size: 20px;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 3px 3px 0 #000, 0 0 10px #ffbe0b;
}

.version-pill {
  background: #251c36;
  color: var(--mc-green);
  border: 2px solid #000;
  padding: 4px 10px;
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 13px;
}

.server-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-game);
  font-size: 14px;
  font-weight: 600;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  padding: 8px 14px;
  border: 2px solid #2e2640;
}

.stat-dot {
  width: 10px;
  height: 10px;
  background: var(--mc-green);
  box-shadow: 0 0 8px var(--mc-green);
  display: inline-block;
  border-radius: 50%;
}

/* Hero Showcase Card */
.hero-character-stage {
  position: relative;
  text-align: center;
}

.character-portrait-box {
  background: radial-gradient(circle at 50% 40%, #1f1304 0%, #150f24 85%);
  border: 5px solid #000;
  box-shadow: 
    inset 4px 4px 0 0 #ffbe0b,
    inset -4px -4px 0 0 #b45309,
    0 10px 0 0 #000,
    0 0 38px rgba(255, 190, 11, 0.45);
  padding: 25px 20px 18px;
  position: relative;
  overflow: hidden;
}

.character-portrait-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 190, 11, 0.05),
    rgba(255, 190, 11, 0.05) 10px,
    transparent 10px,
    transparent 20px
  );
  pointer-events: none;
}

.portrait-dragon-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.hero-sprite {
  max-height: 275px;
  width: auto;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.9));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.shenron-hero-sprite {
  animation: shenronHeroBob 2.4s ease-in-out infinite alternate;
}

@keyframes shenronHeroBob {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-10px) rotate(2deg) scale(1.03);
  }
  100% {
    transform: translateY(6px) rotate(-1.8deg) scale(0.98);
  }
}

.hero-sprite:hover {
  transform: scale(1.06) translateY(-6px);
}

.shenron-hero-sprite.aura-active {
  animation: 
    shenronHeroBob 2.4s ease-in-out infinite alternate, 
    shenronHeroAura 1.4s ease-in-out infinite alternate;
}

@keyframes shenronHeroAura {
  0% {
    filter: 
      drop-shadow(0 0 15px #ffbe0b) 
      drop-shadow(0 0 30px #2ec4b6) 
      drop-shadow(0 0 45px rgba(255, 106, 0, 0.6));
  }
  100% {
    filter: 
      drop-shadow(0 0 25px #ffe49e) 
      drop-shadow(0 0 50px #2ec4b6) 
      drop-shadow(0 -10px 40px #ff6a00) 
      drop-shadow(0 0 70px rgba(255, 190, 11, 0.8));
  }
}

/* Floating Cân Đẩu Vân Clouds in Hero Box */
.portrait-nimbus-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.portrait-nimbus-cloud {
  position: absolute;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 10px rgba(255, 190, 11, 0.65));
}

.p-cloud-1 {
  width: 140px;
  bottom: 60px;
  left: -20px;
  opacity: 0.88;
  animation: nimbusBobLeft 1.6s ease-in-out infinite alternate;
}

.p-cloud-2 {
  width: 150px;
  bottom: 45px;
  right: -25px;
  opacity: 0.85;
  animation: nimbusBobRight 1.8s ease-in-out infinite alternate 0.3s;
}

.shenron-tag {
  color: #ffbe0b !important;
  text-shadow: 0 0 8px rgba(255, 190, 11, 0.8);
  font-weight: 800;
}

.character-card-footer {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 2px dashed #4b3658;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.character-name {
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 13px;
  color: var(--db-gold);
}

.power-level-tag {
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 12px;
  color: var(--saiyan-red);
  background: #000;
  padding: 4px 8px;
  border: 1px solid #d90429;
  letter-spacing: 0.5px;
}

/* Main Layout Grid */
.main-content {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

/* Wiki Sidebar Navigation */
.wiki-sidebar {
  position: sticky;
  top: 85px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  padding: 18px;
}

.sidebar-title {
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 14px;
  color: var(--db-gold);
  border-bottom: 3px solid #000;
  padding-bottom: 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-game);
  font-weight: 600;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
  background: rgba(255, 106, 0, 0.15);
  color: #fff;
  border-left: 3px solid var(--db-orange);
  padding-left: 15px;
}

.search-input-box {
  width: 100%;
  background: #110d1a;
  border: 3px solid #000;
  padding: 10px 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 12px;
  box-shadow: inset 2px 2px 0 #000;
}

.search-input-box:focus {
  outline: none;
  border-color: var(--db-gold);
}

/* Content Sections */
.wiki-article-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-anchor {
  scroll-margin-top: 90px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 4px solid #000;
  padding-bottom: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  font-size: 24px;
}

/* TikTok Sensation Highlight */
.tiktok-viral-box {
  background: linear-gradient(135deg, #181126 0%, #2b112c 100%);
  border: 4px solid #000;
  box-shadow: 
    inset 4px 4px 0 0 #ff0055,
    inset -4px -4px 0 0 #00f2fe,
    0 6px 0 0 #000;
  padding: 24px;
  margin-bottom: 10px;
}

.tiktok-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #00f2fe;
  border: 2px solid #ff0055;
  padding: 4px 10px;
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 12px;
}

.tiktok-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 18px;
}

.tiktok-card {
  background: #110c1c;
  border: 3px solid #000;
  padding: 16px;
}

.tiktok-card h4 {
  color: var(--db-gold);
  font-size: 14px;
  margin-bottom: 8px;
}

/* Features Grid */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.feature-badge-icon {
  width: 44px;
  height: 44px;
  background: #140d21;
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 var(--db-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 15px;
  color: var(--db-gold);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 15px;
}

/* Skills Showcase */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.skill-slot {
  background: #171223;
  border: 3px solid #000;
  padding: 16px;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-icon-box {
  width: 36px;
  height: 36px;
  background: #251733;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.skill-cost {
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 13px;
  color: var(--ki-blue-glow);
}

/* Steps - Guide */
.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
}

.guide-step-card {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 20px;
  background: #1c152a;
  border: 3px solid #000;
  padding: 22px;
  box-shadow: 
    inset 3px 3px 0 rgba(255,255,255,0.07),
    0 5px 0 #000;
}

.step-num-badge {
  background: var(--db-orange);
  color: #fff;
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 #ffa34d, inset -2px -2px 0 #8c3800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  height: 75px;
  text-align: center;
}

.step-num-badge span:first-child {
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 12px;
}

.step-num-badge span:last-child {
  font-family: var(--font-pixel-num);
  font-size: 18px;
}

.step-content h3 {
  font-size: 16px;
  color: var(--db-gold);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 8px;
}

.step-tips-box {
  background: #120e1a;
  border-left: 4px solid var(--mc-green);
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 14.5px;
  color: #e2e8f0;
}

/* Bosses & Characters Section */
.boss-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.boss-card {
  background: #1a1326;
  border: 4px solid #000;
  box-shadow: 
    inset 3px 3px 0 rgba(255,255,255,0.08),
    0 6px 0 #000;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.boss-portrait {
  height: 180px;
  width: auto;
  margin: 10px 0;
  object-fit: contain;
  transition: transform 0.2s;
}

.boss-card:hover .boss-portrait {
  transform: scale(1.08) translateY(-4px);
}

.boss-tag {
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border: 2px solid #000;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.boss-tag-danger {
  background: #d90429;
  color: #fff;
}

.boss-tag-god {
  background: #9d4edd;
  color: #fff;
}

.boss-tag-angel {
  background: #00b4d8;
  color: #000;
}

.boss-tag-farm {
  background: #10b981;
  color: #000;
}

.boss-tag-vip {
  background: #f59e0b;
  color: #000;
}

.boss-tag-dungeon {
  background: #06b6d4;
  color: #000;
}

.boss-tag-dungeon-easy {
  background: #10b981;
  color: #000;
}

.boss-tag-dungeon-normal {
  background: #a855f7;
  color: #fff;
}

.boss-tag-time {
  background: #e11d48;
  color: #fff;
  border-color: #ffe4e6;
}

/* Blood Red HP - Menacing Boss Aura */
.blood-hp {
  color: #ff1e38;
  font-family: var(--font-pixel-num);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 
    0 0 8px rgba(255, 0, 50, 0.9),
    0 0 20px rgba(255, 0, 0, 0.7),
    2px 2px 0px #000;
  animation: bloodPulse 1.2s ease-in-out infinite alternate;
  display: inline-block;
}

@keyframes bloodPulse {
  0% { 
    filter: drop-shadow(0 0 3px #8b0000);
    transform: scale(1);
    color: #ff1e38;
  }
  100% { 
    filter: drop-shadow(0 0 12px #ff0033) drop-shadow(0 0 25px #d90429);
    transform: scale(1.04);
    color: #ff4d6d;
  }
}

/* In-Game Boss Card */
.boss-ingame-card {
  background: #161022;
  border: 4px solid #000;
  box-shadow: 
    inset 3px 3px 0 rgba(255,255,255,0.06),
    0 8px 0 #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.boss-ingame-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    inset 3px 3px 0 rgba(255,255,255,0.1),
    0 12px 0 #000,
    0 0 25px rgba(217, 4, 41, 0.35);
}

.boss-ingame-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 3px solid #000;
  filter: brightness(0.95);
  transition: transform 0.3s, filter 0.3s;
}

.boss-ingame-card:hover .boss-ingame-thumb {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.boss-ingame-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.boss-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #0f0a17;
  padding: 12px;
  border: 2px solid #291d3c;
}

.boss-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.boss-stat-label {
  font-family: var(--font-game);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.boss-stat-value {
  font-family: var(--font-game);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.boss-skills-box, .boss-drops-box {
  background: #110c1c;
  padding: 12px 14px;
  border-left: 4px solid var(--db-gold);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.boss-skills-box {
  border-left-color: var(--saiyan-red);
}

.boss-drops-box {
  border-left-color: var(--mc-green);
}

.skill-tag-pill {
  display: inline-block;
  background: rgba(217, 4, 41, 0.2);
  color: #ff8597;
  border: 1px solid #d90429;
  padding: 3px 8px;
  font-family: var(--font-game);
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
  margin-top: 4px;
}

/* Commands Table */
.commands-wrapper {
  background: #151022;
  border: 4px solid #000;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,0.05), 0 6px 0 #000;
  padding: 15px;
  overflow-x: auto;
}

.command-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.command-table th {
  background: #251c36;
  padding: 12px 14px;
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 13px;
  color: var(--db-gold);
  border: 2px solid #000;
  letter-spacing: 0.5px;
}

.command-table td {
  padding: 12px 14px;
  border: 2px solid #231b32;
  font-size: 14.5px;
}

.command-code {
  font-family: var(--font-pixel-num);
  font-size: 11px;
  color: var(--mc-aqua);
  background: #0b0813;
  padding: 5px 8px;
  border: 1px solid #33264c;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.copy-cmd-btn {
  background: transparent;
  border: none;
  color: var(--db-gold);
  cursor: pointer;
  font-size: 15px;
  padding: 2px 4px;
}

.copy-cmd-btn:hover {
  color: #fff;
}

/* Toast Retro Notification */
.retro-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #0b0713;
  border: 4px solid #000;
  box-shadow: 
    inset 4px 4px 0 var(--mc-green),
    inset -4px -4px 0 #1b631b,
    0 8px 25px rgba(0, 0, 0, 0.9);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10000;
  transform: translateY(150%);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.retro-toast-icon {
  font-size: 24px;
}

.retro-toast-title {
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 14px;
  color: var(--mc-green);
  margin-bottom: 2px;
}

.retro-toast-desc {
  font-size: 14px;
  color: #fff;
}

/* Shenron Summon Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #171124;
  border: 5px solid #000;
  box-shadow: 
    inset 4px 4px 0 #ffaa00,
    inset -4px -4px 0 #773500,
    0 10px 40px rgba(255, 119, 0, 0.5);
  max-width: 580px;
  width: 100%;
  padding: 25px;
  text-align: center;
  position: relative;
}

.modal-shenron-art {
  max-height: 220px;
  margin: 15px auto;
  border: 3px solid #000;
}

.modal-title {
  font-size: 1.3rem;
  color: var(--db-gold);
  margin-bottom: 10px;
}

.giftcode-box {
  background: #0c0816;
  border: 3px dashed var(--db-gold);
  padding: 12px;
  font-family: var(--font-pixel-num);
  font-size: 14px;
  color: var(--mc-green);
  letter-spacing: 2px;
  margin: 15px 0;
}

/* Footer */
.wiki-footer {
  background: #0d0a14;
  border-top: 4px solid #000;
  padding: 35px 20px;
  text-align: center;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-logo {
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 16px;
  color: var(--db-gold);
  letter-spacing: 0.5px;
}

.footer-text {
  font-size: 15px;
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-character-stage {
    margin-top: 20px;
  }
  .server-ip-banner {
    justify-content: center;
    text-align: center;
  }
  .ip-address-display {
    justify-content: center;
  }
  .main-content {
    grid-template-columns: 1fr;
  }
  .wiki-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.15rem; }
  .ip-text { font-size: 15px; }
  .nav-links { display: none; }
  .guide-step-card {
    grid-template-columns: 1fr;
  }
  .step-num-badge {
    height: auto;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
}

/* ==========================================================================
   HỆ THỐNG KỸ NĂNG SƯ PHỤ & ĐỆ TỬ
   ========================================================================== */
.milestone-header {
  background: linear-gradient(90deg, #1f1430 0%, #110c1c 100%);
  border: 3px solid #000;
  border-left: 6px solid var(--db-gold);
  box-shadow: 0 4px 0 #000;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 14px;
}

.milestone-title {
  font-family: var(--font-game);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.milestone-sm-badge {
  background: #000;
  border: 1px solid var(--db-gold);
  color: var(--db-gold);
  font-family: var(--font-pixel-num);
  font-size: 12px;
  padding: 5px 10px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.1);
}

.skill-random-alert {
  background: rgba(255, 190, 11, 0.08);
  border: 2px dashed var(--db-gold);
  padding: 10px 14px;
  font-size: 14px;
  color: #ffea79;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.skill-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.skill-spec-card {
  background: #171124;
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.06), 0 5px 0 #000;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.skill-spec-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.12), 0 8px 0 #000, 0 0 15px rgba(255, 106, 0, 0.25);
}

.skill-spec-card.clickable-skill-card {
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.skill-spec-card.clickable-skill-card:hover {
  transform: translateY(-5px);
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.18), 0 8px 0 #000, 0 0 22px rgba(255, 170, 0, 0.45);
}

.skill-spec-card.clickable-skill-card:active {
  transform: translateY(-2px);
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.12), 0 5px 0 #000;
}

.skill-click-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 8px 12px;
  background: rgba(255, 170, 0, 0.1);
  border: 2px dashed var(--db-gold);
  color: var(--db-gold);
  font-family: var(--font-pixel-num);
  font-size: 11.5px;
  font-weight: bold;
  letter-spacing: 0.5px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.skill-spec-card.clickable-skill-card:hover .skill-click-hint {
  background: var(--db-gold);
  color: #000;
  border-style: solid;
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.6);
}

/* Master Skill Modal Specific Styling */
.modal-overlay.suphu-skill-modal {
  padding: 15px;
  z-index: 100000;
}

.modal-content.skill-modal-box {
  max-width: 740px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  text-align: left;
  padding: 24px 26px;
  background: #140d21;
  border: 4px solid #000;
  box-shadow: 
    inset 4px 4px 0 #ffaa00,
    inset -4px -4px 0 #773500,
    0 12px 40px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(255, 119, 0, 0.35);
  animation: pixelModalPop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pixelModalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.skill-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: #2a1b3d;
  color: #fff;
  border: 2px solid #000;
  box-shadow: inset 1px 1px 0 #ff7700, 0 2px 0 #000;
  font-size: 18px;
  font-family: monospace;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
}

.skill-modal-close-btn:hover {
  background: #ef4444;
  color: #fff;
  transform: scale(1.08);
}

.skill-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.15);
  margin-bottom: 16px;
  padding-right: 40px;
}

.skill-modal-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.2), 0 4px 0 #000;
}

.skill-modal-title {
  margin: 4px 0 0 0;
  font-size: 1.35rem;
  font-family: var(--font-pixel-title);
  letter-spacing: 0.5px;
}

.skill-modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.skill-modal-stat-card {
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid #281a3e;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skill-modal-stat-card .stat-label {
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--font-pixel-num);
  text-transform: uppercase;
}

.skill-modal-stat-card .stat-value {
  font-size: 13.5px;
  font-weight: bold;
}

.skill-modal-desc {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--db-gold);
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 18px;
}

.skill-upgrade-section {
  background: #0d0818;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.05);
  padding: 14px;
  margin-bottom: 16px;
}

.skill-upgrade-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid #221438;
  padding-bottom: 8px;
}

.skill-upgrade-title {
  font-family: var(--font-pixel-title);
  color: var(--db-gold);
  font-size: 1rem;
}

.skill-upgrade-sub {
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
}

.skill-table-scroll-container {
  overflow-x: auto;
  max-width: 100%;
}

.skill-upgrade-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.skill-upgrade-table th {
  background: #1f1433;
  color: var(--db-gold);
  font-family: var(--font-pixel-num);
  font-size: 11.5px;
  padding: 8px 10px;
  border: 1px solid #332050;
  text-align: left;
  letter-spacing: 0.5px;
}

.skill-upgrade-table td {
  padding: 8px 10px;
  border: 1px solid #25163d;
  color: #e2e8f0;
  vertical-align: middle;
}

.skill-upgrade-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.skill-upgrade-table tr.row-lv1 td {
  background: rgba(34, 197, 94, 0.08);
}

.skill-upgrade-table tr.row-lv7 td {
  background: rgba(255, 170, 0, 0.12);
  border-color: rgba(255, 170, 0, 0.4);
}

.lvl-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: bold;
  font-family: var(--font-pixel-num);
  border: 1px solid #000;
}

.lvl-badge-free {
  background: #15803d;
  color: #86efac;
}

.lvl-badge-mid {
  background: #1e293b;
  color: #cbd5e1;
}

.lvl-badge-max {
  background: #b45309;
  color: #fef08a;
  box-shadow: 0 0 8px rgba(253, 224, 71, 0.4);
}

.cost-highlight-gold {
  color: #fde047;
  font-weight: bold;
}

.cost-highlight-kc {
  color: #38bdf8;
  font-weight: bold;
}

.skill-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.skill-modal-tip {
  font-size: 12.5px;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .modal-content.skill-modal-box {
    padding: 16px 14px;
  }
  .skill-modal-stats-grid {
    grid-template-columns: 1fr;
  }
  .skill-modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .skill-modal-title {
    font-size: 1.15rem;
  }
  .skill-upgrade-table {
    font-size: 12px;
  }
  .skill-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

.pixel-icon-frame {
  width: 44px;
  height: 44px;
  background: #0f0a18;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.1), 0 3px 0 #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pixel-icon-svg {
  width: 28px;
  height: 28px;
  shape-rendering: crispEdges;
}

.skill-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.skill-stat-badge {
  font-family: var(--font-pixel-num);
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid #000;
  background: #000;
  display: inline-block;
}

.de-tu-obtain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 14px;
  margin-bottom: 24px;
}

.obtain-card {
  background: #191326;
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.06), 0 5px 0 #000;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   MINECRAFT ITEM TOOLTIP & ARMOR SETS
   ========================================================================== */
.armor-set-card {
  background: #100b1a;
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.06), 0 6px 0 #000;
  padding: 22px;
  margin-bottom: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mc-tooltip-box {
  background: #0b0713;
  border: 2px solid #271438;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 4px 12px rgba(0,0,0,0.5);
  padding: 18px;
  font-family: var(--font-body);
}

.mc-lore-text {
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.6;
  padding: 10px 0;
  border-top: 1px dashed rgba(255,255,255,0.12);
  border-bottom: 1px dashed rgba(255,255,255,0.12);
  margin: 10px 0;
}

.mc-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 16px;
  margin: 10px 0;
}

.mc-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
}

.mc-set-bonus {
  background: rgba(0, 0, 0, 0.5);
  border-left: 4px solid #4ade80;
  padding: 12px 16px;
  font-size: 14.5px;
  margin-top: 8px;
}

.chaos-card {
  background: #140d24;
  border: 3px solid #f43f5e;
  box-shadow: 
    inset 0 0 20px rgba(244,63,94,0.15),
    0 8px 0 #000,
    0 0 30px rgba(244,63,94,0.35);
  position: relative;
}

.chaos-pulse-badge {
  background: linear-gradient(90deg, #f43f5e, #fbbf24, #a855f7);
  color: #000;
  font-family: var(--font-game);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border: 2px solid #000;
  letter-spacing: 1px;
}

/* Tier 3: OMEGA VOID (Cosmic Deep Void Violet) */
.omega-void-card {
  background: #0f0a1c;
  border: 3px solid #9333ea;
  box-shadow: 
    inset 0 0 25px rgba(147, 51, 234, 0.2),
    0 8px 0 #000,
    0 0 32px rgba(168, 85, 247, 0.4);
  position: relative;
}

.omega-badge {
  background: linear-gradient(90deg, #7e22ce, #a855f7, #c084fc);
  color: #fff;
  font-family: var(--font-game);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border: 2px solid #000;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #000;
}

/* Tier 4: THẦN LINH (Celestial Divine Gold) */
.than-linh-card {
  background: #161208;
  border: 3px solid #eab308;
  box-shadow: 
    inset 0 0 25px rgba(234, 179, 8, 0.2),
    0 8px 0 #000,
    0 0 35px rgba(250, 204, 21, 0.45);
  position: relative;
}

.than-linh-badge {
  background: linear-gradient(90deg, #ca8a04, #facc15, #fef08a);
  color: #000;
  font-family: var(--font-game);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border: 2px solid #000;
  letter-spacing: 1px;
}

/* Tier 5: HỦY DIỆT (Hakai Destruction Magenta/Crimson) */
.huy-diet-card {
  background: #1c0819;
  border: 3px solid #ec4899;
  box-shadow: 
    inset 0 0 30px rgba(236, 72, 153, 0.25),
    0 8px 0 #000,
    0 0 40px rgba(244, 63, 94, 0.55);
  position: relative;
  animation: hakaiGlow 2.5s infinite alternate;
}

@keyframes hakaiGlow {
  0% {
    box-shadow: 
      inset 0 0 20px rgba(236, 72, 153, 0.2),
      0 8px 0 #000,
      0 0 25px rgba(236, 72, 153, 0.4);
  }
  100% {
    box-shadow: 
      inset 0 0 35px rgba(244, 63, 94, 0.35),
      0 8px 0 #000,
      0 0 45px rgba(244, 63, 94, 0.7);
  }
}

.huy-diet-badge {
  background: linear-gradient(90deg, #be185d, #ec4899, #f43f5e);
  color: #fff;
  font-family: var(--font-game);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border: 2px solid #000;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #000;
}

.tier-ladder {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.tier-ladder-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-left: 4px solid #fff;
  background: rgba(0,0,0,0.4);
  font-size: 14.5px;
}

/* ==========================================================================
   CẢI TRANG (DISGUISE) STYLING - NPC CHICHI
   ========================================================================== */
.cai-trang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.cai-trang-card {
  background: #0d0818;
  border: 3px solid #3b2554;
  box-shadow: 
    inset 0 0 15px rgba(0,0,0,0.8),
    0 6px 0 #000,
    0 0 20px rgba(0,0,0,0.4);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.cai-trang-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    inset 0 0 20px rgba(255,255,255,0.05),
    0 10px 0 #000,
    0 0 25px rgba(255, 153, 0, 0.3);
}

.cai-trang-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px dashed rgba(255,255,255,0.1);
}

.mc-item-slot {
  width: 46px;
  height: 46px;
  background: #373737;
  border: 3px solid #8b8b8b;
  border-top-color: #373737;
  border-left-color: #373737;
  border-bottom-color: #ffffff;
  border-right-color: #ffffff;
  box-shadow: inset 2px 2px 0 #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.cai-trang-lore {
  color: #55ffff;
  font-size: 14px;
  font-style: italic;
  margin: 6px 0 12px 0;
  line-height: 1.5;
}

.cai-trang-buff-box {
  background: rgba(0, 0, 0, 0.45);
  border-left: 3px solid #55ff55;
  padding: 10px 14px;
  margin: 8px 0;
  font-family: var(--font-game);
}

.cai-trang-buff-title {
  font-size: 13px;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.cai-trang-stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin: 4px 0;
}

.cai-trang-stat-detailed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 6px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  margin: 10px 0;
  font-size: 13.5px;
}

.cai-trang-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-shop-kcx {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  color: #000;
  font-family: var(--font-game);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid #000;
  letter-spacing: 0.5px;
}

.badge-capsule-silver {
  background: linear-gradient(90deg, #94a3b8, #e2e8f0, #cbd5e1);
  color: #0f172a;
  font-family: var(--font-game);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid #000;
  letter-spacing: 0.5px;
}

.badge-capsule-gold {
  background: linear-gradient(90deg, #d97706, #fbbf24, #fde68a);
  color: #000;
  font-family: var(--font-game);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid #000;
  letter-spacing: 0.5px;
}

.cai-trang-bio-box {
  background: rgba(15, 10, 25, 0.7);
  border-left: 3px solid #a855f7;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
}

/* ==========================================================================
   SỰ KIỆN TRUNG THU - MID-AUTUMN EVENT STYLES
   ========================================================================== */
.trung-thu-banner {
  background: radial-gradient(circle at 85% 20%, rgba(254, 240, 138, 0.15) 0%, rgba(15, 10, 30, 0.95) 70%), #0e091b;
  border: 4px solid #facc15;
  box-shadow: 
    inset 0 0 25px rgba(250, 204, 21, 0.15),
    0 8px 0 #000,
    0 0 35px rgba(234, 179, 8, 0.35);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.moon-glow-badge {
  background: linear-gradient(90deg, #ca8a04, #facc15, #fef08a);
  color: #000;
  font-family: var(--font-game);
  font-weight: 800;
  font-size: 12.5px;
  padding: 5px 12px;
  border: 2px solid #000;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.5);
}

.stage-step-card {
  background: rgba(22, 16, 36, 0.85);
  border: 2px solid #3d2b56;
  border-left: 5px solid #facc15;
  padding: 16px 20px;
  margin-bottom: 16px;
  transition: transform 0.2s, border-color 0.2s;
}

.stage-step-card:hover {
  transform: translateX(4px);
  border-color: #facc15;
}

.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.stage-num {
  font-family: var(--font-game);
  font-weight: 800;
  font-size: 13.5px;
  color: #fde047;
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-drop-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid #4a3866;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.lunar-weapon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.lunar-weapon-card {
  background: #110d1f;
  border: 2px solid #0284c7;
  box-shadow: inset 0 0 15px rgba(2, 132, 199, 0.15), 0 4px 0 #000;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lunar-weapon-card:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
  box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.25), 0 8px 0 #000, 0 0 20px rgba(56, 189, 248, 0.35);
}

/* ==========================================================================
   GOLDEN 8-BIT PIXEL SCREEN TRANSITION CURTAIN (DỊCH CHUYỂN TỨC THỜI)
   ========================================================================== */

.pixel-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
}

.pixel-curtain.is-closing,
.pixel-curtain.is-opening {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

/* Top & Bottom Retro Hazard / Pixel Border Bands */
.pixel-curtain-border {
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background: repeating-linear-gradient(
    45deg,
    #000,
    #000 12px,
    #ffbe0b 12px,
    #ffbe0b 24px
  );
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  z-index: 5;
  box-shadow: 0 0 15px rgba(255, 190, 11, 0.6);
}
.pixel-curtain-border.top { top: 0; }
.pixel-curtain-border.bottom { bottom: 0; }

/* Container for 10 Golden Pixel Slats */
.pixel-curtain-grid {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Individual Golden Pixel Slat */
.pixel-curtain-slat {
  flex: 1;
  height: 100%;
  background-color: #ff9900;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.18) 50%, transparent 50%),
    linear-gradient(
      180deg,
      #ff6a00 0%,
      #ff9900 15%,
      #ffbe0b 45%,
      #fff4b8 50%,
      #ffbe0b 55%,
      #ff8c00 85%,
      #b45309 100%
    );
  background-size: 100% 4px, 100% 100%;
  border-left: 2px solid #fff6c9;
  border-right: 3px solid #000;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.4);
  transform: translateX(-105%);
  position: relative;
}

/* 8-Bit Pixel Caps at Top & Bottom of Slats */
.pixel-curtain-slat::before,
.pixel-curtain-slat::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background-color: #000;
  z-index: 2;
}
.pixel-curtain-slat::before { top: 0; }
.pixel-curtain-slat::after { bottom: 0; }

/* Staggered Wipe-In: Left to Right Glide Over Screen */
.pixel-curtain.is-closing .pixel-curtain-slat {
  transform: translateX(-105%);
  animation: slatWipeIn 0.28s cubic-bezier(0.2, 0, 0, 1) forwards;
}

/* Staggered Wipe-Out: Left to Right Glide Off Screen */
.pixel-curtain.is-opening .pixel-curtain-slat {
  transform: translateX(0%);
  animation: slatWipeOut 0.28s cubic-bezier(0.2, 0, 0, 1) forwards;
}

/* Staggered Delays for 10 Slats (14ms increments) */
.pixel-curtain-slat.slat-1  { animation-delay: 0ms !important; }
.pixel-curtain-slat.slat-2  { animation-delay: 14ms !important; }
.pixel-curtain-slat.slat-3  { animation-delay: 28ms !important; }
.pixel-curtain-slat.slat-4  { animation-delay: 42ms !important; }
.pixel-curtain-slat.slat-5  { animation-delay: 56ms !important; }
.pixel-curtain-slat.slat-6  { animation-delay: 70ms !important; }
.pixel-curtain-slat.slat-7  { animation-delay: 84ms !important; }
.pixel-curtain-slat.slat-8  { animation-delay: 98ms !important; }
.pixel-curtain-slat.slat-9  { animation-delay: 112ms !important; }
.pixel-curtain-slat.slat-10 { animation-delay: 126ms !important; }

@keyframes slatWipeIn {
  0% {
    transform: translateX(-105%);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes slatWipeOut {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(105%);
  }
}

/* ==========================================================================
   ANIMATED 8-BIT SHENRON DRAGON & FLYING NIMBUS CLOUDS (CÂN ĐẨU VÂN)
   ========================================================================== */

.curtain-dragon-stage {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 320px;
  height: 240px;
  margin-bottom: 12px;
  perspective: 800px;
}

/* Dragon Flight Entrance & Exit Animations */
.pixel-curtain.is-closing .curtain-dragon-stage {
  animation: dragonFlyIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pixel-curtain.is-opening .curtain-dragon-stage {
  animation: dragonFlyOut 0.34s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes dragonFlyIn {
  0% {
    transform: translateX(-120vw) rotate(-12deg) scale(0.7);
    opacity: 0;
  }
  100% {
    transform: translateX(0) rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes dragonFlyOut {
  0% {
    transform: translateX(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(120vw) rotate(12deg) scale(1.15);
    opacity: 0;
  }
}

/* Shenron 8-Bit Sprite Wrapper & Undulating Float Animation */
.shenron-sprite-wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: shenronUndulate 1.8s ease-in-out infinite alternate;
}

.shenron-sprite-img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: 
    drop-shadow(0 0 16px rgba(255, 190, 11, 0.9)) 
    drop-shadow(0 0 32px rgba(46, 196, 182, 0.7));
  animation: shenronKiPulse 1.2s ease-in-out infinite alternate;
}

@keyframes shenronUndulate {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-12px) rotate(2.5deg) scale(1.03);
  }
  100% {
    transform: translateY(6px) rotate(-2deg) scale(0.98);
  }
}

@keyframes shenronKiPulse {
  0% {
    filter: 
      drop-shadow(0 0 14px rgba(255, 190, 11, 0.85)) 
      drop-shadow(0 0 25px rgba(46, 196, 182, 0.6));
  }
  100% {
    filter: 
      drop-shadow(0 0 24px rgba(255, 228, 120, 1)) 
      drop-shadow(0 0 45px rgba(46, 196, 182, 0.95))
      drop-shadow(0 0 60px rgba(255, 106, 0, 0.8));
  }
}

/* Flying Nimbus (Cân Đẩu Vân) Golden Clouds */
.nimbus-clouds-group {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.nimbus-clouds-front {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.nimbus-cloud {
  position: absolute;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 12px rgba(255, 190, 11, 0.85));
}

/* Individual Clouds Placement and Bobbing */
.cloud-center {
  width: 170px;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  animation: nimbusBobCenter 1.4s ease-in-out infinite alternate;
}

.cloud-left {
  width: 110px;
  bottom: 20px;
  left: -20px;
  opacity: 0.9;
  animation: nimbusBobLeft 1.2s ease-in-out infinite alternate 0.2s;
}

.cloud-right {
  width: 125px;
  bottom: 25px;
  right: -25px;
  opacity: 0.92;
  animation: nimbusBobRight 1.5s ease-in-out infinite alternate 0.4s;
}

.cloud-front-1 {
  width: 90px;
  bottom: -22px;
  left: 20px;
  opacity: 0.85;
  animation: nimbusBobLeft 1s ease-in-out infinite alternate 0.3s;
}

.cloud-front-2 {
  width: 95px;
  bottom: -20px;
  right: 25px;
  opacity: 0.88;
  animation: nimbusBobRight 1.1s ease-in-out infinite alternate 0.1s;
}

@keyframes nimbusBobCenter {
  0% { transform: translateX(-50%) translateY(0px) scale(1); }
  100% { transform: translateX(-50%) translateY(-10px) scale(1.07); }
}

@keyframes nimbusBobLeft {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-8px) scale(1.05); }
}

@keyframes nimbusBobRight {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-9px) scale(1.06); }
}

/* Zero flash style for page load */
html.is-transitioning-page #pixelTransitionCurtain .curtain-dragon-stage {
  opacity: 1 !important;
  transform: translateX(0) rotate(0deg) scale(1) !important;
}

/* Golden 8-Bit Retro HUD Dialog in Center */
.pixel-curtain-hud {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #160e05;
  border: 4px solid #000;
  box-shadow: 
    0 0 0 4px #ffbe0b, 
    0 0 0 8px #ff6a00,
    0 10px 0 #000,
    0 0 45px rgba(255, 190, 11, 0.85);
  padding: 22px 32px;
  max-width: 90vw;
  width: 440px;
  text-align: center;
  transform: scale(0.85);
  opacity: 0;
}

.pixel-curtain.is-closing .pixel-curtain-hud {
  animation: hudPopIn 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.06s forwards;
}

.pixel-curtain.is-opening .pixel-curtain-hud {
  animation: hudPopOut 0.2s ease-in forwards;
}

@keyframes hudPopIn {
  0% {
    transform: scale(0.6) translateY(20px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes hudPopOut {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(1.1) translateY(-20px);
    opacity: 0;
  }
}

.curtain-sparkles {
  font-size: 14px;
  color: #ffea79;
  letter-spacing: 4px;
  margin-bottom: 6px;
  animation: sparkleBlink 0.3s steps(2) infinite alternate;
}

@keyframes sparkleBlink {
  0% { opacity: 0.6; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.05); }
}

.curtain-emblem {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  background: #ff6a00;
  color: #fff;
  border: 3px solid #000;
  box-shadow: 0 0 0 2px #ffbe0b, 0 4px 0 #000;
  padding: 6px 14px;
  display: inline-block;
  margin-bottom: 10px;
  text-shadow: 1px 1px 0 #000;
}

.curtain-title {
  font-family: var(--font-game);
  font-weight: 800;
  font-size: 1.35rem;
  color: #ffbe0b;
  text-shadow: 2px 2px 0 #000, 0 0 10px rgba(255, 190, 11, 0.6);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.curtain-subtitle {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #ffea79;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.curtain-dest-box {
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid #ffbe0b;
  padding: 8px 16px;
  width: 100%;
  margin-bottom: 14px;
}

.curtain-dest-label {
  display: block;
  font-size: 11px;
  color: #cbd5e1;
  font-family: var(--font-game);
  font-weight: 700;
}

.curtain-dest-name {
  font-family: var(--font-game);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 1px 1px 0 #ff6a00;
}

.curtain-progress-bar {
  width: 100%;
  height: 10px;
  background: #000;
  border: 2px solid #ff6a00;
  overflow: hidden;
  position: relative;
}

.curtain-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6a00, #ffbe0b, #fff);
  box-shadow: 0 0 10px #ffbe0b;
}

.pixel-curtain.is-closing .curtain-progress-fill {
  animation: fillProgress 0.28s steps(10) forwards;
}

@keyframes fillProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Immediate state for zero-flash page transition */
html.is-transitioning-page #pixelTransitionCurtain {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: all !important;
}
html.is-transitioning-page #pixelTransitionCurtain .pixel-curtain-slat {
  transform: translateX(0%) !important;
}
html.is-transitioning-page #pixelTransitionCurtain .pixel-curtain-hud {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
}
html.is-transitioning-page #pixelTransitionCurtain .curtain-progress-fill {
  width: 100% !important;
}

/* Reduced motion preference support */
@media (prefers-reduced-motion: reduce) {
  .pixel-curtain {
    display: none !important;
  }
}

/* Mobile responsive for curtain */
@media (max-width: 600px) {
  .pixel-curtain-hud {
    padding: 16px 20px;
    width: 92vw;
  }
  .curtain-title {
    font-size: 1.15rem;
  }
  .curtain-dest-name {
    font-size: 1.1rem;
  }
}






