:root{font-family:Pretendard,Noto Sans KR,system-ui,sans-serif;color:#292521;background:#d8d0c5;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100dvh;background:linear-gradient(155deg,#e9e2d8,#c9bfb2)}button{font:inherit}.orientation-gate{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center;background:#f7f1e7}.orientation-gate[hidden]{display:none}.orientation-gate h2{margin:22px 0 7px;font-size:24px;letter-spacing:-.04em}.orientation-gate p{margin:0 0 20px;color:#6f655c;font-size:14px}.orientation-gate button{min-height:52px;padding:12px 24px;border:0;border-radius:17px;background:#2f5543;color:#fff;font-weight:800;box-shadow:0 7px 18px #2f55433d}.phone-rotate{width:52px;height:88px;border:5px solid #51483f;border-radius:11px;background:#f3d39f;box-shadow:inset 0 0 0 5px #fff8ea;transform:rotate(90deg)}.phone-rotate.animate{animation:rotate-phone 1.4s ease-in-out infinite alternate}@keyframes rotate-phone{0%{transform:rotate(0)}to{transform:rotate(90deg)}}.app-shell{width:min(100%,1100px);min-height:100dvh;margin:0 auto;padding:max(12px,env(safe-area-inset-top)) 14px max(12px,env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr) minmax(225px,29%);grid-template-rows:auto 1fr;gap:11px 14px;background:#f7f1e7}.topbar{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:12px}.eyebrow{margin:0 0 1px;color:#9c6a3f;font-size:9px;font-weight:900;letter-spacing:.14em}h1{margin:0;font-size:clamp(19px,3vw,25px);letter-spacing:-.05em}.day-pill{min-width:68px;padding:7px 11px;border:0;border-radius:17px;background:#2f5543;color:#fff;box-shadow:0 4px 10px #2f554329}.day-pill span,.day-pill small{display:block}.day-pill small{opacity:.75}.score-pill{margin-left:auto;min-width:72px;padding:7px 11px;border:2px solid #9c6a3f;border-radius:17px;background:#fff8e9;color:#6d462a;text-align:center}.score-pill span,.score-pill strong{display:block}.score-pill span{font-size:9px;font-weight:800}.score-pill strong{font-size:14px}.three-stage{position:relative;min-height:300px;overflow:hidden;border:3px solid #51483f;border-radius:20px;background:#d7e2de;box-shadow:0 12px 26px #5e493b20}#game-canvas{display:block;width:100%;height:100%;touch-action:none}.dog-touch-target{position:absolute;z-index:6;width:68px;height:68px;padding:0;border:0;border-radius:50%;background:transparent;transform:translate(-50%,-50%);cursor:pointer;-webkit-tap-highlight-color:transparent}.dog-touch-target:disabled{pointer-events:none}.dog-touch-target:focus-visible{outline:3px solid #f0bd45aa}.room-label{position:absolute;top:9px;padding:4px 8px;border-radius:10px;background:#fffdf0db;color:#62564c;font-size:10px;font-weight:900;pointer-events:none}.bedroom-label{left:7%}.living-label{left:48%}.entry-label{right:4%}.play-label{right:5%;top:39px;background:#e8f5d9e8;color:#3f6742}.evening-badge{position:absolute;left:50%;top:9px;z-index:8;padding:5px 10px;border-radius:12px;background:#26364cdd;color:#ffe7a6;font-size:10px;font-weight:900;transform:translate(-50%);pointer-events:none}.evening-badge[hidden]{display:none}.wall-clock{position:absolute;top:5px;left:calc(7% + 35px);width:32px;height:32px;border:3px solid #62564c;border-radius:50%;background:#fffdf0;box-shadow:0 2px 6px #3d30252b;pointer-events:none}.clock-hand{position:absolute;left:50%;bottom:50%;border-radius:8px;background:#51483f;transform-origin:50% 100%}.hour-hand{width:3px;height:8px;margin-left:-1.5px}.minute-hand{width:2px;height:11px;margin-left:-1px}.second-hand{width:1px;height:12px;margin-left:-.5px;background:#d76555}.clock-center{position:absolute;left:50%;top:50%;width:4px;height:4px;border-radius:50%;background:#51483f;transform:translate(-50%,-50%)}.tap-guide{position:absolute;left:50%;bottom:8px;margin:0;padding:5px 9px;border-radius:10px;background:#292521b8;color:#fff;font-size:10px;transform:translate(-50%);pointer-events:none}.character-bubble{position:absolute;z-index:12;min-width:142px;padding:9px;border:2px solid #51483f;border-radius:16px;background:#fff;box-shadow:0 7px 18px #3d30253d;transform:translate(-50%,-100%)}.character-bubble:after{content:"";position:absolute;left:50%;bottom:-8px;width:13px;height:13px;border-right:2px solid #51483f;border-bottom:2px solid #51483f;background:#fff;transform:translate(-50%) rotate(45deg)}.character-bubble[hidden]{display:none}.character-bubble p{margin:0 0 7px;text-align:center;font-size:12px;font-weight:900}.character-bubble div{display:flex;gap:6px}.character-bubble button{flex:1;min-height:34px;border:0;border-radius:10px;background:#2f5543;color:#fff;font-size:11px;font-weight:800}.character-bubble button:last-child{background:#8e8177}.dog-action-bubble{min-width:210px}.dog-action-bubble div{display:grid;grid-template-columns:1fr 1fr}.dog-action-bubble [hidden]{display:none}.dog-action-bubble button:last-child{background:#2f5543}.dog-action-bubble button[data-dog-action=snack]{grid-column:1 / -1;background:#b66b39}.dog-cue-bubble{min-width:92px;padding:8px 12px;border-color:#9c6a3f;background:#fff8e9;pointer-events:none;animation:cue-bob 1.2s ease-in-out infinite alternate}.dog-cue-bubble:after{border-color:#9c6a3f;background:#fff8e9}.dog-cue-bubble p{margin:0;font-size:14px}.event-choice-bubble{min-width:250px}.event-choice-bubble div{display:grid;grid-template-columns:1fr 1fr}.event-choice-bubble [hidden]{display:none}.event-choice-bubble button.danger-choice{background:#a54c42}@keyframes cue-bob{0%{transform:translate(-50%,calc(-100% - 28px))}to{transform:translate(-50%,calc(-100% - 34px))}}.side-panel{min-width:0;display:flex;flex-direction:column;gap:11px}.observation{display:grid;grid-template-columns:45px 1fr;align-items:center;gap:10px;min-height:70px;padding:10px 12px;border:1px solid #e1d5c5;border-radius:16px;background:#fffdf9;box-shadow:0 8px 24px #6e563312}.dog-face{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:#f2d39f;font-size:27px}.observation strong{font-size:12px}.observation p{margin:3px 0 0;color:#625a52;font-size:13px;line-height:1.35}.choice-panel{flex:1;padding:13px;border:1px solid #e1d5c5;border-radius:17px;background:#efe6d8}.choice-panel>p{margin:0 0 10px;text-align:center;color:#6f655c;font-size:12px;font-weight:800}.choices{display:grid;grid-template-columns:1fr 1fr;gap:9px}.choices button{position:relative;min-height:46px;padding:8px 10px;border:2px solid #51483f;border-radius:17px;background:#fff;color:#292521;font-size:12px;font-weight:800;box-shadow:0 3px #c5b8a8;cursor:pointer;-webkit-tap-highlight-color:transparent}.choices button:active{transform:translateY(2px);box-shadow:0 1px #c5b8a8}.choices button:disabled{opacity:.4;cursor:wait}.choices button[hidden]{display:none}.choices .danger-choice{border-color:#a54c42;color:#8c352e;background:#fff3f1}@media(min-width:760px)and (min-height:480px){body{padding:16px}.app-shell{min-height:min(650px,calc(100dvh - 32px));border:1px solid #c7bbae;border-radius:26px;box-shadow:0 25px 70px #46382c33}}@media(orientation:portrait),(max-width:600px){.app-shell{display:block;width:min(100%,430px)}.three-stage{height:46dvh;margin:12px 0}.side-panel{display:block}.choice-panel{margin-top:10px}}@media(max-height:430px)and (orientation:landscape){.app-shell{grid-template-rows:44px 1fr;padding-top:7px}.three-stage{min-height:250px}.observation{min-height:58px}.dog-face{width:38px;height:38px;font-size:23px}.choices button{min-height:39px}}@media(min-width:900px)and (pointer:fine){#orientation-gate{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
