:root{--paper:#f8f6f1;--ink:#39483e;--muted:#889087;--green:#748b71;--line:#e4e7dc;--serif:"Noto Serif SC","Songti SC","STSong",serif;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,label.text-button{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #b9ac80;outline-offset:4px}svg{width:20px;height:20px;fill:currentColor;flex-shrink:0}.symbols{position:absolute;width:0;height:0;overflow:hidden}a{text-decoration:none;color:inherit}.hidden{display:none!important}
.header{height:100px;max-width:1280px;margin:auto;padding:0 48px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;gap:12px;align-items:center;font-family:var(--serif);font-size:23px;letter-spacing:2px}.brand small{display:block;font:8px sans-serif;letter-spacing:2.5px;color:var(--muted);margin-top:7px}.brand-icon{background:#e7ecdf;width:44px;height:44px;border-radius:16px;display:grid;place-items:center;transform:rotate(-8deg);color:var(--green)}.brand-icon svg{width:24px;height:24px}.header nav{display:flex;gap:36px}.nav-button{border:0;background:none;font-size:13px;position:relative;padding:16px 0;color:var(--muted)}.nav-button.active{color:var(--ink)}.nav-button.active:after{content:"";position:absolute;width:18px;height:2px;background:var(--green);bottom:3px;left:calc(50% - 9px)}.account{display:flex;gap:8px;align-items:center;background:none;border:1px solid var(--line);border-radius:22px;padding:10px 17px;font-size:12px;max-width:190px}.account span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account svg{width:14px;height:14px}
main{max-width:1184px;margin:auto}.hero{min-height:440px;background:#eef0e6;border-radius:24px;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;position:relative}.hero-copy{padding:55px 0 48px 56px;z-index:2}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--green);display:inline-flex;align-items:center;gap:8px}.eyebrow>span{width:5px;height:5px;background:#8a9c7c;border-radius:50%}h1{font-family:var(--serif);font-size:44px;font-weight:500;line-height:1.5;letter-spacing:3px;margin:20px 0 17px}h1 span{color:#829174}.hero p{font-size:13px;line-height:2.1;color:#81897b;margin:0 0 25px}.primary{background:var(--green);color:#fff;border:0;border-radius:9px;padding:14px 22px;display:inline-flex;gap:18px;justify-content:center;align-items:center;font-size:13px;transition:background .2s}.primary:hover{background:#617b60}.hero-note{display:flex;align-items:center;gap:6px;font-size:10px;color:#919887;margin-top:16px}.hero-note svg{width:12px;height:12px}
.garden-art{position:relative;min-height:440px;isolation:isolate;background:radial-gradient(ellipse at 52% 30%,#fbf4d5 0,transparent 55%)}.sun{width:105px;height:105px;border-radius:50%;position:absolute;top:39px;left:44%;background:#faf2d6;box-shadow:0 0 60px 30px #faf1d370}.cloud{position:absolute;width:90px;height:15px;border-radius:50%;background:#ffffff80;filter:blur(3px)}.cloud-one{top:106px;left:19%}.cloud-two{top:76px;right:10%;width:100px}.hill{position:absolute;border-radius:50% 50% 0 0;width:140%;left:-15%;height:190px;bottom:-30px}.hill-back{background:#cdd8b9;bottom:28px;transform:rotate(-9deg)}.hill-front{background:#bdcbaa;bottom:-45px;transform:rotate(8deg)}.arch{position:absolute;left:26%;bottom:97px;width:235px;height:239px;background:linear-gradient(110deg,#ddd3be,#d1c5b0);border-radius:120px 120px 8px 8px;box-shadow:10px 12px 0 #aeae9260, inset 6px 2px 0 #eee5d4;transform:rotate(-3deg);padding:16px}.arch-inner{border-radius:110px 110px 3px 3px;border:2px solid #f1ead7;height:100%;display:flex;align-items:center;flex-direction:column;padding-top:37px;background:#ede5d5}.arch-inner svg{color:#aea88b;width:24px;height:24px}.arch-inner>span{font-family:var(--serif);font-size:12px;letter-spacing:4px;color:#9c9782;margin-top:8px}.tiny-doors{display:flex;gap:9px;margin-top:20px}.tiny-doors i{display:block;width:47px;height:66px;background:linear-gradient(90deg,#baa78d,#ccbaa0);border:4px solid #dbcdb6;border-radius:20px 20px 3px 3px;box-shadow:0 3px 4px #a89e8630;position:relative}.tiny-doors i:after{content:"";width:4px;height:4px;position:absolute;right:4px;top:34px;background:#8c7d61;border-radius:50%}.tree{position:absolute;bottom:112px;width:80px;height:160px}.tree i{position:absolute;bottom:0;left:48%;width:7px;height:100px;background:#a39375;border-radius:4px}.tree:after{content:"";position:absolute;width:95px;height:125px;left:-8px;top:-10px;background:linear-gradient(100deg,#9fae88,#bdcba2);border-radius:50% 50% 42% 42%;box-shadow:inset -10px -10px 15px #899a7a30}.tree-one{left:5%;transform:rotate(-7deg)}.tree-two{right:8%;transform:scale(.8)}.art-path{position:absolute;bottom:-75px;left:34%;width:170px;height:180px;background:#e6debd;transform:rotate(20deg);border-radius:90% 0 0 0}.art-flower{position:absolute;color:#f9ebd7;font-size:36px;text-shadow:1px 2px 0 #b7b596;bottom:51px}.flower-one{left:14%;font-size:45px}.flower-two{right:14%;bottom:80px;color:#e7b5a7}.flower-three{left:26%;bottom:100px;font-size:24px}.art-cat{position:absolute;bottom:55px;right:28%;width:53px;height:69px;background:#faf1da;border-radius:50% 50% 35% 35%;box-shadow:4px 5px 0 #aeb39340}.art-cat i{position:absolute;width:47px;height:40px;background:#faf1da;border-radius:40%;top:-15px;left:3px}.art-cat i:before,.art-cat i:after{content:"";position:absolute;width:20px;height:25px;background:#faf1da;top:-9px;clip-path:polygon(0 0,100% 50%,0 100%)}.art-cat i:before{left:0}.art-cat i:after{right:0;transform:scaleX(-1)}.art-cat b{position:absolute;top:0;left:17px;font-size:20px;color:#8f7d65;font-weight:400}.art-label{position:absolute;bottom:19px;left:25%;font-family:var(--serif);font-size:11px;letter-spacing:2px;color:#788268}.art-star{position:absolute;color:#c3b98a;font-size:27px}.star-one{top:34%;left:19%}.star-two{top:19%;right:18%;font-size:18px}
.quote-strip{padding:25px 10px;display:flex;align-items:center;gap:13px;font-family:var(--serif);font-size:12px;letter-spacing:1px;color:#88907d}.quote-strip svg{width:17px;height:17px}.quote-end{margin-left:auto;font:9px sans-serif;letter-spacing:2px;color:#a5a999}.memorial-section{margin-top:21px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px}.section-heading h2{font-family:var(--serif);font-size:26px;font-weight:500;letter-spacing:2px;margin:11px 0}.section-heading h2 span{font:10px sans-serif;letter-spacing:1px;background:#eef0e6;color:#959d8a;padding:5px 10px;border-radius:20px;vertical-align:middle}.section-heading p{font-size:12px;color:var(--muted);margin:0}.outline{background:#ffffff60;border:1px solid #d8dece;border-radius:8px;padding:11px 17px;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.outline:hover{background:#e9eddf}.garden-toolbar{display:flex;justify-content:space-between;background:#e9eddf;border:1px solid #dfe5d5;border-bottom:0;border-radius:16px 16px 0 0;padding:15px 25px;font-size:11px;color:#7b8971}.garden-toolbar span{display:inline-flex;align-items:center;gap:7px}.garden-toolbar svg{width:12px;height:12px}.status-dot{width:5px;height:5px;border-radius:50%;background:#8a9b76}.garden-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:21px;padding:32px 34px;background:linear-gradient(#f0efe6,#e9e9dd);border:1px solid #e1e3d4;border-top:0;min-height:273px}.memorial{background:#f8f5ec;border:1px solid #ddd8c8;box-shadow:0 4px 0 #dcd9c945,0 8px 12px #b8b9a018;position:relative;border-radius:60px 60px 8px 8px;min-height:234px;padding:18px 15px 12px;display:flex;align-items:center;flex-direction:column;transition:transform .25s}.memorial:hover{transform:translateY(-5px)}.portrait{width:78px;height:78px;display:grid;place-items:center;border-radius:50%;background:#e7e9d8;border:5px solid #fffdf5;box-shadow:0 0 0 1px #e3decd;overflow:hidden}.portrait img{width:100%;height:100%;object-fit:cover}.pet-avatar{width:66px;height:66px}.memorial h3{font-family:var(--serif);font-size:15px;letter-spacing:2px;font-weight:500;margin:12px 0 5px}.memorial .dates{font-size:9px;color:#a1a08f;height:12px}.door{width:100%;height:52px;background:repeating-linear-gradient(90deg,#e2d7c5 0,#e2d7c5 24%,#dacdb8 25%,#e2d7c5 26%);border:4px solid #eeeadc;border-radius:4px;position:relative;margin-top:12px;box-shadow:inset 0 1px 4px #b9a99030}.door:after{content:"";position:absolute;width:5px;height:5px;border-radius:50%;background:#b6a17b;right:9px;top:20px}.tributes{display:flex;gap:14px;font-size:10px;color:#9e9c88;position:absolute;bottom:20px;left:28px}.tributes span{display:flex;align-items:center;gap:4px}.tributes svg{width:13px;height:13px}.empty-slot{background:#f6f5eb70;border:1px dashed #cfd4c1;box-shadow:none;justify-content:center;border-radius:60px 60px 8px 8px;color:#a2ac91}.empty-slot .slot-plus{font-size:27px;font-weight:200;width:50px;height:50px;display:grid;place-items:center;background:#e9eddf;border-radius:50%;margin-bottom:13px}.empty-slot strong{font-family:var(--serif);font-size:13px;font-weight:400}.empty-slot small{font-size:10px;margin-top:9px;color:#b1b6a3}.garden-grid .empty-message{grid-column:1/-1;text-align:center;padding:50px;color:var(--muted);font-size:13px}.garden-bottom{border:1px solid #e1e3d4;border-top:0;background:#e9e9dd;border-radius:0 0 16px 16px;text-align:center;color:#a1a68f;letter-spacing:2px;font-size:10px;padding:17px}.garden-bottom span{padding:0 15px}.rituals{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;padding:42px 0}.rituals>div{display:grid;grid-template-columns:48px 1fr;column-gap:14px;padding:0 28px;border-right:1px solid var(--line)}.rituals>div:last-child{border:0}.ritual-icon{grid-row:1/3;display:grid;place-items:center;width:46px;height:46px;border-radius:16px}.pink{background:#f1e6e0;color:#b29187}.amber{background:#f2ecda;color:#b5a276}.green{background:#e8eddf;color:#879a78}.ritual-icon svg{width:22px;height:22px}.rituals h3{font-family:var(--serif);font-weight:500;font-size:14px;margin:3px 0 8px}.rituals p{font-size:10px;color:var(--muted);margin:0}
footer{max-width:1184px;margin:0 auto;border-top:1px solid var(--line);padding:24px 0;display:flex;align-items:center;gap:28px;color:#979e8f;font-size:10px}.footer-brand{font-family:var(--serif);font-size:14px;display:flex;align-items:center;gap:8px}.footer-brand svg{width:16px;height:16px}footer small{margin-left:auto;font-size:8px;letter-spacing:1px}
dialog{border:1px solid var(--line);border-radius:20px;background:var(--paper);color:var(--ink);padding:35px;max-width:510px;width:calc(100% - 32px);max-height:90dvh;box-shadow:0 25px 100px #24352030}dialog::backdrop{background:#263a3350;backdrop-filter:blur(5px)}dialog h2{font-family:var(--serif);font-weight:500;font-size:27px;margin:14px 0 10px}dialog>p{font-size:12px;line-height:1.8;color:var(--muted)}.close{position:absolute;right:16px;top:12px;font-size:27px;border:0;background:none;color:#919987;padding:4px 10px}.auth-tabs{display:flex;border-bottom:1px solid var(--line);margin:22px 0;gap:20px}.auth-tabs button{background:none;border:0;padding:10px 4px;color:var(--muted);font-size:13px}.auth-tabs button.active{color:var(--green);border-bottom:2px solid var(--green)}form label{display:flex;flex-direction:column;gap:8px;font-size:12px;margin:16px 0;color:#788270}input,textarea,select{width:100%;min-width:0;padding:12px;border:1px solid #dce1d3;border-radius:8px;background:#fffdf8;color:var(--ink);font-size:13px}input:focus,textarea:focus,select:focus{outline:2px solid #9caa8b;outline-offset:1px}textarea{resize:vertical}form>.primary{width:100%}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-row label{min-width:0;margin:10px 0}.subtle{font-size:11px!important;color:#989f90!important;line-height:1.8}.form-error{color:#b16454;font-size:12px;line-height:1.6;white-space:pre-wrap}.form-error:empty{display:none}.warning{background:#f6ebd8;padding:12px;font-size:11px;color:#9b7443;border-radius:8px;line-height:1.7}.photo-preview{width:85px;height:85px;object-fit:cover;border-radius:12px}.pet-dialog{text-align:center}.pet-portrait{width:112px;height:112px;border-radius:50%;margin:0 auto 20px;overflow:hidden;background:#e6ebda;display:grid;place-items:center}.pet-portrait img{width:100%;height:100%;object-fit:cover}.pet-portrait .pet-avatar{width:100px;height:100px}.tribute-actions{display:flex;gap:10px;justify-content:center;margin:24px 0}.tribute-actions svg{width:16px;height:16px}.tribute-actions span{color:#97a18c}.pet-dialog form{text-align:left}.detail-tools{display:flex;justify-content:space-between;gap:10px;margin-top:24px;flex-wrap:wrap}.text-button{border:0;background:none;padding:0;font-size:11px;cursor:pointer;color:#819177}.danger{color:#b39185}.toast{position:fixed;bottom:32px;left:50%;transform:translate(-50%,15px);z-index:10;background:#455c48;color:#fff;padding:13px 24px;border-radius:30px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;max-width:90vw;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}
.secondary-view{text-align:center;padding:35px 40px 50px;min-height:650px}.secondary-view h1{font-size:37px;margin:15px 0}.secondary-view>p{color:var(--muted);font-size:13px;line-height:2}.pet-select-label{display:flex;align-items:center;gap:15px;max-width:350px;margin:24px auto;font-size:12px}.pet-select-label select{flex:1;width:auto}.playground{height:330px;max-width:740px;margin:20px auto;background:linear-gradient(#eef0e4 0,#f5f1dc 62%,#cedaba 62%,#b6c7a2);position:relative;border-radius:24px;overflow:hidden}.play-sun{position:absolute;width:65px;height:65px;border-radius:50%;background:#fff8de;top:33px;right:20%;box-shadow:0 0 35px #fff5c7}.virtual-pet{position:absolute;bottom:57px;left:calc(50% - 75px);width:150px;height:150px;transform-origin:center bottom}.virtual-pet .pet-avatar{width:150px;height:150px;filter:drop-shadow(0 10px 5px #71876830)}.playground>p{position:absolute;bottom:12px;left:0;width:100%;font-size:12px;color:#5b704f;padding:0 12px}.play-actions{display:flex;justify-content:center;gap:12px;margin:25px 0}.play-actions button{min-width:105px}.virtual-pet.stroke{animation:wiggle .6s 3}.virtual-pet.ball{animation:hop .6s 3}.virtual-pet.feed{animation:nibble .4s 4}#play-object{position:absolute;left:62%;bottom:72px;font-size:35px}.ball-object{animation:roll 1.8s}.about-cards{display:grid;grid-template-columns:1fr 1fr;max-width:780px;margin:40px auto;gap:22px;text-align:left}.about-cards article{background:#edf0e5;border-radius:20px;padding:30px}.about-cards svg{color:var(--green)}.about-cards h3{font-family:var(--serif);font-size:19px;font-weight:400}.about-cards p{font-size:12px;color:#88927f;line-height:2}
@keyframes wiggle{0%,100%{transform:rotate(0)}25%{transform:rotate(-8deg)}75%{transform:rotate(8deg)}}
@keyframes hop{0%,100%{transform:translateY(0)}50%{transform:translateY(-30px) rotate(5deg)}}
@keyframes nibble{50%{transform:scale(1.07,.95)}}
@keyframes roll{0%{transform:translateX(100px) rotate(0)}50%{transform:translateX(-130px) rotate(-360deg)}100%{transform:translateX(0) rotate(0)}}
.particle{position:fixed;pointer-events:none;z-index:20;font-size:24px;animation:float-away 1.6s ease-out forwards}
@keyframes float-away{to{transform:translateY(-130px) rotate(30deg);opacity:0}}
@media(min-width:1450px){.header{height:112px}.hero{min-height:460px}.hero-copy{padding-top:65px}}
@media(max-width:1000px){.header{padding:0 24px}.header nav{gap:24px}main,footer{margin-left:24px;margin-right:24px}.hero-copy{padding-left:32px}h1{font-size:36px}.arch{left:20%;transform:scale(.9) rotate(-3deg)}.tree-one{left:0}.tree-two{right:0}.garden-grid{gap:15px;padding:25px 20px}.rituals>div{padding:0 10px;column-gap:9px}.rituals h3{font-size:12px}}
@media(max-width:650px){.header{height:116px;padding:16px 20px 44px;position:relative;gap:10px}.brand{font-size:19px}.brand small{font-size:7px}.brand-icon{width:36px;height:36px}.header nav{position:absolute;bottom:0;left:20px;right:20px;justify-content:center;gap:45px}.nav-button{font-size:12px;padding:11px 0}.account{padding:8px 11px;font-size:10px;max-width:130px}.account svg{width:12px;height:12px}main{margin:16px 16px 0}.hero{grid-template-columns:1fr;min-height:0;border-radius:19px}.hero-copy{padding:30px 28px 0}.eyebrow{font-size:9px;letter-spacing:1px}h1{font-size:34px;letter-spacing:2px;margin:16px 0 12px}.hero p{font-size:12px;margin-bottom:18px}.primary{padding:12px 17px;font-size:12px}.hero-note{margin-top:13px;font-size:9px}.garden-art{min-height:285px;margin-top:-20px;background:radial-gradient(ellipse at 52% 35%,#fbf4d5,transparent 65%)}.arch{bottom:68px;left:calc(50% - 117px);transform:scale(.72) rotate(-3deg);transform-origin:center bottom}.sun{top:25px;width:70px;height:70px;left:48%}.tree{bottom:78px;transform:scale(.65);transform-origin:bottom}.tree-one{left:8%}.tree-two{right:5%;transform:scale(.58)}.hill-back{height:150px;bottom:-20px}.hill-front{height:140px;bottom:-60px}.art-path{height:130px;width:115px;bottom:-57px;left:40%}.art-cat{bottom:35px;right:26%;transform:scale(.7)}.art-flower{transform:scale(.7);bottom:24px}.flower-two{bottom:45px}.flower-three{bottom:67px}.art-label{bottom:13px;left:0;width:100%;text-align:center;font-size:9px}.star-one{top:29%;left:22%}.star-two{top:20%}.quote-strip{padding:20px 3px;font-size:10px;letter-spacing:0;gap:8px}.quote-end{display:none}.memorial-section{margin-top:12px}.section-heading{gap:12px;align-items:center;margin-bottom:20px}.section-heading h2{font-size:22px;letter-spacing:1px;margin:10px 0}.section-heading p{font-size:10px}.section-heading .eyebrow{font-size:8px}.section-heading .outline{padding:9px 10px;font-size:10px;white-space:nowrap}.section-heading h2 span{font-size:9px;padding:4px 8px}.garden-toolbar{padding:13px 14px;font-size:9px;border-radius:12px 12px 0 0}.garden-grid{grid-template-columns:repeat(2,1fr);gap:16px;padding:22px 17px}.memorial{min-height:225px;padding:16px 10px 10px}.portrait{width:72px;height:72px}.memorial h3{font-size:14px}.garden-bottom{font-size:8px;letter-spacing:0;padding:14px 4px}.garden-bottom span{padding:0 5px}.rituals{gap:0;padding:28px 0}.rituals>div{display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 6px}.ritual-icon{width:35px;height:35px;border-radius:12px;margin-bottom:10px}.ritual-icon svg{width:18px;height:18px}.rituals h3{font-size:10px;margin:0 0 7px}.rituals p{font-size:9px;line-height:1.7}.rituals>div:last-child p{max-width:100px}footer{margin:0 16px;padding:21px 0;gap:10px;flex-wrap:wrap;justify-content:space-between;font-size:9px}.footer-brand{font-size:12px}footer small{width:100%;text-align:center;margin:6px 0 0;font-size:7px}dialog{padding:30px 23px}.form-row{gap:10px}.tribute-actions{gap:8px}.tribute-actions button{padding:10px;font-size:11px}.secondary-view{padding:25px 0 35px;min-height:580px}.secondary-view h1{font-size:29px}.playground{height:300px}.play-actions{gap:8px}.play-actions button{min-width:0;padding:12px;font-size:11px}.about-cards{grid-template-columns:1fr;margin:28px 0}.about-cards article{padding:24px}.toast{bottom:20px}.detail-tools{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Calm interaction layer shared by the four main views. */
:root{--surface:#fffdf8;--soft:#edf0e5;--ink:#445047;--muted:#76816f;color-scheme:light}
body{padding-bottom:100px;line-height:1.8}
h1,h2,h3{font-family:inherit!important;font-weight:350!important}
button,a.outline{min-width:44px;min-height:44px}
.text-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 10px;font-size:13px}
.header-tools{display:flex;align-items:center;gap:12px}
.header-tools .account{font-size:13px;min-height:44px}
.hero p,.section-heading p,.secondary-view>p{font-size:15px}
.hero-note,.subtle,.garden-toolbar,.garden-bottom,.rituals p{font-size:12px!important}
.outline,.primary{font-size:14px;transition:background .8s ease,color .8s ease}
.section-heading h2{font-size:27px}
.section-heading .eyebrow{font-size:11px}
.rituals h3{font-size:15px}
.bottom-nav{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(4,1fr);width:min(440px,calc(100% - 32px));z-index:5;background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:0 8px 35px #45554112;padding:6px 10px}
.bottom-nav .nav-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px;padding:7px 4px;min-height:58px;border-radius:14px}
.bottom-nav .nav-button:after{display:none}
.bottom-nav .nav-button.active{background:var(--soft);color:var(--ink)}
.bottom-nav svg{width:21px;height:21px}
.signed-in .hero,.signed-in .quote-strip{display:none}
.signed-in .memorial-section{margin-top:20px}
.first-guide{margin:18px 0 25px;background:var(--soft);padding:22px 28px;border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
.first-guide h2{font-size:18px;margin:0 0 5px}
.first-guide p{font-size:13px;margin:0;color:var(--muted)}
.first-guide .form-error{width:100%;color:#b16454}
.memorial{perspective:700px;transition:background .8s ease;overflow:hidden}
.memorial:hover{transform:none;background:#fffcf2}
.memorial h3{font-size:17px;margin-top:12px;overflow-wrap:anywhere;text-align:center}
.memorial .dates{font-size:11px;height:auto;line-height:1.7}
.door{height:57px;transform-origin:left center;transition:transform 1s ease-in-out;transform-style:preserve-3d}
.door-opening .door{transform:rotateY(-85deg)}
.door-opening{pointer-events:none}
.empty-slot strong{font-size:15px}
.empty-slot small{font-size:12px}
.tributes{bottom:23px;font-size:12px}
.garden-grid{gap:24px}
.memorial .slot-presence{display:flex;align-items:center;justify-content:center;position:absolute;bottom:67px;left:0;right:0;gap:14px;pointer-events:none}
.live-token{opacity:0;transition:opacity .8s ease;color:#b5a379;display:inline-flex;gap:5px;align-items:center}
.live-token.is-active{opacity:1}
.live-token.candles.is-active{filter:drop-shadow(0 0 6px #eed99b)}
.live-token.flowers{color:#be9e91}
.live-token svg{width:15px;height:15px}
.secondary-view{padding-top:24px}
.view-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left}
.pet-select-label{font-size:14px;max-width:440px}
.pet-detail{max-width:650px;margin:30px auto;text-align:center}
.pet-detail h1{font-size:32px;letter-spacing:2px;margin:14px 0 4px;overflow-wrap:anywhere}
.pet-detail>p{font-size:14px;color:var(--muted)}
.pet-portrait{border:5px solid var(--surface);width:155px;height:155px;padding:0;border-radius:30px;background:var(--soft)}
.pet-portrait .pet-avatar{width:125px;height:125px}
.detail-message{line-height:2;white-space:pre-wrap;overflow-wrap:anywhere;margin:20px auto;max-width:480px}
.detail-presence{display:flex;justify-content:center;gap:24px;min-height:32px;font-size:13px}
.tribute-panel{margin:24px 0;background:var(--soft);border-radius:18px;padding:22px 28px}
.flower-picker{display:flex;align-items:center;justify-content:center;gap:15px;font-size:13px}
.flower-picker select{width:160px}
.tribute-actions{margin:20px 0 10px}
.tribute-actions button{flex:1;min-height:52px}
.tribute-actions span{font-size:12px}
.pet-detail form{text-align:left}
.pet-detail form label{font-size:14px}
.message-actions{display:flex;align-items:center;gap:14px}
.inline-feedback{font-size:13px;color:var(--green);opacity:0;transition:opacity .8s}
.inline-feedback.visible{opacity:1}
.detail-tools{justify-content:center;align-items:center;gap:12px;margin-top:28px}
.empty-state{padding:40px 20px;color:var(--muted);grid-column:1/-1;text-align:center}
.empty-state svg{width:36px;height:36px;color:var(--green)}
.empty-state h2{font-size:21px}
.empty-state p{font-size:14px;line-height:2}
.memory-tabs{display:flex;justify-content:center;gap:8px;margin:28px 0}
.memory-tabs button{border:1px solid var(--line);background:none;padding:10px 24px;border-radius:30px;font-size:14px}
.memory-tabs button.active{background:var(--soft);color:var(--green)}
.album-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;max-width:880px;margin:30px auto}
.album-card{padding:0;background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;text-align:left}
.album-card img{display:block;width:100%;height:210px;object-fit:cover}
.album-card>span{display:block;padding:15px 18px;font-size:15px;overflow-wrap:anywhere}
.album-card small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.journal-list{list-style:none;padding:0;max-width:700px;margin:30px auto;text-align:left}
.journal-entry{display:grid;grid-template-columns:35px 1fr;gap:15px;padding:22px 0;border-bottom:1px solid var(--line)}
.journal-entry>svg{margin-top:7px;color:var(--green)}
.journal-entry h3{font-size:16px;margin:0 0 5px}
.journal-entry p{font-size:14px;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.journal-entry time,.journal-entry small{font-size:12px;color:var(--muted);display:block}
.anniversary-list{max-width:700px;margin:30px auto;display:grid;grid-template-columns:1fr 1fr;gap:18px}
.anniversary{display:flex;gap:20px;text-align:left;padding:24px;background:var(--soft);border-radius:18px}
.anniversary>span{font-size:25px;color:var(--green);letter-spacing:1px}
.anniversary h3{font-size:15px;margin:0}
.anniversary p{font-size:12px;margin:4px 0;color:var(--muted)}
.soft-loading{color:var(--green);animation:gentle-glow 2.4s ease-in-out infinite}
.setting-row{display:flex;align-items:center;justify-content:space-between;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:15px;gap:20px}
.setting-row small{display:block;font-size:12px;color:var(--muted);margin-top:6px}
.setting-row input,.delete-check input{width:44px;height:44px;flex-shrink:0;accent-color:var(--green);cursor:pointer}
.delete-check{display:flex;align-items:center;gap:10px;font-size:14px;margin:25px 0;line-height:1.8}
dialog{background:var(--paper);line-height:1.8}
dialog[open]{animation:dialog-arrive .8s ease both}
dialog.leaving{animation:dialog-leave .8s ease both}
dialog.sheet[open]{animation:sheet-arrive .8s ease both}
dialog.sheet.leaving{animation:sheet-leave .8s ease both}
dialog::backdrop{animation:backdrop-arrive .8s ease both}
dialog.leaving::backdrop{animation:backdrop-leave .8s ease both}
dialog .close{width:44px;height:44px;line-height:1;padding:0}
dialog>p{font-size:14px}
form label{font-size:14px}
input,textarea,select{font-size:15px;min-height:44px;background:var(--surface)}
textarea{line-height:1.9}
.photo-dialog{max-width:760px;text-align:center}
.photo-dialog h2{font-size:21px;padding-right:24px}
.photo-stage{height:min(45dvh,380px);width:100%;overflow:auto;background:var(--soft);border-radius:16px;display:flex}
.photo-stage img{height:100%;width:100%;object-fit:contain;flex-shrink:0}
.zoom-label{display:flex;align-items:center;gap:15px;margin:15px 0;font-size:13px}
.zoom-label input{flex:1;width:auto;accent-color:var(--green)}
.viewer-navigation{display:flex;justify-content:space-between;align-items:center;margin:15px 0;font-size:13px;color:var(--muted)}
.viewer-navigation button{width:48px}
.photo-dialog .play-actions{flex-wrap:wrap;margin:15px 0}
.toast{transition:opacity .8s ease,transform .8s ease}
.particle{animation-duration:3s;font-size:21px}
.virtual-pet.stroke{animation:wiggle 1.2s 2}
.virtual-pet.ball{animation:soft-step 1.2s 2}
.virtual-pet.feed{animation:nibble 1.2s 2}
.ball-object{animation:roll 2.4s}
@keyframes soft-step{0%,100%{transform:translateX(0)}50%{transform:translateX(24px) rotate(2deg)}}
@keyframes gentle-glow{50%{opacity:.45}}
@keyframes dialog-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes dialog-leave{to{opacity:0;transform:translateY(10px)}}
@keyframes sheet-arrive{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:translateX(0)}}
@keyframes sheet-leave{to{opacity:0;transform:translateX(24px)}}
@keyframes backdrop-arrive{from{opacity:0}to{opacity:1}}
@keyframes backdrop-leave{to{opacity:0}}
[data-theme=dark]{--paper:#252e2a;--surface:#303a33;--soft:#354135;--ink:#dce2d3;--muted:#acb7a2;--green:#a1b496;--line:#485340;color-scheme:dark}
[data-theme=dark] .hero{background:#354335}
[data-theme=dark] .garden-art{filter:brightness(.6) saturate(.55)}
[data-theme=dark] .hero p,[data-theme=dark] .hero-note,[data-theme=dark] .quote-strip{color:var(--muted)}
[data-theme=dark] .hero h1 span{color:#b6c3a0}
[data-theme=dark] .brand-icon,[data-theme=dark] .ritual-icon{background:var(--soft)}
[data-theme=dark] .garden-toolbar,[data-theme=dark] .garden-bottom{background:#354033;border-color:var(--line);color:#bac4aa}
[data-theme=dark] .garden-grid{background:linear-gradient(#374033,#30392e);border-color:var(--line)}
[data-theme=dark] .memorial{background:#424a3b;border-color:#59604b;box-shadow:0 4px 0 #20291f}
[data-theme=dark] .memorial:hover{background:#485140}
[data-theme=dark] .empty-slot{background:#354030;box-shadow:none;border-color:#687259;color:#bcc7ae}
[data-theme=dark] .slot-plus,[data-theme=dark] .portrait{background:#5a624b}
[data-theme=dark] .portrait{border-color:#65705a;box-shadow:none}
[data-theme=dark] .door{background:repeating-linear-gradient(90deg,#79745d 0,#79745d 24%,#69654e 25%,#79745d 26%);border-color:#5b614c}
[data-theme=dark] .tributes,[data-theme=dark] .memorial .dates,[data-theme=dark] .empty-slot small{color:#d0cbb4}
[data-theme=dark] .outline,[data-theme=dark] .section-heading h2 span{background:var(--surface);border-color:var(--line)}
[data-theme=dark] .outline:hover{background:#46513e}
[data-theme=dark] .primary{background:#657d5d}
[data-theme=dark] .primary:hover{background:#748b6b}
[data-theme=dark] .about-cards article{background:var(--soft)}
[data-theme=dark] .about-cards p,[data-theme=dark] form label{color:var(--muted)}
[data-theme=dark] .playground{background:linear-gradient(#384437 0,#454e3a 62%,#4f6542 62%,#455b38)}
[data-theme=dark] .play-sun{background:#939779;box-shadow:0 0 35px #7c87633a}
[data-theme=dark] .playground>p{color:#d0dec2}
[data-theme=dark] .subtle{color:#adb9a0!important}
[data-theme=dark] .warning{background:#544936;color:#e6c798}
[data-theme=dark] .form-error{color:#e1a393}
@media(max-width:650px){
  body{padding-bottom:88px}
  .header{height:80px;padding:14px 16px}
  .header-tools{gap:0}
  .header-tools .account{font-size:12px;padding:8px 10px;max-width:120px}
  .header-tools .text-button{font-size:12px;padding:8px}
  .bottom-nav{bottom:0;width:100%;border-radius:18px 18px 0 0;padding:7px 10px max(7px,env(safe-area-inset-bottom));border-bottom:0}
  .bottom-nav .nav-button{font-size:12px}
  .hero p{font-size:14px}
  .hero-copy{padding:28px 24px 0}
  .hero h1{font-size:32px}
  .section-heading{align-items:flex-start;gap:10px}
  .section-heading h2{font-size:23px}
  .section-heading p{font-size:13px}
  .section-heading .outline{font-size:12px;padding:9px;min-width:100px}
  .garden-grid{padding:20px 14px;gap:15px}
  .memorial{min-height:246px}
  .memorial h3{font-size:16px}
  .empty-slot strong{font-size:14px}
  .empty-slot small{font-size:12px}
  .garden-toolbar{font-size:10px!important;padding:13px 12px;gap:8px}
  .garden-bottom{font-size:10px!important;letter-spacing:0}
  .rituals h3{font-size:12px}
  .rituals p{font-size:11px!important}
  .first-guide{padding:20px;gap:8px}
  .first-guide h2{font-size:17px}
  .secondary-view>p{font-size:14px}
  .view-heading .eyebrow{font-size:8px}
  .pet-select-label{font-size:13px;gap:12px}
  .pet-portrait{width:135px;height:135px}
  .tribute-panel{padding:20px 16px}
  .tribute-actions button{font-size:13px;padding:12px 8px}
  .flower-picker{font-size:12px}
  .flower-picker select{width:150px}
  .detail-tools{gap:10px}
  .memory-tabs button{padding:10px 17px;font-size:13px}
  .album-grid{grid-template-columns:repeat(2,1fr);gap:14px}
  .album-card img{height:155px}
  .album-card>span{padding:12px;font-size:14px}
  .anniversary-list{grid-template-columns:1fr}
  .journal-entry{padding:20px 0;gap:10px}
  .play-actions button{font-size:13px;padding:10px}
  dialog.sheet{max-height:92dvh;margin:auto 0 0 auto;width:min(510px,100%);border-radius:22px 22px 0 0;padding-bottom:max(30px,env(safe-area-inset-bottom))}
  .photo-dialog{padding:30px 18px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
