/* ==========================================================================
   犬格 DogPersona — high-fidelity interaction prototype
   ========================================================================== */

:root {
  --bg: #f6fbfd;
  --bg-deep: #eaf5fa;
  --surface: #fffdf9;
  --surface-soft: #fbfdff;
  --white: #ffffff;
  --blue-50: #f1f9fd;
  --blue-100: #e5f4fa;
  --blue-200: #d2ebf5;
  --blue-300: #b4ddea;
  --blue-400: #82bfd7;
  --blue-500: #4c93b4;
  --blue-600: #2f6f95;
  --blue-700: #24566f;
  --blue-800: #1b4258;
  --ink: #24343d;
  --ink-soft: #4f636d;
  --muted: #74858e;
  --muted-light: #96a4ab;
  --line: rgba(35, 83, 108, 0.105);
  --line-strong: rgba(35, 83, 108, 0.18);
  --cream: #fff4e1;
  --cream-strong: #f7e3bd;
  --coral: #e9b49f;
  --coral-soft: #f8e2d7;
  --green: #5d907f;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-latin: "Segoe UI", "Aptos", "Helvetica Neue", sans-serif;
  --shadow-sm: 0 4px 18px rgba(36, 76, 95, 0.06);
  --shadow-md: 0 18px 52px rgba(36, 76, 95, 0.09);
  --shadow-lg: 0 32px 100px rgba(36, 76, 95, 0.14);
  --radius-xl: 40px;
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 15px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

svg {
  max-width: 100%;
}

::selection {
  background: var(--cream-strong);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
figure,
blockquote,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 750;
  text-wrap: balance;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue-700);
  color: var(--white);
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.atmosphere-blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

.blob-a {
  top: -16vw;
  right: -10vw;
  width: 46vw;
  height: 46vw;
  background: rgba(206, 235, 245, 0.9);
}

.blob-b {
  top: 32vh;
  left: -20vw;
  width: 44vw;
  height: 44vw;
  background: rgba(255, 241, 216, 0.74);
}

.blob-c {
  right: -18vw;
  bottom: -22vw;
  width: 52vw;
  height: 52vw;
  background: rgba(216, 239, 245, 0.82);
}

.atmosphere-grain {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image: radial-gradient(rgba(47, 111, 149, 0.09) 0.7px, transparent 0.7px);
  background-size: 5px 5px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 60%);
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

main {
  min-height: 62vh;
}

/* --------------------------------------------------------------------------
   Header + navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 16px;
  z-index: 40;
  width: min(calc(100% - 36px), 1240px);
  margin: 16px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(250, 253, 254, 0.72);
  box-shadow: 0 8px 36px rgba(41, 86, 106, 0.06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 254, 255, 0.92);
  box-shadow: 0 12px 42px rgba(41, 86, 106, 0.09);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 66px;
  padding: 8px 12px 8px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(47, 111, 149, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.main-nav a,
.main-nav button {
  position: relative;
  padding: 9px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 550;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav button:hover,
.main-nav a.is-active {
  background: rgba(229, 244, 250, 0.8);
  color: var(--blue-700);
}

.main-nav a.is-active::after {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-500);
  content: "";
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--blue-600);
  box-shadow: 0 8px 22px rgba(47, 111, 149, 0.2);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 650;
  transition: background 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.header-cta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-cta:hover {
  background: var(--blue-700);
  box-shadow: 0 10px 28px rgba(47, 111, 149, 0.26);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.68);
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.site-header.is-open .menu-toggle span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Shared type, spacing, buttons
   -------------------------------------------------------------------------- */

.section {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 92px 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: var(--blue-600);
  font-family: var(--font-latin);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.55;
}

.section-kicker.light {
  color: var(--cream);
}

.section-kicker.light::before {
  background: var(--cream);
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-heading {
  margin-bottom: 38px;
}

.split-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.heading-side,
.heading-copy {
  max-width: 390px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.heading-side .text-link {
  margin-top: 18px;
}

.centered-heading {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.centered-heading .section-kicker {
  justify-content: center;
}

.centered-heading p {
  max-width: 600px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-600);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.4;
}

.text-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.text-link:hover svg {
  transform: translateX(3px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.button svg {
  width: 16px;
  height: 16px;
}

.button-primary {
  background: var(--blue-600);
  box-shadow: 0 10px 28px rgba(47, 111, 149, 0.2);
  color: var(--white);
}

.button-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 14px 34px rgba(47, 111, 149, 0.26);
  transform: translateY(-2px);
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--blue-300);
  background: var(--white);
  transform: translateY(-1px);
}

.button-cream {
  background: var(--cream);
  color: var(--blue-700);
}

.button-cream:hover {
  background: #fff9eb;
  transform: translateY(-2px);
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
}

.button-large {
  min-height: 52px;
  padding: 0 26px;
  font-size: 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid rgba(47, 111, 149, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--blue-700);
  font-size: 11.5px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Landing — hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 32px;
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 68px 0 52px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(47, 111, 149, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 550;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(233, 180, 159, 0.18);
}

.hero-title {
  margin: 24px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(62px, 7.8vw, 106px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hero-title br {
  content: "";
}

.title-accent {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: var(--blue-600);
}

.title-accent::after {
  position: absolute;
  right: -2%;
  bottom: 0.06em;
  left: -1%;
  z-index: -1;
  height: 0.2em;
  border-radius: 999px;
  background: var(--cream-strong);
  content: "";
  opacity: 0.9;
  transform: rotate(-1.5deg);
}

.title-dot {
  color: var(--coral);
}

.hero-lede {
  max-width: 530px;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 11.5px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta svg {
  width: 14px;
  height: 14px;
  color: var(--blue-500);
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: 610px;
  margin-left: auto;
}

.hero-orb {
  position: absolute;
  inset: 34px 24px 26px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 46% 54% 57% 43% / 44% 40% 60% 56%;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.8), transparent 44%),
    linear-gradient(145deg, var(--orb-bg, #fbf3e1), var(--orb-blob, #f3ddad));
  box-shadow: 0 40px 100px rgba(48, 91, 111, 0.14), inset 0 1px 3px rgba(255, 255, 255, 0.9);
  transform: rotate(-2deg);
}

.hero-orb::before {
  position: absolute;
  top: 18%;
  left: 18%;
  width: 32%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  content: "";
  filter: blur(16px);
  transform: rotate(-20deg);
}

.orb-ring {
  position: absolute;
  z-index: 0;
  border: 1px dashed rgba(106, 76, 33, 0.16);
  border-radius: 50%;
}

.orb-ring-a {
  inset: 12% 8% 17% 9%;
  transform: rotate(14deg);
}

.orb-ring-b {
  inset: 25% 20% 26% 21%;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.3);
}

.orb-spark {
  position: absolute;
  z-index: 2;
  color: var(--orb-accent, #d6a04d);
  font-size: 18px;
  line-height: 1;
}

.orb-spark-a {
  top: 18%;
  right: 17%;
  opacity: 0.65;
}

.orb-spark-b {
  bottom: 22%;
  left: 14%;
  font-size: 11px;
  opacity: 0.5;
}

.hero-dog {
  position: relative;
  z-index: 1;
  width: 86%;
  max-width: 430px;
  height: auto;
  transform: translateY(4%);
  filter: drop-shadow(0 24px 24px rgba(76, 61, 38, 0.12));
}

.hero-persona {
  position: absolute;
  bottom: 4px;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 10px 13px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 38px rgba(42, 83, 101, 0.12);
  backdrop-filter: blur(14px);
}

.mini-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: var(--golden-bg, #fbf3e1);
}

.mini-avatar-dog {
  width: 54px;
  height: auto;
  transform: translateY(5px);
}

.hero-persona > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hero-persona strong {
  font-size: 12.5px;
  font-weight: 750;
}

.hero-persona small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
}

.persona-check {
  display: grid;
  width: 23px;
  height: 23px;
  margin-left: auto;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
}

.persona-check svg {
  width: 13px;
  height: 13px;
}

.floating-dog {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 32px rgba(42, 83, 101, 0.1);
  backdrop-filter: blur(12px);
  animation: float 7s ease-in-out infinite;
}

.floating-dog > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.floating-dog strong {
  font-size: 10.5px;
  font-weight: 700;
}

.floating-dog small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
}

.float-dog-art {
  width: 40px;
  height: auto;
  border-radius: 11px;
  background: var(--float-bg, #eef3f1);
}

.floating-border {
  top: 8%;
  left: -2%;
  animation-delay: -2s;
}

.floating-shiba {
  right: -3%;
  bottom: 27%;
  animation-delay: -4s;
}

.hero-count-card {
  position: absolute;
  top: 13%;
  right: 3%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.73);
  box-shadow: 0 14px 30px rgba(42, 83, 101, 0.09);
  backdrop-filter: blur(12px);
}

.hero-count-card strong {
  color: var(--blue-600);
  font-family: var(--font-latin);
  font-size: 24px;
  font-weight: 750;
  line-height: 1;
}

.hero-count-card span {
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.45;
}

.hero-stamp {
  position: absolute;
  top: 48%;
  left: -16px;
  z-index: 2;
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.15em;
  line-height: 1.55;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-ribbon {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-ribbon span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hero-ribbon svg {
  width: 13px;
  height: 13px;
  color: var(--coral);
}

.ribbon-line {
  height: 1px;
  flex: 1;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   Dog cards + featured pack
   -------------------------------------------------------------------------- */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dog-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 27px;
  background: var(--card-bg, #fbf3e1);
  box-shadow: 0 12px 34px rgba(42, 83, 101, 0.06);
  text-align: left;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}

.dog-card:hover {
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 24px 55px rgba(42, 83, 101, 0.13);
  transform: translateY(-7px);
}

.dog-card-art {
  position: relative;
  display: flex;
  width: 100%;
  height: 238px;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 62% 35%, rgba(255, 255, 255, 0.52), transparent 42%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.3), var(--card-blob, #f3ddad));
}

.dog-card-art::before {
  position: absolute;
  top: 17%;
  left: 16%;
  width: 54%;
  height: 54%;
  border: 1px dashed color-mix(in srgb, var(--card-accent, #d6a04d) 24%, transparent);
  border-radius: 50%;
  content: "";
  transform: rotate(-14deg);
}

.dog-card-halo {
  position: absolute;
  top: 17%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(10px);
}

.dog-card-dog {
  position: relative;
  z-index: 1;
  width: 79%;
  max-width: 222px;
  height: auto;
  transform: translateY(9px);
  filter: drop-shadow(0 16px 16px rgba(76, 61, 38, 0.1));
  transition: transform 0.45s var(--ease);
}

.dog-card:hover .dog-card-dog {
  transform: translateY(3px) scale(1.025);
}

.dog-card-index {
  position: absolute;
  top: 15px;
  left: 17px;
  z-index: 2;
  color: color-mix(in srgb, var(--card-ink, #6b4f24) 52%, transparent);
  font-family: var(--font-latin);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.dog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.5);
}

.dog-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dog-card-heading strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.dog-card-arrow {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(47, 111, 149, 0.14);
  border-radius: 50%;
  color: var(--blue-600);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.dog-card-arrow svg {
  width: 13px;
  height: 13px;
}

.dog-card:hover .dog-card-arrow {
  background: var(--blue-600);
  color: var(--white);
  transform: rotate(45deg);
}

.dog-card-tagline {
  margin-top: 2px;
  color: var(--card-ink, #6b4f24);
  font-size: 11.5px;
  font-weight: 550;
  opacity: 0.84;
}

.dog-card-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
}

.dog-card-keywords span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(47, 111, 149, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink-soft);
  font-size: 8.5px;
  font-weight: 550;
}

.dog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  color: var(--blue-600);
  font-size: 9.5px;
  font-weight: 650;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.dog-card:hover .dog-card-link {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.how-section {
  padding-top: 74px;
}

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

.how-card {
  position: relative;
  min-height: 285px;
  padding: 25px 26px 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), background 0.3s ease, box-shadow 0.3s ease;
}

.how-card:hover {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.how-number {
  position: absolute;
  top: 23px;
  right: 24px;
  color: var(--blue-200);
  font-family: var(--font-latin);
  font-size: 44px;
  font-weight: 750;
  line-height: 1;
}

.how-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
}

.how-icon svg {
  width: 21px;
  height: 21px;
}

.how-card h3 {
  margin-top: 24px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.how-card p {
  max-width: 300px;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.75;
}

.how-time {
  position: absolute;
  bottom: 23px;
  left: 26px;
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Philosophy / privacy / final CTA
   -------------------------------------------------------------------------- */

.philosophy-section {
  padding-top: 48px;
}

.philosophy-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 40px;
  overflow: hidden;
  padding: 48px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 6%, rgba(124, 184, 206, 0.35), transparent 38%),
    radial-gradient(circle at 10% 108%, rgba(231, 179, 139, 0.18), transparent 40%),
    linear-gradient(135deg, #2f6f95 0%, #265b75 52%, #1f4a60 100%);
  box-shadow: 0 28px 80px rgba(31, 74, 96, 0.2);
  color: var(--white);
}

.philosophy-card::after {
  position: absolute;
  top: -30%;
  right: -12%;
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.philosophy-copy {
  position: relative;
  z-index: 1;
}

.philosophy-copy h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
}

.philosophy-copy p {
  max-width: 510px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  line-height: 1.85;
}

.philosophy-copy .button {
  margin-top: 28px;
}

.philosophy-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.philosophy-quote {
  position: relative;
  padding: 24px 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
}

.quote-mark {
  display: block;
  height: 30px;
  color: var(--cream-strong);
  font-family: Georgia, "Songti SC", serif;
  font-size: 42px;
  line-height: 0.9;
}

.philosophy-quote p {
  max-width: 280px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
}

.philosophy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.philosophy-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.philosophy-stats strong {
  color: var(--cream);
  font-family: var(--font-latin);
  font-size: 28px;
  font-weight: 650;
  line-height: 1;
}

.philosophy-stats span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
}

.privacy-section {
  padding-top: 18px;
  padding-bottom: 42px;
}

.privacy-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 27px 30px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 27px;
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 255, 255, 0.5), transparent 30%),
    rgba(232, 246, 251, 0.72);
  box-shadow: var(--shadow-sm);
}

.privacy-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(47, 111, 149, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--blue-600);
}

.privacy-icon svg {
  width: 22px;
  height: 22px;
}

.privacy-copy .section-kicker {
  margin-bottom: 7px;
}

.privacy-copy h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.04em;
}

.privacy-copy p {
  max-width: 700px;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.privacy-link {
  white-space: nowrap;
}

.final-section {
  padding-top: 52px;
  padding-bottom: 104px;
}

.final-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 255, 255, 0.76), transparent 34%),
    linear-gradient(130deg, #fff8eb, #f9f2e2 56%, #edf8fc);
  box-shadow: var(--shadow-md);
}

.final-art {
  position: relative;
  display: flex;
  height: 390px;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 45%, rgba(255, 255, 255, 0.4), transparent 44%),
    var(--final-bg, #f8f5e8);
}

.final-halo {
  position: absolute;
  top: 14%;
  width: 62%;
  aspect-ratio: 1;
  border: 1px dashed rgba(152, 114, 64, 0.22);
  border-radius: 50%;
  transform: rotate(18deg);
}

.final-dog {
  position: relative;
  z-index: 1;
  width: 78%;
  max-width: 300px;
  transform: translateY(5%);
  filter: drop-shadow(0 22px 24px rgba(76, 61, 38, 0.12));
}

.final-paw {
  position: absolute;
  right: 12%;
  bottom: 18%;
  color: rgba(144, 104, 55, 0.3);
}

.final-paw svg {
  width: 32px;
  height: 32px;
}

.final-copy {
  padding: 46px 48px 46px 30px;
}

.final-copy h2 {
  font-size: clamp(34px, 4vw, 55px);
}

.final-copy > p {
  max-width: 510px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.final-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10.5px;
}

.final-note svg {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   Dog index page
   -------------------------------------------------------------------------- */

.dogs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: center;
  gap: 30px;
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 76px 0 54px;
}

.dogs-hero-copy {
  max-width: 680px;
}

.dogs-hero h1 {
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.dogs-hero p {
  max-width: 540px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

.dogs-hero-actions {
  margin-top: 26px;
}

.dogs-hero-orbit {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
  margin-left: auto;
  border: 1px dashed rgba(47, 111, 149, 0.2);
  border-radius: 50%;
}

.dogs-hero-orbit::before,
.dogs-hero-orbit::after {
  position: absolute;
  border: 1px solid rgba(47, 111, 149, 0.12);
  border-radius: 50%;
  content: "";
}

.dogs-hero-orbit::before {
  inset: 15%;
}

.dogs-hero-orbit::after {
  inset: 31%;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 106px;
  height: 106px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 38% 62% 54% 46% / 47% 42% 58% 53%;
  background: linear-gradient(145deg, var(--cream), #f6e1b9);
  box-shadow: 0 20px 50px rgba(133, 94, 47, 0.13);
  color: rgba(133, 94, 47, 0.58);
  transform: translate(-50%, -50%) rotate(-7deg);
}

.orbit-center svg {
  width: 34px;
  height: 34px;
  transform: rotate(7deg);
}

.orbit-label {
  position: absolute;
  right: 2%;
  bottom: 11%;
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.55;
}

.orbit-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--blue-400);
  box-shadow: 0 0 0 1px rgba(47, 111, 149, 0.18);
}

.dot-a { top: 11%; left: 24%; }
.dot-b { top: 48%; right: -5px; background: var(--coral); }
.dot-c { bottom: 15%; left: 14%; background: var(--cream-strong); }

.dogs-gallery-section {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.dogs-gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.dogs-gallery-head .section-kicker {
  margin-bottom: 0;
}

.dogs-gallery-head p {
  max-width: 430px;
  color: var(--ink-soft);
  font-size: 12.5px;
  text-align: right;
}

.dogs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.dogs-note {
  max-width: 730px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.75;
  text-align: center;
}

.dogs-bottom-cta {
  padding-top: 42px;
  padding-bottom: 100px;
}

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 38px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.55), transparent 34%),
    linear-gradient(130deg, rgba(229, 244, 250, 0.9), rgba(255, 248, 235, 0.72));
  box-shadow: var(--shadow-sm);
}

.inline-cta h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.inline-cta p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 38px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) minmax(120px, 0.55fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-links a,
.footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11.5px;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--blue-600);
}

.footer-meta {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
}

.footer-meta p + p {
  margin-top: 8px;
}

.prototype-note {
  display: inline-flex;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-600);
  font-family: var(--font-latin);
  font-size: 8px;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Quiz
   -------------------------------------------------------------------------- */

body.focus-mode {
  background:
    radial-gradient(circle at 12% 12%, rgba(221, 242, 249, 0.9), transparent 38%),
    radial-gradient(circle at 88% 24%, rgba(255, 244, 225, 0.9), transparent 36%),
    #f8fcfe;
}

body.focus-mode .site-header,
body.focus-mode .site-footer {
  display: none;
}

.quiz-page {
  min-height: 100svh;
  padding: 0 24px 48px;
}

.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 21px 0 18px;
}

.brand-quiz {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark-small {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-600);
  box-shadow: 0 7px 18px rgba(47, 111, 149, 0.17);
  color: var(--cream);
}

.brand-mark-small svg {
  width: 19px;
  height: 19px;
}

.brand-quiz .brand-copy strong {
  font-size: 16px;
}

.brand-quiz .brand-copy small {
  font-size: 7px;
}

.quiz-top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.quiz-position {
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.quiz-position strong {
  color: var(--blue-700);
  font-size: 16px;
  font-weight: 650;
}

.quiz-exit {
  padding: 7px 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.quiz-exit:hover {
  color: var(--blue-600);
}

.quiz-progress-wrap {
  width: min(100%, 1100px);
  height: 3px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(47, 111, 149, 0.1);
}

.quiz-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
  transition: width 0.45s var(--ease);
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: clamp(32px, 5vw, 78px);
  width: min(100%, 1040px);
  margin: 0 auto;
  padding-top: clamp(38px, 6vh, 66px);
}

.quiz-card {
  padding: 39px 42px 30px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 31px;
  background: rgba(255, 255, 255, 0.69);
  box-shadow: 0 26px 76px rgba(41, 86, 106, 0.1);
  backdrop-filter: blur(16px);
  animation: cardIn 0.45s var(--ease);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.quiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quiz-kicker {
  color: var(--blue-600);
  font-family: var(--font-latin);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.quiz-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-light);
  font-size: 9.5px;
}

.quiz-time svg {
  width: 12px;
  height: 12px;
}

.question-title {
  max-width: 680px;
  margin: 22px 0 13px;
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.38;
}

.question-title:focus {
  outline: none;
}

.question-hint {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 28px;
}

.option-button {
  display: flex;
  width: 100%;
  min-height: 67px;
  align-items: center;
  gap: 15px;
  padding: 12px 14px 12px 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 2px 8px rgba(35, 83, 108, 0.025);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.option-button:hover {
  border-color: var(--blue-300);
  background: var(--white);
  box-shadow: 0 9px 22px rgba(35, 83, 108, 0.07);
  transform: translateY(-2px);
}

.option-button.is-selected {
  border-color: var(--blue-500);
  background: var(--blue-50);
  box-shadow: 0 9px 24px rgba(47, 111, 149, 0.1);
}

.option-letter {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(47, 111, 149, 0.12);
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.option-button.is-selected .option-letter {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: var(--white);
}

.option-text {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.55;
}

.option-check {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(47, 111, 149, 0.16);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.2s ease, transform 0.22s var(--ease), background 0.2s ease;
}

.option-check svg {
  width: 13px;
  height: 13px;
}

.option-button.is-selected .option-check {
  border-color: var(--blue-600);
  background: var(--blue-600);
  opacity: 1;
  transform: scale(1);
}

.quiz-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 27px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
}

.quiz-back svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quiz-back:hover {
  color: var(--blue-600);
}

.quiz-back:disabled {
  opacity: 0.3;
}

.quiz-keyboard-hint {
  color: var(--muted-light);
  font-size: 9.5px;
}

kbd {
  display: inline-flex;
  min-width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--font-latin);
  font-size: 8px;
}

.quiz-aside {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-top: 22px;
}

.aside-note,
.aside-progress {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(12px);
}

.aside-note-icon {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 10px;
  background: var(--cream);
  color: #b98a4f;
}

.aside-note-icon svg {
  width: 16px;
  height: 16px;
}

.aside-note strong {
  display: block;
  font-size: 11.5px;
  line-height: 1.5;
}

.aside-note p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.aside-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9.5px;
}

.aside-progress-label strong {
  color: var(--blue-700);
  font-family: var(--font-latin);
  font-size: 11px;
}

.aside-progress-track {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-100);
}

.aside-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-500);
  transition: width 0.4s var(--ease);
}

.aside-progress p {
  margin-top: 10px;
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1.5;
}

.quiz-complete {
  display: grid;
  min-height: 100svh;
  padding: 30px;
  place-items: center;
}

.quiz-complete-card {
  width: min(100%, 540px);
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.quiz-complete-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
}

.quiz-complete-icon svg {
  width: 21px;
  height: 21px;
}

.quiz-complete h1 {
  font-size: 30px;
  letter-spacing: -0.04em;
}

.quiz-complete p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

.quiz-complete-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.quiz-complete-home {
  display: inline-block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   Analysis
   -------------------------------------------------------------------------- */

.analysis-page {
  min-height: 100svh;
  padding: 0 24px 44px;
  background:
    radial-gradient(circle at 18% 24%, rgba(220, 241, 249, 0.85), transparent 38%),
    radial-gradient(circle at 82% 78%, rgba(255, 244, 225, 0.8), transparent 40%);
}

.analysis-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 21px 0;
}

.analysis-top-note {
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 8vw, 110px);
  width: min(100%, 1000px);
  min-height: calc(100svh - 110px);
  margin: 0 auto;
  padding-bottom: 5vh;
}

.analysis-visual {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  justify-self: center;
}

.analysis-orbit {
  position: absolute;
  border: 1px dashed rgba(47, 111, 149, 0.22);
  border-radius: 50%;
  animation: rotate 18s linear infinite;
}

.orbit-one { inset: 0; }
.orbit-two { inset: 11%; animation-direction: reverse; animation-duration: 24s; border-style: solid; border-color: rgba(47, 111, 149, 0.1); }
.orbit-three { inset: 23%; animation-duration: 14s; border-color: rgba(233, 180, 159, 0.35); }

.analysis-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 46%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.82), transparent 32%),
    linear-gradient(145deg, var(--cream), #f2dbb1);
  box-shadow: 0 28px 70px rgba(137, 96, 48, 0.14);
  color: rgba(139, 100, 52, 0.55);
  transform: translate(-50%, -50%) rotate(-6deg);
  animation: breathe 4s ease-in-out infinite;
}

.analysis-core svg {
  width: 48px;
  height: 48px;
  transform: rotate(6deg);
}

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

@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
  50% { transform: translate(-50%, -50%) rotate(-4deg) scale(1.025); }
}

.analysis-spark {
  position: absolute;
  color: var(--coral);
  animation: twinkle 3s ease-in-out infinite;
}

.spark-a { top: 8%; right: 16%; font-size: 18px; }
.spark-b { bottom: 16%; left: 5%; color: var(--blue-400); font-size: 11px; animation-delay: -1s; }
.spark-c { right: 5%; bottom: 29%; color: #c9a35d; font-size: 13px; animation-delay: -2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.06); }
}

.analysis-copy h1 {
  margin-top: 14px;
  font-size: clamp(34px, 4.7vw, 56px);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.analysis-lede {
  max-width: 500px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.analysis-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.analysis-step {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0.48;
  transition: opacity 0.35s ease;
}

.analysis-step.is-active,
.analysis-step.is-done {
  opacity: 1;
}

.analysis-step-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted-light);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.analysis-step-icon svg {
  width: 12px;
  height: 12px;
}

.analysis-step.is-done .analysis-step-icon {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: var(--white);
}

.analysis-step.is-active .analysis-step-icon {
  border-color: var(--blue-300);
  box-shadow: 0 0 0 4px rgba(47, 111, 149, 0.06);
}

.analysis-step > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.analysis-step strong {
  font-size: 12px;
  font-weight: 650;
}

.analysis-step small {
  color: var(--muted);
  font-size: 9.5px;
}

.analysis-step-status {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-light);
  opacity: 0;
}

.analysis-step.is-active .analysis-step-status {
  background: var(--blue-500);
  opacity: 1;
  animation: blink 1.4s ease-in-out infinite;
}

.analysis-step.is-done .analysis-step-status {
  background: var(--blue-500);
  opacity: 0.5;
}

@keyframes blink {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

.analysis-quote {
  margin-top: 23px;
  color: var(--blue-700);
  font-size: 12px;
  font-style: italic;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Result page
   -------------------------------------------------------------------------- */

.result-page {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 550;
}

.back-link svg {
  width: 13px;
  height: 13px;
  transform: rotate(180deg);
}

.result-meta,
.result-top-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.result-top-note {
  color: var(--muted-light);
}

.result-top-note svg {
  width: 12px;
  height: 12px;
}

.result-banner {
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(165, 120, 56, 0.13);
  border-radius: 14px;
  background: var(--cream);
  color: #806237;
  font-size: 10.5px;
  text-align: center;
}

.shared-banner {
  border-color: rgba(47, 111, 149, 0.12);
  background: var(--blue-50);
  color: var(--blue-700);
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(44px, 6vw, 74px) 0 clamp(52px, 7vw, 84px);
}

.result-copy {
  max-width: 620px;
}

.result-copy > .section-kicker {
  margin-bottom: 14px;
}

.result-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(72px, 10vw, 132px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.result-title em {
  color: var(--result-accent, var(--blue-500));
  font-family: var(--font-sans);
  font-size: 0.28em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.result-tagline {
  margin-top: 21px;
  color: var(--blue-700);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.result-summary {
  max-width: 560px;
  margin-top: 15px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.result-copy .chip-row {
  margin-top: 20px;
}

.secondary-note {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11.5px;
}

.secondary-note strong {
  color: var(--blue-600);
}

.result-motto {
  margin-top: 24px;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--result-accent, var(--coral));
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.result-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.result-portrait {
  position: relative;
  min-height: 525px;
}

.portrait-blob {
  position: absolute;
  inset: 20px 4px 0 18px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 46% 54% 55% 45% / 42% 42% 58% 58%;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.8), transparent 42%),
    linear-gradient(145deg, var(--result-bg, #fbf3e1), var(--result-blob, #f3ddad));
  box-shadow: 0 34px 90px rgba(46, 80, 96, 0.13);
  transform: rotate(1.5deg);
}

.portrait-ring {
  position: absolute;
  border: 1px dashed color-mix(in srgb, var(--result-accent, #d6a04d) 35%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.portrait-ring.ring-a {
  top: 11%;
  right: 5%;
  bottom: 8%;
  left: 6%;
  transform: rotate(-13deg);
}

.portrait-ring.ring-b {
  top: 25%;
  right: 18%;
  bottom: 21%;
  left: 18%;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.34);
}

.result-dog {
  position: relative;
  z-index: 1;
  width: 84%;
  max-width: 430px;
  height: auto;
  transform: translateY(4%);
  filter: drop-shadow(0 26px 28px rgba(76, 61, 38, 0.13));
}

.portrait-stamp {
  position: absolute;
  bottom: 20px;
  left: 1px;
  z-index: 3;
  display: flex;
  min-width: 155px;
  flex-direction: column;
  gap: 1px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 15px 32px rgba(42, 83, 101, 0.1);
  backdrop-filter: blur(14px);
}

.portrait-stamp span {
  color: var(--result-accent, var(--blue-500));
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.portrait-stamp strong {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.portrait-stamp small {
  margin-top: 1px;
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.portrait-note {
  position: absolute;
  top: 5%;
  right: 0;
  z-index: 3;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  color: var(--result-ink, #6b4f24);
  font-size: 9px;
  font-weight: 550;
  backdrop-filter: blur(12px);
}

.portrait-spark {
  position: absolute;
  z-index: 2;
  color: var(--result-accent, #d6a04d);
  opacity: 0.6;
}

.portrait-spark.spark-a { top: 16%; right: 14%; font-size: 17px; }
.portrait-spark.spark-b { bottom: 22%; left: 8%; font-size: 10px; }

.result-section {
  padding: 68px 0;
  border-top: 1px solid var(--line);
}

.result-section .section-heading {
  margin-bottom: 30px;
}

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

.why-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-sm);
}

.why-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.why-index {
  color: var(--blue-300);
  font-family: var(--font-latin);
  font-size: 25px;
  font-weight: 650;
  line-height: 1;
}

.why-tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
}

.why-card h3 {
  margin-top: 22px;
  color: var(--blue-700);
  font-size: 14px;
  letter-spacing: -0.02em;
}

.why-card p {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.75;
}

.result-quote {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding: 25px 28px 21px;
  border: 1px solid rgba(164, 119, 56, 0.11);
  border-radius: 23px;
  background: linear-gradient(120deg, rgba(255, 244, 225, 0.9), rgba(255, 250, 242, 0.78));
}

.result-quote .quote-mark {
  height: 31px;
  color: var(--coral);
  font-size: 50px;
}

.result-quote blockquote {
  align-self: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 550;
  line-height: 1.65;
}

.result-quote figcaption {
  grid-column: 2;
  margin-top: -7px;
  color: var(--muted);
  font-size: 9px;
}

.result-quote-muted {
  grid-template-columns: auto minmax(0, 1fr);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.result-quote-muted p {
  align-self: center;
  color: var(--muted);
  font-size: 11px;
}

.dimension-panel {
  padding: 30px 34px 25px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
}

.dimension-row + .dimension-row {
  margin-top: 22px;
}

.dimension-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.dimension-name {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.dimension-level {
  color: var(--blue-600);
  font-size: 9.5px;
}

.dimension-scale {
  display: grid;
  grid-template-columns: 70px minmax(120px, 1fr) 70px;
  align-items: center;
  gap: 13px;
}

.dimension-edge {
  color: var(--muted-light);
  font-size: 8.5px;
  text-align: right;
}

.dimension-edge.high {
  text-align: left;
}

.dimension-track {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--blue-100);
}

.dimension-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-300), var(--blue-600));
  transition: width 1s var(--ease);
}

.dimension-marker {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 2px 6px rgba(47, 111, 149, 0.24);
  transform: translate(-50%, -50%);
}

.dimension-footnote {
  margin-top: 24px;
  color: var(--muted-light);
  font-size: 9px;
  text-align: right;
}

.duality-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 16px;
}

.light-panel,
.shadow-panel {
  padding: 32px;
  border-radius: 28px;
}

.light-panel {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.52);
}

.light-panel h2,
.shadow-panel h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.strength-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 22px;
}

.strength-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.strength-item > span {
  color: var(--blue-300);
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 650;
}

.strength-item h3 {
  font-size: 13px;
  font-weight: 650;
}

.strength-item p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.shadow-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 255, 255, 0.45), transparent 32%),
    linear-gradient(145deg, #fff4e2, #f8e5d9);
}

.shadow-intro {
  margin-top: 13px;
  color: #8b6b57;
  font-size: 11px;
  line-height: 1.7;
}

.blindspot-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 21px;
  padding: 0;
  list-style: none;
}

.blindspot-list li {
  position: relative;
  padding-left: 16px;
  color: #604a3e;
  font-size: 11.5px;
  line-height: 1.7;
}

.blindspot-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.shadow-mark {
  position: absolute;
  right: 17px;
  bottom: -28px;
  color: rgba(142, 98, 77, 0.1);
  font-family: Georgia, serif;
  font-size: 150px;
  line-height: 1;
}

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

.scene-card {
  padding: 25px 23px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow-sm);
}

.scene-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-50);
  color: var(--blue-600);
}

.scene-icon svg {
  width: 17px;
  height: 17px;
}

.scene-label {
  display: block;
  margin-top: 17px;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 650;
}

.scene-card p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.8;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.match-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 154px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 23px;
  background: var(--match-bg, #fbf3e1);
  text-align: left;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.match-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.match-art {
  display: grid;
  width: 126px;
  height: 126px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.35), var(--match-blob, #f3ddad));
}

.match-dog {
  width: 105px;
  height: auto;
  transform: translateY(7px);
}

.match-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 8px;
}

.match-label {
  margin-bottom: 3px;
  color: var(--match-accent, #b8823c);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.match-copy strong {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.match-tagline {
  margin-top: 2px;
  color: var(--match-ink, #6b4f24);
  font-size: 10px;
  opacity: 0.75;
}

.match-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 15px;
  color: var(--blue-600);
  font-size: 9px;
  font-weight: 650;
}

.match-link svg {
  width: 12px;
  height: 12px;
}

.result-share-section {
  padding: 68px 0 30px;
  border-top: 1px solid var(--line);
}

.result-share-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  padding: 42px 46px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 6%, rgba(132, 188, 207, 0.3), transparent 38%),
    linear-gradient(130deg, #2f6f95, #214e65);
  box-shadow: 0 26px 70px rgba(31, 74, 96, 0.2);
  color: var(--white);
}

.share-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.share-copy h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.share-copy p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11.5px;
}

.share-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.share-paw {
  position: absolute;
  right: 30px;
  bottom: -26px;
  color: rgba(255, 255, 255, 0.08);
}

.share-paw svg {
  width: 150px;
  height: 150px;
}

.result-disclaimer {
  padding: 27px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
}

.result-disclaimer > p {
  max-width: 760px;
}

.result-disclaimer > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.result-disclaimer span,
.result-disclaimer a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.result-disclaimer span svg {
  width: 12px;
  height: 12px;
}

.result-disclaimer a {
  color: var(--blue-600);
  font-size: 10px;
}

.result-disclaimer a svg {
  width: 12px;
  height: 12px;
}

/* --------------------------------------------------------------------------
   Reveal motion
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Modal shell
   -------------------------------------------------------------------------- */

dialog.modal {
  position: fixed;
  inset: 0;
  width: min(calc(100% - 32px), 730px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}

dialog.modal.wide-modal {
  width: min(calc(100% - 32px), 1020px);
}

#dog-dialog,
#share-dialog {
  width: min(calc(100% - 32px), 1020px);
}

dialog.modal[open] {
  animation: modalIn 0.28s var(--ease);
}

dialog.modal::backdrop {
  background: rgba(23, 49, 62, 0.38);
  backdrop-filter: blur(7px);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-shell {
  position: relative;
  max-height: 86svh;
  padding: 36px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 29px;
  background: rgba(251, 253, 254, 0.97);
  box-shadow: 0 40px 120px rgba(17, 42, 54, 0.26);
  overscroll-behavior: contain;
}

.share-modal .modal-shell,
.dog-modal .modal-shell {
  width: 100%;
}

.wide-shell {
  width: 100%;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 6;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.modal-close:hover {
  background: var(--blue-600);
  color: var(--white);
  transform: rotate(6deg);
}

.modal-close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.dialog-kicker {
  display: block;
  margin-bottom: 13px;
  color: var(--blue-600);
  font-family: var(--font-latin);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.info-modal h2 {
  max-width: 620px;
  font-size: clamp(34px, 4vw, 47px);
  line-height: 1.08;
}

.dialog-lede {
  max-width: 610px;
  margin-top: 17px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.about-dimensions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 25px;
}

.about-dimension {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.about-dimension > span {
  color: var(--blue-300);
  font-family: var(--font-latin);
  font-size: 9px;
  font-weight: 650;
}

.about-dimension strong {
  font-size: 12px;
  font-weight: 650;
}

.about-dimension small {
  color: var(--muted);
  font-size: 8.5px;
}

.about-note,
.about-disclaimer {
  margin-top: 18px;
  padding: 17px 18px;
  border-radius: 17px;
}

.about-note {
  background: var(--blue-50);
}

.about-note strong {
  font-size: 12px;
}

.about-note p {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.7;
}

.about-disclaimer {
  display: flex;
  gap: 10px;
  background: var(--cream);
  color: #7e633d;
  font-size: 10px;
  line-height: 1.7;
}

.about-disclaimer svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.privacy-list > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.privacy-list > div > span {
  grid-row: span 2;
  color: var(--blue-300);
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 650;
}

.privacy-list strong {
  font-size: 12px;
}

.privacy-list p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

/* Dog profile modal */

.dog-modal .modal-shell {
  padding: 0;
  overflow: hidden auto;
}

.dog-profile {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  min-height: 560px;
  background: var(--dog-bg, #fbf3e1);
}

.dog-profile-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.52), transparent 44%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.5), var(--dog-blob, #f3ddad));
}

.profile-halo {
  position: absolute;
  top: 12%;
  width: 68%;
  aspect-ratio: 1;
  border: 1px dashed rgba(116, 81, 38, 0.16);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.profile-dog {
  position: relative;
  z-index: 1;
  width: 86%;
  max-width: 330px;
  transform: translateY(4%);
  filter: drop-shadow(0 22px 25px rgba(76, 61, 38, 0.13));
}

.profile-index {
  position: absolute;
  top: 23px;
  left: 25px;
  color: var(--dog-ink, #6b4f24);
  font-family: var(--font-latin);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.5;
}

.dog-profile-copy {
  padding: 43px 40px 38px;
  background: rgba(255, 255, 255, 0.72);
}

.dog-profile-copy h2 {
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1;
}

.profile-tagline {
  margin-top: 10px;
  color: var(--dog-ink, #6b4f24);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.dog-profile-copy .chip-row {
  margin-top: 15px;
}

.profile-summary {
  max-width: 560px;
  margin-top: 19px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.8;
}

.profile-real {
  margin-top: 18px;
  padding: 13px 15px;
  border-left: 2px solid var(--dog-accent, #d6a04d);
  background: color-mix(in srgb, var(--dog-bg, #fbf3e1) 55%, white);
  color: var(--dog-ink, #6b4f24);
  font-size: 10.5px;
  line-height: 1.7;
}

.profile-section,
.profile-matches {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.profile-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-strengths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-strengths strong {
  font-size: 10.5px;
}

.profile-strengths p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9.5px;
  line-height: 1.65;
}

.profile-match-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.inline-dog-link {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  font-size: 9.5px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.inline-dog-link:hover {
  border-color: var(--blue-300);
  background: var(--white);
  color: var(--blue-600);
}

.dog-profile-copy .modal-actions {
  margin-top: 24px;
}

/* Share modal */

.share-modal .modal-shell {
  padding: 33px;
}

.share-dialog-head h2 {
  font-size: clamp(32px, 4vw, 43px);
  line-height: 1.1;
}

.share-dialog-head p {
  max-width: 660px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
}

.share-dialog-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.87fr) minmax(280px, 1.13fr);
  gap: 26px;
  margin-top: 24px;
}

.share-preview-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.share-preview {
  display: flex;
  width: 100%;
  max-width: 320px;
  min-height: 400px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--blue-50);
  box-shadow: var(--shadow-md);
}

.share-preview.loading {
  flex-direction: column;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
}

.share-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.poster-loader {
  width: 30px;
  height: 30px;
  border: 2px solid var(--blue-100);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

.poster-error {
  padding: 24px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.share-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.share-result-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.58);
}

.share-result-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--blue-50);
}

.share-avatar-dog {
  width: 50px;
  height: auto;
  transform: translateY(5px);
}

.share-result-line > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.share-result-line strong {
  font-size: 12px;
}

.share-result-line small {
  color: var(--muted);
  font-size: 9px;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.share-option:hover {
  border-color: var(--blue-300);
  background: var(--white);
  transform: translateX(2px);
}

.share-option > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--blue-600);
}

.share-option > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.share-option strong {
  font-size: 10.5px;
  font-weight: 650;
}

.share-option small {
  color: var(--muted);
  font-size: 8.5px;
}

.share-option.quiet {
  border-color: transparent;
  background: transparent;
}

.share-option.quiet:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.share-url {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.share-url span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9px;
}

.share-url input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-soft);
  font-family: var(--font-latin);
  font-size: 9px;
}

/* --------------------------------------------------------------------------
   Toast / noscript
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 100;
  max-width: calc(100% - 40px);
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(31, 74, 96, 0.94);
  box-shadow: 0 15px 40px rgba(24, 52, 66, 0.2);
  color: var(--white);
  font-size: 11.5px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
  backdrop-filter: blur(12px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  padding: 24px;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  }

  .hero-stage {
    min-height: 560px;
  }

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

  .dog-card-featured:last-child {
    display: none;
  }

  .result-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  }

  .result-portrait {
    min-height: 470px;
  }
}

@media (max-width: 920px) {
  .main-nav {
    gap: 0;
  }

  .main-nav a,
  .main-nav button {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 12px;
  }

  .header-inner {
    gap: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 56px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-visual {
    margin-top: 6px;
  }

  .hero-stage {
    min-height: 590px;
    margin: 0 auto;
  }

  .hero-orb {
    inset: 26px 16% 20px 16%;
  }

  .hero-dog {
    width: 78%;
  }

  .floating-border {
    left: 5%;
  }

  .floating-shiba {
    right: 4%;
  }

  .hero-count-card {
    right: 8%;
  }

  .hero-persona {
    left: 9%;
  }

  .hero-stamp {
    left: 5%;
  }

  .split-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .heading-side,
  .heading-copy {
    max-width: 620px;
  }

  .philosophy-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 38px;
  }

  .philosophy-side {
    max-width: 600px;
  }

  .philosophy-quote p {
    max-width: 480px;
  }

  .final-card {
    grid-template-columns: 1fr;
  }

  .final-art {
    height: 300px;
  }

  .final-dog {
    width: 52%;
    max-width: 250px;
  }

  .final-copy {
    padding: 36px 38px 42px;
  }

  .dogs-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 58px;
  }

  .dogs-hero-orbit {
    width: 280px;
    margin: 0 auto;
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-meta {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .quiz-layout {
    grid-template-columns: 1fr;
    max-width: 760px;
    gap: 18px;
  }

  .quiz-aside {
    display: none;
  }

  .analysis-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 25px;
    padding-top: 10px;
    padding-bottom: 8vh;
    text-align: center;
  }

  .analysis-visual {
    width: min(58vw, 350px);
  }

  .analysis-copy {
    max-width: 580px;
    margin: 0 auto;
  }

  .analysis-lede {
    margin-right: auto;
    margin-left: auto;
  }

  .analysis-steps {
    text-align: left;
  }

  .analysis-quote {
    text-align: center;
  }

  .result-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 44px;
  }

  .result-copy {
    max-width: 700px;
  }

  .result-portrait {
    width: min(100%, 560px);
    min-height: 480px;
    margin: 0 auto;
  }

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

  .why-card:last-child,
  .scene-card:last-child {
    grid-column: 1 / -1;
  }

  .duality-section {
    grid-template-columns: 1fr;
  }

  .match-card {
    min-height: 145px;
  }

  .result-share-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-actions {
    margin-top: 18px;
  }

  .share-dialog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .share-preview {
    max-width: 290px;
  }

  .share-options {
    max-width: 100%;
  }

  .dog-profile {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .dog-profile-copy {
    padding: 38px 30px 32px;
  }

  .dog-profile-art {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    width: calc(100% - 24px);
    margin-top: 10px;
    border-radius: 18px;
  }

  .header-inner {
    min-height: 58px;
    padding: 7px 8px 7px 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    margin-top: 4px;
    font-size: 7px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 17px;
    background: #fbfeff;
    box-shadow: 0 20px 50px rgba(24, 52, 66, 0.12);
    backdrop-filter: blur(18px);
  }

  .site-header.is-open .main-nav {
    display: flex;
  }

  .main-nav a,
  .main-nav button {
    width: 100%;
    padding: 11px 12px;
    text-align: left;
  }

  .main-nav a.is-active::after {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 13px;
    font-size: 11px;
  }

  .header-cta svg {
    width: 13px;
    height: 13px;
  }

  .menu-toggle {
    display: block;
  }

  .section {
    width: calc(100% - 32px);
    padding: 66px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .hero {
    width: calc(100% - 32px);
    padding-top: 46px;
    padding-bottom: 36px;
  }

  .hero-title {
    margin-top: 20px;
    margin-bottom: 18px;
    font-size: clamp(52px, 15vw, 72px);
  }

  .hero-lede {
    font-size: 14.5px;
    line-height: 1.8;
  }

  .hero-actions {
    margin-top: 23px;
  }

  .hero-actions .button {
    flex: 1;
    min-width: 150px;
  }

  .hero-meta {
    gap: 10px 13px;
    margin-top: 22px;
    font-size: 10px;
  }

  .hero-stage {
    min-height: 475px;
  }

  .hero-orb {
    inset: 20px 8% 14px 8%;
  }

  .hero-dog {
    width: 84%;
  }

  .floating-dog {
    display: none;
  }

  .hero-persona {
    bottom: -3px;
    left: 5%;
  }

  .hero-count-card {
    top: 7%;
    right: 3%;
  }

  .hero-stamp {
    display: none;
  }

  .hero-ribbon {
    width: calc(100% - 32px);
    gap: 12px;
    padding: 14px 0;
    font-size: 8px;
  }

  .hero-ribbon span:last-child {
    display: none;
  }

  .ribbon-line {
    display: none;
  }

  .featured-grid,
  .dogs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .dog-card {
    border-radius: 21px;
  }

  .dog-card-featured:last-child {
    display: flex;
  }

  .dog-card-art {
    height: 185px;
  }

  .dog-card-dog {
    width: 88%;
    transform: translateY(7px);
  }

  .dog-card-body {
    padding: 13px 14px 14px;
  }

  .dog-card-heading strong {
    font-size: 17px;
  }

  .dog-card-arrow {
    width: 24px;
    height: 24px;
  }

  .dog-card-tagline {
    font-size: 10px;
  }

  .dog-card-keywords {
    gap: 4px;
    margin-top: 9px;
  }

  .dog-card-keywords span {
    min-height: 19px;
    padding: 0 6px;
    font-size: 7.5px;
  }

  .dog-card-link {
    display: none;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .how-card {
    min-height: 230px;
    padding: 22px;
  }

  .how-number {
    top: 20px;
    right: 21px;
    font-size: 38px;
  }

  .how-card h3 {
    margin-top: 18px;
  }

  .how-time {
    bottom: 20px;
    left: 22px;
  }

  .philosophy-section {
    padding-top: 14px;
  }

  .philosophy-card {
    padding: 29px 24px;
    border-radius: 29px;
  }

  .philosophy-copy h2 {
    font-size: 35px;
  }

  .philosophy-copy p {
    font-size: 12px;
  }

  .philosophy-quote {
    padding: 20px;
  }

  .philosophy-quote p {
    font-size: 15px;
  }

  .philosophy-stats strong {
    font-size: 24px;
  }

  .privacy-section {
    padding-top: 0;
  }

  .privacy-banner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 22px;
    border-radius: 21px;
  }

  .privacy-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .privacy-copy h2 {
    font-size: 23px;
  }

  .privacy-link {
    grid-column: 2;
    margin-top: 2px;
  }

  .final-section {
    padding-top: 30px;
    padding-bottom: 70px;
  }

  .final-card {
    border-radius: 29px;
  }

  .final-art {
    height: 255px;
  }

  .final-dog {
    width: 47%;
  }

  .final-copy {
    padding: 28px 24px 32px;
  }

  .final-copy h2 {
    font-size: 35px;
  }

  .final-copy > p {
    font-size: 12px;
  }

  .final-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .dogs-hero {
    width: calc(100% - 32px);
    padding-top: 46px;
    padding-bottom: 35px;
  }

  .dogs-hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .dogs-hero p {
    margin-top: 17px;
    font-size: 13px;
  }

  .dogs-hero-orbit {
    width: 230px;
  }

  .orbit-center {
    width: 82px;
    height: 82px;
  }

  .orbit-center svg {
    width: 26px;
    height: 26px;
  }

  .dogs-gallery-section {
    width: calc(100% - 32px);
    padding-top: 4px;
  }

  .dogs-gallery-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .dogs-gallery-head p {
    max-width: 530px;
    text-align: left;
  }

  .dogs-note {
    text-align: left;
  }

  .inline-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 25px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-meta {
    grid-column: auto;
    padding-top: 15px;
  }

  .site-footer {
    width: calc(100% - 32px);
    padding-bottom: 30px;
  }

  .quiz-page,
  .analysis-page {
    padding-right: 13px;
    padding-left: 13px;
  }

  .quiz-topbar {
    padding-top: 14px;
    padding-bottom: 13px;
  }

  .quiz-top-right {
    gap: 12px;
  }

  .quiz-exit {
    font-size: 10px;
  }

  .quiz-layout {
    padding-top: 18px;
  }

  .quiz-card {
    padding: 25px 18px 21px;
    border-radius: 23px;
  }

  .quiz-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .quiz-time {
    font-size: 8.5px;
  }

  .question-title {
    margin-top: 15px;
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.42;
  }

  .question-hint {
    font-size: 10.5px;
  }

  .option-list {
    margin-top: 21px;
    gap: 8px;
  }

  .option-button {
    min-height: 63px;
    gap: 11px;
    padding: 11px 11px 11px 10px;
    border-radius: 15px;
  }

  .option-letter {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 9px;
  }

  .option-text {
    font-size: 12.5px;
    line-height: 1.55;
  }

  .option-check {
    width: 21px;
    height: 21px;
  }

  .quiz-bottom {
    margin-top: 20px;
    padding-top: 14px;
  }

  .quiz-keyboard-hint {
    display: none;
  }

  .quiz-complete {
    padding: 16px;
  }

  .quiz-complete-card {
    padding: 30px 21px;
  }

  .quiz-complete h1 {
    font-size: 25px;
  }

  .analysis-layout {
    padding-top: 0;
    gap: 15px;
  }

  .analysis-visual {
    width: min(68vw, 285px);
  }

  .analysis-core svg {
    width: 37px;
    height: 37px;
  }

  .analysis-copy h1 {
    font-size: clamp(31px, 9vw, 42px);
  }

  .analysis-lede {
    font-size: 11.5px;
  }

  .analysis-steps {
    margin-top: 23px;
  }

  .analysis-step strong {
    font-size: 11px;
  }

  .analysis-step small {
    font-size: 9px;
  }

  .analysis-quote {
    font-size: 10.5px;
  }

  .result-page {
    width: calc(100% - 32px);
    padding-top: 18px;
  }

  .result-topline {
    flex-wrap: wrap;
    gap: 7px 15px;
    font-size: 8.5px;
  }

  .result-top-note {
    flex-basis: 100%;
    order: 3;
  }

  .result-hero {
    padding-top: 35px;
    padding-bottom: 48px;
  }

  .result-title {
    font-size: clamp(68px, 21vw, 102px);
  }

  .result-tagline {
    margin-top: 14px;
    font-size: 21px;
  }

  .result-summary {
    margin-top: 12px;
    font-size: 12.5px;
    line-height: 1.8;
  }

  .result-motto {
    margin-top: 18px;
    font-size: 12.5px;
  }

  .result-hero-actions {
    margin-top: 21px;
  }

  .result-hero-actions .button {
    flex: 1;
    min-width: 130px;
  }

  .result-portrait {
    min-height: 380px;
    width: 100%;
  }

  .portrait-blob {
    inset: 8px 2% 0;
  }

  .result-dog {
    width: 82%;
  }

  .portrait-stamp {
    bottom: 4px;
    left: 2%;
    min-width: 132px;
    padding: 10px 12px;
  }

  .portrait-stamp strong {
    font-size: 15px;
  }

  .portrait-note {
    top: 2%;
    right: 1%;
    font-size: 8px;
  }

  .result-section {
    padding: 48px 0;
  }

  .result-section .section-heading {
    margin-bottom: 22px;
  }

  .why-grid,
  .scene-grid {
    grid-template-columns: 1fr;
  }

  .why-card:last-child,
  .scene-card:last-child {
    grid-column: auto;
  }

  .why-card {
    min-height: 0;
    padding: 19px;
  }

  .what-card h3 {
    margin-top: 0;
  }

  .result-quote {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 19px;
  }

  .result-quote blockquote {
    font-size: 12.5px;
  }

  .result-quote figcaption {
    font-size: 8.5px;
  }

  .dimension-panel {
    padding: 22px 17px 19px;
    border-radius: 22px;
  }

  .dimension-row + .dimension-row {
    margin-top: 19px;
  }

  .dimension-scale {
    grid-template-columns: 58px minmax(80px, 1fr) 58px;
    gap: 7px;
  }

  .dimension-edge {
    font-size: 7.5px;
  }

  .dimension-name {
    font-size: 11px;
  }

  .dimension-level {
    font-size: 8.5px;
  }

  .dimension-footnote {
    margin-top: 19px;
    font-size: 8px;
    text-align: left;
  }

  .light-panel,
  .shadow-panel {
    padding: 24px 20px;
    border-radius: 23px;
  }

  .light-panel h2,
  .shadow-panel h2 {
    font-size: 30px;
  }

  .strength-item p,
  .blindspot-list li {
    font-size: 10.5px;
  }

  .scene-card {
    padding: 20px;
  }

  .match-grid {
    grid-template-columns: 1fr;
  }

  .match-card {
    min-height: 126px;
    padding: 10px;
    border-radius: 20px;
  }

  .match-art {
    width: 105px;
    height: 105px;
  }

  .match-dog {
    width: 90px;
  }

  .match-copy strong {
    font-size: 17px;
  }

  .match-tagline {
    font-size: 9px;
  }

  .match-link {
    margin-top: 10px;
  }

  .result-share-card {
    padding: 28px 23px;
    border-radius: 25px;
  }

  .share-copy h2 {
    font-size: 29px;
  }

  .share-copy p {
    font-size: 10.5px;
  }

  .result-disclaimer {
    font-size: 8.5px;
  }

  .result-disclaimer > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal {
    width: calc(100% - 20px) !important;
  }

  .modal-shell {
    max-height: 90svh;
    padding: 25px 20px;
    border-radius: 23px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
  }

  .info-modal h2 {
    font-size: 34px;
  }

  .dialog-lede {
    font-size: 11.5px;
  }

  .about-dimensions {
    grid-template-columns: 1fr;
  }

  .about-dimension {
    padding: 11px 12px;
  }

  .dog-profile {
    grid-template-columns: 1fr;
  }

  .dog-profile-art {
    min-height: 245px;
  }

  .profile-dog {
    width: 100%;
    max-width: none;
  }

  .profile-index {
    top: 16px;
    left: 17px;
    font-size: 8px;
  }

  .dog-profile-copy {
    padding: 26px 19px 25px;
  }

  .dog-profile-copy h2 {
    font-size: 43px;
  }

  .profile-summary {
    font-size: 11px;
  }

  .profile-real {
    font-size: 9.5px;
  }

  .profile-strengths {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .share-modal .modal-shell {
    padding: 25px 18px;
  }

  .share-dialog-head h2 {
    font-size: 32px;
  }

  .share-preview {
    max-width: 245px;
    min-height: 300px;
  }

  .share-url {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .header-cta {
    padding: 0 11px;
  }

  .header-cta span {
    font-size: 10px;
  }

  .header-cta svg {
    display: none;
  }

  .featured-grid,
  .dogs-grid {
    grid-template-columns: 1fr;
  }

  .dog-card-art {
    height: 225px;
  }

  .dog-card-featured:last-child {
    display: flex;
  }

  .hero-orb {
    inset: 17px 3% 12px;
  }

  .hero-persona {
    left: 0;
  }

  .hero-count-card {
    right: 0;
  }

  .hero-actions .button {
    flex-basis: 100%;
  }

  .result-title {
    font-size: 70px;
  }

  .result-topline {
    font-size: 8px;
  }

  .result-meta {
    font-size: 8px;
  }

  .result-portrait {
    min-height: 340px;
  }

  .result-dog {
    width: 89%;
  }

  .portrait-note {
    max-width: 120px;
    text-align: right;
  }

  .option-text {
    font-size: 12px;
  }

  .quiz-card {
    padding-right: 14px;
    padding-left: 14px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion & print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  body {
    background: #fff !important;
    color: #222;
  }

  .page-atmosphere,
  .site-header,
  .site-footer,
  .toast,
  dialog,
  .result-topline,
  .result-hero-actions,
  .result-banner,
  .result-share-section,
  .result-disclaimer,
  .result-portrait .portrait-ring {
    display: none !important;
  }

  .result-page {
    width: 100%;
    padding: 0;
  }

  .result-hero {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 20px;
    padding: 0 0 18px;
  }

  .result-title {
    font-size: 64px;
  }

  .result-portrait {
    min-height: 300px;
  }

  .result-section {
    padding: 18px 0;
    break-inside: avoid;
  }

  .result-section .section-heading {
    margin-bottom: 13px;
  }

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

  .why-card,
  .scene-card,
  .dimension-panel,
  .light-panel,
  .shadow-panel,
  .match-card {
    background: #fff !important;
    box-shadow: none !important;
  }

  .duality-section {
    grid-template-columns: 1fr 1fr;
  }

  .result-quote {
    background: #fff !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   v0.4 — Milk-yellow theme + supplied character photography
   ========================================================================== */

:root {
  --bg: #fff9ea;
  --bg-deep: #fff2cc;
  --surface: #fffcf2;
  --surface-soft: #fff9e9;
  --white: #ffffff;
  --blue-50: #fff8e6;
  --blue-100: #fff1c9;
  --blue-200: #f9e3a9;
  --blue-300: #f3d17f;
  --blue-400: #e8bc58;
  --blue-500: #d3a039;
  --blue-600: #9b651f;
  --blue-700: #744a15;
  --blue-800: #573711;
  --ink: #4a3420;
  --ink-soft: #6f573c;
  --muted: #927b5d;
  --muted-light: #b7a17e;
  --line: rgba(116, 78, 27, 0.12);
  --line-strong: rgba(116, 78, 27, 0.2);
  --cream: #fff4d2;
  --cream-strong: #f7de9b;
  --coral: #e7a676;
  --coral-soft: #f9e3d3;
  --green: #8c7b48;
  --shadow-sm: 0 4px 18px rgba(115, 78, 26, 0.07);
  --shadow-md: 0 18px 52px rgba(115, 78, 26, 0.1);
  --shadow-lg: 0 32px 100px rgba(115, 78, 26, 0.15);
}

body {
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 239, 192, 0.82), transparent 35%),
    radial-gradient(circle at 88% 16%, rgba(255, 226, 154, 0.5), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(255, 243, 209, 0.9), transparent 42%),
    var(--bg);
  color: var(--ink);
}

body.focus-mode {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 236, 178, 0.9), transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(255, 249, 231, 0.95), transparent 38%),
    #fffaf0;
}

::selection {
  background: var(--cream-strong);
  color: var(--ink);
}

.page-atmosphere .blob-a {
  background: rgba(255, 222, 132, 0.7);
}

.page-atmosphere .blob-b {
  background: rgba(255, 243, 207, 0.9);
}

.page-atmosphere .blob-c {
  background: rgba(255, 212, 147, 0.5);
}

.atmosphere-grain {
  background-image: radial-gradient(rgba(146, 101, 32, 0.12) 0.7px, transparent 0.7px);
  opacity: 0.28;
}

/* A faint repeating page motif: little milk horns, clouds and sparks. */
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23b48335' stroke-opacity='.13' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M22 38c-2-9 4-13 8-6l5 8M52 38c2-9-4-13-8-6l-5 8M31 48c0 8 7 12 13 8 6 4 12-3 10-9'/%3E%3Cpath d='M122 126c-1-6 3-9 6-4l4 6M143 126c1-6-3-9-6-4l-4 6M128 136c0 6 5 9 10 6 4 3 9-2 8-6'/%3E%3Cpath d='M86 80l2 5 5 1-4 3 1 5-4-3-4 3 1-5-4-3 5-1Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

body.focus-mode::after {
  opacity: 0.26;
}

.site-header {
  background: rgba(255, 251, 238, 0.82);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 36px rgba(116, 78, 27, 0.08);
}

.site-header.is-scrolled {
  background: rgba(255, 251, 239, 0.96);
  box-shadow: 0 12px 42px rgba(116, 78, 27, 0.12);
}

.brand-mark {
  box-shadow: 0 7px 18px rgba(137, 94, 30, 0.2);
}

.brand-copy strong {
  color: var(--ink);
}

.brand-copy small {
  color: var(--muted);
}

.main-nav a:hover,
.main-nav button:hover,
.main-nav a.is-active {
  background: rgba(255, 241, 201, 0.9);
  color: var(--blue-700);
}

.main-nav a.is-active::after {
  background: var(--blue-500);
}

.header-cta {
  background: var(--blue-600);
  box-shadow: 0 8px 22px rgba(137, 94, 30, 0.22);
  color: #fffaf0;
}

.header-cta:hover {
  background: var(--blue-700);
  box-shadow: 0 10px 28px rgba(137, 94, 30, 0.28);
}

.menu-toggle {
  background: rgba(255, 252, 243, 0.8);
}

.menu-toggle span {
  background: var(--ink);
}

.site-footer {
  border-color: var(--line);
}

.footer-brand p,
.footer-meta,
.footer-links a,
.footer-links button {
  color: var(--muted);
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--blue-600);
}

/* Buttons and generic pieces */

.button-primary {
  background: var(--blue-600);
  box-shadow: 0 10px 28px rgba(137, 94, 30, 0.22);
  color: #fffaf0;
}

.button-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 14px 34px rgba(137, 94, 30, 0.28);
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 252, 243, 0.72);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--blue-300);
  background: var(--white);
}

.button-cream {
  background: #fff8e1;
  color: #684516;
}

.button-cream:hover {
  background: #fffdf6;
}

.button-outline-light {
  border-color: rgba(74, 52, 32, 0.24);
  background: rgba(255, 250, 232, 0.24);
  color: var(--ink);
}

.button-outline-light:hover {
  background: rgba(255, 250, 232, 0.45);
}

.eyebrow-pill {
  border-color: rgba(150, 106, 35, 0.15);
  background: rgba(255, 252, 242, 0.78);
  color: var(--ink-soft);
}

.eyebrow-dot {
  background: #e6a657;
  box-shadow: 0 0 0 4px rgba(230, 166, 87, 0.18);
}

.title-accent {
  color: var(--blue-600);
}

.title-accent::after {
  background: var(--cream-strong);
}

.hero-lede,
.hero-meta,
.heading-side,
.heading-copy,
.question-hint {
  color: var(--ink-soft);
}

.hero-meta svg {
  color: #bd8328;
}

.hero-orb {
  border-color: rgba(255, 253, 246, 0.95);
  box-shadow: 0 40px 100px rgba(117, 78, 25, 0.15), inset 0 1px 3px rgba(255, 255, 255, 0.9);
}

.hero-orb::before {
  opacity: 0.22;
}

.hero-photo-wrap {
  position: absolute;
  inset: 10px;
  z-index: 1;
  overflow: hidden;
  border-radius: 44% 56% 56% 44% / 44% 40% 60% 56%;
}

img.hero-dog {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 37%;
  transform: none;
  filter: none;
}

.hero-photo-wrap .photo-badge {
  right: 18px;
  bottom: 18px;
}

.hero-persona,
.floating-dog,
.hero-count-card {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 250, 235, 0.84);
  box-shadow: 0 16px 38px rgba(117, 78, 25, 0.13);
}

.mini-avatar {
  background: var(--cream);
}

img.mini-avatar-dog {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: none;
}

.mini-avatar {
  overflow: hidden;
}

img.float-dog-art {
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 11px;
}

.persona-check {
  background: var(--blue-600);
}

.hero-count-card strong {
  color: var(--blue-600);
}

.hero-ribbon {
  color: var(--muted);
}

.hero-ribbon svg {
  color: var(--coral);
}

.section-kicker {
  color: var(--blue-600);
}

/* Photo treatment */

.dog-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  background: var(--cream);
}

.dog-card-art {
  position: relative;
  display: block;
  height: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(circle at 62% 28%, rgba(255, 255, 255, 0.5), transparent 44%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.35), var(--card-blob, #f8e5b3));
}

.dog-card-art::before {
  display: none;
}

.dog-card-photo-wrap {
  position: absolute;
  inset: 10px 10px 0;
  overflow: hidden;
  border-radius: 19px 19px 9px 9px;
  background: var(--card-blob, #f8e5b3);
}

.dog-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 39%;
  transition: transform 0.5s var(--ease);
}

.dog-card:hover .dog-card-photo {
  transform: scale(1.025);
}

.photo-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(139, 96, 31, 0.2);
  border-radius: 999px;
  background: rgba(255, 249, 232, 0.9);
  box-shadow: 0 5px 12px rgba(108, 72, 20, 0.12);
  color: #7d5a27;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}

.photo-badge .badge-paw {
  display: inline-flex;
  width: 10px;
  height: 10px;
  color: #a26d24;
}

.photo-badge .badge-paw svg {
  width: 100%;
  height: 100%;
}

.photo-badge.mini {
  right: 5px;
  bottom: 5px;
  min-height: 17px;
  padding: 0 5px;
  font-size: 6px;
  gap: 2px;
}

.photo-badge.mini .badge-paw {
  width: 7px;
  height: 7px;
}

.dog-card-index {
  z-index: 3;
  color: rgba(94, 67, 36, 0.64);
}

.dog-card-body {
  border-top-color: rgba(159, 112, 40, 0.1);
  background: rgba(255, 252, 243, 0.84);
}

.dog-card-heading strong {
  color: var(--ink);
}

.dog-card-tagline {
  color: #806134;
}

.dog-card-keywords span {
  border-color: rgba(137, 95, 30, 0.13);
  background: rgba(255, 249, 233, 0.72);
  color: var(--ink-soft);
}

.dog-card-arrow {
  border-color: rgba(137, 95, 30, 0.16);
  color: var(--blue-600);
}

.dog-card:hover .dog-card-arrow {
  background: var(--blue-600);
  color: #fffaf0;
}

.dog-card-link {
  color: var(--blue-600);
}

.how-card {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 252, 243, 0.72);
}

.how-card:hover {
  background: rgba(255, 253, 247, 0.95);
}

.how-icon {
  border-color: rgba(143, 99, 32, 0.12);
  background: var(--blue-50);
  color: var(--blue-600);
}

.how-number {
  color: rgba(200, 154, 62, 0.32);
}

.how-time {
  color: var(--muted-light);
}

.philosophy-card {
  background:
    radial-gradient(circle at 88% 6%, rgba(255, 251, 226, 0.52), transparent 38%),
    radial-gradient(circle at 10% 108%, rgba(255, 241, 194, 0.22), transparent 40%),
    linear-gradient(135deg, #ffe8a6 0%, #f5cf72 52%, #e9b74c 100%);
  box-shadow: 0 28px 80px rgba(141, 96, 23, 0.2);
  color: #4a3420;
}

.philosophy-card::after {
  border-color: rgba(92, 61, 22, 0.12);
}

.philosophy-card .section-kicker.light {
  color: #76501c;
}

.philosophy-card .section-kicker.light::before {
  background: #76501c;
}

.philosophy-copy h2 {
  color: #3f2b17;
}

.philosophy-copy p {
  color: rgba(74, 52, 32, 0.7);
}

.philosophy-quote {
  border-color: rgba(93, 61, 22, 0.14);
  background: rgba(255, 252, 241, 0.46);
}

.philosophy-quote .quote-mark {
  color: #8c5e20;
}

.philosophy-quote p {
  color: #4a3420;
}

.philosophy-stats {
  border-color: rgba(93, 61, 22, 0.16);
}

.philosophy-stats strong {
  color: #4a3420;
}

.philosophy-stats span {
  color: rgba(74, 52, 32, 0.56);
}

.privacy-banner {
  border-color: rgba(255, 255, 255, 0.95);
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 255, 255, 0.6), transparent 30%),
    rgba(255, 243, 204, 0.72);
}

.privacy-icon {
  border-color: rgba(137, 95, 30, 0.13);
  background: rgba(255, 252, 243, 0.8);
  color: var(--blue-600);
}

.privacy-copy p {
  color: var(--ink-soft);
}

.final-card {
  border-color: rgba(255, 255, 255, 0.95);
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 255, 255, 0.8), transparent 34%),
    linear-gradient(130deg, #fff8e5, #ffefc4 56%, #fff9ec);
}

.final-art {
  background:
    radial-gradient(circle at 48% 45%, rgba(255, 255, 255, 0.42), transparent 44%),
    var(--final-bg, #fff7e2);
}

.final-photo-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

img.final-dog {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: none;
  filter: none;
}

.final-photo-wrap .photo-badge {
  right: 15px;
  bottom: 15px;
}

.final-halo {
  border-color: rgba(155, 107, 36, 0.24);
}

.final-copy > p {
  color: var(--ink-soft);
}

.final-note {
  color: var(--muted);
}

.dogs-hero-orbit {
  border-color: rgba(139, 96, 30, 0.22);
}

.dogs-hero-orbit::before,
.dogs-hero-orbit::after {
  border-color: rgba(139, 96, 30, 0.14);
}

.orbit-center {
  border-color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(145deg, #fff4d2, #f6cf72);
  box-shadow: 0 20px 50px rgba(137, 94, 30, 0.15);
  color: #9b6a28;
}

.orbit-label,
.dogs-gallery-head p,
.dogs-note {
  color: var(--muted);
}

.dogs-gallery-head {
  border-color: var(--line);
}

.inline-cta {
  border-color: rgba(255, 255, 255, 0.95);
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.6), transparent 34%),
    linear-gradient(130deg, rgba(255, 245, 212, 0.95), rgba(255, 251, 239, 0.85));
}

/* Quiz */

.quiz-card {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 252, 243, 0.82);
  box-shadow: 0 26px 76px rgba(137, 94, 30, 0.12);
}

.quiz-kicker {
  color: var(--blue-600);
}

.quiz-time,
.quiz-position,
.quiz-exit,
.quiz-keyboard-hint {
  color: var(--muted);
}

.quiz-position strong {
  color: var(--blue-700);
}

.quiz-progress-wrap {
  background: rgba(152, 107, 32, 0.12);
}

.quiz-progress-fill {
  background: linear-gradient(90deg, #efc45e, #b87920);
}

.option-button {
  border-color: var(--line);
  background: rgba(255, 253, 247, 0.88);
}

.option-button:hover {
  border-color: var(--blue-300);
  background: #fffdf8;
}

.option-button.is-selected {
  border-color: #c88a2a;
  background: #fff4d4;
  box-shadow: 0 9px 24px rgba(137, 94, 30, 0.1);
}

.option-letter {
  border-color: rgba(137, 95, 30, 0.14);
  background: var(--blue-50);
  color: var(--blue-600);
}

.option-button.is-selected .option-letter {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: #fffaf0;
}

.option-check {
  border-color: rgba(137, 95, 30, 0.18);
}

.option-button.is-selected .option-check {
  border-color: var(--blue-600);
  background: var(--blue-600);
}

.quiz-bottom {
  border-color: var(--line);
}

.quiz-back {
  color: var(--ink-soft);
}

.quiz-back:hover {
  color: var(--blue-600);
}

kbd {
  border-color: var(--line);
  background: #fffdf7;
  color: var(--ink-soft);
}

.aside-note,
.aside-progress {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 252, 243, 0.68);
}

.aside-note-icon {
  background: var(--cream);
  color: #a87328;
}

.aside-progress-label strong {
  color: var(--blue-700);
}

.aside-progress-track {
  background: var(--blue-100);
}

.aside-progress-track span {
  background: var(--blue-500);
}

.quiz-complete-card {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 252, 243, 0.86);
}

.quiz-complete-icon {
  background: var(--blue-600);
  color: #fffaf0;
}

.analysis-page {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 236, 178, 0.9), transparent 38%),
    radial-gradient(circle at 82% 78%, rgba(255, 250, 233, 0.9), transparent 40%);
}

.analysis-orbit {
  border-color: rgba(139, 96, 30, 0.24);
}

.orbit-two {
  border-color: rgba(139, 96, 30, 0.12);
}

.orbit-three {
  border-color: rgba(231, 166, 118, 0.38);
}

.analysis-core {
  border-color: rgba(255, 255, 255, 0.95);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.85), transparent 32%),
    linear-gradient(145deg, #fff4d2, #f6cf72);
  box-shadow: 0 28px 70px rgba(137, 94, 30, 0.17);
  color: rgba(139, 96, 30, 0.58);
}

.analysis-lede {
  color: var(--ink-soft);
}

.analysis-quote {
  color: var(--blue-700);
}

/* Result */

.result-banner {
  border-color: rgba(151, 104, 31, 0.15);
  background: var(--cream);
  color: #7e5a27;
}

.shared-banner {
  border-color: rgba(151, 104, 31, 0.14);
  background: #fff8e6;
  color: var(--blue-700);
}

.portrait-blob {
  inset: 0;
  border-color: rgba(255, 255, 255, 0.95);
  border-radius: 38px;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.82), transparent 42%),
    linear-gradient(145deg, var(--result-bg, #fff7e2), var(--result-blob, #f8e5b3));
  box-shadow: 0 34px 90px rgba(137, 94, 30, 0.15);
  transform: none;
}

.result-portrait {
  min-height: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.portrait-photo-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 38px;
}

img.result-dog {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: none;
  filter: none;
}

.portrait-photo-wrap .photo-badge {
  right: 16px;
  bottom: 16px;
}

.portrait-stamp {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 249, 232, 0.86);
  box-shadow: 0 15px 32px rgba(137, 94, 30, 0.12);
}

.portrait-note {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 249, 232, 0.84);
  color: var(--result-ink, #5e4324);
}

.portrait-ring {
  border-color: rgba(169, 124, 47, 0.35);
}

.portrait-ring.ring-b {
  border-color: rgba(255, 255, 255, 0.4);
}

.chip {
  border-color: rgba(137, 95, 30, 0.14);
  background: rgba(255, 251, 238, 0.76);
  color: var(--blue-700);
}

.result-tagline {
  color: var(--blue-700);
}

.result-summary,
.why-card p,
.strength-item p,
.scene-card p,
.dimension-footnote {
  color: var(--ink-soft);
}

.result-motto {
  color: var(--ink-soft);
}

.why-card {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 252, 243, 0.72);
}

.result-quote {
  border-color: rgba(151, 104, 31, 0.13);
  background: linear-gradient(120deg, rgba(255, 244, 210, 0.95), rgba(255, 252, 243, 0.82));
}

.result-quote-muted {
  border-color: var(--line);
  background: rgba(255, 252, 243, 0.62);
}

.dimension-panel {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 252, 243, 0.7);
}

.dimension-track {
  background: var(--blue-100);
}

.dimension-fill {
  background: linear-gradient(90deg, #efc45e, #b87920);
}

.dimension-marker {
  background: var(--blue-600);
}

.light-panel {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 252, 243, 0.72);
}

.scene-card {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 252, 243, 0.7);
}

.shadow-panel {
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 255, 255, 0.45), transparent 32%),
    linear-gradient(145deg, #fff0d1, #f8ddca);
}

.shadow-intro {
  color: #86634c;
}

.blindspot-list li {
  color: #604a3e;
}

.match-card {
  border-color: rgba(255, 255, 255, 0.95);
  background: var(--match-bg, #fff7e2);
}

.match-art {
  overflow: hidden;
  background: var(--match-blob, #f8e5b3);
}

.match-photo-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 17px;
}

img.match-dog {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  transform: none;
}

.match-copy {
  color: var(--ink);
}

.match-label {
  color: var(--match-accent, #a9782c);
}

.match-tagline {
  color: var(--match-ink, #6d4d27);
}

.match-link {
  color: var(--blue-600);
}

.result-share-card {
  background:
    radial-gradient(circle at 88% 6%, rgba(255, 252, 237, 0.6), transparent 38%),
    linear-gradient(130deg, #ffe6a0 0%, #f3ca66 52%, #e8b44c 100%);
  box-shadow: 0 26px 70px rgba(141, 96, 24, 0.22);
  color: #4a3420;
}

.result-share-card .section-kicker.light {
  color: #7b531c;
}

.result-share-card .section-kicker.light::before {
  background: #7b531c;
}

.share-copy h2 {
  color: #402b17;
}

.share-copy p {
  color: rgba(74, 52, 32, 0.7);
}

.share-paw {
  color: rgba(86, 57, 22, 0.12);
}

.share-actions .button-cream {
  background: #fff9e7;
  color: #5c3e18;
}

.share-actions .button-outline-light {
  border-color: rgba(74, 52, 32, 0.25);
  background: rgba(255, 250, 234, 0.3);
  color: #4a3420;
}

.result-disclaimer {
  color: var(--muted);
}

/* Modals */

.modal-shell {
  border-color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 251, 239, 0.98);
  box-shadow: 0 40px 120px rgba(65, 44, 16, 0.26);
}

.modal-close {
  border-color: var(--line);
  background: rgba(255, 252, 243, 0.9);
  color: var(--ink-soft);
}

.modal-close:hover {
  background: var(--blue-600);
  color: #fffaf0;
}

.dialog-kicker {
  color: var(--blue-600);
}

.about-dimension {
  border-color: var(--line);
  background: rgba(255, 253, 247, 0.8);
}

.about-note {
  background: #fff8e5;
}

.about-disclaimer {
  background: var(--cream);
  color: #77602f;
}

.modal-actions .button-ghost {
  background: rgba(255, 252, 243, 0.8);
}

.dog-profile {
  background: var(--dog-bg, #fff7e2);
}

.dog-profile-art {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.55), transparent 44%),
    linear-gradient(150deg, rgba(255, 252, 243, 0.6), var(--dog-blob, #f8e5b3));
}

.profile-photo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.5), transparent 48%),
    linear-gradient(150deg, rgba(255, 252, 243, 0.75), var(--dog-blob, #f8e5b3));
}

img.profile-dog {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 22px;
  transform: none;
  filter: none;
  box-shadow: 0 18px 40px rgba(117, 78, 25, 0.14);
}

.profile-photo-wrap .photo-badge {
  right: 18px;
  bottom: 18px;
}

.profile-index {
  z-index: 4;
  color: rgba(74, 52, 32, 0.55);
}

.dog-profile-copy {
  background: rgba(255, 253, 248, 0.82);
}

.profile-real {
  background: rgba(255, 249, 232, 0.72);
}

.inline-dog-link {
  border-color: var(--line);
  background: rgba(255, 253, 247, 0.72);
  color: var(--ink-soft);
}

.dog-profile-copy .button-ghost {
  background: rgba(255, 252, 243, 0.8);
}

.share-dialog-head p {
  color: var(--ink-soft);
}

.share-preview {
  border-color: var(--line);
  background: var(--blue-50);
}

.share-option {
  border-color: var(--line);
  background: rgba(255, 253, 247, 0.75);
}

.share-option:hover {
  border-color: var(--blue-300);
  background: #fffdf8;
}

.share-option.quiet {
  border-color: transparent;
  background: transparent;
}

.share-url {
  border-color: var(--line);
}

.share-url input {
  border-color: var(--line);
  background: rgba(255, 253, 247, 0.8);
  color: var(--ink-soft);
}

.share-result-line {
  border-color: var(--line);
  background: rgba(255, 253, 247, 0.75);
}

.share-result-avatar {
  overflow: hidden;
}

img.share-avatar-dog {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: none;
}

.toast {
  background: rgba(76, 51, 22, 0.95);
  color: #fff9e7;
}

/* Milk-yellow decorative touches */

.hero-stage::before,
.hero-stage::after {
  position: absolute;
  z-index: 4;
  width: 28px;
  height: 18px;
  border: 1.5px solid rgba(142, 97, 31, 0.24);
  border-bottom: 0;
  border-radius: 16px 16px 4px 4px;
  content: "";
  pointer-events: none;
}

.hero-stage::before {
  top: 2%;
  left: 44%;
  transform: rotate(-8deg);
}

.hero-stage::after {
  top: 5%;
  left: 51%;
  transform: rotate(8deg);
}

.result-share-card::before,
.philosophy-card::before {
  position: absolute;
  right: 34px;
  bottom: 26px;
  width: 72px;
  height: 42px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 0 0 70px 70px;
  color: rgba(95, 61, 20, 0.16);
  content: "";
  pointer-events: none;
  transform: rotate(-10deg);
}

.result-share-card::after,
.philosophy-card::after {
  color: rgba(95, 61, 20, 0.13);
}

/* Keep the photo treatment readable on narrow screens. */

@media (max-width: 760px) {
  .dog-card-photo-wrap {
    inset: 8px 8px 0;
    border-radius: 16px 16px 8px 8px;
  }

  .photo-badge {
    right: 8px;
    bottom: 8px;
    min-height: 21px;
    font-size: 7px;
  }

  .photo-badge.mini {
    display: none;
  }

  .hero-photo-wrap {
    inset: 7px;
  }

  .hero-photo-wrap .photo-badge {
    right: 12px;
    bottom: 12px;
  }

  .final-photo-wrap .photo-badge,
  .portrait-photo-wrap .photo-badge,
  .profile-photo-wrap .photo-badge {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 420px) {
  .dog-card-art {
    aspect-ratio: 4 / 5;
  }

  .hero-stage::before,
  .hero-stage::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .main-nav {
    border-color: rgba(255, 255, 255, 0.95);
    background: #fffaf0;
    box-shadow: 0 20px 50px rgba(116, 78, 27, 0.14);
  }
}

@media print {
  body::after,
  .page-atmosphere {
    display: none !important;
  }
}

/* v1.0.1 — clean hero portrait frame + image credit */

.hero-orb {
  inset: 26px 18px 18px;
  border: 1px solid rgba(255, 253, 246, 0.98);
  border-radius: 36px;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.55), transparent 44%),
    linear-gradient(145deg, var(--orb-bg, #fff7e2), var(--orb-blob, #f8e5b3));
  box-shadow: 0 30px 78px rgba(117, 78, 25, 0.14);
  transform: none;
}

.hero-orb::before,
.orb-ring,
.orb-spark,
.hero-stage::before,
.hero-stage::after {
  display: none;
}

.hero-photo-wrap {
  inset: 10px;
  border-radius: 28px;
}

img.hero-dog {
  object-position: center 38%;
  transform: scale(1.045);
  transform-origin: center;
}

.footer-credit {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px 2px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-credit p {
  margin: 0;
  color: var(--muted-light);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.footer-credit .footer-filing {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.footer-filing a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-filing a:hover {
  color: var(--blue-600);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .hero-orb {
    inset: 16px 8px 10px;
    border-radius: 30px;
  }

  .hero-photo-wrap {
    inset: 8px;
    border-radius: 23px;
  }

  .footer-credit {
    margin-top: 4px;
    padding: 12px 20px 1px;
  }
}

@media (max-width: 420px) {
  .hero-orb {
    inset: 12px 5px 8px;
    border-radius: 27px;
  }

  .hero-photo-wrap {
    inset: 7px;
    border-radius: 21px;
  }
}

/* Share formats: portrait 9:16 for phones, landscape 16:9 for desktop */

.share-preview-wrap {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.share-format {
  display: grid;
  width: 100%;
  max-width: 320px;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.65);
}

.share-format-button {
  display: flex;
  min-height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.share-format-button strong {
  font-size: 10px;
  font-weight: 650;
}

.share-format-button small {
  color: var(--muted);
  font-size: 8px;
}

.share-format-button:hover {
  background: rgba(255, 249, 233, 0.9);
}

.share-format-button.is-active {
  background: var(--blue-600);
  color: #fffaf0;
}

.share-format-button.is-active small {
  color: rgba(255, 250, 240, 0.74);
}

.share-preview {
  width: 100%;
  max-width: 320px;
  min-height: 0;
  aspect-ratio: 9 / 16;
}

.share-preview.is-landscape {
  max-width: 100%;
  aspect-ratio: 16 / 9;
}

.share-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 760px) {
  .share-format {
    max-width: 260px;
  }

  .share-preview {
    max-width: 260px;
  }

  .share-preview.is-landscape {
    max-width: 100%;
  }
}

