.shapes-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 0;
}

.shapes-canvas-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  min-height: 280px;
  margin-bottom: 24px;
}

/* Dimensions set by JS to keep canvas square (circle stays circular); avoid stretching */
#shapesCanvas {
  max-width: min(100%, 320px);
  max-height: 320px;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.shapes-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 12px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dark-mode .shapes-name {
  color: #f3f4f6;
}

.shapes-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.shapes-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.shapes-arrow:hover {
  background: #f3f4f6;
  border-color: #3b82f6;
  color: #3b82f6;
}

.dark-mode .shapes-arrow {
  background: #111827;
  border-color: #374151;
  color: #e5e7eb;
}

.dark-mode .shapes-arrow:hover {
  background: #374151;
  border-color: #60a5fa;
  color: #60a5fa;
}

.shapes-sides-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.shapes-sides-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: #6b7280;
}

.dark-mode .shapes-sides-label {
  color: #9ca3af;
}

.shapes-sides-value {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dark-mode .shapes-sides-value {
  color: #f3f4f6;
}
