.torch-chart {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.torch-chart__container {
  border: 1px solid #1b1917;
  border-radius: 20px;
  background: #fbf7f5;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Header / Dropdown */
.torch-chart__header {
  width: 100%;
  border: 1px solid #1b1917;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fbf7f5;
  overflow: hidden;
  position: relative;
}

.torch-chart__title-wrapper {
  position: relative;
  height: 28px;
  width: 100%;
  overflow: hidden;
}

.torch-chart__title {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 500;
  color: #1b1917;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.torch-chart__title--enter {
  transform: translateY(15px);
  opacity: 0;
}

.torch-chart__title--active {
  transform: translateY(0);
  opacity: 1;
}

.torch-chart__title--exit {
  transform: translateY(-15px);
  opacity: 0;
}

.torch-chart__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 8px;
  position: relative;
  z-index: 10;
}

/* Chart Area */
.torch-chart__chart {
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
}

.torch-chart__bar-group {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 100%;
  width: 100%;
  justify-content: center;
}

@media (min-width: 640px) {
  .torch-chart__bar-group {
    gap: 8px;
  }
}

.torch-chart__bar {
  width: 100%;
  max-width: 24px;
  border-radius: 2px 2px 0 0;
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.torch-chart__bar--light {
  background: #e6e2df;
  border-top: 1px solid rgba(27, 25, 23, 0.1);
  border-left: 1px solid rgba(27, 25, 23, 0.1);
  border-right: 1px solid rgba(27, 25, 23, 0.1);
}

.torch-chart__bar--dark {
  background: #1b1917;
}

/* X Axis Indicators */
.torch-chart__axis {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
}

.torch-chart__axis-item {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 4px;
}

@media (min-width: 640px) {
  .torch-chart__axis-item {
    gap: 8px;
  }
}

.torch-chart__axis-line {
  width: 100%;
  max-width: 56px;
  height: 4px;
  background: rgba(27, 25, 23, 0.1);
  border-radius: 9999px;
}
