.pet-shell {
  display: grid;
}

.pet-stage {
  padding: 18px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.landing-stage,
.choose-stage,
.quiz-stage,
.analyzing-stage,
.pet-result-stage {
  display: grid;
  gap: 16px;
}

.landing-stage,
.choose-stage,
.analyzing-stage {
  grid-template-columns: 1.04fr 0.96fr;
}

.landing-copy-card,
.choose-copy-card,
.quiz-card,
.analyzing-copy-panel,
.choose-support-card {
  padding: 28px;
}

.landing-choice-card,
.analyzing-visual-panel {
  padding: 22px;
}

.landing-title,
.choose-title {
  font-size: clamp(44px, 5vw, 66px);
}

.choose-copy-card {
  display: grid;
  align-content: start;
}

.choose-support-card {
  display: grid;
  align-content: start;
  gap: 18px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 217, 188, 0.82), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(218, 239, 231, 0.88), transparent 22%),
    linear-gradient(180deg, rgba(255, 249, 240, 0.98) 0%, rgba(255, 235, 214, 0.94) 100%);
}

.landing-metrics,
.landing-choice-grid,
.result-action-row,
.result-footer-actions,
.result-poster-badges,
.quiz-progress-line,
.archive-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.choose-metrics {
  margin-top: 18px;
}

.landing-choice-card {
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 217, 188, 0.82), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(218, 239, 231, 0.88), transparent 22%),
    linear-gradient(180deg, rgba(255, 249, 240, 0.98) 0%, rgba(255, 235, 214, 0.94) 100%);
}

.landing-choice-grid {
  align-items: stretch;
}

.pet-select-preview {
  flex: 1 1 240px;
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(231, 211, 191, 0.9);
}

.pet-select-art {
  height: 300px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff9f3 0%, #ffead6 100%);
  padding: 16px;
}

.pet-select-art img,
.pet-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pet-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.pet-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 2px solid rgba(33, 16, 13, 0.16);
  background:
    radial-gradient(circle at 85% 12%, rgba(77, 232, 179, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 247, 234, 0.86) 100%);
  border-radius: 24px;
  padding: 14px;
  display: grid;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(134, 79, 39, 0.08);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease,
    filter 0.18s ease;
}

.pet-card::before,
.pet-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.pet-card::before {
  inset: 8px;
  border: 2px solid rgba(33, 16, 13, 0.95);
  background:
    linear-gradient(#21100d, #21100d) 0 0 / 30px 3px no-repeat,
    linear-gradient(#21100d, #21100d) 0 0 / 3px 30px no-repeat,
    linear-gradient(#21100d, #21100d) 100% 0 / 30px 3px no-repeat,
    linear-gradient(#21100d, #21100d) 100% 0 / 3px 30px no-repeat,
    linear-gradient(#21100d, #21100d) 0 100% / 30px 3px no-repeat,
    linear-gradient(#21100d, #21100d) 0 100% / 3px 30px no-repeat,
    linear-gradient(#21100d, #21100d) 100% 100% / 30px 3px no-repeat,
    linear-gradient(#21100d, #21100d) 100% 100% / 3px 30px no-repeat;
}

.pet-card::after {
  right: -18px;
  bottom: -16px;
  width: 62%;
  height: 44px;
  background: #ff5b23;
  transform: rotate(-5deg);
}

.pet-picker.has-selection .pet-card[aria-pressed="false"] {
  opacity: 0.56;
  filter: saturate(0.65);
  transform: scale(0.985);
}

.pet-card.active,
.pet-card[aria-pressed="true"] {
  transform: translateY(-2px);
  border-color: #21100d;
  background:
    radial-gradient(circle at 88% 10%, rgba(77, 232, 179, 0.55), transparent 20%),
    radial-gradient(circle at 16% 92%, rgba(255, 206, 75, 0.36), transparent 22%),
    repeating-linear-gradient(-9deg, rgba(33, 16, 13, 0.06) 0 1px, transparent 1px 8px),
    #fff7e9;
  box-shadow:
    9px 9px 0 #ff5b23,
    0 24px 48px rgba(134, 79, 39, 0.2);
}

.pet-card:hover {
  transform: translateY(-2px);
  border-color: rgba(33, 16, 13, 0.48);
  box-shadow: 0 18px 34px rgba(134, 79, 39, 0.12);
}

.pet-card[aria-pressed="true"]::before,
.pet-card[aria-pressed="true"]::after {
  opacity: 1;
}

.pet-card[aria-pressed="true"] .pet-card-visual img {
  transform: translateY(-5px) scale(1.04);
  filter: drop-shadow(0 18px 16px rgba(52, 20, 8, 0.22));
}

.pet-card[aria-pressed="true"] .pet-card-lock {
  opacity: 1;
  transform: rotate(-2deg) translateY(0) scale(1);
  animation: petLockPop 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.pet-card[aria-pressed="true"] .pet-card-scan {
  animation: petCardScan 0.5s ease-out;
}

.pet-card:active {
  transform: translateY(0) scale(0.98);
}

.pet-card-visual {
  position: relative;
  min-height: 310px;
  border-radius: 22px;
  border: 1px solid rgba(33, 16, 13, 0.08);
  background:
    radial-gradient(circle at 52% 42%, #fffaf0 0%, #ffe8cf 54%, #ffd17c 100%);
  padding: 16px;
  overflow: hidden;
}

.pet-card-visual::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: repeating-linear-gradient(-12deg, rgba(33, 16, 13, 0.08) 0 2px, transparent 2px 10px);
  opacity: 0.45;
}

.pet-card-visual img {
  position: relative;
  z-index: 1;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.pet-card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
}

.pet-card-copy span {
  width: fit-content;
  padding: 3px 7px;
  background: #21100d;
  color: #fff7e9;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
}

.pet-card-copy strong {
  font-size: 28px;
  color: var(--ink);
}

.pet-card-copy small {
  font-size: 15px;
  color: var(--ink-soft);
}

.pet-card-lock {
  position: absolute;
  top: 14px;
  right: 12px;
  z-index: 3;
  padding: 7px 10px;
  border: 2px solid #21100d;
  background: #ff5b23;
  color: #fff7e9;
  box-shadow: 4px 4px 0 #21100d;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  opacity: 0;
  transform: rotate(-2deg) translateY(-8px) scale(0.92);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.pet-card-scan {
  position: absolute;
  inset: -35%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 36%, rgba(255, 255, 255, 0.58) 48%, transparent 60%);
  opacity: 0;
  transform: translateX(-45%) rotate(8deg);
}

.pet-choice-status {
  width: fit-content;
  margin: 14px 0 0;
  padding: 8px 11px;
  border: 2px solid rgba(33, 16, 13, 0.18);
  background: rgba(255, 247, 233, 0.8);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.pet-choice-status.is-locked {
  border-color: #21100d;
  background: #ffce4b;
  color: #21100d;
  box-shadow: 4px 4px 0 #21100d;
  transform: rotate(-1deg);
}

.archive-picker {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(231, 211, 191, 0.95);
  background: rgba(255, 249, 241, 0.72);
}

.quick-preview-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(231, 211, 191, 0.9);
  background: rgba(255, 255, 255, 0.72);
}

.quick-preview-visual {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
}

.quick-preview-visual img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 20px;
  padding: 12px;
  background: linear-gradient(180deg, #fff9f3 0%, #ffead6 100%);
}

.quick-preview-visual strong {
  display: block;
  margin-top: 10px;
  font-size: 26px;
  color: var(--ink);
}

.quick-report-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(231, 211, 191, 0.9);
  background: rgba(255, 255, 255, 0.72);
}

.quick-report-title {
  display: grid;
  gap: 6px;
}

.quick-report-title strong {
  color: var(--ink);
  font-family: "Noto Serif SC", serif;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.16;
}

.quick-report-title span {
  color: var(--ink-soft);
  font-weight: 700;
}

.quick-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick-report-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 111, 45, 0.16);
  background: rgba(255, 244, 232, 0.78);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.3;
}

.quick-report-grid b {
  color: var(--brand);
  font-size: 18px;
}

.archive-picker-head {
  margin-bottom: 14px;
}

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

.choose-start-btn,
.landing-start-btn {
  margin-top: 18px;
}

.quiz-stage {
  max-width: 920px;
  margin: 0 auto;
}

.quiz-card {
  min-height: 620px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(22px, 4vw, 42px);
}

.progress-wrap {
  flex: 1 1 auto;
  height: 10px;
  border-radius: 999px;
  background: rgba(245, 220, 198, 0.8);
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #f9a245 0%, #f36e24 100%);
}

.progress-text {
  font-weight: 800;
  color: var(--brand-deep);
}

.question-title {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  width: 100%;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(231, 211, 191, 0.95);
  background: rgba(255, 252, 248, 0.86);
  padding: 16px 18px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.option.selected {
  border-color: rgba(243, 110, 36, 0.58);
  background: rgba(255, 236, 219, 0.98);
  box-shadow: inset 0 0 0 2px rgba(243, 110, 36, 0.24);
}

.options.is-advancing .option {
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .option:hover:not(.selected) {
    border-color: rgba(243, 110, 36, 0.22);
    background: rgba(255, 249, 241, 0.96);
    transform: translateY(-1px);
  }
}

.quiz-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.quiz-tip-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(231, 211, 191, 0.92);
  background: rgba(255, 249, 241, 0.76);
  color: var(--ink-soft);
}

.quiz-tip-box p {
  margin: 0;
  line-height: 1.6;
}

html[data-screen="quiz"],
body[data-screen="quiz"] {
  overflow: hidden;
}

body[data-screen="quiz"] .pet-page,
body[data-screen="quiz"] .pet-shell {
  min-height: 100dvh;
}

body[data-screen="quiz"] .pet-page {
  position: fixed;
  inset: 0;
  width: 100vw;
  margin: 0;
}

body[data-screen="quiz"] .pet-shell {
  grid-template-rows: auto 1fr;
  border-radius: 0;
}

body[data-screen="quiz"] .pet-seo-section {
  display: none;
}

body[data-screen="quiz"] .pet-topbar {
  min-height: 0;
}

body[data-screen="quiz"] .pet-topbar .board-nav {
  display: none;
}

body[data-screen="quiz"] .pet-stage {
  padding: 12px 18px 18px;
}

body[data-screen="quiz"] .quiz-stage {
  width: min(920px, 100%);
  min-height: calc(100dvh - 116px);
  align-items: stretch;
}

body[data-screen="quiz"] .quiz-card {
  min-height: 0;
  height: calc(100dvh - 116px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  align-content: stretch;
  overflow: hidden;
}

body[data-screen="quiz"] .options {
  min-height: 0;
  align-content: start;
  overflow: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

body[data-screen="quiz"] .quiz-tip-box {
  padding: 10px 12px;
  font-size: 13px;
}

.analyzing-stage {
  min-height: min(760px, calc(100vh - 120px));
}

.analyzing-stage-single {
  width: min(720px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
}

.analyzing-copy-panel,
.analyzing-visual-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(248, 139, 72, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 251, 244, 0.96) 0%, rgba(255, 234, 215, 0.9) 52%, rgba(230, 247, 239, 0.88) 100%);
}

.analyzing-copy-panel::after,
.analyzing-visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(117, 70, 35, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 70, 35, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 74%, transparent);
}

.analyzing-copy-panel > *,
.analyzing-visual-panel > * {
  position: relative;
  z-index: 1;
}

.an-live-tag,
.an-species-pill {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.82);
  border: 1px solid rgba(245, 158, 84, 0.34);
  color: var(--brand-deep);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.analyzing-visual-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

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

.analyzing-inline-copy .lead,
.analyzing-inline-copy .muted {
  margin: 0;
}

.an-oracle-shell {
  position: relative;
  min-height: min(420px, 58vh);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(44, 29, 22, 0.96) 0%, rgba(107, 55, 31, 0.9) 52%, rgba(250, 145, 62, 0.88) 100%);
  padding: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 26px 70px rgba(107, 55, 31, 0.24);
}

.an-grid-field {
  position: absolute;
  inset: -40px;
  opacity: 0.44;
  background-image:
    linear-gradient(rgba(255, 231, 199, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 231, 199, 0.18) 1px, transparent 1px);
  background-size: 38px 38px;
  transform: perspective(680px) rotateX(58deg) translateY(18%);
  transform-origin: center bottom;
  animation: anGridDrift 5.6s linear infinite;
}

.an-live-tag {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 2;
  background: rgba(255, 247, 236, 0.92);
}

.an-species-pill {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 2;
  color: #fff7ec;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.an-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -80px;
  height: 92px;
  z-index: 3;
  background: linear-gradient(180deg, rgba(255, 226, 185, 0) 0%, rgba(255, 226, 185, 0.28) 52%, rgba(153, 241, 205, 0) 100%);
  mix-blend-mode: screen;
  animation: scanLine 2.05s ease-in-out infinite;
}

.an-core {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(320px, 58vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}

.an-core strong {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(255, 250, 239, 0.94);
  color: var(--brand-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 24px;
  letter-spacing: 0.08em;
  box-shadow: 0 0 32px rgba(255, 225, 183, 0.72);
}

.an-core-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 239, 212, 0.72);
  box-shadow: 0 0 22px rgba(255, 201, 131, 0.34);
}

.an-core-ring.ring-a {
  animation: anSpin 7s linear infinite;
}

.an-core-ring.ring-b {
  inset: 28px;
  border-style: dashed;
  border-color: rgba(153, 241, 205, 0.7);
  animation: anSpin 5.2s linear infinite reverse;
}

.an-core-ring.ring-c {
  inset: 64px;
  border-width: 3px;
  border-color: rgba(255, 184, 105, 0.82);
  animation: anPulse 1.45s ease-in-out infinite;
}

.an-radar {
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 243, 224, 0.24);
  transform: rotate(45deg);
}

.an-radar-a {
  left: -40px;
  bottom: 74px;
}

.an-radar-b {
  right: -54px;
  top: 116px;
}

.an-metric-grid {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.an-metric-grid div {
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff3df;
  backdrop-filter: blur(10px);
}

.an-metric-grid span,
.an-metric-grid strong {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.an-metric-grid span {
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.an-metric-grid strong {
  margin-top: 8px;
  font-size: 22px;
  color: #99f1cd;
}

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

.an-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(231, 211, 191, 0.9);
}

.an-step span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(211, 185, 164, 0.88);
}

.an-step.is-active span,
.an-step.is-done span {
  background: #f37b27;
}

.an-step em {
  font-style: normal;
  color: var(--ink-soft);
}

.an-progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(245, 220, 198, 0.8);
  overflow: hidden;
}

.an-progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #99f1cd 0%, #ffd17c 48%, #f36e24 100%);
  box-shadow: 0 0 20px rgba(243, 110, 36, 0.34);
}

.an-progress-label {
  color: var(--brand-deep);
  font-weight: 900;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.an-progress-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.an-flash-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(255, 244, 232, 0);
  z-index: 50;
}

.an-flash-overlay.flash {
  animation: anFlash 0.42s ease-out;
}

.result-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
}

.result-capture-qr-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  gap: 12px;
}

.result-capture-qr-wrap,
.weekly-share-qr-row {
  display: grid;
  gap: 6px;
  align-content: start;
}

.result-capture-qr-wrap > span,
.weekly-share-qr-row > span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 900;
  color: var(--brand-deep);
  white-space: nowrap;
}

.poster-qr {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  padding: 5px;
  border: 2px solid var(--brand-deep);
  background: #fffaf0;
}

.poster-qr canvas,
.poster-qr svg,
.poster-qr img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.qr-code-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.result-capture-qr-copy {
  position: relative;
  min-width: 0;
  padding: 12px 16px 14px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 2px solid var(--brand-deep);
  background:
    radial-gradient(circle at 96% 14%, rgba(77, 232, 179, 0.72) 0 14px, transparent 15px),
    linear-gradient(134deg, transparent 0 58%, #ff5b23 58% 64%, transparent 64%),
    repeating-linear-gradient(-8deg, rgba(33, 16, 13, 0.08) 0 1px, transparent 1px 8px),
    #fff7e9;
  color: var(--brand-deep);
  box-shadow: 6px 6px 0 #ff5b23;
  overflow: hidden;
}

.result-capture-qr-copy::before,
.result-capture-qr-copy::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.result-capture-qr-copy::before {
  right: 10px;
  bottom: 10px;
  width: 108px;
  height: 22px;
  border: 2px solid var(--brand-deep);
  background: repeating-linear-gradient(90deg, var(--brand-deep) 0 6px, transparent 6px 12px);
  opacity: 0.12;
  transform: rotate(-3deg);
}

.result-capture-qr-copy::after {
  top: 10px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 2px solid var(--brand-deep);
  background: #ffce4b;
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 55%, 80% 90%, 50% 68%, 20% 90%, 32% 55%, 2% 35%, 39% 34%);
  transform: rotate(12deg);
}

.result-capture-qr-kicker {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 3px 6px;
  background: var(--brand-deep);
  color: #fff7e9;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.result-capture-qr-copy strong {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  font-family: "Noto Serif SC", serif;
  font-size: 34px;
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: 0;
  transform: rotate(-1deg);
}

.result-capture-qr-copy strong span:first-child {
  color: #ff5b23;
  -webkit-text-stroke: 1px var(--brand-deep);
  text-shadow:
    2px 2px 0 #fff7e9,
    5px 5px 0 #4de8b3;
}

.result-capture-qr-copy strong span:last-child {
  padding: 3px 7px 4px;
  border: 2px solid var(--brand-deep);
  background: #ffce4b;
  box-shadow: 4px 4px 0 var(--brand-deep);
  color: var(--brand-deep);
  font-size: 26px;
  transform: rotate(1.5deg);
}

.result-capture-qr-copy p {
  position: relative;
  z-index: 1;
  max-width: 88%;
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.result-poster-column,
.result-side-column {
  display: grid;
  gap: 16px;
}

.result-poster-top {
  display: grid;
  gap: 10px;
}

.result-code {
  font-size: clamp(54px, 7vw, 90px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--brand-deep);
  font-family: "Noto Serif SC", serif;
}

.result-name {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  font-family: "Noto Serif SC", serif;
  letter-spacing: -0.05em;
}

.result-subline,
.result-tagline,
.result-summary-copy {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.result-poster-visual {
  position: relative;
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 214, 182, 0.82), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(211, 239, 229, 0.82), transparent 22%),
    linear-gradient(180deg, #fffaf3 0%, #ffe8d2 100%);
  border: 1px solid rgba(231, 211, 191, 0.94);
}

.result-rank-sticker {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffab52, #f26d24);
  box-shadow: 0 18px 34px rgba(243, 110, 36, 0.2);
}

.result-glyph-box {
  position: absolute;
  inset: 34px 36px 24px;
  display: grid;
  place-items: center;
}

.result-glyph-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-glyph-fallback {
  font-size: 120px;
}

.result-glyph-chip,
.result-capture-serial {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.86);
  border: 1px solid rgba(231, 211, 191, 0.95);
  font-weight: 900;
  color: var(--brand-deep);
}

.result-inline-metrics,
.result-mini-card,
.extra-block {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(231, 211, 191, 0.94);
  background: rgba(255, 255, 255, 0.78);
}

.result-mini-card {
  display: grid;
  gap: 10px;
}

.score-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.score-row strong {
  font-size: 42px;
  line-height: 1;
  font-family: "Noto Serif SC", serif;
  color: var(--brand-deep);
}

.result-action-row,
.result-footer-actions {
  margin-top: 16px;
}

.result-hooks,
.mini-avatar-row,
.tips-list {
  display: grid;
  gap: 10px;
}

.mini-avatar-row {
  grid-template-columns: repeat(4, 1fr);
}

.mini-avatar-row img,
.mini-avatar-row span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 246, 236, 0.96);
  border: 1px solid rgba(231, 211, 191, 0.95);
  object-fit: cover;
}

.dim-grid {
  display: grid;
  gap: 12px;
}

.dim-row {
  display: grid;
  gap: 8px;
}

.dim-row-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(245, 220, 198, 0.7);
  overflow: hidden;
}

.dim-row-fill {
  height: 100%;
  background: linear-gradient(90deg, #f9a245 0%, #f36e24 100%);
}

.bestfriend-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.weekly-share-capture {
  width: 720px;
  max-width: 100%;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fff8ef 0%, #ffe7d0 100%);
  display: grid;
  gap: 10px;
}

.weekly-share-qr-row {
  margin-top: 12px;
  grid-template-columns: auto 1fr;
  align-items: end;
}

.weekly-share-qr {
  width: 132px;
  height: 132px;
}

.hidden-capture-area {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.resume-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(61, 36, 21, 0.24);
  padding: 24px;
  z-index: 20;
}

.resume-card {
  padding: 24px;
  width: min(480px, 100%);
}

.resume-card h3 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 32px;
}

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

.pet-inline-link {
  color: var(--brand-deep);
  font-weight: 800;
  width: fit-content;
}

.pet-seo-section {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  margin: 0 16px 16px;
}

.pet-seo-section h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
}

.pet-seo-section p {
  max-width: 960px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.pet-seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pet-seo-grid article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(231, 211, 191, 0.94);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.pet-seo-grid strong {
  color: var(--ink);
  font-size: 18px;
}

.pet-seo-grid span {
  color: var(--ink-soft);
  line-height: 1.65;
}

@keyframes scanLine {
  0% { transform: translateY(-80px); }
  56% { transform: translateY(620px); }
  100% { transform: translateY(620px); }
}

@keyframes anGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 76px, 76px 0; }
}

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

@keyframes anPulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.58;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes anFlash {
  0% { background: rgba(255, 244, 232, 0); }
  52% { background: rgba(255, 250, 242, 0.98); }
  100% { background: rgba(255, 244, 232, 0); }
}

@keyframes petLockPop {
  0% { transform: rotate(-6deg) translateY(-8px) scale(0.82); }
  68% { transform: rotate(-1deg) translateY(0) scale(1.08); }
  100% { transform: rotate(-2deg) translateY(0) scale(1); }
}

@keyframes petCardScan {
  0% {
    opacity: 0;
    transform: translateX(-45%) rotate(8deg);
  }
  32% {
    opacity: 0.88;
  }
  100% {
    opacity: 0;
    transform: translateX(45%) rotate(8deg);
  }
}

@media (max-width: 1100px) {
  .landing-stage,
  .choose-stage,
  .quiz-stage,
  .analyzing-stage,
  .result-layout {
    grid-template-columns: 1fr;
  }

  .pet-picker,
  .archive-picker-grid,
  .pet-seo-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  body[data-screen="quiz"] .pet-shell {
    border-radius: 0;
  }

  body[data-screen="quiz"] .pet-topbar {
    padding: 10px 14px;
  }

  body[data-screen="quiz"] .brand-mark {
    font-size: 28px;
  }

  body[data-screen="quiz"] .pet-stage {
    padding: 8px 10px 10px;
  }

  body[data-screen="quiz"] .quiz-stage {
    min-height: calc(100dvh - 76px);
  }

  body[data-screen="quiz"] .quiz-card {
    height: calc(100dvh - 76px);
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
  }

  body[data-screen="quiz"] .quiz-progress-line {
    gap: 8px;
  }

  body[data-screen="quiz"] .progress-wrap {
    height: 8px;
  }

  body[data-screen="quiz"] .progress-text {
    font-size: 13px;
  }

  body[data-screen="quiz"] .question-title {
    font-size: clamp(24px, 7.4vw, 34px);
    line-height: 1.22;
    letter-spacing: 0;
  }

  body[data-screen="quiz"] .options {
    gap: 9px;
  }

  body[data-screen="quiz"] .option {
    min-height: 58px;
    padding: 11px 13px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.45;
  }

  body[data-screen="quiz"] .quiz-foot {
    flex-direction: row;
    gap: 10px;
  }

  body[data-screen="quiz"] .quiz-foot .btn {
    flex: 1;
    min-height: 48px;
  }

  body[data-screen="quiz"] .quiz-tip-box {
    padding: 8px 10px;
    border-radius: 14px;
    font-size: 12px;
  }

  body[data-screen="quiz"] .quiz-tip-box span {
    display: none;
  }

  body[data-screen="quiz"] .quiz-tip-box p {
    line-height: 1.35;
  }

  .pet-stage {
    padding: 12px;
  }

  .pet-seo-section {
    margin: 0 12px 12px;
  }

  .landing-copy-card,
  .choose-copy-card,
  .quiz-card,
  .choose-support-card,
  .landing-choice-card,
  .analyzing-copy-panel,
  .analyzing-visual-panel {
    padding: 18px;
  }

  .an-oracle-shell {
    min-height: 340px;
  }

  .pet-select-art {
    min-height: 190px;
    height: 190px;
  }

  .pet-card-visual {
    min-height: 122px;
    height: 122px;
    border-radius: 16px;
    padding: 7px;
  }

  .quick-preview-visual {
    grid-template-columns: 110px 1fr;
  }

  .choose-title {
    font-size: clamp(36px, 11vw, 48px);
  }

  .choose-metrics {
    gap: 8px;
    margin-top: 14px;
  }

  .choose-metrics .soft-chip:nth-child(n + 6) {
    display: none;
  }

  .pet-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pet-card {
    padding: 8px;
    gap: 8px;
    border-radius: 18px;
  }

  .pet-card::before {
    inset: 5px;
  }

  .pet-card::after {
    right: -24px;
    bottom: -18px;
    height: 32px;
  }

  .pet-card-lock {
    top: 7px;
    right: 5px;
    padding: 5px 6px;
    font-size: 8.5px;
    box-shadow: 3px 3px 0 #21100d;
  }

  .pet-card-copy {
    gap: 3px;
  }

  .pet-card-copy span {
    padding: 3px 5px;
    font-size: 8px;
  }

  .pet-card-copy strong {
    font-size: 20px;
    line-height: 1.05;
  }

  .pet-card-copy small {
    font-size: 12px;
    line-height: 1.25;
  }

  .pet-choice-status {
    margin-top: 12px;
    font-size: 12px;
  }

  .quick-report-grid {
    grid-template-columns: 1fr;
  }

  .quiz-foot,
  .result-action-row,
  .result-footer-actions,
  .resume-actions {
    flex-direction: column;
  }

  .result-poster-visual {
    min-height: 360px;
  }

  .result-capture-qr-row {
    grid-template-columns: 1fr;
  }

  .result-capture-qr-wrap {
    width: fit-content;
  }

  .mini-avatar-row {
    grid-template-columns: repeat(4, 58px);
  }

  .an-oracle-shell {
    min-height: 460px;
    padding: 16px;
  }

  .an-core {
    width: min(260px, 72vw);
    top: 45%;
  }

  .an-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .an-live-tag,
  .an-species-pill {
    top: 14px;
  }

  .an-live-tag {
    left: 14px;
  }

  .an-species-pill {
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .an-grid-field,
  .an-scan-line,
  .an-core-ring,
  .an-flash-overlay.flash,
  .pet-card[aria-pressed="true"] .pet-card-lock,
  .pet-card[aria-pressed="true"] .pet-card-scan {
    animation: none;
  }
}
