:root {
  --bg: #FDFBE9;
  --card-bg: #ffffff;
  --text: #2c2a20;
  --text-soft: #6b6857;
  --accent: #DC000C;
  --accent-soft: #FCE7F0;
  --border: #ECE8D0;
  --radius: 24px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 24px;
  line-height: 1.55;
}

.page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 48px);
}

.site-header {
  padding: 8px 0 28px;
}

.site-header .logo {
  height: 48px;
  width: auto;
}

.site-footer {
  margin-top: auto;
  padding: 28px 0 8px;
  font-size: 0.82rem;
  color: var(--text-soft);
  text-align: center;
}

#app {
  width: 100%;
  max-width: 560px;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 36px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  width: 0%;
  transition: width 0.45s ease;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  text-align: center;
}

@media (max-width: 480px) {
  .card { padding: 32px 24px; }
}

.screen {
  animation: fadeIn 0.4s ease;
}

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

.screen.exit {
  animation: fadeOut 0.25s ease forwards;
}

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

h1 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.3;
}

.intro-text, .closing-text {
  color: var(--text-soft);
  font-size: 1rem;
  white-space: pre-line;
  margin-bottom: 32px;
  text-align: left;
}

.question-section {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.time-reminder {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: -6px 0 18px;
}

.question-text {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 36px;
  line-height: 1.4;
  outline: none;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s ease;
}

.option-btn:hover, .option-btn:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.option-btn.skip {
  color: var(--text-soft);
  font-weight: 500;
  border: none;
  background: transparent;
}

.option-btn.skip:hover {
  background: var(--bg);
}

.option-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.option-btn.skip.selected {
  background: var(--bg);
  color: var(--accent);
}

.nav-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 28px;
}

.back-btn {
  font-family: inherit;
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 0.92rem;
  cursor: pointer;
  padding: 8px 0;
}

.back-btn:hover {
  color: var(--accent);
}

.cta-btn {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-btn:hover, .cta-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220,0,12,0.25);
  outline: none;
}

.score-number {
  font-size: 3.4rem;
  font-weight: 800;
  margin: 8px 0 4px;
}

.score-label {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.gauge-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 36px;
  position: relative;
}

.gauge-fill {
  height: 100%;
  border-radius: 999px;
  width: 0%;
  transition: width 0.8s cubic-bezier(.22,1,.36,1);
}

.result-text {
  text-align: left;
  color: var(--text-soft);
  white-space: pre-line;
  margin-bottom: 28px;
}

.result-box {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 20px 24px 4px;
  margin-bottom: 28px;
}

.result-box .result-text {
  color: var(--text);
  margin-bottom: 16px;
}

.saving-note {
  font-size: 0.88rem;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 28px;
}

.source-note {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 20px;
  text-align: center;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
