.companion-chip{display:flex;gap:10px;align-items:center;color:#60734f}.companion-chip strong{font-size:13px}.companion-chip>span{font-size:10px;background:#e9eedd;border-radius:5px;padding:4px 8px}.wallet{display:flex;align-items:center;gap:14px;font-size:12px;color:#78886a}.wallet>span{display:flex;align-items:center;gap:5px}.wallet svg{width:17px}.wallet button{background:#eaf0df;padding:9px 13px;border-radius:8px;min-height:40px}.wallet button:last-child{padding:8px}.bond-card{display:flex;align-items:center;gap:16px;background:#f2eee6;border:1px solid #e9e3d7;border-radius:12px;margin-top:20px;padding:18px 22px}.bond-icon{background:#e9dfd1;border-radius:50%;padding:11px;color:#a89179}.bond-card strong{font-size:12px;font-weight:500;color:#7d705c}.bond-card p{font-size:11px;color:#95866f;margin:7px 0 0;line-height:1.8}.bond-score{margin-left:auto;white-space:nowrap;color:#a2957c;font-size:10px}.bond-score b{font-size:25px;font-weight:500;color:#877a61}.bond-score small{display:block;text-align:right;margin-top:3px}.care-card .care-frequency{margin-bottom:9px}.care-stock{font-size:11px;color:#7d8b70;margin-bottom:7px}.care-due{display:block;font-size:10px;color:#929986;margin-bottom:13px}.care-action{min-height:40px}button:disabled{opacity:.55;cursor:default}button:disabled:active{transform:none}.simulation-note{font-size:10px;line-height:1.8;color:#919983;margin:12px 0 0}.welcome-back{background:#eaf0df;padding:13px 18px;border-radius:9px;font-size:12px;margin-bottom:18px;color:#788865;align-items:center;gap:10px}.welcome-back:not([hidden]){display:flex}.welcome-back button{margin-left:auto;text-decoration:underline;white-space:nowrap}.points-pill{background:#edf1e4;color:#788964;padding:9px 15px;border-radius:20px;font-size:13px}.shop-filters{display:flex;gap:8px;flex-wrap:wrap;margin:23px 0}.shop-filters button{padding:10px 16px;border-radius:8px;color:#879275;font-size:12px}.shop-filters button.active{background:#eaf0df;color:#536a46}.shop-item{position:relative;text-align:left;display:flex;flex-direction:column}.product-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:#f2f0e6;color:#9b9f7e;margin-bottom:8px}.product-icon svg{width:29px;height:29px}.stock-tag{position:absolute;right:14px;top:18px;font-size:10px;color:#8c987e;background:#f2f5eb;padding:5px 8px;border-radius:6px}.shop-item p{font-size:11px;line-height:1.8;min-height:40px}.shop-item>small{font-size:10px;color:#8e977f;line-height:1.8;margin-top:auto}.shop-item>button{margin-top:16px;min-height:42px}.relief-box{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:25px;padding:20px;background:#f6f7ef;border-radius:12px}.relief-box strong{font-size:13px}.relief-box p{font-size:11px;margin:6px 0 0}.secondary{background:#e8eddd;border-radius:8px;color:#647652;padding:11px 16px;white-space:nowrap}.stage-guide{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;background:#f7f8f2;border-radius:12px;padding:15px 22px}.stage-guide p{font-size:12px}.memory-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}.page-panel>h3{font-size:15px;margin-top:30px}.schedule-row{display:flex;justify-content:space-between;gap:10px;padding:14px 0;border-bottom:1px solid #e7ecdd;font-size:12px}.schedule-row b{font-weight:500;color:#7b8a6a}.care-hint{display:block;font-size:10px;line-height:1.9;color:#8e9980;margin-top:15px}#care-toggle{width:100%;min-height:45px}.product-label{display:block;text-align:left;color:#7d8b70;font-size:11px;margin:18px 0 7px}#care-product{width:100%;padding:12px;border:1px solid #dbe3cd;border-radius:8px;background:#f7f9f1;color:#6b7d59;font:inherit;font-size:12px}.reserved-item{background:#edf2e4;border-radius:10px;padding:13px;color:#7c8d68;font-size:12px}.reserved-item svg{width:16px;margin-right:7px}.reserved-item small{display:block;font-size:10px;margin-top:8px}.empty-stock{font-size:12px;color:#9b886d;line-height:1.8;background:#faf3e7;border-radius:10px;padding:15px}.empty-stock button{display:block;margin:12px auto 0}.reward-emotion{background:#f2eee6;border-radius:10px;padding:20px;color:#89775d!important}.reward-badges{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}.reward-badges span{background:#edf1e4;color:#7f8e6b;font-size:11px;border-radius:7px;padding:8px 12px}.close-button-inline{margin-top:10px}.care-running{animation:gentle-pulse 3s ease-in-out infinite}.affection .pet-breathe{animation:pet-love .8s ease-in-out 2}.adopt-options{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:28px 0 15px}#adopt-dialog{width:min(760px,calc(100% - 32px));padding:45px}#adopt-dialog h2{font-size:28px;font-weight:500;margin-top:14px}.adopt-option{position:relative;border:1px solid #e3e7d9;background:#f8f9f3;border-radius:16px;padding:25px 14px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}.adopt-option.selected{border-color:#9aae7d;background:#eef3e4;box-shadow:0 0 0 2px #dce6ce}.adopt-portrait{width:78px;height:78px;display:grid;place-items:center;background:transparent;border-radius:26%;overflow:hidden}.adopt-portrait .portrait{width:78px;height:78px;display:block}.companion-chip .portrait{width:32px;height:32px;flex:none;border-radius:28%}.love-spark{opacity:0}.room-art.affection .pet-breathe{animation:pet-love .7s ease}.room-art.affection .love-spark{opacity:1;animation:gentle-pulse .7s ease}.adopt-option strong{font-size:14px;font-weight:500}.adopt-option small{font-size:10px;color:#939c85}.selection-mark{color:#9aa98a}.selection-mark svg{width:19px}.adopt-option.selected .selection-mark{color:#6a8154}#adopt-confirm{min-width:230px;margin-top:8px}#adopt-summary{font-size:11px}.setting-row input[type=file]{width:190px;font-size:11px;color:#7b8b67}.care-hint,.simulation-note,.shop-item>small{color:#737e66}.care-due,.care-card .care-frequency{color:#7c866f}@keyframes gentle-pulse{50%{transform:scale(1.06)}}@keyframes pet-love{50%{transform:translateY(-6px) rotate(2deg)}}
@media(max-width:600px){.companion-chip{gap:7px}.companion-chip strong{font-size:11px}.companion-chip>span{display:none}.wallet{gap:5px;font-size:10px}.wallet button{font-size:10px;padding:8px;min-height:40px}.wallet b{font-size:12px}.bond-card{padding:15px 13px;gap:10px}.bond-card p{font-size:10px}.bond-icon{padding:9px}.bond-score b{font-size:21px}.care-stock{font-size:10px}.care-due{font-size:9px}.care-card .care-frequency{font-size:10px}.simulation-note{font-size:9px}.stage-guide{grid-template-columns:1fr;gap:0}.relief-box{align-items:flex-start;flex-direction:column}.shop-filters{gap:4px}.shop-filters button{padding:9px;font-size:11px}.shop-item p{font-size:10px}.stock-tag{position:static;align-self:flex-start;margin:8px 0 0}.shop-item h3{font-size:13px;line-height:1.7}.shop-item>button{padding:9px;font-size:11px}.shop-grid{gap:12px}#adopt-dialog{padding:30px 20px}#adopt-dialog h2{font-size:23px}.adopt-options{gap:8px}.adopt-option{padding:18px 7px;gap:12px}.adopt-portrait{width:58px;height:58px}.adopt-portrait .portrait{width:58px;height:58px}.companion-chip .portrait{width:28px;height:28px}.adopt-option strong{font-size:12px}.adopt-option small{font-size:10px;line-height:1.8}.welcome-back{font-size:10px;flex-wrap:wrap}.memory-cards{grid-template-columns:1fr}.care-hint{font-size:10px}.setting-row input[type=file]{width:130px}}
#header-settings{display:none}
@media(max-width:900px){#header-settings{display:inline-block}}
.page-panel{margin-bottom:34px}
.bgm-now{display:flex;align-items:center;gap:12px;margin-top:14px;padding:11px 14px;border:1px solid var(--line);border-radius:12px;background:#fffdf6}
.bgm-now[hidden]{display:none}
.bgm-now-text{flex:1;min-width:0;text-align:left}
.bgm-now-text strong{font-size:13px;color:#4b5a42}
.bgm-now-text small{display:block;margin-top:2px;font-size:10px;color:#8b937f}
.bgm-now select{font-size:12px;padding:6px 8px;border-radius:8px;border:1px solid var(--line);background:#fff;color:#4b5a42}
.bgm-eq{display:flex;align-items:flex-end;gap:3px;height:18px;width:15px}
.bgm-eq i{width:3px;height:100%;border-radius:2px;background:#7b8d69;transform-origin:bottom;animation:eq 1s ease-in-out infinite}
.bgm-eq i:nth-child(2){animation-delay:-.35s}
.bgm-eq i:nth-child(3){animation-delay:-.7s}
@keyframes eq{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
.bg-grid{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.bg-check{display:flex;align-items:center;gap:5px;font-size:12px;color:#4b5a42;white-space:nowrap}
.setting-row input[type=range]{-webkit-appearance:none;appearance:none;width:min(200px,46vw);height:26px;background:transparent;cursor:pointer;accent-color:#748666}
.setting-row input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:3px;background:linear-gradient(to right,#7b8d69 var(--fill,60%),#e2e7d8 var(--fill,60%))}
.setting-row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:#fff;border:2px solid #748666;margin-top:-6px;box-shadow:0 1px 3px rgba(92,107,79,.25)}
.setting-row input[type=range]::-moz-range-track{height:6px;border-radius:3px;background:#e2e7d8}
.setting-row input[type=range]::-moz-range-progress{height:6px;border-radius:3px;background:#7b8d69}
.setting-row input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#fff;border:2px solid #748666;box-shadow:0 1px 3px rgba(92,107,79,.25)}

/* ── design-pack integration ─────────────────────────────── */
.portrait{object-fit:cover}
.adopt-options{grid-template-columns:repeat(4,1fr)}
.acc-thumb{width:56px;height:56px;object-fit:contain;background:#f7f5ef;border-radius:16px;padding:6px;margin-bottom:8px}
.shop-item.acc-item{background:#fffdf9}
.milestone .stage-thumb{width:100%;height:130px;object-fit:contain;margin-bottom:12px;background:#f7f5ef;border-radius:10px;padding:6px}
.acc-worn{filter:drop-shadow(0 2px 3px #0002)}
.room-art[data-day="dawn"] .room-bg{filter:saturate(1.08) brightness(1.06) sepia(.12)}
.room-art[data-day="noon"] .room-bg{filter:saturate(1.04) brightness(1.02)}
.room-art[data-day="afternoon"] .room-bg{filter:none}
.room-art[data-day="dusk"] .room-bg{filter:saturate(.9) brightness(.86) hue-rotate(-18deg) sepia(.15)}
.room-art[data-day="night"] .room-bg{filter:saturate(.45) brightness(.58) hue-rotate(16deg) contrast(1.05)}
@media(max-width:600px){
  .adopt-options{grid-template-columns:1fr 1fr}
  .milestone .stage-thumb{height:96px}
}
.health-progress{height:12px;margin-top:9px}.health-progress span{display:block;height:100%;border-radius:6px;background:#7b8d69;transition:width .4s,background .4s}.health-progress span[data-tier="low"]{background:#c9a86a}.health-progress span[data-tier="sick"]{background:#d9925e}.health-progress span[data-tier="critical"]{background:#c96a5e}
.critical-banner{position:absolute;top:52px;left:16px;right:16px;z-index:3;display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:14px;background:#fbf4eef7;border:1px solid #e8d0c2;color:#8c5a48;box-shadow:0 8px 22px #b98a7124;backdrop-filter:blur(8px)}.critical-banner[hidden]{display:none}.critical-copy{flex:1;min-width:0}.critical-banner strong{display:block;font-size:14px;font-weight:600}.critical-banner p{margin:6px 0 0;font-size:12px;line-height:1.7;color:#a17663}.critical-banner button{flex:none;margin-left:0;white-space:nowrap;min-height:40px;padding:0 16px}
@media(max-width:900px){.critical-banner{position:relative;top:auto;left:auto;right:auto;margin:10px 12px 0;flex-direction:column;align-items:stretch;gap:12px;padding:14px 14px 12px;box-shadow:none}.critical-banner button{width:100%;white-space:normal;line-height:1.35;padding:10px 12px}}
.pet-breathe[data-tier="low"]{filter:saturate(.82) brightness(.99)}.pet-breathe[data-tier="sick"]{filter:saturate(.58) brightness(.97) sepia(.12)}.pet-breathe[data-sick]{filter:saturate(.55) brightness(.97)}.pet-breathe[data-tier="critical"]{filter:saturate(.42) brightness(.95) sepia(.2)}.room-art .pet-breathe[data-tier="low"]{animation-duration:5s}.room-art .pet-breathe[data-tier="sick"]{animation-duration:5.6s}.room-art .pet-breathe[data-tier="critical"]{animation-duration:6.4s}@media(prefers-reduced-motion:reduce){.room-art .pet-breathe[data-tier]{animation-duration:4s}}
.bond-card[hidden],.toolbox-card[hidden],.care-section[hidden],.bottom-grid[hidden],.status-card[hidden]{display:none}.home-grid.gone{grid-template-columns:1fr}.room-card.gone{overflow:visible;min-height:0}.room-card.gone .room-top{position:relative;top:auto;left:auto;right:auto;z-index:1;padding:14px 16px 8px}.room-card.gone .room-weather{display:flex;gap:5px;align-items:center}.room-card.gone .room-art{position:relative;inset:auto;height:auto}.room-card.gone .speech,.room-card.gone .room-bottom{display:none}.status-card.gone .health-label,.status-card.gone .health-progress,.status-card.gone .divider,.status-card.gone #needs,.status-card.gone .growth-label,.status-card.gone .growth-progress{display:none}
.memorial{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;text-align:center;padding:22px 20px 24px;background:#f4f1e8;border-radius:14px;min-height:0}.memorial h2{margin:0;font-size:22px;line-height:1.4;color:#6b6353;max-width:100%;overflow-wrap:break-word}.memorial-facts{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:0;padding:0;list-style:none;max-width:100%}.memorial-facts li{background:#ebe6d8;border-radius:999px;padding:5px 10px;font-size:11px;color:#7d7462;line-height:1.4}.memorial-bless{margin:0;max-width:430px;font-size:13px;color:#7d7462;line-height:1.8}.memorial-farewell{margin:0;max-width:430px;width:100%;font-size:12px;color:#6f6756;line-height:1.8;background:#ece7db;border-radius:10px;padding:10px 12px;box-sizing:border-box}.memorial-logs{display:flex;flex-direction:column;gap:6px;max-width:430px;width:100%}.memorial-logs p{margin:0;font-size:11px;color:#9a917d;line-height:1.7}.memorial small{font-size:11px;color:#8a816e;line-height:1.7;max-width:430px}.memorial button{min-width:min(190px,100%);min-height:44px;width:min(240px,100%)}
@media(max-width:600px){.room-card.gone{min-height:0}.memorial{padding:16px 14px 18px;gap:10px}.memorial h2{font-size:18px}.memorial-bless{font-size:12px;line-height:1.7}.memorial-farewell{font-size:12px;padding:9px 10px}.memorial-facts li{font-size:10px;padding:4px 8px}.memorial button{width:100%;min-width:0}}
#quantity-holder{margin-top:0}#care-quantity{width:100%;padding:12px;border:1px solid #dbe3cd;border-radius:8px;background:#f7f9f1;color:#6b7d59;font:inherit;font-size:12px}#quantity-holder .product-label{margin-top:12px}#quantity-holder .care-hint{margin-top:9px}
.toolbox-card{background:#f7f9f1;border:1px solid #e7ecdd;border-radius:14px;padding:18px 22px;margin-top:20px}
.toolbox-card .section-heading h2 span{font-size:11px;color:#8e9980;font-weight:400;margin-left:10px}
.toolbox-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;margin-top:14px}
.toolbox-item{display:flex;align-items:center;gap:13px;background:#fdfefa;border:1px solid #e9eedd;border-radius:12px;padding:13px 15px}
.toolbox-item .product-icon{width:46px;height:46px;border-radius:13px;margin:0;flex:none}
.toolbox-item .product-icon svg{width:23px;height:23px}
.toolbox-info{flex:1;min-width:0}
.toolbox-info strong{font-size:12px;font-weight:500;color:#6b7d59}
.toolbox-info p{font-size:10px;color:#8e9980;line-height:1.7;margin:3px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.toolbox-info small{display:block;font-size:10px;color:#9aa98a;margin-top:3px}
.toolbox-item button{flex:none;min-height:38px;font-size:11px}
.supply-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:7px}
.supply-item{display:flex;align-items:center;gap:11px;background:#f7f9f1;border:1px solid #dbe3cd;border-radius:10px;padding:10px 12px;text-align:left;position:relative}
.supply-item.selected{border-color:#9aae7d;background:#eef3e4;box-shadow:0 0 0 2px #dce6ce}
.supply-item .product-icon{width:40px;height:40px;border-radius:11px;margin:0;flex:none}
.supply-item .product-icon svg{width:20px;height:20px}
.supply-info{flex:1;min-width:0;text-align:left}
.supply-info strong{display:block;font-size:12px;font-weight:500;color:#6b7d59;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.supply-info small{font-size:10px;color:#8e9980}
.supply-mark{color:#6a8154;flex:none}
.supply-mark svg{width:16px;display:block}
.quantity-stepper{display:flex;align-items:center;gap:12px;margin-top:10px;background:#f7f9f1;border:1px solid #dbe3cd;border-radius:10px;padding:8px 12px}
.quantity-stepper button{width:34px;height:34px;min-height:34px;border-radius:9px;background:#eaf0df;color:#536a46;font-size:17px;padding:0;line-height:1}
.quantity-stepper strong{font-size:13px;color:#5c6e4b;min-width:42px;text-align:center;font-weight:500}
.quantity-stepper small{font-size:10px;color:#8e9980;margin-left:auto;text-align:right}
@media(max-width:520px){.supply-grid{grid-template-columns:1fr}.quantity-stepper small{max-width:110px}}
.gain-note{font-size:11px;color:#6d7f5c;background:#eef3e4;border-radius:9px;padding:10px 14px;margin-top:14px;line-height:1.8}
.night-window{display:flex;align-items:center;gap:8px}
.night-window select,.setting-row select{padding:8px 10px;border:1px solid #dbe3cd;border-radius:8px;background:#f7f9f1;color:#6b7d59;font:inherit;font-size:12px}
.night-window b{color:#8e9980;font-weight:400;font-size:12px}
.adopt-name{display:block;width:min(280px,80%);margin:14px auto 4px;padding:11px 14px;border:1.5px solid #dbe3cd;border-radius:10px;background:#fdfef9;color:#5d6b4e;font:inherit;font-size:14px;text-align:center}
.adopt-name:focus{outline:none;border-color:#9db07f}
.adopt-name::placeholder{color:#a9b398}
.knowledge-group{margin:18px 0 8px;color:#8e9980;font-size:13px;letter-spacing:.05em}
.knowledge-card{border:1.5px solid #e4e9d8;border-radius:12px;background:#fdfef9;padding:14px 16px;margin-bottom:10px;cursor:pointer;transition:border-color .2s}
.knowledge-card:hover{border-color:#b8c6a2}
.knowledge-card.open{border-color:#9db07f}
.knowledge-card header{display:flex;align-items:center;gap:10px}
.knowledge-card h3{margin:0;font-size:14.5px;color:#5d6b4e;flex:1}
.knowledge-cat{font-size:11px;color:#8e9980;background:#f1f4e7;border-radius:999px;padding:3px 10px;white-space:nowrap}
.knowledge-card .read-mark{font-size:12px;color:#a9b398;display:flex;align-items:center;gap:4px;white-space:nowrap}
.knowledge-card.read .read-mark{color:#6c8160}
.knowledge-body{margin:10px 2px 2px;font-size:13.5px;line-height:1.8;color:#6b7d59}
.knowledge-disclaimer{font-size:12px;color:#a9b398;margin-top:16px;border-top:1px dashed #e4e9d8;padding-top:12px}
.tip-box{margin:14px 0;padding:14px 16px;border:1.5px solid #e4d9b8;border-radius:12px;background:#fdf9ec;text-align:left}
.tip-box .tip-label{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#b08a3e;letter-spacing:.08em;margin-bottom:6px}
.tip-box strong{display:block;color:#5d6b4e;font-size:14px;margin-bottom:4px}
.tip-box p{margin:0;font-size:13px;line-height:1.7;color:#8a7a52}
.tip-box .quiet-label{margin-top:8px}
.tip-box .tip-disclaimer{display:block;margin-top:8px;font-size:11px;color:#b3a27a}
.care-live-tip{margin:0 0 14px}
.care-live-tip p{max-height:5.4em;overflow:auto}

/* ===== pack (backpack) page ===== */
.pack-grid{display:grid;gap:10px}
.pack-item{display:flex;align-items:center;gap:14px;padding:14px 16px;background:#fff;border:1px solid #eee7dc;border-radius:14px;box-shadow:0 1px 4px rgba(90,70,40,.05)}
.pack-item .product-icon{width:44px;height:44px;flex:none;display:grid;place-items:center;background:#faf6ef;border-radius:12px;color:#7c9a6d}
.pack-item .product-icon svg{width:22px;height:22px}
.pack-item .acc-thumb{width:44px;height:44px;flex:none;object-fit:contain}
.pack-info{flex:1;min-width:0}
.pack-info strong{display:flex;align-items:center;gap:8px;font-size:15px;color:#4a4238}
.pack-info p{margin:2px 0 4px;font-size:12.5px;color:#8a8074;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pack-info small{font-size:11.5px;color:#b0a695}
.worn-tag{display:inline-block;padding:1px 8px;font-size:10.5px;font-weight:600;color:#5b8a4e;background:#e8f2e2;border-radius:99px;letter-spacing:.05em}
.heading-count{font-size:12px;font-weight:500;color:#b0a695;margin-left:6px}
.pack-item button{flex:none}
@media (max-width:560px){.pack-item{flex-wrap:wrap}.pack-item button{width:100%}}
.moment-card{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);width:min(420px,calc(100% - 32px));z-index:8;background:#fbf8f1f2;border:1px solid #e4d7c4;border-radius:14px;padding:14px 16px;color:#6d5c4a;box-shadow:0 8px 22px #b89a7624;backdrop-filter:blur(8px)}
.moment-card[hidden]{display:none}
.moment-card p{margin:0 0 10px;font-size:13px;line-height:1.7}
.moment-card button{min-height:40px;padding:0 16px;background:#e9eedd;border-radius:10px;color:#536a46;font-weight:600}
.moment-card small{display:block;margin-top:8px;font-size:11px;color:#9a8b78}
@media(max-width:600px){.moment-card{bottom:86px;padding:12px}}
.dye-dots{display:inline-flex;gap:5px;margin-left:8px;vertical-align:middle}
.dye-dot{width:14px;height:14px;border-radius:50%;background:#718365;border:1px solid #e4d7c4;padding:0;flex:none;cursor:pointer}
.dye-dot.active{outline:2px solid #5b8a4e;outline-offset:1px}
.nanny-chip{border:1px dashed #d5c9a4;background:#f7f1de;color:#8a7a55;cursor:pointer}
.nanny-chip:hover{background:#f1e8d2}

/* Character habits: the portrait plays a small signature motion while a
   moment card is open. Kept gentle and short to match the calm tone. */
.room-art[data-habit] .pet-breathe{animation-iteration-count:infinite;animation-timing-function:ease-in-out}
.room-art[data-habit="knead"] .pet-breathe{animation-name:habit-knead;animation-duration:1.1s}
.room-art[data-habit="pounce"] .pet-breathe{animation-name:habit-pounce;animation-duration:1.3s}
.room-art[data-habit="twitch"] .pet-breathe{animation-name:habit-twitch;animation-duration:1s}
.room-art[data-habit="wag"] .pet-breathe{animation-name:habit-wag;animation-duration:.9s}
.room-art[data-habit="spin"] .pet-breathe{animation-name:habit-spin;animation-duration:1.6s}
.room-art[data-habit="run"] .pet-breathe{animation-name:habit-run;animation-duration:.6s}
.room-art[data-habit="clap"] .pet-breathe{animation-name:habit-clap;animation-duration:1s}
.room-art[data-habit="reach"] .pet-breathe{animation-name:habit-reach;animation-duration:1.2s}
.room-art[data-habit="suck"] .pet-breathe{animation-name:habit-suck;animation-duration:1.4s}
@keyframes habit-knead{0%,100%{transform:translateY(0)}30%{transform:translateY(-2px) scale(1.01)}60%{transform:translateY(1px) scale(.995)}}
@keyframes habit-pounce{0%,100%{transform:translateY(0)}35%{transform:translateY(2px) scaleY(.99)}55%{transform:translateY(-6px)}70%{transform:translateY(0)}}
@keyframes habit-twitch{0%,100%{transform:translateX(0)}25%{transform:translateX(-1.5px) rotate(-.6deg)}50%{transform:translateX(1.5px) rotate(.6deg)}75%{transform:translateX(-1px)}}
@keyframes habit-wag{0%,100%{transform:rotate(0)}25%{transform:rotate(-1.2deg)}75%{transform:rotate(1.2deg)}}
@keyframes habit-spin{0%{transform:rotate(0) translateY(0)}50%{transform:rotate(6deg) translateY(-2px)}100%{transform:rotate(0) translateY(0)}}
@keyframes habit-run{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.5px)}}
@keyframes habit-clap{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-2px) scale(1.015)}}
@keyframes habit-reach{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px) rotate(-1deg)}}
@keyframes habit-suck{0%,100%{transform:translateX(0)}50%{transform:translateX(1.2px) rotate(.5deg)}}
@media(prefers-reduced-motion:reduce){.room-art[data-habit] .pet-breathe{animation:none}}

/* Stage-up memorial card: a gentle overlay shown once when the companion
   reaches a new growth stage. Reuses the warm memorial palette. */
.stage-up{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;padding:22px;background:#f6f2e8d9;backdrop-filter:blur(3px);animation:stage-up-in .5s ease}
.stage-up[hidden]{display:none}
.stage-up-card{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:22px 26px;max-width:min(420px,100%);background:#fffdf6;border:1px solid #e6dfcc;border-radius:16px;box-shadow:0 12px 40px #6b5f4222}
.stage-up-eyebrow{font-size:9px;letter-spacing:2.4px;color:#a99c78}
.stage-up-card h2{margin:0;font-size:21px;line-height:1.4;color:#6b6353;overflow-wrap:break-word}
.stage-up-badge{display:inline-flex;align-items:center;gap:7px;background:#edf1e4;color:#7f8e6b;border-radius:999px;padding:6px 14px;font-size:12px}
.stage-up-bless{margin:0;font-size:12px;line-height:1.8;color:#7d7462}
.stage-up-card button{min-height:44px;min-width:160px;margin-top:2px}
@keyframes stage-up-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.stage-up{padding:14px;align-items:flex-end}.stage-up-card{padding:18px 16px;gap:10px}.stage-up-card h2{font-size:18px}.stage-up-card button{width:100%}}
@media(prefers-reduced-motion:reduce){.stage-up{animation:none}}

/* Care cards that cannot start because the pet is in critical care or too weak:
   visibly muted and their action button is disabled. */
.care-card.blocked{opacity:.7;background:#f4f2ec;border-color:#e6e2d8}
.care-card.blocked .care-card-top,.care-card.blocked h3{opacity:.82}
.care-card.blocked .care-icon{filter:grayscale(.55)}
.care-card.blocked .care-due{color:#b0836a}
.care-card.blocked .care-action{background:#ecebe3;color:#9b9b90;cursor:not-allowed}

/* Keepsake album on the growth page: stage postcards with reach dates. */
.milestone.keepsake small{display:block;margin-top:6px;color:#8a816e}
.milestone.keepsake.current small{color:#7f8e6b}
.milestone.keepsake.locked{opacity:.62;filter:grayscale(.45);background:#f5f4ee}
.milestone.keepsake .stage-thumb{margin-bottom:6px}
@media(max-width:700px){.keepsake-grid{grid-template-columns:repeat(2,1fr)}}

/* Daily recap card at the top of the diary. */
.daily-recap{background:#f4f1e8;border:1px solid #e9e2d2;border-radius:12px;padding:16px 18px;margin:18px 0 22px}
.recap-eyebrow{font-size:9px;letter-spacing:2px;color:#b0a583}
.daily-recap h3{margin:6px 0 12px;font-size:15px;font-weight:600;color:#6b6353}
.recap-stats{display:flex;flex-wrap:wrap;gap:10px 18px;margin-bottom:10px}
.recap-stats span{font-size:12px;color:#8a816e}
.recap-stats b{font-size:17px;font-weight:600;color:#718365;margin-right:4px;font-variant-numeric:tabular-nums}
.daily-recap p{margin:0;font-size:12px;line-height:1.8;color:#7d7462}
@media(max-width:600px){.recap-stats{gap:8px 14px}.recap-stats b{font-size:15px}}

/* Static "about" block: always in the DOM for crawlers, styled to sit quietly
   above the footer without competing with the game panel. */
.about{margin:26px 0 0;padding:24px 26px;background:#fbfcf8;border:1px solid var(--line);border-radius:14px;color:#7d8574}
.about h2{font-size:17px;color:#5d6b52;margin:0 0 10px;font-weight:600}
.about h3{font-size:13px;color:#67755b;margin:18px 0 8px;font-weight:600}
.about p{font-size:12px;line-height:1.95;color:#828b78;margin:0 0 10px}
.about ol{margin:0;padding-left:18px;display:grid;gap:6px}
.about ol li{font-size:12px;line-height:1.9;color:#828b78}
.about-note{font-size:11px;color:#9aa191;margin-top:14px}
@media(max-width:600px){.about{padding:18px 16px}.about p,.about ol li{font-size:11.5px}}

/* Daily micro-tasks card (Phase 0 economy). */
.task-card{background:#f7f9f1;border:1px solid #e7ecdd;border-radius:14px;padding:16px 20px;margin-top:18px}
.task-card[hidden]{display:none}
.task-progress{font-size:11px;color:#7f8e6b;background:#edf1e4;border-radius:999px;padding:4px 10px}
.task-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.task-row{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #eceee2;border-radius:10px;padding:10px 12px;font-size:12px;color:#7d8574}
.task-row svg{width:16px;height:16px;color:#a3ad92;flex:none}
.task-row.done{background:#eef3e4;border-color:#dce6ce;color:#6b7d59}
.task-row.done svg{color:#6a8154}
.task-label{flex:1}
.task-reward{color:#8a977a;font-weight:600}
.task-row.done .task-reward{color:#6a8154}
@media(max-width:700px){.task-list{grid-template-columns:1fr}}

/* Critical banner action stack (revive + vigil). */
.critical-banner{flex-wrap:wrap}
.critical-copy{flex:1 1 100%;min-width:0}
.critical-actions{display:flex;gap:10px;flex-wrap:wrap;flex:1 1 100%}
@media(max-width:900px){.critical-actions{flex-direction:column}.critical-actions button{width:100%}}

/* Inline, dismissible ad slots: normal document flow, never overlay content. */
.ad-slot[hidden]{display:none}
.ad-slot{display:flex;flex-direction:column;gap:6px}
.ad-top{padding:9px 42px;background:#f1f3ea;border-bottom:1px solid var(--line)}
.ad-bottom{padding:6px 42px 0;margin:14px 0 0}
.ad-top .ad-row{background:transparent;border:0;padding:0}
.ad-row{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e9ece3;border-radius:10px;padding:8px 12px;font-size:12px;color:#6b7a5f}
.ad-tag{flex:none;font-size:9px;letter-spacing:1px;color:#9aa38c;background:#e9eedd;border-radius:4px;padding:2px 6px}
.ad-text,.ad-link{flex:1;min-width:0;color:#6b7a5f;text-decoration:none;overflow-wrap:anywhere}
.ad-link:hover{text-decoration:underline}
.ad-close{flex:none;width:24px;height:24px;border-radius:6px;color:#9aa38c;font-size:16px;line-height:1;display:grid;place-items:center}
.ad-close:hover{background:#f0f2e9}
.footer-note{font-size:10px;color:#a5ab9b;line-height:1.7;margin:8px 0 0}
.footer-note[hidden]{display:none}
@media(max-width:900px){.ad-top{padding:8px 16px}.ad-bottom{padding:6px 16px 0}}

/* Hidden operations panel (opened only via the secret hash token). */
.ops-root{position:fixed;inset:0;z-index:9999;display:block;background:#f7f8f4;overflow:hidden}
.ops-root[hidden]{display:none}
.ops-panel{width:100%;height:100%;background:#f7f8f4;display:flex;flex-direction:column}
.ops-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #e9ece3}
.ops-head strong{font-size:15px;color:#4b5a44}
.ops-head button{font-size:12px;color:#7d8574;background:#eef2e6;border-radius:8px;padding:8px 12px}
.ops-body{overflow:auto;-webkit-overflow-scrolling:touch;padding:20px 22px 60px;display:flex;flex-direction:column;gap:22px;width:100%;max-width:920px;margin:0 auto;box-sizing:border-box}
.ops-sec h3{font-size:13px;margin:0 0 10px;color:#5d6b52;font-weight:600}
.ops-check{display:flex;gap:8px;align-items:center;font-size:12px;color:#6b7a5f;margin:7px 0}
.ops-check input{width:18px;height:18px;accent-color:#718365}
.ops-hint{font-size:11px;color:#98a089;line-height:1.7;margin:8px 0 0}
.ops-ads{display:flex;flex-direction:column;gap:12px}
.ops-ad{border:1px solid #e9ece3;border-radius:10px;padding:12px;background:#fff;display:flex;flex-direction:column;gap:8px}
.ops-ad-grid{display:flex;gap:10px;align-items:flex-end}
.ops-field{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#8a927e;flex:1}
.ops-field input[type=text],.ops-field input[type=password],.ops-field select,.ops-field textarea{border:1px solid #dbe3cd;border-radius:7px;padding:8px 10px;font:inherit;font-size:12px;background:#f7f9f1;color:#5d6b52;width:100%;box-sizing:border-box}
.ops-ad-grid .ops-field:last-child{flex:0 0 auto}
.ops-ad-foot{display:flex;justify-content:space-between;align-items:center;margin-top:2px}
.ops-id{font-size:10px;color:#a3ab95;font-family:ui-monospace,monospace}
.ops-del{font-size:11px;color:#b06a5a;background:#fbeee9;border-radius:6px;padding:6px 10px}
.ops-add{align-self:flex-start;font-size:12px;background:#eaf0df;color:#5d6b52;border-radius:8px;padding:9px 14px}
.ops-empty{font-size:12px;color:#98a089;margin:0}
.ops-json{width:100%;min-height:150px;font-family:ui-monospace,monospace;font-size:11px;line-height:1.6;border:1px solid #dbe3cd;border-radius:8px;padding:10px;background:#f7f9f1;color:#4b5a44;box-sizing:border-box}
.ops-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ops-actions button{font-size:12px;background:#eef2e6;color:#5d6b52;border-radius:8px;padding:9px 12px}
.ops-primary{background:#748666!important;color:#fff!important}
@media(max-width:600px){.ops-panel{width:100%}}

/* Announcement ticker (inline, scrolling, dismissible). */
.notice-ticker{display:flex;align-items:center;gap:10px;padding:8px 42px;background:#fdf6e9;border-bottom:1px solid #f0e6cf;overflow:hidden}
.notice-ticker[hidden]{display:none}
.notice-tag{flex:none;font-size:9px;letter-spacing:1px;color:#b08a5e;background:#f6e7cf;border-radius:4px;padding:2px 6px}
.notice-scroll{flex:1;min-width:0;overflow:hidden;white-space:nowrap}
.notice-scroll-text{display:inline-block;white-space:nowrap;color:#9a7a4e;font-size:12px;animation:notice-marquee 20s linear infinite}
.notice-scroll-text a{color:#9a7a4e;text-decoration:none}
.notice-close{flex:none;width:24px;height:24px;border-radius:6px;color:#b08a5e;font-size:16px;line-height:1;display:grid;place-items:center}
.notice-close:hover{background:#f6ecd9}
@keyframes notice-marquee{from{transform:translateX(100%)}to{transform:translateX(-100%)}}
@media(prefers-reduced-motion:reduce){.notice-scroll-text{animation:none;white-space:normal}.notice-scroll{white-space:normal}}
@media(max-width:900px){.notice-ticker{padding:7px 16px}}
.btn-link{display:inline-block;margin-top:10px;margin-right:12px;color:#6a8154;text-decoration:underline;font-size:12px}

/* Ops panel additions (connection badge, presets, mini buttons). */
.ops-head{gap:10px}
.ops-conn{font-size:10px;margin-left:auto;padding:3px 9px;border-radius:999px;white-space:nowrap}
.ops-conn.ok{background:#e9f0df;color:#6a8154}
.ops-conn.warn{background:#f7efe0;color:#a9855a}
.ops-presets{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}
.ops-chip{font-size:12px;background:#eef2e6;color:#5d6b52;border-radius:8px;padding:8px 12px}
.ops-ad-en{white-space:nowrap;margin:0;align-self:center}
.ops-ad-btns{display:flex;gap:6px;align-items:center}
.ops-mini{width:28px;height:28px;border-radius:6px;background:#eef2e6;color:#5d6b52;font-size:13px;line-height:1;display:grid;place-items:center}
.ops-inline{display:flex;flex-wrap:wrap;gap:14px;margin:6px 0}
.ops-details{margin-top:12px}
.ops-details summary{cursor:pointer;font-size:12px;color:#7d8574;margin-bottom:8px}

/* Ops price editor */
.ops-prices{display:flex;flex-direction:column;gap:16px;margin:8px 0 12px}
.ops-price-group h4{margin:0 0 6px;font-size:12px;color:#7d8574;font-weight:600}
.ops-price-row{display:grid;grid-template-columns:1fr 96px;gap:4px 10px;align-items:center;padding:7px 0;border-bottom:1px dashed #eceee4}
.ops-price-name{font-size:12px;color:#5d6b52;overflow-wrap:anywhere}
.ops-price-row input[type=number]{border:1px solid #dbe3cd;border-radius:7px;padding:7px 9px;font:inherit;font-size:12px;background:#f7f9f1;color:#5d6b52;width:100%;box-sizing:border-box}
.ops-price-meta{grid-column:1 / -1;font-size:10px;color:#a3ab95}

/* Analytics consent bar (only shown when the operator requires consent). */
.consent-bar{position:fixed;left:12px;right:12px;bottom:12px;z-index:9998;display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#2f3a2cdd;color:#eef2e6;border-radius:12px;padding:12px 16px;box-shadow:0 10px 30px #0004;font-size:12px;backdrop-filter:blur(4px)}
.consent-text{flex:1;min-width:180px;line-height:1.6}
.consent-actions{display:flex;gap:8px;align-items:center}
.consent-actions button{font-size:12px;padding:8px 14px;border-radius:8px;background:#eaf0df;color:#3f5135}
.consent-actions button[data-consent="deny"]{background:#4a5644;color:#dfe6d6}
.consent-more{color:#bcd0a8;text-decoration:underline;font-size:11px}

/* Ops security banner */
.ops-warn{border:1px solid #e3c98f;background:#fdf6e3;border-radius:10px;padding:10px 12px;font-size:12px;color:#7a5b12;line-height:1.7}
.ops-ok{border:1px solid #c4d8b8;background:#f0f7ea;border-radius:10px;padding:10px 12px;font-size:12px;color:#3f6333;line-height:1.7}
.ops-steps{margin:8px 0 4px;padding-left:20px}
.ops-steps li{margin:4px 0}
.ops-warn code,.ops-ok code{background:rgba(0,0,0,.06);border-radius:4px;padding:1px 5px;font-size:11px;user-select:all}

/* Ops stats viewer */
.ops-presence{margin-top:10px}
.ops-presence-cards{grid-template-columns:repeat(3,1fr)}
.ops-card.ops-live{border-color:#cdd9c2;background:#f2f7ec}
.ops-card.ops-live strong{color:#4f7a3f}
@media(max-width:700px){.ops-presence-cards{grid-template-columns:1fr 1fr}}
.ops-stats{margin-top:12px;border:1px solid #e9ece3;border-radius:10px;padding:12px;background:#f7f9f1}
.ops-stat-totals{display:grid;grid-template-columns:1fr auto;gap:6px 12px;font-size:12px;color:#5d6b52}
.ops-stat-totals b{color:#4b5a44}
.ops-stat-days{margin-top:12px;border-top:1px dashed #e2e7d8;padding-top:10px}
.ops-stat-days h4{margin:0 0 8px;font-size:12px;color:#7d8574}
.ops-stat-day{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#7d8574;padding:4px 0}
.ops-stat-day small{color:#a3ab95}

/* Ops statistics charts */
.ops-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.ops-card{background:#fff;border:1px solid #e9ece3;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.ops-card small{font-size:10px;color:#98a089}
.ops-card strong{font-size:16px;color:#5d6b52;font-weight:600}
@media(max-width:700px){.ops-cards{grid-template-columns:repeat(2,1fr)}}
.ops-stat-sec{margin-top:6px}
.ops-stat-sec h4{margin:0 0 8px;font-size:12px;color:#7d8574;font-weight:600}
.ops-chart{width:100%;height:auto;display:block;background:#fff;border:1px solid #eceee4;border-radius:10px;padding:6px}
.ops-hbar{display:grid;grid-template-columns:88px 1fr 48px;gap:8px;align-items:center;margin:5px 0;font-size:12px;color:#6b7a5f}
.ops-hbar-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ops-hbar-track{height:8px;background:#eef1e7;border-radius:6px;overflow:hidden}
.ops-hbar-fill{display:block;height:100%;border-radius:6px}
.ops-hbar b{text-align:right;color:#5d6b52;font-weight:600}

/* Pet reacts when a bid for attention is answered in time */
.room-art.moment-joy .pet-breathe{animation:pet-love .9s ease}

/* Sleep banner: shown while the pet naps after a comforting rest */
.sleep-banner{display:flex;align-items:center;gap:12px;margin:12px 0;border:1px solid #c9d3e0;background:#eef3f9;border-radius:12px;padding:12px 14px;color:#4a5a70;line-height:1.7}
.sleep-banner[hidden]{display:none}
.sleep-banner .sleep-icon{flex:0 0 auto;width:40px;height:40px;border-radius:50%;background:#dce6f2;display:grid;place-items:center}
.sleep-banner .sleep-icon svg{width:22px;height:22px}
.sleep-banner div{flex:1;min-width:0}
.sleep-banner strong{display:block;font-size:13px;color:#33415c}
.sleep-banner p{margin:2px 0 0;font-size:12px;color:#6b7c93}
.sleep-wake{flex:0 0 auto;min-height:44px;padding:10px 16px;border:1px solid #b9c6d8;background:#fff;border-radius:10px;color:#4a5a70;font-size:13px;cursor:pointer}
.sleep-wake:hover{background:#f2f6fb}
@media(max-width:700px){.sleep-banner{flex-wrap:wrap}.sleep-wake{width:100%}}
