:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #66706a;
  --paper: #fff6e8;
  --panel: #ffffff;
  --line: #ead8ba;
  --moss: #27523f;
  --fern: #6f9b57;
  --rust: #c95731;
  --sun: #f4bf4f;
  --sky: #7ab8c6;
  --berry: #b54f6a;
  --soil: #7d5134;
  --shadow: 0 18px 46px rgba(38, 52, 43, 0.18);
  --stage-height: min(760px, calc(100vh - 20px));
}

/* deploy-refresh: 2026-06-07 */
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 246, 232, 0.84), rgba(244, 231, 207, 0.96)),
    radial-gradient(circle at 18% 12%, rgba(244, 191, 79, 0.42), transparent 26%),
    radial-gradient(circle at 90% 18%, rgba(122, 184, 198, 0.34), transparent 28%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 1300'%3E%3Crect width='900' height='1300' fill='%23fff6e8'/%3E%3Cpath d='M0 358C116 294 184 245 268 267c91 24 130 124 226 126 91 2 128-79 205-72 78 8 130 104 201 126v853H0z' fill='%23dfe7c9'/%3E%3Cpath d='M0 502l102-87 96 67 128-172 133 185 93-99 116 142 72-87 160 142v707H0z' fill='%2393ad68'/%3E%3Cpath d='M0 653l118-109 126 70 96-103 126 137 102-88 133 118 82-67 117 91v598H0z' fill='%235f7f55'/%3E%3Cpath d='M0 756c160-47 292-23 404 72 121 103 262 126 496 54v418H0z' fill='%2327523f'/%3E%3Cpath d='M74 230c86 35 166 35 240 0M600 254c52 25 105 25 157 0' stroke='%23c95731' stroke-width='9' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='710' cy='151' r='58' fill='%23f4bf4f'/%3E%3Cpath d='M90 1100c95-43 184-43 268 0M512 1122c91-32 180-32 267 0' stroke='%23fff6e8' stroke-opacity='.28' stroke-width='16' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: cover;
  background-attachment: fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.shell {
  width: min(430px, calc(100vw - 20px));
  margin: 0 auto;
  padding: 10px 0;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero {
  height: var(--stage-height);
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 14px;
  align-items: center;
  position: relative;
}

.hero__copy {
  padding: 18px 0 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rust);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7);
}

.lead {
  margin: 14px 0 0;
  color: #34413d;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 700;
}

.trail-ribbon,
.field-tags,
.cover-bites {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trail-ribbon span,
.field-tags span,
.cover-bites span {
  border: 1px solid rgba(23, 32, 27, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--soil);
  box-shadow: 0 8px 20px rgba(38, 52, 43, 0.1);
  font-weight: 900;
}

.trail-ribbon span {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
}

.field-tags {
  margin-top: 14px;
}

.field-tags span {
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 13px;
}

.field-tags span:nth-child(1),
.trail-ribbon span:nth-child(2) {
  background: rgba(244, 191, 79, 0.78);
}

.field-tags span:nth-child(2),
.trail-ribbon span:nth-child(1) {
  background: rgba(122, 184, 198, 0.7);
}

.field-tags span:nth-child(3) {
  background: rgba(201, 87, 49, 0.18);
}

.field-tags span:nth-child(4),
.trail-ribbon span:nth-child(3) {
  background: rgba(111, 155, 87, 0.24);
}

.cover-bites span {
  flex: 1 1 120px;
  justify-content: center;
  display: flex;
  border-radius: 8px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--moss);
}

.cover-art {
  height: 270px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(122, 184, 198, 0.82), rgba(255, 246, 232, 0.9) 62%),
    radial-gradient(circle at 16% 20%, rgba(244, 191, 79, 0.7), transparent 22%);
  border: 1px solid rgba(23, 32, 27, 0.12);
  box-shadow: var(--shadow);
}

.cover-sun {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  right: 34px;
  top: 28px;
  background: var(--sun);
  box-shadow: 0 0 0 18px rgba(244, 191, 79, 0.22);
}

.cover-card {
  position: absolute;
  z-index: 3;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 950;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 32, 27, 0.12);
  box-shadow: 0 12px 24px rgba(38, 52, 43, 0.16);
}

.cover-card--left {
  left: 24px;
  top: 32px;
  transform: rotate(-6deg);
}

.cover-card--right {
  right: 18px;
  bottom: 72px;
  transform: rotate(5deg);
  background: rgba(244, 191, 79, 0.92);
}

.cover-mountains {
  position: absolute;
  inset: 82px 0 0;
  background:
    linear-gradient(135deg, transparent 35%, #6f9b57 35% 64%, transparent 64%) 0 78px / 180px 170px repeat-x,
    linear-gradient(45deg, transparent 32%, #27523f 32% 64%, transparent 64%) 60px 36px / 230px 210px repeat-x;
}

.cover-trail {
  position: absolute;
  left: 28px;
  right: 26px;
  bottom: 26px;
  height: 78px;
  border-radius: 50%;
  border-bottom: 14px solid rgba(255, 246, 232, 0.72);
  transform: rotate(-8deg);
}

.cover-person {
  position: absolute;
  left: 183px;
  bottom: 55px;
  width: 48px;
  height: 72px;
  border-radius: 20px 20px 12px 12px;
  background: var(--rust);
  box-shadow: 0 0 0 8px rgba(255, 246, 232, 0.62);
  z-index: 2;
}

.cover-person::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  left: 9px;
  top: -24px;
  background: var(--soil);
}

.cover-person span {
  position: absolute;
  width: 54px;
  height: 36px;
  border-radius: 14px;
  left: -3px;
  top: 18px;
  background: var(--moss);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.primary,
.ghost {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.primary {
  background: linear-gradient(135deg, var(--moss), #1d6b52);
  color: #fff;
  box-shadow: var(--shadow);
}

.ghost {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border: 1px solid rgba(24, 33, 31, 0.14);
}

.question-card,
.result-card,
.glossary-grid > div,
.loader-card {
  border: 1px solid rgba(24, 33, 31, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 232, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quiz,
.result,
.glossary,
.loading-screen {
  margin-top: 0;
  height: var(--stage-height);
  min-height: 0;
  display: grid;
  align-content: center;
  overflow: hidden;
}

.progress {
  margin: 0 auto 14px;
}

.progress > div:first-child,
.meter > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.progress p,
.progress strong,
.meter span,
.meter strong {
  margin: 0;
  font-weight: 900;
}

.progress p,
.meter span {
  color: var(--muted);
}

.progress__track,
.meter__track {
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(24, 33, 31, 0.12);
  overflow: hidden;
}

.progress__track span,
.meter__track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rust), var(--sun), var(--sky), var(--fern));
  transition: width 220ms ease;
}

.question-card {
  margin: 0 auto;
  border-radius: 8px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  max-height: calc(var(--stage-height) - 54px);
}

.question-card::before,
.result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(244, 191, 79, 0.2), transparent 34%),
    linear-gradient(315deg, rgba(122, 184, 198, 0.18), transparent 38%);
}

.pain {
  width: fit-content;
  margin: 0 0 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(186, 90, 54, 0.12);
  color: var(--rust);
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.question-image,
.result-image {
  display: block;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(23, 32, 27, 0.1);
  box-shadow: 0 14px 28px rgba(38, 52, 43, 0.14);
  background: var(--paper);
}

.question-image {
  aspect-ratio: 16 / 9;
  margin: 0 0 14px;
}

.result-image {
  aspect-ratio: 16 / 9.4;
  margin: 0 0 12px;
}

.question-card h2 {
  margin: 0 0 16px;
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}

.options {
  display: grid;
  gap: 9px;
  position: relative;
  z-index: 1;
}

.option {
  width: 100%;
  min-height: 54px;
  border-radius: 8px;
  border: 1px solid rgba(24, 33, 31, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
  line-height: 1.5;
  font-weight: 800;
}

.option:hover {
  border-color: var(--rust);
  transform: translateY(-1px);
  background: rgba(255, 246, 232, 0.96);
}

.result-card {
  margin: 0 auto;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  max-height: calc(var(--stage-height) - 60px);
}

.result-card h2 {
  margin: 0;
  font-size: 31px;
  line-height: 1.06;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}

.level,
.summary {
  margin: 10px 0 0;
  color: #34413d;
  font-size: 15px;
  line-height: 1.48;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.meter {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(39, 82, 63, 0.1);
  position: relative;
  z-index: 1;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.result-grid > div {
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(246, 243, 235, 0.8);
}

.result-grid h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

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

li,
#suggestedItem,
blockquote {
  line-height: 1.42;
  font-size: 13px;
}

#suggestedItem {
  margin: 0;
}

blockquote {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--rust);
  background: rgba(186, 90, 54, 0.08);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.share-line {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.result-actions {
  justify-content: center;
  margin-top: 10px;
}

.section-heading {
  margin: 0 auto 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 0;
}

.glossary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.glossary-grid > div {
  border-radius: 8px;
  padding: 18px;
}

.loader-card {
  height: var(--stage-height);
  min-height: 0;
  border-radius: 8px;
  padding: 30px 24px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.loader-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(122, 184, 198, 0.22), transparent 50%),
    linear-gradient(0deg, rgba(39, 82, 63, 0.12), transparent 38%);
}

.loader-sun,
.loader-cloud,
.loader-path {
  position: absolute;
  display: block;
}

.loader-sun {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  right: 42px;
  top: 44px;
  background: rgba(244, 191, 79, 0.82);
  animation: pulseSun 2400ms ease-in-out infinite;
}

.loader-cloud {
  width: 92px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  animation: drift 5200ms ease-in-out infinite;
}

.loader-cloud::before,
.loader-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.loader-cloud::before {
  width: 38px;
  height: 38px;
  left: 16px;
  top: -18px;
}

.loader-cloud::after {
  width: 46px;
  height: 46px;
  right: 14px;
  top: -24px;
}

.loader-cloud--one {
  left: 28px;
  top: 82px;
}

.loader-cloud--two {
  right: 54px;
  top: 170px;
  transform: scale(0.76);
  animation-delay: 900ms;
}

.loader-path {
  left: 26px;
  right: 26px;
  bottom: 54px;
  height: 120px;
  border-radius: 50%;
  border-bottom: 16px dashed rgba(255, 246, 232, 0.72);
  transform: rotate(-8deg);
  animation: pathMove 1800ms linear infinite;
}

.loader-card h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}

.loader-card p {
  position: relative;
  z-index: 1;
}

.loader-card > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.loader-card::before {
  content: "";
  position: absolute;
  inset: auto -20px -54px -20px;
  height: 150px;
  background:
    linear-gradient(135deg, transparent 36%, rgba(39, 82, 63, 0.92) 36% 64%, transparent 64%),
    linear-gradient(45deg, transparent 28%, rgba(111, 155, 87, 0.82) 28% 60%, transparent 60%);
}

.loader-orbit {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 8px solid rgba(39, 82, 63, 0.14);
  border-top-color: var(--rust);
  border-right-color: var(--sun);
  margin-bottom: 20px;
  animation: spin 1800ms linear infinite;
  position: relative;
  z-index: 1;
}

.loader-orbit span {
  display: block;
  width: 34px;
  height: 34px;
  margin: 21px auto;
  border-radius: 8px;
  background: var(--moss);
  transform: rotate(12deg);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseSun {
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 18px rgba(244, 191, 79, 0.16);
  }
}

@keyframes drift {
  50% {
    transform: translateX(24px);
  }
}

@keyframes pathMove {
  to {
    border-bottom-color: rgba(201, 87, 49, 0.58);
  }
}

.glossary-grid h3 {
  margin: 0 0 8px;
  color: var(--moss);
}

.glossary-grid p {
  margin: 0;
  color: #34413d;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .shell {
    width: min(430px, calc(100vw - 20px));
    padding-top: 10px;
  }

  .hero {
    min-height: calc(100vh - 20px);
    grid-template-columns: 1fr;
    gap: 8px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.06;
  }

  .lead {
    font-size: 16px;
  }

  .result-grid,
  .glossary-grid {
    grid-template-columns: 1fr;
  }

  .primary,
  .ghost {
    flex: 1 1 150px;
  }
}

@media (max-height: 680px) {
  :root {
    --stage-height: calc(100vh - 20px);
  }

  .cover-art {
    height: 210px;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.55;
  }

  .field-tags {
    margin-top: 10px;
  }

  .field-tags span,
  .cover-bites span,
  .trail-ribbon span {
    padding: 6px 8px;
    font-size: 12px;
  }

  .actions {
    margin-top: 16px;
  }

  .question-card {
    padding: 14px;
    max-height: calc(var(--stage-height) - 50px);
  }

  .pain {
    margin-bottom: 10px;
    padding: 5px 8px;
    font-size: 13px;
  }

  .question-image {
    aspect-ratio: 2.1 / 1;
    margin-bottom: 10px;
  }

  .question-card h2 {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.14;
  }

  .options {
    gap: 7px;
  }

  .option {
    min-height: 47px;
    padding: 9px 11px;
    line-height: 1.32;
    font-size: 14px;
  }

  .result-card {
    padding: 13px;
    max-height: calc(var(--stage-height) - 56px);
  }

  .result-image {
    aspect-ratio: 2.05 / 1;
    margin-bottom: 9px;
  }

  .result-card h2 {
    font-size: 25px;
  }

  .level,
  .summary {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.35;
  }

  .meter {
    margin-top: 8px;
    padding: 9px;
  }

  .progress__track,
  .meter__track {
    height: 8px;
    margin-top: 7px;
  }

  .result-grid {
    gap: 6px;
    margin-top: 8px;
  }

  .result-grid > div {
    padding: 8px 10px;
  }

  li,
  #suggestedItem,
  blockquote {
    font-size: 12px;
    line-height: 1.32;
  }

  blockquote,
  .share-line {
    margin-top: 8px;
  }

  .share-line {
    font-size: 14px;
  }

  .loader-card {
    padding: 24px 20px;
  }

  .loader-card h2 {
    font-size: 24px;
  }
}
