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

:root {
  --bg-light: #faf8f5;
  --bg-stage: linear-gradient(180deg, #f5f2ed 0%, #e8e4dd 100%);
  --text-dark: #1a1816;
  --text-muted: #6b6560;
  --accent-rust: #c25a3b;
  --accent-bronze: #8b6f47;
  --accent-gold: #d4a853;
  --shadow-float: 0 20px 60px rgba(26, 24, 22, 0.15), 0 8px 20px rgba(26, 24, 22, 0.1);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-light);
  min-height: 100vh;
  color: var(--text-dark);
  overflow-x: hidden;
}

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 1.25rem 1.5rem;
  background: var(--text-dark);
  color: #fff;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.header-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  margin-top: 0.15rem;
  display: block;
  font-weight: 500;
}

.unit-toggle {
  background: transparent;
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.4rem 0.9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 3px;
}

.unit-toggle:hover {
  background: var(--accent-gold);
  color: var(--text-dark);
}

.current-object-info {
  text-align: center;
  padding: 1.75rem 1.5rem 1rem;
}

.current-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.current-description {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.current-size {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-rust);
  letter-spacing: 0.03em;
}

.stage-container {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem 1.5rem 2rem;
  position: relative;
  min-height: 350px;
  background: var(--bg-stage);
}

.objects-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  max-width: calc(100vw - 120px);
  overflow: visible;
}

.objects-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  padding-bottom: 24px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.baseline {
  position: absolute;
  bottom: 0;
  left: -50px;
  right: -50px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-bronze) 15%, var(--accent-bronze) 85%, transparent 100%);
  opacity: 0.5;
}

.object-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.55;
}

.object-card.active {
  opacity: 1;
  transform: translateY(-8px);
}

.object-card:hover {
  opacity: 0.9;
}

.object-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.object-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 12px;
  background: radial-gradient(ellipse at center, rgba(26, 24, 22, 0.15) 0%, transparent 70%);
  filter: blur(4px);
}

.object-image {
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 8px 24px rgba(26, 24, 22, 0.12));
  mix-blend-mode: multiply;
}

.object-card.active .object-image {
  filter: drop-shadow(0 12px 32px rgba(26, 24, 22, 0.18)) drop-shadow(0 0 0 transparent);
}

.object-label {
  margin-top: 16px;
  text-align: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s ease;
}

.object-card.active .object-label,
.object-card:hover .object-label {
  opacity: 1;
  transform: translateY(0);
}

.object-name {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark);
}

.object-size {
  display: block;
  font-size: 0.6rem;
  color: var(--accent-rust);
  margin-top: 2px;
  font-weight: 500;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: var(--text-dark);
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(26, 24, 22, 0.2);
}

.nav-button:hover:not(:disabled) {
  background: var(--accent-rust);
  transform: translateY(-50%) scale(1.08);
}

.nav-button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.nav-left {
  left: 12px;
}

.nav-right {
  right: 12px;
}

.scale-indicator {
  padding: 1rem 1.5rem 0.5rem;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.scale-labels span {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #aaa;
}

.scale-track {
  height: 3px;
  background: #ddd;
  border-radius: 2px;
  overflow: hidden;
}

.scale-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-rust));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.minimap {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.minimap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.25s ease;
}

.minimap-dot.nearby {
  background: #aaa;
}

.minimap-dot.active {
  background: var(--accent-rust);
  transform: scale(1.6);
}

.minimap-dot:hover {
  background: var(--accent-gold);
}

.info-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 24, 22, 0.4);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.info-panel {
  background: #fff;
  color: var(--text-dark);
  padding: 2rem 2.5rem;
  border-radius: 20px 20px 0 0;
  max-width: 480px;
  width: 100%;
  animation: slideUp 0.3s ease;
  box-shadow: 0 -8px 40px rgba(26, 24, 22, 0.15);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.info-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.info-close:hover {
  color: var(--text-dark);
}

.info-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.info-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-bronze);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.info-size {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-rust);
  margin-bottom: 0.75rem;
}

.info-description {
  margin-bottom: 0.4rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.info-year {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.4rem;
}

.info-fact {
  color: var(--accent-bronze);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
  font-style: italic;
  line-height: 1.5;
}

.footer {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--accent-rust);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--accent-bronze);
}

@media (max-width: 768px) {
  .header-title h1 {
    font-size: 1.4rem;
  }
  
  .header-subtitle {
    font-size: 0.55rem;
  }
  
  .current-name {
    font-size: 1.75rem;
  }
  
  .current-description {
    font-size: 0.85rem;
  }
  
  .current-size {
    font-size: 1rem;
  }
  
  .nav-button {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
  
  .nav-left {
    left: 8px;
  }
  
  .nav-right {
    right: 8px;
  }
  
  .objects-stage {
    max-width: calc(100vw - 90px);
  }
  
  .objects-row {
    gap: 10px;
  }
  
  .scale-labels span {
    font-size: 0.45rem;
  }
  
  .info-panel {
    padding: 1.5rem;
  }
  
  .info-title {
    font-size: 1.4rem;
  }

  .stage-container {
    min-height: 280px;
    padding: 1rem 0.75rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1rem;
  }
  
  .header-content {
    flex-direction: column;
    gap: 0.6rem;
  }
  
  .current-object-info {
    padding: 1rem 0.75rem 0.5rem;
  }
  
  .stage-container {
    padding: 0.75rem 0.5rem 1.25rem;
    min-height: 240px;
  }
}