:root body[data-meemon-lifestyle] {
  --life-paper: var(--meemon-app-surface, #1b171c);
  --life-raised: var(--meemon-app-raised, #272126);
  --life-ink: var(--meemon-app-text, #f6f0e8);
  --life-muted: var(--meemon-app-muted, #c8bdba);
  --life-gold: var(--meemon-app-accent, #e9c582);
  --life-on-gold: var(--meemon-app-accent-ink, #24170d);
  --life-line: var(--meemon-app-line, #f7e3d32b);
  --life-rim: var(--meemon-app-rim, #fff2d432);
  --life-ease: cubic-bezier(.22, 1, .36, 1);
  letter-spacing: 0;
}

:root body[data-meemon-lifestyle] :is(h1, h2, h3) {
  text-wrap: balance;
  letter-spacing: 0;
}

:root body[data-meemon-lifestyle] :is(button, a):focus-visible,
:root body[data-meemon-lifestyle] [tabindex="0"]:focus-visible {
  outline: 2px solid var(--life-gold);
  outline-offset: 3px;
}

/* Contact and sharing */
:root body[data-meemon-lifestyle="contact"] {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(2rem, 7vw, 6rem) 1rem;
}

:root body[data-meemon-lifestyle="contact"] .v3-contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 1rem clamp(1.5rem, 5vw, 4rem);
  width: min(100%, 55rem);
  margin: 0;
  padding: clamp(1.25rem, 4.5vw, 3.5rem);
  border: 1px solid var(--life-line);
  border-radius: 1.5rem;
  background: var(--life-paper);
}

.v3-contact-identity { align-self: center; text-align: start; }
.v3-contact-mark { position: relative; width: 6.5rem; height: 6.5rem; margin-bottom: 1rem; }
.v3-contact-mark > div { display: none; }
.v3-contact-mark img { filter: none; transform: none !important; }
.v3-contact-identity h1 { margin: 0; color: var(--life-ink); font-size: clamp(2rem, 4.6vw, 3.25rem); }
.v3-contact-list { display: grid; gap: .5rem; }

:root body[data-meemon-lifestyle="contact"] .v3-contact-list .contact-item {
  display: grid;
  grid-template-columns: 1.125rem minmax(0, 1fr) 1rem;
  align-items: center;
  gap: .75rem;
  min-height: 3.25rem;
  padding: .75rem 1rem;
  border: 1px solid var(--life-line);
  border-radius: .75rem;
  color: var(--life-ink);
  background: transparent;
  transform: none;
  transition: background-color 150ms var(--life-ease);
}

:root body[data-meemon-lifestyle="contact"] .v3-contact-list .contact-item:hover { background: var(--life-raised); }
:root body[data-meemon-lifestyle="contact"] .v3-contact-list .contact-item div span { color: var(--life-ink); font-size: .9375rem; font-weight: 500; letter-spacing: 0; }
:root body[data-meemon-lifestyle="contact"] .v3-contact-list svg { width: 1.125rem; height: 1.125rem; margin: 0; opacity: 1; color: var(--life-gold); filter: none; transform: none; }
.v3-contact-share { grid-column: 2; }
.v3-contact-share button { min-height: 2.75rem; margin: 0; padding: .5rem .875rem; border: 1px solid var(--life-line); border-radius: .75rem; color: var(--life-gold); font-size: .875rem; text-transform: none; letter-spacing: 0; }
:root body[data-meemon-lifestyle="contact"] .naga-container { animation: none; opacity: .25; }
:root body[data-meemon-lifestyle="contact"] .naga-right { transform: translateY(-50%) scaleX(-1); }
:root body[data-meemon-lifestyle="contact"] .naga-path { animation: none; }
:root body[data-meemon-lifestyle="contact"] #toast { color: var(--life-ink); background: var(--life-raised); border-color: var(--life-line); box-shadow: none; }

/* Guide, step cards and audio */
.v3-guide-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 2rem;
  width: min(70rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 8vw, 6rem) 0 3rem;
}

.v3-guide-heading { margin: 0; text-align: start; }
.v3-guide-heading > div { min-height: auto; padding: 0; border: 0; background: transparent; color: var(--life-gold); font-size: .875rem; text-transform: none; letter-spacing: 0; }
:root body[data-meemon-lifestyle="guide"] .v3-guide-heading h1 { margin: 0; color: var(--life-ink); font-size: clamp(2.4rem, 5.5vw, 4rem); filter: none; }
.v3-guide-intro { margin: 0; }
.v3-guide-intro p { margin: 0; color: var(--life-muted); font-size: 1.0625rem; line-height: 1.75; }
.v3-guide-intro p span { color: var(--life-ink); }
.v3-guide-steps,
.v3-guide-chant,
.v3-guide-footer { grid-column: 1 / -1; }
.v3-guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.v3-guide-steps > div > div:first-child, .v3-guide-chant > div:first-child { display: none; }

:root body[data-meemon-lifestyle="guide"] .v3-guide-steps .glass-panel {
  align-items: flex-start;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--life-line);
  border-radius: 1rem;
  text-align: start;
  color: var(--life-muted);
  background: var(--life-paper);
  box-shadow: none;
  transform: none;
}

.v3-guide-steps .glass-panel > div:first-child { width: 2.75rem; height: 2.75rem; margin-bottom: .875rem; border-color: var(--life-line); border-radius: .625rem; color: var(--life-gold); background: var(--life-raised); box-shadow: none; }
.v3-guide-steps .glass-panel > div:first-child svg { width: 1.25rem; height: 1.25rem; }
.v3-guide-steps .glass-panel h3 { margin: 0 0 .625rem; color: var(--life-ink); -webkit-text-fill-color: currentColor; background: none; font-size: 1.25rem; font-weight: 550; }
.v3-guide-steps .glass-panel :is(p, li, .text-gray-300, .text-gray-400) { color: var(--life-muted); font-size: .9375rem; line-height: 1.65; }
.v3-guide-steps .glass-panel .text-white { color: var(--life-ink); }
.v3-guide-steps .animate-bounce { display: none; }
:root body[data-meemon-lifestyle="guide"] .v3-guide-chant > div:last-child { padding: clamp(1.25rem, 3.5vw, 2.5rem); border-color: var(--life-line); border-radius: 1rem; background: var(--life-paper); text-align: start; }
.v3-guide-chant .animate-spin-slow { display: none; }
.v3-guide-chant h3 { color: var(--life-gold); font-size: 1.5rem; font-weight: 550; filter: none; }
.v3-guide-chant p { color: var(--life-muted); font-size: .9375rem; font-style: normal; }
.v3-guide-chant #mantra-text { padding-inline-end: 2.75rem; color: var(--life-ink); font-size: clamp(1.125rem, 3vw, 1.75rem); line-height: 1.6; }
.v3-guide-chant #play-btn { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--life-line); border-radius: .75rem; color: var(--life-gold); background: var(--life-raised); }
.v3-guide-footer { padding: 1rem 0; border-top: 1px solid var(--life-line); color: var(--life-muted); }
.v3-guide-footer > div:first-child { display: none; }
.v3-guide-footer a { color: var(--life-gold); border-color: var(--life-line); border-radius: .75rem; min-height: 2.75rem; }

/* Wallet date, lunar view and outcome */
:root body[data-meemon-lifestyle="wallet-day"] { padding: clamp(1.75rem, 6vw, 4.5rem) 1rem; }
:root body[data-meemon-lifestyle="wallet-day"] #landingPage { width: min(100%, 48rem); max-width: none; align-items: stretch; color: var(--life-ink); }
#landingPage > div:first-child { text-align: start; }
#landingPage h1 { margin: 0 0 .5rem; font-size: clamp(2rem, 5vw, 3.5rem); filter: none; }
#landingPage p { color: var(--life-muted); font-size: .9375rem; }
#landingPage > div:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
:root body[data-meemon-lifestyle="wallet-day"] .selection-card { min-height: 6rem; padding: .875rem; color: var(--life-ink); border: 1px solid var(--life-line); text-align: start; transition: background-color 150ms var(--life-ease); }
:root body[data-meemon-lifestyle="wallet-day"] .selection-card:hover { background: var(--life-raised); transform: none; }
.selection-card > div:first-child { flex-shrink: 0; color: var(--life-gold); border-color: var(--life-line); border-radius: .75rem; background: var(--life-raised); }
.selection-card > div:first-child i, .selection-card > div:last-child { color: var(--life-gold); }
.selection-card h3 { color: var(--life-ink); font-size: 1rem; font-weight: 550; }
.selection-card p { line-height: 1.5; }

:root body[data-meemon-lifestyle="wallet-day"] #mainApp:not(.hidden) {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  grid-template-areas: "header header" "date moon" "phase moon" "result result";
  gap: 1rem 2rem;
  width: min(100%, 48rem);
  max-width: none;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--life-line);
  border-radius: 1.25rem;
  box-shadow: none;
}

#mainApp > .pointer-events-none { display: none; }
#mainApp header { grid-area: header; margin: 0; padding: 0 3rem .875rem; border-bottom: 1px solid var(--life-line); }
#mainApp header h1 { color: var(--life-ink); font-size: clamp(1.4rem, 5.5vw, 2.125rem); filter: none; }
#mainApp header button { top: -.25rem; left: 0; width: 2.75rem; height: 2.75rem; padding: 0; margin: 0; border-radius: .75rem; color: var(--life-gold); }
#displayModeText { color: var(--life-muted); font-size: .8125rem; letter-spacing: 0; border: 0; background: transparent; }
.v3-wallet-date { grid-area: date; align-self: end; min-width: 0; }
.v3-wallet-date label { margin: 0 0 .5rem; color: var(--life-muted); font-size: .875rem; }
.v3-wallet-date input { min-width: 0; border-color: var(--life-line); background: var(--life-raised); color: var(--life-ink); box-shadow: none; }
.v3-wallet-visual { grid-area: moon; display: grid; place-items: center; min-height: 13rem; }
.v3-wallet-phase { grid-area: phase; }
.v3-wallet-phase h2 { color: var(--life-ink); font-size: 1.25rem; }
#moonAgeText { color: var(--life-muted); font-variant-numeric: tabular-nums; letter-spacing: 0; }
#mainApp #resultCard { grid-area: result; width: 100%; border-width: 1px; color: var(--life-ink); background: var(--life-raised); text-align: start; }
#mainApp #resultTitle { font-size: 1.25rem; filter: none; }
#mainApp #resultDesc { color: var(--life-muted); font-size: .9375rem; line-height: 1.65; }

/* Gallery cards and the full-size preview */
:root body[data-meemon-lifestyle="wallpapers"] > nav { padding-inline: max(1rem, calc((100vw - 68rem) / 2)); color: var(--life-ink); background: var(--life-paper); border-color: var(--life-line); box-shadow: inset 0 1px var(--life-rim); }
:root body[data-meemon-lifestyle="wallpapers"] > header { width: min(68rem, calc(100% - 2rem)); margin-inline: auto; padding: clamp(1.75rem, 6vw, 4rem) 0 1.5rem; text-align: start; }
:root body[data-meemon-lifestyle="wallpapers"] > header h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); margin: 0 0 .5rem; }
:root body[data-meemon-lifestyle="wallpapers"] > header p { color: var(--life-muted); font-size: .9375rem; }
:root body[data-meemon-lifestyle="wallpapers"] > main { width: min(68rem, calc(100% - 2rem)); padding-inline: 0; }
#wallpaper-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

:root body[data-meemon-lifestyle="wallpapers"] .v3-wallpaper-card {
  overflow: hidden;
  border: 1px solid var(--life-line);
  border-radius: 1rem;
  color: var(--life-ink);
  background: var(--life-paper);
  transition: background-color 150ms var(--life-ease);
}

:root body[data-meemon-lifestyle="wallpapers"] .v3-wallpaper-card:hover { transform: none; box-shadow: none; background: var(--life-raised); }
.v3-wallpaper-open { display: grid; width: 100%; height: 100%; align-content: start; color: inherit; text-align: start; }
:root body[data-meemon-lifestyle="wallpapers"] .v3-wallpaper-open:focus-visible { outline-offset: -3px; }
.v3-wallpaper-card-image { display: block; width: 100%; aspect-ratio: 9 / 12; max-height: 30rem; overflow: hidden; background: var(--life-raised); }
.v3-wallpaper-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: none !important; opacity: 1; }
.v3-wallpaper-card-copy { display: grid; gap: .375rem; padding: .875rem; }
.v3-wallpaper-card-copy strong { font-size: clamp(.875rem, 2.2vw, 1rem); font-weight: 550; line-height: 1.5; }
.v3-wallpaper-category { width: fit-content; color: var(--life-gold); font-size: .8125rem; border: 0; background: transparent; }
#product-modal .modal-content { border: 1px solid var(--life-line); border-radius: 1rem; }
.v3-wallpaper-modal-image { background: var(--life-raised); }
.v3-wallpaper-modal-image img { box-shadow: none; border-color: var(--life-line); }
.v3-wallpaper-modal-image > div:last-child { display: none; }
.v3-wallpaper-modal-copy { padding: clamp(1rem, 3vw, 1.75rem); }
.v3-wallpaper-modal-copy :is(#modal-title, h3) { color: var(--life-ink); }
.v3-wallpaper-modal-copy h3 { font-size: .9375rem; }
.v3-wallpaper-modal-copy p { color: var(--life-muted); font-size: .875rem; line-height: 1.65; }
#modal-download-btn { min-height: 2.75rem; border-radius: .75rem; background: var(--life-gold); color: var(--life-on-gold); box-shadow: none; transform: none; }
#close-wallpaper-modal { display: grid; width: 2.75rem; height: 2.75rem; padding: 0; place-items: center; border: 1px solid var(--life-line); border-radius: .75rem; color: var(--life-ink); background: var(--life-paper); }
:root body[data-meemon-lifestyle="wallpapers"] > footer { color: var(--life-muted); background: transparent; border-color: var(--life-line); }
:root body[data-meemon-lifestyle="wallpapers"] > footer p { color: inherit; font-size: .8125rem; text-transform: none; letter-spacing: 0; }

/* Tarot, wallpaper steps and saved art in both card archives */
:root body[data-meemon-lifestyle="card-app"] .orb { display: none; }
:root body[data-meemon-lifestyle="card-app"] > #app { width: min(58rem, calc(100% - 2rem)); max-width: none; padding: 0 0 3rem; }
:root body[data-meemon-lifestyle="card-app"] .header { display: flex; align-items: center; gap: .875rem; padding: clamp(1rem, 5vw, 3rem) 0 1rem; border-bottom: 1px solid var(--life-line); text-align: start; }
:root body[data-meemon-lifestyle="card-app"] .logo-wrap { width: 3rem; height: 3rem; margin: 0; }
:root body[data-meemon-lifestyle="card-app"] .logo-img { width: 100%; height: 100%; border-color: var(--life-line); background: var(--life-paper); filter: none; animation: none; }
:root body[data-meemon-lifestyle="card-app"] .logo-wrap::before,
:root body[data-meemon-lifestyle="card-app"] .logo-wrap::after { content: none; }
:root body[data-meemon-lifestyle="card-app"] .header-title { margin: 0; color: var(--life-ink); background: none; -webkit-text-fill-color: currentColor; font-family: inherit; font-size: clamp(1.55rem, 4.5vw, 2.75rem); font-weight: 550; letter-spacing: 0; text-shadow: none; filter: none; }
#v-home.active { padding-block-start: 1.5rem; }
#v-home .home-tagline { margin: 0 0 1.5rem; color: var(--life-muted); font-size: 1rem; text-align: start; }
#v-home .menu-card { min-height: 10rem; display: grid; align-content: start; justify-items: start; gap: .5rem; border: 1px solid var(--life-line); border-radius: 1rem; text-align: start; }
#v-home .menu-icon { width: 3rem; height: 3rem; margin: 0; border-color: var(--life-line); border-radius: .75rem; background: var(--life-raised); font-size: 1.5rem; }
#v-home .menu-card-title { color: var(--life-ink); font-size: 1.125rem; font-weight: 550; }
#v-home .menu-card-sub { color: var(--life-muted); font-size: .875rem; }
:root body[data-meemon-lifestyle="card-app"] .back-btn { min-height: 2.75rem; margin-top: .875rem; padding-inline: .75rem; border: 1px solid var(--life-line); border-radius: .625rem; color: var(--life-gold); background: var(--life-paper); text-transform: none; letter-spacing: 0; }
:root body[data-meemon-lifestyle="card-app"] .sec-title { color: var(--life-ink); font-family: inherit; font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 550; letter-spacing: 0; text-shadow: none; }
:root body[data-meemon-lifestyle="card-app"] :is(.sec-sub, .oracle-hint, .result-sub) { color: var(--life-muted); font-size: .9rem !important; letter-spacing: 0; }
:root body[data-meemon-lifestyle="card-app"] :is(.sec-rule, .divider) { opacity: .5; }
:root body[data-meemon-lifestyle="card-app"] .oracle-wrap { gap: 1rem; }
:root body[data-meemon-lifestyle="card-app"] .oracle-scene { max-width: 100%; }
:root body[data-meemon-lifestyle="card-app"] :is(#step1, #step2, #step3) { width: min(100%, 38rem); margin-inline: auto; }
:root body[data-meemon-lifestyle="card-app"] :is(.day-card, .day-anyday) { min-height: 3rem; color: var(--life-ink); background: var(--life-paper); border-color: var(--life-line); border-radius: .75rem; box-shadow: none; }
:root body[data-meemon-lifestyle="card-app"] :is(.day-card, .day-anyday):is(.selected, .active, [aria-pressed="true"]) { border-color: var(--life-gold); background: var(--life-raised); }
:root body[data-meemon-lifestyle="card-app"] .day-thai { color: var(--life-muted); font-size: .8125rem !important; }
:root body[data-meemon-lifestyle="card-app"] :is(.btn-arcane, .btn-gold, .btn-ghost, .dl-btn, .nav-btn) { min-height: 2.75rem; border-radius: .75rem; box-shadow: none; letter-spacing: 0; }
:root body[data-meemon-lifestyle="card-app"] :is(.btn-arcane, .btn-gold, .dl-btn):not(:disabled) { color: var(--life-on-gold); background: var(--life-gold); }
:root body[data-meemon-lifestyle="card-app"] :is(.result-title, .result-badge) { color: var(--life-gold); letter-spacing: 0; }
:root body[data-meemon-lifestyle="card-app"] .result-frame { border-color: var(--life-line); background: var(--life-paper); }
:root body[data-meemon-lifestyle="card-app"] .result-img { max-height: 68svh; width: auto; max-width: 100%; margin-inline: auto; object-fit: contain; }

:root body[data-meemon-lifestyle="card-archive"] > header { width: min(100%, 45rem); margin: 0 auto 1.25rem; border-bottom: 1px solid var(--life-line); text-align: start; }
:root body[data-meemon-lifestyle="card-archive"] > header h1 { color: var(--life-ink); -webkit-text-fill-color: currentColor; background: none; font-size: clamp(1.9rem, 5vw, 3rem); }
:root body[data-meemon-lifestyle="card-archive"] #app-container { max-width: 45rem; justify-content: flex-start; }
:root body[data-meemon-lifestyle="card-archive"] .fog-container { display: none; }
:root body:is([data-meemon-lifestyle="card-archive"], [data-meemon-lifestyle="card-react"]) :is(.mystic-panel, .btn-mystic) { color: var(--life-ink); border: 1px solid var(--life-line); border-radius: 1rem; background: var(--life-paper); box-shadow: none; }
:root body:is([data-meemon-lifestyle="card-archive"], [data-meemon-lifestyle="card-react"]) .mystic-panel :is(h2, h3, label) { color: var(--life-ink); font-weight: 550; }
:root body:is([data-meemon-lifestyle="card-archive"], [data-meemon-lifestyle="card-react"]) .mystic-panel p { color: var(--life-muted); }
:root body:is([data-meemon-lifestyle="card-archive"], [data-meemon-lifestyle="card-react"]) .btn-mystic:hover { border-color: var(--life-gold); background: var(--life-raised); transform: none; }
:root body:is([data-meemon-lifestyle="card-archive"], [data-meemon-lifestyle="card-react"]) :is(.day-card-btn, .day-grid button) { min-height: 3.25rem; height: auto; padding-block: .75rem; color: var(--life-ink); background: var(--life-raised); border: 1px solid var(--life-line); border-radius: .75rem; }
:root body:is([data-meemon-lifestyle="card-archive"], [data-meemon-lifestyle="card-react"]) :is(.day-card-btn, .day-grid button):hover:not(:disabled) { border-color: var(--life-gold); transform: none; }
:root body:is([data-meemon-lifestyle="card-archive"], [data-meemon-lifestyle="card-react"]) .badge-pulse { animation: none; }
:root body[data-meemon-lifestyle="card-archive"] :is(#home-view, #fortune-view, #wallpaper-view) { width: 100%; }
:root body[data-meemon-lifestyle="card-archive"] #home-view:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr); align-items: center; }
.v3-card-archive-mark { width: 5rem; height: 5rem; margin-block-end: 1rem; }
:root body[data-meemon-lifestyle="card-archive"] #home-view .text-left h3 { color: var(--life-ink); }
:root body[data-meemon-lifestyle="card-archive"] #home-view .text-left p { color: var(--life-muted); }
:root body[data-meemon-lifestyle="card-archive"] #home-view button > svg { color: var(--life-gold); }
:root body[data-meemon-lifestyle="card-archive"] #wallpaper-result img { max-height: 70svh; margin-inline: auto; object-fit: contain; }
.v3-card-react-layout { position: relative; display: flex; flex-direction: column; gap: 1.5rem; width: min(48rem, calc(100% - 2rem)); min-height: 100svh; margin: 0 auto; padding: clamp(1rem, 5vw, 3rem) 0 2rem; }
.v3-card-react-header { position: relative; z-index: 1; display: flex; align-items: center; padding-bottom: .875rem; border-bottom: 1px solid var(--life-line); }
.v3-card-react-header h1 { margin: 0; color: var(--life-ink); font-size: clamp(1.5rem, 5vw, 2.75rem); font-weight: 550; line-height: 1.25; }
.v3-card-react-main { position: relative; z-index: 1; flex-grow: 1; display: grid; justify-items: center; }
.v3-card-react-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 1rem; width: 100%; }
.v3-card-react-intro { padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--life-line); border-radius: 1rem; background: var(--life-paper); }
.v3-card-react-mark { width: 5rem; height: 5rem; margin-bottom: 1rem; }
.v3-card-react-intro h2 { margin: 0 0 .5rem; color: var(--life-ink); font-family: inherit; font-size: clamp(1.2rem, 3vw, 1.75rem); font-weight: 550; }
.v3-card-react-intro p, .v3-card-react-footer { color: var(--life-muted); }
.v3-card-react-home .btn-mystic h3 { color: var(--life-ink); }
.v3-card-react-home .btn-mystic p { color: var(--life-muted); text-transform: none; }
.v3-card-react-home .btn-mystic svg { color: var(--life-gold); }
.v3-card-react-main .v3-card-react-oracle { max-width: 100%; }
.v3-card-react-main .day-grid { gap: .75rem; }
.v3-card-react-footer { padding-top: .875rem; border-top: 1px solid var(--life-line); font-size: .8125rem; }

/* Chant chooser, progress and reading panel */
.v3-horse-app { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 1.5rem; width: min(66rem, calc(100% - 2rem)); min-height: 100svh; padding: clamp(1.5rem, 7vw, 5rem) 0 2rem; margin: 0 auto; }
.v3-horse-wash, .v3-horse-choice-wash { display: none; }
.v3-horse-header, .v3-horse-main, .v3-horse-footer { position: relative; z-index: 1; }
.v3-horse-header { display: grid; gap: .5rem; }
.v3-horse-header h1 { margin: 0; color: var(--life-ink); font-size: clamp(2rem, 5.5vw, 3.75rem); font-weight: 550; line-height: 1.25; }
.v3-horse-header p, .v3-horse-note { color: var(--life-muted); line-height: 1.65; }
.v3-horse-note { margin: 0 0 1rem; padding: .75rem 1rem; border-inline-start: 2px solid var(--life-gold); }
.v3-horse-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.v3-horse-choice { display: grid; grid-template-columns: minmax(0, 1fr) 1rem; align-content: start; align-items: center; gap: .875rem; min-width: 0; padding: 1rem; border: 1px solid var(--life-line); border-radius: 1rem; color: var(--life-ink); background: var(--life-paper); text-align: start; transition: border-color 150ms var(--life-ease), background-color 150ms var(--life-ease); }
.v3-horse-choice:hover { border-color: var(--life-gold); background: var(--life-raised); }
.v3-horse-image { grid-column: 1 / -1; position: relative; width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border-radius: .75rem; background: var(--life-raised); }
.v3-horse-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v3-horse-description { min-width: 0; }
.v3-horse-description h3 { color: var(--life-ink); font-size: clamp(.9375rem, 3vw, 1.25rem); font-weight: 550; }
.v3-horse-description :is(p, span) { color: var(--life-muted); font-size: .8125rem; line-height: 1.55; letter-spacing: 0; }
.v3-horse-description > div:last-child span { color: var(--life-muted); background: transparent; border-color: var(--life-line); }
.v3-horse-arrow { color: var(--life-gold); }
.v3-horse-footer { padding-top: .875rem; border-top: 1px solid var(--life-line); color: var(--life-muted); font-size: .8125rem; }
.v3-horse-dialog-panel { max-width: 38rem; max-height: min(90vh, 48rem); padding: 0; color: var(--life-ink); background: var(--life-paper); border: 1px solid var(--life-line); border-radius: 1.25rem; box-shadow: inset 0 1px var(--life-rim); }
.v3-horse-dialog-panel > div:first-child { background: var(--life-gold); opacity: .5; }
.v3-horse-dialog-panel :is(.text-white, .text-zinc-200, .text-zinc-300) { color: var(--life-ink); }
.v3-horse-dialog-panel :is(.text-zinc-400, .text-zinc-500) { color: var(--life-muted); }
.v3-horse-dialog-panel .text-amber-400 { color: var(--life-gold); }
.v3-horse-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--life-line); border-radius: .75rem; color: var(--life-ink); background: var(--life-raised); }
.v3-horse-prep, .v3-horse-chant-block { position: relative; padding: 1rem; border: 1px solid var(--life-line); border-radius: .875rem; color: var(--life-ink); background: var(--life-raised); }
.v3-horse-prep h3 { margin-bottom: .75rem; text-transform: none; }
.v3-horse-counter { margin-bottom: .75rem; color: var(--life-muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.v3-horse-dialog-panel button[class*="bg-amber"] { color: var(--life-on-gold); background: var(--life-gold); border-radius: .75rem; box-shadow: none; }

@supports (backdrop-filter: blur(1px)) {
  :root body[data-meemon-lifestyle="wallpapers"] > nav { background: color-mix(in srgb, var(--life-paper) 83%, transparent); backdrop-filter: blur(12px) saturate(1.08); }
}

@media (max-width: 760px) {
  :root body[data-meemon-lifestyle="contact"] .v3-contact-shell,
  :root body[data-meemon-lifestyle="card-archive"] #home-view:not(.hidden),
  .v3-guide-layout,
  .v3-card-react-home { grid-template-columns: minmax(0, 1fr); }
  .v3-contact-share { grid-column: 1; }
  .v3-guide-layout { gap: 1rem; }
  .v3-guide-steps { grid-template-columns: minmax(0, 1fr); }
  #wallpaper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
  .v3-horse-choices { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .v3-horse-choice { grid-template-columns: 4.75rem minmax(0, 1fr) 1rem; padding: .75rem; }
  .v3-horse-image { grid-column: auto; aspect-ratio: 1; }
}

@media (max-width: 480px) {
  #landingPage > div:last-child { grid-template-columns: minmax(0, 1fr); }
  :root body[data-meemon-lifestyle="wallet-day"] #mainApp:not(.hidden) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "header" "date" "moon" "phase" "result"; }
  .v3-wallet-phase { text-align: center; }
  .v3-wallpaper-card-copy { padding: .625rem; }
  .v3-wallpaper-category { font-size: .75rem; }
  :root body[data-meemon-lifestyle="card-app"] .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  :root body[data-meemon-lifestyle] :is(.fade-in, .slide-up, .animate-fade-in, .view, .star) { animation-duration: .01ms; animation-iteration-count: 1; }
  :root body[data-meemon-lifestyle] .star { opacity: .24; }
  :root body[data-meemon-lifestyle] :is(.stack-card, .card-inner, .oracle-card, .v3-horse-dialog-panel) { transition-duration: .01ms; }
  :root body[data-meemon-lifestyle="card-app"] #bg-canvas { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  :root body[data-meemon-lifestyle="wallpapers"] > nav { background: var(--life-paper); backdrop-filter: none; }
}
