:root {
  --bg: #08101c;
  --card: #111b2c;
  --card2: #162236;
  --text: #f4f6fa;
  --muted: #aeb7c7;
  --gold: #d9b36c;
  --gold-light: #f0cf91;
  --border: rgba(255,255,255,.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(217,179,108,.12), transparent 30%),
    linear-gradient(145deg, #070c15, #0e1728 55%, #08101c);
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 40px 40px;
}

.container {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.hero {
  margin-bottom: 32px;
}

.hero-badge,
.section-label {
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 700;
}

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(217,179,108,.35);
  border-radius: 999px;
  padding: 8px 13px;
  margin-bottom: 18px;
  background: rgba(217,179,108,.07);
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.15;
}

.hero h1 span {
  color: var(--gold-light);
}

.hero-text {
  max-width: 740px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(22,34,54,.96), rgba(12,20,34,.96));
  box-shadow: 0 28px 70px rgba(0,0,0,.35);
}

.card h2 {
  margin: 12px 0 12px;
  font-size: 28px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.start-info {
  display: flex;
  max-width: 520px;
  margin: 28px 0;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.start-info > div {
  flex: 1;
  text-align: center;
}

.start-number {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.start-label {
  display: block;
  margin-top: 4px;
  color: #7e899b;
  font-size: 9px;
  letter-spacing: .16em;
}

.primary-btn,
.secondary-btn,
.answer-btn {
  font-family: inherit;
  cursor: pointer;
}

.primary-btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  color: #141a24;
  background: linear-gradient(135deg, #b98d49, #f0cf91);
  box-shadow: 0 12px 28px rgba(217,179,108,.2);
}

.secondary-btn {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  padding: 13px 22px;
  color: var(--text);
  background: transparent;
}

.quiz-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.progress-box {
  width: 230px;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.progress-bar {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #a97a34, #f0cf91);
}

.questions {
  display: grid;
  gap: 13px;
}

.question {
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(255,255,255,.025);
}

.question-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.question-no {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 6px 8px;
  text-align: center;
  border: 1px solid rgba(217,179,108,.25);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 10px;
}

.question-text {
  font-size: 15px;
  line-height: 1.7;
}

.answer-row {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding-left: 56px;
}

.answer-btn {
  min-width: 84px;
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
}

.answer-btn.yes-active {
  border-color: transparent;
  color: #121821;
  font-weight: 700;
  background: linear-gradient(135deg, #b98d49, #f0cf91);
}

.answer-btn.no-active {
  color: white;
  background: rgba(255,255,255,.11);
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.error {
  min-height: 20px;
  margin-top: 16px;
  color: #e4ad9d;
  font-size: 13px;
}

.score {
  display: inline-block;
  margin: 18px 0;
  padding: 18px 22px;
  border: 1px solid rgba(217,179,108,.3);
  border-radius: 18px;
  background: rgba(217,179,108,.08);
}

.score strong {
  font-size: 42px;
  color: var(--gold-light);
}

.score span {
  color: var(--muted);
}

.result-main,
.next-box,
.consult-box {
  margin-top: 18px;
  padding: 23px;
  border-radius: 18px;
}

.result-main {
  border: 1px solid rgba(217,179,108,.25);
  background: rgba(217,179,108,.06);
}

.result-main h3 {
  margin: 8px 0 14px;
  color: var(--gold-light);
  font-size: 24px;
  line-height: 1.5;
}

.next-box {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
}

.consult-box {
  border: 1px solid rgba(217,179,108,.2);
  background: rgba(217,179,108,.05);
}

.small-label {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

@media (max-width: 700px) {
  .container {
    padding: 36px 14px 60px;
  }

  .card {
    padding: 21px 17px;
  }

  .quiz-top {
    flex-direction: column;
  }

  .progress-box {
    width: 100%;
  }

  .answer-row {
    padding-left: 0;
  }

  .answer-btn {
    flex: 1;
  }

  .actions {
    flex-direction: column-reverse;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }
}