/* 전체 색상은 고급 골프 브랜드 느낌이 나도록 짙은 그린, 아이보리, 골드 계열로 정리했습니다. */
:root {
  --green-950: #071b14;
  --green-900: #0d2b21;
  --green-800: #12382c;
  --green-700: #1c4b3a;
  --ivory: #f7f1e7;
  --paper: #fffbf4;
  --sand: #e8ddcc;
  --gold: #b99155;
  --gold-soft: #e3c99c;
  --ink: #14211d;
  --muted: #6f776f;
  --line: rgba(20, 33, 29, 0.14);
  --shadow: 0 24px 60px rgba(7, 27, 20, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background:
    linear-gradient(160deg, rgba(7, 27, 20, 0.95), rgba(18, 56, 44, 0.84)),
    url("https://images.unsplash.com/photo-1535131749006-b7f58c99034b?auto=format&fit=crop&w=1400&q=80");
  background-position: center;
  background-size: cover;
}

button {
  border: 0;
  font: inherit;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  padding: 18px;
  place-items: center;
}

.test-card {
  width: min(100%, 520px);
  padding: 24px;
  border: 1px solid rgba(255, 251, 244, 0.34);
  border-radius: 8px;
  background: rgba(255, 251, 244, 0.96);
  box-shadow: var(--shadow);
}

.brand-header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.result-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: var(--green-900);
  font-size: 30px;
  line-height: 1.18;
}

.lead {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.quiz-screen {
  padding-top: 22px;
}

.progress-wrap {
  margin-bottom: 22px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 700;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e0d2;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), var(--gold));
  transition: width 0.24s ease;
}

.question-title {
  min-height: 72px;
  margin-bottom: 18px;
  color: var(--green-950);
  font-size: 22px;
  line-height: 1.38;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-option {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffaf1;
  text-align: left;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.answer-option:active {
  transform: scale(0.99);
}

.answer-option.selected {
  border-color: var(--gold);
  background: #f4ead9;
}

.option-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: var(--paper);
  background: var(--green-800);
  font-size: 13px;
  font-weight: 800;
}

.option-text {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.48;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 22px;
}

.primary-button,
.ghost-button {
  min-height: 50px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  color: var(--paper);
  background: var(--green-900);
}

.primary-button:disabled {
  color: rgba(255, 251, 244, 0.62);
  background: #7d8b82;
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--green-800);
  background: transparent;
}

.ghost-button:disabled {
  color: #b8b8b0;
}

.result-screen {
  padding-top: 22px;
}

.hidden {
  display: none;
}

#resultTitle {
  margin-bottom: 12px;
  color: var(--green-900);
  font-size: 28px;
  line-height: 1.2;
}

.result-summary {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.result-panel,
.routine-panel {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.routine-panel {
  background: linear-gradient(180deg, #f8eedc, #fffaf1);
}

.result-panel h3,
.routine-panel h3 {
  margin-bottom: 10px;
  color: var(--green-800);
  font-size: 16px;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
  color: #26342f;
  font-size: 14px;
  line-height: 1.55;
}

li:last-child {
  margin-bottom: 0;
}

.full-button {
  width: 100%;
  margin-top: 18px;
}

@media (max-width: 420px) {
  .app-shell {
    padding: 10px;
    align-items: start;
  }

  .test-card {
    min-height: calc(100vh - 20px);
    padding: 20px;
  }

  h1 {
    font-size: 27px;
  }

  .question-title {
    font-size: 20px;
  }

  .answer-option {
    grid-template-columns: 28px 1fr;
    min-height: 62px;
    padding: 13px;
  }
}
