*{box-sizing:border-box}body{margin:0;background:#182527;color:#efe9d9;font-family:system-ui,-apple-system,'Noto Sans TC',sans-serif}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid #e3bd72;outline-offset:4px}button:disabled{opacity:.5}.game{max-width:1080px;margin:auto;padding:24px 36px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.brand{display:flex;gap:13px;align-items:center}.crest{font:italic 34px Georgia;border:1px solid #b99f6b;border-radius:50% 50% 44% 44%;padding:3px 14px;color:#dfc389}h1{font-family:serif;font-size:25px;font-weight:500;letter-spacing:5px;margin:0 0 4px}.brand small{font-size:10px;letter-spacing:3px;color:#b8b8a8}header button{color:#e3d0a7;border:1px solid #62706a;background:#26383a;padding:12px 18px;border-radius:30px;font-size:14px}.daybar{display:flex;justify-content:space-between;padding:12px 4px 15px;font-size:15px}.daybar small{color:#9ea9a1;font-size:13px}#clock{color:#d4c5a5}.scene{position:relative;aspect-ratio:3/2;overflow:hidden;border-radius:22px;border:4px solid #43514b;background:#5b5650;isolation:isolate}.room{width:100%;height:100%;object-fit:cover;display:block}.night{position:absolute;inset:0;background:#182a52;mix-blend-mode:multiply;opacity:0;pointer-events:none;transition:opacity 1s}.scene-title{position:absolute;top:18px;left:22px;color:#fff4db;font-family:serif;font-size:16px;text-shadow:0 2px 6px #000;background:#26312d80;padding:8px 14px;border-radius:20px}.hotspot{position:absolute;border:1px solid #fff4c780;border-radius:50%;background:#293730c9;color:#ffe6aa;width:40px;height:40px;font-size:23px;box-shadow:0 0 0 6px #ffffff0c;z-index:3}.hotspot span{position:absolute;top:43px;left:50%;transform:translateX(-50%);font-size:12px;white-space:nowrap;background:#20312be6;padding:3px 8px;border-radius:9px}.bed{left:30%;top:47%}.window{left:65%;top:27%}.fire{right:10%;top:49%}.person{position:absolute;bottom:8%;width:11%;padding:0;border:0;background:none;transition:left 1.3s ease,bottom 1.3s ease;z-index:4;filter:drop-shadow(0 7px 4px #0004)}.person img{width:100%;display:block;border-radius:48% 48% 35% 35%;border:2px solid #eedfbd;animation:breathe 3.5s ease-in-out infinite;background:#fff}.person.child{width:8.5%;bottom:7%}.person span{display:inline-block;font-size:12px;background:#24352fed;padding:4px 9px;border-radius:12px;color:#f5e8ca;margin-top:3px;white-space:nowrap}.person.walking img{animation:walk .22s infinite alternate}.person.active img{border-color:#edb85b}.floor-hint{position:absolute;bottom:8px;left:0;right:0;text-align:center;font-size:12px;color:#f9f2e1;text-shadow:0 1px 4px #111;pointer-events:none}.dashboard{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:28px 4px 20px}.eyebrow{font-size:10px;letter-spacing:3px;color:#a9b6a8}h2{font:24px serif;margin:8px 0 10px}.mood p{font-size:14px;color:#b5c0b4;margin:0;line-height:1.7}.stats{display:flex;gap:26px;text-align:center}.stats span{display:block;font-size:12px;color:#b5c0b4}.stats strong{display:block;font:26px Georgia;color:#e4c78d;margin-top:8px}.actions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.actions button{padding:16px 8px;background:#2b3d3d;border:1px solid #506158;border-radius:14px;color:#e1c48b;font-size:26px;transition:background .2s,transform .2s}.actions button:hover{background:#3c5149;transform:translateY(-2px)}.actions span{display:block;font-size:14px;color:#ece8d8;margin-top:8px}.journal{padding:22px 4px 10px}.journal>div{display:flex;align-items:center;justify-content:space-between}h3{font-size:15px;font-weight:500}#save-status{font-size:12px;color:#a8b6a5}ul{list-style:none;padding:0;margin:0}li{font-size:14px;color:#b9c6b6;padding:9px 0;border-bottom:1px solid #344440;line-height:1.6}li::before{content:'✧';margin-right:10px;color:#c6aa76}footer{font-size:12px;color:#93a496;padding:24px 0;line-height:2}footer button{border:0;background:none;color:#d5c291;text-decoration:underline;font-size:12px;padding:5px}dialog{padding:0;border:1px solid #c0aa7d;border-radius:22px;width:min(720px,94vw);max-height:88dvh;overflow:auto;color:#293a35;background:#f7f1e5;box-shadow:0 20px 90px #0008}dialog[open]{display:grid;grid-template-columns:42% 58%}dialog::backdrop{background:#101e24b8;backdrop-filter:blur(4px)}.portrait{position:relative;background:#fff;min-height:400px;overflow:hidden}.portrait img{width:100%;height:100%;object-fit:cover;object-position:top}.portrait span{position:absolute;bottom:15px;left:15px;background:#253b35ed;color:#f3deb4;padding:8px 16px;border-radius:20px;font-size:15px}.speech{padding:40px 28px 26px;align-self:center}.speech small{color:#8b7958;font-size:12px}.speech p{font-family:serif;font-size:20px;line-height:1.9;min-height:110px}#choices{display:grid;gap:10px}#choices button{background:#fffaf0;border:1px solid #ccbc9d;border-radius:12px;padding:13px;text-align:left;color:#344b40;font-size:15px}#choices button:hover{background:#e6dbc4}#close-dialog{position:absolute;top:8px;right:10px;background:#f5efe5;border:none;border-radius:50%;width:32px;height:32px;z-index:3;font-size:24px;color:#435a4b}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#f0dfbb;color:#233b32;border-radius:20px;padding:12px 22px;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:10;max-width:90vw}#toast.show{opacity:1}@keyframes breathe{50%{transform:translateY(-3px)}}@keyframes walk{to{transform:rotate(4deg) translateY(-5px)}}@media(max-width:600px){.game{padding:18px 14px}.brand{gap:9px}h1{font-size:21px}.crest{font-size:28px;padding:4px 12px}header{margin-bottom:13px}header button{padding:11px 13px}.scene{aspect-ratio:4/4.5;border-width:3px;border-radius:17px}.room{object-fit:cover;object-position:48% center}.person{width:19%}.person.child{width:15%}.hotspot{width:35px;height:35px}.scene-title{left:12px;top:12px;font-size:14px}.bed{left:20%;top:46%}.window{left:68%;top:27%}.fire{right:5%;top:48%}.dashboard{padding:22px 0 19px;align-items:flex-start}.stats{gap:13px;padding-top:20px}.stats strong{font-size:23px}h2{font-size:21px}.mood p{max-width:205px;font-size:13px}.actions{gap:8px}.actions button{padding:12px 3px}.actions span{font-size:12px}.journal{padding-top:15px}dialog[open]{grid-template-columns:1fr}.portrait{height:31dvh;min-height:0}.portrait img{object-fit:contain;object-position:center 18%;background:#fff}.speech{padding:20px}.speech p{font-size:19px;min-height:0;margin:12px 0 20px}.floor-hint{font-size:11px}.daybar{font-size:14px}footer{padding-top:15px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
