:root{color-scheme:light;font-family:'Trebuchet MS',sans-serif;color:#294a37}*{box-sizing:border-box}body{margin:0;background:#bceade;display:flex;justify-content:center}button{-webkit-tap-highlight-color:transparent}.garden{isolation:isolate;position:relative;height:100svh;width:min(100%,98svh);min-height:480px;container-type:size;overflow:hidden;background:#bceade url('assets/garden-cartoon.png') center/cover no-repeat}#landscape,.light{position:absolute;inset:0;width:100%;height:100%;z-index:-3}.light{z-index:-2;background:linear-gradient(180deg,#e8fff526,transparent 45%);pointer-events:none}.greeting{position:absolute;top:9%;left:5%;width:90%;text-align:center;z-index:5}h1{display:inline-block;font:700 clamp(36px,5vw,76px)/1.12 Georgia,serif;letter-spacing:-2px;margin:0;color:#365538;text-shadow:0 3px 0 #f8ffe4,0 0 20px #edffd9}h1 em{color:#b15f55;font-weight:700;font-size:1.12em}.characters{position:absolute;bottom:22%;left:50%;width:82%;height:46%;transform:translateX(-50%);display:flex;justify-content:space-between;align-items:flex-end;z-index:2;pointer-events:none}.character{position:relative;width:39%;height:100%;transform-origin:50% 95%;animation:breathe 4s ease-in-out infinite}.character.man{animation-delay:-2s}.character img{position:relative;width:100%;height:100%;object-fit:contain;object-position:center bottom}.shadow{position:absolute;width:66%;height:4%;background:#4e743c30;bottom:0;left:17%;border-radius:50%;filter:blur(3px)}.controls{position:absolute;bottom:7%;left:50%;transform:translateX(-50%);z-index:8}#action{width:76px;height:76px;padding:20px;border-radius:50%;border:3px solid #35572f;background:#fff5c4;color:#36572f;box-shadow:0 6px 0 #35572f,0 10px 0 #36572f15;display:grid;place-items:center;cursor:pointer;transition:transform .18s,box-shadow .18s,background .18s}#action svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}#action:hover{background:#fffbe4;transform:translateY(-3px)}#action:active{transform:translateY(4px);box-shadow:0 2px 0 #35572f}#action:focus-visible{outline:4px solid #c66e64;outline-offset:7px}#action:disabled{cursor:wait;opacity:.7;transform:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#flowers{position:absolute;inset:0;pointer-events:none;z-index:4}.flower{position:absolute;bottom:-30px;transform-origin:50% 100%;animation:sway var(--duration,5s) ease-in-out var(--delay,0s) infinite alternate}.flower svg{height:100%;width:100%;overflow:visible}.butterfly{position:absolute;width:24px;height:20px;z-index:4;animation:float 9s ease-in-out infinite}.butterfly-one{top:37%;left:24%}.butterfly-two{top:43%;right:22%;animation-delay:-4s;scale:.7}.butterfly i{display:block;position:absolute;width:13px;height:19px;background:#f4bc6c;border:2px solid #a3743f;border-radius:90% 30% 80% 40%;transform-origin:right center;animation:wing .3s ease-in-out infinite alternate}.butterfly i+i{left:13px;transform-origin:left center;rotate:25deg;animation-direction:alternate-reverse;background:#ffe19a}.planting{position:absolute;left:50%;bottom:22%;width:110px;height:120px;transform:translateX(-50%);z-index:5;pointer-events:none;opacity:0}.soil{position:absolute;bottom:0;left:10%;width:80%;height:18px;background:#ba8559;border:2px solid #956743;border-radius:50%}.seed{position:absolute;left:47%;bottom:9px;width:10px;height:15px;border-radius:70% 30%;background:#dbb56c;opacity:0}.sprout{position:absolute;bottom:8px;left:50%;height:40px;width:4px;background:#688848;border-radius:4px;transform:scaleY(0);transform-origin:bottom;transition:transform 1.2s ease}.sprout span{position:absolute;top:10px;right:0;background:#83a450;width:25px;height:14px;border-radius:2px 100%;transform:rotate(25deg);transform-origin:right}.sprout span+span{top:3px;left:2px;border-radius:100% 2px;transform:rotate(-25deg)}.water{position:absolute;left:30%;top:0;width:60%;height:100%;opacity:0}.water i{position:absolute;left:var(--x,30%);width:5px;height:12px;background:#7cb6dd;border-radius:60%;animation:rain .7s linear var(--d,0s) infinite}.water i:nth-child(2){--x:60%;--d:-.3s}.water i:nth-child(3){--x:10%;--d:-.5s}.water i:nth-child(4){--x:80%;--d:-.1s}.water i:nth-child(5){--x:45%;--d:-.4s}#bloom{position:absolute;bottom:8px;left:-5px;width:120px;height:140px;transform:scale(0);transform-origin:50% 100%;transition:transform 1.5s cubic-bezier(.2,.8,.3,1.2)}#bloom svg{width:100%;height:100%;overflow:visible}.garden[data-stage="1"] .planting,.garden[data-stage="2"] .planting,.garden[data-stage="3"] .planting{opacity:1}.garden[data-stage="1"] .sprout,.garden[data-stage="2"] .sprout{transform:scaleY(1)}.garden[data-stage="3"] #bloom{transform:scale(1)}.planting.seeding .seed{animation:seed 1.2s ease-in both}.planting.watering .water{opacity:1}.particle{position:absolute;z-index:7;color:#c56f65;pointer-events:none;animation:celebrate 3s ease-out forwards;font:28px Georgia,serif}.pollen{position:absolute;width:4px;height:4px;background:#fff9cb;border-radius:50%;animation:drift var(--duration) linear var(--delay) infinite;pointer-events:none;z-index:3}@keyframes sway{from{transform:rotate(-3deg)}to{transform:rotate(4deg)}}@keyframes breathe{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-7px) rotate(1deg)}}@keyframes float{0%,100%{transform:translate(0,0) rotate(-12deg)}50%{transform:translate(45px,-30px) rotate(16deg)}}@keyframes wing{to{transform:scaleX(.25)}}@keyframes rain{from{transform:translateY(0);opacity:0}20%{opacity:1}to{transform:translateY(100px);opacity:0}}@keyframes seed{from{transform:translateY(-100px) rotate(-40deg);opacity:1}80%{opacity:1}to{transform:translateY(0) rotate(50deg);opacity:0}}@keyframes celebrate{0%{transform:translate(0,0) scale(.4);opacity:0}15%{opacity:1}to{transform:translate(var(--dx),-220px) rotate(var(--r));opacity:0}}@keyframes drift{from{transform:translate(-30px,30px);opacity:0}30%,65%{opacity:.8}to{transform:translate(80px,-100px);opacity:0}}
@media(max-width:700px){.garden{min-height:520px}.greeting{top:12%;left:3%;width:94%}h1{font-size:clamp(29px,8.5vw,52px);letter-spacing:-1.1px}.characters{width:92%;height:40%;bottom:27%}.character{width:41%}.planting{bottom:26%;scale:.73;transform-origin:0 100%}.controls{bottom:11%}#action{width:66px;height:66px;padding:16px}.flower{max-width:85px;max-height:180px;bottom:-25px}.butterfly-one{left:11%;top:34%}.butterfly-two{right:13%;top:38%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.pollen{display:none}.planting.seeding .seed{opacity:0}}

/* Local fonts: the page remains available offline. */
@font-face{font-family:'Lilita One';src:url('assets/fonts/lilita-one.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Patrick Hand';src:url('assets/fonts/patrick-hand.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
h1{font-family:'Lilita One','Trebuchet MS',sans-serif;font-weight:400;font-size:clamp(40px,5.5vw,84px);letter-spacing:.1px;line-height:1.08;color:#3d6c42;-webkit-text-stroke:1px #fff4c4;paint-order:stroke fill;text-shadow:0 4px 0 #fff4c4,0 7px 0 #5b783722;transform:rotate(-2deg)}h1 em{font-family:inherit;font-style:normal;font-weight:400;color:#db786d;font-size:1.15em;display:inline-block;transform:rotate(3deg)}.controls{left:auto;right:6%;bottom:max(5%,env(safe-area-inset-bottom));transform:none}.plant-control{position:absolute;left:80.5%;bottom:-83px;transform:translateX(-50%);width:66px;height:66px;padding:15px;display:grid;place-items:center;border-radius:50%;border:3px solid #35572f;background:#e8f5b6;color:#36572f;box-shadow:0 6px 0 #35572f,0 10px 0 #36572f15;pointer-events:auto;cursor:pointer;transition:background .18s,box-shadow .18s}.plant-control svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.plant-control:hover{background:#f7ffd9}.plant-control:active{box-shadow:0 2px 0 #35572f}.plant-control:focus-visible{outline:4px solid #c66e64;outline-offset:7px}.plant-control:disabled{opacity:.55;cursor:wait}.character{transition:translate .7s ease,rotate .7s ease}.working .character{animation:none}.working .woman{translate:-28% 8px;rotate:-10deg}.working .man{translate:28% 8px;rotate:10deg}.digging .woman img{animation:dig-right .55s ease-in-out 3}.digging .man img{animation:dig-left .55s ease-in-out 3}.pouring .man img{transform:rotate(12deg);transform-origin:50% 80%;transition:transform .5s}.pouring .woman img{transform:rotate(-5deg);transition:transform .5s}.shared-seed{position:absolute;left:50%;bottom:10px;width:9px;height:14px;border-radius:70% 30%;background:#b17a42;border:1px solid #725535;opacity:0}.seeding .from-gebii{--start:75px;animation:plant-together 1.2s ease-in .15s both}.seeding .from-feliks{--start:-75px;animation:plant-together 1.2s ease-in .15s both}.seeding .seed{display:none}.water{left:15%;top:-10px;transform:rotate(-15deg);transform-origin:bottom}.letter-scene{position:absolute;inset:0;z-index:9;display:flex;align-items:center;justify-content:center;padding:36px 22px 120px;background:#3b6b3c20;backdrop-filter:blur(4px);animation:letter-in .6s ease both}.letter-scene[hidden]{display:none}.letter-paper{position:relative;width:min(640px,100%);max-height:100%;overflow-y:auto;overscroll-behavior:contain;background:#fff9e8;border:2px solid #e6d9a9;border-radius:18px 24px 18px 22px;padding:38px 50px 32px;box-shadow:0 12px 0 #496c3820,0 24px 65px #314c3929;scrollbar-width:thin;scrollbar-color:#d7c6a0 transparent}.letter-flower{position:absolute;right:30px;top:22px;color:#db9b55;font-size:38px}.letter-paper h2{font:400 32px/1.2 'Lilita One',sans-serif;color:#a75b50;margin:8px 0 23px;padding-right:25px}.letter-paper h2:focus{outline:none}.letter-copy{font:400 23px/1.45 'Patrick Hand',cursive;color:#405d43}.letter-copy p{margin:0 0 16px}.letter-copy .signature{margin-bottom:0;color:#a75b50}.signature strong{font-weight:400;font-size:27px}.garden[data-slide="2"] .greeting,.garden[data-slide="2"] .characters,.garden[data-slide="2"] .planting{visibility:hidden}.garden[data-slide="2"] #action svg{transform:rotate(180deg)}.garden[data-slide="2"] .controls{z-index:12}@keyframes dig-left{0%,100%{transform:rotate(0) translateY(0)}50%{transform:rotate(9deg) translateY(15px)}}@keyframes dig-right{0%,100%{transform:rotate(0) translateY(0)}50%{transform:rotate(-9deg) translateY(15px)}}@keyframes plant-together{0%{opacity:0;transform:translate(var(--start),-100px) rotate(-30deg)}15%{opacity:1}90%{opacity:1}100%{opacity:0;transform:translate(0,0) rotate(60deg)}}@keyframes letter-in{from{opacity:0;translate:0 20px}to{opacity:1;translate:0 0}}
@media(max-width:700px){h1{font-size:clamp(30px,9vw,54px);letter-spacing:0}.characters{width:92%}.plant-control{left:79.5%;bottom:-79px;width:62px;height:62px;padding:14px}.controls{right:6%;bottom:max(5%,env(safe-area-inset-bottom))}.working .woman{translate:-14% 4px;rotate:-8deg}.working .man{translate:14% 4px;rotate:8deg}.letter-scene{padding:24px 18px 165px}.letter-paper{padding:25px 25px 24px}.letter-paper h2{font-size:27px;padding-right:27px}.letter-copy{font-size:21px;line-height:1.4}.letter-flower{right:20px;top:17px;font-size:31px}}
@media(prefers-reduced-motion:reduce){.working .character{translate:0 0;rotate:0deg}.digging .character img,.pouring .character img{transform:none}.shared-seed{display:none}.letter-scene{backdrop-filter:none}}

/* Mirror only Gebi's sprite: her right hand and trowel face the shared bed.
   The independent scale property survives the digging transform animation. */
.woman img{scale:-1 1}
h1{font-size:clamp(30px,6.5cqw,76px)}
@media(max-width:700px){h1{font-size:clamp(29px,9cqw,54px)}}
@media(min-width:701px) and (max-width:1100px) and (orientation:portrait){.characters{width:86%;height:44%;bottom:24%}.greeting{top:11%}.planting{bottom:24%}}
@media(max-height:600px) and (orientation:landscape){.garden{min-height:0}.greeting{top:6%}h1{font-size:clamp(22px,6cqw,36px)}.characters{height:43%;bottom:26%}.planting{bottom:26%;scale:.65;transform-origin:0 100%}.plant-control{bottom:-58px;width:48px;height:48px;padding:10px}.plant-control svg{width:24px;height:24px}#action{width:50px;height:50px;padding:11px}.controls{bottom:4%}.letter-scene{padding:14px 18px 75px}.letter-paper{padding:20px}.letter-copy{font-size:18px}}
@media(max-width:700px) and (max-height:700px){.plant-control{left:65%;bottom:-55px}}

/* Landscape fills the screen; the characters retain the reference scale. */
@media(orientation:landscape){
  .garden{width:100%}
  .characters{width:min(82%,80.36svh)}
  h1{font-size:clamp(30px,6.37svh,76px)}
  .controls{right:max(6%,calc((100% - 98svh)/2 + 5.88svh))}
}
@media(orientation:landscape) and (max-height:600px){
  h1{font-size:clamp(22px,5.88svh,36px)}
}
