/* 测测你的绿茶度 抹茶绿 / 奶油 / 浅粉配色，Chrome 61 基线 + 局部增强 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(74, 122, 82, 0.18);
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100vh;
  height: var(--app-height, 100vh);
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: #2F3B32;
  background-color: #F6F3E6;
  background-image: radial-gradient(ellipse at top left, rgba(212, 230, 196, 0.75) 0%, rgba(247, 240, 230, 0) 52%), radial-gradient(ellipse at bottom right, rgba(236, 196, 208, 0.35) 0%, rgba(247, 240, 230, 0) 46%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.page {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100%;
  min-height: 100vh;
  min-height: var(--app-height, 100vh);
  margin: 0 auto;
  padding-top: 24px;
  padding-top: calc(24px + var(--safe-area-inset-top, 0px));
  padding-top: calc(24px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
  padding-right: 20px;
  padding-right: calc(20px + var(--safe-area-inset-right, 0px));
  padding-right: calc(20px + var(--safe-area-inset-right, env(safe-area-inset-right, 0px)));
  padding-bottom: 24px;
  padding-bottom: calc(24px + var(--safe-area-inset-bottom, 0px));
  padding-bottom: calc(24px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  padding-left: 20px;
  padding-left: calc(20px + var(--safe-area-inset-left, 0px));
  padding-left: calc(20px + var(--safe-area-inset-left, env(safe-area-inset-left, 0px)));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.page:before,
.page:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.page:before {
  width: 220px;
  height: 220px;
  top: -60px;
  right: -70px;
  background: rgba(168, 204, 150, 0.35);
}

.page:after {
  width: 180px;
  height: 180px;
  bottom: 10%;
  left: -80px;
  background: rgba(236, 196, 208, 0.32);
}

.screen {
  position: relative;
  z-index: 1;
}

.screen[hidden] {
  display: none !important;
}

.eyebrow,
.dimension-tag {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(63, 107, 74, 0.12);
  color: #3F6B4A;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

h1,
h2 {
  margin: 12px 0 0;
  font-weight: 700;
  line-height: 1.35;
  color: #243329;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 24px;
}

.lead,
.summary,
.hint,
.meta,
.dim-comment,
.progress-row,
.disclaimer {
  color: #5A6A5C;
}

.lead {
  margin: 16px 0 0;
  font-size: 17px;
}

.hint {
  margin: 10px 0 0;
  font-size: 15px;
}

.disclaimer {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid rgba(201, 163, 106, 0.30);
  font-size: 14px;
  line-height: 1.6;
  -webkit-user-select: text;
  user-select: text;
}

.card {
  margin-top: 20px;
  padding: 22px 18px;
  background: #FFFCF7;
  border: 1px solid rgba(63, 107, 74, 0.10);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(63, 107, 74, 0.08);
}

.btn {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: default;
}

.btn-primary {
  background: #3F6B4A;
  color: #FFFCF7;
  box-shadow: 0 8px 18px rgba(63, 107, 74, 0.22);
}

.btn-primary:active,
.btn-ghost:active,
.option-btn:active {
  opacity: 0.78;
}

.btn-primary:active {
  background: #33573B;
}

.btn-ghost {
  background: #E7F0DC;
  color: #3F6B4A;
}

.btn-ghost:active {
  background: #D9E8C8;
}

.btn-start,
.btn-retake {
  margin-top: 24px;
}

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

.progress-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}

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

.progress-bar {
  height: 100%;
  width: 0;
  background: #3F6B4A;
  border-radius: 999px;
}

.question-head {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  min-width: 0;
}

.question-index {
  margin: 0;
  margin-right: 8px;
  color: #7A6A48;
  font-size: 13px;
  font-weight: 700;
}

.question-text {
  margin: 14px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: #243329;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
}

.option-list {
  margin-top: 18px;
}

.option-btn {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(63, 107, 74, 0.14);
  border-radius: 16px;
  background: #FFFDF6;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  color: #2F3B32;
  cursor: pointer;
}

.option-btn + .option-btn {
  margin-top: 10px;
}

.option-btn.is-selected {
  border-color: #3F6B4A;
  background: #E7F0DC;
  box-shadow: 0 0 0 2px rgba(74, 122, 82, 0.18);
  opacity: 1;
}

.option-key {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  margin-top: 2px;
  border-radius: 50%;
  background: #D9E8C8;
  color: #3F6B4A;
  font-size: 14px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

.option-btn.is-selected .option-key {
  background: #3F6B4A;
  color: #FFFCF7;
}

.option-text {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.nav-bar {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  margin-top: 20px;
}

.nav-bar .btn {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
}

.nav-bar .btn + .btn {
  margin-left: 12px;
}

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

.score-label {
  margin: 0;
  color: #3F6B4A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.score-number {
  margin: 4px 0 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: #3F6B4A;
}

.score-unit {
  margin: 6px 0 0;
  font-size: 14px;
  color: #7A6A48;
}

.result-title {
  margin-top: 16px;
  text-align: center;
  outline: none;
}

.summary {
  margin: 12px 0 0;
  font-size: 16px;
}

.block-title {
  margin: 18px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #3F6B4A;
}

.block-text {
  margin: 0;
  font-size: 16px;
  -webkit-user-select: text;
  user-select: text;
}

.dim-block {
  margin-top: 8px;
}

.dim-row + .dim-row {
  margin-top: 16px;
}

.dim-top {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
}

.dim-track {
  height: 10px;
  margin-top: 8px;
  overflow: hidden;
  background: #E8E4D4;
  border-radius: 999px;
}

.dim-bar {
  height: 100%;
  width: 0;
  background: #6B8F6E;
  border-radius: 999px;
}

.dim-comment {
  margin: 6px 0 0;
  font-size: 14px;
}

.start-title,
#start-title {
  outline: none;
}

@media (min-width: 431px) {
  body {
    background-color: #E8E4D4;
  }

  .page {
    width: 100%;
    max-width: 430px;
    min-height: 100%;
    background: #F6F3E6;
    border-radius: 0;
    box-shadow: none;
  }
}
