:root{color-scheme:dark;font-family:Microsoft YaHei,PingFang SC,system-ui,sans-serif;background:#201b26;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}body{background:radial-gradient(ellipse at 50% 46%,#49323c,#201b26 82%);touch-action:none;user-select:none}#app{position:relative}#app canvas{display:block;image-rendering:pixelated;image-rendering:crisp-edges;outline:1px solid rgba(255,235,213,.16);box-shadow:0 18px 60px #0a070e8c}#rotate-note{display:none;position:fixed;z-index:10;top:max(12px,env(safe-area-inset-top));left:50%;transform:translate(-50%);padding:7px 11px;border:2px solid #7c5260;border-radius:4px;color:#543b43;background:#fff1dc;font-size:12px;box-shadow:0 3px #432f39}@media(orientation:portrait)and (max-width:760px){#rotate-note{display:block}}.room-overlay{--ink: #523843;--cream: #fff1dc;--rose: #a75970;color:var(--ink);border:2px solid var(--ink);max-width:calc(100vw - 28px);max-height:calc(100dvh - 24px);overscroll-behavior:contain;touch-action:pan-y;animation:room-overlay-appear .22s ease-out both}.room-overlay::backdrop{background:#241c25b0;animation:room-shade .2s ease-out both}.room-overlay button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.room-overlay button:focus-visible,.phone-screen:focus-visible{outline:2px dashed #76435b;outline-offset:3px}.room-overlay button:disabled{cursor:default}.room-overlay [hidden]{display:none!important}.room-close{display:grid;width:36px;height:36px;padding:0;place-items:center;flex-shrink:0;background:var(--cream);border:1px solid var(--rose);box-shadow:inset 0 2px #fff9ed,0 2px #b07080;line-height:1}.room-overlay .room-close{font-size:22px}.room-close:hover{background:#ffdfdf}.bus-ride-recording{width:832px;padding:12px;background:var(--cream);box-shadow:0 5px #9c5369,0 8px #633d50}.bus-ride-recording-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.bus-ride-recording-heading h2{margin:0;font-size:18px}.bus-ride-recording video{display:block;width:100%;max-height:calc(100dvh - 110px);background:#302734}.album-book{--album-photo-max-height: clamp(90px, 34dvh, 256px);width:756px;padding:13px 15px 12px;background:#d9919e;box-shadow:inset 0 0 0 2px #f6b4bd,0 5px #9c5369,0 8px #633d50,0 15px 44px #2b1c29ad;animation-name:album-open;animation-duration:.33s}.album-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 11px}.album-heading h2{margin:0;color:#4d2f3b;font:700 clamp(16px,3vw,24px)/1.25 "KaiTi","Kaiti SC","Microsoft YaHei",serif;text-shadow:1px 1px #ffc9cd}.album-progress{margin:0 2px 0 auto;padding:5px 8px;background:#6d4551;border:1px solid #a26973;color:var(--cream);font-size:12px;white-space:nowrap}.room-progress-earned{animation:album-earned .65s ease-out}.album-reading{position:relative;perspective:1200px;touch-action:pan-y}.album-spread{display:grid;position:relative;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:clamp(175px,41dvh,370px);background:#f9ebcc;border:1px solid #b88875;box-shadow:0 2px #efd5b2,0 3px #be8d77,0 5px #f3dbb9,0 6px #a06a66}.album-spread:after{content:"";position:absolute;left:calc(50% - 2px);top:0;bottom:0;width:4px;background:#aa7566;border-inline:1px solid #ddbb95;pointer-events:none}.album-paper{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px 33px;gap:9px;background-color:#fff0d3;background-image:radial-gradient(#c797652c .7px,transparent 1px);background-size:5px 5px;box-shadow:inset 0 0 0 4px #ffffff27}.album-paper-left{border-right:6px solid #f0d4b0}.album-paper-right{border-left:6px solid #f3dcbb}.album-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,100px),1fr));place-items:center;gap:12px;width:100%}.album-frame{position:relative;margin:0;min-width:0;max-width:100%;padding:7px;background:#fff9e9;border:1px solid #c89d86;box-shadow:inset 0 0 0 2px #f3e0c6,2px 3px #b28b798a}.album-frame:before,.album-frame:after{content:"";position:absolute;width:21px;height:9px;background:repeating-linear-gradient(90deg,#e8b2a6dd 0 3px,#efc2b5dd 3px 5px);z-index:1;pointer-events:none}.album-frame:before{top:-2px;left:-5px;transform:rotate(-21deg)}.album-frame:after{right:-4px;bottom:4px;transform:rotate(-24deg)}.album-photo{display:grid;position:relative;place-items:center;overflow:hidden;border:1px solid #d3bda5;background:#eadfc8}.album-photo-image{display:block;max-width:100%;max-height:var(--album-photo-max-height);object-fit:contain}.album-placeholder{display:grid;place-items:center;width:min(190px,25vw);max-width:100%;height:var(--album-photo-max-height)}.album-placeholder:before{content:"";width:min(70%,80px);height:min(75%,49px);background:#b8b599;clip-path:polygon(0 88%,0 72%,12% 72%,12% 57%,26% 57%,26% 42%,39% 42%,39% 57%,51% 57%,51% 72%,59% 72%,59% 57%,71% 57%,71% 27%,84% 27%,84% 42%,92% 42%,92% 57%,100% 57%,100% 88%)}.album-flower{position:relative;display:block;width:40px;height:39px;background:#cf8794;clip-path:polygon(39% 0,62% 0,62% 12%,83% 12%,83% 39%,65% 39%,65% 54%,54% 54%,54% 75%,71% 75%,71% 63%,96% 63%,96% 76%,79% 76%,79% 89%,54% 89%,54% 100%,44% 100%,44% 84%,22% 84%,22% 72%,0 72%,0 58%,23% 58%,23% 70%,44% 70%,44% 52%,31% 52%,31% 40%,18% 40%,18% 12%,39% 12%);background:linear-gradient(#d28d9c 0 52%,#8c9b73 52%)}.album-flower:after{content:"";position:absolute;inset:8px 15px auto;height:7px;background:#f5d994}.album-edge{position:absolute;top:2px;bottom:2px;display:grid;place-items:center;width:38px;border:0;color:#9d6270;background:transparent}.room-overlay .album-edge{font:700 34px/1 Georgia,serif}.album-edge-left{left:1px}.album-edge-right{right:1px}.album-edge:hover:not(:disabled){background:#eac7ad83}.album-edge:disabled{opacity:.32}.album-page-index{display:block;padding-top:12px;text-align:center;font:700 14px/1 Courier New,monospace}.album-paper-keepsake{padding-bottom:58px}.album-keepsake{position:relative;display:grid;width:min(100%,246px);align-self:flex-start;justify-items:center}.album-keepsake-print{position:absolute;right:14px;bottom:8px;opacity:.42;transform:rotate(18deg) scale(.64)}.album-secret{position:relative;display:grid;width:68px;height:62px;place-items:center}.album-message{position:absolute;inset:calc(100% + 6px) 0 auto;margin:0;color:#894359;text-align:center;text-wrap:balance;font-size:13px;font-weight:700;line-height:1.45}.album-message:not(:empty){animation:room-overlay-appear .26s ease-out both}.album-sticker{position:absolute;inset:4px 7px;display:grid;place-items:center;padding:0;border:1px solid #d29a9b;border-radius:5px 2px 7px;color:#9b6773;background:#ffe7d3;box-shadow:inset 0 0 0 2px #fff3df,inset 0 0 0 4px #f4c9b9,1px 2px #c2918266;transform:rotate(-11deg);transform-origin:80% 18%}.album-sticker .album-flower{transform:scale(.77)}.album-sticker:not(:disabled):after{content:"";position:absolute;inset:-2px;border:2px solid #fff1d3;border-radius:inherit;box-shadow:0 0 0 2px #f6c6a4;pointer-events:none;animation:album-sticker-edge 2.8s ease-in-out infinite}.album-sticker:hover:not(:disabled){background:#ffe1d4;transform:rotate(-7deg) translateY(-2px)}[data-sticker-state=peeling] .album-sticker{animation:album-peel var(--peel-duration) ease-in-out both}[data-sticker-state=peeled] .album-sticker{transform:translate(36px,-27px) rotate(32deg) scale(.71)}.album-heart{position:relative;width:48px;height:40px;transform:translateY(-7px)}.album-heart:before{content:"";position:absolute;inset:5px 8px;background:#d86988;box-shadow:inset 4px 4px #ffb8c9,inset -4px -4px #aa5775;clip-path:polygon(0 12%,13% 12%,13% 0,37% 0,37% 12%,63% 12%,63% 0,87% 0,87% 12%,100% 12%,100% 49%,87% 49%,87% 62%,75% 62%,75% 75%,63% 75%,63% 88%,50% 100%,37% 88%,37% 75%,25% 75%,25% 62%,13% 62%,13% 49%,0 49%)}.album-heart-rising{animation:album-heart-rise var(--heart-rise-duration) ease-out both}.album-heart-rising:after{content:"✦";position:absolute;top:-4px;right:0;color:#a96544;font-size:17px;opacity:0;animation:heart-glint .46s ease-in-out 2}.phone-shell{width:328px;padding:13px 17px 17px;background:#e58aa8;box-shadow:inset 0 0 0 3px #f6aac0,inset -5px -6px #b65d82,0 5px #984960,0 12px 38px #2b1c29ad}.phone-display-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.phone-screen{position:relative;min-height:65px;padding:7px 9px;background:repeating-linear-gradient(0deg,#bddecc 0 3px,#b8dbc8 3px 4px);border:2px solid #575359;box-shadow:inset 2px 2px #97b8ab,0 2px #f9b3c7;color:#304849}.phone-screen-label{display:block;font-size:12px;font-weight:700}.phone-number{display:block;padding-top:1px;font:700 clamp(21px,5vw,29px)/1.25 "Courier New",monospace;letter-spacing:.03em}.phone-face{display:flex;align-items:flex-start;gap:2px;position:absolute;top:8px;right:10px}.phone-eye{width:4px;height:5px;background:#395263;box-shadow:inset 1px 1px #f6f8e6}.phone-smile{width:8px;height:4px;margin-top:5px;border:2px solid #ba6084;border-top:0}.phone-message{display:grid;align-content:center;gap:1px;min-height:66px;padding:5px 1px;font-size:12px;line-height:1.4}.phone-message p{margin:0}[data-phone-state=error] .phone-message{color:#64293d;font-weight:700}[data-phone-state=dialing] .phone-face{animation:heart-glint .49s ease-in-out infinite alternate}[data-phone-state=connected] .phone-message p{animation:room-overlay-appear .21s ease-out both}[data-phone-state=connected] .phone-message p:nth-child(2){animation-delay:.16s}[data-phone-state=connected] .phone-message p:nth-child(3){animation-delay:.36s}.phone-reward{display:block;margin:0 0 8px;padding:5px 9px;background:#fff4cf;border:1px solid #9e6273;font-size:12px;font-weight:700;text-align:center;animation:room-overlay-appear .22s .5s ease-out both,album-earned .65s .58s ease-out}.phone-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.phone-key,.phone-dial,.cake-note-action{min-height:39px;padding:4px 8px;background:#fff0cc;border:1px solid #a25670;box-shadow:inset 0 2px #fff6e5,inset 0 -2px #d49f9d,0 2px #a85c78}.room-overlay .phone-key{font:700 21px/1 Courier New,monospace}.room-overlay .phone-utility{font:600 12px/1 Microsoft YaHei,sans-serif}.phone-key:nth-child(3n+2){background:#d9eed4}.phone-key:nth-child(3n){background:#f9cddd}.phone-key:hover:not(:disabled),.phone-dial:hover:not(:disabled){filter:brightness(1.08)}.phone-key:disabled,.phone-dial:disabled{opacity:.65}.phone-actions{display:grid;margin-top:9px}.phone-dial{background:#c2dfbf}.cake-note{width:368px;padding:14px 25px 19px;text-align:center;background:var(--cream);box-shadow:inset 0 0 0 3px #dfaaa5,0 4px #936272,0 10px 35px #241c2577}.cake-note-star{display:block;color:#a75970;font-size:20px}.cake-note-copy{margin:6px 0 15px;font-size:14px;line-height:1.5}.cake-note-action{min-width:118px;font-weight:700}.cake-note-action:hover{background:#fbd5d5}.cake-anchored{position:fixed;inset:var(--cake-panel-top, 54%) 0 auto;margin:0 auto;max-height:var(--cake-panel-max-height, calc(100dvh - 20px) )}.cake-anchored::backdrop{background:transparent}.cake-wish{width:390px;padding:13px 17px 14px}.cake-wish .room-close{position:absolute;top:7px;right:7px;width:29px;height:29px}.wish-form{display:grid;gap:8px;justify-items:center}.wish-label{padding:1px 23px;font-size:15px;font-weight:700}.wish-field{width:100%;min-height:54px;padding:7px 10px;border:1px solid #a75970;outline-offset:2px;color:#513743;background:#fff9ec;box-shadow:inset 2px 2px #efd4c3;font:16px/1.3 Microsoft YaHei,PingFang SC,sans-serif;resize:none;touch-action:auto;user-select:text}.wish-field:focus-visible{outline:2px solid #b57184}.cake-result{width:415px;padding:12px 14px 14px}.cake-result-copy{margin:4px 0 12px;font-size:14px;line-height:1.5}.cake-result-copy p{margin:2px 0}.cake-result-copy p:first-child{font-weight:700}.cake-result-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:center}.cake-result-actions .cake-note-action{min-width:106px}.cake-result-actions .cake-result-secondary{background:#f7e0c9}@keyframes room-shade{0%{opacity:0}to{opacity:1}}@keyframes room-overlay-appear{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes album-open{0%{opacity:0;transform:perspective(1100px) rotateX(24deg) scale(.86)}to{opacity:1;transform:none}}@keyframes album-earned{0%,to{filter:brightness(1)}35%{filter:brightness(1.44)}}@keyframes album-sticker-edge{0%,to{opacity:.12}50%{opacity:.85}}@keyframes album-peel{0%{transform:rotate(-11deg)}14%{transform:rotate(-16deg)}30%{transform:rotate(-5deg)}49%{transform:translate(7px,-7px) rotate(-3deg) rotateY(-33deg)}to{transform:translate(36px,-27px) rotate(32deg) scale(.71)}}@keyframes album-heart-rise{0%{opacity:0;transform:translateY(8px) scale(.68)}68%{opacity:1;transform:translateY(-10px) scale(1.12)}to{opacity:1;transform:translateY(-7px) scale(1)}}@keyframes heart-glint{0%,to{opacity:.25}50%{opacity:1}}@media(max-width:520px){.album-book{--album-photo-max-height: clamp(62px, 22dvh, 120px);padding:9px}.album-heading{gap:5px}.album-progress{padding:4px;font-size:11px}.album-paper{padding:14px 20px}.album-edge{width:25px}.album-frame{padding:4px}.album-message{font-size:11px}}@media(max-height:500px)and (min-width:500px){.phone-shell[open]{display:grid;grid-template-columns:1fr 1.1fr;gap:9px 13px;width:452px}.phone-number{font-size:18px}.phone-key,.phone-dial{min-height:32px}.phone-keypad{gap:5px}.phone-actions{margin-top:6px}.album-spread{min-height:170px}.album-paper{padding-top:10px;padding-bottom:10px}.album-book{--album-photo-max-height: clamp(62px, 30dvh, 128px)}.album-paper-keepsake{padding-bottom:48px}}@media(prefers-reduced-motion:reduce){.room-overlay,.room-overlay::backdrop,.room-overlay *,.room-overlay *:after{animation-duration:1ms!important}.album-sticker:not(:disabled):after{animation:none;opacity:.66}}
