/* Centered opening; interaction is attached to the painted keyboard. */
:root{--paper:#f6f1e7;--ink:#414737;--muted:#737965;--green:#5d674f;--line:#72795c30}
*{box-sizing:border-box}html{color-scheme:light}body{margin:0;background:var(--paper);color:var(--ink);font-family:"PingFang SC","Microsoft YaHei",sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid #7c8465;outline-offset:6px}button:disabled{cursor:wait;opacity:.55}[hidden]{display:none!important}
.header{height:64px;padding:0 5.5%;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:14px;font:19px "Kaiti SC","STKaiti",serif;letter-spacing:.22em}.seal{background:#7b836e;color:#fffbed;padding:5px;font:12px/1.15 serif;letter-spacing:0}nav{display:flex;gap:25px;align-items:center}nav button{border:0;background:none;color:#59624e;font-size:14px;min-height:44px}#help{border:1px solid #7e85684a;border-radius:50%;min-height:32px;width:32px}

main{position:relative;isolation:isolate;min-height:calc(100svh - 64px);display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;padding:24px 0 68px}
.heading{position:relative;z-index:2;text-align:center;padding:0 24px;width:100%}h1{margin:0 auto 16px;width:220px;line-height:0}h1 img{width:100%;height:auto}.quote{margin:0 auto;max-width:680px;color:#56604c;font:18px/1.9 "Kaiti SC","STKaiti","Songti SC",serif;letter-spacing:.08em}
.scene-wrap{position:relative;flex:none;width:min(940px,calc((100svh - 340px)*1.777),94vw);min-width:620px;margin:24px auto 0}
.scene{position:relative;aspect-ratio:1672/941;isolation:isolate;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 7%,#000 94%,transparent),linear-gradient(0deg,transparent,#000 8%,#000 88%,transparent);mask-composite:intersect}.layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;user-select:none}.background{z-index:0}.desk{z-index:1}.person{z-index:2;transition:opacity .9s}.tired{opacity:0}.chair{z-index:3;width:99.940191%}.tail{position:absolute;z-index:4;left:58.3%;top:26%;width:10%;height:30%;opacity:0;transform:translateY(30%);transition:opacity 1s,transform 1s}.tail img{width:100%;height:100%;object-fit:contain;transform:rotate(180deg)}.glow{z-index:5;opacity:.65}.screen{z-index:6}.frame{z-index:7}.chat{position:absolute;top:0;left:0;width:480px;height:250px;transform-origin:0 0;z-index:8;display:flex;align-items:center;justify-content:flex-end;padding:30px}.message{display:none;color:#49543e;background:var(--cue-paper);border:1px solid var(--cue-rim);border-radius:6px;padding:10px 18px;font-size:34px}.cursor{width:3px;height:26px;background:#7f8c75;margin-right:36px;animation:blink 1.5s steps(1) infinite}[data-phase="entering"] .message,[data-phase="reply"] .message,[data-phase="curiosity"] .message{display:block}[data-phase="entering"] .cursor,[data-phase="reply"] .cursor,[data-phase="curiosity"] .cursor{display:none}[data-phase="entering"] .normal,[data-phase="curiosity"] .normal{opacity:0}[data-phase="entering"] .tired,[data-phase="curiosity"] .tired{opacity:1}[data-phase="entering"] .tail,[data-phase="curiosity"] .tail{opacity:1;transform:none}[data-phase="curiosity"] .tail img{animation:sway 4s ease-in-out infinite;transform-origin:50% 35%}.tail-button{position:absolute;z-index:9;left:58.8%;top:26%;width:10%;height:20%;min-width:44px;min-height:44px;border:0;border-radius:50%;background:none}.tail-button:hover,.tail-button:focus-visible{outline:none}.tail-note{position:absolute;left:71%;top:30%;font:var(--cue-size) "Kaiti SC","STKaiti",serif;color:#817b5c;opacity:0;transition:opacity 1s}[data-phase="curiosity"] .tail-note{opacity:1}

.scene-hint{position:absolute;min-height:0;padding:0;z-index:10;top:10%;left:43%;right:6%;margin:0;text-align:center;color:#62664f;font:16px/1.9 "Kaiti SC","STKaiti",serif;letter-spacing:.06em;pointer-events:none;text-wrap:balance}
.keyboard-touch{position:absolute;z-index:9;left:36.7%;top:74.6%;width:26.5%;height:15%;min-height:44px;padding:0;border:0;border-radius:5px;background:transparent;cursor:pointer}.keyboard-touch::after{content:"";position:absolute;inset:0;clip-path:polygon(18% 0,100% 43%,81% 100%,0 53%);background:#fff8d8;opacity:0;transition:opacity .2s}.keyboard-touch:hover::after,.keyboard-touch:focus-visible::after{opacity:.23}.keyboard-touch:focus-visible{outline:2px dashed #697455;outline-offset:4px}.keyboard-cue{position:absolute;z-index:10;left:70.5%;top:81%;letter-spacing:.12em;white-space:nowrap;cursor:pointer;transform:translateX(-50%);touch-action:manipulation}[data-phase="entering"] .keyboard-cue,[data-phase="reply"] .keyboard-cue,[data-phase="curiosity"] .keyboard-cue{display:none}
.chapter{position:absolute;left:5.5%;bottom:24px;display:flex;gap:13px;align-items:center;font-size:12px;color:#8b907e}.rule{width:30px;height:1px;background:#c2c5b4}.chapter-step[aria-current]{color:#4a5840;font-weight:600}.edition{position:absolute;right:5.5%;bottom:24px;font:13px "Kaiti SC","STKaiti",serif;color:#8a8e7c;letter-spacing:.15em}
footer{min-height:50px;padding:13px 5.5%;display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid var(--line);font:13px/1.8 "Kaiti SC","STKaiti",serif;letter-spacing:.06em;color:#808473}.keyboard{margin-left:auto;font:var(--cue-size)/1.35 sans-serif;white-space:nowrap;letter-spacing:0}
.primary{display:inline-flex;justify-content:center;align-items:center;min-height:48px;padding:12px 28px;border:1px solid var(--green);border-radius:2px;background:var(--green);color:#fffbee;font-size:15px;letter-spacing:.08em}.primary:hover{background:#47523d}.secondary{background:none;border:0;border-bottom:1px solid #9ca48c60;font-size:14px;color:#71775f;padding:8px 0}.eyebrow{font-size:12px;letter-spacing:.18em;color:#7d806e}
dialog{width:min(480px,calc(100% - 36px));padding:48px 36px;border:1px solid #c9c9b6;border-radius:4px;background:var(--paper);color:var(--ink);text-align:center;box-shadow:0 22px 100px #20291930}dialog::backdrop{background:#30362960;backdrop-filter:blur(5px)}dialog h2{font:28px/1.6 "Kaiti SC","STKaiti",serif}dialog p{font-size:16px;line-height:1.9;color:#70765f}dialog .eyebrow{display:block;font-size:12px}dialog .secondary{display:block;margin:12px auto 0}.close{position:absolute;top:12px;right:12px;width:36px;height:36px;background:none;border:0;font-size:26px;color:#71775f}
@keyframes blink{50%{opacity:0}}@keyframes sway{0%,100%{transform:rotate(177deg)}50%{transform:rotate(185deg)}}

@media(min-width:1600px) and (min-height:950px){h1{width:260px}.quote{font-size:20px;max-width:760px}.scene-wrap{width:min(1050px,calc((100svh - 370px)*1.777),92vw)}}
@media(max-width:700px){.header{height:60px;padding:0 6%}nav{gap:16px}main{min-height:calc(100svh - 60px);padding:30px 0 72px}.heading{padding:0 7%}h1{width:210px;margin-bottom:20px}.quote{font-size:17px;letter-spacing:.04em;max-width:24em}.scene-wrap{width:112%;min-width:0;margin:30px -6% 16px}.scene-hint{top:5%;left:39%;right:8%;font-size:14px;letter-spacing:0;line-height:1.7}.keyboard-cue{min-height:38px;padding:7px 11px;top:81%;left:75%;border-radius:10px}.tail-note{left:71%;top:31%;width:20%;line-height:1.7}.chapter{left:6%;gap:8px}.rule{width:20px}.edition{right:6%;font-size:11px;letter-spacing:.05em}footer{padding:13px 6%;font-size:12px}.keyboard{display:none}}
@media(max-height:650px) and (min-width:701px){main{padding-top:16px}h1{width:160px;margin-bottom:8px}.scene-wrap{min-width:520px;margin-top:12px}.quote{font-size:17px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Glow follows the PNG alpha, so only the painted tail lights up. */
[data-phase="curiosity"] .tail img{filter:drop-shadow(0 0 3px #fff4d5b0) drop-shadow(0 0 8px #ffe5ad70);transition:filter .35s}
.scene-wrap:has(.tail-button:hover) .tail img,.scene-wrap:has(.tail-button:focus-visible) .tail img{filter:drop-shadow(0 0 4px #fff7dd) drop-shadow(0 0 12px #ffe7b4a0)}
[data-phase="entering"] .tail-note{opacity:0;pointer-events:none}

.effect-definitions{position:absolute;pointer-events:none;overflow:hidden}



.keyboard-cue{left:50%;top:75%}
@media(max-width:700px){.keyboard-cue{left:51%;top:73%}}

/* Cat arrival and the complete cover share one continuous pre-ripple scene. */
#openingArrival{position:fixed;inset:0;width:100vw;height:100dvh;z-index:900;pointer-events:none}
.album-arriving .heading,.album-arriving .header,.album-arriving footer,.album-arriving .chapter,.album-arriving .edition,.album-arriving .scene-hint{opacity:calc(1 - var(--arrival-focus,0))}
.album-arriving .tail-note,.album-arriving .tail-button{visibility:hidden}

@media (min-width:960px) and (min-aspect-ratio:8/5) and (max-aspect-ratio:2/1){
  #opening{height:calc(100svh - 64px);padding:6px 0 44px}
  #opening h1{width:185px;margin-bottom:6px}
  #opening .scene-wrap{width:min(92vw,calc((100svh - 268px)*1672/941));min-width:0;margin-top:8px}
}
