/* ============================================================
   SUPER AGENTIC DEVOPS WORLD — Platform Design System
   3 themes: pixel (default) / neon / arcade
   ============================================================ */

:root {
  /* Brand palette */
  --mario-red: #E52521;
  --sky-blue: #049CD8;
  --coin-gold: #FBD000;
  --pipe-green: #43B047;
  --dark-bg: #1A1A2E;
  --night: #0B1022;
  --brick: #8B5E3C;
  --luigi: #1E5E20;
  --fire: #FF6B35;

  /* Type */
  --font-pixel: "Press Start 2P", system-ui, sans-serif;
  --font-ui: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;

  /* Spacing */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* Radii */
  --r-sharp: 0; --r-soft: 4px; --r-card: 10px; --r-round: 999px;

  /* Shadows */
  --shadow-pixel: 6px 6px 0 #000;
  --shadow-pixel-lg: 10px 10px 0 #000;
  --shadow-pixel-xl: 14px 14px 0 #000;
  --shadow-glow: 0 0 24px rgba(251, 208, 0, 0.5);
  --shadow-neon-cyan: 0 0 20px #00E5FF, 0 0 40px #00E5FF;
  --shadow-neon-pink: 0 0 20px #FF2E88, 0 0 40px #FF2E88;

  /* Theme-agnostic tokens below — overridden per theme */
  --bg: #5FB8E6;
  --bg-2: #87CEEB;
  --surface: #FFFFFF;
  --surface-2: #F5F0E1;
  --border: #000000;
  --text: #1A1A1A;
  --text-muted: #555555;
  --text-inverse: #FFFFFF;
  --accent: #E52521;
  --accent-2: #FBD000;
  --accent-3: #43B047;
  --card-shadow: var(--shadow-pixel-lg);
  --btn-radius: 0;
  --border-w: 4px;
  --card-bg: #FFFFFF;
  --card-border: #000;
  --title-font: var(--font-pixel);
  --body-font: var(--font-ui);
  --hud-bg: #000000;
  --hud-text: #FFFFFF;
  --hud-accent: #FBD000;
}

/* ============ THEME: PIXEL (Mario) ============ */
[data-theme="pixel"] {
  --bg: #5FB8E6;
  --bg-2: #87CEEB;
  --surface: #FFFFFF;
  --surface-2: #F5F0E1;
  --text: #1A1A1A;
  --accent: #E52521;
  --accent-2: #FBD000;
  --accent-3: #43B047;
  --hud-bg: #000;
  --hud-text: #FFFFFF;
  --hud-accent: #FBD000;
  --title-font: var(--font-pixel);
  --card-bg: #FFFFFF;
  --card-border: #000;
  --card-shadow: var(--shadow-pixel-lg);
  --btn-radius: 0;
  --border-w: 4px;
}

/* neon/arcade themes removed — PIXEL-ONLY */

/* ============ GLOBAL LAYOUT ============ */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100vh;
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  image-rendering: pixelated;
  overflow-x: hidden;
}

/* Pixel theme gets scanline background, neon gets stars, arcade gets grid */
[data-theme="pixel"] body {
  background:
    linear-gradient(180deg, #5FB8E6 0%, #87CEEB 55%, #43B047 55%, #2E7D32 100%);
  background-attachment: fixed;
}


/* ============ HUD ============ */
.hud {
  position: fixed; top: 0; left: 0; right: 0; height: 60px;
  background: var(--hud-bg);
  color: var(--hud-text);
  display: flex; align-items: center;
  padding: 0 24px; gap: 24px;
  z-index: 100;
  border-bottom: 4px solid #000;
  font-family: var(--font-pixel);
  font-size: 13px;
  box-shadow: 0 -20px 0 20px var(--hud-bg);
}


.hud .brand {
  font-family: var(--font-pixel); font-size: 14px;
  letter-spacing: 0.05em; color: var(--accent-2);
  text-shadow: 2px 2px 0 #000;
  cursor: pointer;
}


.hud .stats {
  display: flex; gap: 20px; margin-left: auto;
  font-family: var(--font-pixel); font-size: 12px;
}
.hud .stats .stat {
  display: flex; align-items: center; gap: 8px;
  color: var(--hud-accent);
}
.hud .stats .stat .icn { font-size: 16px; }
.hud .stats .stat .val { color: var(--hud-text); }

.hud .theme-pick {
  display: flex; gap: 6px; margin-left: 20px;
}
.hud .theme-pick button {
  background: transparent; border: 2px solid var(--hud-accent);
  color: var(--hud-accent); padding: 6px 10px;
  font-family: var(--font-pixel); font-size: 9px;
  cursor: pointer; letter-spacing: 0.05em;
}
.hud .theme-pick button.active { background: var(--hud-accent); color: #000; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  font-family: var(--font-pixel); font-size: 14px;
  background: var(--accent-2);
  color: #000;
  border: var(--border-w) solid var(--border);
  border-radius: var(--btn-radius);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 #000; }

.btn.btn-primary { background: var(--accent); color: #fff; }
.btn.btn-green { background: var(--accent-3); color: #fff; }

/* ============ CARDS ============ */
.card {
  background: var(--card-bg);
  color: var(--text);
  border: var(--border-w) solid var(--card-border);
  border-radius: var(--btn-radius);
  box-shadow: var(--card-shadow);
  padding: 20px;
}


/* ============ PIXEL CHIP ============ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  font-family: var(--font-pixel); font-size: 10px;
  background: var(--accent-2); color: #000;
  border: 3px solid #000;
  letter-spacing: 0.05em;
}


/* ============ PIXEL SPRITES ============ */
.sprite {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Sofia (small pixel hero) */
.sprite-sofia {
  display: inline-block;
  width: 96px; height: 96px; position: relative;
}
.sprite-sofia::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, transparent 25%, #E52521 25% 75%, transparent 75%),
    linear-gradient(to right, #E52521 0%, #E52521 100%);
  background-size: 100% 20%, 100% 0;
  background-repeat: no-repeat;
  background-position: 0 0;
  clip-path: polygon(
    30% 0, 70% 0, 70% 20%, 85% 20%, 85% 40%,
    15% 40%, 15% 20%, 30% 20%, 30% 0
  );
}

/* Coin (animated) */
.coin {
  display: inline-block;
  width: 28px; height: 28px;
  background: radial-gradient(circle at 35% 35%, #FFF59D 0%, #FBD000 45%, #C89B00 100%);
  border: 3px solid #000;
  border-radius: 50%;
  position: relative;
  animation: coin-spin 1.4s linear infinite;
}
.coin::after {
  content: '$'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #8B6000; font-weight: 900; font-size: 14px;
  font-family: var(--font-pixel);
}
@keyframes coin-spin {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}

/* Star */
.star-icn {
  display: inline-block; width: 24px; height: 24px;
  background: var(--accent-2);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ============ ANIMATIONS ============ */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 0 var(--accent-2)); }
  50%      { filter: drop-shadow(0 0 20px var(--accent-2)); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
@keyframes shake {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, -3px); }
}
@keyframes coin-pop {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  40%  { transform: translateY(-60px) scale(1.3); }
  100% { transform: translateY(-140px) scale(0.6); opacity: 0; }
}
@keyframes slide-up {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes mushroom-grow {
  0%   { transform: scale(1); }
  20%  { transform: scale(1.4); filter: brightness(1.5); }
  35%  { transform: scale(1);   filter: hue-rotate(40deg); }
  50%  { transform: scale(1.4); filter: brightness(1.5); }
  65%  { transform: scale(1);   filter: hue-rotate(-40deg); }
  80%  { transform: scale(1.4); }
  100% { transform: scale(1.4); }
}

/* ============ UTILITIES ============ */
.text-glow {
  text-shadow: 3px 3px 0 #000, 0 0 20px var(--accent-2);
}


.container {
  max-width: 1440px; margin: 0 auto; padding: 0 40px;
}

.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.grid { display: grid; }

.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }

.screen {
  min-height: calc(100vh - 60px);
  padding-top: 60px;
  animation: fade-in 0.35s ease-out;
}

/* Scanlines overlay for pixel theme */
[data-theme="pixel"] .scanlines::after {
  content: ''; position: fixed; inset: 60px 0 0 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 3px, rgba(0,0,0,0.05) 3px, rgba(0,0,0,0.05) 4px);
  pointer-events: none; z-index: 50;
}

/* ============ PROGRESS BAR ============ */
.progress-bar {
  width: 100%; height: 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 3px solid #000;
  position: relative; overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ WORLD BIOME BACKGROUNDS ============ */
.biome-1 { /* Green Plains */
  background: linear-gradient(180deg, #5FB8E6 0%, #87CEEB 50%, #43B047 50%, #2E7D32 100%) !important;
}
.biome-2 { /* Underground Caves */
  background: linear-gradient(180deg, #2D1B00 0%, #3E2723 40%, #5D4037 70%, #4E342E 100%) !important;
}
.biome-3 { /* Sky World */
  background: linear-gradient(180deg, #E3F2FD 0%, #90CAF9 40%, #64B5F6 70%, #42A5F5 100%) !important;
}
.biome-4 { /* Water World */
  background: linear-gradient(180deg, #0D47A1 0%, #1565C0 30%, #1E88E5 60%, #0097A7 100%) !important;
}
.biome-5 { /* Bowser's Castle I */
  background: linear-gradient(180deg, #1A1A1A 0%, #B71C1C 40%, #D32F2F 70%, #FF6F00 100%) !important;
}
.biome-6 { /* Bowser's Castle II */
  background: linear-gradient(180deg, #0D0D0D 0%, #880E4F 40%, #AD1457 60%, #E91E63 100%) !important;
}
.biome-7 { /* Star World */
  background: linear-gradient(180deg, #0B1022 0%, #1A237E 40%, #283593 60%, #FFD700 100%) !important;
}
.biome-8 { /* Final Castle */
  background: linear-gradient(180deg, #000000 0%, #1A1A2E 40%, #16213E 70%, #0F3460 100%) !important;
}

/* Parallax decorative layers */
@keyframes parallax-clouds {
  0% { background-position: 0 0; }
  100% { background-position: 2000px 0; }
}
@keyframes parallax-stars {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes lava-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes water-wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-200px); }
}

.parallax-layer {
  position: fixed; inset: 60px 0 0 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.parallax-layer.clouds {
  background-image:
    radial-gradient(ellipse 80px 40px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(ellipse 120px 50px at 30% 35%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(ellipse 90px 35px at 55% 15%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(ellipse 100px 45px at 75% 30%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(ellipse 70px 30px at 90% 20%, rgba(255,255,255,0.25) 0%, transparent 100%);
  animation: parallax-clouds 60s linear infinite;
}
.parallax-layer.stars {
  background-image:
    radial-gradient(circle 2px at 10% 15%, #FBD000 0%, transparent 100%),
    radial-gradient(circle 1px at 20% 45%, #FFF 0%, transparent 100%),
    radial-gradient(circle 2px at 35% 25%, #FBD000 0%, transparent 100%),
    radial-gradient(circle 1px at 45% 60%, #FFF 0%, transparent 100%),
    radial-gradient(circle 3px at 55% 10%, #FBD000 0%, transparent 100%),
    radial-gradient(circle 1px at 65% 50%, #FFF 0%, transparent 100%),
    radial-gradient(circle 2px at 75% 35%, #FBD000 0%, transparent 100%),
    radial-gradient(circle 1px at 85% 20%, #FFF 0%, transparent 100%),
    radial-gradient(circle 2px at 92% 55%, #FBD000 0%, transparent 100%);
  animation: parallax-stars 3s ease-in-out infinite;
}
.parallax-layer.lava {
  background: linear-gradient(0deg, rgba(255,107,53,0.4) 0%, transparent 30%);
  animation: lava-pulse 2s ease-in-out infinite;
}
.parallax-layer.waves {
  background: repeating-linear-gradient(90deg, transparent 0, transparent 180px, rgba(255,255,255,0.08) 180px, rgba(255,255,255,0.08) 200px);
  animation: water-wave 4s linear infinite;
}

/* ============ WARP PIPE TRANSITION ============ */
.warp-overlay {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
}
.warp-overlay .pipe-top, .warp-overlay .pipe-bottom {
  position: absolute; left: 0; right: 0;
  background: #43B047;
  border: 4px solid #000;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.warp-overlay .pipe-top { top: 0; height: 50%; transform: translateY(-100%); }
.warp-overlay .pipe-bottom { bottom: 0; height: 50%; transform: translateY(100%); }
.warp-overlay.active .pipe-top { transform: translateY(0); }
.warp-overlay.active .pipe-bottom { transform: translateY(0); }
.warp-overlay .pipe-top::after, .warp-overlay .pipe-bottom::before {
  content: ''; position: absolute; left: 0; right: 0; height: 24px;
  background: #8BC34A; border: 4px solid #000;
}
.warp-overlay .pipe-top::after { bottom: -24px; }
.warp-overlay .pipe-bottom::before { top: -24px; }
.warp-overlay .pipe-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-pixel); font-size: 16px; color: #FBD000;
  text-shadow: 3px 3px 0 #000; z-index: 10000;
  opacity: 0; transition: opacity 0.3s 0.3s;
}
.warp-overlay.active .pipe-center { opacity: 1; }

/* ============ SCROLL PROGRESS (disabled) ============ */
.scroll-progress {
  display: none;
}

/* ============ HUD XP BAR ============ */
.hud-xp-bar {
  width: 80px; height: 8px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  overflow: hidden; position: relative;
}
.hud-xp-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, #43B047, #FBD000);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes xp-flash {
  0% { filter: brightness(1); }
  50% { filter: brightness(2); }
  100% { filter: brightness(1); }
}
.hud-xp-bar.flash .fill {
  animation: xp-flash 0.5s ease-out;
}

/* ============ STREAK FIRE ============ */
@keyframes fire-flicker {
  0%, 100% { transform: scale(1) rotate(-2deg); filter: brightness(1); }
  25% { transform: scale(1.1) rotate(2deg); filter: brightness(1.3); }
  50% { transform: scale(0.95) rotate(-1deg); filter: brightness(1.1); }
  75% { transform: scale(1.05) rotate(1deg); filter: brightness(1.2); }
}
.streak-fire {
  display: inline-block;
  animation: fire-flicker 0.6s ease-in-out infinite;
}

/* ============ RICH MARKDOWN ============ */
.md-callout {
  padding: 16px 20px;
  margin: 16px 0;
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #000;
  animation: slide-up 0.4s ease-out;
  display: flex; gap: 14px; align-items: flex-start;
}
.md-callout.tip {
  background: #E8F5E9; border-left: 8px solid #43B047;
}
.md-callout.warning {
  background: #FFF3E0; border-left: 8px solid #FF6B35;
}
.md-callout.boss {
  background: #FFEBEE; border-left: 8px solid #E52521;
}
.md-callout.info {
  background: #E3F2FD; border-left: 8px solid #049CD8;
}
.md-callout-icon {
  font-size: 28px; flex-shrink: 0;
  animation: float-y 2s ease-in-out infinite;
}

.md-code-block {
  position: relative;
  background: #0D1117; color: #E6EDF3;
  border: 4px solid #000; margin: 16px 0;
  box-shadow: 6px 6px 0 #000; overflow: hidden;
}
.md-code-header {
  background: #161B22; padding: 8px 14px;
  border-bottom: 2px solid #30363D;
  font-family: var(--font-pixel); font-size: 9px;
  color: #FBD000; letter-spacing: 0.1em;
  display: flex; align-items: center; justify-content: space-between;
}
.md-code-copy {
  background: transparent; border: 2px solid #30363D;
  color: #8B949E; padding: 4px 10px;
  font-family: var(--font-pixel); font-size: 8px;
  cursor: pointer; letter-spacing: 0.05em;
  transition: all 0.15s;
}
.md-code-copy:hover { background: #30363D; color: #FBD000; }
.md-code-copy.copied { background: #43B047; color: #fff; border-color: #43B047; }

.md-inline-code {
  background: #F5F0E1; color: #E52521;
  padding: 2px 6px; border: 2px solid #000;
  font-family: var(--font-mono); font-size: 0.9em;
}

.glossary-term {
  cursor: help; position: relative;
  border-bottom: 2px dashed #FBD000;
  color: #049CD8; font-weight: 600;
}
.glossary-term:hover { color: #E52521; }
.glossary-tooltip {
  position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%); margin-bottom: 8px;
  background: #000; color: #FBD000;
  padding: 10px 14px; font-size: 12px;
  font-family: var(--font-ui); line-height: 1.4;
  border: 3px solid #FBD000; box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
  white-space: normal; width: 240px;
  pointer-events: none; z-index: 200;
  animation: slide-up 0.2s ease-out;
}
.glossary-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: #FBD000;
}

/* ============ SECTION COIN DROP ============ */
@keyframes section-coin {
  0% { transform: translateY(-20px) scale(0); opacity: 0; }
  30% { transform: translateY(0) scale(1.2); opacity: 1; }
  60% { transform: translateY(-10px) scale(1); }
  100% { transform: translateY(0) scale(1); opacity: 0; }
}
.section-coin-anim {
  animation: section-coin 1s ease-out forwards;
}

/* ============ HEADING ANIMATIONS ============ */
.md-heading-bar {
  display: block; height: 4px; margin-top: 6px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
  animation: bar-grow 0.6s ease-out;
  transform-origin: left;
}
@keyframes bar-grow {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
@keyframes heading-pulse {
  0%, 100% { text-shadow: 3px 3px 0 rgba(0,0,0,0.3); }
  50% { text-shadow: 3px 3px 0 rgba(0,0,0,0.3), 0 0 12px rgba(251,208,0,0.4); }
}

/* ============================================================
   INTERACTIVE, GAMIFICATION & NAVIGATION COMPONENTS
   ============================================================ */

/* ============ 1. KNOWLEDGE CHECK ============ */
.knowledge-check {
  background: #FFF8DC;
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 20px;
  margin: 16px 0;
  animation: slide-up 0.4s ease-out;
}
.knowledge-check .kc-question {
  font-family: var(--font-pixel);
  font-size: 12px;
  margin-bottom: 16px;
  color: var(--text);
}
.kc-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kc-option {
  background: var(--card-bg);
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.kc-option:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}
.kc-option.correct {
  background: #C8E6C9;
  border-color: var(--accent-3);
}
.kc-option.wrong {
  background: #FFCDD2;
  border-color: var(--accent);
  animation: shake 0.4s ease-out;
}

/* ============ 2. CODE PLAYGROUND ============ */
.code-playground {
  background: #0D1117;
  color: #4AF626;
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #000;
  margin: 16px 0;
  overflow: hidden;
}
.code-playground .cp-header {
  background: #161B22;
  padding: 8px 14px;
  border-bottom: 2px solid #30363D;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #4AF626;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.code-playground textarea {
  width: 100%;
  min-height: 140px;
  background: #0D1117;
  color: #4AF626;
  border: none;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  resize: vertical;
  outline: none;
}
.cp-feedback {
  padding: 10px 14px;
  font-family: var(--font-pixel);
  font-size: 10px;
  border-top: 2px solid #30363D;
}
.cp-feedback.success {
  background: #1B4332;
  color: #4AF626;
}
.cp-feedback.error {
  background: #3B1012;
  color: #FF6B6B;
}
.cp-run-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font-pixel);
  font-size: 11px;
  background: #43B047;
  color: #fff;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cp-run-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

/* ============ 3. DRAG SEQUENCE ============ */
.drag-item {
  background: #D4822A;
  border: 4px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 10px 16px;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #fff;
  cursor: grab;
  transition: transform 0.15s, background 0.2s;
  user-select: none;
}
.drag-item:active {
  cursor: grabbing;
}
.drag-item.correct {
  background: var(--accent-3);
}
.drag-item.wrong {
  background: var(--accent);
  animation: shake 0.4s ease-out;
}
.drag-zone {
  border: 3px dashed #888;
  padding: 12px;
  min-height: 50px;
  transition: border-color 0.2s, background 0.2s;
}
.drag-zone.over {
  border-color: var(--coin-gold);
  background: rgba(251, 208, 0, 0.1);
}

/* ============ 4. FILL GAP ============ */
.fill-gap-input {
  display: inline-block;
  border: 3px solid var(--coin-gold);
  background: #FFF8DC;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  min-width: 100px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.fill-gap-input:focus {
  box-shadow: 0 0 0 3px rgba(251, 208, 0, 0.3);
}
.fill-gap-input.correct {
  background: #C8E6C9;
  border-color: var(--accent-3);
}
.fill-gap-input.wrong {
  background: #FFCDD2;
  border-color: var(--accent);
  animation: shake 0.4s ease-out;
}

/* ============ 5. FLASHCARD DECK ============ */
.flashcard-deck {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 0;
}
.flashcard-mini {
  width: 160px;
  height: 100px;
  perspective: 600px;
  cursor: pointer;
  flex-shrink: 0;
}
.flashcard-mini .flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}
.flashcard-mini.flipped .flashcard-inner {
  transform: rotateY(180deg);
}
.flashcard-mini .flashcard-front,
.flashcard-mini .flashcard-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 8px;
  text-align: center;
}
.flashcard-mini .flashcard-front {
  background: #fff;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text);
}
.flashcard-mini .flashcard-back {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 12px;
  transform: rotateY(180deg);
}

/* ============ 6. SECTION SIDEBAR ============ */
.section-sidebar {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 80;
}
.section-sidebar .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #000;
  background: #888;
  position: relative;
  z-index: 2;
  transition: background 0.3s, box-shadow 0.3s;
}
.section-sidebar .dot.current {
  background: var(--coin-gold);
  box-shadow: 0 0 12px rgba(251, 208, 0, 0.7);
}
.section-sidebar .dot.done {
  background: var(--accent-3);
}
.section-sidebar .dot.future {
  background: #888;
}
.section-sidebar .line {
  width: 3px;
  height: 24px;
  background: #555;
}
@media (max-width: 1100px) {
  .section-sidebar {
    display: none;
  }
}

/* ============ 7. COMPANION DIALOGUE ============ */
.companion-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #E8F5E9;
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 16px;
  margin: 16px 0;
  animation: slide-up 0.4s ease-out;
}
.companion-box .companion-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  image-rendering: pixelated;
}
.companion-box .speech-bubble {
  position: relative;
  background: #fff;
  border: 3px solid #000;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}
.companion-box .speech-bubble::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 14px;
  border: 6px solid transparent;
  border-right-color: #000;
}
.companion-box .speech-bubble::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 14px;
  border: 6px solid transparent;
  border-right-color: #fff;
}

/* ============ 8. BADGE UNLOCK OVERLAY ============ */
.badge-unlock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  animation: fade-in 0.4s ease-out;
}
.badge-unlock-overlay .badge-icon {
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
  animation: mushroom-grow 1.2s ease-out;
  filter: drop-shadow(0 0 24px rgba(251, 208, 0, 0.7));
}
.badge-unlock-overlay .badge-title {
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--coin-gold);
  text-shadow: 3px 3px 0 #000;
  margin-top: 20px;
  animation: slide-up 0.5s ease-out 0.3s both;
}
.badge-unlock-overlay .badge-name {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: #fff;
  margin-top: 8px;
  animation: slide-up 0.5s ease-out 0.5s both;
}

/* ============ 9. WORLD CLEAR ============ */
@keyframes firework {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-120px) scale(1.5);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-200px) scale(0.5);
    opacity: 0;
  }
}
.world-clear-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  animation: fade-in 0.4s ease-out;
}
.world-clear-overlay .firework-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: firework 1.2s ease-out forwards;
}
.world-clear-overlay .firework-particle:nth-child(1) { background: var(--accent); left: 20%; top: 60%; animation-delay: 0s; }
.world-clear-overlay .firework-particle:nth-child(2) { background: var(--accent-2); left: 40%; top: 70%; animation-delay: 0.2s; }
.world-clear-overlay .firework-particle:nth-child(3) { background: var(--accent-3); left: 60%; top: 55%; animation-delay: 0.4s; }
.world-clear-overlay .firework-particle:nth-child(4) { background: var(--sky-blue); left: 80%; top: 65%; animation-delay: 0.6s; }
.world-clear-overlay .firework-particle:nth-child(5) { background: var(--fire); left: 50%; top: 75%; animation-delay: 0.8s; }
.world-clear-overlay .clear-text {
  font-family: var(--font-pixel);
  font-size: 32px;
  color: var(--coin-gold);
  text-shadow: 4px 4px 0 #000, 0 0 30px rgba(251, 208, 0, 0.6);
  z-index: 1;
  animation: mushroom-grow 1s ease-out;
}

/* ============ 10. COMBO DISPLAY ============ */
.combo-display {
  font-family: var(--font-pixel);
  color: var(--coin-gold);
  text-shadow: 2px 2px 0 #000;
  transition: font-size 0.3s, text-shadow 0.3s;
}
.combo-display.x2 {
  font-size: 18px;
  text-shadow: 2px 2px 0 #000, 0 0 8px rgba(251, 208, 0, 0.4);
}
.combo-display.x3 {
  font-size: 24px;
  text-shadow: 3px 3px 0 #000, 0 0 16px rgba(251, 208, 0, 0.6);
}
.combo-display.x4 {
  font-size: 32px;
  text-shadow: 4px 4px 0 #000, 0 0 24px rgba(251, 208, 0, 0.8);
}

/* ============ 11. DAILY CHALLENGE ============ */
.daily-challenge-block {
  animation: float-y 3s ease-in-out infinite, pulse-glow 2s ease-in-out infinite;
  border: 4px solid #000;
  box-shadow: var(--shadow-pixel);
  background: var(--card-bg);
  padding: 16px;
  cursor: pointer;
  transition: opacity 0.3s, filter 0.3s;
}
.daily-challenge-block.done {
  opacity: 0.5;
  filter: grayscale(1);
  animation: none;
  cursor: default;
}

/* ============ 12. BREADCRUMBS ============ */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.05em;
}
.breadcrumbs a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumbs a:hover {
  color: var(--accent-2);
}
.breadcrumbs .sep {
  color: #bbb;
}

/* ============ 13. SEARCH OVERLAY ============ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 15vh;
  z-index: 9500;
  animation: fade-in 0.25s ease-out;
}
.search-overlay .search-input {
  width: 90%;
  max-width: 600px;
  padding: 16px 20px;
  font-family: var(--font-pixel);
  font-size: 14px;
  background: #0D1117;
  color: var(--coin-gold);
  border: 4px solid var(--coin-gold);
  box-shadow: 0 0 20px rgba(251, 208, 0, 0.3);
  outline: none;
}
.search-overlay .search-results {
  width: 90%;
  max-width: 600px;
  margin-top: 8px;
  list-style: none;
  padding: 0;
}
.search-overlay .search-results li {
  padding: 12px 16px;
  background: #161B22;
  color: #E6EDF3;
  border: 2px solid #30363D;
  border-top: none;
  font-family: var(--font-ui);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-overlay .search-results li:first-child {
  border-top: 2px solid #30363D;
}
.search-overlay .search-results li:hover {
  background: #21262D;
  color: var(--coin-gold);
}

/* ============ 14. NEXT QUEST BANNER ============ */
.next-quest {
  background: linear-gradient(135deg, #1A1A2E, #0B1022);
  border: 4px solid var(--coin-gold);
  box-shadow: 6px 6px 0 #000;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  animation: slide-up 0.5s ease-out;
  transition: transform 0.15s, box-shadow 0.15s;
}
.next-quest:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 #000;
}
.next-quest .nq-avatar {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.next-quest .nq-text {
  flex: 1;
}
.next-quest .nq-text .nq-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--coin-gold);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.next-quest .nq-text .nq-title {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: #fff;
}
.next-quest .nq-arrow {
  font-size: 24px;
  color: var(--coin-gold);
  animation: float-y 2s ease-in-out infinite;
}

/* ============ 15. MINI PROGRESS ============ */
.mini-progress {
  background: rgba(0, 0, 0, 0.6);
  border: 3px solid #000;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini-progress .mp-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-progress .mp-icon {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.mini-progress .mp-bar {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid #000;
  overflow: hidden;
}
.mini-progress .mp-bar .mp-fill {
  height: 100%;
  transition: width 0.6s ease;
}
.mini-progress .mp-bar.world-1 .mp-fill { background: var(--accent-3); }
.mini-progress .mp-bar.world-2 .mp-fill { background: var(--brick); }
.mini-progress .mp-bar.world-3 .mp-fill { background: var(--sky-blue); }
.mini-progress .mp-bar.world-4 .mp-fill { background: #1E88E5; }
.mini-progress .mp-bar.world-5 .mp-fill { background: var(--accent); }
.mini-progress .mp-bar.world-6 .mp-fill { background: #E91E63; }
.mini-progress .mp-bar.world-7 .mp-fill { background: var(--coin-gold); }
.mini-progress .mp-bar.world-8 .mp-fill { background: #0F3460; }

/* ============ 16. ONBOARDING ============ */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9800;
  animation: fade-in 0.3s ease-out;
}
.onboarding-card {
  background: var(--card-bg);
  border: 4px solid #000;
  box-shadow: var(--shadow-pixel-xl);
  padding: 32px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  animation: slide-up 0.5s ease-out;
}
.onboarding-card .onboarding-title {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 12px;
}
.onboarding-card .onboarding-body {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.onboarding-steps {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.onboarding-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid #000;
  background: #ccc;
  transition: background 0.3s, box-shadow 0.3s;
}
.onboarding-step-dot.active {
  background: var(--coin-gold);
  box-shadow: 0 0 8px rgba(251, 208, 0, 0.5);
}
.onboarding-step-dot.done {
  background: var(--accent-3);
}

/* ============ 17. SHORTCUTS MODAL ============ */
.shortcuts-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9700;
  animation: fade-in 0.25s ease-out;
}
.shortcuts-modal .shortcuts-card {
  background: #0D1117;
  border: 4px solid var(--coin-gold);
  box-shadow: var(--shadow-pixel-lg);
  padding: 24px 32px;
  max-width: 480px;
  width: 90%;
}
.shortcuts-modal .shortcuts-title {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--coin-gold);
  margin-bottom: 16px;
}
.shortcuts-modal .shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #30363D;
}
.shortcuts-modal .shortcut-row .label {
  font-family: var(--font-ui);
  font-size: 13px;
  color: #E6EDF3;
}
.shortcuts-modal .key {
  display: inline-block;
  background: var(--coin-gold);
  color: #000;
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 4px 8px;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  min-width: 28px;
  text-align: center;
}

/* ============ 18. BOSS GAMES ============ */
.boss-game-container {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #1A1A2E 0%, #0B1022 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9900;
  animation: fade-in 0.3s ease-out;
}
.boss-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 4px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--coin-gold);
  z-index: 10;
}
.type-race-word {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--coin-gold);
  text-shadow: 3px 3px 0 #000, 0 0 16px rgba(251, 208, 0, 0.5);
  animation: slide-up 0.3s ease-out;
  letter-spacing: 0.15em;
}

/* ============ ENHANCED MARKDOWN V3 ============ */

/* Links as pixel-styled buttons */
.md-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: #049CD8; text-decoration: none;
  border-bottom: 2px solid #049CD8;
  padding: 1px 2px; transition: all 0.15s;
  font-weight: 600;
}
.md-link:hover {
  background: #049CD8; color: #fff;
  border-color: #000; text-decoration: none;
}
.md-link-external::after {
  content: '↗'; font-size: 10px; opacity: 0.6;
}

/* Enhanced list items with pixel bullets */
.md-list { padding-left: 0; margin: 14px 0; list-style: none; }
.md-list li {
  position: relative; padding-left: 24px; margin-bottom: 10px;
  font-size: 15px; line-height: 1.65;
}
.md-list li::before {
  content: '▸'; position: absolute; left: 4px; top: 0;
  color: #FBD000; font-family: var(--font-pixel); font-size: 12px;
  font-weight: bold;
}
.md-list.ordered li::before {
  content: counter(md-counter) '.';
  counter-increment: md-counter;
  color: #E52521; font-size: 11px;
}
.md-list.ordered { counter-reset: md-counter; }

/* Checkbox list items (task lists) */
.md-list li.task::before { content: none; }
.md-checkbox {
  display: inline-block; width: 18px; height: 18px;
  border: 3px solid #000; margin-right: 8px;
  vertical-align: middle; position: relative;
  background: #FFF8DC;
}
.md-checkbox.checked {
  background: #43B047;
}
.md-checkbox.checked::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: bold;
}

/* Animated paragraphs — fade in on scroll */
.md-paragraph {
  font-size: 15px; line-height: 1.7; margin: 14px 0;
  color: var(--text); opacity: 0;
  animation: md-fade-in 0.5s ease-out forwards;
}
@keyframes md-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Enhanced code blocks with line numbers and language icon */
.md-code-block { position: relative; }
.md-code-lang-icon {
  display: inline-flex; align-items: center; gap: 6px;
}
.md-code-lang-icon::before {
  content: '💻'; font-size: 12px;
}
.md-code-block[data-lang="bash"] .md-code-lang-icon::before,
.md-code-block[data-lang="shell"] .md-code-lang-icon::before,
.md-code-block[data-lang="sh"] .md-code-lang-icon::before { content: '🖥️'; }
.md-code-block[data-lang="python"] .md-code-lang-icon::before,
.md-code-block[data-lang="py"] .md-code-lang-icon::before { content: '🐍'; }
.md-code-block[data-lang="javascript"] .md-code-lang-icon::before,
.md-code-block[data-lang="js"] .md-code-lang-icon::before,
.md-code-block[data-lang="jsx"] .md-code-lang-icon::before { content: '⚡'; }
.md-code-block[data-lang="typescript"] .md-code-lang-icon::before,
.md-code-block[data-lang="ts"] .md-code-lang-icon::before,
.md-code-block[data-lang="tsx"] .md-code-lang-icon::before { content: '🔷'; }
.md-code-block[data-lang="yaml"] .md-code-lang-icon::before,
.md-code-block[data-lang="yml"] .md-code-lang-icon::before { content: '📄'; }
.md-code-block[data-lang="docker"] .md-code-lang-icon::before,
.md-code-block[data-lang="dockerfile"] .md-code-lang-icon::before { content: '🐳'; }
.md-code-block[data-lang="json"] .md-code-lang-icon::before { content: '📦'; }
.md-code-block[data-lang="sql"] .md-code-lang-icon::before { content: '🗄️'; }
.md-code-block[data-lang="csharp"] .md-code-lang-icon::before,
.md-code-block[data-lang="cs"] .md-code-lang-icon::before { content: '🟣'; }
.md-code-block[data-lang="go"] .md-code-lang-icon::before { content: '🔵'; }
.md-code-block[data-lang="rust"] .md-code-lang-icon::before { content: '🦀'; }
.md-code-block[data-lang="java"] .md-code-lang-icon::before { content: '☕'; }
.md-code-block[data-lang="html"] .md-code-lang-icon::before { content: '🌐'; }
.md-code-block[data-lang="css"] .md-code-lang-icon::before { content: '🎨'; }
.md-code-block[data-lang="terraform"] .md-code-lang-icon::before,
.md-code-block[data-lang="hcl"] .md-code-lang-icon::before { content: '🏗️'; }
.md-code-block[data-lang="markdown"] .md-code-lang-icon::before,
.md-code-block[data-lang="md"] .md-code-lang-icon::before { content: '📝'; }

/* Terminal simulation for bash/shell blocks */
.md-code-block[data-lang="bash"] pre,
.md-code-block[data-lang="shell"] pre,
.md-code-block[data-lang="sh"] pre {
  color: #4AF626;
}
.md-code-block[data-lang="bash"] .md-code-header,
.md-code-block[data-lang="shell"] .md-code-header,
.md-code-block[data-lang="sh"] .md-code-header {
  color: #4AF626;
}

/* Enhanced table with sticky header and sort indicator */
.md-table-wrapper {
  overflow-x: auto; margin: 20px 0;
  border: 4px solid #000; box-shadow: 6px 6px 0 #000;
  max-height: 500px; overflow-y: auto;
}
.md-table-wrapper thead { position: sticky; top: 0; z-index: 2; }
.md-table {
  width: 100%; border-collapse: collapse; font-size: 13px; background: #fff;
}
.md-table th {
  padding: 12px 14px; text-align: left;
  font-family: var(--font-pixel); font-size: 10px;
  letter-spacing: 0.05em; background: #000; color: #FBD000;
  border-bottom: 3px solid #FBD000;
}
.md-table td {
  padding: 10px 14px; line-height: 1.5;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.md-table tr { transition: background 0.15s; }
.md-table tr:nth-child(even) { background: #FFF8DC; }
.md-table tr:hover { background: #E3F2FD; }

/* Enhanced blockquote with animated border */
.md-quote {
  position: relative; margin: 20px 0;
  padding: 16px 20px 16px 24px;
  background: #FFF8DC; color: #5D4037;
  font-style: italic; font-size: 14px; line-height: 1.6;
  border: 4px solid #000; border-left: 8px solid #FBD000;
  box-shadow: 4px 4px 0 #000;
}
.md-quote::before {
  content: '"'; position: absolute; top: -8px; left: 8px;
  font-family: var(--font-pixel); font-size: 28px;
  color: #FBD000; line-height: 1;
}

/* Enhanced images with zoom on click */
.md-image-card {
  margin: 24px 0; text-align: center;
  border: 4px solid #000; box-shadow: 6px 6px 0 #000;
  background: #fff; overflow: hidden;
  transition: transform 0.2s;
}
.md-image-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000; }
.md-image-card img {
  width: 100%; height: auto; display: block;
  image-rendering: auto; transition: transform 0.3s;
  cursor: zoom-in;
}
.md-image-card .caption {
  padding: 8px 12px; background: #000;
  font-family: var(--font-pixel); font-size: 9px;
  color: #FBD000; letter-spacing: 0.05em;
}

/* Image lightbox */
.md-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out; animation: fade-in 0.2s;
}
.md-lightbox img {
  max-width: 90vw; max-height: 85vh;
  border: 4px solid #FBD000; box-shadow: 0 0 40px rgba(251,208,0,0.3);
}
.md-lightbox .close-btn {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--font-pixel); font-size: 14px;
  color: #FBD000; cursor: pointer; background: none; border: none;
}

/* HR as pixel pipe */
.md-hr {
  margin: 36px 0; height: 12px; position: relative;
  background: #43B047; border: 3px solid #000;
  box-shadow: 3px 3px 0 #000;
}
.md-hr::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: #8BC34A;
}

/* Section divider with coin */
.md-section-enter {
  display: flex; align-items: center; gap: 12px;
  margin: 28px 0 20px; opacity: 0.6;
}
.md-section-enter::before, .md-section-enter::after {
  content: ''; flex: 1; height: 2px;
  background: repeating-linear-gradient(90deg, #000 0, #000 6px, transparent 6px, transparent 12px);
}

/* Strikethrough */
.md-strike { text-decoration: line-through; opacity: 0.5; }

