/* ==========================================================================
   VANSH JAIN PERSONAL WEBSITE - THEME & STYLESHEET
   ========================================================================== */

:root {
  /* Color Palette - Default Theme (Cyber Neon) */
  --bg-dark: #0b0f19;
  --bg-card: rgba(18, 24, 38, 0.85);
  --bg-card-hover: rgba(28, 38, 60, 0.95);
  --bg-card-border: rgba(0, 243, 255, 0.25);
  --bg-glass: rgba(255, 255, 255, 0.05);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-cyan: #00f3ff;
  --accent-pink: #ff007f;
  --accent-purple: #8a2be2;
  --accent-gold: #ffbe0b;
  --accent-green: #00ff88;
  --accent-glow: rgba(0, 243, 255, 0.35);

  --gradient-primary: linear-gradient(135deg, #00f3ff 0%, #ff007f 100%);
  --gradient-arcade: linear-gradient(90deg, #ff007f, #8a2be2, #00f3ff);
  --gradient-gold: linear-gradient(135deg, #ffd700, #ff8800);

  /* Fonts */
  --font-main: 'Outfit', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-pixel: 'Press Start 2P', monospace;

  /* Layout & Spacing */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --shadow-glow: 0 0 25px rgba(0, 243, 255, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Alternate Theme: Emerald Pixel (Minecraft / Game Boy vibe) */
[data-theme="emerald"] {
  --bg-dark: #08140c;
  --bg-card: rgba(14, 34, 20, 0.85);
  --bg-card-hover: rgba(22, 54, 32, 0.95);
  --bg-card-border: rgba(0, 255, 136, 0.3);
  --accent-cyan: #00ff88;
  --accent-pink: #76ff03;
  --accent-purple: #1b5e20;
  --accent-glow: rgba(0, 255, 136, 0.4);
  --gradient-primary: linear-gradient(135deg, #00ff88 0%, #10b981 50%, #34d399 100%);
}

/* Alternate Theme: 80s Retro Arcade */
[data-theme="arcade"] {
  --bg-dark: #120422;
  --bg-card: rgba(35, 10, 60, 0.85);
  --bg-card-hover: rgba(55, 18, 90, 0.95);
  --bg-card-border: rgba(255, 0, 127, 0.35);
  --accent-cyan: #ff007f;
  --accent-pink: #ffe600;
  --accent-purple: #7928ca;
  --accent-glow: rgba(255, 0, 127, 0.4);
  --gradient-primary: linear-gradient(135deg, #ff007f 0%, #ffe600 100%);
}

/* Alternate Theme: Cosmic Space */
[data-theme="cosmic"] {
  --bg-dark: #050514;
  --bg-card: rgba(20, 20, 45, 0.85);
  --bg-card-hover: rgba(30, 30, 68, 0.95);
  --bg-card-border: rgba(138, 43, 226, 0.35);
  --accent-cyan: #7c4dff;
  --accent-pink: #00e5ff;
  --accent-purple: #d500f9;
  --accent-glow: rgba(124, 77, 255, 0.4);
  --gradient-primary: linear-gradient(135deg, #7c4dff 0%, #00e5ff 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

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

/* Audio & Theme Quick Bar */
.audio-control-bar {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.chip-btn {
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-xl);
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: translateY(-1px);
}

.chip-btn.active {
  background: var(--accent-cyan);
  color: #0b0f19;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.theme-switcher select {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  outline: none;
}

.theme-switcher select:focus {
  border-color: var(--accent-cyan);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 900;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.pixel-tag {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 8px var(--accent-cyan);
}

.accent-dot {
  color: var(--accent-pink);
}

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

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-item:hover, .nav-item.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px var(--accent-glow);
}

.nav-item.badge-link {
  background: rgba(255, 0, 127, 0.15);
  color: #ff55aa;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 0, 127, 0.4);
}

.nav-item.badge-link:hover {
  background: var(--accent-pink);
  color: white;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.6);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Sections Common */
.section {
  padding: 90px 24px;
  position: relative;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.section-tag {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 12px;
  text-shadow: 0 0 8px var(--accent-glow);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #0b0f19;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--bg-card-border);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-pink);
  transform: translateY(-2px);
}

.btn-arcade {
  background: var(--accent-cyan);
  color: #0b0f19;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  padding: 14px 28px;
  letter-spacing: 1px;
  box-shadow: 0 6px 0 #009aa3, 0 10px 20px rgba(0, 243, 255, 0.4);
}

.btn-arcade:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #009aa3, 0 8px 15px rgba(0, 243, 255, 0.4);
}

.btn-arcade:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 #009aa3;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding: 60px 24px 80px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
}

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

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--accent-green); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.quick-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  max-width: 480px;
}

.mini-stat {
  text-align: center;
  flex: 1;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
}

/* Character Card */
.hero-character-card {
  display: flex;
  justify-content: center;
}

.character-card-inner {
  background: var(--bg-card);
  border: 2px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  padding: 30px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  text-align: center;
  transition: transform 0.3s ease;
}

.character-card-inner:hover {
  transform: translateY(-6px);
}

.character-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-gold);
  color: #1a0f00;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(255, 190, 11, 0.4);
}

.avatar-wrapper {
  margin: 10px auto 16px;
  width: 170px;
  height: 170px;
  position: relative;
}

.avatar-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 15px var(--accent-glow));
  animation: floatAvatar 3.5s ease-in-out infinite;
}

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

.player-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.player-role {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
}

/* XP Progress Bar */
.xp-container {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.xp-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.xp-value {
  color: var(--accent-green);
  font-family: var(--font-pixel);
  font-size: 0.65rem;
}

.xp-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ff88, #00f3ff);
  box-shadow: 0 0 10px var(--accent-green);
  border-radius: 5px;
  transition: width 1s ease-in-out;
}

.xp-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Character Stats Grid */
.character-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.stat-name {
  color: var(--text-muted);
  margin-left: 4px;
}

.stat-val {
  font-weight: bold;
  color: var(--accent-gold);
  font-family: var(--font-pixel);
  font-size: 0.65rem;
}

/* ==========================================================================
   ABOUT ME SECTION
   ========================================================================== */

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

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.about-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-cyan);
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--text-main);
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.school-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.trait-tag {
  background: rgba(0, 243, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 243, 255, 0.25);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-xl);
}

.gamer-learnings {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: auto;
}

.gamer-learnings strong {
  color: var(--text-main);
}

.dream-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.check-icon {
  color: var(--accent-green);
}

/* ==========================================================================
   FAVORITE GAMES SECTION
   ========================================================================== */

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: var(--radius-xl);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-cyan);
}

.filter-btn.active {
  background: var(--gradient-primary);
  color: #0b0f19;
  border-color: transparent;
  box-shadow: 0 0 12px var(--accent-glow);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
}

.game-card-banner {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
}

.banner-minecraft {
  background: linear-gradient(135deg, #1b5e20, #4caf50);
}
.banner-roblox {
  background: linear-gradient(135deg, #d32f2f, #ff5252);
}
.banner-mario {
  background: linear-gradient(135deg, #0d47a1, #e53935);
}
.banner-racing {
  background: linear-gradient(135deg, #e65100, #ff9800);
}
.banner-pokemon {
  background: linear-gradient(135deg, #f57f17, #fbc02d);
}
.banner-puzzle {
  background: linear-gradient(135deg, #4a148c, #8e24aa);
}
.banner-space {
  background: linear-gradient(135deg, #020617, #0284c7, #4f46e5);
}

.game-art-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  animation: pulseIcon 3s ease-in-out infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ==========================================================================
   CARTRIDGE SELECTOR & IN-GAME CONTROLS
   ========================================================================== */

.cartridge-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cartridge-btn {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: var(--radius-xl);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cartridge-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: translateY(-2px);
}

.cartridge-btn.active {
  background: var(--gradient-primary);
  color: #0b0f19;
  border-color: transparent;
  box-shadow: 0 0 18px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-card-play {
  margin-top: 14px;
  width: 100%;
  background: var(--gradient-primary);
  color: #0b0f19;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0, 243, 255, 0.3);
  letter-spacing: 0.5px;
}

.btn-card-play:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 243, 255, 0.5);
  filter: brightness(1.1);
}

/* Custom Arcade Controls Area */
.arcade-custom-controls {
  background: #0d111e;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.arcade-custom-controls:empty {
  display: none;
}

/* Space Defender Custom Controls */
.space-custom-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.space-bomb-btn {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  border: 1px solid #f87171;
  font-family: var(--font-arcade);
  font-size: 0.72rem;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.space-bomb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
  background: linear-gradient(135deg, #f87171, #dc2626);
}

.space-bomb-btn:active {
  transform: translateY(1px);
}

.space-bomb-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Minecraft Hotbar & Dimension Bar */
.mc-controls-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.mc-dimensions-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dim-btn {
  background: #1e2436;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dim-btn:hover {
  color: white;
  border-color: var(--accent-cyan);
}

.dim-btn.active-dim {
  background: var(--accent-cyan);
  color: #0b0f19;
  font-weight: 800;
  box-shadow: 0 0 10px var(--accent-glow);
}

.dim-btn.dim-nether.active-dim {
  background: linear-gradient(135deg, #3b0764, #7e22ce, #b91c1c);
  color: white;
  border-color: #c084fc;
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.7);
}

.dim-btn.dim-end.active-dim {
  background: #a855f7;
  color: white;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.mc-dim-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 243, 255, 0.4);
  padding: 5px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.76rem;
  font-weight: 800;
  color: #00f3ff;
  letter-spacing: 0.5px;
}

.mc-portal-hint {
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.6);
  padding: 4px 10px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.mc-hotbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.mc-slot {
  background: #252b42;
  border: 2px solid #3d4669;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mc-slot:hover {
  border-color: var(--accent-cyan);
}

.mc-slot.active {
  border-color: #00ff88;
  background: #143525;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.mc-slot.btn-utility {
  background: #374151;
  border-color: #4b5563;
}

.mc-slot.btn-inv {
  background: #854d0e;
  border-color: #eab308;
}

/* Minecraft Inventory Modal Popup */
.mc-inv-modal {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 540px;
  background: #2a2e43;
  border: 3px solid #141724;
  border-radius: var(--radius-md);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(255, 255, 255, 0.05);
  z-index: 100;
  padding: 16px;
  color: white;
}

.mc-inv-modal.active {
  display: block;
}

.mc-inv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #1e2436;
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.mc-inv-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.mc-inv-close:hover {
  color: #ef4444;
}

.mc-inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  max-height: 160px;
  overflow-y: auto;
}

.mc-inv-item {
  background: #141724;
  border: 2px solid #3d4669;
  border-radius: 6px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mc-inv-item:hover {
  border-color: var(--accent-cyan);
  background: #1e2436;
}

.mc-inv-item.equipped {
  border-color: #00ff88;
  box-shadow: 0 0 8px #00ff88;
}

.mc-item-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 2px;
}

.mc-item-name {
  font-size: 0.65rem;
  color: #94a3b8;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-item-count {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: #facc15;
}

.mc-crafting-section {
  border-top: 2px solid #1e2436;
  padding-top: 10px;
}

.mc-crafting-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 8px;
}

.mc-recipes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.mc-recipe-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #141724;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.mc-craft-btn {
  background: #0284c7;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.72rem;
  cursor: pointer;
}

.mc-craft-btn:disabled {
  background: #475569;
  cursor: not-allowed;
  opacity: 0.6;
}

.mc-craft-btn:not(:disabled):hover {
  background: #00f3ff;
  color: #0b0f19;
}

.mc-open-ct-link {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, #b45309, #d97706);
  border: 1px solid #f59e0b;
  color: white;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mc-open-ct-link:hover {
  background: #f59e0b;
  color: #0b0f19;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

/* 3x3 Crafting Table Workshop Modal */
.mc-crafting-table-modal {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 620px;
  max-height: 90%;
  background: #241c15;
  border: 3px solid #b45309;
  border-radius: var(--radius-md);
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.95), 0 0 20px rgba(180, 83, 9, 0.4);
  z-index: 120;
  padding: 16px;
  color: white;
}

.mc-crafting-table-modal.active {
  display: block;
}

.mc-ct-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #451a03;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.mc-ct-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mc-ct-icon {
  font-size: 1.6rem;
}

.mc-ct-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #f59e0b;
  margin: 0;
  letter-spacing: 0.5px;
}

.mc-ct-subtitle {
  font-size: 0.7rem;
  color: #fed7aa;
  font-weight: 600;
}

.mc-ct-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.mc-ct-close:hover {
  color: #ef4444;
}

.mc-ct-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .mc-ct-body {
    grid-template-columns: 1fr;
  }
}

.mc-grid-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #19120c;
  border: 2px solid #451a03;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.mc-3x3-grid {
  display: grid;
  grid-template-columns: repeat(3, 38px);
  grid-template-rows: repeat(3, 38px);
  gap: 4px;
}

.mc-grid-slot {
  width: 38px;
  height: 38px;
  background: #2b1f16;
  border: 2px solid #573a26;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.mc-ct-arrow {
  font-size: 1.5rem;
  color: #f59e0b;
  font-weight: 900;
}

.mc-ct-output-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mc-ct-output-slot {
  width: 52px;
  height: 52px;
  background: #332418;
  border: 2px solid #f59e0b;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4), inset 0 0 6px rgba(0, 0, 0, 0.7);
}

.mc-output-placeholder {
  color: #78350f;
  font-weight: 800;
}

.mc-ct-craft-btn {
  background: #16a34a;
  color: white;
  border: none;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mc-ct-craft-btn:disabled {
  background: #475569;
  cursor: not-allowed;
  opacity: 0.5;
}

.mc-ct-craft-btn:not(:disabled):hover {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.mc-ct-selected-info {
  background: #19120c;
  border: 1px solid #451a03;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.74rem;
  color: #fed7aa;
  margin-bottom: 10px;
  min-height: 38px;
}

.mc-ct-backpack-preview {
  background: #19120c;
  border: 1px solid #451a03;
  border-radius: 6px;
  padding: 8px;
}

.mc-bp-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  display: block;
  margin-bottom: 4px;
}

.mc-bp-mini-items {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-height: 80px;
  overflow-y: auto;
}

.mc-bp-mini-pill {
  background: #2b1f16;
  border: 1px solid #573a26;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.mc-ct-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  overflow-x: auto;
}

.mc-ct-tab-btn {
  background: #19120c;
  border: 1px solid #451a03;
  color: #cbd5e1;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.mc-ct-tab-btn.active {
  background: #b45309;
  color: white;
  border-color: #f59e0b;
}

.mc-ct-recipes-scroll {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 270px;
  overflow-y: auto;
}

.mc-ct-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #19120c;
  border: 1px solid #451a03;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mc-ct-card:hover, .mc-ct-card.selected {
  border-color: #f59e0b;
  background: #2b1f16;
}

.mc-ct-card.can-craft {
  border-left: 3px solid #22c55e;
}

.mc-ct-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-ct-card-icon {
  font-size: 1.3rem;
}

.mc-ct-card-details strong {
  font-size: 0.78rem;
  display: block;
}

.mc-ct-card-details span {
  font-size: 0.67rem;
  color: #94a3b8;
}

/* Minecraft Manual / Guidebook Modal */
.mc-manual-modal {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 580px;
  max-height: 85%;
  background: #1c2333;
  border: 3px solid #00f3ff;
  border-radius: var(--radius-md);
  box-shadow: 0 0 40px rgba(0, 243, 255, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.8);
  z-index: 110;
  padding: 18px;
  color: white;
  overflow-y: auto;
}

.mc-manual-modal.active {
  display: block;
}

.mc-manual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #2d3748;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.mc-manual-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #00f3ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-manual-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
}

.mc-manual-close:hover {
  color: #ef4444;
}

.mc-manual-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid #334155;
  padding-bottom: 8px;
}

.mc-tab-btn {
  background: #252e42;
  border: 1px solid #3b4764;
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mc-tab-btn:hover {
  background: #334155;
  border-color: #00f3ff;
}

.mc-tab-btn.active {
  background: var(--accent-cyan);
  color: #0b0f19;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.mc-manual-content {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.mc-manual-tab-pane {
  display: none;
}

.mc-manual-tab-pane.active {
  display: block;
}

/* Ore Encyclopedia Grid */
.mc-ores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.ore-card {
  background: #141a29;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.ore-preview {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  border: 2px solid rgba(0,0,0,0.4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.ore-info h4 {
  font-size: 0.82rem;
  color: #f8fafc;
  margin-bottom: 2px;
}

.ore-info p {
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.3;
}

.ore-tag {
  display: inline-block;
  font-size: 0.62rem;
  padding: 1px 5px;
  border-radius: 3px;
  margin-top: 4px;
  font-weight: 700;
}

.tag-overworld { background: #166534; color: #86efac; }
.tag-nether { background: #991b1b; color: #fca5a5; }
.tag-legendary { background: #701a75; color: #f0abfc; }

.mc-guide-section {
  background: #141a29;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
}

.mc-guide-section h4 {
  color: #38bdf8;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.mc-guide-list {
  padding-left: 18px;
  margin: 6px 0;
}

.mc-guide-list li {
  margin-bottom: 4px;
}

/* Pokemon Battle Moves */
.poke-moves-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.poke-btn {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.btn-thunder { background: #ca8a04; border-color: #facc15; }
.btn-quick { background: #2563eb; border-color: #60a5fa; }
.btn-shield { background: #475569; border-color: #94a3b8; }
.btn-ball { background: #dc2626; border-color: #f87171; }
.btn-potion { background: #16a34a; border-color: #4ade80; }

.game-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.game-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.game-type {
  color: var(--accent-cyan);
}

.game-rating {
  color: var(--accent-gold);
}

.game-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.game-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.game-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.player-quote {
  margin-top: auto;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  border-left: 2px solid var(--accent-cyan);
  padding-left: 10px;
}

/* ==========================================================================
   ARCADE MINI-GAME SECTION
   ========================================================================== */

.arcade-section {
  background: radial-gradient(circle at center, rgba(30, 20, 50, 0.5) 0%, rgba(11, 15, 25, 0.9) 100%);
}

.arcade-cabinet {
  max-width: 680px;
  margin: 0 auto;
  background: #141724;
  border: 4px solid #2a2e43;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 243, 255, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.cabinet-marquee {
  background: linear-gradient(90deg, #ff007f, #8a2be2, #00f3ff);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.blinking-coin {
  animation: blink 1.2s infinite;
}

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

.game-display-wrapper {
  position: relative;
  background: #03050a;
  aspect-ratio: 16 / 10.5;
  width: 100%;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 16, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.game-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.pixel-text {
  font-family: var(--font-pixel);
  color: var(--accent-cyan);
  font-size: 1.2rem;
  margin-bottom: 12px;
  text-shadow: 0 0 10px var(--accent-cyan);
}

.instructions-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(0, 243, 255, 0.4);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 16px auto 20px;
  max-width: 440px;
  font-size: 0.85rem;
}

.inst-item {
  margin: 6px 0;
  color: var(--text-muted);
}

.key-cap {
  background: #2a2e43;
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  border-bottom: 2px solid #141724;
}

.arcade-dashboard {
  background: #0d101a;
  border-top: 2px solid #2a2e43;
  padding: 12px 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
}

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

.dash-value {
  color: var(--accent-green);
  font-size: 0.85rem;
}

.high-score-box .dash-value {
  color: var(--accent-gold);
}

/* On Screen Controls */
.mobile-arcade-controls {
  padding: 16px;
  background: #141724;
  border-top: 1px solid #222638;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dpad-container {
  display: flex;
  gap: 12px;
}

.arcade-touch-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #2a2e43;
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 0 #141724;
  user-select: none;
  touch-action: manipulation;
  transition: transform 0.1s;
}

.arcade-touch-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #141724;
  background: var(--accent-cyan);
  color: #0b0f19;
}

.fire-btn {
  width: auto;
  border-radius: var(--radius-xl);
  padding: 0 24px;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  background: var(--accent-pink);
  box-shadow: 0 4px 0 #99004c;
}

.fire-btn:active {
  background: #ff3399;
}

/* ==========================================================================
   STATS & SKILL TREE SECTION
   ========================================================================== */

.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

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

.skill-name {
  font-weight: 700;
  font-size: 1rem;
}

.skill-percent {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

.meter-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.meter-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 1s ease-out;
}

.stat-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Trophy Showcase */
.trophy-room {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 34px;
  text-align: center;
}

.trophy-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--accent-gold);
}

.trophies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.trophy-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  transition: var(--transition-fast);
}

.trophy-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 190, 11, 0.08);
  border-color: var(--accent-gold);
}

.trophy-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.trophy-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.trophy-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   GUESTBOOK SECTION
   ========================================================================== */

.guestbook-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
}

.guestbook-form-card, .guestbook-feed-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  padding: 30px;
}

.guestbook-form-card h3, .feed-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-glow);
}

.quick-reactions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stamp-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.stamp-btn:hover {
  background: var(--accent-cyan);
  color: #0b0f19;
  border-color: var(--accent-cyan);
}

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

.btn-text-small {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-text-small:hover {
  color: var(--accent-pink);
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.msg-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  animation: fadeIn 0.4s ease;
}

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

.msg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.msg-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.msg-tag {
  background: rgba(0, 243, 255, 0.15);
  color: var(--accent-cyan);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-xl);
  font-weight: 600;
}

.msg-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.msg-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ==========================================================================
   MODAL / EASTER EGG
   ========================================================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #141724;
  border: 3px solid var(--accent-gold);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  max-width: 440px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 50px rgba(255, 190, 11, 0.4);
  animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.close-modal:hover {
  color: white;
}

.modal-badge {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.golden-trophy-anim {
  font-size: 4rem;
  margin: 16px 0;
  animation: wobble 2s infinite ease-in-out;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg) scale(1.1); }
  75% { transform: rotate(10deg) scale(1.1); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: #080b12;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 50px 24px 30px;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.footer-branding p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.secret-hint {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

kbd {
  background: #1e2436;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.75rem;
  border: 1px solid #323c59;
  margin: 0 2px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin: 0 auto 30px;
  }

  .hero-actions {
    justify-content: center;
  }

  .quick-stats-row {
    margin: 0 auto;
  }

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

  .guestbook-container {
    grid-template-columns: 1fr;
  }

  .stats-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .audio-control-bar {
    top: auto;
    bottom: 12px;
    right: 50%;
    transform: translateX(50%);
    width: calc(100% - 24px);
    max-width: 420px;
    justify-content: space-around;
  }

  .navbar {
    padding: 10px 0;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    transform: translateY(0);
  }

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

  .hero-title {
    font-size: 2.5rem;
  }

  .section {
    padding: 60px 16px;
  }

  .arcade-cabinet {
    border-radius: var(--radius-md);
  }
}

/* ==========================================================================
   3D ULTRA ENGINE STYLES (Cards, Voxel Canvas, Cabinet & Global 3D Mode)
   ========================================================================== */

/* 3D Global Perspective & Effects */
body.mode-3d-active {
  perspective: 1600px;
}

body.mode-3d-active .hero-section {
  transform: translateZ(10px);
}

body.mode-3d-active .section-title {
  text-shadow: 0 1px 0 #00f3ff, 0 2px 0 #0284c7, 0 4px 12px rgba(0, 243, 255, 0.45);
}

body.mode-3d-active .game-card:hover,
body.mode-3d-active .about-card:hover,
body.mode-3d-active .stat-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 35px var(--accent-glow);
}

/* 3D Card Parallax & Glare */
.game-card, .about-card, .stat-card, .hero-character-card, .mini-stat, .arcade-cabinet {
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  transition: transform 0.12s ease-out, box-shadow 0.25s ease;
}

.card-glare-3d {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 8;
}

.elevate-3d {
  transform-style: preserve-3d;
}

/* 3D Hero Voxel Cube Widget */
.avatar-toggle-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.avatar-tab-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(0, 243, 255, 0.3);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-tab-btn:hover {
  border-color: var(--accent-cyan);
  color: #fff;
}

.avatar-tab-btn.active {
  background: var(--gradient-primary);
  color: #0b0f19;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.4);
}

.voxel-3d-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: grab;
  user-select: none;
}

.voxel-3d-wrapper:active {
  cursor: grabbing;
}

#hero-3d-canvas {
  width: 180px;
  height: 180px;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(0, 243, 255, 0.4));
  transition: transform 0.2s ease;
}

.voxel-controls-hint {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(0, 243, 255, 0.08);
  border: 1px dashed rgba(0, 243, 255, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.voxel-skin-picker {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.skin-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.skin-btn:hover {
  transform: scale(1.15) translateY(-2px);
  border-color: var(--accent-cyan);
}

.skin-btn.active {
  background: rgba(0, 243, 255, 0.25);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Cabinet View Dimension Bar */
.cabinet-view-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 2px solid rgba(0, 243, 255, 0.25);
  padding: 10px 18px;
}

.view-mode-tags {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-mode-badge {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--accent-cyan);
}

.view-mode-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 243, 255, 0.35);
  color: #e2e8f0;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-mode-btn:hover {
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-1px);
}

.view-mode-btn.active {
  background: var(--gradient-primary);
  color: #0b0f19;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.45);
}

.view-mode-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.view-mode-hint kbd {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  color: var(--accent-cyan);
  font-weight: bold;
}
