/* HabiDragons interactive product page — cartoon sunset skies */

:root {
  --dt-sky-clear: 1;
}

.dt-page {
  --dt-ink: #2a1a12;
  --dt-ink-soft: #5c4030;
  --dt-accent: #c45c2a;
  --dt-sunset-top: #ffb56a;
  --dt-sunset-mid: #ff7a5c;
  --dt-sunset-glow: #ffd89a;
  --dt-sunset-deep: #c44b3a;
  position: relative;
  color: var(--dt-ink);
  min-height: 100vh;
  /* Blue zenith → golden hour → deep sunset (warms further as --dt-sky-clear rises) */
  background:
    radial-gradient(
      ellipse 85% 45% at 50% -6%,
      color-mix(in srgb, #ffe0a8 calc(var(--dt-sky-clear, 0) * 70%), #b8e0ff) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 38% at 12% 42%,
      color-mix(in srgb, rgba(255, 140, 90, 0.55) calc(var(--dt-sky-clear, 0) * 100%), rgba(120, 180, 230, 0.25)) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 55% 35% at 88% 38%,
      color-mix(in srgb, rgba(255, 100, 120, 0.4) calc(var(--dt-sky-clear, 0) * 100%), rgba(140, 170, 220, 0.2)) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 100% 50% at 50% 100%,
      color-mix(in srgb, #6b3a6e calc(40% + var(--dt-sky-clear, 0) * 60%), #3a4a6e) 0%,
      transparent 48%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, #ffc078 calc(var(--dt-sky-clear, 0) * 42%), #5eb6f0) 0%,
      color-mix(in srgb, #ffb080 calc(var(--dt-sky-clear, 0) * 35%), #7ec8f5) 14%,
      color-mix(in srgb, #ff9a70 calc(var(--dt-sky-clear, 0) * 50%), #a8d4f5) 28%,
      color-mix(in srgb, #ff8f6b calc(55% + var(--dt-sky-clear, 0) * 35%), #c5d8f0) 42%,
      #ff7a5c 58%,
      #e85d6a 72%,
      #8b4a7a 88%,
      #3d2a5c 100%
    ) !important;
  transition: background 1.2s ease;
}

.dt-page > *:not(.dt-sky) {
  position: relative;
  z-index: 1;
}

.dt-page .skip-link:focus {
  background: #c45c2a;
  color: #fff;
}

.dt-top {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, #ffd89a 28%, transparent);
  background: color-mix(in srgb, #2a1a18 55%, transparent);
  backdrop-filter: blur(10px);
  transition: background 0.8s ease, border-color 0.8s ease;
}

body.dt-page.dt-sky-open .dt-top {
  background: color-mix(in srgb, #fff0d8 78%, transparent);
  border-bottom-color: color-mix(in srgb, #c45c2a 22%, transparent);
}

.dt-top-inner {
  width: min(68rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.7rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.dt-page .logo {
  color: #f8e8d0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  transition: color 0.7s ease;
}

body.dt-page.dt-sky-open .logo {
  color: #2a1a12;
  text-shadow: none;
}

.dt-top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
}

.dt-top-nav a {
  color: color-mix(in srgb, #f5e0c8 82%, #fff);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.7s ease;
}

.dt-top-nav a:hover { color: #fff; }

body.dt-page.dt-sky-open .dt-top-nav a {
  color: #2a1810;
}

body.dt-page.dt-sky-open .dt-top-nav a:hover { color: #140c08; }

.dt-main {
  position: relative;
  width: min(44rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 5rem;
  z-index: 2;
}

.dt-main > .dt-section,
.dt-main > .dt-hero {
  position: relative;
  z-index: 3;
  isolation: isolate;
}

/* Sitting clouds live under the information UI */
.dt-cloud-rail {
  z-index: 1;
  pointer-events: none;
}

.dt-cloud-rail .dt-cloud {
  pointer-events: auto;
}

.dt-hero {
  padding: 2.75rem 0 4.5rem;
  text-align: center;
  position: relative;
  min-height: min(78vh, 42rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.dt-hero > * {
  position: relative;
  z-index: 4;
}

.dt-journey,
.dt-section-inner {
  position: relative;
  z-index: 5;
}

.dt-hero h1 {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--font-brand, "Outfit", sans-serif);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.1rem);
  letter-spacing: -0.03em;
  color: #f8ead8;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  transition: color 0.8s ease, text-shadow 0.8s ease;
}

body.dt-page.dt-sky-clearing .dt-hero h1,
body.dt-page.dt-sky-open .dt-hero h1 {
  color: #140c08;
  text-shadow:
    0 1px 0 rgba(255, 236, 210, 0.55),
    0 2px 14px rgba(255, 210, 160, 0.35);
}

.dt-hero-lede {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  font-size: 1.14rem;
  line-height: 1.6;
  color: #d8c4b0;
  font-weight: 500;
  transition: color 0.8s ease;
}

body.dt-page.dt-sky-clearing .dt-hero-lede,
body.dt-page.dt-sky-open .dt-hero-lede {
  color: #2a1810;
  font-weight: 600;
}

.dt-journey {
  width: min(36rem, 100%);
  margin: 0 auto 1.75rem;
  padding: 1.35rem 1.25rem 1.45rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(20, 24, 32, 0.55) 0%, rgba(30, 36, 48, 0.4) 100%);
  border-top: 1px solid color-mix(in srgb, #8899aa 28%, transparent);
  border-bottom: 1px solid color-mix(in srgb, #667788 22%, transparent);
  transition: background 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease;
}

body.dt-page.dt-sky-clearing .dt-journey,
body.dt-page.dt-sky-open .dt-journey {
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.92) 0%, rgba(255, 232, 200, 0.88) 100%);
  border-top-color: color-mix(in srgb, #c45c2a 28%, transparent);
  border-bottom-color: color-mix(in srgb, #e07a40 22%, transparent);
  box-shadow: 0 10px 28px rgba(80, 30, 10, 0.12);
}

.dt-journey-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand, "Outfit", sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa8b8;
  transition: color 0.7s ease;
}

body.dt-page.dt-sky-clearing .dt-journey-kicker,
body.dt-page.dt-sky-open .dt-journey-kicker {
  color: #8a3a18;
}

.dt-journey-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-brand, "Outfit", sans-serif);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
  color: #f0e4d4;
  transition: color 0.7s ease;
}

body.dt-page.dt-sky-clearing .dt-journey-title,
body.dt-page.dt-sky-open .dt-journey-title {
  color: #140c08;
}

.dt-journey-copy {
  margin: 0 auto 0.85rem;
  max-width: 30rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #c8b8a8;
  font-weight: 500;
  transition: color 0.7s ease;
}

body.dt-page.dt-sky-clearing .dt-journey-copy,
body.dt-page.dt-sky-open .dt-journey-copy {
  color: #2a1810;
}

.dt-journey-promise {
  margin: 0;
  font-family: var(--font-brand, "Outfit", sans-serif);
  font-weight: 700;
  font-size: 1.02rem;
  color: #e8c090;
  letter-spacing: 0.01em;
  transition: color 0.7s ease;
}

body.dt-page.dt-sky-clearing .dt-journey-promise,
body.dt-page.dt-sky-open .dt-journey-promise {
  color: #9a3412;
}

.dt-hint {
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #a09080;
  letter-spacing: 0.02em;
  transition: color 0.7s ease;
}

body.dt-page.dt-sky-clearing .dt-hint,
body.dt-page.dt-sky-open .dt-hint {
  color: #3d2418;
}

.dt-page .section-kicker {
  color: #e8b878;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  transition: color 0.7s ease, text-shadow 0.7s ease;
}

body.dt-page.dt-sky-clearing .section-kicker,
body.dt-page.dt-sky-open .section-kicker {
  color: #9a3412;
  text-shadow: none;
  font-weight: 700;
}

.dt-page .cta-secondary {
  color: #f5e8d8;
  border-color: color-mix(in srgb, #ffd89a 40%, transparent);
}

body.dt-page.dt-sky-open .cta-secondary {
  color: #2a1a12;
  border-color: color-mix(in srgb, #c45c2a 40%, transparent);
}

.dt-page .cta-secondary:hover {
  color: #fff;
  border-color: #ffd89a;
  background: color-mix(in srgb, #ff8f6b 22%, transparent);
}

body.dt-page.dt-sky-open .cta-secondary:hover {
  color: #2a1a12;
  border-color: #c45c2a;
  background: color-mix(in srgb, #ffb56a 28%, transparent);
}

.dt-page .cta-primary {
  background: linear-gradient(135deg, #ffb56a, #c45c2a);
  color: #1a0e08;
  box-shadow: 0 0 18px rgba(255, 140, 80, 0.35);
}

/* â€”â€” Sky companion â€”â€” */
.dt-sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
}

.dt-glitter {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.dt-dragon {
  position: absolute;
  left: 0;
  top: 0;
  width: 160px;
  height: 160px;
  will-change: transform;
  transition: width 0.25s ease, height 0.25s ease;
  z-index: 5;
  filter: drop-shadow(0 10px 16px rgba(20, 53, 40, 0.28));
}

.dt-dragon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
  transition: transform 0.18s ease;
}

.dt-dragon.is-face-left .dt-dragon-img {
  transform: scaleX(-1);
}

.dt-dragon.is-intro {
  filter:
    drop-shadow(0 12px 20px rgba(20, 53, 40, 0.35))
    drop-shadow(0 0 22px rgba(255, 200, 120, 0.4));
}

/* Cartoon sunset perch clouds sit behind UI */

.dt-section-inner {
  position: relative;
  z-index: 2;
}

.dt-cloud-rail-inner {
  position: absolute;
  inset: 0;
  transition: opacity 0.55s ease, filter 0.55s ease;
}

.dt-cloud-rail-inner.is-cleared {
  opacity: 0;
  filter: blur(12px);
  pointer-events: none;
}

body.dt-mossy-home .dt-cloud-rail {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.45s ease;
}

.dt-nimbus-svg {
  overflow: visible;
  display: block;
}

/* Perch nimbus clouds (behind UI, Mossy sits on these) */

.dt-cloud-rail {
  position: absolute;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  top: 0;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.6s ease;
}

.dt-cloud {
  position: absolute;
  left: 10%;
  width: 17rem;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, 0);
  z-index: 1;
  transition: opacity 0.55s ease, filter 0.55s ease, transform 0.55s ease;
}

.dt-cloud.is-revealed {
  opacity: 1;
  filter: none;
}

.dt-cloud--nimbus {
  width: min(22rem, 58vw);
  height: auto;
}

.dt-cloud--nimbus .dt-nimbus-svg--perch {
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 16px rgba(255, 190, 100, 0.55))
    drop-shadow(0 14px 18px rgba(120, 60, 20, 0.22));
  transition: filter 0.35s ease, transform 0.45s ease;
  opacity: 1;
}

.dt-cloud-break-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.dt-cloud.is-active .dt-nimbus-svg--perch {
  filter:
    drop-shadow(0 0 22px rgba(255, 190, 90, 0.75))
    drop-shadow(0 14px 18px rgba(120, 60, 20, 0.2));
  animation: cloud-breathe 3.6s ease-in-out infinite;
}

.dt-cloud.is-poof .dt-nimbus-body {
  opacity: 0;
  transform: scale(1.25);
  filter: blur(14px);
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
}

.dt-cloud.is-poof .dt-nimbus-svg--perch {
  animation: none;
}

.dt-cloud.is-reforming .dt-nimbus-body {
  animation: cloud-reform 0.78s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.dt-nimbus-body {
  transform-origin: center;
  transform-box: fill-box;
}

.dt-smoke-layer { pointer-events: none; }

.dt-smoke-bit {
  fill: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: smoke-drift 0.75s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes smoke-drift {
  0% {
    opacity: 0.9;
    transform: translate(0, 0) scale(var(--sx, 0.8));
    filter: blur(0.5px);
  }
  55% { opacity: 0.4; }
  100% {
    opacity: 0;
    transform: translate(var(--drift, 24px), -48px) scale(calc(var(--sx, 0.8) * 1.6));
    filter: blur(7px);
  }
}

@keyframes cloud-breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.03) translateY(-3px); }
}

@keyframes cloud-reform {
  0% { opacity: 0; transform: scale(0.55) translateY(10px); filter: blur(12px); }
  55% { opacity: 0.9; transform: scale(1.05) translateY(-2px); filter: blur(1px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.dt-anger {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 34px;
  height: 34px;
  opacity: 0;
  transform: scale(0.35) rotate(-28deg) translate(6px, 8px);
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.65));
}

.dt-dragon[data-mood="startle"] .dt-anger {
  animation: anger-pop 0.7s cubic-bezier(0.2, 1.4, 0.35, 1) forwards;
}

@keyframes anger-pop {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-40deg) translate(10px, 14px);
  }
  35% {
    opacity: 1;
    transform: scale(1.18) rotate(-8deg) translate(0, 0);
  }
  70% {
    opacity: 1;
    transform: scale(1) rotate(-14deg) translate(0, -2px);
  }
  100% {
    opacity: 0;
    transform: scale(0.85) rotate(-20deg) translate(2px, -4px);
  }
}

.dt-dragon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

.dt-dragon[data-mood="fly"] .dt-dragon-img {
  animation: mascot-flap 0.35s ease-in-out infinite alternate;
}

.dt-dragon[data-mood="idle"] .dt-dragon-img,
.dt-dragon.is-sitting .dt-dragon-img {
  animation: none;
}

.dt-dragon[data-mood="startle"] .dt-dragon-img {
  animation: startle 0.55s ease;
}

.dt-dragon[data-mood="settle"] .dt-dragon-img {
  animation: settle 0.6s ease;
}

@keyframes mascot-flap {
  from { transform: translateY(0) rotate(-4deg) scale(1); }
  to { transform: translateY(-6px) rotate(5deg) scale(1.04); }
}

@keyframes startle {
  0% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-18px) rotate(-12deg); }
  60% { transform: translateY(-8px) rotate(8deg); }
  100% { transform: translateY(0) rotate(0); }
}

@keyframes settle {
  0% { transform: translateY(-12px); }
  60% { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

/* —— Content sections —— */
.dt-section {
  position: relative;
  padding: 4.5rem 0 3rem;
  scroll-margin-top: 5rem;
  overflow: visible;
}

.dt-section-inner {
  position: relative;
  z-index: 2;
}

.dt-section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-brand, "Outfit", sans-serif);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  letter-spacing: -0.02em;
  color: #f0e4d4;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition: color 0.7s ease, text-shadow 0.7s ease;
}

body.dt-page.dt-sky-clearing .dt-section h2,
body.dt-page.dt-sky-open .dt-section h2 {
  color: #140c08;
  text-shadow: 0 1px 0 rgba(255, 240, 210, 0.45);
}

.dt-section p {
  margin: 0 0 1rem;
  color: #c8b4a0;
  font-weight: 500;
  line-height: 1.65;
  font-size: 1.05rem;
  transition: color 0.7s ease;
}

body.dt-page.dt-sky-clearing .dt-section p,
body.dt-page.dt-sky-open .dt-section p {
  color: #2a1810;
}

.dt-bullets {
  margin: 1.1rem 0 0;
  padding-left: 1.15rem;
  color: #c8b4a0;
  font-weight: 500;
  display: grid;
  gap: 0.4rem;
  transition: color 0.7s ease;
}

body.dt-page.dt-sky-clearing .dt-bullets,
body.dt-page.dt-sky-open .dt-bullets {
  color: #2a1810;
}

.dt-feature-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.dt-feature {
  padding: 1.1rem 1.15rem;
  border: 1px solid color-mix(in srgb, #8899aa 30%, transparent);
  background: color-mix(in srgb, #1a202c 55%, transparent);
  border-radius: 0.35rem;
  opacity: 0.55;
  transform: translateY(12px);
  transition:
    opacity 500ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
    background 0.7s ease,
    border-color 0.7s ease;
}

body.dt-page.dt-sky-clearing .dt-feature,
body.dt-page.dt-sky-open .dt-feature {
  border-color: color-mix(in srgb, #c45c2a 28%, transparent);
  background: color-mix(in srgb, #fff8f0 90%, transparent);
}

.dt-feature.is-in {
  opacity: 1;
  transform: none;
}

.dt-feature h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand, "Outfit", sans-serif);
  font-size: 1.1rem;
  color: #f0e4d4;
  transition: color 0.7s ease;
}

body.dt-page.dt-sky-clearing .dt-feature h3,
body.dt-page.dt-sky-open .dt-feature h3 {
  color: #140c08;
}

.dt-feature p {
  margin: 0;
  font-size: 0.98rem;
}

.dt-cta-block { text-align: center; }

.dt-cta-block .dt-section-inner {
  padding: 1.5rem 1.25rem;
  border: 1px solid color-mix(in srgb, #8899aa 30%, transparent);
  background: color-mix(in srgb, #1a202c 50%, transparent);
  border-radius: 0.4rem;
  transition: background 0.7s ease, border-color 0.7s ease;
}

body.dt-page.dt-sky-clearing .dt-cta-block .dt-section-inner,
body.dt-page.dt-sky-open .dt-cta-block .dt-section-inner {
  border-color: color-mix(in srgb, #c45c2a 28%, transparent);
  background: color-mix(in srgb, #fff8f0 88%, transparent);
}

.dt-section-inner {
  position: relative;
  z-index: 2;
}

body.dt-page.dt-sky-clearing .dt-section:not(.dt-cta-block):not(.dt-pet-section) .dt-section-inner,
body.dt-page.dt-sky-open .dt-section:not(.dt-cta-block):not(.dt-pet-section) .dt-section-inner {
  padding: 1.15rem 1.1rem;
  border-radius: 0.45rem;
  background: color-mix(in srgb, #fff6ea 82%, transparent);
  box-shadow: 0 8px 24px rgba(60, 25, 10, 0.1);
}

body.dt-page.dt-sky-clearing .dt-cta-block .dt-section-inner,
body.dt-page.dt-sky-open .dt-cta-block .dt-section-inner {
  box-shadow: 0 8px 24px rgba(60, 25, 10, 0.1);
}

.dt-cta-block .cta-row {
  justify-content: center;
  margin-top: 1.1rem;
}

/* â€”â€” Tamagotchi â€”â€” */
.dt-pet-lede { text-align: center; }

.dt-pet {
  margin: 1.5rem auto 0;
  max-width: 22rem;
  padding: 1rem;
  border-radius: 1.4rem;
  background: linear-gradient(160deg, #2a3d34, #1a2a24);
  box-shadow: 0 16px 40px rgba(20, 53, 40, 0.28);
}

.dt-pet-screen {
  position: relative;
  height: 14rem;
  border-radius: 0.85rem;
  overflow: hidden;
  background: linear-gradient(180deg, #b8e0f0 0%, #e8f6ee 55%, #c8e8d4 100%);
  border: 3px solid #0c1a14;
}

.dt-pet-screen.is-beckoning {
  box-shadow: inset 0 0 28px rgba(255, 226, 122, 0.45);
}

.dt-pet-portal {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 4.5rem;
  height: 4.5rem;
  margin-left: -2.25rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 200, 0.85) 0%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  filter: blur(1px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.dt-pet.is-awaiting .dt-pet-portal,
.dt-pet-screen.is-beckoning .dt-pet-portal {
  opacity: 1;
  transform: scale(1);
  animation: portal-pulse 1.2s ease-in-out infinite;
}

.dt-pet-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.7) 0 8%, transparent 9%),
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.55) 0 10%, transparent 11%);
}

.dt-pet-dragon {
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%) scale(0.2);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.dt-pet.is-mossy-home .dt-pet-dragon {
  opacity: 1;
  pointer-events: auto;
  animation: mossy-land 0.7s cubic-bezier(0.2, 1.2, 0.35, 1) forwards;
}

.dt-pet-dragon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}

.dt-pet-dragon.is-hop { animation: pet-hop 0.45s ease; }
.dt-pet-dragon.is-eat { animation: pet-eat 0.5s ease; }

.dt-dragon.is-diving .dt-dragon-img {
  animation: mascot-flap 0.22s ease-in-out infinite alternate;
}

.dt-dragon.is-in-pet {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

@keyframes portal-pulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes mossy-land {
  0% { transform: translateX(-50%) translateY(-40px) scale(0.35); opacity: 0.4; }
  55% { transform: translateX(-50%) translateY(6px) scale(1.08); opacity: 1; }
  100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

@keyframes pet-hop {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-22px) scale(1.05); }
}

@keyframes pet-eat {
  0%, 100% { transform: translateX(-50%) scale(1); }
  40% { transform: translateX(-50%) scale(1.12); }
}

.dt-pet-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #143528;
}

.dt-pet-meters {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  right: 0.55rem;
  display: grid;
  gap: 0.3rem;
}

.dt-meter {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d5a4a;
}

.dt-meter i {
  display: block;
  height: 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 55%, transparent);
  overflow: hidden;
  position: relative;
}

.dt-meter i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--v, 40%);
  background: linear-gradient(90deg, #7ed49a, #3d8c5a);
  border-radius: inherit;
  transition: width 0.35s ease;
}

.dt-pet-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.dt-pet-actions .cta {
  min-width: 4.75rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 0.35rem;
}

.dt-pet-actions .cta-primary {
  color: #0c1a14;
  background: linear-gradient(135deg, #b6f0c8, #7ed49a);
  border: 1px solid #5bb87a;
  box-shadow: none;
}

.dt-pet-actions .cta-primary:hover {
  background: linear-gradient(135deg, #c8f7d6, #8fe0a8);
  box-shadow: none;
}

.dt-pet-actions .cta-secondary {
  color: #f4faf6;
  background: color-mix(in srgb, #fff 14%, transparent);
  border: 1px solid color-mix(in srgb, #fff 45%, transparent);
}

.dt-pet-actions .cta-secondary:hover {
  color: #fff;
  background: color-mix(in srgb, #fff 22%, transparent);
  border-color: #fff;
}

.dt-page .site-footer {
  background: color-mix(in srgb, #2a1a18 45%, transparent);
  border-top-color: color-mix(in srgb, #ffd89a 22%, transparent);
}

.dt-page .footer-brand strong,
.dt-page .footer-nav a,
.dt-page .footer-meta,
.dt-page .footer-brand span,
.dt-page .footer-brand a {
  color: #e8d4c0;
  text-shadow: none;
}

.dt-page .footer-brand a:hover { color: #fff; }

.dt-page.dt-sky-open .site-footer {
  background: color-mix(in srgb, #fff0d8 55%, transparent);
}

.dt-page.dt-sky-open .footer-brand strong,
.dt-page.dt-sky-open .footer-nav a,
.dt-page.dt-sky-open .footer-meta,
.dt-page.dt-sky-open .footer-brand span,
.dt-page.dt-sky-open .footer-brand a {
  color: #5c4030;
}

.dt-page.dt-sky-open .footer-brand a:hover { color: #2a1a12; }

@media (max-width: 720px) {
  .dt-top-nav a:not(.cta) { display: none; }
  .dt-cloud--nimbus { width: min(16rem, 72vw); }
  .dt-dragon { width: 84px; height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .dt-dragon[data-mood="fly"] .dt-dragon-img,
  .dt-dragon[data-mood="startle"] .dt-dragon-img,
  .dt-dragon[data-mood="startle"] .dt-anger,
  .dt-cloud.is-active .dt-nimbus-svg--perch,
  .dt-smoke-bit,
  .dt-pet-dragon.is-hop,
  .dt-pet-dragon.is-eat {
    animation: none;
  }
}
