/* ==========================================================================
   LUMINA 2026 — Augmented Reality Art Exhibition Design System
   Aesthetic: Contemporary Haute-Art Gallery • Glassmorphism • Gold & Obsidian
   Typography:
     - Main English Titles & Subjects: 'Instrument Serif' & 'Instrument Sans'
     - Thai Body & Descriptions: 'IBM Plex Sans Thai'
     - Telemetry & Numbers: 'JetBrains Mono'
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-deep: #07080c;
  --bg-panel: rgba(13, 16, 26, 0.82);
  --bg-panel-solid: #0d101a;
  --bg-card: rgba(22, 27, 44, 0.7);
  --bg-card-hover: rgba(32, 40, 66, 0.88);

  --gold-primary: #d4af37;
  --gold-glow: #f3d069;
  --gold-muted: #a68b35;
  --gold-tint: rgba(212, 175, 55, 0.15);

  --accent-cyan: #38ef7d;
  --accent-holo: #00f2fe;
  --accent-purple: #9d4edd;

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.5);

  --border-gold: rgba(212, 175, 55, 0.32);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(212, 175, 55, 0.8);

  --blur-strong: blur(28px) saturate(180%);
  --blur-medium: blur(16px);

  /* Typography System */
  --font-title: 'Instrument Serif', 'IBM Plex Sans Thai', Georgia, serif;
  --font-subject: 'Instrument Serif', 'IBM Plex Sans Thai', serif;
  --font-en-sans: 'Instrument Sans', 'IBM Plex Sans Thai', sans-serif;
  --font-thai: 'IBM Plex Sans Thai', sans-serif;
  --font-sans: 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', 'IBM Plex Sans Thai', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Sans Thai', monospace;

  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global Viewport Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  font-family: var(--font-thai);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-thai);
  position: fixed;
  -webkit-font-smoothing: antialiased;
}

/* English Main Titles & Subject Heading Elements use Instrument Serif */
h1, h2, h3, h4,
.exhibition-title,
.drawer-artwork-title,
.snapshot-header h3,
.statement-section h3,
.interactive-tips h4 {
  font-family: var(--font-title);
  letter-spacing: 0.03em;
}

/* Container for Video Stream & 3D Layer */
#experience-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #151828 0%, #06070a 100%);
}

#camera-feed {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s var(--ease-smooth);
}

body.camera-active #camera-feed {
  opacity: 1;
}

#ar-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: grab;
}

#ar-canvas:active {
  cursor: grabbing;
}

/* ==========================================================================
   AR Spatial Reticle (Surface Anchor Indicator)
   ========================================================================== */
.reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
  opacity: 0.85;
  transition: transform 0.25s ease-out, opacity 0.4s ease;
}

.reticle.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}

.reticle-ring {
  position: absolute;
  inset: 15px;
  border: 1px dashed var(--gold-primary);
  border-radius: 50%;
  animation: rotateRing 14s linear infinite;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.reticle-ring-outer {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  animation: pulseScale 2.4s ease-in-out infinite alternate;
}

.reticle-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--gold-glow);
  box-shadow: 0 0 10px var(--gold-glow);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.reticle-corners span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold-glow);
  border-style: solid;
}

.c-tl { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.c-tr { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.c-bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.c-br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

.reticle-status {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 12, 20, 0.75);
  backdrop-filter: var(--blur-medium);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-gold);
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--gold-glow);
}

.radar-scan {
  width: 7px;
  height: 7px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: radarBlink 1.4s infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseScale {
  0% { transform: scale(0.94); opacity: 0.5; }
  100% { transform: scale(1.06); opacity: 0.95; }
}

@keyframes radarBlink {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ==========================================================================
   HUD Overlay Layer
   ========================================================================== */
#hud-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

#hud-overlay > * {
  pointer-events: auto;
}

/* Top Exhibition Header */
.hud-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.brand-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gallery-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--gold-tint);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  font-family: var(--font-en-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-glow);
  width: fit-content;
}

.prototype-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: rgba(255, 179, 0, 0.12);
  border: 1px solid rgba(255, 179, 0, 0.45);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #ffca28;
  width: fit-content;
  text-transform: uppercase;
}

.prototype-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffb300;
  box-shadow: 0 0 6px #ffb300;
  animation: radarBlink 1.4s infinite;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
  animation: radarBlink 1.5s infinite;
}

.exhibition-title {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 40%, var(--gold-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 20px rgba(212, 175, 55, 0.25);
}

.exhibition-title span {
  font-family: var(--font-en-sans);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--gold-muted);
  -webkit-text-fill-color: var(--gold-muted);
}

.exhibition-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

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

/* Glassmorphic Pill Buttons */
.hud-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: var(--bg-panel);
  backdrop-filter: var(--blur-strong);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hud-pill-btn:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.2);
}

.hud-pill-btn:active {
  transform: translateY(1px);
}

.hud-pill-btn.active {
  background: var(--gold-tint);
  border-color: var(--gold-primary);
  color: var(--gold-glow);
}

.hud-pill-icon-only {
  padding: 0;
  width: 40px;
  justify-content: center;
}

.hud-icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

/* Equalizer Bars Animation */
.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 13px;
}

.equalizer-bars span {
  width: 2.5px;
  background: var(--gold-primary);
  border-radius: 1px;
  height: 3px;
  transition: height 0.2s ease;
}

.hud-pill-btn.active .equalizer-bars span:nth-child(1) { animation: eqJump 0.8s infinite alternate 0.1s; }
.hud-pill-btn.active .equalizer-bars span:nth-child(2) { animation: eqJump 0.6s infinite alternate 0.3s; }
.hud-pill-btn.active .equalizer-bars span:nth-child(3) { animation: eqJump 0.9s infinite alternate 0.2s; }
.hud-pill-btn.active .equalizer-bars span:nth-child(4) { animation: eqJump 0.7s infinite alternate 0.4s; }

@keyframes eqJump {
  0% { height: 3px; }
  100% { height: 13px; }
}

/* Gesture Hints Pill */
.gesture-hint {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 13, 22, 0.75);
  backdrop-filter: var(--blur-medium);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 7px 20px;
  font-size: 12px;
  color: var(--text-secondary);
  animation: fadeInDown 1.2s var(--ease-smooth);
}

.hint-icon {
  display: flex;
  align-items: center;
  color: var(--gold-glow);
}

.hint-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

/* Floating Active Artwork Pill */
.artwork-active-pill {
  position: absolute;
  top: 96px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-panel);
  backdrop-filter: var(--blur-strong);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 8px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeInLeft 0.6s var(--ease-smooth);
}

.pill-beacon {
  width: 8px;
  height: 8px;
  background: var(--gold-glow);
  box-shadow: 0 0 10px var(--gold-glow);
  border-radius: 50%;
  animation: radarBlink 2s infinite;
}

.pill-info {
  display: flex;
  flex-direction: column;
}

.pill-number {
  font-family: var(--font-en-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-muted);
}

.pill-title {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 400;
  color: var(--text-primary);
}

.pill-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--gold-tint);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gold-glow);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-action-btn:hover {
  background: var(--gold-primary);
  color: #0a0c14;
}

.pill-action-btn svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}

/* Right Tools Sidebar */
.hud-tools-sidebar {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-panel);
  backdrop-filter: var(--blur-strong);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.tool-btn svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
  color: var(--gold-glow);
}

.tool-label {
  font-family: var(--font-en-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.tool-btn:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: scale(1.05);
}

.tool-btn.active {
  background: var(--gold-tint);
  border-color: var(--gold-glow);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   Bottom Controls Bar & Artworks Carousel
   ========================================================================== */
.hud-bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.hud-actions-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.btn-ctrl-small {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-panel);
  backdrop-filter: var(--blur-strong);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-ctrl-small:hover {
  border-color: var(--border-gold);
  color: var(--gold-glow);
  transform: scale(1.08);
}

.scale-indicator {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-glow);
  background: rgba(10, 12, 20, 0.7);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

/* Primary Action: Place Artwork Button */
.btn-primary-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 134, 11, 0.95));
  border: 1px solid rgba(255, 235, 150, 0.4);
  color: #0b0c10;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.35);
  transition: all 0.3s var(--ease-spring);
  overflow: hidden;
}

.btn-primary-action:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 32px rgba(212, 175, 55, 0.55);
}

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

.btn-primary-action .btn-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.5;
}

.btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  animation: rotateRing 8s linear infinite;
  pointer-events: none;
}

/* Shutter Button for AR Photography */
.shutter-button {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-spring);
}

.shutter-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--text-primary);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.shutter-inner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.shutter-button:hover .shutter-ring {
  border-color: var(--gold-glow);
  transform: scale(1.08);
}

.shutter-button:hover .shutter-inner {
  background: var(--gold-glow);
}

.shutter-button:active .shutter-inner {
  transform: scale(0.85);
}

/* Artwork Carousel Track */
.artwork-carousel-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.artwork-carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 12px;
  padding: 4px 6px;
  width: max-content;
  margin: 0 auto;
}

.artwork-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-panel);
  backdrop-filter: var(--blur-strong);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  min-width: 200px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.artwork-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.artwork-card.active {
  border-color: var(--gold-primary);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(13, 16, 26, 0.9) 100%);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.28);
  transform: translateY(-2px);
}

.artwork-card-thumb {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-gold);
  background: rgba(0, 0, 0, 0.4);
  color: var(--gold-glow);
  position: relative;
  overflow: hidden;
}

.artwork-card-info {
  display: flex;
  flex-direction: column;
}

.artwork-card-tag {
  font-family: var(--font-en-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-muted);
}

.artwork-card-name {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ==========================================================================
   Curatorial Dossier Modal & Slide-Up Drawer
   ========================================================================== */
.curator-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: auto;
  transition: opacity 0.4s var(--ease-smooth);
}

.curator-drawer.hidden {
  opacity: 0;
  pointer-events: none;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 8, 0.8);
  backdrop-filter: blur(12px);
}

.drawer-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  max-height: 85vh;
  background: var(--bg-panel-solid);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border: 1px solid var(--border-gold);
  border-bottom: none;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(0%);
  transition: transform 0.4s var(--ease-smooth);
}

.curator-drawer.hidden .drawer-panel {
  transform: translateY(100%);
}

.drawer-handle-bar {
  display: flex;
  justify-content: center;
  padding: 12px 0 6px;
}

.drawer-handle {
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.drawer-header {
  padding: 12px 24px 18px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.drawer-meta-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.tag-accent {
  font-family: var(--font-en-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-glow);
  background: var(--gold-tint);
  border: 1px solid var(--border-gold);
  padding: 2px 8px;
  border-radius: 6px;
}

.tag-year, .tag-edition {
  font-family: var(--font-en-sans);
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
}

.drawer-artwork-title {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #ffffff;
  margin-bottom: 4px;
}

.drawer-artist-name {
  font-size: 13.5px;
  color: var(--gold-muted);
  font-weight: 400;
}

.drawer-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: var(--gold-tint);
  border-color: var(--gold-primary);
  color: var(--gold-glow);
}

.drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-gold) transparent;
}

/* Audio Guide Card Inside Drawer */
.audio-guide-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(20, 24, 38, 0.85) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
}

.audio-guide-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.audio-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 20px;
}

.audio-visualizer .bar {
  width: 3px;
  background: var(--gold-glow);
  border-radius: 2px;
  height: 4px;
}

.audio-guide-card.playing .b1 { animation: eqJump 0.6s infinite alternate 0.1s; }
.audio-guide-card.playing .b2 { animation: eqJump 0.8s infinite alternate 0.2s; }
.audio-guide-card.playing .b3 { animation: eqJump 0.5s infinite alternate 0.4s; }
.audio-guide-card.playing .b4 { animation: eqJump 0.9s infinite alternate 0.15s; }
.audio-guide-card.playing .b5 { animation: eqJump 0.7s infinite alternate 0.3s; }

.audio-label {
  font-family: var(--font-en-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-glow);
}

.audio-narrator {
  font-size: 12px;
  color: var(--text-secondary);
}

.audio-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: none;
  color: #0a0c14;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.audio-play-btn:hover {
  transform: scale(1.08);
  background: var(--gold-glow);
}

.audio-play-btn svg {
  width: 16px;
  height: 16px;
}

/* Specifications Grid */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-family: var(--font-en-sans);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--gold-muted);
}

.spec-value {
  font-size: 12.5px;
  color: var(--text-primary);
  font-weight: 500;
}

/* Statement & Interactions */
.statement-section h3, .interactive-tips h4 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--gold-glow);
  margin-bottom: 8px;
}

.statement-section p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.interactive-tips ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.interactive-tips li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  position: relative;
  padding-left: 18px;
}

.interactive-tips li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-size: 11px;
}

.drawer-footer {
  padding: 14px 24px 20px;
  border-top: 1px solid var(--border-subtle);
}

.btn-full-gold {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-primary), #ad861a);
  border: none;
  color: #0b0d14;
  font-family: var(--font-en-sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s var(--ease-spring);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
}

.btn-full-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45);
}

/* Catalog Directory List */
.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.catalog-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.catalog-item-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.catalog-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.catalog-item-idx {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-primary);
  font-weight: 700;
}

.catalog-item-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 2px;
}

.catalog-item-medium {
  font-size: 11.5px;
  color: var(--text-muted);
}

.catalog-item-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* ==========================================================================
   AR Photo Snapshot Modal with Museum Watermark
   ========================================================================== */
.snapshot-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(16px);
  padding: 20px;
}

.snapshot-modal.hidden {
  display: none;
}

.snapshot-dialog {
  background: var(--bg-panel-solid);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: modalScaleUp 0.35s var(--ease-spring);
}

.snapshot-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.snapshot-header h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 400;
  color: var(--gold-glow);
}

.modal-x {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-x:hover {
  background: var(--gold-tint);
  border-color: var(--gold-primary);
  color: var(--gold-glow);
}

.snapshot-canvas-preview {
  padding: 16px;
  display: flex;
  justify-content: center;
  background: #000000;
}

.snapshot-canvas-preview img {
  max-width: 100%;
  max-height: 50vh;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.snapshot-actions {
  padding: 16px 20px;
}

/* Utility Animations */
.hidden {
  display: none !important;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive Styles for Desktop (Full Page) & Large Displays */
@media (min-width: 768px) {
  .hud-top-bar {
    padding: 0 16px;
  }
  .exhibition-title {
    font-size: 34px;
  }
  .artwork-active-pill {
    top: 105px;
    left: 28px;
  }
  .hud-tools-sidebar {
    right: 28px;
  }
  .hud-bottom-bar {
    max-width: 940px;
    margin: 0 auto;
  }
  .drawer-panel {
    max-width: 680px;
    margin: 0 auto;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-left: 1px solid var(--border-gold);
    border-right: 1px solid var(--border-gold);
  }
}

/* Responsive Styles for Mobile (High Readability & Compact HUD) */
@media (max-width: 600px) {
  #hud-overlay {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }
  .hud-top-bar {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
  }
  .brand-group {
    gap: 2px;
  }
  .exhibition-title {
    font-size: 24px;
  }
  .exhibition-subtitle {
    font-size: 11px;
    color: var(--text-muted);
  }
  .hud-top-actions {
    gap: 6px;
  }
  .hud-pill-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 11.5px;
    gap: 6px;
  }
  .hud-pill-btn .hud-icon {
    width: 14px;
    height: 14px;
  }
  .artwork-active-pill {
    top: auto;
    left: 12px;
    right: auto;
    padding: 8px 12px;
    max-width: calc(100vw - 80px);
  }
  .pill-title {
    font-size: 15px;
  }
  .pill-number {
    font-size: 10px;
  }
  .pill-action-btn {
    padding: 4px 8px;
    font-size: 10.5px;
  }
  .hud-tools-sidebar {
    right: 12px;
    gap: 8px;
  }
  .tool-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .tool-btn svg {
    width: 16px;
    height: 16px;
  }
  .tool-label {
    font-size: 8.5px;
  }
  .gesture-hint {
    font-size: 11.5px;
    padding: 6px 14px;
    max-width: calc(100vw - 32px);
    text-align: center;
  }
  .btn-primary-action {
    height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }
  .shutter-button {
    width: 50px;
    height: 50px;
  }
  .shutter-inner {
    width: 36px;
    height: 36px;
  }
  .artwork-card {
    min-width: 112px;
    height: 62px;
    padding: 6px 10px;
  }
  .artwork-card-name {
    font-size: 12px;
  }

  /* Drawer readability on mobile */
  .drawer-panel {
    max-height: 88vh;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
  .drawer-header {
    padding: 16px 20px 12px;
  }
  .drawer-body {
    padding: 12px 20px 24px;
    gap: 18px;
  }
  .drawer-artwork-title {
    font-size: 24px;
  }
  .drawer-artist-name {
    font-size: 13.5px;
  }
  .statement-section h3, .interactive-tips h4 {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .statement-section p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
  }
  .interactive-tips li {
    font-size: 13.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
  }
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .spec-item {
    padding: 12px 14px;
  }
  .spec-label {
    font-size: 10.5px;
  }
  .spec-value {
    font-size: 13.5px;
  }
  .audio-guide-card {
    padding: 12px 14px;
  }
  .audio-label {
    font-size: 11px;
  }
  .audio-narrator {
    font-size: 12.5px;
  }
}
