:root {
  --verdict-ink: #17120f;
  --verdict-paper: #f4e7ce;
  --verdict-paper-deep: #e4d0aa;
  --verdict-red: #d43429;
  --verdict-yellow: #f2c83f;
  --verdict-green: #2f7556;
}

/* The quiz is a responsive page, not a phone mockup trapped inside the browser. */
html[data-screen="quiz"],
body[data-screen="quiz"] {
  overflow: auto;
}

body[data-screen="quiz"] .pet-page {
  position: static;
  inset: auto;
  width: min(1520px, calc(100% - 28px));
  min-height: calc(100dvh - 28px);
  margin: 14px auto;
}

body[data-screen="quiz"] .pet-shell {
  min-height: calc(100dvh - 28px);
  grid-template-rows: auto 1fr;
}

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

body[data-screen="quiz"] .pet-stage.quiz-stage {
  width: min(1120px, calc(100% - 40px));
  max-width: none;
  min-height: 0;
  margin: auto;
  padding: clamp(20px, 3vw, 36px) 0;
  align-items: center;
}

body[data-screen="quiz"] .quiz-card {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: clamp(24px, 3.2vw, 40px);
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(500px, 1.22fr);
  grid-template-areas:
    "head head"
    "status status"
    "question options"
    "tip options"
    "foot foot";
  grid-template-rows: auto auto auto auto auto;
  gap: 18px 28px;
  align-content: center;
  overflow: visible;
}

body[data-screen="quiz"] .quiz-head { grid-area: head; }

body[data-screen="quiz"] .quiz-status {
  grid-area: status;
  width: fit-content;
  margin: -4px 0 0;
  padding: 7px 11px;
  border: 2px solid #17120f;
  background: #f2c83f;
  color: #17120f;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  box-shadow: 3px 3px 0 #17120f;
}

body[data-screen="quiz"] .question-title {
  grid-area: question;
  align-self: start;
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

body[data-screen="quiz"] .options {
  grid-area: options;
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  overflow: visible;
}

body[data-screen="quiz"] .option {
  min-width: 0;
  min-height: 78px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  border: 2px solid rgba(23, 18, 15, 0.22);
  border-radius: 4px !important;
  background: rgba(255, 253, 240, 0.9);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 760;
}

body[data-screen="quiz"] .option-neutral {
  grid-column: 1 / -1;
  min-height: 58px;
  background: rgba(242, 200, 63, 0.16);
}

body[data-screen="quiz"] .quiz-tip-box {
  grid-area: tip;
  align-self: end;
  margin: 0;
  border-radius: 4px;
}

body[data-screen="quiz"] .quiz-foot {
  grid-area: foot;
  margin-top: 2px;
  justify-content: space-between;
}

body[data-screen="quiz"] .quiz-foot .btn {
  width: auto;
  min-width: 126px;
}

/* The loading beat keeps its theatre without becoming another giant portrait panel. */
body[data-screen="analyzing"] .analyzing-stage {
  width: min(780px, calc(100% - 28px));
  min-height: 0;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 30px) 0;
  grid-template-columns: minmax(0, 1fr);
}

body[data-screen="analyzing"] .analyzing-visual-panel {
  padding: clamp(20px, 3vw, 30px);
}

body[data-screen="analyzing"] .an-oracle-shell {
  width: 100%;
  height: clamp(290px, 38vw, 360px);
  min-height: 0;
  border-radius: 8px;
}

body[data-screen="analyzing"] .an-step-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body[data-screen="analyzing"] .an-step { min-width: 0; }

/* Standalone result: result first, art second. The export canvas lives off-screen. */
body[data-screen="result"],
body.playground-result {
  background: var(--verdict-ink);
  color: var(--verdict-ink);
}

body[data-screen="result"] .theme-page,
body.playground-result .theme-page,
body[data-screen="result"] .theme-window,
body.playground-result .theme-window {
  background: var(--verdict-ink);
}

body[data-screen="result"] .theme-window,
body.playground-result .theme-window {
  border-color: #050403;
  box-shadow: none;
}

body[data-screen="result"] .topbar,
body.playground-result .topbar {
  color: var(--verdict-paper);
  background: var(--verdict-ink);
  border-bottom: 1px solid rgba(244, 231, 206, 0.28);
}

body[data-screen="result"] .brand-mark,
body.playground-result .brand-mark,
body[data-screen="result"] .nav-link,
body.playground-result .nav-link {
  color: var(--verdict-paper);
}

body.playground-result .result-view {
  padding: clamp(20px, 3vw, 36px);
}

body.playground-result .result-main-grid {
  width: min(1280px, 100%);
  min-width: 0;
  margin: 0 auto;
  gap: 22px;
}

body.playground-result .share-hero-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  grid-template-areas:
    "copy art"
    "actions art"
    "metrics art";
  grid-template-rows: auto auto auto;
  gap: 20px 28px;
  align-items: start;
  border: 3px solid #050403;
  border-radius: 7px;
  background: var(--verdict-paper);
  box-shadow: 12px 12px 0 var(--verdict-red);
}

body.playground-result[data-verdict-lane="winner"] .share-hero-card { box-shadow: 12px 12px 0 #b58a2b; }
body.playground-result[data-verdict-lane="lucky"] .share-hero-card { box-shadow: 12px 12px 0 var(--verdict-green); }
body.playground-result[data-verdict-lane="food"] .share-hero-card { box-shadow: 12px 12px 0 var(--verdict-yellow); }

body.playground-result .share-copy {
  grid-area: copy;
  min-width: 0;
  padding: 0 0 20px;
  gap: 12px;
  border-bottom: 3px solid var(--verdict-ink);
}

body.playground-result .share-title-row {
  min-width: 0;
  align-items: end;
}

body.playground-result .share-mbti {
  color: var(--verdict-ink);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(72px, 8vw, 118px);
  line-height: 0.78;
  letter-spacing: -0.055em;
}

body.playground-result .share-label {
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 6px 12px 8px;
  border: 3px solid var(--verdict-ink);
  border-radius: 2px;
  background: var(--verdict-red);
  color: var(--verdict-paper);
  box-shadow: 5px 5px 0 var(--verdict-ink);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1;
  transform: rotate(-1deg);
}

body.playground-result .share-chip-row { align-items: end; }

body.playground-result .share-chip-row .soft-chip {
  border: 2px solid var(--verdict-ink);
  border-radius: 2px;
  background: var(--verdict-yellow);
  color: var(--verdict-ink);
  box-shadow: 3px 3px 0 var(--verdict-ink);
}

body.playground-result .share-line {
  margin-top: 8px;
  color: var(--verdict-red);
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 1000;
  line-height: 1.28;
}

body.playground-result .share-verdict {
  max-width: 720px;
  color: var(--verdict-ink);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 950;
  line-height: 1.48;
}

body.playground-result .result-core-grid {
  grid-area: metrics;
  min-width: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

body.playground-result .result-core-grid .share-stat-card {
  min-width: 0;
  min-height: 132px;
  padding: 13px;
  border: 2px solid var(--verdict-ink);
  border-radius: 3px;
  background: #f8edd8;
  box-shadow: 4px 4px 0 var(--verdict-ink);
}

body.playground-result .result-core-grid .share-stat-card:first-child { background: #efd073; }

body.playground-result .result-core-grid .share-stat-card > strong {
  display: block;
  margin-top: 8px;
  color: var(--verdict-red);
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

body.playground-result .result-core-grid .micro-kicker {
  color: #4d3e36;
  font-size: 10px;
}

body.playground-result .result-core-grid .muted {
  margin: 9px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: #59483e;
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.playground-result .share-primary-panel {
  grid-area: actions;
  min-width: 0;
  padding-top: 16px;
  border-top: 3px solid var(--verdict-ink);
}

body.playground-result .share-primary-panel .share-action-row { align-items: stretch; }

body.playground-result #save-poster-btn {
  border: 3px solid #050403;
  border-radius: 3px;
  background: var(--verdict-red);
  color: #fff8e9;
  box-shadow: 6px 6px 0 #050403;
  font-weight: 1000;
}

body.playground-result .result-art-stage {
  grid-area: art;
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 4 / 5;
  align-self: start;
  padding: 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
  border: 3px solid var(--verdict-ink);
  background:
    linear-gradient(rgba(23, 18, 15, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 18, 15, 0.06) 1px, transparent 1px),
    var(--verdict-yellow);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: 8px 8px 0 var(--verdict-ink);
}

.result-art-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-art-heading strong {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.15;
}

body.playground-result .mobile-result-line {
  display: block;
  width: auto;
  margin: 0;
  color: #5d483d;
  font-size: 12px;
  font-weight: 950;
}

.result-art {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 3px solid var(--verdict-ink);
  background: var(--verdict-paper-deep);
}

.result-art-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(1.06);
  transform-origin: center bottom;
}

.result-art-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 96px;
}

.result-art-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 4px double var(--verdict-red);
  border-radius: 50%;
  background: rgba(244, 231, 206, 0.82);
  color: var(--verdict-red);
  font-weight: 1000;
  transform: rotate(7deg);
}

.result-art-stage > p {
  margin: 0;
  color: #4d3e36;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

body.playground-result .share-detail-grid {
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

body.playground-result .detail-card {
  min-width: 0;
  border: 2px solid var(--verdict-ink);
  border-radius: 4px;
  background: var(--verdict-paper);
  box-shadow: 6px 6px 0 var(--verdict-red);
}

body.playground-result .share-detail-grid .detail-card:nth-child(n) { background: var(--verdict-paper); }
body.playground-result .share-detail-grid .detail-card:nth-child(2) { background: #f0d778; }
body.playground-result .share-detail-grid .detail-card:nth-child(3) { background: #d9e5ca; }
body.playground-result .share-detail-grid .type-connection-card { background: #e9d28e; }

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

.result-famous-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) 1.3fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 2px solid var(--verdict-ink);
}

.result-famous-row strong { color: var(--verdict-red); }
.result-famous-row span { color: #604f45; font-size: 13px; }

.result-bestfriend-line {
  margin-top: 14px;
  padding: 12px;
  border: 2px solid var(--verdict-ink);
  background: var(--verdict-yellow);
}

.result-bestfriend-line > span {
  display: block;
  font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.result-bestfriend-line strong {
  display: block;
  margin-top: 5px;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: 36px;
}

.result-bestfriend-line p { margin: 4px 0 0; font-weight: 800; }

body.playground-result .share-footer-row {
  padding: 18px;
  border: 2px solid rgba(244, 231, 206, 0.28);
  color: var(--verdict-paper);
}

body.playground-result .share-footer-row .muted { color: rgba(244, 231, 206, 0.76); }

/* Inline result is only a fallback, but it must still reflow cleanly. */
body[data-screen="result"] .pet-stage {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 30px);
}

body[data-screen="result"] .panel-result {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-screen="result"] .result-share-capture {
  padding: clamp(20px, 3vw, 30px);
  border: 3px solid var(--verdict-ink);
  border-radius: 6px;
  background: var(--verdict-paper);
  box-shadow: 10px 10px 0 var(--verdict-red);
}

body[data-screen="result"] .result-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 20px;
}

body[data-screen="result"] .result-code {
  font-size: clamp(64px, 8vw, 102px);
  line-height: 0.82;
}

body[data-screen="result"] .result-name { font-size: clamp(28px, 3.5vw, 46px); }

body[data-screen="result"] .result-poster-visual {
  min-height: 0;
  aspect-ratio: 4 / 3;
}

body[data-screen="result"] .result-action-row .btn-primary {
  border-radius: 3px;
  background: var(--verdict-red);
  box-shadow: 6px 6px 0 #050403;
}

/* Fixed 3:4 export source. It never participates in the responsive page grid. */
.hidden-capture > .share-poster.verdict-sheet {
  width: 480px !important;
  max-width: none !important;
  height: 640px !important;
  padding: 0 !important;
  display: block !important;
  overflow: hidden;
  zoom: 1 !important;
  border: 3px solid var(--verdict-ink) !important;
  border-radius: 5px !important;
  background:
    radial-gradient(circle at 88% 22%, rgba(242, 200, 63, 0.4), transparent 25%),
    linear-gradient(145deg, #f8edda 0%, #efd9b5 100%) !important;
  color: var(--verdict-ink);
  box-shadow: none !important;
}

.hidden-capture > .share-poster.verdict-sheet::before { display: none; }

.hidden-capture > .share-poster.verdict-sheet::after {
  inset: 10px;
  border: 2px solid rgba(23, 18, 15, 0.16);
}

.hidden-capture > .share-poster .poster-issue-row {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 18px;
  height: 34px;
}

.hidden-capture > .share-poster .poster-brand {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 0;
  min-height: 0;
  padding: 7px 10px;
  border: 2px solid var(--verdict-ink);
  border-radius: 1px;
  background: var(--verdict-yellow);
  color: var(--verdict-ink);
  font-size: 17px;
  line-height: 1;
}

.hidden-capture > .share-poster .poster-issue {
  position: absolute;
  right: 0;
  top: 9px;
  font-size: 12px;
  font-weight: 950;
}

.hidden-capture > .share-poster .poster-serial {
  position: absolute;
  right: 0;
  top: 27px;
  padding: 3px 7px;
  font-size: 10px;
}

.hidden-capture > .share-poster .poster-cover-grid {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 66px;
  height: 268px;
}

.hidden-capture > .share-poster .poster-title-stack {
  position: absolute;
  left: 0;
  top: 0;
  width: 192px;
  height: 268px;
  overflow: visible;
}

.hidden-capture > .share-poster .poster-chip {
  display: inline-flex;
  max-width: 190px;
  padding: 7px 10px;
  border: 3px solid var(--verdict-ink);
  border-radius: 1px;
  background: var(--verdict-red);
  color: var(--verdict-paper);
  box-shadow: 4px 4px 0 var(--verdict-ink);
  font-size: 14px;
  line-height: 1.05;
  font-weight: 950;
  transform: rotate(-1deg);
}

.hidden-capture > .share-poster .poster-title-prefix {
  display: block;
  margin-top: 14px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 950;
}

.hidden-capture > .share-poster .share-poster-mbti {
  margin-top: 6px;
  color: var(--verdict-ink);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 58px;
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-shadow: 4px 4px 0 var(--verdict-yellow);
}

.hidden-capture > .share-poster .poster-cover-title {
  width: 190px;
  max-height: 92px;
  margin: 16px 0 0;
  padding: 10px;
  display: -webkit-box;
  overflow: hidden;
  border: 0;
  border-radius: 1px;
  background: var(--verdict-ink);
  color: var(--verdict-paper);
  box-shadow: 5px 5px 0 var(--verdict-yellow);
  font-size: 16px;
  line-height: 1.28;
  font-weight: 950;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.hidden-capture > .share-poster .share-poster-art {
  position: absolute;
  right: 0;
  top: 0;
  width: 236px;
  height: 268px;
  overflow: hidden;
  border: 3px solid var(--verdict-ink);
  background: var(--verdict-yellow);
}

.hidden-capture > .share-poster .share-poster-art::before { display: none; }

.hidden-capture > .share-poster .share-poster-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(1.07);
  transform-origin: center bottom;
}

.hidden-capture > .share-poster .share-poster-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 80px;
}

.hidden-capture > .share-poster .share-poster-badge { display: none; }

.hidden-capture > .share-poster .poster-parent-line {
  position: absolute;
  left: 22px;
  top: 318px;
  z-index: 3;
  max-width: 410px;
  height: 32px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 3px solid var(--verdict-ink);
  border-radius: 1px;
  background: var(--verdict-yellow);
  color: var(--verdict-ink);
  box-shadow: 4px 4px 0 var(--verdict-ink);
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
  transform: rotate(-1deg);
}

.hidden-capture > .share-poster .poster-verdict-block {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 354px;
  height: 76px;
  padding: 10px 14px;
  overflow: hidden;
  border: 0;
  border-right: 7px solid var(--verdict-red);
  border-radius: 1px;
  background: var(--verdict-ink);
  color: var(--verdict-paper);
  box-shadow: 0 5px 0 var(--verdict-red);
}

.hidden-capture > .share-poster .poster-verdict-block span {
  display: block;
  margin-bottom: 5px;
  color: var(--verdict-yellow);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
}

.hidden-capture > .share-poster .poster-verdict-block p {
  height: auto;
  max-height: 48px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 950;
  white-space: normal;
  text-overflow: clip;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hidden-capture > .share-poster .poster-data-grid {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 445px;
  display: grid;
  grid-template-columns: 1.48fr 0.9fr 0.9fr;
  gap: 8px;
}

.hidden-capture > .share-poster .poster-meter-card,
.hidden-capture > .share-poster .poster-score-card {
  min-width: 0;
  height: 66px;
  padding: 8px 10px;
  border: 2px solid var(--verdict-ink);
  border-radius: 2px;
  background: #fff7e8;
  box-shadow: 3px 3px 0 var(--verdict-ink);
}

.hidden-capture > .share-poster .poster-meter-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 8px;
}

.hidden-capture > .share-poster .poster-meter-card > strong {
  grid-column: 1 / -1;
  color: #5d483d;
  font-size: 11px;
  line-height: 1;
}

.hidden-capture > .share-poster .poster-big-score-row {
  display: grid;
  gap: 2px;
}

.hidden-capture > .share-poster .poster-big-score-row span,
.hidden-capture > .share-poster .poster-score-card span {
  color: #5d483d;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
}

.hidden-capture > .share-poster .poster-big-score-row em {
  color: var(--verdict-red);
  font: 1000 22px/1 Impact, Haettenschweiler, sans-serif;
  font-style: normal;
}

.hidden-capture > .share-poster .poster-score-card strong {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  color: var(--verdict-red);
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.hidden-capture > .share-poster .poster-hook-grid { display: none; }

.hidden-capture > .share-poster .poster-bottom-row {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  height: 104px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
}

.hidden-capture > .share-poster .poster-qr-wrap {
  width: 104px;
  padding: 5px;
  display: grid;
  gap: 3px;
  border: 2px solid var(--verdict-ink);
  border-radius: 1px;
  background: #fff7e8;
}

.hidden-capture > .share-poster .poster-qr,
.hidden-capture > .share-poster .poster-qr canvas,
.hidden-capture > .share-poster .poster-qr svg,
.hidden-capture > .share-poster .poster-qr img {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  padding: 0;
}

.hidden-capture > .share-poster .poster-qr-wrap > span {
  display: none;
}

.hidden-capture > .share-poster .poster-cta-copy {
  padding: 11px 14px;
  overflow: hidden;
  border: 3px solid var(--verdict-ink);
  border-radius: 1px;
  background: #fff7e8;
  box-shadow: 4px 4px 0 var(--verdict-red);
}

.hidden-capture > .share-poster .poster-cta-copy::before,
.hidden-capture > .share-poster .poster-cta-copy::after { display: none; }

.hidden-capture > .share-poster .poster-cta-kicker {
  padding: 3px 6px;
  background: var(--verdict-ink);
  color: var(--verdict-paper);
  font-size: 10px;
}

.hidden-capture > .share-poster .poster-cta-copy strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  color: var(--verdict-red);
  font-size: 27px;
  line-height: 1;
  text-shadow: none;
  transform: none;
}

.hidden-capture > .share-poster .poster-cta-copy strong span {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: inherit;
}

.hidden-capture > .share-poster .poster-cta-copy strong span:last-child {
  color: var(--verdict-ink);
  font-size: 16px;
}

.hidden-capture > .share-poster .poster-cta-copy p {
  max-width: none;
  margin: 7px 0 0;
  color: #4d3e36;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 850;
}

.poster-exporting,
.poster-exporting * {
  animation: none !important;
  transition: none !important;
}

/* A short desktop should still feel like a desktop, with the start action in view. */
@media (min-width: 1100px) and (max-height: 950px) {
  body.playground-pet .choose-stage {
    padding: 22px 26px 26px;
    gap: 14px;
  }

  body.playground-pet .choose-copy-card,
  body.playground-pet .choose-support-card {
    padding: 22px 24px;
  }

  body.playground-pet .choose-support-card { gap: 11px; }

  body.playground-pet .choose-title {
    font-size: clamp(60px, 5.4vw, 78px);
    line-height: 0.92;
  }

  body.playground-pet .choose-metrics { margin-top: 12px; }

  body.playground-pet .pet-picker { gap: 10px; }

  body.playground-pet .pet-card {
    padding: 12px;
    gap: 9px;
  }

  body.playground-pet .pet-card-visual {
    height: 226px;
    min-height: 226px;
    padding: 10px;
  }

  body.playground-pet .pet-card-copy strong { font-size: 23px; }
  body.playground-pet .pet-card-copy small { font-size: 13px; }

  body.playground-pet .pet-choice-status {
    margin-top: 8px;
    padding-block: 6px;
  }

  body.playground-pet .choose-start-btn { margin-top: 10px; }

  body.playground-pet .quick-preview-card,
  body.playground-pet .quick-report-card {
    gap: 9px;
    padding: 12px;
  }

  body.playground-pet .quick-preview-visual {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }

  body.playground-pet .quick-preview-visual strong { font-size: 22px; }
  body.playground-pet .quick-report-grid span { padding: 9px; }
}

@media (min-width: 721px) and (max-width: 1099px) {
  body.playground-pet .choose-stage {
    padding: 20px;
    gap: 16px;
  }

  body.playground-pet .choose-copy-card,
  body.playground-pet .choose-support-card {
    padding: 22px;
  }

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

  body.playground-pet .pet-card {
    min-width: 0;
    padding: 10px;
    gap: 9px;
  }

  body.playground-pet .pet-card-visual {
    height: clamp(180px, 23vw, 226px);
    min-height: 0;
    padding: 9px;
  }

  body.playground-pet .pet-card-copy strong { font-size: 22px; }
  body.playground-pet .pet-card-copy small { font-size: 12px; }

  body.playground-pet .pet-choice-status {
    margin-top: 8px;
    padding-block: 6px;
  }

  body.playground-pet .choose-start-btn { margin-top: 10px; }
}

@media (min-width: 721px) and (max-width: 1099px) and (max-height: 800px) {
  body.playground-pet .choose-stage {
    padding: 14px 20px 18px;
    gap: 12px;
  }

  body.playground-pet .choose-copy-card,
  body.playground-pet .choose-support-card {
    padding: 17px 20px;
  }

  body.playground-pet .choose-title {
    font-size: 46px;
    line-height: 0.94;
  }

  body.playground-pet .choose-metrics { margin-top: 9px; }

  body.playground-pet .pet-card-visual {
    height: 150px;
    min-height: 150px;
  }
}

@media (min-width: 721px) and (max-height: 800px) {
  body[data-screen="analyzing"] .analyzing-stage { padding-block: 12px; }

  body[data-screen="analyzing"] .analyzing-visual-panel { padding: 18px; }

  body[data-screen="analyzing"] .an-oracle-shell { height: 270px; }

  body[data-screen="analyzing"] .analyzing-inline-copy .section-title {
    font-size: clamp(30px, 3.5vw, 38px);
  }
}

@media (min-width: 1100px) and (max-height: 800px) {
  body.playground-pet .choose-stage {
    padding: 18px 26px 22px;
    gap: 12px;
  }

  body.playground-pet .choose-copy-card,
  body.playground-pet .choose-support-card {
    padding: 18px 22px;
  }

  body.playground-pet .choose-title {
    font-size: clamp(56px, 4.8vw, 68px);
  }

  body.playground-pet .pet-card-visual {
    height: 174px;
    min-height: 174px;
  }

  body.playground-pet .pet-card-copy strong { font-size: 21px; }

  body.playground-result .result-art-stage { aspect-ratio: 1 / 1; }
}

/* Mobile selection stays compact enough that the start button is not buried. */
@media (max-width: 720px) {
  body.playground-pet .pet-topbar {
    min-height: 64px;
    align-items: center;
  }

  body.playground-pet .pet-topbar .nav-link[href="/"],
  body.playground-pet .pet-topbar .nav-link[href="/faq/"],
  body.playground-pet .pet-topbar .btn {
    display: none;
  }

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

  body.playground-pet .pet-card-visual {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
  }

  body.playground-pet .pet-card-copy strong { font-size: 19px; }
  body.playground-pet .pet-card-copy small { font-size: 11px; }

  body[data-screen="quiz"] .pet-page {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
  }

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

  body[data-screen="quiz"] .pet-stage.quiz-stage {
    width: 100%;
    min-height: 0;
    padding: 12px;
  }

  body[data-screen="quiz"] .quiz-card {
    padding: 16px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "status"
      "question"
      "options"
      "foot"
      "tip";
    grid-template-rows: auto;
    gap: 12px;
    align-content: start;
    border-radius: 8px;
  }

  body[data-screen="quiz"] .question-title {
    font-size: clamp(25px, 7.5vw, 32px);
    line-height: 1.18;
  }

  body[data-screen="quiz"] .options {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  body[data-screen="quiz"] .option,
  body[data-screen="quiz"] .option-neutral {
    grid-column: auto;
    min-height: 56px;
    padding: 11px 13px;
    font-size: 15px;
    line-height: 1.42;
  }

  body[data-screen="quiz"] .quiz-foot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-screen="quiz"] .quiz-foot .btn {
    width: 100%;
    min-width: 0;
  }

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

  body[data-screen="analyzing"] .analyzing-stage {
    width: 100%;
    padding: 12px;
  }

  body[data-screen="analyzing"] .analyzing-visual-panel { padding: 16px; }

  body[data-screen="analyzing"] .an-oracle-shell {
    height: 320px;
    min-height: 0;
    padding: 14px;
  }

  body[data-screen="analyzing"] .an-core {
    width: min(210px, 62vw);
    top: 42%;
  }

  body[data-screen="analyzing"] .an-core strong {
    width: 82px;
    height: 82px;
    font-size: 20px;
  }

  body[data-screen="analyzing"] .an-metric-grid {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body[data-screen="analyzing"] .an-metric-grid div {
    padding: 8px 10px;
    border-radius: 5px;
  }

  body[data-screen="analyzing"] .an-metric-grid strong {
    margin-top: 4px;
    font-size: 16px;
  }

  body[data-screen="analyzing"] .an-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.playground-result .result-page .topbar {
    min-width: 0;
    align-items: center;
    padding: 11px 13px;
  }

  body.playground-result .result-page .brand-mark { font-size: 28px; }

  body.playground-result .result-page .nav-link:nth-child(n + 3) { display: none; }

  body.playground-result .result-view { padding: 12px 11px 30px; }

  body.playground-result .share-hero-card {
    padding: 17px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "actions"
      "metrics"
      "art";
    grid-template-rows: auto;
    gap: 16px;
    box-shadow: 7px 7px 0 var(--verdict-red);
  }

  body.playground-result .share-copy { padding-bottom: 16px; }
  body.playground-result .share-title-row { display: block; }
  body.playground-result .share-chip-row { margin-top: 14px; }
  body.playground-result .share-mbti { font-size: clamp(68px, 22vw, 88px); }
  body.playground-result .share-label { font-size: clamp(30px, 9.3vw, 39px); }
  body.playground-result .share-line { font-size: 20px; }
  body.playground-result .share-verdict { font-size: 19px; }

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

  body.playground-result .result-core-grid .share-stat-card { min-height: 128px; }

  body.playground-result .share-primary-panel .share-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  body.playground-result .share-primary-panel .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }

  body.playground-result #save-poster-btn {
    grid-column: 1 / -1;
    min-height: 54px;
    position: static;
  }

  body.playground-result .result-more-cue { display: block; }

  body.playground-result .result-art-stage {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 5;
    padding: 12px;
    box-shadow: 5px 5px 0 var(--verdict-ink);
  }

  body.playground-result .result-art { min-height: 325px; }

  body.playground-result .result-art-badge {
    width: 60px;
    height: 60px;
  }

  body.playground-result .share-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.playground-result .detail-card { padding: 17px; }

  body.playground-result .share-footer-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-screen="result"] .pet-stage { padding: 12px; }
  body[data-screen="result"] .result-layout { grid-template-columns: minmax(0, 1fr); }
  body[data-screen="result"] .result-code { font-size: clamp(62px, 20vw, 86px); }

  body[data-screen="result"] .result-poster-visual {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  body[data-screen="result"] #save-image-btn {
    position: static;
    width: 100%;
  }
}

@media (min-width: 721px) and (max-width: 1023px) {
  body[data-screen="quiz"] .pet-stage.quiz-stage {
    width: min(760px, calc(100% - 36px));
  }

  body[data-screen="quiz"] .quiz-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "status"
      "question"
      "options"
      "foot"
      "tip";
    grid-template-rows: auto;
    align-content: start;
  }

  body[data-screen="quiz"] .question-title { font-size: clamp(34px, 5vw, 46px); }

  body[data-screen="quiz"] .options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.playground-result .share-hero-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "actions"
      "metrics"
      "art";
  }

  body.playground-result .result-art-stage {
    min-height: 0;
    aspect-ratio: 5 / 4;
  }
}

@media (min-width: 900px) and (max-height: 760px) {
  body[data-screen="quiz"] .pet-stage.quiz-stage { padding-block: 14px; }

  body[data-screen="quiz"] .quiz-card {
    padding: 22px 28px;
    gap: 12px 22px;
  }

  body[data-screen="quiz"] .question-title { font-size: clamp(34px, 3.7vw, 48px); }

  body[data-screen="quiz"] .option {
    min-height: 66px;
    padding-block: 11px;
  }

  body.playground-result .result-art-stage { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-screen="analyzing"] *,
  body.playground-result * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
