/* My Type Quiz — page-scoped "love letter" re-skin (written by Claude).
   New file: /my-type-quiz/skin.css, loaded AFTER /my-type-quiz/quiz.css on the quiz page and the 6 result pages only.
   Do NOT edit /my-type-quiz/quiz.css itself: the sauce quiz also loads it as its base layout.
   Everything is scoped to body[data-route^="my-type-quiz"], so the sauce quiz and the rest of the site are untouched. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500..700;1,9..144,500..700&display=swap');

/* ---------- Tokens & page background ---------- */
body[data-route^="my-type-quiz"] {
  --t-bg: #fff6f3;
  --t-card: #ffffff;
  --t-soft: #fffaf8;
  --t-ink: #2b1430;
  --t-muted: #6c5468;
  --t-line: #f1d9dd;
  --t-berry: #c8325b;
  --t-berry-dark: #9b2244;
  --t-blush: #ffe3e8;
  --t-plum: #3a2d7a;
  --t-lilac: #eee8ff;
  --t-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --t-body: 'DM Sans', system-ui, sans-serif;
  color: var(--t-ink);
  font-family: var(--t-body);
  background-color: var(--t-bg);
  /* Airmail-envelope stripe on top, then soft blush and lilac glows. */
  background-image:
    repeating-linear-gradient(135deg, #c8325b 0 14px, #fff6f3 14px 22px, #3a2d7a 22px 36px, #fff6f3 36px 44px),
    radial-gradient(600px 360px at 95% 120px, rgba(200, 50, 91, .12), transparent 70%),
    radial-gradient(560px 360px at 0 520px, rgba(58, 45, 122, .09), transparent 70%);
  background-size: 100% 10px, 100% 1000px, 100% 1000px;
  background-position: 0 0;
  background-repeat: no-repeat;
}
body[data-route^="my-type-quiz"] :focus-visible { outline: 3px solid var(--t-berry); outline-offset: 3px; }

/* ---------- Header & footer (these pages only) ---------- */
body[data-route^="my-type-quiz"] .site-header { border-bottom: 0; padding-top: 34px; }
body[data-route^="my-type-quiz"] .brand,
body[data-route^="my-type-quiz"] .brand-mark { color: var(--t-ink); }
body[data-route^="my-type-quiz"] .brand-mark { font-family: var(--t-display); font-style: italic; }
body[data-route^="my-type-quiz"] .brand-name { border-left-color: var(--t-line); color: var(--t-muted); }
body[data-route^="my-type-quiz"] .nav a {
  padding: 9px 16px;
  border: 1.5px solid var(--t-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  color: var(--t-ink);
  font-weight: 600;
}
body[data-route^="my-type-quiz"] .nav a:hover { background: var(--t-blush); border-color: #f2a9ba; }
body[data-route^="my-type-quiz"] .site-footer { color: var(--t-muted); border-color: var(--t-line); }

/* ---------- Generic content ---------- */
body[data-route^="my-type-quiz"] .my-type-page {
  --quiz-surface: #fff;
  --quiz-forest: var(--t-berry);
  --quiz-edge: var(--t-ink);
  --quiz-muted: var(--t-muted);
}
body[data-route^="my-type-quiz"] .my-type-page a:not(.button) { color: var(--t-berry-dark); text-underline-offset: 3px; }
body[data-route^="my-type-quiz"] .my-type-page .breadcrumbs { margin-bottom: 22px; color: var(--t-muted); font: 500 13px/1.6 var(--t-body); }
body[data-route^="my-type-quiz"] .my-type-page .breadcrumbs a { color: inherit; }
body[data-route^="my-type-quiz"] .my-type-page .eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--t-blush);
  color: var(--t-berry-dark);
  font: 700 12px/1.2 var(--t-body);
  letter-spacing: .1em;
}
body[data-route^="my-type-quiz"] .my-type-page h1 {
  max-width: 15ch;
  margin: 0 0 18px;
  color: var(--t-ink);
  font-family: var(--t-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  font-variation-settings: "opsz" 144;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-shadow: none;
}
body[data-route^="my-type-quiz"] .my-type-page h2 {
  color: var(--t-ink);
  font: 600 clamp(1.6rem, 3.6vw, 2.2rem)/1.15 var(--t-display);
  letter-spacing: -.015em;
}
body[data-route^="my-type-quiz"] .my-type-page h3 { color: var(--t-ink); font: 600 1.2rem/1.35 var(--t-display); }

/* ---------- Quiz intro ---------- */
body[data-route^="my-type-quiz"] .my-type-page .quiz-intro { position: relative; margin: 6px 0 18px; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-deck {
  display: inline-block;
  margin: 0;
  padding: 8px 16px;
  border: 1.5px solid var(--t-line);
  border-radius: 999px;
  background: #fff;
  color: var(--t-muted);
  font: 600 14px/1.4 var(--t-body);
  letter-spacing: 0;
}
body[data-route^="my-type-quiz"] .my-type-page .quiz-intro-copy { max-width: 660px; color: var(--t-muted); font-size: 1.06rem; line-height: 1.7; }
/* A sealed envelope beside the title (desktop only). */
@media (min-width: 820px) {
  body[data-route^="my-type-quiz"] .my-type-page .quiz-intro::before {
    content: "";
    position: absolute;
    right: 18px;
    top: 10px;
    width: 190px;
    height: 128px;
    border-radius: 14px;
    background:
      linear-gradient(to bottom right, transparent 49.4%, rgba(43, 20, 48, .10) 49.6%, transparent 50.6%) 0 0 / 50% 100% no-repeat,
      linear-gradient(to bottom left, transparent 49.4%, rgba(43, 20, 48, .10) 49.6%, transparent 50.6%) 100% 0 / 50% 100% no-repeat,
      linear-gradient(#fff, #fff);
    box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--t-line), 0 22px 40px -22px rgba(155, 34, 68, .45);
    transform: rotate(6deg);
  }
  body[data-route^="my-type-quiz"] .my-type-page .quiz-intro::after {
    content: "♥";
    position: absolute;
    right: 92px;
    top: 58px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--t-berry);
    color: #fff;
    font: 22px/1 var(--t-body);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25);
    transform: rotate(6deg);
  }
}

/* ---------- Progress ---------- */
body[data-route^="my-type-quiz"] .my-type-page .quiz-progress-wrap { margin: 30px 0 14px; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-progress { gap: 5px; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-progress > span { height: 8px; border: 0; border-radius: 999px; background: #f3dfe3; transition: background .25s ease; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-progress > .is-answered { background: var(--t-berry); border: 0; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-progress > .is-current { outline: 0; background: var(--t-plum); box-shadow: 0 0 0 3px rgba(58, 45, 122, .18); }
body[data-route^="my-type-quiz"] .my-type-page .quiz-status { margin-top: 12px; color: var(--t-muted); font: 600 14px/1.5 var(--t-body); }

/* ---------- Question card: a sheet of letter paper ---------- */
body[data-route^="my-type-quiz"] .my-type-page .quiz-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4.6vw, 44px) clamp(20px, 4.6vw, 44px) clamp(22px, 4.6vw, 40px);
  border: 0;
  border-radius: 24px;
  background: var(--t-card);
  box-shadow: 0 1px 0 rgba(43, 20, 48, .05), 0 26px 60px -30px rgba(155, 34, 68, .45);
}
body[data-route^="my-type-quiz"] .my-type-page .quiz-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: repeating-linear-gradient(135deg, #c8325b 0 12px, #fff 12px 18px, #3a2d7a 18px 30px, #fff 30px 36px);
}
body[data-route^="my-type-quiz"] .my-type-page .quiz-question { border-bottom-style: solid; border-bottom-color: var(--t-line); }
body[data-route^="my-type-quiz"] .my-type-page .quiz-question legend {
  margin-bottom: 22px;
  color: var(--t-ink);
  font: 600 clamp(1.4rem, 3.2vw, 2rem)/1.22 var(--t-display);
  letter-spacing: -.01em;
}
body[data-route^="my-type-quiz"] .my-type-page .quiz-question legend:focus:not(:focus-visible) { outline: 0; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-question legend:focus-visible { outline: 3px solid rgba(200, 50, 91, .35); outline-offset: 6px; border-radius: 8px; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-question-number {
  display: table;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--t-lilac);
  color: var(--t-plum);
  font: 700 13px/1.3 var(--t-body);
  letter-spacing: .04em;
}

/* ---------- Answer options ---------- */
body[data-route^="my-type-quiz"] .my-type-page .quiz-options { gap: 12px; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-option {
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 18px 14px 14px;
  border: 2px solid var(--t-line);
  border-radius: 16px;
  background: var(--t-soft);
  box-shadow: none;
  color: var(--t-ink);
  font-size: 1.02rem;
  line-height: 1.45;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
body[data-route^="my-type-quiz"] .my-type-page .quiz-option:hover {
  background: #fff;
  border-color: #f2a9ba;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -12px rgba(155, 34, 68, .5);
}
/* Radio stays focusable and keyboard-operable; the letter badge shows the state. */
body[data-route^="my-type-quiz"] .my-type-page .quiz-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
body[data-route^="my-type-quiz"] .my-type-page .quiz-option-body { align-items: center; gap: 14px; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-option-key {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--t-blush);
  color: var(--t-berry-dark);
  font: italic 600 16px/1 var(--t-display);
  transition: background .15s ease, color .15s ease;
}
body[data-route^="my-type-quiz"] .my-type-page .quiz-option:has(input:checked) {
  background: var(--t-blush);
  border-color: var(--t-berry);
  box-shadow: none;
}
body[data-route^="my-type-quiz"] .my-type-page .quiz-option:has(input:checked) .quiz-option-key { background: var(--t-berry); color: #fff; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-option:focus-within { outline: 3px solid rgba(200, 50, 91, .35); outline-offset: 2px; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-error { color: var(--t-berry-dark); font-weight: 600; }

/* ---------- Buttons ---------- */
body[data-route^="my-type-quiz"] .my-type-page .quiz-actions { gap: 12px; margin-top: 26px; }
body[data-route^="my-type-quiz"] .my-type-page button,
body[data-route^="my-type-quiz"] .my-type-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--t-berry);
  color: #fff;
  box-shadow: 0 4px 0 var(--t-berry-dark);
  font: 700 1rem/1 var(--t-body);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
body[data-route^="my-type-quiz"] .my-type-page button:hover:not(:disabled),
body[data-route^="my-type-quiz"] .my-type-page .button:hover { background: #d84470; filter: none; }
body[data-route^="my-type-quiz"] .my-type-page button:active:not(:disabled),
body[data-route^="my-type-quiz"] .my-type-page .button:active {
  translate: none;
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--t-berry-dark);
}
body[data-route^="my-type-quiz"] .my-type-page .secondary {
  border: 2px solid var(--t-line);
  background: #fff;
  color: var(--t-ink);
  box-shadow: 0 4px 0 var(--t-line);
}
body[data-route^="my-type-quiz"] .my-type-page .secondary:hover:not(:disabled) { background: var(--t-soft); }
body[data-route^="my-type-quiz"] .my-type-page .secondary:active:not(:disabled) { box-shadow: 0 1px 0 var(--t-line); }

/* ---------- Sections below the quiz ---------- */
body[data-route^="my-type-quiz"] .my-type-page .quiz-explainer,
body[data-route^="my-type-quiz"] .my-type-page .quiz-related,
body[data-route^="my-type-quiz"] .my-type-page .quiz-guide { margin-top: 60px; padding-top: 0; border-top: 0; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-explainer p,
body[data-route^="my-type-quiz"] .my-type-page .quiz-guide p,
body[data-route^="my-type-quiz"] .my-type-page .quiz-related p,
body[data-route^="my-type-quiz"] .my-type-page .quiz-result-section p { color: var(--t-muted); font-size: 1.02rem; line-height: 1.75; }

/* Per-type accent colours (decoration only). */
body[data-route^="my-type-quiz"] .my-type-page li:has(a[href*="/result/the-anchor/"]),
body[data-route="my-type-quiz/result/the-anchor"] .my-type-page { --type-color: #2f7c78; --type-glyph: "⚓︎"; }
body[data-route^="my-type-quiz"] .my-type-page li:has(a[href*="/result/the-spark/"]),
body[data-route="my-type-quiz/result/the-spark"] .my-type-page { --type-color: #e8505b; --type-glyph: "✦"; }
body[data-route^="my-type-quiz"] .my-type-page li:has(a[href*="/result/the-listener/"]),
body[data-route="my-type-quiz/result/the-listener"] .my-type-page { --type-color: #6a52c9; --type-glyph: "❝"; }
body[data-route^="my-type-quiz"] .my-type-page li:has(a[href*="/result/the-chaser/"]),
body[data-route="my-type-quiz/result/the-chaser"] .my-type-page { --type-color: #d9542c; --type-glyph: "➶"; }
body[data-route^="my-type-quiz"] .my-type-page li:has(a[href*="/result/the-guardian/"]),
body[data-route="my-type-quiz/result/the-guardian"] .my-type-page { --type-color: #3f8a55; --type-glyph: "❀"; }
body[data-route^="my-type-quiz"] .my-type-page li:has(a[href*="/result/the-free-spirit/"]),
body[data-route="my-type-quiz/result/the-free-spirit"] .my-type-page { --type-color: #d9961c; --type-glyph: "✿"; }

/* Six type cards */
body[data-route^="my-type-quiz"] .my-type-page .quiz-type-grid { gap: 16px; margin: 28px 0; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-type-grid > li {
  position: relative;
  padding: 22px 22px 22px 88px;
  border: 2px solid var(--t-line);
  border-color: color-mix(in srgb, var(--type-color, #c8325b) 24%, #fff);
  border-radius: 20px;
  background: #fff;
  background: color-mix(in srgb, var(--type-color, #c8325b) 7%, #fff);
  transition: transform .15s ease, box-shadow .15s ease;
}
/* A little postage stamp in each type's colour. */
body[data-route^="my-type-quiz"] .my-type-page .quiz-type-grid > li::before {
  content: var(--type-glyph, "♥");
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px dotted #fff;
  border-radius: 8px;
  background: var(--type-color, #c8325b);
  box-shadow: 0 0 0 2px var(--type-color, #c8325b);
  color: #fff;
  font: 20px/1 var(--t-body);
  transform: rotate(-4deg);
}
body[data-route^="my-type-quiz"] .my-type-page .quiz-type-grid > li:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(155, 34, 68, .5); }
body[data-route^="my-type-quiz"] .my-type-page .quiz-type-grid a { color: var(--t-ink); font: 600 1.3rem/1.2 var(--t-display); text-decoration: none; }
/* Whole card is clickable. */
body[data-route^="my-type-quiz"] .my-type-page .quiz-type-grid a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-type-grid p { margin: 8px 0 0; color: var(--t-muted); font-size: .95rem; line-height: 1.6; }

/* Disclaimer note */
body[data-route^="my-type-quiz"] .my-type-page .quiz-result-note {
  max-width: 780px;
  margin-top: 40px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--t-lilac);
  color: var(--t-muted);
  font-size: .92rem;
  line-height: 1.6;
}

/* Pill links */
body[data-route^="my-type-quiz"] .my-type-page nav.quiz-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}
body[data-route^="my-type-quiz"] .my-type-page nav.quiz-related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--t-line);
  border-radius: 999px;
  background: #fff;
  color: var(--t-ink);
  font-weight: 600;
  text-decoration: none;
}
body[data-route^="my-type-quiz"] .my-type-page nav.quiz-related a:hover { border-color: var(--t-berry); color: var(--t-berry-dark); }

/* ---------- Result pages: a postcard with a stamp ---------- */
body[data-route^="my-type-quiz"] .my-type-page .quiz-result-intro {
  position: relative;
  margin: 6px 0 32px;
  padding: clamp(28px, 5vw, 48px);
  padding-right: clamp(28px, 22vw, 230px);
  border: 10px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    repeating-linear-gradient(135deg, #c8325b 0 14px, #fff 14px 22px, #3a2d7a 22px 36px, #fff 36px 44px) border-box;
  box-shadow: 0 26px 60px -32px rgba(155, 34, 68, .5);
}
body[data-route^="my-type-quiz"] .my-type-page .quiz-result-intro::after {
  content: var(--type-glyph, "♥");
  position: absolute;
  top: clamp(24px, 4vw, 40px);
  right: clamp(24px, 4vw, 44px);
  display: grid;
  place-items: center;
  width: 124px;
  height: 148px;
  border: 6px dotted #fff;
  border-radius: 10px;
  background: var(--type-color, #c8325b);
  box-shadow: 0 0 0 4px var(--type-color, #c8325b), 0 12px 24px -12px rgba(43, 20, 48, .5);
  color: #fff;
  font: 58px/1 var(--t-body);
  transform: rotate(5deg);
}
body[data-route^="my-type-quiz"] .my-type-page .quiz-result-intro h1 { max-width: 16ch; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-result-lead {
  max-width: 36ch;
  margin: 0;
  padding-left: 0;
  border-left: 0;
  color: var(--t-ink);
  font: italic 500 1.3rem/1.5 var(--t-display);
}
body[data-route^="my-type-quiz"] .my-type-page .quiz-result-section { margin-top: 48px; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-result-traits { gap: 12px; }
body[data-route^="my-type-quiz"] .my-type-page .quiz-result-traits li {
  position: relative;
  padding: 16px 18px 16px 54px;
  border: 2px solid var(--t-line);
  border-radius: 16px;
  background: #fff;
  color: var(--t-ink);
  line-height: 1.6;
}
body[data-route^="my-type-quiz"] .my-type-page .quiz-result-traits li::before {
  content: "♥";
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--type-color, #c8325b) 18%, #fff);
  color: var(--type-color, #c8325b);
  font: 13px/1 var(--t-body);
}
body[data-route^="my-type-quiz"] .my-type-page .quiz-result-comparisons h3 {
  margin: 24px 0 8px;
  padding-left: 14px;
  border-left: 4px solid var(--type-color, #c8325b);
}
body[data-route^="my-type-quiz"] .my-type-page .quiz-retake { margin: 30px 0; }

/* ---------- Share panel (same structure as the sauce quiz) ---------- */
body[data-route^="my-type-quiz"] .my-type-page .type-sharing {
  margin: 40px 0;
  padding: clamp(20px, 4vw, 32px);
  border: 2px solid color-mix(in srgb, var(--type-color, #c8325b) 30%, #fff);
  border-radius: 24px;
  background: #fff;
  background: color-mix(in srgb, var(--type-color, #c8325b) 8%, #fff);
}
body[data-route^="my-type-quiz"] .my-type-page .type-sharing h2 { margin-top: 0; margin-bottom: 8px; }
body[data-route^="my-type-quiz"] .my-type-page .type-sharing > p:not([class]):not([id]) { margin: 0 0 20px; color: var(--t-muted); }
body[data-route^="my-type-quiz"] .my-type-page .type-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body[data-route^="my-type-quiz"] .my-type-page .type-social-grid > * {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  font-size: 1rem;
  text-align: center;
}
body[data-route^="my-type-quiz"] .my-type-page .type-social-grid > [hidden] { display: none; }
body[data-route^="my-type-quiz"] .my-type-page .type-social-grid #type-x { background: var(--t-ink); box-shadow: 0 4px 0 #000; color: #fff; }
body[data-route^="my-type-quiz"] .my-type-page .type-social-grid #type-x:hover { background: #452148; }
body[data-route^="my-type-quiz"] .my-type-page .type-social-grid #type-x:active { box-shadow: 0 1px 0 #000; }
body[data-route^="my-type-quiz"] .my-type-page .type-sharing .quiz-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
body[data-route^="my-type-quiz"] .my-type-page .type-sharing .quiz-actions > button { min-width: 0; padding: 0 14px; }
body[data-route^="my-type-quiz"] .my-type-page .type-sharing .quiz-actions > [hidden] { display: none; }
body[data-route^="my-type-quiz"] .my-type-page .type-sharing #type-share[hidden] + #type-copy { grid-column: 1 / -1; }
body[data-route^="my-type-quiz"] .my-type-page .type-share-note { margin: 16px 0 0; color: var(--t-muted); font-size: .9rem; line-height: 1.6; }
body[data-route^="my-type-quiz"] .my-type-page #type-share-status { margin: 12px 0 0; color: var(--t-ink); font-weight: 600; }
body[data-route^="my-type-quiz"] .my-type-page #type-share-status:empty { display: none; }
body[data-route^="my-type-quiz"] .my-type-page #type-share-open { display: inline-flex; margin-top: 10px; font-weight: 700; }
body[data-route^="my-type-quiz"] .my-type-page #type-share-open[hidden] { display: none; }
body[data-route^="my-type-quiz"] .my-type-page .type-share-fallback { display: block; margin-top: 12px; color: var(--t-ink); font-weight: 600; }
body[data-route^="my-type-quiz"] .my-type-page .type-share-fallback[hidden] { display: none; }
body[data-route^="my-type-quiz"] .my-type-page .type-share-fallback textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin-top: 6px;
  padding: 12px 14px;
  border: 2px solid var(--t-line);
  border-radius: 14px;
  background: #fff;
  color: var(--t-ink);
  font: 16px/1.5 var(--t-body);
  resize: vertical;
  overflow-wrap: anywhere;
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  body[data-route^="my-type-quiz"] { background-size: 100% 8px, 100% 1000px, 100% 1000px; }
  body[data-route^="my-type-quiz"] .site-header { padding-top: 26px; flex-wrap: wrap; row-gap: 14px; }
  body[data-route^="my-type-quiz"] .brand-name { white-space: nowrap; }
  body[data-route^="my-type-quiz"] .nav { gap: 6px; }
  body[data-route^="my-type-quiz"] .nav a { padding: 7px 11px; font-size: 12px; white-space: nowrap; }
  body[data-route^="my-type-quiz"] .my-type-page .quiz-deck { border-radius: 14px; font-size: 13px; }
  body[data-route^="my-type-quiz"] .my-type-page .quiz-intro-copy { font-size: .98rem; line-height: 1.65; }
  body[data-route^="my-type-quiz"] .my-type-page h1 { font-size: clamp(2.2rem, 10.5vw, 2.9rem); }
  body[data-route^="my-type-quiz"] .my-type-page .quiz-card { padding: 28px 16px 22px; border-radius: 20px; }
  body[data-route^="my-type-quiz"] .my-type-page .quiz-option { min-height: 58px; padding: 12px 14px 12px 12px; gap: 12px; }
  body[data-route^="my-type-quiz"] .my-type-page .quiz-option-body { gap: 12px; }
  body[data-route^="my-type-quiz"] .my-type-page .quiz-option-key { flex-basis: 32px; width: 32px; height: 32px; font-size: 15px; }
  body[data-route^="my-type-quiz"] .my-type-page .quiz-type-grid > li { padding: 18px 18px 18px 78px; }
  body[data-route^="my-type-quiz"] .my-type-page .quiz-type-grid > li::before { top: 20px; left: 18px; width: 40px; height: 40px; font-size: 18px; }
  body[data-route^="my-type-quiz"] .my-type-page .quiz-result-intro { padding: 24px 18px 26px; border-width: 8px; }
  body[data-route^="my-type-quiz"] .my-type-page .quiz-result-intro::after {
    position: relative;
    top: auto;
    right: auto;
    width: 74px;
    height: 88px;
    margin: 18px 0 0 auto;
    border-width: 4px;
    font-size: 34px;
  }
  body[data-route^="my-type-quiz"] .my-type-page .quiz-result-lead { font-size: 1.15rem; }
  body[data-route^="my-type-quiz"] .my-type-page .quiz-retake .button { width: 100%; }
  body[data-route^="my-type-quiz"] .my-type-page .type-sharing { padding: 18px 16px; border-radius: 20px; }
  body[data-route^="my-type-quiz"] .my-type-page .type-social-grid,
  body[data-route^="my-type-quiz"] .my-type-page .type-sharing .quiz-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-route^="my-type-quiz"] .my-type-page *,
  body[data-route^="my-type-quiz"] .my-type-page *::before,
  body[data-route^="my-type-quiz"] .my-type-page *::after { transition: none !important; }
}
