/* Preserve the supplied artwork and manuscript inside the current site frame. */
html:has(body.puppy-page){background:#08090b;color-scheme:dark}
body.puppy-page{--paper:#111216;--ink:#f6f1e9;--muted:#b7b1aa;--line:#353238;--orange:#ff8b46;--soft:#2b211d;--cream:#1c1b20;--green:#ff9e61;width:100%;max-width:402px;margin-inline:auto;min-width:0;background:var(--paper);color:var(--ink);font-family:FateSans,system-ui,sans-serif;box-shadow:none}
.puppy-page #main{min-width:0;max-width:100%;padding-bottom:28px}
.puppy-page .puppy-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px;border-bottom:1px solid var(--line);font-size:13px}
.puppy-page .puppy-toolbar a{color:var(--muted)}
.puppy-page .puppy-toolbar .header-share{flex:0 0 auto;color:var(--orange);font-size:13px}
.puppy-page .skip{background:#f2e8dd;color:#17100c}
.puppy-page .start-kicker,.puppy-page .start-landing h1 span,.puppy-page .eyebrow,.puppy-page .club-kicker{color:var(--orange)}
.puppy-page .start-description,.puppy-page .intro-note,.puppy-page .question-hint,.puppy-page .club-sub,.puppy-page .club-local-note,.puppy-page .breed-note,.puppy-page .club-cookie-note{color:var(--muted)}
.puppy-page .start-stage:before{background:#39291e}
.puppy-page :is(.start-meta,.start-note,.start-stage p,.start-participation,.puppy-retention-note){color:var(--muted)}
.puppy-page .puppy-retention-note{font-size:12px;line-height:1.8;margin-block:18px}
.puppy-page .puppy-retention-note a{color:#ffb480;text-decoration:underline;text-underline-offset:3px}
.puppy-page .result-card h2{color:var(--orange)}
.puppy-page .trait-chips span,.puppy-page .breed-grid figure{background:#292329;color:var(--ink);border-color:var(--line)}
.puppy-page .breed-grid figcaption{color:var(--ink)}
.puppy-page .result-type-first .report-definition,.puppy-page .report-moments article,.puppy-page .puppy-moments li,.puppy-page .report-secret{background:#201d22;border-color:#44333b;color:var(--ink)}
.puppy-page .result-type-first .report-element{background:#1d2521;border-color:#3d4b41;color:var(--ink)}
.puppy-page .result-type-first .report-chapter p{color:var(--muted)}
.puppy-page .result-type-first .report-note{color:#b7b1aa!important}
.puppy-page :is(.chapter-number,.report-moments .moment-index,.report-evidence li>span,.report-dimension .meter-label strong,.report-secret h3){color:#ffad78}
.puppy-page .dimension-poles span,.puppy-page .element-card .element-birth-context{color:#b7bdb3}
.puppy-page .result-type-first .report-element .element-person-name{color:#d4e8cf}
.puppy-page :is(.report-element .element-day-label,.report-element .element-dominant,.element-explainer summary){color:#d4e8cf}
.puppy-page .start-landing{max-width:none}
.puppy-page :is(.club-profile,.club-board,.flow){max-width:100%;min-width:0}
.puppy-page :is(.club-profile,.club-board,.club-result-panel,.club-teaser,.club-account-card,.club-own-card,.club-account-dialog,.puppy-arrivals){--club-accent:var(--orange);--club-ink:var(--ink);--club-muted:var(--muted);--club-paper:var(--cream);--club-line:var(--line);color:var(--ink)}
.puppy-page :is(.club-back,.club-hour-grid em,.club-hour-grid small,.club-owner small,.club-account-card small,.club-account-status,.club-rules,.club-score-note,.club-count,.club-score>span,.club-ranking a,.club-loading,.arrival-sub,.arrival-all,.arrival-person>span,.arrival-score>span,.arrival-next p,.arrival-links .club-home-own,.breed-source,.breeds-note,.start-stage-caption){color:var(--muted)}
.puppy-page :is(.club-hour-grid label>span,.club-join,.arrival-list a){background:#211e24;border-color:#4a4047;color:var(--ink)}
.puppy-page .club-hour-grid input:checked+span{background:#35271f;border-color:var(--orange);box-shadow:0 0 0 1px var(--orange)}
.puppy-page :is(.club-error,.landing-status){color:#ffaaa2}
.puppy-page .arrival-score strong{color:var(--orange)}
.puppy-page .club-account-tabs{background:#272329}
.puppy-page .club-account-tabs button{color:var(--muted)}
.puppy-page .club-account-tabs button[aria-pressed=true]{background:#453124;color:#fff2e3}
.puppy-page :is(.option,.result-card,.report-card,.club-teaser,.club-account-card,.club-empty,.club-owner,.result-next,.element-card,.puppy-arrivals,.recommendation-card,.arrival-list li,.club-ranking li,.breed-card,.club-own-card){background:var(--cream);color:var(--ink);border-color:var(--line)}
.puppy-page :is(.option,.club-button,.primary,.secondary,.text-button){max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:keep-all}
.puppy-page .option[aria-pressed=true]{background:#35271f;border-color:var(--orange)}
.puppy-page .option[aria-pressed=true] .option-letter,.puppy-page .start-percent{color:#17100c}
.puppy-page .primary,.puppy-page .club-button.primary{background:var(--orange);color:#17100c}
.puppy-page .secondary,.puppy-page .club-button:not(.primary){background:#27252a;color:var(--ink);border-color:var(--line)}
.puppy-page :is(input,select,textarea){max-width:100%;min-width:0;color:var(--ink);background:#17171c;border-color:#494149}
.puppy-page :is(.club-field,.club-birth,.club-date,.club-hour-grid){min-width:0}
.puppy-page .club-date{grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(0,1fr))}
.puppy-page .club-date>label,.puppy-page .club-date select{width:100%;min-width:0}
.puppy-page .club-hour-grid label,.puppy-page .club-hour-unknown{background:#1a191e;color:var(--ink);border-color:var(--line)}
.puppy-page dialog{color:var(--ink);background:#19191e;border:1px solid var(--line);z-index:1000;max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}
.puppy-page dialog::backdrop{background:#000b}
.puppy-page :is(.social-preview,.social-preview-media,.social-preview-copy){background:#242127;color:var(--ink)}
.puppy-page dialog :is(p,small,.send-message){color:var(--muted)}
.puppy-page dialog :is(.send-kicker,.social-preview-copy small){color:#ffad78}
.puppy-page .invite-kinds{background:#292329;border-color:var(--line)}
.puppy-page .invite-kinds button{color:var(--muted)}
.puppy-page .invite-kinds button[aria-pressed=true]{background:#453124;color:#fff2e3}
.puppy-page .social-preview-placeholder{color:var(--ink)}
.puppy-page #send-dialog .primary{background:var(--orange);color:#17100c;border-color:var(--orange);box-shadow:none}
.puppy-page #image-dialog .story-share-link p,.puppy-page .club-account-dialog .club-account-private{color:var(--muted)}
.puppy-page :is(.element-dominant>strong,.element-dominant>span,.element-kicker){color:#d4e8cf}
.puppy-page .element-card blockquote{background:#28342c;color:var(--ink)}
.puppy-page .result-type-first .type-headline{color:var(--orange)}
.puppy-page .dialog-close{position:sticky;top:0;z-index:2;background:#19191e;color:var(--ink)}
.puppy-page .question-next{position:relative;bottom:auto;background:transparent;padding-bottom:20px}
.puppy-page :is(.result-actions,.result-bottom,.result-next){position:relative;bottom:auto}
.puppy-page :is(.result-fact,.result-facts,.report-block,.result-detail,.report-element,.result-recommendations){color:var(--ink);border-color:var(--line)}
.puppy-page :is(.result p,.result small,.result li,.club-board p,.club-person span,.recommendation-card p){color:var(--muted)}
.puppy-page #toast{z-index:1500;bottom:calc(112px + env(safe-area-inset-bottom));background:#eee6dd;color:#181218}
/* Legacy .site-header/.brand rules cannot move the service logo. */
body.puppy-page>.fate-site-shell.cinema-header{position:relative;top:auto;display:flex;align-items:center;justify-content:space-between;width:100%;max-width:none;height:68px;margin:0;padding:14px 22px;background:#0d0e10;border-bottom:1px solid #2d2a30;color:#f8f1e8}
body.puppy-page>.fate-site-shell.cinema-header>.brand{display:flex;align-items:center;line-height:1;margin:0;padding:0;width:auto;transform:none}
body.puppy-page>.fate-site-shell.cinema-header>.brand>.cinema-brand-logo{display:block;width:96px;height:28px;max-width:none;margin:0;object-fit:contain}
body.puppy-page>.fate-site-shell.cinema-footer{width:100%;max-width:none;margin:0;background:#0d0e10;color:#aaa5a0;border-top:1px solid #2d2a30}
body.puppy-page>.fate-site-shell.cinema-dock{color:#f8f1e8;background:#17161ffc}
@media(max-width:350px){.puppy-page .puppy-toolbar{padding-inline:14px}.puppy-page .club-hour-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.puppy-page :is(.club-profile,.club-board){width:calc(100% - 28px)}.puppy-page .club-ranking li{gap:7px}.puppy-page .club-ranking li>a{max-width:68px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.puppy-page *,.puppy-page *::before,.puppy-page *::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

/* All content and native sharing dialogs fit the 402px platform canvas. */
body.fate-platform-work.puppy-page > .skip{left:max(12px,calc(50vw - 189px));opacity:0;pointer-events:none}
body.fate-platform-work.puppy-page > .skip:focus{opacity:1;pointer-events:auto}
body.fate-platform-work.puppy-page :is(.flow,.result,.result-layout,.result-summary,.result-content,.club-result-account){min-width:0;max-width:100%}
body.fate-platform-work.puppy-page .result-layout{display:flex;flex-direction:column}
body.fate-platform-work.puppy-page .result-card{position:relative;top:auto}
body.fate-platform-work.puppy-page :is(dialog,#send-dialog,#image-dialog,.club-account-dialog){width:min(370px,calc(100vw - 32px));max-width:370px;box-sizing:border-box;margin-inline:auto}
body.fate-platform-work.puppy-page :is(.social-preview,.social-preview-copy,.invite-kinds,.share-actions,.club-account-tabs){min-width:0;max-width:100%}
body.fate-platform-work.puppy-page :is(.club-account-tabs button,.invite-kinds button){min-width:0;white-space:normal;overflow-wrap:anywhere}
body.fate-platform-work.puppy-page #toast{max-width:min(366px,calc(100vw - 32px));white-space:normal;overflow-wrap:anywhere;text-align:center}
