/* ===================================
   불면증 진단 웹서비스 - Night Sky Theme
   =================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

:root {
  /* Night Sky Palette */
  --bg-deep: #0a0e27;
  --bg-mid: #141a3d;
  --bg-card: rgba(25, 32, 72, 0.85);
  --bg-card-hover: rgba(35, 45, 95, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-hover: rgba(255, 255, 255, 0.1);

  /* Accent Colors */
  --accent-moon: #f5e6a3;
  --accent-star: #c9b8ff;
  --accent-aurora-1: #7b68ee;
  --accent-aurora-2: #6ec6ff;
  --accent-aurora-3: #64dfdf;
  --accent-warm: #ffa47e;
  --accent-pink: #ff8fa3;
  --accent-success: #64dfdf;
  --accent-warning: #ffa47e;
  --accent-danger: #ff6b8a;

  /* Text Colors */
  --text-primary: #e8eaf6;
  --text-secondary: rgba(232, 234, 246, 0.7);
  --text-muted: rgba(232, 234, 246, 0.45);
  --text-accent: var(--accent-star);

  /* Dimension Colors */
  --color-body: #64dfdf;
  --color-mind: #c9b8ff;
  --color-brain: #6ec6ff;

  /* Sizing */
  --max-width: 480px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(123, 104, 238, 0.3);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.4s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-smooth);
}

/* ===================================
   Reset & Base
   =================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: linear-gradient(160deg, var(--bg-deep) 0%, #0d1233 30%, #1a1050 60%, var(--bg-mid) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Starfield Background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, rgba(201,184,255,0.6), transparent),
    radial-gradient(1px 1px at 90% 10%, rgba(110,198,255,0.5), transparent),
    radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 30% 90%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 70% 40%, rgba(201,184,255,0.5), transparent),
    radial-gradient(1px 1px at 15% 55%, rgba(110,198,255,0.4), transparent),
    radial-gradient(2px 2px at 85% 75%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,0.7), transparent);
  pointer-events: none;
  z-index: 0;
  animation: starTwinkle 8s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* ===================================
   App Container
   =================================== */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===================================
   Progress Bar
   =================================== */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  background: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.progress-bar {
  height: 4px;
  background: var(--bg-glass);
  border-radius: 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-aurora-1), var(--accent-aurora-2), var(--accent-aurora-3));
  border-radius: 0;
  transition: width 0.6s var(--ease-smooth);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0; top: -2px; bottom: -2px;
  width: 20px;
  background: radial-gradient(circle, rgba(110, 198, 255, 0.8), transparent);
  border-radius: 50%;
  filter: blur(2px);
}

.progress-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px 10px;
}

.progress-step {
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.progress-step.active {
  color: var(--accent-star);
  background: rgba(201, 184, 255, 0.15);
}

.progress-step.completed {
  color: var(--accent-aurora-3);
}

/* ===================================
   Screen / Section
   =================================== */
.screen {
  width: 100%;
  max-width: var(--max-width);
  min-height: 100vh;
  padding: 80px 20px 40px;
  display: none;
  flex-direction: column;
  animation: screenFadeIn 0.6s var(--ease-smooth);
}

.screen.active {
  display: flex;
}

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

/* ===================================
   Intro Screen
   =================================== */
.intro-screen {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding-top: 60px;
}

.moon-icon {
  width: 120px;
  height: 120px;
  position: relative;
  margin-bottom: 16px;
}

.moon-icon .moon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5e6a3 0%, #e8d68a 40%, #d4c170 100%);
  box-shadow:
    0 0 40px rgba(245, 230, 163, 0.4),
    0 0 80px rgba(245, 230, 163, 0.2),
    inset -15px -10px 20px rgba(180, 155, 60, 0.3);
  animation: moonFloat 6s ease-in-out infinite;
}

.moon-icon .crater {
  position: absolute;
  border-radius: 50%;
  background: rgba(180, 155, 60, 0.25);
}

.moon-icon .crater:nth-child(2) { width: 18px; height: 18px; top: 25px; left: 35px; }
.moon-icon .crater:nth-child(3) { width: 12px; height: 12px; top: 55px; left: 60px; }
.moon-icon .crater:nth-child(4) { width: 22px; height: 22px; top: 65px; left: 28px; }
.moon-icon .crater:nth-child(5) { width: 10px; height: 10px; top: 35px; left: 70px; }

@keyframes moonFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}

.intro-title {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-moon) 0%, var(--accent-star) 50%, var(--accent-aurora-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.4;
}

.intro-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 340px;
}

.intro-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.intro-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--text-secondary);
}

.intro-badge .badge-icon {
  font-size: 18px;
}

.intro-badge.body { border-color: rgba(100, 223, 223, 0.3); color: var(--color-body); }
.intro-badge.mind { border-color: rgba(201, 184, 255, 0.3); color: var(--color-mind); }
.intro-badge.brain { border-color: rgba(110, 198, 255, 0.3); color: var(--color-brain); }

.intro-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-aurora-1), var(--accent-aurora-2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(123, 104, 238, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(123, 104, 238, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn-cta {
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-pink));
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 164, 126, 0.3);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 164, 126, 0.4);
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section-title.body-color { color: var(--color-body); }
.section-title.mind-color { color: var(--color-mind); }
.section-title.brain-color { color: var(--color-brain); }

/* ===================================
   Cards
   =================================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===================================
   Survey Questions
   =================================== */
.survey-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.question-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.question-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.question-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.answer-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.answer-btn {
  flex: 1;
  min-width: 60px;
  padding: 10px 4px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  line-height: 1.3;
}

.answer-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-glass);
  color: var(--text-primary);
}

.answer-btn.selected {
  border-color: var(--accent-aurora-1);
  background: rgba(123, 104, 238, 0.15);
  color: var(--accent-star);
}

.answer-btn.selected.body-theme {
  border-color: var(--color-body);
  background: rgba(100, 223, 223, 0.12);
  color: var(--color-body);
}

.answer-btn.selected.mind-theme {
  border-color: var(--color-mind);
  background: rgba(201, 184, 255, 0.12);
  color: var(--color-mind);
}

.answer-btn.selected.brain-theme {
  border-color: var(--color-brain);
  background: rgba(110, 198, 255, 0.12);
  color: var(--color-brain);
}

/* ===================================
   Body Mapping
   =================================== */
.body-map-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
}

.body-map-instruction {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

.body-silhouette {
  position: relative;
  width: 160px;
  height: 360px;
}

.body-silhouette svg {
  width: 100%;
  height: 100%;
}

.body-zone {
  cursor: pointer;
  fill: rgba(100, 223, 223, 0.08);
  stroke: rgba(100, 223, 223, 0.2);
  stroke-width: 1;
  transition: var(--transition-fast);
}

.body-zone:hover {
  fill: rgba(100, 223, 223, 0.2);
  stroke: rgba(100, 223, 223, 0.5);
}

.body-zone.selected {
  fill: rgba(100, 223, 223, 0.35);
  stroke: var(--color-body);
  stroke-width: 2;
  animation: zonePulse 2s ease-in-out infinite;
}

@keyframes zonePulse {
  0%, 100% { fill: rgba(100, 223, 223, 0.35); }
  50% { fill: rgba(100, 223, 223, 0.5); }
}

.body-zone-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.zone-label {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid rgba(100, 223, 223, 0.15);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.zone-label.selected {
  background: rgba(100, 223, 223, 0.15);
  border-color: var(--color-body);
  color: var(--color-body);
}

/* ===================================
   Emotion Thermometer
   =================================== */
.thermometer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
}

.thermometer {
  position: relative;
  width: 60px;
  height: 260px;
  background: var(--bg-card);
  border-radius: 30px;
  border: 2px solid rgba(201, 184, 255, 0.2);
  overflow: hidden;
  cursor: pointer;
}

.thermometer-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, var(--accent-aurora-3), var(--accent-star), var(--accent-warm), var(--accent-danger));
  border-radius: 0 0 28px 28px;
  transition: height 0.3s var(--ease-smooth);
}

.thermometer-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 260px;
  margin-left: 16px;
}

.thermo-label {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.thermo-label:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.thermo-label.active {
  color: var(--accent-star);
  background: rgba(201, 184, 255, 0.12);
}

.thermometer-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================
   Game / Test Screens
   =================================== */
.game-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.game-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 20px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
}

.game-timer .timer-value {
  color: var(--accent-moon);
  font-variant-numeric: tabular-nums;
}

.game-score {
  display: flex;
  gap: 20px;
}

.score-item {
  text-align: center;
}

.score-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.score-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-star);
}

/* SDI Game */
.sdi-seed-word {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  color: var(--accent-moon);
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(245, 230, 163, 0.2);
  width: 100%;
}

.sdi-input-area {
  width: 100%;
}

.sdi-input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid rgba(110, 198, 255, 0.2);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: var(--transition-fast);
}

.sdi-input:focus {
  border-color: var(--accent-aurora-2);
  box-shadow: 0 0 20px rgba(110, 198, 255, 0.15);
}

.sdi-words-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
}

.sdi-word-chip {
  padding: 6px 14px;
  background: rgba(110, 198, 255, 0.12);
  border: 1px solid rgba(110, 198, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--color-brain);
  animation: chipIn 0.3s var(--ease-bounce);
}

@keyframes chipIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Breathing Rhythm Test */
.breathing-circle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  position: relative;
}

.breathing-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 198, 255, 0.6), rgba(123, 104, 238, 0.3));
  box-shadow: 0 0 40px rgba(110, 198, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.breathing-circle.inhale {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(100, 223, 223, 0.6), rgba(110, 198, 255, 0.3));
  box-shadow: 0 0 60px rgba(100, 223, 223, 0.4);
}

.breathing-circle.hold {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201, 184, 255, 0.6), rgba(123, 104, 238, 0.3));
  box-shadow: 0 0 60px rgba(201, 184, 255, 0.4);
}

.breathing-circle.exhale {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(110, 198, 255, 0.4), rgba(123, 104, 238, 0.2));
  box-shadow: 0 0 30px rgba(110, 198, 255, 0.2);
}

.breathing-feedback {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.breathing-phase {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-aurora-2);
  margin-bottom: 6px;
}

/* ===================================
   Relaxation Screen
   =================================== */
.relaxation-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.relax-breathing-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 223, 223, 0.5), rgba(123, 104, 238, 0.2));
  box-shadow: 0 0 50px rgba(100, 223, 223, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  transition: all 4s ease-in-out;
}

.relax-breathing-circle.expand {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(100, 223, 223, 0.7), rgba(123, 104, 238, 0.3));
  box-shadow: 0 0 80px rgba(100, 223, 223, 0.4);
}

.relax-phase-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.relax-count {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-moon);
}

.bodyscan-guide {
  text-align: center;
  padding: 24px;
}

.bodyscan-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.8;
  animation: fadeText 1s ease;
}

@keyframes fadeText {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bodyscan-part {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ===================================
   Results Screen
   =================================== */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.result-hero {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-grade-icon {
  font-size: 64px;
  margin-bottom: 12px;
}

.result-grade-text {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.result-grade-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Radar Chart */
.radar-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.radar-chart-container h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.radar-chart {
  width: 260px;
  height: 260px;
}

/* Dimension Cards */
.dimension-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dimension-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dim-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.dim-info {
  flex: 1;
}

.dim-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.dim-label.body { color: var(--color-body); }
.dim-label.mind { color: var(--color-mind); }
.dim-label.brain { color: var(--color-brain); }

.dim-grade {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dim-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dim-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-glass);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.dim-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s var(--ease-smooth);
}

.dim-bar-fill.body { background: var(--color-body); }
.dim-bar-fill.mind { background: var(--color-mind); }
.dim-bar-fill.brain { background: var(--color-brain); }

/* Tips */
.tips-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tips-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.tip-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tip-item:last-child {
  border-bottom: none;
}

.tip-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.tip-content {
  flex: 1;
}

.tip-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tip-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(123, 104, 238, 0.2), rgba(110, 198, 255, 0.15));
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(123, 104, 238, 0.2);
}

.cta-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cta-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent-aurora-1), var(--accent-aurora-2));
  border-radius: var(--radius-md);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition-fast);
}

.cta-phone:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.cta-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.cta-link:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===================================
   Relaxation Type Selector
   =================================== */
.relax-type-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.relax-type-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: var(--transition-fast);
}

.relax-type-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.relax-type-card.recommended {
  border-color: rgba(100, 223, 223, 0.3);
  position: relative;
}

.relax-type-card.recommended::after {
  content: '추천';
  position: absolute;
  top: -8px;
  right: 16px;
  padding: 2px 10px;
  background: var(--accent-aurora-3);
  color: var(--bg-deep);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.relax-type-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.relax-type-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.relax-type-info p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===================================
   Utilities
   =================================== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.gap-12 { gap: 12px; }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden { display: none !important; }

.fade-in {
  animation: screenFadeIn 0.6s var(--ease-smooth);
}

/* Navigation buttons at bottom */
.nav-buttons {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.nav-buttons .btn {
  flex: 1;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 480px) {
  .screen {
    padding: 70px 16px 32px;
  }

  .intro-title {
    font-size: 24px;
  }

  .answer-options {
    gap: 6px;
  }

  .answer-btn {
    min-width: 50px;
    padding: 8px 2px;
    font-size: 11px;
  }

  .breathing-circle-container {
    height: 240px;
  }

  .radar-chart {
    width: 220px;
    height: 220px;
  }

  .progress-steps {
    gap: 4px;
    padding: 6px 12px 8px;
  }

  .progress-step {
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* ===================================
   Loading / Calculating
   =================================== */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 14, 39, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 200;
  animation: screenFadeIn 0.3s var(--ease-smooth);
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--bg-glass);
  border-top-color: var(--accent-aurora-2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 16px;
  color: var(--text-secondary);
  animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Footer note on results */
.results-footer {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}
