.pet-birthday-app{min-height:100vh;background:#f5f0e8}.pet-nav{max-width:1180px;margin:auto;padding:24px 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4d8c9}.pet-nav .wordmark{text-decoration:none}.pet-product-tag{font-size:12px;color:var(--muted)}.pet-layout{max-width:1120px;margin:40px auto 70px;display:grid;grid-template-columns:1fr 1.12fr;gap:80px;padding:0 36px;align-items:start}.pet-intro{padding-top:28px}.pet-intro h1{font:400 clamp(42px,5vw,64px)/1.06 var(--serif);letter-spacing:-.02em;margin:18px 0}.pet-intro h1 em{color:var(--accent)}.pet-intro>p:not(.eyebrow){font-size:15px;line-height:1.8;max-width:340px;color:var(--muted)}.pet-demo-card{position:relative;max-width:300px;margin-top:24px;aspect-ratio:1;overflow:hidden;border-radius:24px;background:#fff}.pet-demo-card img{height:100%;width:100%;object-fit:cover;object-position:center 62%}.pet-demo-card>span{position:absolute;bottom:15px;left:14px;right:14px;font-size:8px;letter-spacing:.12em;text-align:center;color:#725f48}.pet-intro .pet-demo-caption{font-size:11px}.pet-form-shell{background:#fffaf3;border:1px solid #e8dccd;border-radius:28px;padding:26px;box-shadow:0 22px 60px #59412a0c;min-width:0}.pet-form-top{display:flex;align-items:center;justify-content:space-between}.pet-form-top .round-button{text-decoration:none}.pet-form-top span{font-size:10px;letter-spacing:.17em}.pet-form-top button:disabled{opacity:.3;cursor:default}.pet-progress{display:flex;gap:6px;margin:18px 0 30px}.pet-progress span{height:3px;flex:1;background:#e7dbce;border-radius:5px}.pet-progress span.done{background:var(--accent)}#pet-question-title{font:400 34px/1.13 var(--serif);letter-spacing:-.01em;margin:0;outline:none;scroll-margin-top:22px}.pet-step-description{font-size:13px;line-height:1.7;color:var(--muted);margin:12px 0 24px}.pet-upload{border:1px dashed #bfaa94;border-radius:18px;overflow:hidden;background:#f6eee2}.pet-upload.dragover{outline:3px solid var(--accent);background:#f0e1d5}.pet-upload-label{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;min-height:175px;text-align:center;cursor:pointer;padding:20px;gap:9px}.pet-upload-label input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.pet-upload-label:focus-within{outline:3px solid var(--accent);outline-offset:-4px}.pet-upload-plus{font-size:34px;color:var(--accent)}.pet-upload-label strong{font-size:14px}.pet-upload-label>span:last-child{font-size:11px;color:var(--muted);line-height:1.6}.pet-upload.has-photo .pet-upload-label{padding:0;height:215px}.pet-upload-label img{width:100%;height:100%;object-fit:contain}.pet-upload .pet-remove{display:block;margin:8px auto}.pet-upload .field-help{text-align:center;font-size:11px;margin:0 0 12px}.pet-species{padding:0;border:0;margin:24px 0}.pet-species legend{font-size:12px;margin-bottom:10px;font-weight:600}.pet-form-shell .field{margin:20px 0 0;font-size:12px}.pet-form-shell input[type=text],.pet-form-shell textarea{width:100%;border:1px solid #d8cabb;background:white;border-radius:12px;padding:13px 14px;font:14px/1.6 var(--sans);margin-top:9px;color:var(--ink)}.pet-form-shell textarea{min-height:120px;resize:vertical}.pet-character-count{display:block;text-align:right;font-size:10px;color:var(--muted);margin-top:4px}.pet-form-actions{margin-top:24px;border-top:1px solid #e9ddcf;padding-top:20px}.pet-form-actions .primary{width:100%;font-size:14px}.pet-form-actions .primary:disabled{opacity:.55;cursor:default}.pet-form-actions p{font-size:10px;line-height:1.6;text-align:center;color:var(--muted);margin:12px 0 0}.pet-review-card{border-radius:20px;overflow:hidden;background:#f0e4d2;text-align:center;padding:0 20px 24px}.pet-review-card>img{display:block;width:calc(100% + 40px);max-width:none;margin:0 -20px 22px;height:210px;object-fit:contain;background:#fff}.pet-review-card .eyebrow{font-size:9px;letter-spacing:.12em}.pet-review-card h3{font:400 31px/1.15 var(--serif);letter-spacing:0;margin:12px 0}.pet-review-specs{font-size:11px;line-height:1.7;color:var(--muted)}.pet-review-message{font:22px/1.5 var(--serif);white-space:pre-wrap;overflow-wrap:anywhere}.pet-review-signature{font:26px/1.3 var(--hand);white-space:pre-line;overflow-wrap:anywhere;margin:20px 0 0}.pet-review-edit{display:flex;justify-content:space-between;gap:12px;margin:20px 0;font-size:11px}.pet-concept-note{padding:14px;border-radius:12px;background:#eee3d6;color:#6b5845;font-size:11px;line-height:1.7}.pet-review-card h3{overflow-wrap:anywhere}@media(max-width:760px){.pet-nav{padding:18px 22px}.pet-nav .wordmark{font-size:25px}.pet-product-tag{display:none}.pet-layout{display:block;padding:0 14px;margin:12px auto 36px;max-width:520px}.pet-intro{display:none}.pet-form-shell{border-radius:22px;padding:22px 18px;box-shadow:none}.pet-progress{margin-bottom:25px}#pet-question-title{font-size:32px}.pet-form-actions{position:sticky;bottom:0;background:#fffaf3;padding-bottom:10px;z-index:2}.pet-form-shell .error{font-size:12px}.pet-form-shell .field-help{font-size:11px;line-height:1.7}}
@media(max-width:760px){.pet-form-actions{position:static}.pet-upload.has-photo .pet-upload-label{height:180px}.pet-form-shell input[type=text],.pet-form-shell textarea{scroll-margin-bottom:24px}}
.pet-generation{margin-top:24px;padding-top:22px;border-top:1px solid #e8dccd;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.pet-generation h3{font:36px/1.15 var(--serif);text-align:center}.pet-generation video{display:block;width:100%;max-height:620px;aspect-ratio:9/16;background:#28180f;object-fit:contain;border-radius:18px;margin:20px 0}.pet-generation .primary{width:100%;margin:14px 0}.pet-generation .text-button{display:block;margin:14px auto;text-align:center}.pet-consent{display:flex;align-items:flex-start;gap:10px;margin-top:20px;font-size:12px}.pet-consent input{flex:0 0 18px;margin-top:5px;accent-color:var(--accent)}.pet-request-reference{font-size:10px;color:var(--muted)}.pet-generation>.pet-review-message,.pet-generation>.pet-review-signature{text-align:center}.pet-review-edit button:disabled{opacity:.5;cursor:default}
.pet-generation.has-result{margin:0;padding:0;border:0}
.pet-portrait-preview{display:block;width:100%;max-height:520px;object-fit:contain;border-radius:18px;background:white;margin:20px auto}.pet-share{margin:24px 0;padding:20px;border-radius:18px;background:#f0e4d2}.pet-share .primary{display:block;text-align:center;text-decoration:none}.pet-share input{font-size:12px!important}.pet-gift{--gift-accent:#831a2d;background:#fffaf3;color:#2c1a13;overflow:hidden}.pet-gift-hero{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:560px;height:100svh;max-height:1200px;background:white;padding:24px 12px 16px;box-sizing:border-box}.pet-gift-heading{text-align:center;position:relative;z-index:1;max-width:900px;justify-self:center;overflow-wrap:anywhere}.pet-gift-heading .eyebrow{font-size:9px;letter-spacing:.16em;color:var(--gift-accent);margin:0 0 8px}.pet-gift-happy{font:400 24px/1.1 var(--serif);margin:4px 0}.pet-gift-name{font:400 clamp(38px,8vw,70px)/1.15 var(--hand);margin:2px auto 0;overflow-wrap:anywhere}.pet-gift video,.pet-generation .pet-gift video{grid-row:2;display:block;width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;object-fit:contain;background:white;border:0;border-radius:0;margin:0}.pet-gift-play{position:absolute;bottom:110px;left:50%;transform:translateX(-50%);width:max-content;max-width:90%;padding:16px 24px;border:1px solid #ffffffa0;border-radius:40px;background:#2c1a13e8;color:#fffaf3;box-shadow:0 6px 30px #2c1a1325;font:600 13px/1.5 var(--sans);cursor:pointer}.pet-gift-playback{position:absolute;bottom:90px;right:18px;border:1px solid #ddd3c7;border-radius:24px;padding:10px 16px;background:#fffaf3e8;color:#2c1a13;font:12px var(--sans);cursor:pointer}.pet-gift-status{position:absolute;bottom:145px;left:5%;right:5%;text-align:center;background:#fffaf3e8;font-size:12px;line-height:1.5}.pet-gift-status:empty{display:none}.pet-gift-scroll{grid-row:3;justify-self:center;border:0;background:none;white-space:pre-line;font:12px/1.4 var(--sans);padding:10px 18px;color:#831a2d;cursor:pointer}.pet-gift-scroll.is-ready{animation:pet-gift-bob 1.8s ease-in-out infinite}.pet-gift-letter{text-align:center;padding:70px 24px 90px;max-width:760px;margin:auto;overflow-wrap:anywhere}.pet-gift-letter .eyebrow{color:#831a2d;font-size:9px;letter-spacing:.15em}.pet-gift-letter h2{font:400 40px/1.15 var(--serif);margin:26px 0}.pet-gift-heart{font:38px var(--serif)}.pet-gift-message{font:400 clamp(24px,4vw,34px)/1.6 var(--serif);white-space:pre-wrap;margin:32px 0}.pet-gift-signature{font:400 32px/1.4 var(--hand);white-space:pre-line;margin:28px 0}.pet-gift.is-open .pet-gift-name{animation:pet-gift-name 1.5s ease both}.pet-generation .pet-gift{border:1px solid #e8dccd;border-radius:20px}.pet-generation .pet-gift-hero{height:75svh;min-height:520px;max-height:740px}.pet-generation .pet-gift-name{font-size:44px}.pet-recipient-view{min-height:100svh;background:#fffaf3}.pet-gift-download{display:block;text-align:center;padding:24px;color:#831a2d;font-size:13px}.pet-gift-expiry{text-align:center;font-size:11px;color:#7b6856;padding:0 20px 30px}.pet-gift-loading{text-align:center;max-width:600px;margin:60px auto;padding:24px;overflow-wrap:anywhere}.pet-gift button:focus-visible,.pet-share a:focus-visible{outline:3px solid #b17047;outline-offset:4px}@keyframes pet-gift-name{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes pet-gift-bob{50%{transform:translateY(5px)}}@media(prefers-reduced-motion:reduce){.pet-gift.is-open .pet-gift-name,.pet-gift-scroll.is-ready{animation:none}}@media(max-width:760px){.pet-gift-hero{padding-top:22px;min-height:520px}.pet-gift-heading .eyebrow{font-size:8px}.pet-gift-name{font-size:48px}.pet-gift-letter{padding:56px 24px 70px}.pet-gift-play{font-size:12px;padding:14px 20px}.pet-gift-heading{max-width:100%}}

.pet-gift-name svg{display:block;width:100%;height:80px;max-width:700px;overflow:visible}.pet-gift-name[data-handwriting]{min-width:min(70vw,420px)}
.pet-gift.has-paw-opening{position:relative}
.pet-gift.has-paw-opening.is-sealed{height:100svh;min-height:0}
.pet-gift.is-sealed>.pet-gift-content{position:absolute;inset:0;overflow:hidden;opacity:0;pointer-events:none}
.pet-generation .pet-gift.has-paw-opening.is-sealed{height:75svh;min-height:520px;max-height:740px}
.pet-envelope{position:absolute;inset:0 0 auto;height:100%;overflow:hidden;isolation:isolate;background-color:#fff;background-size:cover;background-position:center;--seal-size:130px}
.pet-envelope-seal{position:absolute;z-index:6;top:50%;left:50%;width:var(--seal-size);aspect-ratio:1312/1199;transform:translate(-50%,-50%);background:none;border:0;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.pet-envelope-seal:focus-visible{outline:3px solid #775126;outline-offset:6px;border-radius:50%}
.pet-envelope-instruction{position:absolute;z-index:7;left:12px;right:12px;top:min(calc(50% + var(--seal-size)*.55 + 18px),calc(100% - 70px));text-align:center;color:#715433;font:500 12px/1.7 var(--sans);letter-spacing:.09em;text-shadow:0 1px 6px #fff,0 1px 3px #fff;margin:0;pointer-events:none}
.pet-envelope-light{position:absolute;z-index:10;inset:0;background:white;opacity:0;pointer-events:none}
.pet-envelope-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pet-opening-choices{margin:24px 0 8px;border:0;padding:0}.pet-opening-choices legend{font-size:12px;font-weight:600;margin-bottom:12px}.pet-opening-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pet-opening-card{position:relative;border:1px solid #dfd1c0;background:#fff;border-radius:15px;overflow:hidden;cursor:pointer;padding-bottom:12px;font-size:12px;text-align:center}.pet-opening-card:has(input:checked){outline:2px solid #831a2d;outline-offset:1px}.pet-opening-card input{position:absolute;left:10px;top:10px;z-index:2;accent-color:#831a2d}.pet-opening-art{position:relative;display:block;aspect-ratio:1.3;margin-bottom:10px;background:#f5f0e8;overflow:hidden}.pet-opening-art>img{width:100%;height:100%;object-fit:cover}.pet-opening-direct{display:grid;place-items:center;background:#fffaf3;font:36px var(--hand);color:#831a2d}.pet-opening-card>small{display:block;color:#7b6856;padding:5px 8px 0;font-size:10px;line-height:1.5}

.pet-gift .pet-envelope .pet-envelope-video{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:cover;aspect-ratio:auto;background:transparent;border:0;border-radius:0;margin:0;pointer-events:none}

/* Mobile openings cover the current visual viewport, including bounded creator previews. */
@media (max-width:760px), (max-height:500px) and (pointer:coarse){
  .pet-gift .pet-envelope{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;z-index:100}
  .pet-gift.has-paw-opening.is-sealed{height:100vh;height:100dvh}
  html:has(#pet-birthday-app .pet-envelope),body:has(#pet-birthday-app .pet-envelope){overflow:hidden;overscroll-behavior:none}
  .pet-envelope-instruction{padding-bottom:env(safe-area-inset-bottom,0px)}
}
.pet-photo-tips{margin:14px 0 22px;font-size:12px;line-height:1.7;color:var(--muted)}.pet-photo-tips summary{cursor:pointer;color:var(--ink)}.pet-photo-tips ul{padding-left:20px}.pet-opening-preview-button{display:block;margin:18px auto}.pet-order-summary{padding:18px;border:1px solid #e4d7c6;border-radius:15px;margin-top:24px;background:#f6eee2;font-size:13px;line-height:1.7}.pet-order-summary p{margin:8px 0}.pet-review-edit{flex-wrap:wrap;gap:12px}
.pet-opening-dialog{position:fixed;inset:0;border:0;padding:0;margin:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;overflow:hidden;background:#fffaf3;color:#2c1a13}.pet-opening-dialog::backdrop{background:#2c1a1380}.pet-opening-preview-stage{position:relative;width:100%;height:100%;min-height:0}.pet-opening-close{position:absolute;top:max(16px,env(safe-area-inset-top,0px));right:max(16px,env(safe-area-inset-right,0px));z-index:200;width:44px;height:44px;display:grid;place-items:center;border:1px solid #d4c4af;border-radius:50%;background:#fffaf3ef;color:#2c1a13;font-size:28px;cursor:pointer}.pet-opening-close:focus-visible{outline:3px solid #831a2d;outline-offset:3px}.pet-opening-preview-end{min-height:100%;padding:70px 24px 30px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;box-sizing:border-box;overflow:auto}.pet-opening-preview-end img{width:170px;height:170px;object-fit:contain;border-radius:24px;background:#fff}.pet-opening-preview-end h2{font:400 36px/1.2 var(--serif);margin:24px 0 12px;outline:none}.pet-opening-preview-end p{font:14px/1.8 var(--sans);max-width:380px;margin:0 0 24px}.pet-opening-preview-end .primary{max-width:320px;width:100%}
.pet-handoff-note{padding:14px 16px;border:1px solid #e4d4bd;border-radius:12px;background:#f4eadc;font-size:12px;line-height:1.7;margin:18px 0}
