:root {
  color-scheme: dark;
  --page-bg: #0a0907;
  --ink: #12100c;
  --ink-soft: #1b1711;
  --paper: #fff4d8;
  --muted: rgba(255, 244, 216, 0.72);
  --quiet: rgba(255, 244, 216, 0.5);
  --line: rgba(255, 226, 154, 0.22);
  --line-strong: rgba(255, 226, 154, 0.52);
  --card-bg: rgba(255, 244, 216, 0.07);
  --gold: #f6c96d;
  --gold-strong: #ffe29a;
  --jade: #69d1a5;
  --cinnabar: #e4583e;
  --blue: #72b8ff;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.46);
  --frame: #c49a58;
  --frame-soft: rgba(196, 154, 88, 0.22);
  --frame-ink: #3a2617;
  --rank-bg: linear-gradient(135deg, #fff0b6, #f6c96d);
  --rank-text: #150f08;
  --rank-glow: rgba(246, 201, 109, 0.28);
  --style-aura: rgba(255, 226, 154, 0.12);
  --style-wash-a: rgba(228, 88, 62, 0.2);
  --style-wash-b: rgba(105, 209, 165, 0.13);
  --style-base-top: #2a1a11;
  --style-base-mid: #0b0907;
  --style-base-bottom: #17120c;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page-bg);
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(246, 201, 109, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, #16100d 0%, #0a0907 42%, #11100c 100%);
  color: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(255, 244, 216, 0.028) 18px 19px),
    linear-gradient(90deg, rgba(228, 88, 62, 0.18), transparent 18%, transparent 82%, rgba(105, 209, 165, 0.08));
  mix-blend-mode: screen;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
p,
blockquote {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.life-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 14px 34px;
}

.form-view,
.result-view,
.life-form,
.detail-grid {
  display: grid;
  gap: 14px;
}

.launch-copy {
  padding: 14px 2px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.launch-copy h1 {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 58px;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.launch-copy p {
  max-width: 30em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.preview-card,
.life-form,
.share-card,
.reading-card,
.attribute-card,
.rarity-card,
.evidence-card,
.followup-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.preview-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(246, 201, 109, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(228, 88, 62, 0.15), rgba(9, 8, 7, 0.84)),
    #120f0b;
}

.preview-card::before,
.share-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(255, 226, 154, 0.32);
}

.share-card::before {
  inset: 10px;
  border: 2px solid var(--frame);
  box-shadow:
    inset 0 0 0 1px rgba(8, 7, 5, 0.78),
    inset 0 0 0 7px var(--frame-soft),
    0 0 0 1px rgba(8, 7, 5, 0.62);
}

.preview-card::after,
.share-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 244, 216, 0.12), transparent) -140% 0 / 70% 100% no-repeat,
    repeating-linear-gradient(0deg, rgba(255, 244, 216, 0.034) 0 1px, transparent 1px 7px);
  opacity: 0.78;
  animation: foilSweep 8s ease-in-out infinite;
}

.share-card::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 244, 216, 0.12), transparent) -140% 0 / 70% 100% no-repeat,
    radial-gradient(circle at 10% 8%, var(--frame-soft), transparent 18%),
    radial-gradient(circle at 88% 18%, rgba(105, 209, 165, 0.08), transparent 18%),
    repeating-linear-gradient(90deg, transparent 0 17px, rgba(255, 244, 216, 0.028) 17px 18px);
}

.preview-top,
.poster-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.preview-top span {
  color: var(--gold-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.preview-top small {
  border: 1px solid rgba(246, 201, 109, 0.42);
  border-radius: 4px;
  padding: 5px 8px;
  color: var(--paper);
  font-size: 12px;
}

.preview-mark,
.poster-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 26px auto 24px;
  color: var(--gold-strong);
}

.preview-mark {
  width: 168px;
  height: 168px;
}

.preview-mark i,
.poster-art .portrait-frame {
  position: absolute;
  border: 1px solid rgba(255, 226, 154, 0.42);
  transform: rotate(45deg);
}

.preview-mark i {
  width: 132px;
  height: 132px;
  background:
    linear-gradient(135deg, rgba(105, 209, 165, 0.12), rgba(228, 88, 62, 0.12)),
    rgba(255, 244, 216, 0.035);
}

.preview-mark b,
.poster-art b {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 226, 154, 0.56);
  background: rgba(10, 9, 7, 0.78);
  font-family: "Songti SC", "STSong", serif;
  font-weight: 900;
}

.preview-mark b {
  width: 82px;
  height: 82px;
  font-size: 48px;
}

.preview-card h2 {
  position: relative;
  z-index: 1;
  font-family: "Songti SC", "STSong", serif;
  font-size: 35px;
  line-height: 1.08;
}

.preview-card p {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: var(--gold-strong);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.5;
}

.preview-bars {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.preview-bars span {
  height: 5px;
  width: var(--value);
  background: linear-gradient(90deg, var(--cinnabar), var(--gold), var(--jade));
}

.life-form {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 244, 216, 0.1), rgba(255, 244, 216, 0.045)),
    rgba(16, 14, 10, 0.86);
}

.life-basics-grid {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 0.75fr) minmax(0, 1.5fr);
}

.launch-lower-grid {
  display: grid;
  gap: 16px;
}

.demo-qa {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 4px 0;
}

.demo-qa-heading {
  display: grid;
  gap: 4px;
  padding: 8px 0 12px;
}

.demo-qa-heading strong {
  font-size: 18px;
}

.demo-qa-heading span,
.demo-qa-item span {
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.55;
}

.demo-qa-item {
  display: grid;
  gap: 5px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 226, 154, 0.16);
  color: var(--paper);
  text-decoration: none;
}

.demo-qa-item strong {
  color: var(--gold-strong);
  font-size: 14px;
}

.demo-qa-item:hover strong {
  color: var(--paper);
}

.demo-qa-more {
  padding-top: 12px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.form-heading,
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.form-heading span,
.section-title span {
  color: var(--paper);
  font-size: 16px;
  font-weight: 900;
}

.form-heading small,
.section-title small {
  color: var(--quiet);
  text-align: right;
  font-size: 12px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 760;
}

input,
select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 226, 154, 0.18);
  border-radius: 6px;
  padding: 0 13px;
  outline: none;
  background: rgba(255, 244, 216, 0.07);
  color: var(--paper);
}

select option {
  color: #18130d;
}

input:focus,
select:focus {
  border-color: rgba(255, 226, 154, 0.82);
  box-shadow: 0 0 0 3px rgba(246, 201, 109, 0.16);
}

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

.row.three {
  grid-template-columns: repeat(3, 1fr);
}

.birth-moment-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.birth-moment-fieldset legend {
  margin-bottom: 6px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 760;
}

.birth-moment-controls {
  display: grid;
  grid-template-columns: minmax(76px, 1.1fr) minmax(48px, 0.72fr) minmax(48px, 0.72fr) minmax(98px, 1.2fr);
  gap: 8px;
}

.birth-moment-controls select {
  min-width: 0;
}

.birth-place-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.birth-place-field > span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 760;
}

.birth-place-trigger {
  display: flex;
  min-width: 0;
  height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255, 226, 154, 0.28);
  border-radius: 6px;
  padding: 0 11px;
  color: var(--paper);
  background: rgba(255, 244, 216, 0.07);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.birth-place-trigger > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.birth-place-trigger:focus-visible {
  border-color: rgba(255, 226, 154, 0.82);
  box-shadow: 0 0 0 3px rgba(246, 201, 109, 0.16);
  outline: 0;
}

.birth-place-dialog {
  width: min(100% - 28px, 420px);
  max-height: min(680px, calc(100dvh - 28px));
  overflow: auto;
  border: 1px solid rgba(255, 226, 154, 0.28);
  border-radius: 8px;
  padding: 14px;
  color: var(--paper);
  background: #201c15;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55);
}

.birth-place-dialog::backdrop {
  background: rgba(0, 0, 0, 0.66);
}

.birth-place-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.birth-place-dialog-head strong {
  font-size: 16px;
}

.birth-place-dialog .icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 226, 154, 0.2);
  border-radius: 6px;
  color: var(--paper);
  background: transparent;
  font-size: 22px;
  line-height: 1;
}

.birth-place-dialog label,
.birth-place-china-fields,
.birth-place-target-fields {
  display: grid;
  gap: 6px;
}

.birth-place-dialog label > span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 760;
}

.birth-place-china-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.birth-place-target-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.birth-place-results {
  display: grid;
  margin-top: 8px;
  max-height: 212px;
  overflow-y: auto;
  border: 1px solid rgba(255, 226, 154, 0.28);
  border-radius: 6px;
  background: #201c15;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

.birth-place-result {
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid rgba(255, 226, 154, 0.12);
  padding: 9px 11px;
  color: var(--paper);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.birth-place-result:last-child {
  border-bottom: 0;
}

.birth-place-result:hover,
.birth-place-result:focus-visible {
  background: rgba(246, 201, 109, 0.12);
  outline: 0;
}

.birth-place-dialog p {
  margin: 5px 0 0;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 650;
}

.birth-time-field.is-disabled {
  opacity: 0.52;
}

.leap-row {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 10px;
}

.reference-photo-picker {
  display: grid;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 226, 154, 0.16);
  border-bottom: 1px solid rgba(255, 226, 154, 0.16);
}

.reference-photo-copy strong,
.reference-photo-copy p,
.reference-photo-preview {
  margin: 0;
}

.reference-photo-copy strong {
  color: var(--paper);
  font-size: 14px;
}

.reference-photo-copy small {
  color: var(--gold-strong);
  font-size: 11px;
}

.reference-photo-copy p,
.reference-photo-preview figcaption {
  margin-top: 5px;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.55;
}

.reference-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reference-photo-actions input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.reference-photo-actions .ghost-button {
  width: auto;
  min-height: 40px;
  padding: 9px 13px;
  cursor: pointer;
}

.reference-photo-preview {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.reference-photo-preview[hidden] {
  display: none;
}

.reference-photo-preview img {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 226, 154, 0.28);
  border-radius: 6px;
  object-fit: cover;
}

.leap-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.primary-button,
.ghost-button {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-button {
  width: 100%;
  border: 0;
  color: #120d08;
  background: linear-gradient(135deg, #fff0b6 0%, #f6c96d 42%, #e4583e 100%);
  box-shadow: 0 18px 42px rgba(228, 88, 62, 0.22);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: rgba(255, 244, 216, 0.07);
  color: var(--paper);
}

.form-note {
  color: var(--quiet);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.result-view {
  width: min(100%, 520px);
  margin: 0 auto;
  gap: 10px;
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 3px 0 1px;
}

.result-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.result-header h2 {
  font-family: "Songti SC", "STSong", serif;
  font-size: 26px;
  line-height: 1.15;
}

.life-card-image-status {
  margin: 0;
  border: 1px solid rgba(255, 226, 154, 0.24);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 244, 216, 0.06);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.guest-life-card-image-state {
  display: grid;
  gap: 12px;
  overflow: hidden;
  min-height: 530px;
  border: 1px solid rgba(255, 226, 154, 0.34);
  border-radius: 8px;
  padding: 20px;
  background:
    radial-gradient(circle at 78% 18%, rgba(246, 201, 109, 0.18), transparent 28%),
    radial-gradient(circle at 12% 84%, rgba(105, 209, 165, 0.16), transparent 26%),
    repeating-linear-gradient(0deg, rgba(255, 244, 216, 0.035) 0 1px, transparent 1px 8px),
    linear-gradient(155deg, #21170f, #0b0a08 56%, #15130d);
  box-shadow: var(--shadow);
}

.guest-life-card-image-state[data-grade="n"] {
  border-color: rgba(201, 194, 175, 0.36);
}

.guest-life-card-image-state[data-grade="r"] {
  border-color: rgba(208, 120, 72, 0.56);
}

.guest-life-card-image-state[data-grade="sr"] {
  border-color: rgba(105, 209, 165, 0.58);
}

.guest-life-card-image-state[data-grade="ssr"] {
  border-color: rgba(255, 226, 154, 0.74);
  box-shadow: 0 26px 80px rgba(246, 201, 109, 0.18), var(--shadow);
}

.guest-life-card-state-head,
.guest-life-card-state-reveal,
.guest-life-card-progress {
  position: relative;
  z-index: 1;
}

.guest-life-card-state-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--quiet);
  font-size: 13px;
  font-weight: 800;
}

.guest-life-card-state-head b {
  min-width: 42px;
  border: 1px solid rgba(255, 226, 154, 0.5);
  border-radius: 5px;
  padding: 6px 9px;
  color: #180e07;
  background: linear-gradient(135deg, #fff4d8, #f6c96d);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  text-align: center;
}

.guest-life-card-state-reveal {
  display: grid;
  align-content: center;
  gap: 11px;
  min-height: 214px;
  padding: 26px 18px;
  border: 1px solid rgba(255, 226, 154, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 244, 216, 0.1), rgba(11, 10, 8, 0.72));
}

.guest-life-card-state-reveal small {
  color: var(--jade);
  font-size: 12px;
  font-weight: 800;
}

.guest-life-card-state-reveal h3 {
  color: var(--paper);
  font-family: "Songti SC", "STSong", serif;
  font-size: 32px;
  line-height: 1.12;
}

.guest-life-card-insight {
  min-height: 94px;
  padding: 12px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 244, 216, 0.07);
}

.guest-life-card-insight span {
  color: var(--jade);
  font-size: 12px;
  font-weight: 800;
}

.guest-life-card-insight p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.guest-life-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.guest-life-card-stats span {
  min-width: 0;
  padding: 7px 5px;
  border: 1px solid rgba(255, 226, 154, 0.22);
  border-radius: 5px;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.guest-life-card-stats b {
  display: block;
  margin-bottom: 2px;
  color: var(--quiet);
  font-size: 11px;
}

.guest-life-card-progress {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(255, 226, 154, 0.26);
  border-radius: 8px;
  background: rgba(5, 5, 4, 0.48);
}

.guest-life-card-progress strong {
  color: var(--paper);
  font-size: 15px;
}

.guest-life-card-progress p,
.guest-life-card-progress small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.guest-life-card-progress i {
  display: block;
  overflow: hidden;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 244, 216, 0.12);
}

.guest-life-card-progress i b {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--jade), var(--gold), var(--cinnabar));
  animation: guest-life-card-image-wait 1.4s ease-in-out infinite alternate;
}

.guest-life-card-state-action {
  align-self: end;
  color: var(--quiet);
  font-size: 13px;
  text-align: center;
}

.guest-life-card-retry {
  width: 100%;
  color: var(--gold-strong);
}

@keyframes guest-life-card-image-wait {
  from { transform: translateX(-15%); }
  to { transform: translateX(165%); }
}

.share-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 11px;
  overflow: hidden;
  height: 780px;
  min-height: 0;
  padding: 22px;
  --frame: #b18a4d;
  --frame-soft: rgba(177, 138, 77, 0.22);
  --frame-ink: #3b2716;
  --rank-bg: linear-gradient(135deg, #efe0bc, #b18a4d);
  --rank-text: #18110b;
  --rank-glow: rgba(177, 138, 77, 0.24);
  background:
    radial-gradient(circle at 50% 26%, var(--style-aura), transparent 26%),
    linear-gradient(135deg, var(--style-wash-a) 0%, transparent 30%),
    linear-gradient(225deg, var(--style-wash-b) 0%, transparent 28%),
    repeating-linear-gradient(0deg, rgba(255, 244, 216, 0.034) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, var(--style-base-top) 0%, var(--style-base-mid) 54%, var(--style-base-bottom) 100%);
}

.generated-share-stack {
  display: grid;
  gap: 8px;
  width: min(100%, 390px);
  margin: 0 auto;
}

.generated-share-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(255, 226, 154, 0.38);
  border-radius: 8px;
  background: #0b0a08;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
  --generated-qr-size: 20.5%;
  --generated-qr-right: 6.2%;
  --generated-qr-bottom: 5.8%;
}

.generated-share-card > img:first-child {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.generated-qr-slot {
  position: absolute;
  right: var(--generated-qr-right);
  bottom: var(--generated-qr-bottom);
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--generated-qr-size);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(141, 93, 36, 0.32);
  border-radius: 5px;
  padding: clamp(5px, 1.45%, 8px);
  background: linear-gradient(180deg, #fffaf0, #f8edcf);
  box-shadow:
    0 0 0 1px rgba(255, 226, 154, 0.42) inset,
    0 12px 28px rgba(0, 0, 0, 0.28);
  transform: none;
  clip-path: inset(0 round 5px);
}

.generated-qr-slot img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  transform: none;
  border-radius: 2px;
  background: #fff;
  object-fit: contain;
}

.generated-share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 1px solid rgba(255, 226, 154, 0.24);
  border-radius: 8px;
  padding: 7px;
  background:
    linear-gradient(180deg, rgba(255, 244, 216, 0.08), rgba(255, 244, 216, 0.035)),
    rgba(11, 10, 8, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.generated-share-actions .ghost-button {
  flex: 1 1 0;
  justify-content: center;
  min-height: 38px;
  min-width: 0;
  padding: 9px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.generated-share-actions span {
  flex: 1 0 100%;
  min-height: 1.4em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.generated-share-actions span:empty {
  display: none;
}

.life-card-conversion {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(105, 209, 165, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(105, 209, 165, 0.12), rgba(246, 201, 109, 0.08));
}

.life-card-conversion strong {
  color: var(--paper);
  font-size: 16px;
}

.life-card-conversion > div > span {
  display: block;
  margin-bottom: 5px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 800;
}

.life-card-conversion p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.life-card-conversion ul {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.life-card-conversion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.life-card-conversion-actions > * {
  flex: 1 1 160px;
  justify-content: center;
  min-height: 40px;
  text-align: center;
}

.share-card[data-style="forest-scroll"] {
  --style-aura: rgba(105, 209, 165, 0.2);
  --style-wash-a: rgba(82, 183, 136, 0.16);
  --style-wash-b: rgba(246, 201, 109, 0.09);
  --style-base-top: #172417;
  --style-base-mid: #090d09;
  --style-base-bottom: #132018;
}

.share-card[data-style="cinnabar-stage"] {
  --style-aura: rgba(228, 88, 62, 0.22);
  --style-wash-a: rgba(246, 201, 109, 0.16);
  --style-wash-b: rgba(228, 88, 62, 0.18);
  --style-base-top: #2a0f0b;
  --style-base-mid: #0d0706;
  --style-base-bottom: #21100c;
}

.share-card[data-style="mountain-bronze"] {
  --style-aura: rgba(226, 193, 126, 0.22);
  --style-wash-a: rgba(237, 220, 172, 0.18);
  --style-wash-b: rgba(86, 164, 132, 0.12);
  --style-base-top: #2a271c;
  --style-base-mid: #15130f;
  --style-base-bottom: #242114;
}

.share-card[data-style="metal-armor"] {
  --style-aura: rgba(198, 193, 170, 0.2);
  --style-wash-a: rgba(114, 184, 255, 0.12);
  --style-wash-b: rgba(246, 201, 109, 0.16);
  --style-base-top: #1d211f;
  --style-base-mid: #080a0b;
  --style-base-bottom: #15191d;
}

.share-card[data-style="night-river"] {
  --style-aura: rgba(114, 184, 255, 0.2);
  --style-wash-a: rgba(116, 214, 211, 0.12);
  --style-wash-b: rgba(114, 184, 255, 0.16);
  --style-base-top: #101b2b;
  --style-base-mid: #06090f;
  --style-base-bottom: #111b27;
}

.share-card[data-style="jianghu-ink"] {
  --style-aura: rgba(255, 226, 154, 0.12);
  --style-wash-a: rgba(228, 88, 62, 0.2);
  --style-wash-b: rgba(105, 209, 165, 0.13);
}

.share-card[data-grade="n"] {
  --frame: #aaa18d;
  --frame-soft: rgba(170, 161, 141, 0.2);
  --frame-ink: #23211c;
  --rank-bg: linear-gradient(135deg, #e1dac7, #8d8778);
  --rank-text: #161510;
  --rank-glow: rgba(170, 161, 141, 0.18);
  filter: saturate(0.84);
}

.share-card[data-grade="r"] {
  --frame: #d07848;
  --frame-soft: rgba(208, 120, 72, 0.24);
  --frame-ink: #3f1e16;
  --rank-bg: linear-gradient(135deg, #ffd7a0, #d07848);
  --rank-text: #160b06;
  --rank-glow: rgba(208, 120, 72, 0.24);
}

.share-card[data-grade="sr"] {
  --frame: #72d7b5;
  --frame-soft: rgba(114, 215, 181, 0.2);
  --frame-ink: #122b24;
  --rank-bg: linear-gradient(135deg, #effff7, #72d7b5 46%, #f6c96d);
  --rank-text: #061612;
  --rank-glow: rgba(114, 215, 181, 0.26);
}

.share-card[data-grade="ssr"] {
  --frame: #ffe29a;
  --frame-soft: rgba(255, 226, 154, 0.3);
  --frame-ink: #4d2714;
  --rank-bg: linear-gradient(135deg, #fff6c8, #ffe29a 38%, #e4583e 100%);
  --rank-text: #170c05;
  --rank-glow: rgba(255, 226, 154, 0.34);
  border-color: rgba(255, 226, 154, 0.64);
  box-shadow: 0 30px 95px var(--rank-glow), var(--shadow);
}

.poster-top,
.poster-art,
.poster-copy,
.poster-stats,
.poster-footer {
  position: relative;
  z-index: 1;
}

.poster-brand {
  display: grid;
  gap: 4px;
}

.poster-brand span {
  font-family: "Songti SC", "STSong", serif;
  font-size: 19px;
  font-weight: 900;
}

.poster-brand small {
  color: var(--quiet);
  font-size: 11px;
}

.rarity-badge {
  border: 1px solid var(--frame);
  border-radius: 4px;
  padding: 7px 10px;
  color: var(--rank-text);
  background: var(--rank-bg);
  box-shadow: 0 12px 30px var(--rank-glow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.poster-art {
  width: 178px;
  height: 186px;
  margin: 0 auto;
  isolation: isolate;
}

.poster-art::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid var(--frame);
  background:
    linear-gradient(135deg, rgba(255, 244, 216, 0.06), transparent 50%),
    radial-gradient(circle at 50% 44%, var(--frame-soft), transparent 54%),
    rgba(7, 6, 5, 0.66);
  box-shadow:
    inset 0 0 0 1px rgba(10, 8, 5, 0.8),
    0 18px 44px rgba(0, 0, 0, 0.25);
  transform: rotate(45deg);
  z-index: -1;
}

.poster-art::after {
  content: "";
  position: absolute;
  inset: 35px 21px 21px 35px;
  border: 1px solid var(--frame);
  background:
    linear-gradient(140deg, transparent 0 46%, var(--frame-soft) 46% 52%, transparent 52%),
    rgba(0, 0, 0, 0.18);
  transform: rotate(-8deg);
  z-index: -1;
}

.rank-ribbon {
  position: absolute;
  top: 3px;
  left: 1px;
  z-index: 2;
  min-width: 46px;
  border: 1px solid var(--frame);
  border-radius: 4px;
  padding: 5px 7px;
  color: var(--rank-text);
  background: var(--rank-bg);
  box-shadow: 0 10px 24px var(--rank-glow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.poster-art .frame-one {
  width: 174px;
  height: 174px;
  border-color: var(--frame);
  transform: rotate(45deg);
}

.poster-art .frame-two {
  width: 138px;
  height: 138px;
  border-color: rgba(105, 209, 165, 0.48);
  transform: rotate(8deg);
}

.poster-art .frame-three {
  width: 98px;
  height: 98px;
  border-color: rgba(228, 88, 62, 0.5);
  transform: rotate(78deg);
}

.portrait-mount {
  position: absolute;
  z-index: 1;
  inset: 11px 31px 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 226, 154, 0.2);
  background: rgba(6, 5, 4, 0.42);
  clip-path: polygon(50% 0, 100% 18%, 100% 78%, 50% 100%, 0 78%, 0 18%);
}

.portrait-svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.38));
}

.poster-art b {
  position: absolute;
  left: 12px;
  bottom: 8px;
  z-index: 3;
  width: 35px;
  height: 35px;
  color: var(--gold-strong);
  font-size: 22px;
  border-color: var(--frame);
  box-shadow: 0 0 18px var(--rank-glow);
  transform: rotate(5deg);
}

.poster-art em {
  position: absolute;
  right: 7px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(228, 88, 62, 0.72);
  color: #ffd9bf;
  background: rgba(77, 16, 10, 0.66);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  transform: rotate(-8deg);
  z-index: 3;
}

.poster-copy {
  display: grid;
  gap: 8px;
}

.poster-kicker {
  color: var(--jade);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
}

.poster-copy h1 {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 39px;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.identity-hook,
.poster-proof p,
.reading-card p,
.rarity-card p,
.evidence-points p,
.followup-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.identity-hook {
  color: rgba(255, 244, 216, 0.86);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.58;
}

.poster-copy blockquote {
  color: var(--gold-strong);
  font-family: "Songti SC", "STSong", serif;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.42;
}

.poster-proof {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--frame);
  padding: 7px 0 7px 10px;
  background: linear-gradient(90deg, var(--frame-soft), transparent);
}

.poster-proof span {
  color: var(--jade);
  font-size: 11px;
  font-weight: 900;
}

.poster-traits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.poster-traits span {
  overflow: hidden;
  border: 1px solid rgba(255, 226, 154, 0.2);
  border-radius: 4px;
  padding: 6px 5px;
  color: var(--paper);
  background: rgba(255, 244, 216, 0.055);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 850;
}

.poster-stats {
  align-self: end;
  display: grid;
  gap: 5px;
  border-top: 1px solid rgba(255, 226, 154, 0.24);
  padding-top: 8px;
  overflow: hidden;
}

.poster-stat {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 12px;
  overflow: hidden;
  padding-bottom: 5px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 850;
}

.poster-stat strong {
  color: var(--gold-strong);
  text-align: right;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1;
}

.poster-stat i {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  width: var(--value);
  background: linear-gradient(90deg, var(--cinnabar), var(--gold), var(--jade));
}

.poster-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  border-top: 1px solid rgba(255, 226, 154, 0.24);
  padding-top: 10px;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.45;
}

.poster-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.poster-meta span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-slot {
  display: grid;
  grid-template-columns: 48px minmax(0, 54px);
  align-items: center;
  gap: 8px;
  min-width: 112px;
}

.qr-real-image {
  display: block;
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 244, 216, 0.92);
  background: #fff7df;
  box-shadow: 0 0 0 1px var(--frame), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.qr-mark {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 244, 216, 0.92);
  background:
    linear-gradient(90deg, var(--ink) 50%, transparent 0) 0 0 / 10px 10px,
    linear-gradient(var(--ink) 50%, transparent 0) 0 0 / 10px 10px,
    #fff7df;
  box-shadow: 0 0 0 1px var(--frame), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.qr-mark i {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 3px solid var(--ink);
  background: #fff7df;
}

.qr-mark i:nth-child(1) {
  left: 4px;
  top: 4px;
}

.qr-mark i:nth-child(2) {
  right: 4px;
  top: 4px;
}

.qr-mark i:nth-child(3) {
  left: 4px;
  bottom: 4px;
}

.qr-slot b {
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.28;
}

.reading-card blockquote {
  color: var(--gold-strong);
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.45;
}

.reading-card p {
  color: rgba(255, 244, 216, 0.78);
}

.reading-copy {
  display: grid;
  gap: 9px;
}

.reading-copy .reading-lead {
  color: rgba(255, 244, 216, 0.9);
  font-weight: 850;
}

.reading-card,
.attribute-card,
.rarity-card,
.evidence-card,
.followup-card {
  display: grid;
  gap: 13px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 244, 216, 0.09), rgba(255, 244, 216, 0.04)),
    rgba(12, 10, 8, 0.82);
}

.attribute-radar {
  display: grid;
  gap: 14px;
}

.attribute-overview {
  display: grid;
  grid-template-columns: minmax(168px, 206px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 226, 154, 0.16);
  border-radius: 8px;
  padding: 13px;
  background:
    radial-gradient(circle at 23% 25%, rgba(246, 201, 109, 0.22), transparent 36%),
    radial-gradient(circle at 76% 12%, rgba(105, 209, 165, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 244, 216, 0.08), rgba(255, 244, 216, 0.035));
}

.attribute-web-shell {
  position: relative;
  width: min(100%, 198px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.attribute-web {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.attribute-web-grid polygon,
.attribute-web-grid line {
  fill: none;
  stroke: rgba(255, 226, 154, 0.2);
  stroke-width: 1;
}

.attribute-web-fill {
  fill: rgba(246, 201, 109, 0.22);
  stroke: rgba(246, 201, 109, 0.56);
  stroke-width: 2;
}

.attribute-web-line {
  fill: none;
  stroke: var(--gold-strong);
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.attribute-web-nodes circle {
  fill: var(--jade);
  stroke: #09251a;
  stroke-width: 1.5;
}

.attribute-web-axis {
  fill: rgba(255, 244, 216, 0.78);
  font-size: 9.5px;
  font-weight: 850;
  paint-order: stroke;
  stroke: rgba(8, 7, 5, 0.72);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.attribute-web-core {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 226, 154, 0.34);
  border-radius: 999px;
  background: rgba(8, 7, 5, 0.78);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.attribute-web-core strong {
  color: var(--gold-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
}

.attribute-web-core span {
  max-width: 44px;
  overflow: hidden;
  color: var(--quiet);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1;
}

.attribute-overview-copy {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.attribute-overview-copy p {
  color: rgba(255, 244, 216, 0.78);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.attribute-top-tags {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.attribute-top-tags span {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(246, 201, 109, 0.2);
  border-radius: 999px;
  padding: 5px 7px;
  background: rgba(9, 8, 7, 0.42);
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.attribute-top-tags b {
  color: var(--gold-strong);
  white-space: nowrap;
}

.attribute-list {
  display: grid;
  gap: 0;
}

.attribute-row {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 50px;
  align-items: start;
  gap: 10px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 226, 154, 0.12);
  padding: 13px 0 14px;
}

.attribute-row:first-child {
  border-top: 0;
}

.attribute-row > * {
  position: relative;
  z-index: 1;
}

.attribute-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 226, 154, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(228, 88, 62, 0.28), rgba(105, 209, 165, 0.12)),
    rgba(255, 244, 216, 0.08);
  color: var(--gold-strong);
  font-family: "Songti SC", "STSong", serif;
  font-size: 15px;
  font-weight: 900;
}

.attribute-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.attribute-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
}

.attribute-label strong {
  color: var(--paper);
  font-size: 15px;
  font-weight: 900;
}

.attribute-label em {
  color: var(--jade);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  line-height: 1.25;
}

.attribute-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.attribute-row p {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin: 0;
  color: rgba(255, 244, 216, 0.66);
  font-size: 11px;
  line-height: 1.35;
}

.attribute-row p span {
  border: 1px solid rgba(246, 201, 109, 0.22);
  border-radius: 999px;
  padding: 2px 6px;
  color: var(--gold-strong);
}

.attribute-score {
  display: grid;
  justify-items: end;
  gap: 1px;
}

.attribute-score strong {
  color: var(--gold-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.attribute-score span {
  color: var(--quiet);
  font-size: 10px;
}

.attribute-row i {
  position: absolute;
  inset: auto auto 0 48px;
  width: var(--score);
  max-width: calc(100% - 48px);
  height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold), var(--jade), var(--blue));
  border-radius: 999px;
}

.attribute-more {
  border-top: 1px solid rgba(255, 226, 154, 0.12);
}

.attribute-more summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 0 4px;
  color: var(--gold-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

.attribute-more summary::-webkit-details-marker {
  display: none;
}

.attribute-more summary small {
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(255, 226, 154, 0.08);
  color: var(--quiet);
  font-size: 10px;
  font-weight: 760;
}

.attribute-more-close,
.attribute-more[open] .attribute-more-open {
  display: none;
}

.attribute-more[open] .attribute-more-close {
  display: inline;
}

.attribute-more-list {
  display: grid;
  gap: 0;
}

.reason-list,
.evidence-points {
  display: grid;
  gap: 8px;
}

.reason-list p,
.evidence-points p {
  border-left: 3px solid rgba(246, 201, 109, 0.52);
  padding: 8px 0 8px 10px;
  background: linear-gradient(90deg, rgba(255, 226, 154, 0.08), transparent);
}

.pillars {
  color: var(--gold-strong);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.68;
}

.followup-list {
  display: grid;
  gap: 8px;
}

.followup-list a {
  display: block;
  border: 1px solid rgba(246, 201, 109, 0.22);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--paper);
  background: rgba(246, 201, 109, 0.07);
  text-decoration: none;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
}

.followup-list a:hover,
.ghost-button:hover,
.primary-button:hover {
  filter: brightness(1.05);
}

@keyframes foilSweep {
  0%,
  36% {
    background-position: -140% 0, 0 0;
  }

  58%,
  100% {
    background-position: 210% 0, 0 0;
  }
}

@media (min-width: 860px) {
  .life-shell {
    width: min(100%, 1120px);
    padding: 42px 28px;
  }

  .form-view {
    grid-template-columns: minmax(0, 0.82fr) minmax(390px, 1fr);
    align-items: start;
  }

  .launch-copy {
    padding-top: 42px;
  }

  .launch-copy h1 {
    font-size: 74px;
  }

  .preview-card {
    min-height: 520px;
  }

  .life-form {
    align-self: stretch;
  }

  .result-view {
    width: min(100%, 1120px);
    grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
    align-items: start;
    gap: 18px 24px;
  }

  .result-header {
    grid-column: 1 / -1;
  }

  .generated-share-stack,
  .share-card {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    top: 28px;
  }

  .share-card {
    width: min(100%, 390px);
    height: 680px;
    margin: 0 auto;
  }

  .detail-grid {
    grid-column: 2;
    grid-row: 2 / span 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: start;
  }

  .reading-card,
  .attribute-card,
  .followup-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .life-shell {
    padding-inline: 10px;
  }

  .launch-copy h1 {
    font-size: 48px;
  }

  .row,
  .row.three {
    grid-template-columns: 1fr;
  }

  .result-header {
    display: grid;
  }

  .result-header-actions {
    justify-content: flex-start;
  }

  .ghost-button {
    width: fit-content;
  }

  .share-card {
    height: min(720px, calc(100vh - 28px));
    min-height: 650px;
    padding: 18px;
  }

  .attribute-overview {
    grid-template-columns: minmax(144px, 160px) minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .attribute-web-shell {
    width: min(100%, 158px);
  }

  .attribute-overview-copy p {
    font-size: 11px;
  }

  .attribute-top-tags span {
    font-size: 9.5px;
    padding: 4px 6px;
  }

  .poster-art {
    width: 178px;
    height: 190px;
  }

  .poster-art .frame-one {
    width: 150px;
    height: 150px;
  }

  .poster-art .frame-two {
    width: 118px;
    height: 118px;
  }

  .poster-art .frame-three {
    width: 86px;
    height: 86px;
  }

  .portrait-mount {
    inset: 10px 25px 7px;
  }

  .poster-art b {
    width: 31px;
    height: 31px;
    font-size: 19px;
  }

  .poster-copy h1 {
    font-size: 40px;
  }

  .poster-copy blockquote {
    font-size: 20px;
  }
}

/* Compact launch experience */
.form-view {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.launch-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 14px;
}

.launch-copy {
  min-width: 0;
  padding: 8px 0;
}

.launch-copy h1 {
  font-size: 42px;
  line-height: 1.02;
}

.launch-copy p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.62;
}

.launch-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.launch-points span {
  border: 1px solid rgba(255, 226, 154, 0.22);
  border-radius: 4px;
  padding: 5px 7px;
  color: var(--gold-strong);
  background: rgba(255, 244, 216, 0.05);
  font-size: 10px;
  font-weight: 800;
}

.launch-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
}

.launch-actions .primary-button {
  width: auto;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #120d08;
  text-decoration: none;
  font-size: 13px;
}

.launch-register-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.preview-card {
  min-height: 0;
  aspect-ratio: 2 / 3;
  margin: 0;
  padding: 0;
  border-color: rgba(255, 226, 154, 0.5);
}

.preview-card::before {
  inset: 6px;
  z-index: 2;
}

.preview-card picture {
  display: block;
  width: 100%;
  height: 100%;
}

.preview-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card figcaption {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  display: grid;
  gap: 2px;
  padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(5, 5, 4, 0.92));
}

.preview-card figcaption strong {
  color: var(--gold-strong);
  font-size: 11px;
}

.preview-card figcaption span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.question-demo {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.question-demo-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.question-demo-copy strong {
  font-size: 14px;
}

.question-demo-copy span {
  color: var(--quiet);
  font-size: 11px;
  text-align: right;
}

.question-chips {
  display: flex;
  overflow-x: auto;
  gap: 7px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.question-chips::-webkit-scrollbar {
  display: none;
}

.question-chips a {
  flex: 0 0 auto;
  border: 1px solid rgba(105, 209, 165, 0.25);
  border-radius: 5px;
  padding: 8px 10px;
  color: var(--paper);
  background: rgba(105, 209, 165, 0.07);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.life-form {
  gap: 10px;
  padding: 16px;
  scroll-margin-top: 12px;
  border-color: rgba(255, 226, 154, 0.17);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
}

.identity-grid {
  display: grid;
  gap: 10px;
}

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

.identity-grid .wide-field {
  grid-column: 1 / -1;
}

.life-camera-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.life-camera-sheet {
  width: min(100%, 520px);
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 226, 154, 0.35);
  border-radius: 8px;
  padding: 16px;
  background: #15110d;
  box-shadow: var(--shadow);
}

.life-camera-head,
.life-camera-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.life-camera-head h2 {
  font-size: 20px;
}

.life-camera-head .eyebrow {
  display: block;
  margin-bottom: 4px;
}

.life-camera-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--paper);
  background: rgba(255, 244, 216, 0.08);
  font-size: 25px;
}

.life-camera-frame {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #050504;
}

.life-camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.life-camera-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 12px;
}

.life-camera-actions > * {
  width: 50%;
}

@media (min-width: 720px) {
  .life-shell {
    width: min(100%, 960px);
  }

  .launch-stage {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
  }

  .launch-copy {
    padding-top: 20px;
  }

  .launch-copy h1 {
    font-size: 68px;
  }

  .launch-copy p {
    max-width: 36em;
    font-size: 15px;
  }

  .preview-card figcaption {
    padding: 50px 16px 15px;
  }

  .preview-card figcaption strong {
    font-size: 13px;
  }

  .preview-card figcaption span {
    font-size: 11px;
  }

  .question-demo {
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
  }

  .question-demo-copy {
    display: grid;
    justify-content: initial;
    gap: 3px;
  }

  .question-demo-copy span {
    text-align: left;
  }

  .question-chips {
    flex-wrap: wrap;
  }

  .life-form {
    width: min(100%, 440px);
    margin-inline: auto;
  }

  .launch-lower-grid {
    grid-template-columns: minmax(410px, 1fr) minmax(0, 1.08fr);
    align-items: start;
    gap: 24px;
  }

  .launch-lower-grid .life-form {
    width: 100%;
    margin: 0;
  }

  .life-form label {
    gap: 5px;
  }

  .life-form input,
  .life-form select {
    height: 42px;
  }

  .identity-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(100px, 0.65fr) minmax(110px, 0.75fr);
  }

  .identity-grid .wide-field {
    grid-column: auto;
  }

  .birth-moment-controls select {
    padding-inline: 7px;
    font-size: 12px;
  }

  .birth-moment-fieldset legend {
    margin-bottom: 5px;
  }

  .leap-row {
    min-height: 26px;
  }

  .reference-photo-picker {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 16px;
    padding: 10px 0;
  }

  .reference-photo-copy p {
    margin-top: 3px;
    font-size: 11px;
  }

  .reference-photo-actions {
    flex-wrap: nowrap;
  }

  .reference-photo-actions .ghost-button {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 12px;
  }

  .reference-photo-preview {
    grid-column: 1 / -1;
  }

  .life-form > .primary-button {
    min-height: 44px;
  }

  .form-note {
    font-size: 11px;
    line-height: 1.4;
  }
}

@media (max-width: 420px) {
  .row,
  .row.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .row.three input {
    padding-inline: 8px;
  }

  .launch-copy h1 {
    font-size: 38px;
  }
}

/* Shared acquisition refinement: keep the card's collectible mood while reducing launch-page noise. */
.life-shell {
  width: min(100%, 1080px);
  padding: 28px 20px 42px;
}

.launch-stage {
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 20px;
}

.launch-copy {
  padding-block: 12px;
}

.launch-copy h1 {
  max-width: 7em;
  font-size: 48px;
  line-height: 1.04;
}

.launch-copy p {
  max-width: 34em;
  color: rgba(255, 244, 216, 0.76);
}

.launch-actions {
  margin-top: 16px;
}

.preview-card {
  border-color: rgba(105, 209, 165, 0.4);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.life-form {
  border-color: rgba(255, 226, 154, 0.22);
  padding: 18px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.reference-photo-picker {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 0;
}

.reference-photo-picker {
  display: grid;
}

.reference-photo-picker > summary {
  cursor: pointer;
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 800;
}

.reference-photo-picker > summary small {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 600;
}

.reference-photo-picker:not([open]) > :not(summary) {
  display: none;
}

.reference-photo-copy p {
  max-width: 30em;
}

.reference-photo-actions {
  flex-wrap: nowrap;
}

.demo-qa {
  padding-top: 0;
}

@media (min-width: 720px) {
  .life-shell {
    padding: 38px 28px 54px;
  }

  .launch-stage {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 56px;
  }

  .launch-copy h1 {
    font-size: 64px;
  }

  .launch-lower-grid {
    grid-template-columns: minmax(390px, 430px) minmax(0, 1fr);
    gap: 48px;
  }

  .life-form {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .life-shell {
    padding-inline: 14px;
  }

  .launch-stage {
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: start;
    gap: 12px;
  }

  .launch-copy h1 {
    font-size: 32px;
    line-height: 1.06;
  }

  .launch-copy p {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.55;
  }

  .launch-points {
    margin-top: 10px;
  }

  .preview-card figcaption {
    padding: 40px 10px 10px;
  }

  .preview-card figcaption strong {
    font-size: 12px;
  }

  .preview-card figcaption span {
    font-size: 10px;
  }

  .reference-photo-picker {
    grid-template-columns: 1fr;
  }

  .reference-photo-actions {
    flex-wrap: wrap;
  }

  .life-form {
    gap: 8px;
    padding: 12px;
  }

  .life-form label {
    gap: 4px;
  }

  .life-form input,
  .life-form select {
    height: 42px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .identity-grid {
    gap: 8px;
  }

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

  .life-basics-grid {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 1.6fr);
  }

  .identity-grid .wide-field {
    grid-column: 1 / -1;
  }

  .row,
  .row.three {
    gap: 8px;
  }

  .birth-moment-fieldset legend {
    margin-bottom: 4px;
  }

  .leap-row {
    min-height: 26px;
    gap: 8px;
    font-size: 11px;
  }

  .life-form > .primary-button {
    min-height: 44px;
  }

  .birth-moment-controls {
    gap: 6px;
  }

  .birth-moment-controls select {
    padding-inline: 7px;
    font-size: 12px;
  }

  .birth-place-china-fields,
  .birth-place-target-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 370px) {
  .launch-stage {
    grid-template-columns: minmax(0, 1fr) 160px;
  }

  .launch-copy h1 {
    font-size: 30px;
  }
}
