/* OralRevolution - Modern Dark Sci-Fi & Glassmorphic Design System */

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

:root {
  --bg-primary: #07090e;
  --bg-surface: rgba(15, 23, 42, 0.75);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(0, 240, 255, 0.35);

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

  --accent-cyan: #00f0ff;
  --accent-gold: #ffd700;
  --accent-pink: #ff2a6d;
  --accent-green: #00ff88;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(0, 240, 255, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  background: radial-gradient(circle at 50% 45%, #131d33 0%, #0b111e 50%, #05080f 100%); background-color: #0b111e;
  color: var(--text-main);
  font-family: var(--font-main);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* UI Overlay Layer */
.ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.interactive {
  pointer-events: auto;
}

/* Top Header Container — Sleek, ultra-compact glass canopy giving 100% hero stage to Periodic Table */
.header-container {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.96) 0%, rgba(7, 9, 14, 0.75) 75%, rgba(7, 9, 14, 0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 6px;
}

/* Top Navigation Bar — Clean, balanced, accessory buttons kept subtle & secondary */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px 4px;
  background: transparent;
  gap: 10px;
  flex-wrap: nowrap;
  overflow: visible;
}

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

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(121, 40, 202, 0.18));
  border: 1px solid rgba(0, 240, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  padding: 3px;
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.atom-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.atom-orbit {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 2.2;
  opacity: 0.88;
}

.atom-nucleus {
  fill: #00f0ff;
  filter: drop-shadow(0 0 6px #00f0ff);
}

/* Stacked Action Cluster: Blinking Full-Screen + 3D Stereo Button directly below */
.fullscreen-stereo-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: stretch;
  flex-shrink: 0;
}

.btn-fullscreen-blinking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.22);
  border: 1.5px solid rgba(56, 189, 248, 0.75);
  color: #38bdf8;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  animation: pulseBlink 1.4s infinite ease-in-out;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-fullscreen-blinking.is-fullscreen {
  animation: none !important;
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.7);
  color: #34d399;
}

@keyframes pulseBlink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.75);
    border-color: rgba(56, 189, 248, 0.95);
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    box-shadow: 0 0 2px rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.35);
    transform: scale(0.97);
  }
}

.btn-stereo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
  font-family: var(--font-main);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-stereo:hover, .btn-stereo.active {
  background: rgba(139, 92, 246, 0.45);
  border-color: #a78bfa;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.55);
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.2px;
  background: linear-gradient(90deg, #ffffff, #38bdf8, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.25;
  padding-top: 2px;
}

.brand-text p.tagline {
  font-size: 9.5px;
  color: #64748b;
  letter-spacing: 0.5px;
  font-weight: 500;
  line-height: 1.1;
}

/* Pronounce Button & Accent Selector */
.pod-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pronounce-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-pronounce {
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(14, 165, 233, 0.45);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-main);
  transition: all 0.2s ease;
}

.btn-pronounce:hover {
  background: rgba(14, 165, 233, 0.35);
  border-color: #38bdf8;
  color: #ffffff;
  transform: scale(1.04);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.4);
}

.accent-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.accent-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.accent-btn:hover {
  color: #ffffff;
}

.accent-btn.active {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.gender-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  margin-left: 2px;
}

.gender-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.gender-btn:hover {
  color: #ffffff;
}

.gender-btn.active {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.45);
}

/* Controls Center — Compact, unified, hero-first */
.top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

/* Display Mode Toggle: 3D Objects vs Symbols */
.display-mode-selector {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.disp-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.disp-btn:hover {
  color: #ffffff;
}

.disp-btn.active {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #030712;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.search-box {
  position: relative;
  width: 155px;
  flex-shrink: 0;
  transition: width 0.25s ease;
}

.search-box:focus-within {
  width: 205px;
}

.search-box input {
  width: 100%;
  padding: 6px 12px 6px 32px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 12px;
  outline: none;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.search-box input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
  width: 230px;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 12px;
}

/* View Mode Switcher */
.view-modes {
  display: flex;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 2px;
  backdrop-filter: blur(12px);
}

.mode-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-main);
}

.mode-btn:hover {
  color: var(--text-main);
}

.mode-btn.active {
  background: #38bdf8;
  color: #07090e;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

/* 3D Stereo Button */
.btn-stereo {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.btn-stereo:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
}

.btn-stereo.active {
  background: linear-gradient(135deg, #0284c7, #818cf8);
  border-color: #bae6fd;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(129, 140, 248, 0.25));
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.btn-stereo.active {
  background: linear-gradient(135deg, #0284c7, #818cf8);
  border-color: #bae6fd;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.65);
}

/* Stereo Split Screen Floating Controls HUD */
.stereo-hud {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stereo-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(11, 17, 30, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 18px;
  border-radius: 999px;
  color: #ffffff;
}

.stereo-guide-dots {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.guide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.guide-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.stereo-mode-group {
  display: flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}

.stereo-sub-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.stereo-sub-btn:hover {
  color: #ffffff;
}

.stereo-sub-btn.active {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.stereo-slider-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
}

.stereo-slider-group input[type="range"] {
  width: 70px;
  height: 4px;
  accent-color: #38bdf8;
  cursor: pointer;
}

.btn-stereo-exit {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-stereo-exit:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

/* Split-screen crosshair overlay line (subtle vertical divider) */
body.stereo-active::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(56, 189, 248, 0.25);
  z-index: 99;
  pointer-events: none;
}

/* In Stereoscopic / AR Glasses mode, hide single flat panels that span across the middle */
body.stereo-active .bottom-bar,
body.stereo-active .helper-hint,
body.stereo-active .stage-object-tag,
body.stereo-active .header-container {
  display: none !important;
}

/* Dual HUDs in Stereo Mode: Left Eye at 25%, Right Eye at 75% */
body.stereo-active .stereo-hud-left {
  display: flex !important;
  left: 25% !important;
  transform: translateX(-50%) !important;
}

body.stereo-active .stereo-hud-right {
  display: flex !important;
  left: 75% !important;
  transform: translateX(-50%) !important;
}

/* Dual Floating Back to Table Navigation in Stereo Mode */
.stereo-back-btn-wrap {
  position: fixed;
  top: 18px;
  z-index: 250;
  pointer-events: auto;
}

body.stereo-active.element-focused #stereo-back-left {
  display: flex !important;
  left: 20px;
}

body.stereo-active.element-focused #stereo-back-right {
  display: flex !important;
  left: calc(50% + 20px);
}

.btn-stereo-back {
  background: rgba(15, 23, 42, 0.90);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  color: #38bdf8;
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(56, 189, 248, 0.25);
  transition: all 0.2s ease;
}

.btn-stereo-back:hover {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
}

/* Dual Inspector Pod Panels in Stereo Mode (Left Eye & Right Eye) */
body.stereo-active #pod-panel,
body.stereo-active #pod-panel-right {
  display: none !important;
}

body.stereo-active #pod-panel.open {
  display: flex !important;
  top: 14px !important;
  bottom: 84px !important;
  left: 14px !important;
  right: auto !important;
  width: 360px !important;
  max-width: 44vw !important;
  max-height: calc(100vh - 100px) !important;
  transform: none !important;
  z-index: 300;
  pointer-events: auto;
  animation: stereoSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.stereo-active #pod-panel-right.open {
  display: flex !important;
  top: 14px !important;
  bottom: 84px !important;
  left: calc(50% + 14px) !important;
  right: auto !important;
  width: 360px !important;
  max-width: 44vw !important;
  max-height: calc(100vh - 100px) !important;
  transform: none !important;
  z-index: 300;
  pointer-events: auto;
  animation: stereoSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-icon {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  font-size: 14px;
}

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

/* Category Filter Bar — Ultra-sleek single row */
.category-bar {
  display: flex;
  gap: 5px;
  padding: 2px 18px 5px 18px;
  overflow-x: auto;
  scrollbar-width: none;
  background: transparent;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  white-space: nowrap;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.cat-chip:hover {
  color: var(--text-main);
  border-color: currentColor;
}

.cat-chip.active {
  color: #fff;
  border-color: currentColor;
  box-shadow: 0 0 8px currentColor;
  background: rgba(255, 255, 255, 0.12);
}

/* Bottom Bar: Kelvin Thermodynamic Slider */
.bottom-bar {
  display: flex;
  flex-direction: column;
  padding: 0 24px 10px;
  background: transparent;
  pointer-events: none;
}

.kelvin-panel {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 16, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 7px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 16px rgba(0, 240, 255, 0.12);
  gap: 18px;
}

.kelvin-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.kelvin-badge {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.kelvin-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.slider-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kelvin-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #00f0ff 0%, #38d9a9 15%, #ffd43b 50%, #ff4d6d 100%);
  outline: none;
  cursor: pointer;
}

.kelvin-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px var(--accent-cyan);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.kelvin-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.kelvin-presets {
  display: flex;
  gap: 8px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 10px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.phase-counters {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.phase-tag {
  display: flex;
  align-items: center;
  gap: 4px;
}

.phase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.phase-dot.solid { background: #4dabf7; }
.phase-dot.liquid { background: #38d9a9; }
.phase-dot.gas { background: #ff6b6b; }

/* The Slide-Out Pod Holographic Detail Panel (Side Card with all functional buttons) */
.element-pod-panel {
  position: fixed;
  top: 18px;
  width: 460px;
  max-width: 90vw;
  max-height: calc(100vh - 36px);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-glass), 0 0 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1), left 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  pointer-events: auto;
}

/* Default / Right-docked (for elements in left half of periodic table) */
.element-pod-panel,
.element-pod-panel.dock-right {
  right: -520px;
  left: auto;
}

.element-pod-panel.open,
.element-pod-panel.dock-right.open {
  right: 24px;
  left: auto;
}

/* Left-docked (for elements in right half of periodic table) */
.element-pod-panel.dock-left {
  left: -520px;
  right: auto;
}

.element-pod-panel.dock-left.open {
  left: 24px;
  right: auto;
}

/* Back to Table button is now cleanly integrated in the top bar */

.pod-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-glass);
  position: relative;
}

.pod-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pod-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent-pink);
}

.pod-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pod-symbol-badge {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  font-family: var(--font-display);
}

.pod-symbol-num {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.pod-symbol-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.pod-name-col h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pod-category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-top: 4px;
}

.pod-discovery-row {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.35;
  font-family: var(--font-main);
}

/* Inside the Cube: 3D Object Switcher Tabs */
.pod-view-switcher {
  display: flex;
  margin: 16px 24px 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.pod-tab {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pod-tab.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

#tab-app.active {
  background: rgba(0, 240, 255, 0.18);
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: #e0faff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

#tab-atom.active {
  background: rgba(187, 85, 255, 0.2);
  border: 1px solid rgba(187, 85, 255, 0.5);
  color: #f5e8ff;
  box-shadow: 0 0 14px rgba(187, 85, 255, 0.25);
}

/* Pod Scrollable Content */
.pod-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pod-body::-webkit-scrollbar {
  width: 6px;
}

.pod-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Real-World Applications Showcase */
.app-card-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.app-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.app-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.app-card.active {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.app-card.active::after {
  content: '● 3D ARTIFACT';
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
}

.app-icon {
  font-size: 22px;
  line-height: 1;
  padding-top: 2px;
}

.app-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
  padding-right: 88px;
}

.card-object-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-family: var(--font-sans, "Outfit", sans-serif);
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  padding: 1px 7px;
  letter-spacing: 0.3px;
  margin-top: 1px;
  margin-bottom: 3px;
  width: fit-content;
}

.card-object-badge strong {
  color: #ffffff;
  margin-left: 3px;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* Quantum Electronic Shells & Orbitals Showcase */
.quantum-card-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quantum-shells-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
}

.q-shell-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.q-shell-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.shell-letter {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.shell-count {
  font-family: var(--font-main, sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.quantum-summary-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md, 10px);
  padding: 12px 14px;
}

.q-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.q-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.q-label {
  color: #94a3b8;
  font-weight: 600;
}

.q-val {
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  text-align: right;
}

.app-text p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Scientific Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.spec-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.spec-name {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

/* Did You Know? / Element Superpower Highlight Card */
.fun-fact-container {
  display: flex;
  flex-direction: column;
}

.fun-fact-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.fun-fact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #38bdf8, #818cf8);
}

.fun-fact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.fun-fact-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 1px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.fun-fact-flame {
  font-size: 11px;
  font-weight: 600;
  color: #f59e0b;
}

.fun-fact-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: #e2e8f0;
  font-family: var(--font-main);
}

/* Spectroscopy Container & Live Toast */
.spectroscopy-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spectroscopy-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 11px;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.spectroscopy-toast.active {
  background: rgba(14, 165, 233, 0.15);
  border-color: #38bdf8;
  color: #f0f9ff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.toast-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.spectroscopy-toast.active .toast-indicator {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1.0; }
}

/* Spectroscopy Bar with Realistic Continuous Prism Gradient */
.spectrum-bar {
  height: 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #4c1d95 0%, #1e40af 18%, #0284c7 35%, #059669 50%, #eab308 68%, #ea580c 82%, #dc2626 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 6px #000, 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.spectrum-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Individual Laser-Bright Spectral Emission Line */
.spectral-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: #ffffff;
  box-shadow: 0 0 4px #ffffff, 0 0 8px currentColor;
  transition: all 0.25s ease;
  z-index: 2;
}

.spectral-line.ignited {
  width: 3.5px;
  box-shadow: 0 0 6px #ffffff, 0 0 14px currentColor, 0 0 22px currentColor;
  animation: spectralPulse 0.4s infinite alternate;
}

@keyframes spectralPulse {
  0% { opacity: 0.85; transform: scaleY(0.92); }
  100% { opacity: 1.0; transform: scaleY(1.0); }
}

/* Spectral Wavelength Scale Labels */
.spectrum-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-dim);
  padding: 0 2px;
}

/* Optical Spectroscopy Ignite Button */
.ignite-btn {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(217, 70, 239, 0.25));
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ignite-btn:hover {
  background: linear-gradient(135deg, #ef4444, #d946ef);
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
  transform: scale(1.05);
}

.ignite-btn.active {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  border-color: #f59e0b;
  box-shadow: 0 0 24px #ef4444, 0 0 40px #f59e0b;
  animation: igniteThrob 0.6s infinite alternate;
}

@keyframes igniteThrob {
  0% { transform: scale(1.02); box-shadow: 0 0 15px #ef4444; }
  100% { transform: scale(1.08); box-shadow: 0 0 30px #f59e0b, 0 0 50px #ef4444; }
}

/* Prompt Hint overlay */
.helper-hint {
  display: none !important;
}

.helper-hint.hidden {
  opacity: 0;
}

/* ==========================================================================
   SUPPORT & DONATION BUTTON STYLES
   ========================================================================== */

.btn-pt-coffee {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-pt-coffee:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.btn-pt-fund {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fecdd3;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-pt-fund:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: #fb7185;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.35);
}

/* Floating Center-Stage Object Name Display (The only text allowed when object comes out of the box) */
.stage-object-tag {
  display: none !important;
  position: absolute;
  left: 32%;
  bottom: 86px;
  transform: translateX(-50%) translateY(16px);
  pointer-events: none;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 28px rgba(56, 189, 248, 0.35);
  padding: 8px 26px;
  border-radius: 999px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}


/* Dynamic placement of stage object tag matching left/right docking */
body.panel-dock-left .stage-object-tag {
  left: 68%;
}
body.panel-dock-right .stage-object-tag {
  left: 32%;
}

.stage-object-tag.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.stage-object-name {
  font-family: var(--font-sans, "Outfit", sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.8), 0 2px 6px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

/* Mobile Landscape Mode Enforcement Overlay (opens only in landscape mode) */
.landscape-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, #0f172a 0%, #030712 100%);
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media screen and (orientation: portrait) and (max-width: 900px) {
  .landscape-overlay {
    display: flex !important;
  }
}

.landscape-card {
  max-width: 360px;
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 24px;
  padding: 36px 26px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 36px rgba(56, 189, 248, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.rotate-phone-anim {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: phoneRotateAnim 2.8s ease-in-out infinite;
}

@keyframes phoneRotateAnim {
  0%, 15% { transform: rotate(0deg); }
  50%, 75% { transform: rotate(-90deg); }
  90%, 100% { transform: rotate(0deg); }
}

.phone-svg {
  stroke: #38bdf8;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-arrow {
  stroke: #f59e0b;
  stroke-width: 2.6;
}

.landscape-card h2 {
  font-family: var(--font-main);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.landscape-tagline {
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: #38bdf8;
  margin: 0;
}

.landscape-instruction {
  font-family: var(--font-main);
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

/* Element Focused Mode: Keep top controls accessible while clearing center banner space */
body.element-focused .header-container {
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

body.element-focused .brand {
  display: none !important;
}

body.element-focused .top-controls {
  pointer-events: auto !important;
  z-index: 120;
}

body.element-focused .category-bar {
  display: none !important;
}

body.element-focused .bottom-bar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.element-focused .helper-hint {
  display: none !important;
}

body.element-focused .stage-object-tag {
  display: none !important;
}

/* Floating Back Navigation Group with Buy Coffee / Fund Button Directly Below */
.back-nav-group {
  display: none;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  z-index: 150;
}

body.element-focused .back-nav-group {
  display: flex !important;
  pointer-events: auto !important;
  position: fixed;
  top: 18px;
  left: 24px;
}

/* If card is docked on the left, float the Back nav group to the top-right */
body.element-focused.panel-dock-left .back-nav-group {
  left: auto;
  right: 24px;
  align-items: flex-end;
}

.btn-back-to-table {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(56, 189, 248, 0.70);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.40);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  animation: backPulse 2.4s infinite ease-in-out;
}

.btn-focus-coffee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fef08a;
  font-family: var(--font-main);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 14px rgba(245, 158, 11, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-focus-coffee:hover {
  background: rgba(245, 158, 11, 0.35);
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  transform: scale(1.03);
}

@keyframes backPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(56, 189, 248, 0.30); border-color: rgba(56, 189, 248, 0.60); }
  50% { box-shadow: 0 0 24px rgba(56, 189, 248, 0.65); border-color: rgba(56, 189, 248, 0.95); }
}

.btn-back-to-table:hover,
.btn-back-to-table:active {
  background: rgba(56, 189, 248, 0.35);
  border-color: #38bdf8;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.75);
  transform: scale(1.04);
}

.back-icon {
  font-size: 16px;
  font-weight: 900;
  color: #38bdf8;
}

/* Enter Fullscreen CTA in Landscape Overlay */
.btn-enter-fullscreen {
  margin-top: 14px;
  padding: 10px 22px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #030712;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-enter-fullscreen:active {
  transform: scale(0.96);
}

/* Mobile Landscape Fine-Tuning: Ensures sleek, roomy layout on phones in landscape */
@media screen and (orientation: landscape) and (max-height: 620px),
       screen and (max-width: 960px) and (orientation: landscape) {
  .top-bar {
    padding: 4px 14px;
    gap: 8px;
  }
  .brand-logo svg {
    width: 26px;
    height: 26px;
  }
  .brand-text h1 {
    font-size: 13.5px;
  }
  .brand-text .tagline {
    display: none;
  }
  .category-bar {
    padding: 3px 10px;
    gap: 5px;
    overflow-x: auto;
  }
  .cat-chip {
    padding: 3px 8px;
    font-size: 9.5px;
  }
  .bottom-bar {
    bottom: 6px;
    padding: 5px 12px;
  }
  .kelvin-desc, .kelvin-presets {
    display: none;
  }
  .kelvin-badge {
    font-size: 14px;
    padding: 2px 8px;
  }
  .slider-container {
    max-width: 280px;
  }
  .element-pod-panel {
    top: 8px;
    bottom: 8px;
    width: 320px;
    max-width: 46vw;
    max-height: calc(100vh - 16px);
    z-index: 200;
    pointer-events: auto;
  }
  .element-pod-panel,
  .element-pod-panel.dock-right {
    right: -450px;
    left: auto;
  }
  .element-pod-panel.open,
  .element-pod-panel.dock-right.open {
    right: 12px;
    left: auto;
  }
  .element-pod-panel.dock-left {
    left: -450px;
    right: auto;
  }
  .element-pod-panel.dock-left.open {
    left: 12px;
    right: auto;
  }
  .pod-header {
    padding: 10px 14px 8px;
  }
  .pod-symbol-badge {
    width: 42px;
    height: 42px;
  }
  .pod-symbol-text {
    font-size: 20px;
  }
  .pod-symbol-num {
    font-size: 9px;
  }
  .pod-name-col h2 {
    font-size: 18px;
  }
  .pod-name-row {
    gap: 8px;
  }
  .pronounce-actions {
    margin-top: 4px;
    gap: 4px;
  }
  .btn-pronounce {
    padding: 2px 8px;
    font-size: 10px;
  }
  .accent-btn, .gender-btn {
    padding: 2px 5px;
    font-size: 9px;
  }
  .pod-discovery-row {
    font-size: 10.5px;
    margin-top: 4px;
    line-height: 1.3;
  }
  .pod-view-switcher {
    margin: 6px 12px 0;
  }
  .pod-tab {
    padding: 5px 8px;
    font-size: 10.5px;
  }
  .pod-body {
    padding: 8px 12px;
    gap: 8px;
  }
  .app-card {
    padding: 8px 10px;
    gap: 8px;
  }
  .app-card-title {
    font-size: 12px;
  }
  .app-card-obj-tag {
    font-size: 10px;
    padding: 2px 6px;
  }
  .stage-object-tag {
    bottom: 24px;
    left: 20%;
    padding: 4px 14px;
  }
  .stage-object-name {
    font-size: 0.95rem;
  }
}


