:root {
  --ink: #292620;
  --muted: rgba(41, 38, 32, 0.66);
  --line: rgba(63, 54, 43, 0.15);
  --panel: rgba(255, 252, 246, 0.84);
  --panel-strong: rgba(250, 246, 238, 0.96);
  --red: #d95c57;
  --blue: #536fba;
  --gold: #d6a64c;
  --green: #6aa77d;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #eee9df;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.backdrop {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(242, 237, 227, 0.96) 0%, rgba(245, 240, 231, 0.78) 44%, rgba(238, 232, 221, 0.9) 100%),
    url("./assets/luminous-book.png") center / cover no-repeat;
  transform: scale(1.02);
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 16%, rgba(217, 92, 87, 0.14), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(83, 111, 186, 0.14), transparent 30%),
    radial-gradient(circle at 50% 88%, rgba(214, 166, 76, 0.16), transparent 32%);
}

body.result-view {
  background: #090b0f;
}

body.result-view .backdrop {
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.97), rgba(14, 17, 22, 0.9), rgba(7, 9, 12, 0.97)),
    url("./assets/luminous-book.png") center / cover no-repeat;
}

body.result-view .backdrop::after {
  background:
    radial-gradient(circle at 20% 18%, rgba(217, 92, 87, 0.1), transparent 30%),
    radial-gradient(circle at 78% 24%, rgba(83, 111, 186, 0.1), transparent 32%),
    radial-gradient(circle at 50% 88%, rgba(214, 166, 76, 0.1), transparent 34%);
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.phone-frame {
  width: min(100%, 430px);
  min-height: min(880px, calc(100vh - 44px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(63, 54, 43, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(244, 239, 230, 0.98)),
    #f8f4ec;
  box-shadow:
    0 34px 100px rgba(70, 55, 38, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
}

.phone-frame.is-result-view {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #111419, #171a20);
  box-shadow: 0 34px 100px rgba(4, 6, 9, 0.42);
}

.phone-frame.is-result-view .app-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.phone-frame.is-result-view .brand-lockup,
.phone-frame.is-result-view .icon-button {
  color: rgba(248, 244, 236, 0.86);
}

.site-footer {
  flex: 0 0 auto;
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.site-footer a {
  color: rgba(245, 240, 231, 0.48);
  font-size: 11px;
  line-height: 1.5;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: rgba(245, 240, 231, 0.78);
  text-decoration: underline;
}

.app-header {
  height: 66px;
  display: grid;
  grid-template-columns: 74px 1fr 74px;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  line-height: 1;
  font-size: 24px;
}

.back-button {
  width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 18px;
}

.back-button small {
  font-size: 12px;
  line-height: 1;
}

#restartButton {
  justify-self: end;
}

.icon-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.app-header .icon-button[hidden] {
  display: none;
}

.brand-lockup {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  color: rgba(41, 38, 32, 0.75);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.brand-mark {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: conic-gradient(from 30deg, var(--red), var(--gold), var(--green), var(--blue), var(--red));
  box-shadow: 0 0 18px rgba(214, 166, 76, 0.65);
}

.screen {
  display: none;
  flex: 1;
  padding: 22px;
}

.screen.is-active {
  display: flex;
  flex-direction: column;
}

.screen-intro {
  justify-content: space-between;
  gap: 22px;
}

.screen-access {
  justify-content: flex-start;
}

.access-layout {
  width: 100%;
  display: grid;
  gap: 16px;
}

.access-hero {
  padding: 8px 4px 4px;
}

.access-hero h1 {
  max-width: none;
  margin-bottom: 14px;
  font-size: 42px;
}

.access-hero .intro-copy {
  max-width: 350px;
  margin-bottom: 16px;
}

.access-meta {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid rgba(214, 166, 76, 0.22);
  border-radius: var(--radius);
  color: rgba(245, 240, 231, 0.78);
  background: rgba(214, 166, 76, 0.07);
  font-size: 12.5px;
  font-weight: 680;
  line-height: 1.55;
}

.access-trust-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.access-trust-list li {
  position: relative;
  padding-left: 17px;
  color: rgba(245, 240, 231, 0.64);
  font-size: 12.5px;
  line-height: 1.55;
}

.access-trust-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(214, 166, 76, 0.35);
}

.access-trust-list li:nth-child(2)::before {
  background: var(--blue);
}

.access-trust-list li:nth-child(3)::before {
  background: var(--green);
}

.access-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.72), rgba(247, 241, 231, 0.94)),
    url("./assets/luminous-book.png") center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.access-heading h2,
.access-section h2 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.2;
}

.access-heading .eyebrow,
.access-section .eyebrow {
  margin-bottom: 8px;
}

.access-heading p:last-child {
  margin: 0;
  color: rgba(245, 240, 231, 0.62);
  font-size: 13.5px;
  line-height: 1.7;
}

.access-panel .field {
  margin-bottom: 0;
}

.access-status {
  min-height: 24px;
  margin-bottom: 0;
  color: rgba(41, 38, 32, 0.62);
  font-size: 13px;
  line-height: 1.6;
}

.access-help {
  margin: 0;
  color: rgba(245, 240, 231, 0.42);
  font-size: 11.5px;
  line-height: 1.65;
}

.access-section {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.result-preview-list {
  display: grid;
  gap: 0;
}

.result-preview-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.result-preview-item:first-child {
  border-top: 0;
}

.result-preview-index {
  padding-top: 2px;
  color: rgba(214, 166, 76, 0.72);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.result-preview-item h3 {
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.4;
}

.result-preview-item p,
.start-notes p {
  margin-bottom: 0;
  color: rgba(245, 240, 231, 0.58);
  font-size: 12.5px;
  line-height: 1.65;
}

.start-notes {
  display: grid;
  gap: 11px;
}

.start-notes h2 {
  margin-bottom: 2px;
}

.access-status.is-error {
  color: #a63f39;
}

.access-status.is-ok {
  color: #397a4d;
}

.hero-panel,
.question-card,
.report-card,
.poster-card,
.start-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(249, 245, 237, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.hero-panel {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.26), rgba(245, 239, 228, 0.92)),
    url("./assets/luminous-book.png") center bottom / cover no-repeat;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(245, 239, 228, 0.28));
}

.hero-panel > * {
  position: relative;
}

.eyebrow,
.question-kicker {
  margin: 0 0 12px;
  color: rgba(41, 38, 32, 0.54);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 7em;
  margin-bottom: 16px;
  font-size: 48px;
  line-height: 1.05;
  font-weight: 760;
}

.intro-copy {
  max-width: 280px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.color-orbit {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.dot {
  height: 5px;
  border-radius: 999px;
}

.red {
  background: var(--red);
}

.blue {
  background: var(--blue);
}

.gold {
  background: var(--gold);
}

.green {
  background: var(--green);
}

.start-card {
  padding: 16px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.field input {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  padding: 0 14px;
  outline: none;
}

.primary-button {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: var(--radius);
  color: #111214;
  background: linear-gradient(135deg, #f7e4b7, #d9a945 48%, #a97528);
  font-weight: 760;
  box-shadow: 0 16px 36px rgba(214, 166, 76, 0.22);
}

.secondary-button {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(63, 54, 43, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  font-weight: 720;
}

.preview-button {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  font-weight: 680;
}

.preview-button.is-hidden {
  display: none;
}

.dev-preview {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.dev-preview span {
  color: rgba(41, 38, 32, 0.54);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.dev-preview div {
  display: grid;
  gap: 10px;
}

#qaPreviewSelect {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: rgba(245, 240, 231, 0.86);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23f5f0e7' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-linejoin='round' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 6px;
}

#qaPreviewSelect:focus {
  border-color: rgba(214, 166, 76, 0.45);
  background: rgba(255, 255, 255, 0.09);
}

#qaPreviewSelect optgroup {
  font-weight: 700;
  color: var(--muted);
}

#qaPreviewSelect option {
  color: var(--ink);
  background: #f8f4ec;
}

.dev-preview.is-hidden {
  display: none;
}

.screen-quiz {
  gap: 20px;
}

.progress-wrap {
  display: grid;
  gap: 10px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green), var(--blue));
  transition: width 220ms ease;
}

.question-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.question-card h2 {
  min-height: 0;
  margin-bottom: 20px;
  font-size: 28px;
  line-height: 1.28;
  font-weight: 760;
}

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

.option-button {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.option-button:hover,
.option-button.is-selected {
  transform: translateY(-1px);
  border-color: rgba(63, 54, 43, 0.34);
  background: rgba(250, 245, 235, 0.96);
}

.option-key {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fffaf1;
  background: var(--ink);
  font-weight: 800;
}

.option-copy {
  font-size: 15px;
  line-height: 1.45;
}

.screen-result {
  gap: 14px;
  overflow-y: auto;
}

.result-hero {
  min-height: 330px;
  display: grid;
  align-content: end;
  padding: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(8, 10, 13, 0.52), rgba(12, 15, 19, 0.94)),
    url("./assets/luminous-book.png") center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5f0e7;
}

.result-hero h2 {
  margin-bottom: 8px;
  font-size: 36px;
  line-height: 1.1;
}

.result-hero p {
  color: rgba(245, 240, 231, 0.76);
  line-height: 1.7;
}

.result-hero .result-palette {
  margin-top: 8px;
  color: rgba(245, 240, 231, 0.92);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.04em;
}

.score-ring {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin-top: 12px;
  border-radius: 50%;
  background: conic-gradient(var(--red) 0deg, var(--gold) 90deg, var(--green) 180deg, var(--blue) 270deg, var(--red) 360deg);
}

.score-distribution {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.score-summary {
  display: grid;
  gap: 6px;
}

.score-chip {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 7px;
  color: rgba(245, 240, 231, 0.72);
  font-size: 11px;
}

.score-chip i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.score-chip strong {
  color: #f5f0e7;
  font-size: 12px;
}

.ring-center {
  width: 76px;
  height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #15191f;
  color: #f7f2e9;
  font-weight: 800;
}

.ring-center strong,
.ring-center small {
  display: block;
  text-align: center;
}

.ring-center strong {
  font-size: 20px;
  line-height: 1.05;
}

.ring-center small {
  margin-top: 4px;
  color: rgba(245, 240, 231, 0.52);
  font-size: 9px;
  font-weight: 600;
}

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

.metric-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.metric-row {
  display: grid;
  grid-template-columns: 94px 1fr 34px;
  align-items: center;
  gap: 10px;
  color: rgba(41, 38, 32, 0.76);
  font-size: 13px;
}

.metric-row strong {
  color: var(--ink);
  font-size: 15px;
}

.score-divider {
  padding-top: 4px;
  color: rgba(41, 38, 32, 0.42);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.score-row {
  display: grid;
  grid-template-columns: 64px 1fr 34px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.report-card {
  padding: 18px;
}

.is-result-view .report-card {
  border-color: transparent;
  color: #f5f0e7;
  background: transparent;
  box-shadow: none;
}

.is-result-view .report-heading,
.is-result-view .report-card h3,
.is-result-view .evidence-item strong {
  color: #f5f0e7;
}

.is-result-view .report-card p,
.is-result-view .report-card li {
  color: rgba(245, 240, 231, 0.7);
}

.is-result-view .evidence-item {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.is-result-view .evidence-item span {
  color: rgba(245, 240, 231, 0.46);
}

.is-result-view .full-report-content {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.is-result-view .result-quote {
  color: #f7f2e9;
  background: color-mix(in srgb, var(--result-accent, var(--gold)) 13%, rgba(255, 255, 255, 0.025));
}

.is-result-view .poster-card {
  display: none;
}

.is-result-view .result-actions {
  border-color: rgba(255, 255, 255, 0.1);
  color: #f5f0e7;
  background: rgba(255, 255, 255, 0.035);
}

.is-result-view .result-actions p {
  color: rgba(245, 240, 231, 0.58);
}

.is-result-view .primary-button {
  background: linear-gradient(110deg, #f3d88e, #c9902d);
  box-shadow: 0 10px 28px rgba(201, 144, 45, 0.2);
}

.report-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(245, 240, 231, 0.78);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.report-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.report-card h3 {
  margin: 0 0 10px;
  color: #f6f1e8;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.result-quote {
  margin-bottom: 16px;
  padding: 16px;
  border-left: 3px solid var(--result-accent, var(--gold));
  border-radius: var(--radius);
  color: #f7f2e9;
  background: color-mix(in srgb, var(--result-accent, var(--gold)) 13%, transparent);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.65;
}

.report-section {
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid color-mix(in srgb, var(--result-accent, var(--gold)) 62%, transparent);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.report-section::before {
  content: none;
}

.report-section > p:first-of-type,
.report-section-split > div > p:first-of-type {
  color: rgba(248, 244, 236, 0.9);
  font-size: 14px;
  line-height: 1.75;
}

.contrast-hook {
  display: block;
  margin: 2px 0 12px;
  color: color-mix(in srgb, var(--result-accent, var(--gold)) 58%, #f7f2e9);
  font-size: 15px;
  line-height: 1.65;
}

.report-section strong {
  color: #f6f1e8;
}

.report-section-split {
  display: grid;
  gap: 16px;
}

.report-section-split > div + div {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.evidence-grid {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
}

.evidence-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(63, 54, 43, 0.12);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.evidence-item span {
  color: rgba(41, 38, 32, 0.52);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.evidence-item strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.evidence-red {
  border-left-color: var(--red);
}

.evidence-blue {
  border-left-color: var(--blue);
}

.evidence-gold {
  border-left-color: var(--gold);
}

.evidence-green {
  border-left-color: var(--green);
}

.report-card p,
.report-card li {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.report-card ul {
  margin: 0 0 14px;
  padding-left: 18px;
}

.full-report-content {
  border-top: 0;
  margin-top: 10px;
  padding-top: 2px;
}

.full-report {
  display: grid;
  gap: 10px;
  opacity: 1;
}

.report-disclaimer {
  margin: 24px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 240, 231, 0.38) !important;
  font-size: 10px !important;
  line-height: 1.55 !important;
}

.poster-card {
  padding: 20px;
  color: #111214;
  background: linear-gradient(135deg, #f4efe5, #ded5c4);
}

.poster-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 52px;
  color: rgba(17, 18, 20, 0.58);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.poster-card h3 {
  max-width: 8em;
  margin-bottom: 12px;
  color: #111214;
  font-size: 34px;
  line-height: 1.05;
}

.poster-card p {
  color: rgba(17, 18, 20, 0.68);
  line-height: 1.65;
}

.poster-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 8px;
  margin-top: 32px;
}

.poster-bar {
  display: grid;
  justify-items: stretch;
  align-items: end;
  gap: 5px;
}

.poster-bar i {
  width: 100%;
  min-height: 12px;
  border-radius: var(--radius);
}

.poster-bar strong,
.poster-bar small {
  line-height: 1;
}

.poster-bar strong {
  font-size: 12px;
}

.poster-bar small {
  color: rgba(17, 18, 20, 0.56);
  font-size: 10px;
}

.result-actions {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.result-actions p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.result-save-status {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(214, 166, 76, 0.34);
  border-radius: var(--radius);
  color: #f5f0e7;
  background: rgba(214, 166, 76, 0.09);
  font-size: 13px;
  line-height: 1.55;
}

.result-save-status[hidden] {
  display: none;
}

.result-save-status.is-error {
  border-color: rgba(217, 92, 87, 0.48);
  background: rgba(217, 92, 87, 0.11);
}

.result-save-status.is-ok {
  border-color: rgba(106, 167, 125, 0.46);
  background: rgba(106, 167, 125, 0.1);
}

.result-save-status .secondary-button {
  min-height: 42px;
}

.action-dialog {
  width: min(92vw, 440px);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(63, 54, 43, 0.18);
  border-radius: 18px;
  color: var(--ink);
  background: #fbf7ef;
  box-shadow: 0 30px 100px rgba(70, 55, 38, 0.28);
}

.action-dialog::backdrop {
  background: rgba(2, 4, 7, 0.8);
  backdrop-filter: blur(8px);
}

.dialog-panel {
  max-height: 92vh;
  display: grid;
  gap: 14px;
  padding: 20px;
  overflow-y: auto;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dialog-heading small {
  color: rgba(41, 38, 32, 0.5);
  letter-spacing: 0.12em;
}

.dialog-heading h2 {
  margin: 6px 0 0;
  font-size: 24px;
}

.dialog-close {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 24px;
  line-height: 1;
}

.poster-preview-wrap {
  overflow: hidden;
  border-radius: 10px;
  background: #ece4d5;
}

#sharePoster {
  width: 100%;
  height: auto;
  display: block;
}

.dialog-tip {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.share-copy {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #f5f0e7;
  background: rgba(255, 255, 255, 0.065);
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.75;
}

.share-copy::selection,
.share-copy *::selection {
  color: #ffffff;
  background: #416fb5;
}

.purchase-link {
  display: block;
  padding: 13px 14px;
  border-radius: var(--radius);
  color: #5b421b;
  background: rgba(214, 166, 76, 0.16);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 720;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 560px) {
  .app-shell {
    padding: 0;
  }

  .phone-frame {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .screen {
    padding: 16px;
  }

  .access-layout {
    gap: 14px;
  }

  .access-hero {
    padding: 4px 2px 2px;
  }

  .access-hero h1 {
    font-size: 36px;
  }

  .access-hero .intro-copy {
    margin-bottom: 13px;
    font-size: 14px;
    line-height: 1.65;
  }

  .access-meta {
    margin-bottom: 12px;
    padding: 10px 11px;
    font-size: 12px;
  }

  .access-trust-list {
    gap: 6px;
  }

  .access-panel,
  .access-section {
    padding: 18px;
  }

  .hero-panel {
    min-height: 360px;
  }

  h1 {
    font-size: 44px;
  }

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

/* Unified dark product theme: access, intro, questions and results share one visual world. */
body {
  color: #f5f0e7;
  background: #090b0f;
}

.backdrop {
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.97), rgba(14, 17, 22, 0.9), rgba(7, 9, 12, 0.97)),
    url("./assets/luminous-book.png") center / cover no-repeat;
}

.backdrop::after {
  background:
    radial-gradient(circle at 20% 18%, rgba(217, 92, 87, 0.1), transparent 30%),
    radial-gradient(circle at 78% 24%, rgba(83, 111, 186, 0.1), transparent 32%),
    radial-gradient(circle at 50% 88%, rgba(214, 166, 76, 0.1), transparent 34%);
}

.phone-frame,
.phone-frame.is-result-view {
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f0e7;
  background: linear-gradient(180deg, #111419, #171a20);
  box-shadow: 0 34px 100px rgba(4, 6, 9, 0.42);
}

.app-header,
.phone-frame.is-result-view .app-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.brand-lockup,
.icon-button,
.phone-frame.is-result-view .brand-lockup,
.phone-frame.is-result-view .icon-button {
  color: rgba(248, 244, 236, 0.86);
}

.icon-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.access-panel,
.hero-panel,
.question-card,
.start-card {
  border-color: rgba(255, 255, 255, 0.1);
  color: #f5f0e7;
  background:
    linear-gradient(180deg, rgba(29, 32, 38, 0.94), rgba(20, 23, 28, 0.97)),
    url("./assets/luminous-book.png") center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.field span,
.intro-copy,
.progress-meta,
.question-kicker,
.access-status,
.dev-preview span {
  color: rgba(245, 240, 231, 0.58);
}

.field input {
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f0e7;
  background: rgba(255, 255, 255, 0.055);
}

.field input::placeholder {
  color: rgba(245, 240, 231, 0.32);
}

.preview-button,
.secondary-button,
.dev-preview button {
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f0e7;
  background: rgba(255, 255, 255, 0.05);
}

.option-button {
  border-color: rgba(255, 255, 255, 0.1);
  color: #f5f0e7;
  background: rgba(255, 255, 255, 0.045);
}

.option-button:hover,
.option-button.is-selected {
  border-color: rgba(214, 166, 76, 0.58);
  background: rgba(214, 166, 76, 0.1);
}

.option-key {
  color: rgba(245, 240, 231, 0.56);
  background: rgba(255, 255, 255, 0.06);
}

.progress-track {
  background: rgba(255, 255, 255, 0.08);
}

.action-dialog::backdrop {
  background: rgba(3, 5, 8, 0.78);
}

.dialog-panel {
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f0e7;
  background: #171a20;
}

.dialog-heading small,
.dialog-tip {
  color: rgba(245, 240, 231, 0.52);
}

.result-palette {
  display: block;
  color: rgba(245, 240, 231, 0.62);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

/* Share toast for localhost */
.share-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 28px;
  border-radius: 10px;
  color: #f5f0e7;
  background: rgba(23, 26, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 650;
  z-index: 9999;
  opacity: 0;
  transition: opacity 280ms ease, transform 280ms ease;
  pointer-events: none;
}

.share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Poster generation actions */
.poster-gen-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

#posterPreviewSection[hidden] {
  display: none;
}

/* ===== 结果页新结构 ===== */

/* Section wrapper */
.result-section {
  padding: 20px 0 8px;
}

.section-title {
  margin: 0 0 14px;
  color: #f6f1e8;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

/* 二、最像你的三件事 */
.top-three-list {
  display: grid;
  gap: 10px;
}

.top-three-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(245, 240, 231, 0.82);
  font-size: 14px;
  line-height: 1.6;
}

.top-three-emoji {
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
}

/* 三、五个生活场景 */
.result-accordion {
  padding-bottom: 0;
}

.accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f6f1e8;
  background: transparent;
  font-size: 16px;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
}

.accordion-icon {
  font-size: 18px;
  font-weight: 400;
  color: rgba(245, 240, 231, 0.5);
  transition: transform 200ms ease;
}

.accordion-body {
  padding: 14px 0 8px;
}

.accordion-body[hidden] {
  display: none;
}

.scene-summary {
  margin: 0 0 14px;
  color: rgba(245, 240, 231, 0.62);
  font-size: 13px;
  line-height: 1.7;
}

.result-accordion .evidence-grid {
  margin-top: 0;
  margin-bottom: 8px;
}

/* 四、深度解读 */
.accordion-group {
  display: grid;
  gap: 2px;
}

.dive-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.dive-item.is-open {
  border-color: rgba(255, 255, 255, 0.12);
}

.dive-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 14px;
  border: 0;
  color: rgba(245, 240, 231, 0.78);
  background: rgba(255, 255, 255, 0.025);
  font-size: 14px;
  font-weight: 680;
  text-align: left;
  cursor: pointer;
}

.dive-item.is-open .dive-toggle {
  color: #f6f1e8;
  background: rgba(255, 255, 255, 0.045);
}

.dive-body {
  padding: 14px;
}

.dive-body[hidden] {
  display: none;
}

.dive-block {
  margin-bottom: 16px;
}

.dive-block:last-child {
  margin-bottom: 0;
}

.dive-block h4 {
  margin: 0 0 6px;
  color: rgba(245, 240, 231, 0.58);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.04em;
}

.dive-block p {
  margin: 0;
  color: rgba(245, 240, 231, 0.76);
  font-size: 13.5px;
  line-height: 1.75;
}

.dive-block .contrast-hook {
  display: block;
  margin: 0 0 10px;
  color: color-mix(in srgb, var(--result-accent, var(--gold)) 62%, #f7f2e9);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.6;
}

/* 五、两种力量怎么一起用 */
.result-summary-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.combo-list {
  margin: 0;
  padding-left: 18px;
  list-style: none;
}

.combo-list li {
  position: relative;
  padding: 8px 0;
  padding-left: 14px;
  color: rgba(245, 240, 231, 0.76);
  font-size: 13.5px;
  line-height: 1.7;
}

.combo-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--result-accent, var(--gold));
}

.combo-list li strong {
  color: #f6f1e8;
}

.result-summary-card .report-disclaimer {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10px !important;
}

.flow-guidance {
  margin: 0;
  color: rgba(245, 240, 231, 0.76);
  font-size: 13.5px;
  line-height: 1.75;
}

/* 结果总览下的卡片按钮 */
#savePosterButtonTop {
  margin: 12px 0 4px;
}

/* Result view adjustments */
.is-result-view .screen-result {
  overflow-y: auto;
}

.is-result-view .result-section {
  color: #f5f0e7;
}

/* 全局展开/收起按钮 */
.expand-all-button {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: rgba(245, 240, 231, 0.72);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background 180ms ease;
}

.expand-all-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* 长截图提示 */
.screenshot-tip {
  margin: 18px 0 4px;
  color: rgba(245, 240, 231, 0.36);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

/* Responsive layout: preserve the mobile flow, use available width on tablet and desktop. */
@media (min-width: 561px) {
  .phone-frame,
  .phone-frame.is-result-view {
    width: min(100%, 1120px);
  }

  .screen {
    padding: 28px;
  }

  .screen-intro,
  .screen-quiz {
    width: 100%;
    max-width: 760px;
    align-self: center;
    padding: 34px 30px;
  }

  .question-card {
    padding: 30px;
  }

  .question-card h2 {
    font-size: 30px;
  }

  .option-button {
    min-height: 68px;
    padding: 14px 16px;
  }

  .result-preview-list,
  .result-accordion .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .result-preview-item {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
  }

  .result-preview-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .result-preview-item:last-child:nth-child(odd),
  .result-accordion .evidence-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .start-notes,
  .result-summary-card,
  .result-actions {
    width: min(100%, 760px);
    justify-self: center;
  }

  .result-hero {
    min-height: 390px;
  }

  .result-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-actions > p,
  .result-actions > .result-save-status {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .screen-access {
    padding: 42px 46px;
  }

  .access-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: start;
    gap: 24px;
  }

  .access-hero {
    grid-column: 1;
    grid-row: 1;
    padding: 34px 24px 24px 8px;
  }

  .access-hero h1 {
    max-width: 8em;
    font-size: 54px;
  }

  .access-hero .intro-copy {
    max-width: 440px;
    font-size: 16px;
  }

  .access-meta,
  .access-trust-list {
    max-width: 460px;
  }

  .access-panel {
    grid-column: 2;
    grid-row: 1;
    min-height: 100%;
    align-content: center;
    padding: 28px;
  }

  .result-preview {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .result-preview-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-preview-item:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .start-notes {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

@media (min-width: 960px) {
  .screen-result.is-active {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    padding: 34px 38px;
    overflow: visible;
  }

  .screen-result > .result-hero {
    grid-column: 1 / span 7;
    grid-row: 1 / span 2;
    min-height: 430px;
  }

  .screen-result > #savePosterButtonTop {
    grid-column: 8 / -1;
    grid-row: 1;
    align-self: end;
    margin: 0;
  }

  .screen-result > #topThreeSection {
    grid-column: 8 / -1;
    grid-row: 2;
    padding: 0;
  }

  .screen-result > #scenesSection {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .screen-result > #deepDiveSection {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .screen-result > #comboSection {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  .screen-result > .poster-card {
    grid-column: 1 / -1;
    grid-row: 6;
  }

  .screen-result > .screenshot-tip {
    grid-column: 1 / -1;
    grid-row: 7;
  }

  .screen-result > .result-actions {
    grid-column: 1 / -1;
    grid-row: 8;
  }

  .screen-result .result-accordion .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-result .accordion-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
  }

  .screen-result .result-section {
    max-width: 100%;
  }
}
