
:root{--gold:#d6ad65;--cream:#f7ebd3;--blue:#11253e;--ink:#30291d}*{box-sizing:border-box}body{margin:0;background:#101c17;color:var(--cream);font-family:Georgia,'Times New Roman',serif;overflow:hidden}button{font:inherit;cursor:url('assets/cursor.png') 12 10,pointer;transition:background .2s,transform .2s;border:1px solid #b88c4a;background:linear-gradient(135deg,#213e58,#102138);color:var(--cream);padding:13px 22px;border-radius:6px}button:hover{background:linear-gradient(135deg,#35566c,#1b334a);box-shadow:0 0 20px #d5ad6525}button:focus-visible{outline:3px solid #f4d192;outline-offset:3px}button:disabled{opacity:.5;cursor:default}h1,h2,h3,p{margin:0 0 18px}h1{font-size:clamp(30px,4vw,60px);font-weight:400;line-height:1.12}h2{font-size:clamp(24px,3vw,38px);font-weight:400}h3{font-weight:400;color:var(--gold)}p{line-height:1.55}small{color:#d6c5a9}#world{width:100vw;height:100vh;display:block;cursor:url('assets/cursor.png') 12 10,auto}header{position:fixed;top:22px;left:28px;right:28px;display:flex;align-items:center;gap:20px;pointer-events:none;text-shadow:0 2px 6px #000}header button{pointer-events:auto;margin-left:auto}.brand{letter-spacing:3px;color:#f3cf8a;font-size:18px}.brand span{display:block;letter-spacing:1px;font-size:13px;color:#e4dec7;margin-top:7px}.quest{border-left:1px solid #d4ad6580;padding:10px 20px;background:linear-gradient(90deg,#0b1729b0,transparent);font-size:16px}nav{position:fixed;right:25px;bottom:22px;display:flex;gap:9px}nav button{font-size:24px;min-width:75px;background:#102138ed;box-shadow:0 5px 25px #0008}nav span{display:block;font-size:13px;margin-top:3px}#hint{position:fixed;bottom:32px;left:28px;font-size:14px;padding:12px 20px;background:#0c1b24c9;border-left:2px solid var(--gold);max-width:58vw}#tooltip{display:none;position:fixed;pointer-events:none;background:#142638ef;border:1px solid var(--gold);padding:8px 12px;border-radius:4px;font-size:14px}#toast{position:fixed;top:110px;left:50%;transform:translateX(-50%);background:#132537ed;border:1px solid #b38a4b;padding:12px 24px;opacity:0;transition:opacity .3s;pointer-events:none;text-align:center;z-index:4}#overlay{position:fixed;inset:0;z-index:5;background:#07101b90;display:flex;align-items:center;justify-content:center;padding:25px;backdrop-filter:blur(4px)}#overlay[hidden]{display:none}.panel{position:relative;background:linear-gradient(140deg,#172e42f5,#0b1b2bf8);border:1px solid #d3ac68;box-shadow:0 25px 100px #0009,inset 0 0 40px #d4b56d0a;padding:36px;border-radius:10px;max-width:880px;width:100%;max-height:90vh;overflow:auto}.eyebrow{letter-spacing:4px;text-transform:uppercase;font-size:12px;color:var(--gold);margin-bottom:16px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:23px}.secondary{background:transparent;border-color:#8d805f}.dialog{max-width:1100px;align-self:flex-end;background:linear-gradient(115deg,#f3e8ce,#e2d0ac);color:var(--ink);box-shadow:0 -15px 100px #0007}.dialog h3{color:#7a542b}.dialogLayout{display:grid;grid-template-columns:135px 1fr 135px;gap:27px}.portrait{width:100%;aspect-ratio:1/1.25;object-fit:cover;border:2px solid #9c7742;border-radius:50% 50% 10px 10px}.answers{display:grid;gap:9px}.answers button{text-align:left;padding:13px 20px}.dialog .secondary{color:#59442d}.mini{font-size:13px;padding:9px 14px}.intro{position:absolute;inset:0;background:linear-gradient(90deg,#061321ee 0%,#061321a0 48%,#06132120),url('assets/intro.webp') center/cover;display:flex;align-items:center;padding:7vw;animation:arrival 7s ease-out both}.intro .copy{max-width:570px;text-shadow:0 2px 15px #000}.intro h1{color:#f2d49b}.intro p{font-size:19px}.intro .eyebrow{font-size:14px}.chestPanel{text-align:center;max-width:1100px;background:radial-gradient(ellipse at center,#624b2a,#102335 70%)}.items{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin:30px 0}.item{width:155px;padding:9px;background:#0c2034dd;border:1px solid #be9654;border-radius:12px}.item img{width:100%;height:140px;object-fit:contain}.item:hover{transform:translateY(-7px)}.timer{font-size:46px;color:#f3d38d;font-variant-numeric:tabular-nums}.timerbar{height:5px;background:#132430;border-radius:9px;overflow:hidden;max-width:500px;margin:14px auto}.timerbar i{display:block;height:100%;background:linear-gradient(90deg,#ac703c,#f6dc99);width:100%;transition:width .1s linear}.reward{text-align:center;border-color:#f4d391;box-shadow:0 0 100px #daa64855}.reward .legend{font-size:12px;letter-spacing:5px;color:#f2cf86}.reward img{display:block;width:230px;height:230px;object-fit:contain;margin:15px auto;filter:drop-shadow(0 0 22px #e4b35c88);animation:float 3s ease-in-out infinite}.reward h2{color:#ffe0a0}.inventory{display:grid;grid-template-columns:180px 1fr;gap:30px;align-items:center}.inventory img{width:180px}.kiss{font-size:70px;animation:kiss .55s ease both;color:#d08a78}.settings label{display:flex;justify-content:space-between;gap:25px;margin:20px 0;align-items:center}.settings input[type=range]{width:45%;accent-color:var(--gold)}.ribbon{font-size:12px;letter-spacing:2px;color:#f0d39c}.chapter{padding:15px 0;border-bottom:1px solid #ccb17b45}.chapter.done{color:#ecd29a}.fade{animation:arrival .5s ease both}@keyframes arrival{from{opacity:0}to{opacity:1}}@keyframes float{50%{transform:translateY(-8px)}}@keyframes kiss{from{transform:scale(.2);opacity:0}to{transform:scale(1);opacity:1}}@media(max-width:760px){header{top:12px;left:14px;right:14px}.brand{font-size:13px;letter-spacing:1px}.quest{font-size:12px;padding:8px;max-width:45vw}#hint{bottom:105px;left:14px;font-size:12px;max-width:90vw}.panel{padding:22px;max-height:92vh}.dialogLayout{grid-template-columns:65px 1fr;gap:14px}.dialogLayout>img:last-child{display:none}.dialog h2{font-size:23px}.answers button{font-size:14px;padding:10px}.item{width:120px}.item img{height:90px}.inventory{grid-template-columns:1fr}.intro{padding:30px}.intro p{font-size:16px}.items{gap:9px;margin:15px 0}nav{right:14px;bottom:14px}}
.introFilm{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.intro:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#061321e8,#06132170 60%,#06132110);pointer-events:none}.intro .copy{position:relative;z-index:2}.kissScene{display:flex;align-items:center;justify-content:center;position:relative;height:110px;gap:100px;margin-bottom:14px}.kissScene img{width:90px;height:100px;object-fit:cover;border-radius:50%;border:1px solid #9c7742}.kissScene img:last-child{animation:leanKiss 1s ease-in-out both}.kissBook{position:absolute;left:calc(50% - 76px);top:15px;font-size:75px;color:#163453;text-shadow:1px 1px #b28c4d;animation:raiseBook .6s ease-out both}.kissHeart{position:absolute;top:15px;color:#b66565;font-size:50px;animation:flyKiss 1.2s ease-in-out both}@keyframes raiseBook{from{transform:translateY(60px) rotate(-30deg);opacity:0}to{transform:translateY(0) rotate(10deg);opacity:1}}@keyframes flyKiss{from{transform:translateX(65px) scale(.3);opacity:0}to{transform:translateX(-45px) scale(1);opacity:1}}@keyframes leanKiss{50%,100%{transform:translateX(-30px) rotate(-8deg)}}
.diaryPanel{max-width:1120px;padding:0;background:#44321f;border:2px solid #b18b50;overflow:auto}.diarySpread{display:grid;grid-template-columns:1fr 1fr;color:#3b3022;background:#e9dcc0}.diaryPage{padding:35px 38px;position:relative;background:linear-gradient(90deg,#d1be99 0%,#f4e7c9 5%,#eee0bf 95%,#c0a67c);min-height:520px}.diaryPage+.diaryPage{border-left:2px solid #8c704d;background:linear-gradient(90deg,#bca47f,#eddfbf 7%,#f3e6c9 95%,#cdb58d)}.diaryPage h2{color:#4c3b25;font-size:34px}.diaryPage h3{color:#684b2e}.diaryPage .eyebrow{color:#8b6b42;font-size:10px}.handwritten,.pencil,.diarySketch span,.writingNote{font-family:'Segoe Print','Comic Sans MS',cursive;font-size:18px;line-height:1.9}.pencil{color:#76634a;font-size:15px;transform:rotate(-2deg)}.diarySketch{display:flex;align-items:center;gap:20px;margin:25px 0}.diarySketch img{width:145px;height:145px;object-fit:contain;filter:sepia(.25)}.diarySketch span{font-size:15px;color:#675037;transform:rotate(-6deg)}.inkLine{height:1px;background:#93774f70;margin:22px 0}.pastedNote{position:relative;background:#f8eccc;padding:17px 20px;margin:24px 0;box-shadow:1px 4px 10px #654a2630;transform:rotate(-1deg)}.pastedNote:nth-of-type(even){transform:rotate(1deg)}.pastedNote p{font-size:14px;margin:8px 0 0}.tape{position:absolute;top:-9px;left:40%;width:65px;height:19px;background:#b9a37260;transform:rotate(4deg)}.diaryStamps{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}.diaryStamps span{font-size:10px;border:2px solid #89623890;padding:7px;transform:rotate(-5deg);color:#896238}.diaryActions{padding:20px 30px;margin:0;background:#172a39}.kissStamp{color:#a55450;display:flex;gap:10px;align-items:center;font-size:45px;transform:rotate(-8deg)}.kissStamp small{color:#965752;font-size:13px}.diaryWriting{background:#eee0bf;color:#3c3023}.writingNote{position:relative;padding:20px;background:repeating-linear-gradient(transparent,transparent 36px,#bca98160 37px,#bca98160 38px)}.writingNote p{animation:writeIn 1.7s ease both}.writingNote p+p{animation-delay:.7s}.writingQuill{float:right;color:#79552f;font-size:45px;animation:quill 1.5s ease-in-out infinite}.smallHeading{font-size:18px}@keyframes writeIn{from{opacity:0;clip-path:inset(0 100% 0 0)}to{opacity:1;clip-path:inset(0)}}@keyframes quill{50%{transform:translate(10px,4px) rotate(-9deg)}}@media(max-width:760px){.diarySpread{grid-template-columns:1fr}.diaryPage{min-height:0;padding:26px}.diaryPage+.diaryPage{border-left:0;border-top:2px solid #8c704d}.diarySketch img{width:110px;height:110px}.diaryPage h2{font-size:29px}.handwritten{font-size:16px}}

.diaryClose{position:sticky;float:right;top:10px;margin:10px 10px -50px 0;z-index:3;width:36px;height:36px;padding:0;font-size:23px}
.casketStage{height:290px;position:relative;display:flex;justify-content:center;align-items:end;margin:12px auto 20px;max-width:500px}.casketStage>img:first-child{width:280px;height:290px;object-fit:contain;transition:opacity .15s}.casketMini{width:130px;height:100px;object-fit:contain;position:absolute;left:25px;top:20px}.takenItem{position:absolute;width:100px;height:100px;object-fit:contain;left:calc(50% - 50px);top:75px;pointer-events:none}.takeSuccess{animation:takeOut .8s ease both}.takeWrong{animation:returnIt .8s ease both}.puzzleItems{display:flex;justify-content:center;gap:20px;margin:20px 0}.puzzleItem{width:165px;padding:10px;border-radius:12px}.puzzleItem img{display:block;width:100%;height:115px;object-fit:contain}.puzzleItem span{display:block;font-size:15px}.puzzleItem small{font-size:11px;display:block;margin-top:5px}.puzzleItem.selected{border:3px solid #f6d492;background:#38546a}.puzzleItem.assigned{opacity:.55;border-color:#91b792}.recipients{display:flex;justify-content:center;gap:20px}.recipients button{display:flex;align-items:center;gap:12px;padding:10px 15px}.recipients img{width:65px;height:75px;object-fit:contain}.puzzleMessage{min-height:45px;text-align:center;max-width:600px;margin:20px auto 0;color:#e1ca9b}.dogPortrait{object-fit:contain;background:#172c3a}.resultActors{display:flex;align-items:end;justify-content:center;gap:20px;overflow:hidden;min-height:190px}.resultActors img{width:140px;height:190px;object-fit:contain}.resultActors img:nth-child(2){width:120px;height:100px}.dogWalk{animation:dogToPillow 2s ease both}.bullEat{animation:bullNod 1.5s ease-in-out infinite}.eggPicture{width:110px;height:110px;object-fit:contain;float:right;margin:0 0 20px 20px}.moviePanel{background:#000;max-width:1200px;padding:15px}.movieVideo{width:100%;max-height:74vh;background:#000}.moviePanel .actions{justify-content:flex-end;margin-top:10px}.smallSketch{float:right;margin:0 0 10px 10px}.smallSketch img{width:80px;height:80px}.marginFind{display:flex;align-items:center;gap:15px;border-top:1px dashed #9a7e5755;padding:20px 0;transform:rotate(-1deg)}.marginFind img{width:60px;height:65px;object-fit:contain}.marginFind p{font:14px/1.6 'Segoe Print',Georgia,serif;margin:5px 0 0}.diaryDogStamp{display:inline-block;color:#57735a;border:2px solid #57735a;padding:7px;transform:rotate(-6deg);font-size:12px}.souvenir{border-top:1px solid #d4b56d45;padding-top:20px;margin-top:25px}.stoneAside{font-family:'Segoe Print',cursive;color:#d8bf8f;margin-top:18px}.dogResult{text-align:center}@keyframes takeOut{from{transform:translateY(65px) scale(.4);opacity:0}to{transform:translateY(-75px) scale(1.2);opacity:1}}@keyframes returnIt{0%{transform:translateY(55px) scale(.4);opacity:0}50%{transform:translateY(-20px) scale(1);opacity:1}100%{transform:translateY(65px) scale(.4);opacity:0}}@keyframes dogToPillow{from{transform:translateX(-70px)}to{transform:translateX(40px)}}@keyframes bullNod{50%{transform:translateY(5px) rotate(-2deg)}}@media(max-width:760px){.casketStage{height:210px}.casketStage>img:first-child{width:210px;height:210px}.casketMini{width:70px;height:65px;left:10px;top:10px}.puzzleItems,.recipients{gap:7px}.puzzleItem{width:29%;padding:7px}.puzzleItem img{height:80px}.puzzleItem span{font-size:12px}.recipients button{flex-direction:column;gap:3px;padding:7px;font-size:12px;min-width:80px}.recipients img{width:55px;height:55px}.resultActors img{width:95px;height:140px}.resultActors img:nth-child(2){width:75px}.resultActors{gap:5px;min-height:145px}.items .item{width:100px}.items .item img{height:85px}}
.resultActors{position:relative;display:block;height:205px;min-height:205px;max-width:540px;margin:auto}.resultActors img{position:absolute;object-position:center bottom}.resultActors img:first-child{width:120px;height:112px;left:calc(50% - 125px);bottom:27px;z-index:2}.resultActors img:nth-child(2){width:145px;height:100px;left:calc(50% - 140px);bottom:0}.resultActors img:nth-child(3){width:170px;height:195px;left:calc(50% + 50px);bottom:0}@keyframes dogToPillow{from{transform:translateX(-90px)}to{transform:translateX(0)}}@media(max-width:760px){.resultActors img:first-child{left:calc(50% - 100px);width:90px;height:85px;bottom:20px}.resultActors img:nth-child(2){left:calc(50% - 115px);width:120px;height:85px}.resultActors img:nth-child(3){left:calc(50% + 25px);width:130px;height:155px}.resultActors{height:170px;min-height:170px}}
#achievement{position:fixed;right:30px;top:100px;z-index:4;width:360px;min-height:145px;display:flex;gap:18px;align-items:center;padding:20px 24px 20px 15px;border:1px solid #e2bd75;border-radius:5px 25px 5px 25px;background:linear-gradient(125deg,#243d4ff5,#0b1a2bf5 75%);box-shadow:0 12px 35px #0006,inset 0 0 0 4px #ab864027,inset 0 0 35px #d4b56d15;pointer-events:none;overflow:hidden}#achievement:after{content:'';position:absolute;inset:-80px;background:linear-gradient(110deg,transparent 40%,#ffe6a033 49%,transparent 58%);animation:achievementShine 2s ease .35s both}.achievementSeal{flex-shrink:0;width:82px;height:82px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:3px double #e7c583;background:radial-gradient(circle,#b18a42,#3e3420 70%);box-shadow:0 0 0 5px #d4b56d20,0 5px 14px #0007}.achievementSeal img{width:68px;height:68px;object-fit:contain;filter:drop-shadow(0 2px 3px #0008)}#achievement strong{font:23px Georgia,serif;color:#ffe4ac;display:block;margin:7px 0}#achievement p{font-size:13px;line-height:1.4;margin:0 0 6px;color:#e4d4b7}#achievement small{font-size:10px;color:#b9a77c;letter-spacing:1px}.achievementOverline{font-size:9px;letter-spacing:3px;color:#dcb76c}.achievementEnter{animation:achievementIn .55s cubic-bezier(.2,.8,.2,1) both}.achievementExit{animation:achievementOut .6s ease both}.achievementHidden{visibility:hidden}.diaryDogStamp{display:inline-flex;align-items:center;gap:10px;border:3px double #8f6c35;border-radius:50% 8px 50% 8px;padding:10px 16px;background:#c5a86a20;color:#6e552c}.diaryDogStamp img{width:30px;height:30px;object-fit:contain;filter:sepia(1);opacity:.65}.journalGlint{animation:journalGlint 1s ease both}@keyframes achievementIn{from{opacity:0;transform:translateX(60px) scale(.95)}to{opacity:1;transform:translateX(0) scale(1)}}@keyframes achievementOut{to{opacity:0;transform:translateY(-15px) scale(.95)}}@keyframes achievementShine{from{transform:translateX(-70%)}to{transform:translateX(70%)}}@keyframes journalGlint{50%{box-shadow:0 0 28px #f4ce7a99;border-color:#ffe5ab}}@media(max-width:760px){#achievement{width:300px;right:14px;top:85px;padding:14px;gap:12px;min-height:115px}.achievementSeal{width:65px;height:65px}.achievementSeal img{width:53px;height:53px}#achievement strong{font-size:20px}}

.gamePaused *{animation-play-state:paused!important}
