@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #121826;
  --bg-card: #182235;
  --bg-hover: #1e2d4a;
  
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.3);
  --accent-purple: #bd00ff;
  --accent-purple-glow: rgba(189, 0, 255, 0.3);
  --accent-green: #39ff14;
  --accent-green-glow: rgba(57, 255, 20, 0.3);
  --accent-orange: #ff9f1c;
  --accent-orange-glow: rgba(255, 159, 28, 0.3);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --slide-width: 1280px;
  --slide-height: 720px;
  --transition-speed: 0.6s;
  --border-radius: 12px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* Presentation Container and Deck */
.presentation-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slides-deck {
  position: absolute;
  width: var(--slide-width);
  height: var(--slide-height);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  overflow: hidden;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
              0 0 40px rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Slide Base Styles */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1),
              transform var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1);
}

/* Slide States and Animations */
.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  transform: translate3d(0, 0, 0) scale(1);
}

.slide.past {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: translate3d(-100px, 0, 0) scale(0.95);
}

.slide.future {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: translate3d(100px, 0, 0) scale(0.95);
}

/* Header & Footer elements on each slide */
.slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.slide-header h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.slide-category {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-purple);
  text-shadow: 0 0 10px var(--accent-purple-glow);
}

.slide-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Cover Slide layout */
.slide.cover {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  background: radial-gradient(circle at center, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.slide.cover h1 {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 10%, var(--accent-cyan) 50%, var(--accent-purple) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.slide.cover h3 {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
}

.slide.cover .meta-info {
  display: flex;
  gap: 30px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.meta-item strong {
  color: var(--accent-cyan);
}

/* Layout Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.flex-row-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* Cards & Content blocks */
.card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan-glow);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3),
              0 0 15px var(--accent-cyan-glow);
}

.card.purple-hover:hover {
  border-color: var(--accent-purple-glow);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3),
              0 0 15px var(--accent-purple-glow);
}

.card.green-hover:hover {
  border-color: var(--accent-green-glow);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3),
              0 0 15px var(--accent-green-glow);
}

.card h3 {
  font-family: var(--font-title);
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.accent-number {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.07);
  position: absolute;
  top: 10px;
  right: 15px;
  transition: color 0.3s ease;
}

.card:hover .accent-number {
  color: rgba(0, 240, 255, 0.15);
}

.card.purple-hover:hover .accent-number {
  color: rgba(189, 0, 255, 0.15);
}

/* Lists and Lists items */
ul.bullets {
  list-style: none;
}

ul.bullets li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 16px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

ul.bullets li::before {
  content: "■";
  position: absolute;
  left: 5px;
  color: var(--accent-cyan);
  font-size: 0.8rem;
  top: 1px;
  text-shadow: 0 0 8px var(--accent-cyan-glow);
}

ul.bullets.purple li::before {
  color: var(--accent-purple);
  text-shadow: 0 0 8px var(--accent-purple-glow);
}

/* Callouts / Alerts */
.callout {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.05) 0%, rgba(189, 0, 255, 0.02) 100%);
  border-left: 4px solid var(--accent-cyan);
  padding: 20px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: 15px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.callout h4 {
  font-family: var(--font-title);
  color: var(--accent-cyan);
  margin-bottom: 8px;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.callout p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Global Controls & Overlays */
.presentation-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.control-btn {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.control-btn:hover {
  background-color: var(--accent-cyan);
  color: var(--bg-primary);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
  transform: scale(1.05);
}

.control-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  z-index: 10;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.slide-number {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10;
}

.nav-home-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(24, 34, 53, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-home-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan-glow);
  background: rgba(24, 34, 53, 0.9);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Speaker Notes Panel (Overlay style or bottom bar toggled via keyboard) */
.speaker-notes-panel {
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  max-height: 150px;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--text-secondary);
  padding: 20px 80px;
  overflow-y: auto;
  z-index: 9;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.speaker-notes-panel.active {
  transform: translateY(0);
}

.speaker-notes-title {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

/* Interactive Timeline (Día 1) */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 15px 0;
}

.timeline-nav {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 40px;
}

.timeline-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-progress-line {
  position: absolute;
  top: 50%;
  left: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transform: translateY(-50%);
  z-index: 2;
  width: 0%;
  transition: width 0.4s ease;
}

.timeline-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 3px solid rgba(255, 255, 255, 0.2);
  z-index: 3;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.timeline-node:hover {
  transform: scale(1.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.timeline-node.active {
  border-color: var(--accent-cyan);
  background-color: var(--bg-primary);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
  transform: scale(1.2);
}

.timeline-node.active ~ .timeline-node {
  /* Future node styling */
}

.timeline-node-label {
  position: absolute;
  top: -28px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.timeline-node.active .timeline-node-label {
  color: var(--accent-cyan);
}

.timeline-content-area {
  min-height: 180px;
}

.timeline-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.timeline-panel.active {
  display: block;
}

/* Simulator (Día 1) */
.simulator-box {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 20px;
}

.simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.simulator-title {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  gap: 8px;
}

.simulator-badge {
  background: rgba(255, 159, 28, 0.1);
  border: 1px solid rgba(255, 159, 28, 0.3);
  color: var(--accent-orange);
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

.simulator-content {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.simulator-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.simulator-opt-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.simulator-opt-btn:hover {
  background: rgba(0, 240, 255, 0.04);
  border-color: var(--accent-cyan-glow);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.simulator-feedback {
  margin-top: 15px;
  padding: 15px;
  border-radius: 6px;
  display: none;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: slideUp 0.3s ease forwards;
}

.simulator-feedback.success {
  display: block;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.3);
  color: #a3ff80;
}

.simulator-feedback.error {
  display: block;
  background: rgba(255, 50, 50, 0.08);
  border: 1px solid rgba(255, 50, 50, 0.3);
  color: #ff9999;
}

/* Quiz Box (Día 2) */
.quiz-container {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 24px;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.quiz-progress {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.9rem;
}

.quiz-score {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.quiz-question {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.4;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.quiz-option {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-option:hover {
  background: rgba(189, 0, 255, 0.04);
  border-color: var(--accent-purple-glow);
  color: var(--text-primary);
}

.quiz-option.selected {
  background: rgba(189, 0, 255, 0.1);
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.quiz-option.correct {
  background: rgba(57, 255, 20, 0.15);
  border-color: var(--accent-green);
  color: #a3ff80;
}

.quiz-option.incorrect {
  background: rgba(255, 50, 50, 0.15);
  border-color: #ff3333;
  color: #ff9999;
}

.quiz-actions {
  display: flex;
  justify-content: flex-end;
}

.quiz-submit-btn {
  background-color: var(--accent-purple);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-submit-btn:hover {
  background-color: #d130ff;
  box-shadow: 0 0 15px rgba(189, 0, 255, 0.4);
}

.quiz-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quiz-feedback {
  margin-top: 15px;
  padding: 15px;
  border-radius: 6px;
  display: none;
  font-size: 0.95rem;
  line-height: 1.4;
}

.quiz-feedback.show {
  display: block;
  animation: slideUp 0.3s ease forwards;
}

/* Architecture Stack (Día 2) */
.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-layer {
  display: flex;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.arch-layer:hover {
  border-color: var(--accent-cyan);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.1);
}

.arch-layer-num {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  width: 60px;
}

.arch-layer.purple-layer:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 4px 15px rgba(189, 0, 255, 0.1);
}

.arch-layer.purple-layer .arch-layer-num {
  background: rgba(189, 0, 255, 0.1);
  color: var(--accent-purple);
}

.arch-layer-content {
  padding: 15px 20px;
  flex-grow: 1;
}

.arch-layer-content h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.arch-layer-content p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}

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

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

/* Interactive Dashboard specific styling */
.db-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.db-header {
  text-align: center;
  margin-bottom: 40px;
}

.db-header h1 {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, var(--accent-cyan) 50%, var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.db-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.db-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.db-week-card {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.db-week-card.active {
  border-color: var(--accent-cyan-glow);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.db-week-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.db-week-card:nth-child(1) .db-week-badge {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan-glow);
}

.db-week-card:nth-child(2) .db-week-badge {
  background: rgba(189, 0, 255, 0.1);
  color: var(--accent-purple);
  border: 1px solid var(--accent-purple-glow);
}

.db-week-card:nth-child(3) .db-week-badge {
  background: rgba(255, 159, 28, 0.1);
  color: var(--accent-orange);
  border: 1px solid var(--accent-orange-glow);
}

.db-week-card h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.db-day-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-grow: 1;
}

.db-day-item {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.db-day-item.available:hover {
  background-color: var(--bg-hover);
  border-color: var(--accent-cyan-glow);
  transform: translateX(4px);
}

.db-day-item-info h4 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.db-day-item-info p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.db-day-link {
  background-color: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.db-day-item.available:hover .db-day-link {
  background-color: var(--accent-cyan);
  color: var(--bg-primary);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.db-day-item.locked {
  opacity: 0.55;
}

.db-day-item.locked .db-day-link {
  cursor: not-allowed;
}

.db-footer {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.db-footer a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.db-footer a:hover {
  text-decoration: underline;
}

/* Keyboard Shortcuts Help Overlay */
.keyboard-help-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.keyboard-help-box {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-cyan-glow);
  padding: 35px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-cyan-glow);
  animation: slideUp 0.3s ease forwards;
}

.keyboard-help-box h3 {
  font-family: var(--font-title);
  color: var(--accent-cyan);
  margin-bottom: 20px;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.shortcut-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.shortcut-key {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--accent-cyan);
  font-weight: 700;
}

.close-help-btn {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 6px;
  margin-top: 20px;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 600;
  width: 100%;
  transition: all 0.2s ease;
}

.close-help-btn:hover {
  background-color: var(--accent-cyan);
  color: var(--bg-primary);
  border-color: var(--accent-cyan);
}

/* Image Styling */
.slide-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.1);
  transition: all 0.3s ease;
}

.slide-img:hover {
  transform: scale(1.02);
  border-color: var(--accent-cyan-glow);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 25px var(--accent-cyan-glow);
}

.slide-img.purple-border {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(189, 0, 255, 0.1);
}

.slide-img.purple-border:hover {
  border-color: var(--accent-purple-glow);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 25px var(--accent-purple-glow);
}

/* Gamification Styles */
.gamification-slide {
  background: radial-gradient(circle at center, #1b0c2a 0%, var(--bg-secondary) 100%) !important;
}

.gamification-slide.alert-theme {
  background: radial-gradient(circle at center, #2e090f 0%, var(--bg-secondary) 100%) !important;
}

.gamification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #ff007f;
  padding-bottom: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(255, 0, 127, 0.1);
}

.gamification-header h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #ff007f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(255, 0, 127, 0.2);
}

.gamification-header.alert h2 {
  background: linear-gradient(135deg, #ffffff, #ff3333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(255, 51, 51, 0.2);
}

.game-title-badge {
  background: rgba(255, 0, 127, 0.15);
  border: 1px solid #ff007f;
  color: #ff007f;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
  animation: pulse-border-pink 2s infinite;
}

.gamification-header.alert .game-title-badge {
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid #ffb703;
  color: #ffb703;
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.2);
  animation: pulse-border-amber 2s infinite;
}

/* Game Card Grid and Buttons */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.game-card-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 18px 24px;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.game-card-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--text-muted);
  transition: background 0.3s;
}

.game-card-btn:hover {
  background: rgba(255, 0, 127, 0.04);
  border-color: rgba(255, 0, 127, 0.3);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 0 15px rgba(255, 0, 127, 0.15);
}

.game-card-btn:hover::before {
  background: #ff007f;
}

.game-card-btn.alert-btn:hover {
  background: rgba(255, 183, 3, 0.04);
  border-color: rgba(255, 183, 3, 0.3);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 0 15px rgba(255, 183, 3, 0.15);
}

.game-card-btn.alert-btn:hover::before {
  background: #ffb703;
}

.game-card-btn.selected {
  background: rgba(255, 0, 127, 0.12) !important;
  border-color: #ff007f !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.3) !important;
}

.game-card-btn.selected::before {
  background: #ff007f !important;
}

.game-card-btn.selected.alert-btn {
  background: rgba(255, 183, 3, 0.12) !important;
  border-color: #ffb703 !important;
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.3) !important;
}

.game-card-btn.selected.alert-btn::before {
  background: #ffb703 !important;
}

.game-card-btn.correct {
  background: rgba(57, 255, 20, 0.15) !important;
  border-color: var(--accent-green) !important;
  color: #a3ff80 !important;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.25) !important;
}

.game-card-btn.correct::before {
  background: var(--accent-green) !important;
}

.game-card-btn.incorrect {
  background: rgba(255, 50, 50, 0.15) !important;
  border-color: #ff3333 !important;
  color: #ff9999 !important;
  box-shadow: 0 0 20px rgba(255, 50, 50, 0.25) !important;
  animation: shake 0.4s ease;
}

.game-card-btn.incorrect::before {
  background: #ff3333 !important;
}

/* Action button for games */
.game-action-btn {
  background: linear-gradient(135deg, #ff007f, #bd00ff);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 0, 127, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-action-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 0, 127, 0.6), 0 0 15px rgba(189, 0, 255, 0.4);
}

.game-action-btn.alert-btn {
  background: linear-gradient(135deg, #ff9f1c, #ff3333);
  box-shadow: 0 4px 15px rgba(255, 159, 28, 0.4);
}

.game-action-btn.alert-btn:hover {
  box-shadow: 0 6px 20px rgba(255, 159, 28, 0.6), 0 0 15px rgba(255, 51, 51, 0.4);
}

.game-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Game feedback panel */
.game-feedback-box {
  margin-top: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.5;
  display: none;
  animation: slideUp 0.3s ease forwards;
}

.game-feedback-box.active {
  display: block;
}

.game-feedback-box.success {
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.4);
  color: #a3ff80;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
}

.game-feedback-box.error {
  background: rgba(255, 50, 50, 0.1);
  border: 1px solid rgba(255, 50, 50, 0.4);
  color: #ff9999;
  box-shadow: 0 0 15px rgba(255, 50, 50, 0.1);
}

/* Game Multi-Step Overlay */
.game-scenario-step {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.game-scenario-step.active {
  display: block;
}

/* Animations */
@keyframes pulse-border-pink {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 127, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 0, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 127, 0); }
}

@keyframes pulse-border-amber {
  0% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 183, 3, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Candy Crush style Level Map */
.game-map-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 0, 127, 0.2);
  border-radius: var(--border-radius);
  padding: 15px 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.game-stats {
  display: flex;
  gap: 25px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-item.score {
  color: #ffb703;
  text-shadow: 0 0 10px rgba(255, 183, 3, 0.4);
}

.stat-item.lives {
  color: #ff3333;
  text-shadow: 0 0 10px rgba(255, 51, 51, 0.4);
}

.map-path {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-muted);
  position: relative;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.map-node.locked {
  background: #10141e;
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.1);
}

.map-node.active {
  border-color: #ff007f;
  background: radial-gradient(circle, #ff007f 0%, #7c003f 100%);
  color: white;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.6), 0 0 3px #ff007f;
  animation: pulse-node 1.5s infinite alternate;
}

.map-node.completed {
  border-color: #ffb703;
  background: radial-gradient(circle, #ffb703 0%, #b27a00 100%);
  color: var(--bg-primary);
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.6);
}

.map-node-label {
  position: absolute;
  bottom: -20px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.map-node.active .map-node-label {
  color: #ff007f;
}

.map-node.completed .map-node-label {
  color: #ffb703;
}

.map-connector {
  width: 25px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.map-connector.active {
  background: linear-gradient(90deg, #ffb703, #ff007f);
}

.map-connector.completed {
  background: #ffb703;
}

@keyframes pulse-node {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 0, 127, 0.6); }
  100% { transform: scale(1.1); box-shadow: 0 0 25px rgba(255, 0, 127, 0.9); }
}

