/* ========== CREATE CHARACTER PAGE ========== */

/* Stepper Bar */
.stepper-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  flex-shrink: 0;
}
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  color: var(--neutral-400);
  flex-shrink: 0;
  transition: all 0.3s;
  cursor: pointer;
}
.step-circle.active {
  background: var(--purple-400);
  border-color: var(--purple-400);
  color: #000;
}
.step-circle.completed {
  background: var(--purple-400);
  border-color: var(--purple-400);
  color: #000;
}
.step-dash {
  width: 24px;
  height: 0;
  border-top: 2px solid var(--neutral-700);
  flex-shrink: 0;
}

/* Step Content Area */
.step-content-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px 120px;
}
.step-panel { display: none; }
.step-panel.active { display: block; }

.section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
  margin-top: 24px;
}
.section-title:first-child { margin-top: 0; }

/* Style cards (Step 1) */
.style-cards {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.style-card {
  width: 204px;
  border-radius: 16px;
  padding: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
}
.style-card:hover { border-color: rgba(204,149,255,0.4); }
.style-card.selected {
  border-color: var(--purple-400);
  box-shadow: 0 0 28px rgba(204,149,255,0.7);
  border-radius: 20px;
}
.style-card-img {
  height: 300px;
  border-radius: 16px;
  background: var(--neutral-800);
  border: 1px solid rgba(255,255,255,0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.style-card-img::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(204,149,255,0.4) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 20%;
}
.style-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.style-card-label {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-500);
  padding: 10px 0 6px;
  transition: color 0.3s;
}
.style-card.selected .style-card-label { color: #fff; }

/* Age pills (Step 1) */
.age-pills {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}
.age-pill {
  width: 80px;
  padding: 4px;
  border-radius: 40px;
  border: 2px solid transparent;
  background: #000;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.age-pill:hover { border-color: rgba(204,149,255,0.4); }
.age-pill.selected {
  border-color: var(--purple-400);
  box-shadow: 0 0 28px rgba(204,149,255,0.7);
  background: #000;
}
.age-pill-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-500);
  line-height: 32px;
  transition: color 0.3s;
}
.age-pill.selected .age-pill-label { color: #fff; }

/* Scrollable row (Steps 2,3,4) */
.scroll-row-wrapper {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
}
.scroll-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
  scroll-behavior: smooth;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--neutral-700);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: opacity 0.3s;
}
.scroll-arrow:hover { background: rgba(30,30,30,0.9); }
.scroll-arrow.left { left: -18px; }
.scroll-arrow.right { right: -18px; }
.scroll-arrow.hidden { opacity: 0; pointer-events: none; }

/* Small image cards */
.img-card {
  min-width: 120px;
  width: 120px;
  border-radius: 12px;
  padding: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  flex-shrink: 0;
}
.img-card:hover { border-color: rgba(204,149,255,0.4); }
.img-card.selected {
  border-color: var(--purple-400);
  box-shadow: 0 0 28px rgba(204,149,255,0.7);
}
.img-card-img {
  height: 140px;
  border-radius: 10px;
  background: #1a1a1a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-card-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-500);
  padding: 6px 0 2px;
  transition: color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.img-card.selected .img-card-label { color: #fff; }

/* Eye color circles (Step 2) */
.eye-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 0;
}
.eye-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}
.eye-option:hover { transform: scale(1.05); }
.eye-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: all 0.3s;
}
.eye-option.selected .eye-circle {
  width: 96px;
  height: 96px;
  border-color: var(--purple-400);
  box-shadow: 0 0 28px rgba(204,149,255,0.7);
}
.eye-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-500);
  transition: color 0.3s;
}
.eye-option.selected .eye-label { color: #fff; }

/* Medium cards (Body, Butt, Breast) */
.med-cards {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.med-card {
  width: 180px;
  border-radius: 12px;
  padding: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
}
.med-card:hover { border-color: rgba(204,149,255,0.4); }
.med-card.selected {
  border-color: var(--purple-400);
  box-shadow: 0 0 28px rgba(204,149,255,0.7);
}
.med-card-img {
  height: 200px;
  border-radius: 10px;
  background: #1a1a1a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.med-card-img img { width: 100%; height: 100%; object-fit: cover; }
.med-card-label {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-500);
  padding: 8px 0 4px;
  transition: color 0.3s;
}
.med-card.selected .med-card-label { color: #fff; }

/* Grid cards (Personality, Occupation, Hobbies, Relationship) */
.grid-cards {
  display: grid;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
}
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-card {
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s;
}
.grid-card:hover { border-color: rgba(204,149,255,0.4); }
.grid-card.selected {
  border-color: var(--purple-400);
  background: rgba(204,149,255,0.05);
  box-shadow: 0 0 28px rgba(204,149,255,0.7);
}
.grid-card-emoji { font-size: 20px; margin-bottom: 4px; }
.grid-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.grid-card-desc {
  font-size: 12px;
  color: var(--neutral-500);
  line-height: 16px;
  margin-top: 2px;
}

/* ========== BOTTOM BAR ========== */
.cc-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(transparent, #000 30%);
  z-index: 10;
  gap: 16px;
}
.btn-cc-back {
  background: var(--neutral-700);
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-cc-back:hover { background: var(--neutral-600); }

.surprise-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--purple-800);
  border: 1px solid var(--purple-700);
  border-radius: 40px;
  padding: 6px 16px 6px 6px;
}
.btn-surprise {
  background: var(--purple-400);
  border: none;
  border-radius: 40px;
  padding: 8px 16px;
  color: var(--purple-900);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-surprise:hover { background: var(--purple-300); }
.surprise-credits {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-900);
}
.surprise-credits img { width: 14px; height: 14px; filter: brightness(0); }
.surprise-text {
  font-size: 12px;
  color: var(--purple-300);
  white-space: nowrap;
}

.btn-cc-next {
  background: #fff;
  border: none;
  border-radius: 10px;
  padding: 6px 6px 6px 20px;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 20px rgba(255,255,255,0.56);
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-cc-next:hover { background: #eee; }
.btn-cc-next-icon {
  background: var(--purple-400);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-cc-next-icon svg { width: 18px; height: 18px; }

/* ========== INFO BADGE ========== */
.cc-info-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-900);
  border: 1px solid var(--purple-800);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--purple-400);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.cc-info-badge svg { flex-shrink: 0; }
.cc-info-badge-close {
  background: none;
  border: none;
  color: var(--purple-400);
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  font-size: 16px;
  line-height: 1;
}

/* ========== STEP 8: SUMMARY ========== */
.summary-layout {
  display: flex;
  gap: 0;
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 16px;
  overflow: hidden;
  min-height: 560px;
}
.summary-left {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.summary-left-title {
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
}
.summary-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  position: relative;
  gap: 6px;
}
.summary-item:not(:nth-child(4n))::after {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--neutral-700);
}
.summary-visual-grid .summary-row-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--neutral-700);
}
.summary-thumb {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.3);
  background: var(--neutral-800);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.summary-thumb::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(204,149,255,0.4) 0%, transparent 70%);
  border-radius: 50%;
}
.summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.summary-thumb-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--neutral-700);
  position: relative;
  z-index: 1;
}
.summary-item-label {
  font-size: 12px;
  color: var(--neutral-400);
  text-align: center;
}
.summary-item-value {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.summary-edit-icon {
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.summary-edit-icon:hover { opacity: 1; }
.summary-text-separator {
  border: none;
  border-top: 1px dashed var(--neutral-700);
  margin: 16px 0;
}
.summary-text-rows {
  display: flex;
  gap: 0;
  flex: 1;
}
.summary-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.summary-text-col:first-child {
  border-right: 1px solid var(--neutral-700);
}
.summary-text-row {
  padding: 10px 16px;
  border-bottom: 1px solid var(--neutral-700);
}
.summary-text-row:last-child { border-bottom: none; }
.summary-text-label {
  font-size: 12px;
  color: var(--neutral-400);
  margin-bottom: 2px;
}
.summary-text-value {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Summary Right Panel */
.summary-right {
  width: 451px;
  min-width: 451px;
  background: radial-gradient(ellipse at center, rgba(67,35,98,1) 0%, rgba(51,26,73,1) 25%, rgba(34,18,49,1) 50%, rgba(17,9,24,1) 75%, rgba(8,4,12,1) 87.5%, rgba(0,0,0,1) 100%);
  border-left: 1px solid var(--neutral-700);
  border-radius: 0 12px 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  gap: 20px;
}
.summary-right-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--purple-400);
  text-align: center;
  max-width: 325px;
}
.summary-right-subtitle {
  font-size: 12px;
  color: var(--purple-400);
  text-align: center;
}
.summary-preview-card {
  width: 140px;
  height: 204px;
  border-radius: 16px;
  border: 1px solid rgba(204,149,255,0.3);
  background: linear-gradient(to bottom, #432362, #1F102D);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.summary-preview-card img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.summary-name-label {
  font-size: 12px;
  color: var(--purple-400);
}
.summary-name-input {
  background: var(--purple-900);
  border: 1px solid var(--purple-400);
  border-radius: 32px;
  padding: 13px 24px;
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-family: 'Heebo', sans-serif;
  width: 100%;
  outline: none;
}
.summary-name-input:focus {
  border-color: var(--purple-300);
  box-shadow: 0 0 10px rgba(204,149,255,0.3);
}
.summary-name-input.error {
  border-color: #ff4444;
}
.summary-name-note {
  font-size: 12px;
  color: var(--purple-400);
  text-align: center;
}
.summary-create-btn {
  background: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 20px rgba(255,255,255,0.56);
  transition: background 0.2s;
}
.summary-create-btn:hover { background: #eee; }
.summary-create-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.summary-create-credits {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--purple-400);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #000;
}
.summary-create-credits img {
  width: 14px;
  height: 14px;
  filter: brightness(0);
}

/* ========== GENERATING STATE ========== */
@keyframes cc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.generating-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px;
  height: 100%;
}
.generating-ring-wrapper {
  position: relative;
  width: 266px;
  height: 266px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.generating-ring {
  position: absolute;
  width: 266px;
  height: 266px;
  animation: cc-spin 3s linear infinite;
}
.generating-logo {
  position: relative;
  z-index: 1;
  width: 200px;
  height: 200px;
}
.generating-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-400);
  text-align: center;
}
.generating-subtext {
  font-size: 12px;
  color: var(--purple-400);
  text-align: center;
}

/* ========== RESULT SCREEN ========== */
.result-screen {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 24px 16px;
}
.result-screen.active {
  display: flex;
  gap: 24px;
}
.result-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
}
.result-left::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(101,51,149,0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.result-char-name {
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 1;
}
.result-photo-card {
  width: 291px;
  height: 427px;
  border-radius: 32px;
  border: 2px solid rgba(255,255,255,0.3);
  overflow: hidden;
  background: var(--neutral-800);
  position: relative;
  z-index: 1;
}
.result-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.result-start-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 291px;
  text-align: center;
  box-shadow: 0 2px 20px rgba(255,255,255,0.56);
  position: relative;
  z-index: 1;
  transition: background 0.2s;
  text-decoration: none;
  display: block;
}
.result-start-btn:hover { background: #eee; color: #000; }
.result-actions {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.result-action-btn {
  background: var(--neutral-700);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.result-action-btn:hover { background: var(--neutral-600); color: #fff; }

/* Result Right Panel */
.result-right {
  width: 348px;
  min-width: 348px;
  background: var(--purple-900);
  border: 1px solid var(--purple-800);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: flex-start;
}
.result-about-title {
  font-size: 24px;
  font-weight: 500;
  color: #ECD7FF;
}
.result-about-desc {
  font-size: 12px;
  color: var(--purple-400);
  line-height: 1.5;
}
.result-divider {
  border: none;
  border-top: 1px dashed var(--purple-800);
}
.result-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.result-stat-label {
  font-size: 12px;
  color: var(--purple-400);
}
.result-stat-value {
  font-size: 12px;
  font-weight: 600;
  color: #ECD7FF;
}
.result-trait-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.result-trait-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--purple-400);
}
.result-trait-header svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.result-trait-values {
  font-size: 12px;
  color: #ECD7FF;
  padding-left: 22px;
}

/* ========== CC WRAPPER ========== */
.cc-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}
/* The cc-wrapper needs to fill the content-area with absolute positioning
   to handle the fixed bottom bar within its own scroll context */

/* ========== ERROR TOAST ========== */
.cc-toast {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  animation: cc-toast-in 0.3s ease;
  max-width: 360px;
}
.cc-toast.error {
  background: rgba(255,68,68,0.15);
  border: 1px solid rgba(255,68,68,0.3);
  color: #ff6666;
}
.cc-toast.success {
  background: rgba(68,255,68,0.15);
  border: 1px solid rgba(68,255,68,0.3);
  color: #66ff66;
}
@keyframes cc-toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(4, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .style-card { width: 170px; }
  .style-card-img { height: 200px; }
  .surprise-text { display: none; }
  .summary-layout { flex-direction: column; }
  .summary-right { width: 100%; min-width: unset; border-left: none; border-top: 1px solid var(--neutral-700); border-radius: 0 0 12px 12px; }
  .result-screen.active { flex-direction: column; }
  .result-right { width: 100%; min-width: unset; }
}

@media (max-width: 768px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  /* Step 1 Style: horizontal snap carousel with peeks of neighbours. The
     selected/default card is centered by JS on mount; scroll-snap handles
     the rest. Using 72% card width leaves ~14% peek on each side. */
  .style-cards {
    flex-wrap: nowrap;
    justify-content: flex-start; /* center-justify breaks leftward scroll of overflow */
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 14%;
    padding: 4px 14% 12px;
    margin: 0 -16px; /* bleed past parent's 16px horizontal padding */
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .style-cards::-webkit-scrollbar { display: none; }
  .style-card {
    width: auto;
    flex: 0 0 72%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  .style-card-img { height: 240px; }
  /* Butt / Breast sizes: single-row horizontal scroll like Body Type */
  .med-cards {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 16px 12px;
    margin: 0 -16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .med-cards::-webkit-scrollbar { display: none; }
  .med-card {
    width: 160px;
    flex: 0 0 160px;
  }
  .cc-bottom-bar { flex-wrap: wrap; gap: 10px; }
  .surprise-wrapper { order: 3; flex: 1 1 100%; justify-content: center; }
  .stepper-bar { gap: 4px; padding: 12px 8px; }
  .step-dash { width: 12px; }
  .cc-info-badge { display: none; }
  .summary-visual-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-item:not(:nth-child(4n))::after { display: none; }
  .summary-item:nth-child(odd)::after { content: ''; position: absolute; right: 0; top: 8px; bottom: 8px; width: 1px; background: var(--neutral-700); display: block; }
  .summary-text-rows { flex-direction: column; }
  .summary-text-col:first-child { border-right: none; border-bottom: 1px solid var(--neutral-700); }
}

@media (max-width: 480px) {
  /* Personality / Occupation / Hobbies / Relationship: keep 2 per row */
  .grid-5, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  /* Keep the carousel on very narrow screens — widen each card slightly and
     reduce the peek so the center card still feels like the focal point
     without cramming. */
  .style-cards { scroll-padding-inline: 10%; padding-inline: 10%; }
  .style-card { flex: 0 0 80%; }
  .style-card-img { height: 300px; }
  /* Butt / Breast sizes stay as a single-row horizontal scroll */
  .med-card { width: 150px; flex: 0 0 150px; }
  .step-circle { width: 28px; height: 28px; font-size: 12px; }
  .step-dash { width: 8px; }
}
