:root {
  --ivory: #fbf7ef;
  --mist: #eef1ef;
  --ink: #2d3134;
  --soft-ink: #676c70;
  --line: rgba(255, 255, 255, 0.66);
  --glass: rgba(255, 255, 255, 0.58);
  --coral: #e98d7e;
  --apricot: #f5a65b;
  --sage: #a8c5a6;
  --blue: #a9cbe7;
  --accent: #f5a65b;
  --accent-soft: rgba(245, 166, 91, 0.2);
  --shadow: 0 22px 60px rgba(80, 63, 42, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 22% 14%, rgba(245, 166, 91, 0.2), transparent 30rem),
    radial-gradient(circle at 76% 8%, rgba(169, 203, 231, 0.25), transparent 32rem),
    linear-gradient(135deg, #fbf7ef, #eef3f5 52%, #fff8ee);
}

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

.phone-shell {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.78), rgba(237, 244, 245, 0.6)),
    var(--ivory);
  box-shadow: 0 0 80px rgba(73, 66, 55, 0.08);
  transition: background 420ms ease;
}

.phone-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 76%);
}

.ambient {
  position: absolute;
  inset: 0;
  z-index: -2;
  filter: blur(1px);
  pointer-events: none;
}

.orb {
  position: absolute;
  display: block;
  width: 10rem;
  height: 15rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.6rem;
  opacity: 0.58;
  transform: rotate(12deg);
  animation: floatBlock 13s ease-in-out infinite alternate;
}

.orb-coral {
  left: -4.8rem;
  top: 8rem;
  background: linear-gradient(145deg, rgba(233, 141, 126, 0.34), rgba(255, 255, 255, 0.16));
}

.orb-apricot {
  right: -4rem;
  top: 2.8rem;
  height: 11rem;
  background: linear-gradient(145deg, rgba(245, 166, 91, 0.24), rgba(255, 255, 255, 0.16));
  animation-delay: -4s;
}

.orb-sage {
  right: 1.5rem;
  bottom: 10rem;
  background: linear-gradient(145deg, rgba(168, 197, 166, 0.3), rgba(255, 255, 255, 0.22));
  animation-delay: -8s;
}

.orb-blue {
  left: 1.2rem;
  bottom: -4rem;
  width: 14rem;
  height: 16rem;
  background: linear-gradient(145deg, rgba(169, 203, 231, 0.34), rgba(255, 255, 255, 0.18));
  animation-delay: -2s;
}

.screen {
  position: relative;
  display: none;
  align-content: start;
  min-height: 100svh;
  padding: 2.2rem 1.35rem 1.6rem;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition:
    opacity 360ms ease,
    transform 360ms ease;
}

.screen.is-active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: screenIn 300ms ease both;
}

.mini-brand,
.question-top,
.result-nav,
.poster-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.mini-brand {
  justify-content: flex-start;
  color: var(--soft-ink);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.spark {
  display: inline-grid;
  width: 1.3rem;
  height: 1.3rem;
  place-items: center;
  color: #4f5758;
  font-size: 1rem;
}

.hero-copy {
  margin-top: 4.4rem;
}

.eyebrow,
.chapter,
.section-kicker,
.poster-card header p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0.45rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 500;
  line-height: 0.92;
}

.hero-copy h2 {
  margin: 0.5rem 0 0;
  font-size: 1.35rem;
  font-weight: 500;
}

.intro {
  width: min(100%, 19rem);
  margin: 1.5rem 0 0;
  color: var(--soft-ink);
  font-size: 0.9rem;
  line-height: 1.85;
}

.landing-actions {
  align-self: end;
  display: grid;
  gap: 0.9rem;
  margin-top: auto;
  padding-bottom: 1rem;
}

.primary-btn,
.secondary-btn {
  width: 100%;
  min-height: 3.8rem;
  border-radius: 1.25rem;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.primary-btn {
  display: grid;
  place-items: center;
  gap: 0.12rem;
  color: white;
  background: linear-gradient(135deg, #ec8f72, #f6aa58);
  box-shadow: 0 18px 34px rgba(227, 119, 62, 0.24);
}

.primary-btn span {
  font-size: 1rem;
  font-weight: 700;
}

.primary-btn small {
  font-size: 0.66rem;
  font-weight: 700;
  opacity: 0.78;
  text-transform: uppercase;
}

.secondary-btn {
  color: var(--soft-ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(80, 70, 58, 0.08);
}

.primary-btn:active,
.secondary-btn:active,
.option-card:active,
.ghost-icon:active {
  transform: scale(0.98);
}

.hint {
  margin: 0;
  text-align: center;
  color: var(--soft-ink);
  font-size: 0.8rem;
}

.question-top h2 {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.ghost-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 50%;
  color: #586165;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 24px rgba(86, 72, 57, 0.08);
}

.progress-track {
  height: 0.42rem;
  margin: 1.15rem 0 1.4rem;
  overflow: hidden;
  border-radius: 99rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.progress-track span {
  display: block;
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.7));
  transition: width 260ms ease;
}

.question-card,
.option-card,
.advice-card,
.poster-card,
.evidence-item {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.question-card {
  min-height: 12.5rem;
  padding: 1.25rem;
  border-radius: 1.35rem;
}

.question-number {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.question-card h3 {
  margin: 0.9rem 0 0;
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.55;
}

.question-card p:last-child {
  margin: 0.75rem 0 0;
  color: var(--soft-ink);
  font-size: 0.82rem;
  line-height: 1.6;
}

.options {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.option-card {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: center;
  gap: 0.78rem;
  min-height: 4.6rem;
  padding: 0.82rem 0.95rem;
  border-radius: 1rem;
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.option-card:hover,
.option-card.is-picked {
  border-color: rgba(255, 255, 255, 0.95);
  background: color-mix(in srgb, var(--option-color) 20%, rgba(255, 255, 255, 0.58));
  box-shadow: 0 16px 36px rgba(82, 66, 46, 0.13);
}

.option-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--option-color);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--option-color) 42%, transparent);
}

.option-title {
  display: block;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.35;
}

.option-sub {
  display: block;
  margin-top: 0.18rem;
  color: var(--soft-ink);
  font-size: 0.72rem;
  line-height: 1.35;
}

.screen-generating {
  align-content: center;
  justify-items: center;
  text-align: center;
}

.generate-copy {
  margin-bottom: 1rem;
}

.generate-copy h2 {
  margin: 0.35rem 0 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.reveal-stage {
  position: relative;
  width: min(86%, 19rem);
  height: 28rem;
  display: grid;
  place-items: center;
  margin: 0 auto;
  overflow: hidden;
}

.reveal-person {
  position: relative;
  z-index: 2;
  width: 16rem;
  height: 25.5rem;
  object-fit: cover;
  object-position: center top;
  border-radius: 9rem 9rem 4rem 4rem;
  opacity: 0.84;
  filter: drop-shadow(0 26px 42px rgba(86, 70, 52, 0.18));
  animation: revealPerson 2200ms ease forwards;
  clip-path: inset(100% 0 0 0 round 8rem 8rem 3rem 3rem);
}

.light-strip {
  position: absolute;
  z-index: 1;
  width: 4.8rem;
  height: 14rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(180deg, rgba(245, 166, 91, 0.28), rgba(255, 255, 255, 0.12));
  animation: floatBlock 7s ease-in-out infinite alternate;
}

.strip-one {
  left: 1rem;
  top: 5rem;
}

.strip-two {
  right: 0.6rem;
  bottom: 4rem;
  background: linear-gradient(180deg, rgba(169, 203, 231, 0.28), rgba(255, 255, 255, 0.12));
  animation-delay: -2s;
}

.particle {
  position: absolute;
  z-index: 3;
  color: white;
  text-shadow: 0 7px 18px rgba(245, 166, 91, 0.45);
  animation: pulse 1500ms ease-in-out infinite alternate;
}

.particle-one {
  left: 3rem;
  top: 11rem;
  font-size: 2.1rem;
}

.particle-two {
  right: 3.2rem;
  top: 9rem;
}

.particle-three {
  right: 2.3rem;
  bottom: 8rem;
  font-size: 1.5rem;
}

.generate-meter {
  position: relative;
  width: 5.1rem;
  height: 5.1rem;
  margin-top: -0.6rem;
}

.generate-meter svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.generate-meter circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 8;
}

.meter-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
  animation: meter 2100ms ease forwards;
}

.generate-meter strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.generate-status {
  margin: 0.45rem 0 0;
  color: var(--soft-ink);
  font-size: 0.9rem;
}

.screen-result {
  padding-bottom: 1.1rem;
  overflow-y: auto;
}

.result-nav {
  margin-bottom: 0.8rem;
}

.result-hero {
  position: relative;
  min-height: 21rem;
  overflow: hidden;
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at 78% 24%, var(--accent-soft), transparent 12rem),
    rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.result-copy {
  position: relative;
  z-index: 2;
  width: 58%;
  padding: 1.35rem 0 0 1.1rem;
}

.result-copy p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.78rem;
}

.result-copy h2,
.poster-type {
  margin: 0.6rem 0 0;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.04;
}

.result-copy h3 {
  margin: 0.55rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  margin-top: 0.85rem;
  padding: 0.32rem 0.68rem;
  border-radius: 99rem;
  color: #4d5354;
  font-size: 0.78rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--accent) 18%, rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.76);
}

.result-badge::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.28rem color-mix(in srgb, var(--accent) 22%, transparent);
}

.result-hero img {
  position: absolute;
  right: -3.5rem;
  bottom: -2.5rem;
  width: 19rem;
  height: 25rem;
  object-fit: cover;
  object-position: center top;
  filter: drop-shadow(0 24px 42px rgba(95, 76, 54, 0.18));
  transition:
    transform 360ms ease,
    filter 360ms ease,
    opacity 360ms ease;
}

.energy-minus .result-hero img,
.energy-minus .poster-main img {
  transform: translateX(0.7rem) scale(0.96);
  opacity: 0.92;
  filter: saturate(0.92) drop-shadow(0 24px 42px rgba(95, 76, 54, 0.16));
}

.energy-plus .result-hero img,
.energy-plus .poster-main img {
  transform: translateX(-0.15rem) scale(1.02);
  opacity: 1;
  filter: saturate(1.05) drop-shadow(0 24px 42px rgba(95, 76, 54, 0.2));
}

.tag-row,
.poster-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.tag-row {
  margin: 0.9rem 0 1.3rem;
}

.tag,
.poster-tags span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0.36rem 0.75rem;
  border-radius: 99rem;
  color: #4c5355;
  font-size: 0.76rem;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 0.62rem;
}

.evidence-item {
  min-height: 8.2rem;
  padding: 0.7rem;
  border-radius: 1rem;
  animation: softIn 420ms ease both;
}

.evidence-item:nth-child(2) {
  animation-delay: 80ms;
}

.evidence-item:nth-child(3) {
  animation-delay: 160ms;
}

.evidence-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  margin-bottom: 0.72rem;
  border-radius: 0.8rem;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}

.evidence-item strong {
  display: block;
  font-size: 0.76rem;
  line-height: 1.45;
}

.evidence-item p {
  margin: 0.32rem 0 0;
  color: var(--soft-ink);
  font-size: 0.68rem;
  line-height: 1.45;
}

.advice-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1.15rem;
}

.advice-card p:last-child {
  margin: 0.55rem 0 0;
  color: #4f5658;
  font-size: 0.86rem;
  line-height: 1.72;
}

.result-actions,
.poster-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.screen-poster {
  overflow-y: auto;
  padding-bottom: 1.2rem;
}

.poster-card {
  min-height: 38rem;
  padding: 1rem;
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at 20% 20%, var(--accent-soft), transparent 13rem),
    linear-gradient(160deg, rgba(255, 251, 244, 0.76), rgba(255, 255, 255, 0.5));
}

.poster-card header {
  justify-content: flex-start;
}

.poster-card header small {
  color: var(--soft-ink);
  font-size: 0.68rem;
}

.poster-main {
  position: relative;
  min-height: 26rem;
  margin-top: 1.1rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.poster-type {
  position: relative;
  z-index: 2;
  max-width: 11rem;
  padding: 1.2rem 0 0 1rem;
}

.poster-main h2 {
  position: relative;
  z-index: 2;
  margin: 0.45rem 0 0;
  padding-left: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

.poster-main img {
  position: absolute;
  right: -3.8rem;
  bottom: -2.5rem;
  width: 20rem;
  height: 27rem;
  object-fit: cover;
  object-position: center top;
}

.poster-tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0.9rem;
}

.poster-bottom {
  display: grid;
  grid-template-columns: 1fr 5rem;
  align-items: end;
  gap: 1rem;
  margin-top: 1rem;
}

.poster-bottom p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.78rem;
  line-height: 1.7;
}

.qr-placeholder {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
  width: 5rem;
  height: 5rem;
  padding: 0.45rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.74);
}

.qr-placeholder span {
  border-radius: 0.22rem;
  background:
    linear-gradient(90deg, #2f3334 35%, transparent 35% 65%, #2f3334 65%),
    linear-gradient(#2f3334 35%, transparent 35% 65%, #2f3334 65%);
  opacity: 0.8;
}

@keyframes floatBlock {
  from {
    transform: translate3d(0, 0, 0) rotate(10deg);
  }
  to {
    transform: translate3d(0.9rem, -1.1rem, 0) rotate(15deg);
  }
}

@keyframes revealPerson {
  to {
    clip-path: inset(0 0 0 0 round 8rem 8rem 3rem 3rem);
  }
}

@keyframes meter {
  to {
    stroke-dashoffset: 80;
  }
}

@keyframes pulse {
  from {
    opacity: 0.42;
    transform: translateY(0);
  }
  to {
    opacity: 0.96;
    transform: translateY(-0.45rem);
  }
}

@keyframes softIn {
  from {
    opacity: 0;
    transform: translateY(0.65rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  body {
    padding: 2rem 0;
  }

  .phone-shell {
    min-height: 860px;
    border-radius: 2rem;
  }

  .screen {
    min-height: 860px;
  }
}

@media (max-width: 360px) {
  .screen {
    padding-inline: 1rem;
  }

  .hero-copy h1 {
    font-size: 3.35rem;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }
}
