/* Human Evolution 3D - Stylesheet */

:root {
  --primary-glow: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --bg-dark: #090d16;
  --card-bg: rgba(15, 23, 42, 0.78);
  --card-border: rgba(255, 255, 255, 0.14);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
}

.evo-app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  position: relative;
}

/* ==========================================================================
   Top Header Bar
   ========================================================================== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  z-index: 20;
  gap: 12px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fbbf24;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: rgba(251, 191, 36, 0.25);
  transform: translateX(-2px);
}

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

.title {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #f97316, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.era-tag {
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.star-pill {
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.38);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.guide-pill {
  flex: 1;
  max-width: 480px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.ctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.08);
}

.ctrl-btn.active {
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

/* ==========================================================================
   Main Stage Layout
   ========================================================================== */
.stage {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1e293b 0%, #090d16 80%);
  padding: 12px 24px;
  gap: 24px;
}

/* ==========================================================================
   Left Ancestor Information Card
   ========================================================================== */
.ancestor-card {
  position: relative;
  width: 320px;
  max-width: 330px;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  flex-shrink: 0;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ancestor-card::-webkit-scrollbar {
  width: 5px;
}
.ancestor-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.ancestor-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.16);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.ancestor-name {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
}

.ancestor-nick {
  font-size: 0.85rem;
  font-weight: 600;
  color: #38bdf8;
  margin-top: 2px;
}

.stats-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.stat-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(251, 191, 36, 0.45);
  transform: translateX(3px);
}

.stat-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-label strong {
  color: #f1f5f9;
  font-weight: 700;
}

.stat-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brain-fill {
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.5);
}

.posture-fill {
  background: linear-gradient(90deg, #3b82f6, #10b981);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.superpower-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.superpower-box:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(251, 191, 36, 0.55);
  transform: translateX(3px);
}

.superpower-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f59e0b;
  margin-bottom: 3px;
}

.superpower-desc {
  font-size: 0.84rem;
  line-height: 1.35;
  color: #e2e8f0;
}

.action-btn-wrap {
  display: flex;
  gap: 8px;
}

.action-btn {
  flex: 1;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.38);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.action-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
}

.action-btn:active {
  transform: translateY(1px) scale(0.98);
}

.action-btn.completed {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 15;
}

.fx-particle {
  position: absolute;
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  animation: fxFloatUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}

@keyframes fxFloatUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.4) rotate(-10deg);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -25px) scale(1.15) rotate(8deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), -150px) scale(0.85) rotate(var(--rot, 15deg));
  }
}

.walk-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.walk-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.fun-fact {
  font-size: 0.78rem;
  line-height: 1.35;
  color: #cbd5e1;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fun-fact:hover {
  background: rgba(6, 182, 212, 0.16);
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateX(3px);
}

.nav-arrow {
  position: static;
  transform: none;
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 18px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  user-select: none;
}

.nav-next {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
  border-color: #fbbf24;
}

.nav-arrow:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.nav-arrow:active {
  transform: scale(0.96);
}

.nav-arrow:disabled {
  opacity: 0.25;
  pointer-events: none;
}

/* ==========================================================================
   Bottom Timeline Bar
   ========================================================================== */
.timeline-bar {
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--card-border);
  padding: 12px 20px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #06b6d4, #8b5cf6);
  border-radius: 999px;
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
}

.timeline-nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
  z-index: 3;
}

.timeline-node {
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 6px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-node:hover {
  border-color: #fbbf24;
  color: #fff;
  transform: translateY(-3px);
}

.timeline-node.active {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35);
}

.node-icon {
  font-size: 1.25rem;
}

.node-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.node-name {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
}

.node-time {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}

.toddler-banner {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
}

/* ==========================================================================
   Start / Welcome Modal
   ========================================================================== */
.start-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
  transition: opacity 0.3s ease;
}

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

.start-card {
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(251, 191, 36, 0.2);
  border-radius: 28px;
  max-width: 520px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUp {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.start-emoji {
  font-size: 2.2rem;
  letter-spacing: 6px;
}

.start-card h2 {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f97316, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.start-intro {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.how-to-play {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 18px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: #e2e8f0;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.start-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.start-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.6);
}

.start-btn small {
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 600;
}

.loading-note {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .nav-prev {
    left: 20px;
  }
  .ancestor-card {
    top: auto;
    bottom: 20px;
    left: 20px;
    width: 290px;
    padding: 14px;
  }
  .focus-hotspots {
    display: none;
  }
}

@media (max-width: 640px) {
  .top-bar {
    padding: 8px 12px;
  }
  .guide-pill {
    display: none;
  }
  .ancestor-card {
    position: static;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 12px 16px;
    max-height: 38vh;
    overflow-y: auto;
  }
  .stage {
    display: flex;
    flex-direction: column;
  }
  #evoCanvas {
    height: 62vh;
  }
  .timeline-node .node-time {
    display: none;
  }
  .nav-arrow {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  .nav-prev {
    left: 12px;
  }
  .nav-next {
    right: 12px;
  }
}

/* ==========================================================================
   Realistic Photographic Preview Card
   ========================================================================== */
.photo-preview-wrap {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.photo-preview-wrap:hover {
  transform: scale(1.02);
  border-color: #38bdf8;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
}

.photo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-preview-wrap:hover .photo-preview-img {
  transform: scale(1.06);
}

.photo-zoom-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  padding: 4px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  color: #38bdf8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.3px;
}

/* ==========================================================================
   Realistic Full-Screen Photo Inspection Modal
   ========================================================================== */
.photo-modal {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.photo-modal-card {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.96);
  border: 2px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.25);
  border-radius: 24px;
  max-width: 780px;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.photo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(30, 41, 59, 0.7);
  border-bottom: 1px solid var(--card-border);
}

.photo-modal-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #38bdf8;
  letter-spacing: 0.6px;
}

.photo-modal-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
}

.photo-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.photo-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.photo-modal-body {
  display: flex;
  flex-direction: row;
  padding: 16px;
  gap: 18px;
}

.photo-img-wrap {
  position: relative;
  flex: 1.2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: #000;
  max-height: 480px;
}

.photo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-topics-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0;
}

.topics-section-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.modal-topics-tray {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-topic-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #e2e8f0;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  transition: all 0.2s ease;
}

.modal-topic-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fbbf24;
  color: #ffffff;
  transform: translateX(3px);
}

.modal-topic-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.3));
  border-color: #fbbf24;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.modal-topic-btn .topic-icon {
  font-size: 1.15rem;
}

.photo-modal-info {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.photo-modal-info p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.photo-hotspot-detail {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #e2e8f0;
}

.photo-hotspot-detail strong {
  color: #fbbf24;
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .photo-modal-body {
    flex-direction: column;
  }
  .photo-img-wrap {
    max-height: 280px;
  }
}

/* ==========================================================================
   Cinematic Exhibit Stage
   ========================================================================== */
.exhibit-container {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #1e293b 0%, #090d16 85%);
  border-radius: 24px;
}

.exhibit-stage-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 960px;
  width: 100%;
  max-height: 86vh;
}

.exhibit-ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 1;
  transition: background 0.8s ease;
}

.exhibit-card-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.exhibit-image-card {
  position: relative;
  z-index: 2;
  border-radius: 22px;
  overflow: hidden;
  border: 2.5px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(251, 191, 36, 0.2);
  background: #000;
  max-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease-out, border-color 0.5s ease;
}

.exhibit-main-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 56vh;
  object-fit: contain;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.exhibit-main-img.switching {
  animation: imgRevealPop 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes imgRevealPop {
  0% {
    opacity: 0.35;
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.exhibit-topics-tray {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  z-index: 5;
  width: 100%;
}

.topic-chip {
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #e2e8f0;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topic-chip:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #fbbf24;
  color: #ffffff;
  transform: translateY(-2px) scale(1.04);
}

.topic-chip.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #fbbf24;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px) scale(1.05);
}

.chip-icon {
  font-size: 1.1rem;
}

.exhibit-caption {
  position: relative;
  z-index: 3;
  margin-top: 10px;
  text-align: center;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 18px;
  border-radius: 999px;
  max-width: 90%;
}

.exhibit-caption-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #38bdf8;
  letter-spacing: 0.5px;
  display: block;
}

.exhibit-caption p {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-top: 2px;
}
