:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #4c3627;
  background: #e8dbc6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  min-width: 320px;
  background-color: #e7d6bf;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 18%, rgba(110, 71, 43, 0.07) 0, rgba(110, 71, 43, 0.07) 2px, transparent 2px),
    radial-gradient(circle at 78% 16%, rgba(110, 71, 43, 0.06) 0, rgba(110, 71, 43, 0.06) 2px, transparent 2px),
    radial-gradient(circle at 30% 76%, rgba(110, 71, 43, 0.05) 0, rgba(110, 71, 43, 0.05) 2px, transparent 2px),
    radial-gradient(circle at 72% 82%, rgba(110, 71, 43, 0.05) 0, rgba(110, 71, 43, 0.05) 2px, transparent 2px),
    radial-gradient(circle, rgba(109, 75, 52, 0.08) 0, rgba(109, 75, 52, 0.08) 1.6px, transparent 1.6px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%236d4b34' stroke-width='0.9' stroke-linecap='round' opacity='0.45'%3E%3Cpath d='M12 58c22-22 42-20 56 0s27 26 47 11 37-16 58 6'/%3E%3Cpath d='M24 123c17-21 36-19 49-3s30 19 43 6 33-12 50 7'/%3E%3Cpath d='M44 34c5 10 4 18-3 28'/%3E%3Cpath d='M80 95c6 8 7 16 2 25'/%3E%3Cpath d='M147 61c-6 10-6 19-1 30'/%3E%3Cpath d='M173 139c-6 9-6 18-1 26'/%3E%3Cpath d='M52 42c9-1 16 2 21 9'/%3E%3Cpath d='M86 103c10-1 18 3 22 11'/%3E%3Cpath d='M132 66c11 0 18 4 22 11'/%3E%3Cpath d='M164 145c10 0 17 4 20 10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, auto, auto, 24px 24px, 220px 220px;
  background-repeat: repeat;
}

.page-shell {
  position: relative;
  z-index: 1;
}

button {
  font: inherit;
  cursor: pointer;
}

.page-shell {
  width: min(100%, 30rem);
  margin: 0 auto;
  padding: 10px 10px calc(18px + env(safe-area-inset-bottom));
}

.page-header {
  margin-bottom: 10px;
}

.page-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: #5a3d2b;
}

.card {
  background: rgba(248, 239, 223, 0.94);
  border: 1px solid rgba(126, 89, 63, 0.22);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(89, 58, 36, 0.08);
  padding: 14px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8b674c;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  color: #5c412d;
}

.progress-text {
  flex-shrink: 0;
  font-size: 13px;
  color: #7a604b;
}

.progress-bar {
  width: 100%;
  height: 9px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dcc4a5;
}

.progress-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8e6846, #b2885e);
}

.question-card {
  padding: 14px;
  background: rgba(255, 249, 239, 0.78);
  border: 1px solid rgba(150, 113, 84, 0.14);
  border-radius: 16px;
}

.question-title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.45;
  color: #4c3627;
  font-weight: 600;
}

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

.option-button {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px;
  text-align: left;
  border: 1px solid #d8bea0;
  border-radius: 14px;
  background: rgba(255, 250, 241, 0.96);
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.option-button:hover,
.option-button:focus-visible {
  border-color: #aa7d58;
  box-shadow: 0 6px 16px rgba(122, 89, 62, 0.1);
  background: #fcf2df;
  transform: translateY(-1px);
  outline: none;
}

.option-button--active {
  border-color: #946946;
  background: #f1dec2;
}

.option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #dcc0a2;
  color: #6c4a32;
  font-weight: 700;
}

.option-content {
  min-width: 0;
}

.option-text {
  font-size: 15px;
  line-height: 1.5;
  color: #4b3527;
}

.footer-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.footer-actions > * {
  flex: 1;
}

.footer-actions--single {
  justify-content: center;
}

.footer-actions--single > * {
  flex: 0 1 220px;
}

.ghost-button,
.primary-button {
  min-height: 44px;
  border-radius: 13px;
  border: 1px solid #cfb18c;
  padding: 10px 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(103, 73, 48, 0.08);
}

.ghost-button {
  background: #f1e2c7;
  color: #5a3d2a;
}

.primary-button {
  background: #e8d2aa;
  color: #5a3d2a;
}

.ghost-button:hover,
.primary-button:hover,
.ghost-button:focus-visible,
.primary-button:focus-visible {
  background: #f0dfbc;
  border-color: #bb9369;
  outline: none;
}

.ghost-button:disabled,
.primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.result-card {
  text-align: left;
}

.result-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.result-item {
  padding: 12px;
  border: 1px solid rgba(126, 89, 63, 0.14);
  border-radius: 14px;
  background: rgba(255, 249, 240, 0.76);
}

.result-item__label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8b674c;
  text-transform: uppercase;
}

.result-item__value {
  margin: 0;
  color: #4c3627;
}

.result-item__value--highlight {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: #6a4730;
}

@media (max-width: 360px) {
  .page-shell {
    padding-inline: 8px;
  }

  .page-title {
    font-size: 22px;
  }

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

  .option-button {
    padding: 11px;
    gap: 8px;
  }

  .option-key {
    width: 28px;
    height: 28px;
  }
}

@media (max-height: 700px) {
  .page-shell {
    padding-top: 8px;
  }

  .page-header {
    margin-bottom: 8px;
  }

  .card {
    padding: 12px;
  }

  .question-card {
    padding: 12px;
  }

  .question-title {
    margin-bottom: 10px;
    line-height: 1.4;
  }

  .options-list {
    gap: 8px;
  }

  .footer-actions {
    margin-top: 10px;
  }
}