*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  padding: 24px 20px;
}

body.demo-grad {
  background: linear-gradient(135deg, #818cf8, #9333ea);
}

body.demo-scroll {
  display: block;
  align-items: stretch;
  justify-content: flex-start;
  height: 100%;
  overflow-y: auto;
  padding: 0;
}

body.demo-scroll .demo-spacer {
  height: 70vh;
}

body.demo-scroll .demo-stage {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.demo-stage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.demo-stage--stack {
  flex-direction: column;
  align-items: flex-start;
}

.demo-stage--fill {
  padding: 0;
  height: 100%;
  min-height: 160px;
}

.demo-card {
  display: inline-block;
  padding: 18px 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  color: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.demo-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
}

.demo-circle {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
}

.demo-panel {
  width: min(100%, 280px);
  height: 120px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.25);
}

.demo-fill {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #334155, #1e40af);
  display: block;
}

.demo-underline {
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.demo-stage--repeat {
  flex-direction: column;
  gap: 16px;
}

.demo-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #6b7280;
}
