.chemistry-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 16px 60px;
}

.section-title {
  margin: 0;
  font-size: 1.4rem;
  text-align: center;
}

.section-subtitle,
.lab-hint {
  margin: 0;
  color: #cfd8ff;
  font-size: 1rem;
  text-align: center;
}

.lobby,
.lab {
  width: min(96vw, 680px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lab[hidden],
.lab-stage[hidden],
.why-text[hidden] {
  display: none !important;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 160px));
  gap: 14px;
  justify-content: center;
  width: 100%;
}

.station-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #e8ecff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

button.station-card:hover {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.12);
}

.station-icon {
  font-size: 1.8rem;
}

.lab-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lab-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lab-canvas {
  width: min(96vw, 640px);
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #5a9e7a;
  touch-action: none;
}

.lab-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.control-label {
  color: #cfd8ff;
  font-size: 0.9rem;
  min-width: 3.5rem;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip-btn {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #e8ecff;
  font-size: 0.85rem;
  cursor: pointer;
}

.chip-btn.active {
  background: linear-gradient(90deg, #7dffb3, #4d7cff);
  color: #1b1035;
  border-color: transparent;
  font-weight: bold;
}

.action-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #7dffb3, #4d7cff);
  color: #1b1035;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.action-btn:hover {
  transform: scale(1.04);
}

.lab-slider {
  width: min(55vw, 220px);
  accent-color: #7dffb3;
}

.slider-value {
  min-width: 2.5rem;
  color: #7dffb3;
  font-weight: bold;
}

.why-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 2.5rem;
}

.why-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #cfd8ff;
  cursor: pointer;
}

.why-text {
  margin: 0;
  max-width: 28rem;
  text-align: center;
  color: #7dffb3;
  font-size: 0.95rem;
  line-height: 1.4;
}

.lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.secondary-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #cfd8ff;
  font-size: 0.9rem;
  cursor: pointer;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.station-card--element {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.1);
}

.element-panel {
  width: min(96vw, 640px);
  min-height: 280px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.15);
}

.element-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
}

.element-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #e8ecff;
  cursor: pointer;
  font-size: 0.85rem;
}

.element-card.active {
  border-color: #a78bfa;
  background: rgba(167, 139, 250, 0.25);
}

.element-card-symbol {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffd166;
}

.element-detail {
  margin-top: 20px;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.element-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 4px;
}

.element-symbol {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffd166;
}

.element-card-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.element-name {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
  color: #e8ecff;
}

.element-fact {
  margin: 10px 0 0;
  color: #cfd8ff;
  font-size: 0.95rem;
  line-height: 1.4;
}

.element-block-btn {
  min-width: 52px;
  font-size: 1.1rem;
  font-weight: bold;
}

.lobby-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.lobby-group-title {
  margin: 0;
  font-size: 1rem;
  color: #7dffb3;
  font-weight: bold;
}

.element-grid--map {
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
}
