@font-face{font-family:Nunito;src:url('/fonts/nunito.ttf') format('truetype');font-weight:200 900;font-display:swap}
@font-face{font-family:Caveat;src:url('/fonts/caveat.ttf') format('truetype');font-weight:400 700;font-display:swap}
:root{--ink:#593443;--muted:#846775;--pink:#b65072;--pink-dark:#963e5d;--paper:#fffaf7;--rose:#f8dce4;--line:#e6bdc9;--hand:Caveat,'Segoe Print',cursive;--serif:Georgia,'Times New Roman',serif;--sans:Nunito,'Segoe UI',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.65;background:var(--paper)}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}a{color:inherit}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,dialog:focus-visible{outline:3px solid var(--pink);outline-offset:5px}button,input,a{touch-action:manipulation}img{display:block;max-width:100%}svg{flex-shrink:0}button svg,a svg{width:20px;height:20px}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-weight:400}em{color:var(--pink);font-weight:400}h1{font-family:var(--serif);line-height:1.12;letter-spacing:-.045em;font-size:clamp(40px,5.1vw,70px)}h2{font-family:var(--serif);font-size:clamp(32px,3.8vw,46px);line-height:1.2;letter-spacing:-.035em}h3{font-family:var(--serif);font-size:30px;line-height:1.3;letter-spacing:-.02em}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.2em;color:var(--pink);margin-bottom:23px}.handwritten{font-family:var(--hand);font-size:28px;line-height:1.15;color:#a65873}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;text-decoration:none;border-radius:9px;min-height:52px;padding:13px 24px;font-weight:700;font-size:16px;line-height:1.4;border:1px solid transparent;transition:background .2s,transform .2s}.primary{color:#fff9fb;background:var(--pink);box-shadow:0 4px 0 #91435d24}.primary:hover{background:var(--pink-dark);transform:translateY(-1px)}.primary span{font-size:26px;font-weight:400;line-height:20px}.secondary{background:transparent;border-color:var(--line);color:var(--ink)}.secondary:hover{background:#f9e9ee}.text-button{background:none;border:0;padding:6px 0;color:var(--muted);font-size:14px}.text-button:hover{text-decoration:underline}.pet{width:150px;height:150px;overflow:visible}.skip{position:fixed;z-index:1000;left:12px;top:-100px;background:white;padding:12px}.skip:focus{top:10px}[hidden]{display:none!important}
/* A folded letter, before the album is opened. */
.gate{min-height:100svh;background:repeating-linear-gradient(90deg,#fae3e9 0,#fae3e9 66px,#f7dbe4 66px,#f7dbe4 132px);display:flex;flex-direction:column;position:relative;overflow:hidden}.gate:before{content:'';position:absolute;inset:17px;border:1px solid #c97b9345;border-radius:12px;pointer-events:none}.gate-top{text-align:center;font-size:14px;color:#87556a;padding:28px 20px;letter-spacing:.07em}.tiny-heart{font-size:25px;vertical-align:middle;margin-right:9px}.gate-main{margin:auto;text-align:center;max-width:800px;padding:15px 26px 0;position:relative;z-index:1}.gate-main h1{font-size:clamp(39px,4.6vw,61px);margin-bottom:24px}.gate-main .eyebrow{margin:20px 0 19px}.gate-copy{color:#805568;line-height:1.75;margin-bottom:28px}.envelope{width:154px;height:99px;background:#f4bfce;box-shadow:0 9px 15px #8c4b6720;position:relative;margin:8px auto 0;border:1px solid #d99cb0;transform:rotate(-7deg);border-radius:4px}.envelope:before,.envelope:after{content:'';position:absolute;inset:0;clip-path:polygon(0 0,50% 60%,0 100%);background:#eeb0c2}.envelope:after{transform:scaleX(-1)}.envelope-flap{position:absolute;inset:0;clip-path:polygon(0 0,100% 0,50% 67%);background:#f9d1de;filter:drop-shadow(0 2px 1px #bc758f)}.seal{position:absolute;z-index:2;left:58px;top:41px;border-radius:50%;background:var(--pink);color:#fff4f7;width:35px;height:35px;font-size:27px;line-height:32px}.envelope-note{position:absolute;z-index:3;left:115px;top:47px;white-space:nowrap;color:#a95e79;font:25px var(--hand);transform:rotate(6deg);padding-left:20px}.login-form{width:min(100%,360px);margin:0 auto;text-align:left}.login-form label{display:block;font-size:14px;margin-bottom:8px;font-weight:700}.password-wrap{position:relative}.password-wrap input{height:54px;width:100%;padding:12px 94px 12px 15px;background:#fffbf9;border:1px solid #d39cb0;border-radius:8px;color:var(--ink);min-width:0}.password-wrap input::placeholder{color:#9c7d89}.show-password{position:absolute;right:10px;top:10px;border:0;background:none;font-size:13px;padding:7px;color:#8d4965}.login-form .primary{width:100%}.error{font-size:14px;color:#923b53;line-height:1.4;min-height:0;margin:8px 0}.error:not(:empty){margin:9px 0 13px}.gate-pets{display:flex;align-items:center;justify-content:center;margin:23px 0 -8px;gap:10px}.gate-pets .pet{width:106px;height:106px}.gate-pets .handwritten{font-size:22px;max-width:140px;transform:rotate(-5deg)}.gate-footer{font-size:12px;text-align:center;letter-spacing:.08em;padding:24px 24px 28px;color:#8c5b6c}
/* The album cover: warm paper, taped photographs and a quiet pink margin. */
.topbar{height:81px;display:flex;justify-content:space-between;align-items:center;max-width:1330px;padding:0 6%;margin:0 auto;border-bottom:1px solid #ead4d9}.brand{font-weight:800;text-decoration:none;font-size:18px;letter-spacing:-.025em;white-space:nowrap}.brand span{color:var(--pink);font-size:29px;vertical-align:middle;margin-right:9px}.topbar nav{display:flex;gap:28px;align-items:center}.topbar nav a{font-size:14px;text-decoration:none}.topbar nav a:hover{color:var(--pink)}.hero{max-width:1330px;margin:auto;min-height:680px;padding:78px 6% 83px;display:grid;grid-template-columns:1.04fr 1fr;align-items:center;position:relative;gap:10px}.hero-text{z-index:1}.hero h1{margin-bottom:27px;font-size:clamp(42px,4.7vw,66px)}.hero-copy{color:var(--muted);margin-bottom:29px;font-size:17px}.album-stats{color:var(--muted);font-size:13px;margin:19px 0 0}.hero-collage{position:relative;height:430px;margin-left:20px}.hero-polaroid{position:absolute;background:#fff;padding:10px 10px 33px;box-shadow:0 10px 30px #643d5222;border:1px solid #eee2e5;width:222px;cursor:pointer;transition:transform .3s}.hero-polaroid:before{content:'';position:absolute;width:78px;height:23px;background:#e8b9c6a8;top:-11px;left:35%;transform:rotate(-4deg)}.hero-polaroid img{height:254px;width:100%;object-fit:cover}.hero-polaroid:nth-of-type(1){left:5px;top:8px;transform:rotate(-9deg)}.hero-polaroid:nth-of-type(2){right:-6px;top:103px;transform:rotate(8deg)}.hero-polaroid:nth-of-type(3){left:27px;top:251px;width:140px;padding:8px 8px 24px;transform:rotate(-3deg)}.hero-polaroid:nth-of-type(3) img{height:135px}.hero-polaroid:hover{z-index:5;transform:rotate(0deg) translateY(-5px)}.hero-polaroid .mini-note{font-family:var(--hand);font-size:21px;position:absolute;bottom:1px;left:0;right:0;text-align:center}.hero-cat{position:absolute;width:108px;height:108px;bottom:-20px;right:1px;transform:rotate(8deg)}.scribble{position:absolute;right:-13px;top:17px;font:25px/1 var(--hand);color:#b05e79;transform:rotate(8deg);width:150px;text-align:center}.hero-bottom{position:absolute;bottom:26px;left:6%;font-size:23px}.hero:after{content:'♡';position:absolute;bottom:20px;right:21%;font:45px var(--hand);color:#d893a9;transform:rotate(-17deg)}
.chapter-nav{background:#f6dfe6eF;position:sticky;top:0;z-index:20;backdrop-filter:blur(8px);border-top:1px solid #e9c7d2;border-bottom:1px solid #e9c7d2}.chapter-nav-inner{max-width:1200px;margin:auto;padding:12px 28px;display:flex;align-items:center;gap:26px}.nav-label{font-family:var(--hand);font-size:25px;margin-right:auto}.chapter-nav nav{display:flex;gap:6px}.chapter-nav nav a{padding:7px 13px;text-decoration:none;border-radius:7px;font-size:14px;white-space:nowrap}.chapter-nav nav a.active{background:#fff9f8;color:var(--pink);box-shadow:0 1px 5px #a8577220}.filter-button{font-size:14px;border:0;background:transparent;border-left:1px solid #d7a8b9;padding:5px 0 5px 25px;white-space:nowrap}.filter-button span{display:inline-block;background:#fff9f8;border-radius:50%;font-size:12px;min-width:23px;margin-left:3px}.filter-button[aria-pressed=true]{color:var(--pink-dark);font-weight:800}.reading-progress{position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#e9c7d2}.reading-progress span{display:block;height:100%;width:0;background:var(--pink)}.timeline-section{padding:72px 28px 45px;max-width:1140px;margin:0 auto;min-height:400px}.section-intro{text-align:center;margin-bottom:70px}.section-intro .eyebrow{margin-bottom:15px}.section-intro h2{margin-bottom:17px}.section-intro>p:not(.eyebrow){color:var(--muted);margin-bottom:15px}.resume{background:none;border:0;border-bottom:1px dashed var(--pink);color:var(--pink-dark);font-size:14px;padding:3px 0}.year-divider{display:flex;align-items:center;gap:23px;margin:65px 0 50px;scroll-margin-top:100px}.year-divider:before,.year-divider:after{content:'';height:1px;background:var(--line);flex:1}.year-divider span{font:italic 39px var(--serif);color:var(--pink)}.year-divider small{font:20px var(--hand);color:var(--muted);display:block;text-align:center;margin-top:5px}.day{position:relative;display:grid;grid-template-columns:220px minmax(0,1fr);gap:46px;padding:0 0 75px;margin-bottom:5px;scroll-margin-top:100px}.day-head{border-top:1px solid var(--line);padding-top:15px;position:relative}.day-date{font-size:13px;color:var(--pink-dark);font-weight:800;letter-spacing:.035em;margin-bottom:15px}.day-head h3{margin-bottom:16px;font-size:27px}.day-note{font-size:14px;line-height:1.75;color:var(--muted)}.day-count{font-size:12px;letter-spacing:.03em;color:#8e6a7b;margin:17px 0}.day-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px;align-items:start}.day:nth-child(even) .memory:nth-child(3n+1){transform:rotate(-1.5deg)}.day:nth-child(odd) .memory:nth-child(3n+2){transform:rotate(1.6deg)}.memory{background:#fff;border:1px solid #eee2e5;box-shadow:0 5px 16px #5b2b4310;padding:9px 9px 0;position:relative;transition:transform .22s,box-shadow .22s;min-width:0}.memory:hover{transform:translateY(-3px)!important;box-shadow:0 9px 24px #5b2b431b}.memory-open{border:0;background:#f6e8ec;padding:0;display:block;width:100%;position:relative;overflow:hidden}.memory-open img{width:100%;height:310px;object-fit:contain;transition:transform .5s}.memory.video-card .memory-open img{height:275px}.memory.circle-card{background:#fff8fa;box-shadow:none;border:1px dashed #dfb0bf;border-radius:18px;padding:15px 15px 0;transform:none!important}.circle-card .memory-open{background:transparent;max-width:205px;margin:0 auto;border-radius:50%;overflow:hidden}.circle-card .memory-open img{height:auto;aspect-ratio:1;object-fit:cover}.play-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;pointer-events:none}.play-label svg{background:#633c4bd1;width:48px;height:48px;padding:13px;border:1px solid #ffffff90;border-radius:50%;box-shadow:0 3px 12px #0002}.duration{position:absolute;right:8px;bottom:8px;color:white;background:#472c3de6;border-radius:4px;padding:1px 7px;font-size:12px}.circle-card .duration{right:21px;bottom:20px}.memory-meta{min-height:58px;display:flex;align-items:center;gap:6px;padding:9px 1px}.memory-caption{font-family:var(--hand);font-size:22px;line-height:1.2;flex:1;padding-left:5px}.circle-card .memory-caption{font-family:var(--sans);font-size:13px;color:var(--muted)}.memory-tools{display:flex;gap:0}.like,.download-small{background:transparent;border:0;text-decoration:none;font-size:25px;min-width:36px;height:39px;display:inline-flex;align-items:center;justify-content:center;color:#a75a76;padding:5px}.like[aria-pressed=true]{color:#b3355f}.download-small svg{width:18px;height:18px}.year-decoration{display:flex;align-items:center;justify-content:center;gap:18px;margin:20px 0 65px;color:var(--pink)}.year-decoration .pet{width:95px;height:95px}.year-decoration span{font:25px var(--hand);max-width:220px;text-align:center}.empty-favorites{text-align:center;padding:40px 0;color:var(--muted)}#show-all{display:flex;margin:25px auto}.letter-section{background:#f8e0e7;padding:5px 25px 85px;border-top:1px solid #eccccf;border-bottom:1px solid #eccccf;position:relative}.letter-pets{display:flex;align-items:center;justify-content:center;gap:10px;transform:translateY(17px);position:relative;z-index:1}.letter-pets .pet{width:110px;height:110px}.letter-pets span{font:42px var(--hand);color:var(--pink);transform:translateY(-10px)}.letter{max-width:730px;margin:auto;background:#fffcf7;padding:67px 72px 52px;text-align:center;position:relative;box-shadow:0 7px 35px #9b5c7212;transform:rotate(-.6deg);background-image:repeating-linear-gradient(0deg,transparent 0,transparent 31px,#ead3db30 31px,#ead3db30 32px)}.letter:before,.letter:after{content:'';position:absolute;width:105px;height:26px;background:#dca0b38c;top:-9px;left:calc(50% - 52px);transform:rotate(4deg)}.letter .eyebrow{font-size:10px}.letter h2{font:52px var(--hand);color:var(--pink-dark);margin-bottom:30px;letter-spacing:0}.letter p{font-size:17px;line-height:1.9;margin-bottom:23px}.letter p.personal-message{color:var(--pink-dark);font:30px/1.4 var(--hand);margin:33px -5px}.letter-sign{display:block;font-size:24px;margin-top:30px}.wish-button{display:block;margin:30px auto 0;background:#f8e4ea;border:1px solid #e4bcc9;border-radius:50%;width:114px;height:114px;font-size:14px;padding:20px;line-height:1.4;position:relative}.wish-button:before{content:'✧';display:block;font-size:24px;margin-bottom:2px;color:var(--pink)}.wish-button:hover{background:#f4d6e0}.letter .wish-response{font-size:14px;color:var(--pink-dark);margin:15px 0 0;min-height:26px}.keepsake{text-align:center;max-width:900px;margin:0 auto;padding:90px 25px 85px}.keepsake h2{margin-bottom:24px}.keepsake>p:not(.eyebrow){color:var(--muted)}.download-options{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin:32px 0 18px}.small-note{font-size:13px}.album-footer{text-align:center;padding:12px 25px 55px;color:var(--muted);font-size:14px}.album-footer>span{display:block;color:var(--pink);font:45px var(--hand);line-height:1;margin-bottom:17px}.album-footer p{margin-bottom:16px}.album-footer a{font-size:13px;text-underline-offset:4px}
/* One quiet frame at a time. */
dialog{padding:0;border:0;border-radius:14px;background:#fff9f6;color:var(--ink);width:min(940px,calc(100% - 32px));max-height:94svh;box-shadow:0 20px 90px #29121a5e;overscroll-behavior:contain}dialog::backdrop{background:#291e29dc;backdrop-filter:blur(6px)}body.viewing{overflow:hidden}.viewer-shell{padding:0 25px 15px}.viewer-header{display:flex;align-items:center;justify-content:space-between;min-height:52px;font-size:13px;color:var(--muted);gap:10px}.icon-button{border:0;background:transparent;font-size:33px;line-height:1;padding:5px 9px;min-height:42px;min-width:42px}.viewer-media{height:min(55svh,580px);display:flex;align-items:center;justify-content:center;background:#f1e5e7;border-radius:5px;overflow:hidden;touch-action:pan-y}.viewer-media img,.viewer-media video{width:100%;height:100%;object-fit:contain;display:block}.viewer-media video.is-circle{border-radius:50%;width:auto;max-width:100%;aspect-ratio:1}.viewer-caption{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0 10px}.viewer-caption h2{font-family:var(--hand);font-size:27px;letter-spacing:0;line-height:1.2;margin:0}.viewer-caption p{margin:0;white-space:nowrap;font-size:13px;color:var(--muted)}.viewer-controls{display:flex;align-items:center;justify-content:space-between;gap:10px}.viewer-controls .secondary{font-size:14px;min-height:42px;padding:9px 15px}.viewer-controls #slideshow{border-color:transparent;color:var(--pink-dark)}.viewer-actions{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.viewer-actions .like{font-size:14px;gap:6px;padding:5px 0;min-height:40px;height:auto}.download-link{font-size:14px;display:flex;align-items:center;gap:8px;text-decoration:none;min-height:40px}.viewer-hint{font-size:12px;color:var(--muted);margin:4px 0 0;text-align:center}.viewer-status{font-size:14px;color:var(--pink-dark);margin:0;text-align:center}.toast{position:fixed;z-index:500;left:50%;bottom:25px;transform:translate(-50%,15px);padding:10px 22px;border-radius:9px;background:#633d50;color:#fff8fb;font-size:14px;opacity:0;pointer-events:none;transition:.2s;max-width:calc(100% - 30px);text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}.confetti{position:fixed;width:10px;height:15px;background:#b85b7b;top:-20px;z-index:1000;pointer-events:none;animation:fall 3s ease-in forwards}.noscript{text-align:center;padding:20px;background:white}@keyframes fall{to{transform:translate(var(--drift),105vh) rotate(500deg);opacity:0}}.memory.revealed{animation:unfold .4s ease both}@keyframes unfold{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
.gate-dedication{font-size:25px;margin:-4px 0 15px}.hero-cat{z-index:3;pointer-events:none}.hero-polaroid .mini-note{line-height:1.1}.hero-polaroid:nth-of-type(3) .mini-note{font-size:20px}
@media(min-width:1440px){.hero{min-height:740px}.hero-collage{margin-right:30px;transform:scale(1.05)}}
@media(max-width:1050px){.hero{padding-left:5%;padding-right:5%;gap:20px;min-height:640px}.hero h1{font-size:48px}.hero-collage{height:390px;margin:0}.hero-polaroid{width:181px}.hero-polaroid img{height:220px}.hero-polaroid:nth-of-type(2){right:0;top:115px}.hero-polaroid:nth-of-type(3){top:235px;left:4px;width:123px}.hero-polaroid:nth-of-type(3) img{height:115px}.scribble{right:-10px;top:17px;font-size:22px;width:120px}.hero-cat{bottom:-7px;width:85px}.day{grid-template-columns:185px minmax(0,1fr);gap:28px}.memory-open img{height:270px}.memory-caption{font-size:20px}.memory-tools{gap:0}.like,.download-small{min-width:30px}.topbar nav{gap:20px}}
@media(max-width:760px){html{scroll-padding-top:70px}.topbar{height:68px;padding:0 22px}.brand{font-size:16px}.topbar nav{gap:17px}.topbar nav a:first-child{display:none}.topbar nav a{font-size:13px}.topbar nav .text-button{font-size:12px}.hero{display:flex;flex-direction:column;gap:25px;padding:47px 25px 66px;min-height:auto;overflow:hidden}.hero-text{text-align:center;width:100%}.hero .eyebrow{font-size:10px;margin-bottom:21px}.hero h1{font-size:clamp(38px,8vw,60px);margin-bottom:22px}.hero-copy{font-size:16px;margin-bottom:24px}.hero-collage{height:390px;width:min(385px,100%);margin:12px auto 7px}.hero-polaroid{width:189px}.hero-polaroid img{height:221px}.hero-polaroid:nth-of-type(1){left:13px;top:0}.hero-polaroid:nth-of-type(2){right:2px;top:103px}.hero-polaroid:nth-of-type(3){left:18px;top:237px;width:124px}.hero-polaroid:nth-of-type(3) img{height:116px}.hero-cat{width:90px;bottom:-2px;right:15px}.hero-bottom{position:static;font-size:23px;text-align:center}.hero:after{display:none}.scribble{top:8px;right:0;font-size:24px}.chapter-nav-inner{padding:9px 15px;gap:9px}.nav-label{display:none}.chapter-nav nav{gap:0;flex:1;justify-content:flex-start;overflow-x:auto}.chapter-nav nav a{font-size:13px;padding:7px 9px}.filter-button{font-size:12px;padding:5px 0 5px 10px}.filter-button span{min-width:19px;font-size:11px}.timeline-section{padding:48px 21px 30px}.section-intro{margin-bottom:44px}.section-intro h2{font-size:36px}.section-intro>p:not(.eyebrow){font-size:14px}.day{display:block;margin-bottom:0;padding-bottom:48px}.day-head{padding-top:15px;margin-bottom:22px}.day-date{font-size:12px;margin-bottom:10px}.day-head h3{font-size:29px;max-width:400px;margin-bottom:11px}.day-note{font-size:14px;max-width:460px;margin:0}.day-count{display:none}.day-grid{gap:20px 15px;grid-template-columns:repeat(2,minmax(0,1fr))}.memory{padding:6px 6px 0}.memory-open img{height:245px}.memory-meta{padding:7px 0;min-height:60px;flex-wrap:wrap;gap:0}.memory-caption{font-size:21px;line-height:1.15;flex-basis:100%;padding:2px 3px;min-height:27px}.memory-tools{margin-left:auto;margin-top:2px}.like,.download-small{min-width:32px;height:31px}.memory.video-card .memory-open img{height:235px}.memory.circle-card{padding:12px 10px 0}.circle-card .memory-caption{font-size:12px;min-height:27px}.year-divider{margin:35px 0 35px}.year-decoration{margin:0 0 35px}.letter-section{padding:0 18px 48px}.letter{padding:47px 27px 32px}.letter .eyebrow{font-size:9px;letter-spacing:.13em}.letter h2{font-size:45px}.letter p{font-size:16px}.letter p.personal-message{font-size:29px}.letter-sign{font-size:23px}.letter-pets .pet{width:90px;height:90px}.letter-pets{transform:translateY(12px)}.keepsake{padding:62px 22px 47px}.keepsake h2{font-size:36px}.keepsake>p:not(.eyebrow){font-size:14px}.download-options{gap:12px;flex-direction:column;align-items:stretch;max-width:360px;margin:27px auto 19px}.keepsake .small-note{font-size:12px!important}dialog{width:calc(100% - 16px);max-height:96svh}.viewer-shell{padding:0 14px 14px}.viewer-media{height:52svh}.viewer-controls{gap:4px}.viewer-controls .secondary{padding:9px 8px;font-size:12px}.viewer-caption h2{font-size:24px}.viewer-caption p{font-size:12px}.viewer-actions .like,.download-link{font-size:12px}.viewer-hint{font-size:11px}.gate-main{padding-top:5px}.gate-main h1{font-size:41px}.gate-pets{margin-top:20px}.gate-pets .pet{width:90px;height:90px}.gate-footer{padding:18px 35px 27px;font-size:11px}.envelope-note{font-size:23px;left:103px}.gate-top{font-size:12px;padding-top:24px}.gate-main .eyebrow{font-size:10px}.gate-copy{font-size:14px}.gate-main .envelope{width:137px;height:87px}.seal{left:51px;top:36px}.gate:before{inset:10px}.login-form{max-width:330px}}
@media(max-width:420px){.topbar{padding:0 15px}.brand{font-size:14px}.topbar nav{gap:10px}.topbar nav a{font-size:12px}.hero{padding-left:18px;padding-right:18px}.hero-collage{width:330px;max-width:100%;height:368px}.hero-polaroid{width:177px}.hero-polaroid img{height:205px}.hero-polaroid:nth-of-type(1){left:8px}.hero-polaroid:nth-of-type(2){right:0}.hero-polaroid:nth-of-type(3){left:11px;top:222px;width:113px}.hero-polaroid:nth-of-type(3) img{height:107px}.scribble{font-size:22px;width:115px;right:-5px}.hero-cat{right:0;bottom:-1px}.timeline-section{padding-left:16px;padding-right:16px}.day-grid{gap:16px 11px}.memory-open img{height:213px}.memory.video-card .memory-open img{height:210px}.memory-caption{font-size:20px}.circle-card .memory-caption{font-size:12px}.chapter-nav-inner{padding-left:10px;padding-right:10px}.chapter-nav nav a{padding:6px 7px;font-size:12px}.filter-button{font-size:11px;padding-left:8px}.gate-main h1{font-size:38px}.gate-pets .handwritten{font-size:20px;max-width:115px}.gate-pets .pet{width:80px;height:80px}.gate-main{padding-left:23px;padding-right:23px}.envelope-note{left:90px}.letter{padding-left:23px;padding-right:23px}.viewer-controls .secondary{font-size:11px;padding:9px 7px}}
@media(max-width:350px){.day-grid{grid-template-columns:1fr}.memory-open img{height:320px}.hero h1{font-size:35px}.hero-collage{transform:scale(.9);transform-origin:top center;margin-bottom:-30px}.topbar nav a{display:none}.chapter-nav nav a{padding:6px}.gate-main h1{font-size:33px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.confetti{display:none}}
.viewer-media video.is-circle{width:auto;height:auto;max-width:100%;max-height:100%;aspect-ratio:1;border-radius:10px}
.story-entry{display:flex;flex-direction:column;align-items:center;gap:18px;margin-top:24px}.story-entry .secondary{font-size:14px;min-height:44px;padding:10px 20px}
.hero-dedication{color:var(--muted);line-height:2.1;text-transform:uppercase;letter-spacing:.13em}.dedication-word{color:#9d2b56;font-weight:800;text-decoration:underline;text-decoration-color:#e3a6ba;text-decoration-thickness:2px;text-underline-offset:5px}.hero-dedication .dedication-word{font-family:var(--hand);font-size:30px;line-height:1.1;letter-spacing:0;text-transform:none}.hero-copy{max-width:36ch}.hero-bottom{max-width:85%}.gate-dedication{line-height:1.25}.memory.circle-card .memory-caption{line-height:1.5}
.hero-polaroid:nth-of-type(1) .mini-note{text-align:right;padding-right:12px}.hero-polaroid:nth-of-type(2) .mini-note{text-align:left;padding-left:12px}
.memory.circle-card .memory-caption{font-size:14px;color:var(--ink)}
/* A story is a chapter to read, then the moments it belongs to. */
#viewer{overflow:hidden;width:min(960px,calc(100% - 24px))}
.viewer-shell{display:flex;flex-direction:column;max-height:94svh;padding:12px 24px 14px;overflow:hidden}
.story-topline{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;line-height:1.45;flex-shrink:0}
.viewer-progress{display:flex;gap:6px;min-height:22px;align-items:center;flex-shrink:0}
.story-segment{flex:1;min-width:0;border:0;background:transparent;padding:8px 0;height:22px;position:relative}
.story-segment-track{display:block;height:4px;background:#e5cdd6;overflow:hidden;border-radius:3px}
.story-segment-fill{display:block;width:100%;height:100%;background:var(--pink);transform-origin:left center;transition:none}
.story-segment[aria-current=step] .story-segment-track{background:#edd5df}
.viewer-header{min-height:44px;flex-shrink:0;gap:8px}
#viewer-date{flex:1;min-width:0;line-height:1.4}
#viewer-day-info{font-size:13px;color:var(--pink-dark);white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.viewer-media{flex-shrink:1;min-height:120px;position:relative;isolation:isolate}
.story-frame{width:100%;height:100%;display:flex;align-items:center;justify-content:center;animation:story-appear .35s cubic-bezier(.2,.75,.25,1) both}
.story-frame>img,.story-frame>video{width:100%;height:100%;object-fit:contain}
.story-frame>video.is-circle{height:auto;max-height:100%;width:auto;max-width:100%;aspect-ratio:1}
.story-photo{animation:photo-settle .65s ease-out both}
.viewer-caption{flex-shrink:0;padding:12px 0 10px;min-height:50px}
.viewer-caption h2{font-size:26px;line-height:1.25;overflow-wrap:anywhere}
.viewer-controls{flex-shrink:0;margin-top:9px;gap:12px}
.viewer-controls #slideshow{min-width:140px;background:var(--pink);border-color:var(--pink);color:#fff9fb;box-shadow:0 3px 0 #91435d20}
.viewer-controls #slideshow:hover{background:var(--pink-dark)}
.viewer-controls #slideshow[aria-pressed=false]{background:#fff5f8;color:var(--pink-dark);box-shadow:none;border-color:#d6a4b6}
.viewer-actions{flex-shrink:0;margin-top:9px}
.viewer-hint{flex-shrink:0;line-height:1.5;margin:8px 0 0}
.viewer-status{flex-shrink:0;line-height:1.4;font-size:13px}
.viewer-status:not(:empty){margin-top:7px}
.viewer-end-actions{display:flex;justify-content:center;gap:12px;flex-shrink:0;margin-top:15px}
.viewer-end-actions .secondary{font-size:14px;min-height:42px;padding:9px 14px}
#viewer.is-reading .viewer-media{height:min(60svh,610px);background:#f4dfe6}
.story-chapter{width:100%;height:100%;max-width:690px;padding:28px 42px 8px;background:#fffaf5;display:flex;flex-direction:column;text-align:center;overflow:auto;overscroll-behavior:contain;background-image:repeating-linear-gradient(0deg,transparent 0,transparent 31px,#ead3db24 31px,#ead3db24 32px)}
.story-chapter .eyebrow{font-size:12px;margin:0 0 14px;flex-shrink:0}
.story-chapter h2{font-family:var(--hand);font-size:43px;line-height:1.15;letter-spacing:0;color:var(--pink-dark);margin:0 0 20px;flex-shrink:0;animation:story-words .45s ease-out both}
.story-copy{font-size:18px;line-height:1.85;min-height:80px;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d2a4b4 transparent;animation:story-words .55s ease-out both}
.story-copy p{margin:0 auto 14px;max-width:49ch}
.story-copy p:last-child{margin-bottom:0}
.story-chapter-bottom{display:flex;align-items:center;justify-content:center;gap:7px;min-height:72px;flex-shrink:0;color:var(--pink);font:30px var(--hand);animation:pet-pop .5s ease-out both}
.story-pet{width:72px;height:72px;flex-shrink:0}
.story-ending{justify-content:center;padding-bottom:25px}
.story-ending-pets{display:flex;justify-content:center;gap:15px;margin-bottom:14px;flex-shrink:0}
.story-ending-pets .story-pet{width:95px;height:95px}
.story-final-phrase{font:31px/1.4 var(--hand);color:var(--pink-dark);max-width:540px;margin:0 auto 23px}
.story-ending>button{align-self:center;flex-shrink:0}
@keyframes story-appear{from{opacity:0;transform:translateX(var(--entry-offset,12px)) scale(.985)}to{opacity:1;transform:translateX(0) scale(1)}}
@keyframes story-words{from{opacity:0}to{opacity:1}}
@keyframes pet-pop{from{opacity:0;transform:translateY(8px) rotate(-5deg)}to{opacity:1;transform:translateY(0) rotate(0)}}
@keyframes photo-settle{from{opacity:.55}to{opacity:1}}
@media(max-width:760px){
 #viewer{width:calc(100% - 14px);max-height:96svh;border-radius:12px}
 .viewer-shell{max-height:96svh;padding:10px 12px 12px}
 .story-topline{font-size:11px}
 .viewer-header{font-size:12px;min-height:42px}
 #viewer-day-info{font-size:12px}
 .viewer-progress{gap:4px}
 .viewer-caption{gap:8px;padding-top:11px;min-height:46px}
 .viewer-caption h2{font-size:24px}
 .viewer-controls{gap:7px;margin-top:10px}
 .viewer-controls .secondary{font-size:12px;padding:9px 10px;min-height:44px}
 .viewer-controls #slideshow{min-width:118px}
 .viewer-hint{font-size:11px;margin-top:7px}
 .story-chapter{padding:24px 21px 3px}
 .story-chapter h2{font-size:35px;margin-bottom:17px}
 .story-chapter .eyebrow{font-size:11px;margin-bottom:13px}
 .story-copy{font-size:16px;line-height:1.75}
 .story-chapter-bottom{min-height:62px}
 .story-pet{width:62px;height:62px}
 .story-ending-pets .story-pet{width:78px;height:78px}
 .story-final-phrase{font-size:29px}
 .viewer-end-actions{gap:8px}
 .viewer-end-actions .secondary{font-size:12px;padding:9px 11px}
}
@media(max-width:350px){.viewer-controls{gap:4px}.viewer-controls .secondary{font-size:11px;padding:9px 7px}.viewer-controls #slideshow{min-width:104px}.story-chapter{padding-left:17px;padding-right:17px}.story-chapter h2{font-size:31px}}
@media(max-height:500px){.viewer-shell{padding-top:5px;padding-bottom:7px}.viewer-header{min-height:34px}.story-topline{font-size:10px}.viewer-progress{min-height:17px}.story-segment{height:17px;padding:6px 0}.viewer-hint{display:none}.viewer-actions{margin-top:2px}.viewer-controls{margin-top:5px}.viewer-controls .secondary{min-height:36px;padding:6px 10px}.viewer-caption{padding:7px 0;min-height:38px}.story-chapter{padding-top:15px}.story-chapter-bottom{display:none}.story-copy{min-height:80px}.story-chapter h2{font-size:30px;margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){.story-frame,.story-photo,.story-copy,.story-chapter h2,.story-chapter-bottom{animation:none!important}}
.story-chapter-bottom{overflow:hidden;animation:none}.story-chapter-bottom .story-pet{animation:pet-pop .5s ease-out both}
.viewer-progress{min-height:28px}.story-segment{height:28px;padding:12px 0}
.viewer-actions .like,.viewer-actions .download-link{font-size:14px}
@media(min-width:351px) and (max-width:760px){.viewer-controls .secondary{font-size:14px}#viewer-day-info{font-size:14px}}
.viewer-controls>button{white-space:nowrap}
@media(max-width:760px){.viewer-controls #prev,.viewer-controls #next{flex:1;min-width:0;padding-left:6px;padding-right:6px}}
.hero-cat{right:-12px}
/* Small keepsakes in the margins, with the photographs left untouched. */
.gate-doodles,.hero-doodles,.letter-margin-doodles{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.gate-doodles svg,.hero-doodles svg,.letter-margin-doodles svg{position:absolute;display:block}
.gate-flower{width:40px;height:40px;left:9%;top:17%;transform:rotate(-16deg);opacity:.85}
.gate-sparkle{width:29px;height:29px;right:12%;top:26%;transform:rotate(9deg);opacity:.8}
.gate-trail{width:145px;height:64px;right:8%;bottom:12%;transform:rotate(-23deg);opacity:.65}
.hero-flower{width:32px;height:32px;left:2%;top:41px;transform:rotate(15deg)}
.hero-sparkle{width:28px;height:28px;right:1.8%;top:46%;transform:rotate(-9deg)}
.hero-trail{width:126px;height:56px;right:35%;bottom:44px;transform:rotate(-8deg);opacity:.65}
.intro-garland{display:flex;align-items:center;justify-content:center;gap:12px;height:42px;margin:0 auto 20px;pointer-events:none}
.intro-garland svg:first-child,.intro-garland svg:last-child{width:26px;height:26px;transform:rotate(-13deg)}
.intro-garland svg:last-child{transform:rotate(17deg)}
.intro-garland svg:nth-child(2){width:102px;height:43px;opacity:.8}
.day-keepsake{display:flex;justify-content:center;align-items:center;gap:2px;max-width:220px;margin-top:18px;pointer-events:none}
.margin-pet{width:78px;height:78px}.small-paw-trail{width:85px;height:40px;opacity:.65;transform:rotate(-8deg)}.tiny-daisy{width:23px;height:23px;align-self:flex-end;margin-bottom:14px}
.single-keepsake{position:relative;display:flex;align-self:center;align-items:center;justify-content:center;flex-direction:column;max-width:210px;margin:0 auto;pointer-events:none;opacity:.95}
.keepsake-pet{width:150px;height:150px}.keepsake-trail{width:115px;height:46px;margin-top:-12px;transform:rotate(10deg);opacity:.6}
.keepsake-star{position:absolute;right:0;top:3px;width:25px;height:25px;transform:rotate(9deg)}
.memory-interlude{display:flex;align-items:center;justify-content:center;gap:25px;margin:-17px auto 60px;max-width:740px;pointer-events:none}
.memory-interlude>span{height:1px;flex:1;background:repeating-linear-gradient(90deg,#dcb4c3 0,#dcb4c3 4px,transparent 4px,transparent 10px)}
.interlude-scene{width:255px;height:142px;max-width:60%}
.year-decoration .year-flower{width:25px;height:25px;margin-left:-5px;transform:rotate(13deg)}
.letter-sleeping-cat{width:137px;height:137px;left:5%;top:25%;transform:rotate(-8deg)}
.letter-sleeping-corgi{width:141px;height:141px;right:5%;bottom:18%;transform:rotate(7deg)}
.letter-flower{width:37px;height:37px;right:8%;top:13%;transform:rotate(-13deg)}
.story-chapter{position:relative}
.story-corner{position:absolute;right:18px;top:18px;width:24px;height:24px;opacity:.7;pointer-events:none}
.story-small-flower{width:25px;height:25px;flex-shrink:0;transform:rotate(14deg);margin-left:2px}
.gate-pets .pet,.year-decoration .pet,.single-keepsake .keepsake-pet{transition:transform .25s ease}
.gate-pets:hover .corgi{transform:rotate(5deg)}.year-decoration:hover .pet{transform:rotate(-4deg)}
@media(max-width:1200px){.letter-margin-doodles{display:none}}
@media(max-width:760px){
 .gate-flower{width:24px;height:24px;left:5%;top:15%}.gate-sparkle{width:20px;height:20px;right:5%;top:22%}.gate-trail{width:85px;height:40px;right:-6px;bottom:4%;opacity:.4}
 .hero-flower{width:23px;height:23px;left:12px;top:24px}.hero-sparkle{width:21px;height:21px;right:10px;top:43%}.hero-trail{display:none}
 .intro-garland{margin-bottom:15px;height:36px}.intro-garland svg:first-child,.intro-garland svg:last-child{width:23px;height:23px}
 .day-keepsake{height:43px;margin:9px 0 0 auto;max-width:158px}.margin-pet{width:50px;height:50px}.small-paw-trail{width:66px;height:32px}.tiny-daisy{width:18px;height:18px;margin-bottom:7px}
 .keepsake-pet{width:108px;height:108px}.keepsake-trail{width:84px;height:35px;margin-top:-8px}.keepsake-star{width:20px;height:20px;right:1px;top:3px}
 .memory-interlude{gap:13px;margin:-9px auto 34px;max-width:390px}.interlude-scene{width:220px;height:122px}
 .story-corner{width:19px;height:19px;right:12px;top:14px}.story-small-flower{width:21px;height:21px}
}
@media(max-height:500px){.story-corner{width:17px;height:17px;top:12px;right:12px}}
.story-ending{justify-content:flex-start}.story-ending-pets{margin-top:auto}.story-ending>button{margin-bottom:auto}.story-final-phrase{flex-shrink:0}
.story-ending.is-long-ending .story-ending-pets .story-pet{width:64px;height:64px}
.story-ending.is-long-ending h2{font-size:36px;margin-bottom:16px}
.story-ending.is-long-ending .story-final-phrase{font-size:27px;line-height:1.4}
@media(max-width:760px){.story-ending.is-long-ending .story-ending-pets .story-pet{width:54px;height:54px}.story-ending.is-long-ending h2{font-size:31px}.story-ending.is-long-ending .story-final-phrase{font-size:24px;line-height:1.4}}
/* Quiet, independent background music, including a control inside the dialog. */
.music-control{position:fixed;right:20px;bottom:18px;z-index:70}
.music-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:9px 12px;border:1px solid #dcb3c2;border-radius:25px;background:#fff9f6;color:var(--ink);font-size:14px;line-height:1.3;box-shadow:0 4px 18px #633d5019;cursor:pointer}
.music-toggle>svg{width:19px;height:19px;color:var(--pink-dark)}
.music-switch{display:block;width:30px;height:18px;border-radius:12px;background:#ddcbd2;padding:3px;flex-shrink:0;transition:background .2s}
.music-switch>span{display:block;width:12px;height:12px;background:#fff;border-radius:50%;box-shadow:0 1px 2px #56364235;transition:transform .2s}
.music-toggle[aria-checked=true] .music-switch{background:var(--pink)}
.music-toggle[aria-checked=true] .music-switch>span{transform:translateX(12px)}
.music-toggle[aria-checked=false]>svg{opacity:.55}
.music-toggle[data-music-state=video]{color:var(--muted)}
.music-toggle--icon{min-width:40px;min-height:40px;width:40px;height:40px;padding:9px;border-radius:50%;box-shadow:none;background:transparent;flex-shrink:0}
.music-toggle--icon[aria-checked=true]{background:#f5e0e7}
.music-toggle--icon[data-music-state=video]{background:#f5ebef;border-style:dashed}
.music-credit{max-width:660px;margin:26px auto 0!important;font-size:12px;line-height:1.8;color:var(--muted)}
.music-credit a{font-size:inherit;text-underline-offset:3px}
.album-footer{padding-bottom:105px}
@media(max-width:760px){.music-control{right:12px;bottom:12px}.music-toggle{font-size:14px;padding:9px 11px}.music-toggle--icon{width:36px;height:36px;min-width:36px;min-height:36px;padding:8px}#viewer .viewer-header{gap:7px}.music-credit{font-size:11px}}

/* Compact story viewport: one stable stage, with controls over the frame. */
#viewer{height:min(880px,calc(100svh - 24px));max-height:none;max-width:none;overflow:hidden;margin:auto}
#viewer .viewer-shell{height:100%;max-height:none;display:grid;grid-template-rows:18px 24px 44px minmax(0,1fr) 60px 44px;padding:12px 20px 12px;gap:0;position:relative}
#viewer .story-topline{font-size:11px;line-height:18px;min-width:0}
#viewer .viewer-progress{min-height:0;height:24px}
#viewer .story-segment{height:24px;padding:10px 0}
#viewer .viewer-header{min-height:0;height:44px;gap:7px}
#viewer .viewer-header .icon-button{width:40px;height:40px;min-width:40px;min-height:40px;padding:0}
.viewer-stage{position:relative;min-height:0;min-width:0;overflow:hidden;border-radius:8px;background:#f5e6eb;isolation:isolate}
#viewer .viewer-media,#viewer.is-reading .viewer-media{height:100%;width:100%;min-height:0;background:transparent;touch-action:pan-y}
#viewer .story-frame{min-height:0;overflow:hidden}
#viewer .story-chapter{max-width:none;padding:24px 32px 18px;display:block;overflow:auto;scrollbar-width:thin;scrollbar-gutter:stable;scroll-behavior:smooth;touch-action:pan-y}
#viewer .story-chapter h2{font-size:clamp(30px,4vw,42px);margin:0 0 18px;line-height:1.15;animation:none}
#viewer .story-chapter .eyebrow{margin-bottom:14px}
#viewer .story-copy{overflow:visible;min-height:0;flex:none;font-size:18px;line-height:1.75;animation:none}
#viewer .story-chapter-bottom{margin-top:16px;min-height:58px}
#viewer .story-pet{width:62px;height:62px}
#viewer .viewer-caption{min-height:0;height:60px;overflow:hidden;padding:7px 0;gap:10px;margin:0}
#viewer .viewer-caption h2{font-size:24px;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#viewer .viewer-caption p{font-size:11px}
#viewer .viewer-bottom{height:44px;min-width:0;position:relative;display:flex;align-items:center;justify-content:center}
#viewer .viewer-actions,#viewer .viewer-end-actions,#viewer .viewer-reading-actions{width:100%;margin:0;min-width:0;align-items:center;justify-content:space-between;gap:8px}
.viewer-reading-actions{display:flex}
.story-back{background:transparent;border:0;color:var(--pink);font-size:30px;line-height:1;width:30px;min-width:30px;height:38px;padding:0}
#viewer .viewer-reading-actions{justify-content:center}
#viewer .viewer-reading-actions .secondary{min-height:40px;padding:8px 24px;border-color:#dbaabc;color:var(--pink-dark);gap:20px;background:#fff3f7}
#viewer .viewer-actions .like,#viewer .viewer-actions .download-link{font-size:13px;min-height:40px;line-height:1.2}
#viewer .viewer-end-actions .secondary{min-height:40px;min-width:0;flex:1;font-size:13px;padding:8px;white-space:nowrap}
#viewer .viewer-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;padding:0}
.story-edge{position:absolute;z-index:3;top:0;bottom:0;width:22%;max-width:130px;min-width:44px;border:0;border-radius:0;background:transparent;padding:0;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.story-edge--prev{left:0}.story-edge--next{right:0}
.story-edge span{position:absolute;top:50%;left:50%;translate:-50% -50%;font:32px/1 var(--sans);width:30px;height:36px;border-radius:18px;background:#fff9f6b8;color:#97556e;opacity:0;transition:opacity .15s;pointer-events:none}
.story-edge:hover span,.story-edge:focus-visible span{opacity:1}
#viewer[data-kind=video] .story-edge{bottom:58px}
#viewer[data-kind=chapter] .story-edge,#viewer[data-kind=ending] .story-edge{display:none}
#viewer[data-kind=photo] .viewer-media{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.story-photo{-webkit-user-drag:none}
.story-hold-badge{position:absolute;z-index:5;top:14px;left:50%;translate:-50% 0;background:#fff9f6e8;border:1px solid #e8c4d1;color:var(--pink);border-radius:50%;width:40px;height:40px;text-align:center;font-size:21px;line-height:38px;opacity:0;pointer-events:none;transition:opacity .15s}
#viewer[data-holding=true] .story-hold-badge{opacity:1}
.story-loading{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;background:linear-gradient(135deg,#faedf1,#fff8f4);color:#a05e78;font-size:13px;pointer-events:none}
.story-loading svg{width:100px;height:86px;animation:loading-breathe 2s ease-in-out infinite}
.loading-paws{display:flex;gap:8px;align-items:center;height:14px}
.loading-paws i{width:7px;height:7px;border-radius:50%;background:#d796ad;animation:loading-step 1.2s ease-in-out infinite}
.loading-paws i:nth-child(2){animation-delay:.15s}.loading-paws i:nth-child(3){animation-delay:.3s}
#viewer[data-loading=false] .story-loading,#viewer[data-kind=chapter] .story-loading,#viewer[data-kind=ending] .story-loading,#viewer[data-failed=true] .story-loading{display:none}
.story-recovery{position:absolute;z-index:6;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff9f6f5!important;border-color:#d8a4b7!important;box-shadow:0 4px 20px #70334c22;max-width:85%;min-width:170px;font-size:14px;text-align:center}
.story-scroll-more{position:absolute;z-index:4;right:14px;bottom:12px;width:36px;height:36px;border:1px solid #d9a7b9;background:#fff8f4f5;color:var(--pink);border-radius:50%;font-size:23px;line-height:1;box-shadow:0 2px 14px #9e59752a}
.story-scroll-more span{display:block;animation:scroll-invite 1.8s ease-in-out infinite}
.viewer-stage.has-more:after{content:'';position:absolute;z-index:2;bottom:0;left:0;right:0;height:42px;background:linear-gradient(transparent,#fffaf5e8);pointer-events:none}
#viewer .story-ending{padding:20px 24px;display:flex;justify-content:flex-start}
#viewer .story-ending-pets{margin:0 0 10px}
#viewer .story-ending>button{margin:0 auto}
#viewer .story-final-phrase{font-size:27px;line-height:1.4;margin-bottom:16px}
@keyframes loading-breathe{50%{transform:translateY(-3px)}}
@keyframes loading-step{0%,65%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}
@keyframes scroll-invite{50%{translate:0 3px}}
@media(max-width:760px){
 #viewer{width:calc(100% - 12px);height:calc(100svh - 12px);border-radius:12px}
 #viewer .viewer-shell{padding:8px 12px 8px;grid-template-rows:18px 22px 42px minmax(0,1fr) 58px 42px}
 #viewer .viewer-progress,#viewer .story-segment{height:22px}
 #viewer .viewer-header{height:42px;font-size:12px}
 #viewer #viewer-day-info{font-size:12px}
 #viewer .story-chapter{padding:22px 20px 18px}
 #viewer .story-copy{font-size:16px;line-height:1.7}
 #viewer .story-chapter h2{font-size:34px;margin-bottom:16px}
 #viewer .viewer-caption{height:58px}
 #viewer .viewer-caption h2{font-size:22px}
 #viewer .viewer-bottom{height:42px}
 #viewer .viewer-actions .like,#viewer .viewer-actions .download-link{font-size:12px;gap:5px}
 #viewer .viewer-end-actions .secondary{font-size:12px;padding:7px 5px}
 #viewer .story-ending .story-pet{width:48px;height:48px}
 #viewer .story-final-phrase,#viewer .story-ending.is-long-ending .story-final-phrase{font-size:24px;line-height:1.35}
}
@media(max-width:350px),(max-height:540px){
 #viewer .viewer-shell{padding-left:10px;padding-right:10px;grid-template-rows:16px 20px 38px minmax(0,1fr) 52px 40px}
 #viewer .viewer-header{height:38px}
 #viewer .viewer-caption{height:52px}
 #viewer .viewer-caption h2{font-size:20px}
 #viewer .viewer-bottom{height:40px}
 #viewer .story-chapter{padding:16px 16px 18px}
 #viewer .story-chapter h2{font-size:30px}
 #viewer .story-chapter .eyebrow{font-size:10px}
 #viewer .story-copy{font-size:15px;line-height:1.65}
 #viewer .story-chapter-bottom{display:flex;min-height:48px}
 #viewer .story-pet{width:48px;height:48px}
}
@media(hover:none){.story-edge span{opacity:0}}
@media(prefers-reduced-motion:reduce){.story-loading svg,.loading-paws i,.story-scroll-more span{animation:none}}
