/* ==========================================================================
   CAFFEIN NICE CLUB - 9가지 성격 맞춤 스페셜티 원두 큐레이션
   MOBILE-FIRST & FULL RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-dark: #0d0907;
  --bg-card: rgba(26, 18, 13, 0.88);
  --bg-card-hover: rgba(38, 26, 18, 0.95);
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-copper: rgba(224, 122, 95, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --accent-gold: #d4af37;
  --accent-gold-light: #f3e5ab;
  --accent-copper: #e07a5f;
  --accent-cream: #f4f1de;
  --accent-sage: #81b29a;

  --text-main: #f7f3ed;
  --text-muted: #a69888;
  --text-dim: #736454;

  --font-serif: 'Playfair Display', 'Cinzel', serif;
  --font-sans: 'Outfit', 'Noto Sans KR', sans-serif;

  --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.25);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.6);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(224, 122, 95, 0.06) 0%, transparent 45%);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 9, 7, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  font-size: 1.5rem;
  color: var(--accent-gold);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.en-title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
}

.ko-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.35;
  transition: var(--transition);
}

.step-item.active {
  opacity: 1;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--accent-gold);
  padding: 2px 7px;
  border-radius: 20px;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 500;
}

.step-line {
  width: 14px;
  height: 1px;
  background: var(--text-dim);
}

/* App Container */
.app-container {
  max-width: 1280px;
  width: 100%;
  margin: 1.5rem auto;
  padding: 0 1rem;
  flex: 1;
}

/* Section Switching */
.app-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.app-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Banner */
.hero-banner {
  text-align: center;
  margin-bottom: 2rem;
}

.subtitle-tag {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.main-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.3;
  word-break: keep-all;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0.5rem;
  line-height: 1.6;
  word-break: keep-all;
  word-wrap: break-word;
}


/* Card Panel Base */
.card-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.card-panel:hover {
  border-color: var(--border-gold);
}

/* Quiz Component */
.quiz-container {
  max-width: 720px;
  margin: 0 auto;
}

.quiz-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.progress-bar-wrap {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-copper), var(--accent-gold));
  transition: width 0.3s ease;
}

.quiz-counter {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 700;
  white-space: nowrap;
}

.question-title {
  font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-main);
  line-height: 1.45;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Quiz Section Badge */
.quiz-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-copper);
  background: rgba(224, 122, 95, 0.12);
  border: 1px solid rgba(224, 122, 95, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

/* 3-Option ABC Cards - Vertical Stack */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.quiz-option-card {
  display: flex;
  align-items: center;
  padding: 1rem 1.2rem;
  min-height: 56px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  gap: 0.9rem;
}

.quiz-option-card:active, .quiz-option-card:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--accent-gold);
  transform: translateX(4px);
}

.quiz-option-card.selected {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  transform: translateX(4px);
}

/* ABC Label Badge */
.option-label-badge {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.quiz-option-card.selected .option-label-badge {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #120b07;
}

.option-radio {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  margin-right: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.quiz-option-card.selected .option-radio {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
}

.quiz-option-card.selected .option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--bg-dark);
  border-radius: 50%;
}

.option-text {
  font-size: 0.95rem;
  color: var(--text-main);
  flex: 1;
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  min-height: 48px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  touch-action: manipulation;
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #b89428);
  color: #120b07;
  border: none;
}

.btn-primary:hover:not(:disabled), .btn-primary:active:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover:not(:disabled), .btn-secondary:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
}

.btn-large {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

.glow-effect {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

/* Tester Recruitment Button */
a.btn-tester,
button.btn-tester,
.btn-tester {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #c05030, #8b3a20);
  color: #ffffff !important;
  text-decoration: none !important;
  border: 1px solid rgba(224, 122, 95, 0.5);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.8rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(192, 80, 48, 0.35);
  transition: var(--transition);
  cursor: pointer;
}

a.btn-tester:visited,
a.btn-tester:link,
a.btn-tester:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

a.btn-tester:hover,
button.btn-tester:hover,
.btn-tester:hover {
  background: linear-gradient(135deg, #d8603c, #a04226);
  box-shadow: 0 0 25px rgba(224, 122, 95, 0.6);
  transform: translateY(-2px);
  color: #ffffff !important;
  text-decoration: none !important;
}


/* Grids */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.grid-studio {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.5rem;
}

/* Enneagram Chart Styling */
.flex-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.enneagram-chart-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 300px;
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.enneagram-svg {
  width: 100%;
  height: 100%;
}

.persona-badge-wrap {
  margin-top: 0.8rem;
  text-align: center;
}

.persona-badge {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  display: inline-block;
}

/* Blend Ratio List */
.blend-ratio-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.2rem 0;
}

.blend-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.blend-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.bean-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-gold);
}

.bean-ratio {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent-cream);
}

.bean-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.ratio-progress-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.ratio-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-copper), var(--accent-gold));
  border-radius: 3px;
}

/* Sensory Bars */
.sensory-metrics-wrap h4 {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.sensory-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.sensory-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.sensory-bar-track {
  width: 10px;
  height: 80px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.sensory-bar-fill {
  width: 100%;
  background: linear-gradient(0deg, var(--accent-copper), var(--accent-gold));
  border-radius: 5px;
  transition: height 0.6s ease;
}

.sensory-name {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sensory-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
}

/* Action Bar */
.section-action-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  min-height: 48px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Theme Selector */
.theme-selector, .product-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.theme-btn, .type-btn {
  padding: 0.6rem 0.4rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.theme-btn.active, .type-btn.active {
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
  transform: scale(1.02);
}

.type-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.type-btn.active {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.15);
}

/* Studio Package Mockup Preview */
.package-mockup-wrapper {
  width: 100%;
  max-width: 300px;
  min-height: 420px;
  background: #1e130c;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  border: 2px solid var(--border-gold);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0 auto;
  transition: var(--transition);
}

.package-mockup-wrapper.theme-espresso {
  background: linear-gradient(145deg, #1f130a, #0b0704);
  border-color: var(--accent-gold);
}

.package-mockup-wrapper.theme-cream {
  background: linear-gradient(145deg, #f7f3ed, #e6ded3);
  border-color: #8c6d46;
}
.package-mockup-wrapper.theme-cream .label-sticker {
  background: #1e130c !important;
  color: #f7f3ed !important;
}

.package-mockup-wrapper.theme-terracotta {
  background: linear-gradient(145deg, #4a2511, #241006);
  border-color: #e07a5f;
}

.package-mockup-wrapper.theme-sage {
  background: linear-gradient(145deg, #1c2e26, #0c1712);
  border-color: #81b29a;
}

/* Label Sticker */
.label-sticker {
  width: 100%;
  max-width: 240px;
  background: rgba(15, 10, 7, 0.95);
  border: 1px solid var(--accent-gold);
  border-radius: 10px;
  padding: 1rem 0.8rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.label-brand-tag {
  font-family: var(--font-serif);
  font-size: 0.52rem;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  display: block;
}

.label-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0.2rem 0 0.1rem 0;
  color: var(--accent-gold-light);
  word-break: break-word;
}

.label-motto {
  font-size: 0.68rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  word-break: break-word;
}

.label-chart-box {
  width: 130px;
  height: 130px;
  margin: 0 auto;
}

.label-persona {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
  padding: 3px 6px;
  border-radius: 12px;
  margin: 0.5rem 0;
}

.label-ratio-box {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  font-size: 0.62rem;
  margin-bottom: 0.6rem;
}

.ratio-chip {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--text-main);
}

.label-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 0.5rem;
  font-size: 0.58rem;
  color: var(--text-dim);
}

.qr-mockup {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.roast-info {
  display: flex;
  flex-direction: column;
  text-align: right;
}

/* Recipe & Export Section */
.brewing-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.spec-icon {
  font-size: 1.3rem;
  color: var(--accent-gold);
}

.spec-info {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.spec-val {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-gold-light);
}

.brewing-steps-wrap {
  margin-top: 1.2rem;
}

.brewing-steps-list {
  margin-top: 0.6rem;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.brewing-steps-list strong {
  color: var(--accent-gold);
}

.export-preview-box {
  margin: 1.2rem 0;
  padding: 0.8rem;
  background: #000;
  display: flex;
  justify-content: center;
  width: 100%;
}

#label-export-canvas {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.download-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.print-spec-info {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: auto;
}

/* ==========================================================================
   MOBILE RESPONSIVE MEDIA QUERIES (< 768px & < 480px)
   ========================================================================== */

@media (max-width: 768px) {
  .header-inner {
    padding: 0.6rem 0.8rem;
  }

  .step-label {
    display: none; /* Icon / Num only on mobile header */
  }

  .step-indicator {
    gap: 0.3rem;
  }

  .step-line {
    width: 8px;
  }

  .grid-2col, .grid-studio {
    grid-template-columns: 1fr;
  }

  .section-action-bar {
    flex-direction: column;
    width: 100%;
  }

  .section-action-bar .btn {
    width: 100%;
  }

  .brewing-specs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-panel {
    padding: 1.2rem 1rem;
  }
}

@media (max-width: 480px) {
  .brand-logo .logo-icon {
    font-size: 1.3rem;
  }

  .en-title {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .ko-title {
    font-size: 0.65rem;
  }

  .brewing-specs-grid {
    grid-template-columns: 1fr;
  }


  .theme-selector, .product-type-selector {
    grid-template-columns: 1fr 1fr;
  }

  .sensory-bars {
    gap: 0.2rem;
  }

  .sensory-name {
    font-size: 0.62rem;
  }
}

/* ==========================================================================
   CAFFEIN NICE CLUB — NEW COMPONENTS
   ========================================================================== */

/* ----------------------------------------------------------
   STEP 1: Simple Quiz (ABC × 123 format)
   ---------------------------------------------------------- */
.simple-quiz-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.8rem 1.6rem;
}

.sqz-section {
  margin-bottom: 1.2rem;
}

.sqz-instruction-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  text-align: center;
}

.sqz-guide-line {
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 500;
}


.mark-first {
  color: #d4af37;
  font-weight: 700;
  font-size: 1.05em;
}

.mark-second {
  color: var(--accent-copper);
  font-weight: 700;
  font-size: 1.05em;
}

.mark-first-inline {
  color: #d4af37;
  font-weight: 700;
}

.mark-second-inline {
  color: var(--accent-copper);
  font-weight: 700;
}

.sqz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.sqz-card {
  position: relative;
  background: rgba(26, 18, 13, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.4rem 0.8rem 1.2rem;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  -webkit-user-select: none;
  user-select: none;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.sqz-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(38, 26, 18, 0.9);
  transform: translateY(-2px);
}

.sqz-card-label {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s;
}

.sqz-card-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  transition: color 0.2s;
  word-keep-all: keep-all;
  word-break: keep-all;
}

/* Selection badge overlay */
.sqz-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
}


/* First selection (○) */
.sqz-card.first-pick {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.2);
}

.sqz-card.first-pick .sqz-card-label {
  color: #d4af37;
}

.sqz-card.first-pick .sqz-card-text {
  color: var(--accent-cream);
}

.sqz-card.first-pick .sqz-badge {
  background: #d4af37;
  color: #1a0e08;
  opacity: 1;
  transform: scale(1);
}

/* Second selection (△) */
.sqz-card.second-pick {
  border-color: var(--accent-copper);
  background: rgba(224, 122, 95, 0.1);
}

.sqz-card.second-pick .sqz-card-label {
  color: var(--accent-copper);
}

.sqz-card.second-pick .sqz-card-text {
  color: var(--accent-cream);
}

.sqz-card.second-pick .sqz-badge {
  background: var(--accent-copper);
  color: #fff;
  opacity: 1;
  transform: scale(1);
}

/* Divider between ABC and 123 */
.sqz-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.4rem 0;
}

.sqz-divider span {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.sqz-divider i {
  color: var(--text-dim);
  font-size: 1rem;
}

/* Status row */
.sqz-footer {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.sqz-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  justify-content: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.3s;
}

.status-dot.partial { background: var(--accent-copper); }
.status-dot.complete { background: #d4af37; }

.status-sep { color: rgba(255,255,255,0.15); }

/* ----------------------------------------------------------
   STEP 2: COFFEE CHOICE Result Card
   ---------------------------------------------------------- */
.cc-card-wrapper {
  display: flex;
  justify-content: center;
  padding: 0 1rem 1.5rem;
}

.cc-card {
  background: #faf4eb;
  border: 1.5px solid #d4b896;
  border-radius: 20px;
  padding: 2rem 1.8rem 1.6rem;
  width: 100%;
  max-width: 400px;
  box-shadow:
    0 4px 24px rgba(61, 32, 16, 0.13),
    0 1px 4px rgba(61, 32, 16, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
}

/* Subtle background texture dots */
.cc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(180, 120, 60, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  border-radius: 20px;
}

.cc-bean-wrap {
  margin-bottom: 0.3rem;
}

.cc-bean-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.5s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.cc-bean-svg {
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.95);
}

.cc-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cc-code-badge {
  background: #2d1a0e;
  color: #f4e8d0;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.cc-keyword-badge {
  background: rgba(212, 175, 55, 0.15);
  color: #8b5a14;
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.cc-name-ko {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #2d1a0e;
  text-align: center;
  line-height: 1.3;
  margin: 0.1rem 0 0;
}

.cc-name-en {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: #8b5a38;
  letter-spacing: 0.04em;
  text-align: center;
}

.cc-roast-wrap {
  margin: 0.15rem 0;
}

.cc-roast-badge {
  display: inline-block;
  background: rgba(180, 110, 50, 0.1);
  color: #7a4010;
  border: 1px solid rgba(180, 110, 50, 0.25);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.75rem;
  border-radius: 6px;
}

.cc-divider {
  width: 100%;
  height: 1px;
  background: rgba(180, 110, 50, 0.2);
  margin: 0.2rem 0;
}

.cc-tasting-notes {
  font-size: 0.8rem;
  color: #5a3820;
  text-align: center;
  line-height: 1.55;
  width: 100%;
}

/* Sensory horizontal bars */
.cc-sensory-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.3rem 0;
}

.cc-sensory-row {
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  align-items: center;
  gap: 0.5rem;
}

.cc-sensory-label {
  font-size: 0.72rem;
  color: #7a5030;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.cc-sensory-track {
  height: 7px;
  background: rgba(180, 110, 50, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.cc-sensory-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c87a30, #e0a060);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cc-sensory-score {
  font-size: 0.7rem;
  color: #a06030;
  font-weight: 600;
  text-align: left;
}

/* Enneagram type footer in card */
.cc-type-footer {
  width: 100%;
  text-align: center;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(180, 110, 50, 0.2);
  margin-top: 0.2rem;
}

.cc-type-label {
  font-size: 0.72rem;
  color: #8b5a38;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ----------------------------------------------------------
   Step 2: Result headline / persona
   ---------------------------------------------------------- */
.result-persona-desc {
  text-align: center;
  color: var(--accent-gold-light);
  font-size: 0.92rem;
  font-style: italic;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* ----------------------------------------------------------
   Step 2: Accordion (9각 별자리 & 블렌드 비율)
   ---------------------------------------------------------- */
.accordion-wrap {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26, 18, 13, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.accordion-toggle:hover {
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--text-main);
  background: rgba(38, 26, 18, 0.9);
}

.accordion-toggle i.fa-star {
  color: var(--accent-gold);
  margin-right: 0.4rem;
}

.accordion-chevron {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
}

.accordion-toggle[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body.open {
  max-height: 900px;
}

.accordion-inner {
  padding-top: 1rem;
}

/* ----------------------------------------------------------
   Step 1 Quiz — mobile responsive
   ---------------------------------------------------------- */
@media (max-width: 640px) {
  .simple-quiz-wrap {
    padding: 1.2rem 0.8rem;
  }

  .sqz-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .sqz-card {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0.95rem 1.1rem;
    min-height: auto;
    text-align: left;
    gap: 0.9rem;
    border-radius: var(--radius-md);
  }

  .sqz-card-label {
    font-size: 1.3rem;
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
  }

  .sqz-card-text {
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: left;
    flex: 1;
    word-break: keep-all;
    word-wrap: break-word;
  }

  .sqz-badge {
    position: relative;
    top: auto;
    right: auto;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    margin-left: 0.4rem;
  }

  .cc-card {
    padding: 1.6rem 1.2rem 1.4rem;
    border-radius: 16px;
  }

  .cc-name-ko {
    font-size: 1rem;
  }

  .cc-sensory-row {
    grid-template-columns: 44px 1fr 20px;
    gap: 0.35rem;
  }
}


