@charset "UTF-8";
:root{--paper:#f4f0e7;--ink:#373a30;--muted:#65705d;--green:#55694b;--sage:#dfe5d7;--line:#deded0;--cream:#fcfaf3;--terracotta:#b6724b;--serif:"Iowan Old Style","Songti SC","Noto Serif CJK SC",serif;--sans:"Avenir Next","PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.65 var(--sans)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #bc9365;outline-offset:4px}button:hover{filter:brightness(.96)}[hidden]{display:none!important}.site-header{height:100px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4.5%;gap:20px}.brand{display:flex;gap:13px;align-items:center;font:600 21px var(--serif);letter-spacing:2px}.brand img{width:30px;height:40px}.brand small{display:block;font:8px var(--sans);letter-spacing:2px;margin-top:9px;color:var(--muted)}nav{display:flex;gap:36px;height:100%;align-items:center}.nav-button{height:100%;padding:0 4px;position:relative;font-size:14px;color:var(--muted)}.nav-button.active{color:var(--green)}.nav-button.active:after{content:"";position:absolute;height:2px;background:var(--green);bottom:0;left:4px;right:4px}.account{border:1px solid #c9cebe;border-radius:30px;padding:9px 18px;font-size:12px;white-space:nowrap}.account span{margin-left:12px}main{max-width:1540px;margin:auto;padding:0 4.5%}.welcome{display:flex;justify-content:space-between;align-items:center;padding:44px 0 25px}.eyebrow{font-size:9px;letter-spacing:2.4px;color:var(--muted);font-weight:500;margin:0 0 10px}h1,h2,h3{font-family:var(--serif);font-weight:500;margin:0}h1{font-size:36px;letter-spacing:2px;line-height:1.5}h1 span{color:var(--green)}.welcome p:not(.eyebrow),.page-heading p:not(.eyebrow){color:var(--muted);font-size:12px;margin:12px 0 0;letter-spacing:.8px}.date-stamp{border-left:1px solid var(--line);padding-left:28px;color:var(--muted);text-align:right;display:flex;flex-direction:column;font-size:10px;letter-spacing:1px}.date-stamp strong{font-size:22px;letter-spacing:2px;font-family:var(--serif);font-weight:400;color:var(--ink);line-height:1.5}.home-topline{display:flex;align-items:center;justify-content:space-between;margin:5px 0 17px}.connection{font-size:10px;color:var(--muted)}.connection:before{content:"";display:inline-block;background:#b4b49e;width:5px;height:5px;border-radius:50%;margin-right:7px}.connection.online:before{background:#7f986b}.wallet{display:flex;gap:7px;align-items:center;font-size:11px}.wallet img{width:16px;height:20px}.wallet>strong{font-size:20px;font-family:var(--serif)}.wallet .divider{height:15px;border-left:1px solid var(--line);margin:0 9px}.habitat-layout{display:grid;grid-template-columns:130px minmax(0,1fr) 130px;gap:18px;align-items:center}.entrances{display:flex;flex-direction:column;gap:36px}.entrances button{display:flex;align-items:center;text-align:left;gap:10px;padding:8px 0}.entry-icon{width:39px;height:45px;display:grid;place-items:center;border:1px solid #d1d1c0;border-radius:15px;color:#68785c;font:28px var(--serif);background:#efeee2}.entrances button>span:last-child{font:13px var(--serif);letter-spacing:.6px}.entrances small{font:9px var(--sans);display:block;color:var(--muted);letter-spacing:.2px;margin-top:7px}.scene-frame{border:1px solid #d4d7c9;border-radius:14px;background:var(--cream);overflow:hidden;box-shadow:0 12px 40px #65613a0b}.scene-toolbar{height:43px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:#e5e9dd}.scene-label{font:11px var(--serif);letter-spacing:1px}.scene-label i{display:inline-block;width:5px;height:5px;background:#849775;border-radius:50%;margin-right:5px}.scene-toolbar button{font:18px var(--serif);width:30px;height:30px;color:#6e7b60}.scene{position:relative;aspect-ratio:1.64;isolation:isolate;overflow:hidden;background:#ccad86}.room-image{display:block;width:100%;height:100%;object-fit:cover;transition:filter 1s}.scene.night .room-image{filter:brightness(.43) saturate(.65) hue-rotate(8deg)}.scene.night .hamster{filter:brightness(.65) saturate(.75)}.scene.night:after{content:"";position:absolute;inset:0;background:#17274b33;pointer-events:none;z-index:3}.sunlight{position:absolute;inset:0;background:linear-gradient(115deg,transparent 40%,#fff4c519 44%,#fff8d52b 51%,transparent 57%);pointer-events:none}.hamster-position{position:absolute;width:28%;left:36%;bottom:10%;transition:left 1.7s ease-in-out;z-index:2}.hamster{padding:0;display:block;width:100%;transform-origin:bottom center;animation:breathe 4s ease-in-out infinite}.hamster img{width:100%;height:auto;display:block;user-select:none;pointer-events:none}.pet-shadow{position:absolute;bottom:-2%;left:13%;right:8%;height:12%;border-radius:50%;background:#46311955;filter:blur(8px)}.hamster.happy{animation:happy .7s ease-in-out}.hamster.eating{animation:nibble .24s ease-in-out 8}.pet-bubble{position:absolute;left:50%;bottom:102%;transform:translate(-50%,7px);padding:6px 13px;background:#fffdf0e8;border-radius:13px 13px 13px 2px;font:11px var(--serif);white-space:nowrap;box-shadow:0 3px 20px #44381615;opacity:0;transition:.35s;pointer-events:none}.pet-bubble.visible{opacity:1;transform:translate(-50%,0)}.heart{position:absolute;left:70%;top:10%;font:30px var(--serif);color:#ad5a47;opacity:0;pointer-events:none}.heart.float{animation:heart 1.3s ease-out}.hotspot{position:absolute;z-index:4;color:#fffbe8;display:flex;gap:5px;align-items:center;padding:10px;font-size:10px;text-shadow:0 1px 4px #38261199}.hotspot i{font:normal 16px var(--sans);border:1px solid #ffffff8c;border-radius:50%;width:23px;height:23px;background:#3c352740}.hotspot span{opacity:0;transition:.2s}.hotspot:hover span,.hotspot:focus-visible span{opacity:1}.house-spot{left:3%;top:37%}.bowl-spot{right:7%;top:48%}.wheel-spot{right:1%;top:17%}.scene-caption{position:absolute;bottom:13px;left:18px;right:18px;display:flex;justify-content:space-between;color:#fffdf2;font-size:8px;letter-spacing:1.4px;text-shadow:0 1px 4px #4d371c}.scene-caption span:last-child{letter-spacing:.5px}.scene-bottom{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;gap:10px}.tiny-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8c9c6c;margin-right:8px}.scene-bottom strong{font:13px var(--serif)}.scene-bottom small{display:block;color:var(--muted);font-size:9px;margin-left:14px;margin-top:4px}.scene-actions{display:flex;gap:10px;align-items:center}.scene-actions button{border:1px solid #d9dccd;border-radius:6px;padding:8px 13px;font-size:11px;white-space:nowrap}.primary{background:var(--green);color:#fffdf5;border:1px solid var(--green)!important;border-radius:6px;padding:10px 18px;font-size:12px}.primary span{margin-left:18px}.secondary{background:var(--cream);border:1px solid #cdd3c2;border-radius:6px;padding:9px 15px;font-size:12px}.under-scene{display:grid;grid-template-columns:1.5fr 1fr;gap:24px;margin:27px 148px 0}.today-card,.wish-card{border-top:1px solid var(--line);padding-top:20px}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}h2{font-size:19px;letter-spacing:.5px}.text-button{font-size:10px;color:var(--green);padding:0;white-space:nowrap}.mini-tasks{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.mini-task{font-size:11px;padding:6px 12px;background:#e9ecdf;border-radius:5px}.mini-task.done{text-decoration:line-through;opacity:.55}.muted{color:var(--muted);font-size:12px}.wish-heading{display:flex;align-items:center;gap:16px}.wood-house{font:40px var(--serif);color:#a97b50;line-height:1}.wish-heading h2{font-size:17px}.wish-heading p{font-size:10px;color:var(--muted);margin:3px 0}.wish-card progress{appearance:none;border:0;background:#dfdfcf;width:100%;height:4px;display:block;margin:16px 0 9px;border-radius:4px;overflow:hidden}.wish-card progress::-webkit-progress-bar{background:#dfdfcf}.wish-card progress::-webkit-progress-value{background:#899b73}.wish-card progress::-moz-progress-bar{background:#899b73}.wish-footer{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.footer-note{font:11px var(--serif);color:var(--muted);margin:38px 0 25px;display:flex;justify-content:space-between}.footer-note span{font:9px var(--sans);letter-spacing:1px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:45px 0 35px}.date-filter,.manage-toolbar label{font-size:11px;color:var(--muted);display:flex;gap:10px;align-items:center}.date-filter input,.manage-toolbar input{width:auto}.task-list,.rule-list{display:grid;gap:12px}.task-row{display:flex;gap:18px;align-items:center;background:var(--cream);border:1px solid var(--line);padding:20px 24px;border-radius:9px}.task-index{font:20px var(--serif);color:#b7b5a2}.task-body{flex:1;min-width:0}.task-body h3{font-size:17px;overflow-wrap:anywhere}.task-body p{font-size:10px;color:var(--muted);margin:4px 0 0}.core-badge{font-size:9px;color:#9a6b42;background:#f1e8ce;padding:2px 7px;border-radius:3px;margin-left:8px;white-space:nowrap}.status-button{border:1px solid #d4d8c9;border-radius:6px;font-size:11px;padding:8px 14px;white-space:nowrap}.status-button.done{background:#e7ebdf;color:#758268}.task-summary{font-size:12px;color:var(--muted);margin-bottom:16px}.task-summary strong{color:var(--green)}.manage-toolbar{display:flex;gap:15px;flex-wrap:wrap;margin-bottom:28px}.section-title{margin:28px 0 18px}.section-title small{font:11px var(--sans);color:var(--muted);margin-left:12px}.rule-card{padding:22px;background:var(--cream);border:1px solid var(--line);border-radius:8px;display:flex;justify-content:space-between;gap:15px}.rule-card h3{font-size:18px}.rule-card p{font-size:11px;color:var(--muted);margin:6px 0}.rule-card.disabled{opacity:.6}.rule-card ul{padding-left:18px;font-size:12px}.rule-actions{display:flex;gap:12px;align-items:flex-start}.conflict-card{padding:20px;border:1px solid #d5ac79;background:#fbf0df;border-radius:8px;margin:10px 0}.conflict-card p{font-size:12px}.conflict-card button{margin-right:10px}.empty{border:1px dashed #d1d3c3;padding:45px;text-align:center;color:var(--muted);border-radius:9px}
dialog{border:1px solid #d4d6c6;border-radius:15px;padding:35px;width:min(460px,calc(100% - 30px));max-height:88vh;overflow:auto;background:var(--cream);color:var(--ink);box-shadow:0 20px 90px #29281335}dialog::backdrop{background:#28301f55;backdrop-filter:blur(5px)}dialog h2{font-size:25px;margin-bottom:12px}.close-dialog{position:absolute;right:14px;top:10px;font-size:26px;color:var(--muted);line-height:1}.panel-dialog{width:min(520px,calc(100% - 30px))}.panel-symbol{font:48px var(--serif);color:#a78554}.panel-copy{color:var(--muted);font-size:13px;margin:15px 0 22px}.panel-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.stat{padding:15px;background:#edf0e5;border-radius:8px;font-size:11px;color:var(--muted)}.stat strong{display:block;font:25px var(--serif);color:var(--green);margin-top:4px}.panel-actions{display:flex;gap:10px;flex-wrap:wrap}.coming-soon{font-size:10px;border:1px solid #d7d6c6;border-radius:4px;padding:5px 9px;color:var(--muted);display:inline-block}.login-hint{margin-top:18px;color:var(--muted);font-size:11px}label{display:block;font-size:12px;margin-bottom:15px}input,select,textarea{display:block;width:100%;border:1px solid #d4d7c7;border-radius:6px;background:#fffdf8;color:var(--ink);padding:10px 12px;margin-top:6px}input:focus,select:focus,textarea:focus{outline:2px solid #8c9b78;outline-offset:1px}input[type=checkbox]{display:inline-block;width:16px;height:16px;accent-color:var(--green);margin:0 7px 0 0;vertical-align:middle}.check-label{display:inline-flex;align-items:center;gap:5px;margin-right:13px}.weekdays{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px}.weekdays label{margin:0;border:1px solid var(--line);border-radius:5px;padding:6px 8px;font-size:11px}.rule-task-editor{display:flex;align-items:center;gap:8px;margin-bottom:9px}.rule-task-editor input[type=text]{flex:1;min-width:0;margin:0}.rule-task-editor label{white-space:nowrap;margin:0;font-size:10px}.rule-task-editor button{color:#b67655;font-size:19px}.full{width:100%;margin-top:8px}.form-hint{font-size:10px;color:var(--muted);margin:15px 0 0}.error{color:#a34e36;font-size:12px;min-height:1em}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,15px);background:#34452fef;color:#fffdf3;padding:12px 25px;border-radius:8px;font-size:12px;box-shadow:0 8px 30px #3332;opacity:0;transition:.25s;z-index:100;max-width:90%;pointer-events:none}.toast.visible{opacity:1;transform:translate(-50%,0)}.scene-frame.expanded{position:fixed;inset:4vh 4vw;z-index:30;display:flex;flex-direction:column;background:var(--cream);box-shadow:0 0 0 100vmax #202b1fbb}.scene-frame.expanded .scene{flex:1;aspect-ratio:auto}.scene-frame.expanded .room-image{object-fit:cover}.scene-frame.expanded .hamster-position{width:min(28%,35vh)}
@keyframes breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.012,.993)}}@keyframes happy{0%,100%{transform:rotate(0)}25%{transform:translateY(-7px) rotate(-3deg)}65%{transform:translateY(-3px) rotate(3deg)}}@keyframes nibble{50%{transform:scale(.985,1.01) translateY(-2px)}}@keyframes heart{0%{opacity:0;transform:translateY(0)}25%{opacity:1}100%{opacity:0;transform:translateY(-70px) rotate(12deg)}}
@media(min-width:1600px){.scene{aspect-ratio:1.75}}@media(max-width:1100px){.habitat-layout{grid-template-columns:94px minmax(0,1fr) 94px;gap:10px}.entrances button{flex-direction:column;align-items:center;text-align:center;gap:7px}.entrances{gap:22px}.entrances small{font-size:8px}.entry-icon{width:38px;height:38px;font-size:24px}.under-scene{margin-left:104px;margin-right:104px}.scene-bottom{padding:12px}.scene-bottom small{max-width:150px}.scene-actions button{padding:7px 9px;font-size:10px}.brand{font-size:18px}nav{gap:20px}.scene-caption{font-size:7px}.welcome{padding-top:30px}h1{font-size:30px}}
@media(max-width:720px){.site-header{height:auto;min-height:78px;flex-wrap:wrap;padding:15px 5% 0;gap:10px}.brand{font-size:17px}.brand small{font-size:6px;letter-spacing:1.5px}.brand img{width:24px;height:30px}.account{font-size:10px;padding:6px 10px}.site-header nav{order:3;width:100%;height:44px;gap:32px;justify-content:center}.nav-button{font-size:12px}main{padding:0 5%}.welcome{padding:28px 0 18px}h1{font-size:24px;letter-spacing:1px}.welcome p:not(.eyebrow){font-size:10px}.eyebrow{font-size:7px;letter-spacing:1.5px}.date-stamp{padding-left:15px;font-size:8px}.date-stamp strong{font-size:18px}.date-stamp>span:last-child{display:none}.home-topline{flex-wrap:wrap;gap:8px}.wallet{font-size:10px}.wallet>strong{font-size:17px}.connection{font-size:8px}.habitat-layout{grid-template-columns:1fr 1fr;gap:14px 8px}.scene-frame{grid-column:1 / -1;grid-row:1}.entrances{flex-direction:row;gap:0;justify-content:space-around}.entrances button{padding:0 2px;gap:6px}.entrances button>span:last-child{font-size:10px;letter-spacing:0}.entrances small{display:none}.entry-icon{height:32px;width:32px;border-radius:10px;font-size:22px}.scene{aspect-ratio:1.2}.room-image{object-fit:cover}.hamster-position{width:34%;left:33%;bottom:14%}.scene-toolbar{height:37px;padding:0 12px}.scene-label{font-size:9px}.scene-bottom{flex-wrap:wrap;gap:12px;padding:14px}.scene-bottom strong{font-size:12px}.scene-bottom small{font-size:8px;max-width:none}.scene-actions{margin-left:auto;gap:6px}.scene-actions button{font-size:10px}.scene-actions .primary span{margin-left:5px}.under-scene{margin:25px 0 0;grid-template-columns:1fr;gap:25px}h2{font-size:17px}.footer-note{font-size:10px;flex-direction:column;gap:10px;margin-top:30px}.page-heading{margin:30px 0 25px;align-items:flex-start;flex-direction:column;gap:15px}.page-heading p:not(.eyebrow){font-size:11px}.task-row{padding:16px 14px;gap:12px}.task-body h3{font-size:15px}.task-index{font-size:17px}.task-body p{font-size:9px}.status-button{padding:7px 9px;font-size:10px}.manage-toolbar{gap:10px}.manage-toolbar button{font-size:10px;padding:8px 10px}.rule-card{padding:16px;gap:10px}.scene-frame.expanded{inset:2vh 2vw}.scene-frame.expanded .scene{max-height:80vh}.scene-frame.expanded .hamster-position{width:40%}.hotspot span{display:none}.section-title small{display:block;margin:6px 0 0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.hamster-position.sleeping{width:33%;left:33.5%;bottom:11%}.hamster-position.sleeping .pet-shadow{height:14%;bottom:4%}@media(max-width:720px){.hamster-position.sleeping{width:43%;left:28.5%;bottom:14%}}

/* v3: a single room coordinate system keeps pets, shadows and props aligned. */
.scene{aspect-ratio:3/2!important;cursor:default}.room-image{object-fit:fill!important}
#pet-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}
.scene.game-ready .hamster-position{bottom:auto!important;transform:translateX(-50%);transition:none;z-index:3}
.scene.game-ready .hamster{height:100%;animation:none!important;transform:none!important;filter:none!important;border-radius:45%}
.scene.game-ready .hamster img,.scene.game-ready .pet-shadow{display:none}
.scene.game-ready .hamster:focus-visible{outline:2px dashed #fff8db;outline-offset:5px}
.scene.game-ready .pet-bubble{font-size:11px;max-width:210px;white-space:normal;width:max-content;text-align:center;bottom:108%}
.scene.game-ready .heart{display:none}.scene-caption{pointer-events:none;z-index:4}
.play-strip{display:flex;gap:7px;align-items:center;justify-content:center;flex-wrap:wrap;padding:12px 10px;border-bottom:1px solid #dedbc9;background:#f0eadb}
.play-strip>span{font:11px var(--serif);color:#786b50;margin-right:8px}
.play-strip button{font-size:11px;background:#fffbef;border:1px solid #d6c9aa;border-radius:15px;padding:5px 12px;box-shadow:0 2px 0 #d6c9aa55}
.play-strip button:hover{background:#e7ecd9;transform:translateY(-1px)}
.play-strip #pet-pause{background:transparent;border-color:transparent;box-shadow:none;color:#68745c;font-size:10px}
.scene-frame.expanded{inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);width:min(94vw,calc((94vh - 190px)*1.5));max-height:96vh;overflow:auto}
.scene-frame.expanded .scene{flex:none;aspect-ratio:3/2!important;width:100%}
.scene-frame.expanded .hamster-position{max-width:none}
.scene.night .sunlight{opacity:0}.sunlight{transition:opacity 1s}
@media(max-width:720px){.play-strip{gap:5px;padding:10px 6px}.play-strip>span{display:none}.play-strip button{font-size:10px;padding:5px 8px}.scene.game-ready .pet-bubble{font-size:9px;max-width:140px}.scene-frame.expanded{inset:auto;top:50%;left:50%;width:96vw}.scene-caption span:first-child{display:none}.scene-caption{justify-content:center;bottom:8px}.scene-toolbar{height:38px}}
/* The same left/centre/right arrangement as the 296 x 128 device scene. */
.house-spot{left:15%;top:43%}.bowl-spot{left:auto;right:5%;top:auto;bottom:8%}.play-strip button{white-space:nowrap}
