body[data-happy-endings] #ya-tienen-hogar>.happy-catalog,body[data-happy-endings] #ya-tienen-hogar>.stories{display:block!important;margin:0;padding:42px 28px;background:#faf5e9}
.happy-catalog h2{font:400 clamp(30px,4vw,48px)/1.1 Georgia,serif;margin:8px 0 24px;color:#382b21}.happy-eyebrow{font-size:12px;letter-spacing:.16em;color:#a64e24;font-weight:800}.happy-catalog-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px}.happy-catalog-filters label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700}.happy-catalog-filters input,.happy-catalog-filters select{min-width:0;width:100%;box-sizing:border-box;border:1px solid #ded3c0;border-radius:14px;background:#fffdf8;color:#382b21;font:inherit;padding:14px}.happy-catalog-filters button{grid-column:1/-1;justify-self:end;border:0;background:none;color:#a64e24;text-decoration:underline;padding:8px;cursor:pointer}.happy-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.happy-animal-card{min-width:0;padding:12px 12px 18px;border:1px solid #e8dece;background:#fffdf8;box-shadow:0 8px 20px #624a2010;text-align:left;color:#382b21;border-radius:7px;cursor:pointer;font:inherit}.happy-animal-card img{display:block;width:100%;height:auto;aspect-ratio:1.2;object-fit:cover;object-position:center top;border-radius:3px}.happy-animal-card span{display:block;margin-top:10px}.happy-animal-name{font:400 30px Georgia,serif;overflow-wrap:anywhere}.happy-animal-place{font-size:13px;color:#7a6b59}.happy-animal-action{color:#a64e24;font-size:14px}.happy-catalog-count{font-size:14px;color:#7a6b59}.happy-animal-card:focus-visible,.happy-catalog-filters :focus-visible{outline:3px solid #58744d;outline-offset:3px}
.happy-story-dialog{padding:0;border:0;width:min(100%,1100px);max-width:1100px;height:100dvh;max-height:100dvh;margin:0 auto;inset:0;overflow:auto;background:#faf5e9;color:#382b21}.happy-story-dialog::backdrop{background:#211a16c9}.happy-story-canvas{position:relative;container-type:inline-size;aspect-ratio:948/1660;width:100%;isolation:isolate}.happy-story-art{display:block;width:100%;height:auto}.happy-story-title{position:absolute;left:26%;top:5.2%;width:48%;height:4.9%;margin:0;padding:0;background:#faf5e9;display:grid;place-items:center;font:400 7.6cqw/1 Georgia,serif;white-space:nowrap;overflow:hidden;box-sizing:border-box;color:#160f0a}.happy-story-photo{position:absolute;left:24.4%;top:14.55%;width:47.3%;height:21.1%;object-fit:cover;object-position:center top;clip-path:polygon(0 15%,91% 0,100% 84%,30% 100%,8% 92%)}.happy-story-copy{position:absolute;left:10%;top:45.4%;width:80%;height:8.2%;overflow:auto;font:400 clamp(12px,1.9cqw,21px)/1.5 Georgia,serif;white-space:pre-line}.happy-story-copy p{margin:0}.happy-story-review{position:absolute;left:10%;top:79.2%;width:79%;height:7.8%;overflow:auto;font:400 clamp(12px,1.8cqw,20px)/1.4 Georgia,serif}.happy-story-review p,.happy-story-review blockquote{margin:0 0 12px}.happy-story-review cite{display:block;font-size:.85em;margin-top:8px}.happy-story-hit{position:absolute;border:0;background:transparent;color:transparent;padding:0;cursor:pointer;border-radius:30px;z-index:5;-webkit-tap-highlight-color:transparent}.happy-story-hit:focus-visible{outline:3px solid #45613b;outline-offset:3px}.happy-story-back{left:5%;top:1%;width:26%;height:2.8%}.happy-story-another{left:30.5%;top:89.8%;width:39%;height:4%}.happy-story-adopt{left:35%;top:94.1%;width:34%;height:2.5%}.happy-story-another:disabled{cursor:default}.happy-story-dialog [hidden]{display:none}
@media(max-width:700px){.happy-catalog-filters{grid-template-columns:1fr 1fr}.happy-catalog-filters label:first-child{grid-column:1/-1}.happy-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body[data-happy-endings] #ya-tienen-hogar>.happy-catalog,body[data-happy-endings] #ya-tienen-hogar>.stories{padding:30px 16px}.happy-animal-name{font-size:24px}.happy-story-dialog{width:100%;margin:0}.happy-story-copy,.happy-story-review{scrollbar-width:thin}}

.happy-story-photo-window{position:absolute;left:24.4%;top:14.55%;width:47.3%;height:21.1%;overflow:hidden;clip-path:polygon(0 15%,91% 0,100% 84%,30% 100%,8% 92%);background:#e8dfcf}.happy-story-photo-window .happy-story-photo{left:0;top:15%;width:96%;height:170%;clip-path:none;transform:rotate(-7.2deg);transform-origin:0 0;object-position:center top}

.happy-story-title{top:5%;height:5.65%;width:49%;left:25.5%}

/* Real gallery photos cover only the image apertures in the approved artwork. */
.happy-real-album{position:absolute;inset:0;pointer-events:none}
.happy-album-photo{position:absolute;object-fit:cover;object-position:center top;background:#eee6d8}
.happy-album-photo-0{left:7.17%;top:56.33%;width:26.9%;height:11.45%;clip-path:polygon(0 9%,94% 0,100% 91%,5% 100%)}
.happy-album-photo-1{left:37.75%;top:56.75%;width:24.68%;height:10.7%;clip-path:polygon(0 0,100% 0,100% 100%,1% 99%)}
.happy-album-photo-2{left:67.4%;top:56.45%;width:26.3%;height:10.9%;clip-path:polygon(0 0,99% 4%,100% 100%,0 96%)}
.exact-canvas .exact-surprise{background:#c94d12!important;color:#fff9ed!important;font:400 3.1cqw/1.1 Georgia,serif!important;box-shadow:inset 0 1px 0 #ffffff16;text-align:center!important}
.exact-canvas .exact-surprise:active{filter:brightness(.94)}
body[data-happy-endings] #ya-tienen-hogar>.stories{position:relative;isolation:isolate;margin:20px 0 0;padding:54px 38px 44px;border:0;border-radius:28px;background:radial-gradient(ellipse at top right,#e3e8d480,transparent 45%),linear-gradient(145deg,#fffdf6,#f7efdf);color:#382b21;box-shadow:0 10px 35px #6b4a2010;font-family:Nunito,Arial,sans-serif}
body[data-happy-endings] .stories-top{display:grid;grid-template-columns:1fr auto;align-items:center;gap:25px;padding-bottom:25px;border-bottom:1px solid #d9cab4}
body[data-happy-endings] .stories-kicker{font:800 12px/1.5 Nunito,Arial,sans-serif;letter-spacing:.17em;color:#a85b32;margin:0 0 12px}
body[data-happy-endings] #storiesTitle{font:400 clamp(31px,4.1vw,48px)/1.13 Georgia,serif!important;letter-spacing:-.025em;color:#3c3025;margin:0 0 17px;max-width:650px}
body[data-happy-endings] .stories-intro{font:400 17px/1.7 Nunito,Arial,sans-serif;color:#786953;max-width:650px;margin:0}
body[data-happy-endings] #storyOpen{border:1px solid #bd572a!important;background:#b95425!important;color:#fff9ec!important;border-radius:99px!important;padding:16px 23px!important;box-shadow:0 5px 15px #9a481b16;font:800 15px/1.3 Nunito,Arial,sans-serif;max-width:100%;white-space:normal}
body[data-happy-endings] .story-toolbar{justify-content:flex-end;margin:14px 0}
body[data-happy-endings] #storiesRetry{border:0;background:transparent;box-shadow:none;padding:9px 0;color:#906c4e;font:700 13px Nunito,Arial,sans-serif;text-decoration:underline;text-underline-offset:4px}
body[data-happy-endings] #storiesGrid{gap:20px;margin-top:18px}
body[data-happy-endings] #storiesGrid>.stories-note{grid-column:1/-1;display:flex;align-items:center;flex-direction:column;text-align:center;gap:12px;padding:32px 22px;margin:0;border:1px dashed #cfbda2;border-radius:18px;background:#fffdf6d9;color:#76634d}
.happy-empty-heart{font:400 44px/1 Georgia,serif;color:#b75a2f}.stories-note strong{font:400 clamp(23px,3vw,30px)/1.2 Georgia,serif;color:#49382a}.stories-note p{font:400 16px/1.7 Nunito,Arial,sans-serif;max-width:520px;margin:0}
body[data-happy-endings] .story-card{position:relative;background:#fffdf7;border:1px solid #e1d3be!important;border-radius:16px!important;padding:24px!important;box-shadow:0 6px 18px #63462208!important}
body[data-happy-endings] .story-fold-summary{font:400 26px/1.3 Georgia,serif!important;color:#49382a;gap:14px}
body[data-happy-endings] .story-compact-rating{color:#b98a42;font-size:16px;letter-spacing:.1em}.story-experience-title{font-family:Georgia,serif!important;font-weight:400!important}.story-excerpt,.story-full blockquote{font:400 16px/1.8 Nunito,Arial,sans-serif;color:#72604b}.story-family{color:#a35e37;font-size:14px}
body[data-happy-endings] #storyForm{border:1px solid #e0d0b9;border-radius:22px;background:#fffdf7;padding:28px;box-shadow:0 8px 24px #78552a0a}
body[data-happy-endings] #storyForm h4{font:400 27px/1.25 Georgia,serif;color:#49382a}body[data-happy-endings] #storyForm label{font:700 15px/1.5 Nunito,Arial,sans-serif;color:#6e5943}body[data-happy-endings] #storyForm input,body[data-happy-endings] #storyForm textarea{background:#fffaf1;border:1px solid #dfd1bc;border-radius:12px;font:400 16px/1.5 Nunito,Arial,sans-serif;color:#382b21}
@media(max-width:700px){body[data-happy-endings] #ya-tienen-hogar>.stories{padding:32px 20px;border-radius:22px;margin-top:12px}body[data-happy-endings] .stories-top{grid-template-columns:1fr;gap:22px}body[data-happy-endings] .stories-intro{font-size:16px}body[data-happy-endings] #storyOpen{width:100%}body[data-happy-endings] #storyForm{padding:20px}body[data-happy-endings] .story-card{padding:20px!important}}

/* Attribution remains linked to the animal currently displayed. */
.happy-shelter-credit{position:absolute;z-index:4;display:flex;align-items:center;justify-content:center;gap:1.25cqw;color:#3c3025;text-decoration:none;box-sizing:border-box;min-width:0;padding:.7cqw}
.happy-shelter-credit[hidden],.happy-shelter-credit [hidden]{display:none!important}.happy-shelter-credit img{display:block;object-fit:contain;flex:none;width:8cqw;height:8cqw;border:0;border-radius:0;background:transparent}.happy-shelter-copy{min-width:0;display:flex;flex-direction:column;gap:.55cqw}.happy-shelter-copy small{font:800 1.05cqw/1.25 Nunito,Arial,sans-serif;letter-spacing:.1em;color:#a45d34}.happy-shelter-copy strong{font:400 2.4cqw/1.15 Georgia,serif;overflow-wrap:anywhere}.happy-shelter-fallback{font-size:5cqw}.happy-shelter-credit:focus-visible{outline:3px solid #58744d;outline-offset:3px;border-radius:10px}
.happy-main-shelter{left:13%;top:75.1%;width:34%;height:7.3%;padding:1cqw;border-radius:8px;background:#faf5e9ee}.happy-main-shelter img{width:9cqw;height:9cqw}.happy-main-shelter .happy-shelter-copy strong{font-size:2.35cqw}.happy-main-shelter .happy-shelter-copy small{font-size:1cqw}
.happy-story-copy{height:4.8%}.happy-story-shelter{left:12%;top:50.45%;width:76%;height:4.6%;gap:1.7cqw}.happy-story-shelter img{width:6.8cqw;height:6.8cqw}.happy-story-shelter .happy-shelter-copy strong{font-size:2.6cqw}.happy-story-shelter .happy-shelter-copy small{font-size:1.1cqw}

.happy-main-shelter{left:12%;top:76%;width:34%;height:6%;background:transparent}.happy-main-shelter .happy-shelter-copy small{display:none}

/* Larger recognition panel; identity is stacked in both compositions. */
.happy-main-shelter{left:10.5%;top:68.8%;width:36%;height:13.2%;flex-direction:column;gap:1.1cqw;text-align:center;background:transparent;padding:1.3cqw;justify-content:center}.happy-main-shelter img{width:12.6cqw;height:12.6cqw}.happy-main-shelter .happy-shelter-copy strong{font-size:3.15cqw;line-height:1.15}.happy-main-shelter .happy-shelter-copy small{display:none}.happy-main-shelter .happy-shelter-copy{align-items:center}
.happy-story-shelter{left:auto;right:1.2%;top:1%;width:19.5%;height:13%;flex-direction:column;gap:1cqw;text-align:center;background:#faf5e9e8;border:1px solid #d9cbb780;border-radius:1.4cqw;box-shadow:0 .5cqw 1.7cqw #4f311019;padding:1.2cqw}.happy-story-shelter img{width:9.6cqw;height:9.6cqw}.happy-story-shelter .happy-shelter-copy{align-items:center}.happy-story-shelter .happy-shelter-copy strong{font-size:2.2cqw;line-height:1.2}.happy-story-shelter .happy-shelter-copy small{display:none}.happy-story-copy{height:8.2%}
/* Complete dark theme; real photographs and logos retain their own colors. */
html[data-theme=dark] body[data-happy-endings]{background:#10272e!important;color:#f5e8d2!important}
html[data-theme=dark] body[data-happy-endings] #ya-tienen-hogar{background:#142e35!important;border-color:#385158!important;box-shadow:none!important}
html[data-theme=dark] .exact-wrap,html[data-theme=dark] .happy-story-dialog{background:#142e35;color:#f5e8d2}
html[data-theme=dark] .exact-art:not([data-theme-ready]){visibility:hidden}
html[data-theme=dark] .exact-label-paper,html[data-theme=dark] .happy-story-title{background:#233c43;color:#f5e8d2}
html[data-theme=dark] .exact-label-paper .exact-name{color:#f5e8d2}html[data-theme=dark] .exact-label-paper .exact-caption{color:#e8a66a}
html[data-theme=dark] .happy-story-copy,html[data-theme=dark] .happy-story-review{color:#f5e8d2}
html[data-theme=dark] .happy-shelter-credit,html[data-theme=dark] .happy-shelter-copy strong{color:#f5e8d2}html[data-theme=dark] .happy-shelter-copy small{color:#e8a66a}
html[data-theme=dark] .happy-story-shelter{background:#233c43ee;border-color:#60777970;box-shadow:0 .5cqw 1.7cqw #0003}
html[data-theme=dark] .exact-canvas .exact-surprise{background:#ad481f!important;color:#fff0db!important}
html[data-theme=dark] .happy-story-hit:focus-visible,html[data-theme=dark] .exact-canvas .exact-button:focus-visible{outline-color:#f0b987;background:#ffffff0d}
html[data-theme=dark] body[data-happy-endings] #ya-tienen-hogar>.happy-catalog{background:#142e35!important;color:#f5e8d2}
html[data-theme=dark] .happy-catalog h2{color:#f5e8d2}html[data-theme=dark] .happy-eyebrow{color:#e8a66a}html[data-theme=dark] .happy-catalog-count{color:#b7c8c7}
html[data-theme=dark] .happy-catalog-filters label{color:#dfd8c9}html[data-theme=dark] .happy-catalog-filters input,html[data-theme=dark] .happy-catalog-filters select{background:#233c43;color:#f5e8d2;border-color:#526a70;color-scheme:dark}
html[data-theme=dark] .happy-catalog-filters input::placeholder{color:#b3c1bf}html[data-theme=dark] .happy-catalog-filters button{color:#e8a66a}
html[data-theme=dark] .happy-animal-card{background:#203940;color:#f5e8d2;border-color:#455f65;box-shadow:0 8px 20px #0002}html[data-theme=dark] .happy-animal-name{color:#f5e8d2}html[data-theme=dark] .happy-animal-place{color:#b7c8c7}html[data-theme=dark] .happy-animal-action{color:#e8a66a}
html[data-theme=dark] body[data-happy-endings] #ya-tienen-hogar>.stories{background:radial-gradient(ellipse at top right,#3a514860,transparent 45%),linear-gradient(145deg,#1f393f,#142e35)!important;color:#f5e8d2;border:1px solid #3f595f;box-shadow:0 10px 35px #0002}
html[data-theme=dark] body[data-happy-endings] .stories-top{border-color:#4a6265}html[data-theme=dark] body[data-happy-endings] .stories-kicker{color:#e8a66a}html[data-theme=dark] body[data-happy-endings] #storiesTitle{color:#f5e8d2!important}html[data-theme=dark] body[data-happy-endings] .stories-intro{color:#c4cfca}
html[data-theme=dark] body[data-happy-endings] #storyOpen{background:#ad481f!important;border-color:#d18b62!important;color:#fff0db!important}
html[data-theme=dark] body[data-happy-endings] #storiesRetry{color:#e8a66a}
html[data-theme=dark] body[data-happy-endings] #storiesGrid>.stories-note{background:#203940;border-color:#657975;color:#c4cfca}html[data-theme=dark] .happy-empty-heart{color:#e8a66a}html[data-theme=dark] .stories-note strong{color:#f5e8d2}html[data-theme=dark] .stories-note p{color:#c4cfca}
html[data-theme=dark] body[data-happy-endings] .story-card{background:#203940!important;border-color:#455f65!important;color:#f5e8d2}html[data-theme=dark] body[data-happy-endings] .story-fold-summary{color:#f5e8d2}html[data-theme=dark] .story-experience-title{color:#f5e8d2}html[data-theme=dark] .story-excerpt,html[data-theme=dark] .story-full blockquote{color:#c4cfca}html[data-theme=dark] .story-family,html[data-theme=dark] .story-compact-rating{color:#e8a66a}
html[data-theme=dark] body[data-happy-endings] #storyForm{background:#203940;border-color:#455f65}html[data-theme=dark] body[data-happy-endings] #storyForm h4{color:#f5e8d2}html[data-theme=dark] body[data-happy-endings] #storyForm label{color:#c4cfca}html[data-theme=dark] body[data-happy-endings] #storyForm input,html[data-theme=dark] body[data-happy-endings] #storyForm textarea{background:#142e35;color:#f5e8d2;border-color:#526a70;color-scheme:dark}
html[data-theme=dark] body[data-happy-endings] .story-rating span{background:#142e35;color:#e8a66a;border-color:#526a70}html[data-theme=dark] body[data-happy-endings] .story-rating input:checked+span{background:#6d452b;color:#ffe4b9;border-color:#e8a66a}
html[data-theme=dark] body[data-happy-endings] .story-error{color:#ffb6a4}html[data-theme=dark] body[data-happy-endings] .story-success,html[data-theme=dark] body[data-happy-endings] .stories-private{background:#203940;border-color:#455f65;color:#f5e8d2}

.happy-story-theme{position:absolute;left:33%;top:1.1%;width:4.8cqw;height:4.8cqw;min-width:30px;min-height:30px;display:grid;place-items:center;border:1px solid #d9cbb7;background:#faf5e9dc;color:#59442e;border-radius:50%;font:400 2.8cqw/1 Georgia,serif;cursor:pointer;z-index:6;padding:0}.happy-story-theme:focus-visible{outline:3px solid #e8a66a;outline-offset:3px}html[data-theme=dark] .happy-story-theme{background:#233c43;color:#f5e8d2;border-color:#607779}

/* v413: more prominence for the real logo, less surrounding paper. */
.happy-main-shelter{left:10%;top:68.4%;width:36%;height:13.5%;gap:.8cqw;padding:.7cqw}.happy-main-shelter img{width:15.7cqw;height:15.7cqw}.happy-main-shelter .happy-shelter-copy strong{font-size:3.3cqw}
/* Feather only the paper backing; the logo and lettering remain crisp. */
.happy-story-shelter,html[data-theme=dark] .happy-story-shelter{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;isolation:isolate;overflow:visible}
.happy-story-shelter::before{content:"";position:absolute;inset:-.7cqw -.6cqw;z-index:-1;pointer-events:none;background:linear-gradient(145deg,#fffaf0e8,#f0e6d5da);clip-path:polygon(2% 5%,7% 2%,12% 4%,18% 1%,24% 3%,31% 0,38% 3%,45% 1%,52% 4%,60% 1%,68% 3%,75% 0,83% 3%,90% 1%,97% 5%,99% 13%,97% 22%,100% 32%,98% 42%,100% 53%,97% 63%,100% 74%,97% 85%,98% 94%,90% 98%,82% 95%,74% 99%,65% 96%,56% 100%,48% 97%,39% 99%,30% 96%,22% 99%,14% 96%,6% 98%,1% 92%,3% 82%,0 72%,2% 62%,0 51%,3% 41%,0 31%,3% 22%,1% 12%);-webkit-mask-image:radial-gradient(ellipse 72% 70% at 50% 50%,#000 54%,#000c 76%,transparent 100%);mask-image:radial-gradient(ellipse 72% 70% at 50% 50%,#000 54%,#000c 76%,transparent 100%);filter:drop-shadow(0 .3cqw .6cqw #40280f1a)}
html[data-theme=dark] .happy-story-shelter::before{background:linear-gradient(145deg,#29464ce8,#1b343cd9);filter:drop-shadow(0 .3cqw .6cqw #0003)}
.happy-story-shelter::before{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 10%,#000 90%,transparent 100%),linear-gradient(0deg,transparent 0,#000 8%,#000 92%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 10%,#000 90%,transparent 100%),linear-gradient(0deg,transparent 0,#000 8%,#000 92%,transparent 100%);-webkit-mask-composite:source-in;mask-composite:intersect}

.happy-main-shelter{top:67.8%}

/* A page-level story retains the actual shared header and its account/menu controls. */
.happy-story-dialog{position:relative!important;inset:auto!important;display:block;max-width:1100px;width:100%;height:auto!important;max-height:none!important;overflow:visible!important;margin:0 auto!important;padding:0;border:0}
.happy-story-dialog[hidden]{display:none!important}
body.happy-story-open #ya-tienen-hogar,body.happy-story-open #ay-site-footer,body.happy-story-open .ay-shelter-entry-link{display:none!important}
body.happy-story-open #ay-site-header{visibility:visible!important}
.happy-main-shelter{left:7.8%;width:36%;top:67.35%}
body.happy-story-open #ay-legacy-home{display:none!important}

body[data-happy-endings] .happy-animal-card{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;height:100%;box-sizing:border-box;gap:0;padding:12px 12px 18px}
body[data-happy-endings] .happy-animal-card img{width:100%;height:auto!important;aspect-ratio:1.2;flex:none;object-fit:cover;object-position:center top;margin:0}
body[data-happy-endings] .happy-animal-card .happy-animal-name{min-height:1.2em;line-height:1.2;margin-top:12px}
body[data-happy-endings] .happy-animal-card .happy-animal-place{min-height:3.6em;line-height:1.2}
body[data-happy-endings] .happy-animal-card .happy-animal-action{margin-top:auto;padding-top:12px;min-height:2.5em;line-height:1.25}

.happy-desktop-label { display: none; }

@media (min-width: 701px) {
  body[data-happy-endings] {
    --happy-ink: #34251a;
    --happy-accent: #9e3d16;
    --happy-paper: #fff8ea;
    --happy-border: #d7bfa0;
  }
  html[data-theme=dark] body[data-happy-endings] {
    --happy-ink: #fff0d9;
    --happy-accent: #ffc597;
    --happy-paper: #233b40;
    --happy-border: #71817e;
  }
  body[data-happy-endings] #ya-tienen-hogar,
  body[data-happy-endings] .happy-story-dialog {
    width: min(1180px, calc(100% - 48px));
    max-width: 1180px !important;
    margin-inline: auto;
  }
  .happy-desktop-label { display: inline; }
  body[data-happy-endings] .exact-wrap,
  body[data-happy-endings] .happy-story-dialog {
    overflow: hidden !important;
    border-radius: 22px;
  }
  body[data-happy-endings] .happy-story-dialog { margin-block: 10px 26px !important; }
  .exact-canvas,.happy-story-canvas {
    isolation: isolate;
    aspect-ratio: 3 / 2;
    margin: 0;
    color: var(--happy-ink);
    background: var(--happy-paper);
  }
  .exact-canvas::before,.happy-story-canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--happy-wide-art) center / 100% 100% no-repeat;
    pointer-events: none;
  }
  .exact-canvas {
    --happy-wide-art: url("/assets/ay-happy-cover-wide-v494.webp");
    --cover-photo-left: 62.63%;
    --cover-photo-top: 12.99%;
    --cover-photo-width: 27.74%;
    --cover-photo-height: 40.6%;
  }
  .happy-story-canvas {
    --happy-wide-art: url("/assets/ay-happy-story-wide-v494.webp");
    --story-photo-left: 12.3%;
    --story-photo-top: 14.9%;
    --story-photo-width: 26.6%;
    --story-photo-height: 38%;
    --story-text-left: 48%;
    --story-text-width: 44%;
    --story-title-top: 13.5%;
    --story-copy-top: 26%;
    --story-copy-height: 18%;
    --story-review-top: 52%;
    --story-review-height: 32%;
    --story-gallery-left: 7%;
    --story-gallery-top: 69%;
    --story-gallery-width: 33%;
    --story-gallery-height: 14%;
  }
  html[data-theme=dark] :is(.exact-canvas,.happy-story-canvas)::before {
    filter: brightness(.4) sepia(.12) saturate(.8) hue-rotate(135deg);
  }
  body[data-happy-endings] :is(.exact-art,.exact-envelope-window,.happy-story-art) { display: none; }

  .exact-canvas :is(.happy-cover-heading,.happy-cover-intro) {
    clip-path: none;
    white-space: normal;
    width: 47%;
    height: auto;
    margin: 0;
    left: 6%;
    color: var(--happy-ink);
  }
  .exact-canvas .happy-cover-heading {
    top: 9%;
    font: 400 4.3cqw/1.02 Georgia, serif;
    letter-spacing: -.03em;
  }
  .happy-cover-heading em {
    display: block;
    color: var(--happy-accent);
    font: 600 1.03em/.95 Caveat, Georgia, serif;
  }
  .exact-canvas .happy-cover-intro {
    top: 78%;
    font: 700 clamp(13px, 1.55cqw, 20px)/1.25 Georgia, serif;
  }
  .exact-canvas .exact-real-card {
    left: var(--cover-photo-left) !important;
    top: var(--cover-photo-top) !important;
    width: var(--cover-photo-width) !important;
    height: var(--cover-photo-height) !important;
    clip-path: polygon(0 4%, 98% 0, 100% 97%, 3% 100%);
    border-radius: 3px !important;
    object-position: center 35%;
  }
  .exact-canvas .exact-card-link {
    left: var(--cover-photo-left);
    top: var(--cover-photo-top);
    width: var(--cover-photo-width);
    height: var(--cover-photo-height);
  }
  .exact-canvas .exact-label-paper {
    left: var(--cover-photo-left);
    top: calc(var(--cover-photo-top) + var(--cover-photo-height) + 1%);
    width: var(--cover-photo-width);
    height: auto;
    transform: none;
    background: transparent;
    padding: .45cqw;
  }
  .exact-label-paper .exact-name { font-size: 2.6cqw; color: var(--happy-ink); }
  .exact-label-paper .exact-caption {
    font-size: 1.8cqw;
    margin-top: .2cqw;
    color: var(--happy-accent);
  }
  .exact-canvas .happy-main-shelter {
    inset: auto 7% 7% auto;
    width: 33%;
    height: auto;
    flex-direction: row;
    justify-content: center;
    gap: .7cqw;
    text-align: start;
  }
  .exact-canvas .happy-main-shelter img { width: 3.4cqw; height: 3.4cqw; }
  .exact-canvas .happy-main-shelter strong { font-size: max(13px, 1.45cqw); }

  .exact-canvas .exact-surprise,
  .exact-canvas .exact-cta,
  .happy-story-canvas .happy-story-hit {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 42px;
    padding: .55cqw 1.35cqw;
    border: 1px solid var(--happy-border);
    border-radius: 99px;
    background: var(--happy-paper);
    color: var(--happy-accent);
    text-decoration: none;
    font: 800 clamp(12px, 1.25cqw, 16px)/1.2 Nunito, Arial, sans-serif !important;
  }
  .exact-canvas .exact-surprise { left: 6%; top: 87%; }
  .exact-canvas .exact-cta { left: 28%; top: 87%; }
  .happy-story-canvas .happy-story-another {
    background: #a33f18;
    color: #fff8ea;
    border-color: transparent;
  }
  .happy-story-canvas .happy-story-another:disabled { opacity: .6; }

  body[data-happy-endings] .happy-story-title {
    left: var(--story-text-left);
    top: var(--story-title-top);
    width: var(--story-text-width);
    height: auto;
    display: block;
    font: 400 clamp(22px, 3.15cqw, 40px)/1.05 Georgia, serif !important;
    color: var(--happy-ink);
    background: transparent;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .happy-story-photo-window {
    left: var(--story-photo-left);
    top: var(--story-photo-top);
    width: var(--story-photo-width);
    height: var(--story-photo-height);
    clip-path: polygon(0 8%, 93.5% 0, 100% 88%, 88% 94%, 20% 100%, 7% 92%);
    border-radius: 4px;
  }
  .happy-story-photo-window .happy-story-photo {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-position: center 35%;
  }
  .happy-story-canvas :is(.happy-story-copy,.happy-story-review) {
    left: var(--story-text-left);
    width: var(--story-text-width);
    padding: .3cqw .6cqw .3cqw 0;
    box-sizing: border-box;
    overflow: auto;
    scrollbar-width: thin;
    color: var(--happy-ink);
    font: 400 clamp(14px, 1.38cqw, 18px)/1.5 Georgia, serif;
  }
  .happy-story-copy { top: var(--story-copy-top); height: var(--story-copy-height); }
  .happy-story-review { top: var(--story-review-top); height: var(--story-review-height); }
  .happy-story-review h2 {
    margin: 0 0 .55cqw;
    color: var(--happy-accent);
    font: 700 clamp(15px, 1.55cqw, 20px)/1.2 Georgia, serif;
  }
  .happy-real-album {
    inset: var(--story-gallery-top) auto auto var(--story-gallery-left);
    width: var(--story-gallery-width);
    height: var(--story-gallery-height);
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .75cqw;
  }
  .happy-real-album .happy-album-photo {
    position: static;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: .35cqw solid var(--happy-paper);
    box-sizing: border-box;
    border-radius: 4px;
    clip-path: none;
    box-shadow: 0 .2cqw .5cqw #432b2240;
  }
  .happy-story-canvas .happy-story-shelter {
    inset: auto auto 4% 7%;
    width: 34%;
    height: auto;
    flex-direction: row;
    gap: .7cqw;
    padding: 0;
  }
  .happy-story-shelter::before { display: none; }
  .happy-story-shelter img { width: 3.3cqw; height: 3.3cqw; }
  .happy-story-shelter .happy-shelter-copy strong { font-size: max(13px, 1.4cqw); }
  .happy-story-canvas .happy-story-back { left: 5%; top: 3%; }
  .happy-story-canvas .happy-story-another { left: 51%; top: 90%; }
  .happy-story-canvas .happy-story-adopt { left: 72%; top: 90%; }
  .happy-story-canvas :is(.happy-story-copy,.happy-story-review):focus-visible {
    outline: 2px solid var(--happy-accent);
    outline-offset: 3px;
  }

  body[data-happy-endings] #ya-tienen-hogar > :is(.happy-catalog,.stories) { padding: 28px 24px; }
  .happy-catalog h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 16px; }
  .happy-catalog-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
  body[data-happy-endings] .happy-animal-card img { aspect-ratio: 16 / 10; }
  body[data-happy-endings] .happy-animal-card .happy-animal-name { font-size: 22px; }
  body[data-happy-endings] .happy-animal-card .happy-animal-place,
  body[data-happy-endings] .happy-animal-card .happy-animal-action { min-height: 0; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .happy-catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
