[hidden]{display:none!important}
#pet-menu{border:16px solid transparent;border-image-source:var(--ui-panel);border-image-slice:var(--slice-panel,64) fill;border-image-width:16px;border-image-repeat:stretch;background:none;box-shadow:0 5px 0 #82613f18;padding:12px;border-radius:0;image-rendering:pixelated}
.menu-header>button{width:40px;height:40px;background-image:var(--ui-close);background-size:100% 100%;background-color:transparent;border:0;border-radius:0;font-size:0}
.action-btn,.menu-tabs button,.release-link,.friend-picker button,.choice{border:8px solid transparent;border-image-source:var(--ui-button);border-image-slice:var(--slice-button,30) fill;border-image-width:8px;border-image-repeat:stretch;background:none;border-radius:0;padding:5px 7px;image-rendering:pixelated;min-height:42px}
.menu-tabs button{padding:5px 0;font-size:11px}
.action-btn.primary,.menu-tabs button[aria-pressed=true],.friend-picker button[aria-pressed=true],.choice[aria-pressed=true]{border-image-source:var(--ui-active);border-image-slice:var(--slice-active,30) fill;background:none;color:#435235}
.release-link{font-size:11px}.choice{padding:5px 4px}.action-btn:active,.friend-picker button:active,.menu-tabs button:active{transform:translateY(1px)}
.friend-picker{display:flex;gap:5px;margin:2px 0 12px}.friend-picker button{flex:1;min-width:0;font:inherit;font-size:11px;padding:5px 1px}
#preview-friends{margin-top:18px;max-width:310px}.phone-content{margin-top:22px}
.album-entry,.upgrade-row,.empty,.release-note{border:8px solid transparent;border-image-source:var(--ui-card);border-image-slice:var(--slice-card,40) fill;border-image-width:8px;border-image-repeat:stretch;padding:10px 6px;image-rendering:pixelated;margin-bottom:6px}
.upgrade-row{gap:6px}.upgrade-row button{max-width:88px}.album-entry{gap:4px}.album-entry canvas{width:30px;height:30px}
#pet-world{gap:12px;max-width:calc(100vw - 12px);z-index:3}.pet-touch{width:140px;flex-shrink:0}
#speech-layer{position:fixed;inset:0;pointer-events:none;z-index:4}
.speech-bubble{position:absolute;width:148px;min-height:70px;padding:11px 12px 21px;background-image:var(--ui-bubble);background-size:100% 100%;image-rendering:pixelated;text-align:center;font-size:11px;line-height:1.45;color:#695336;overflow-wrap:anywhere;filter:drop-shadow(0 2px 0 #79582c12)}
.speech-bubble[data-kind=item]{color:#526d3c;font-weight:500}
body.native #speech-layer{position:absolute}body.native #pet-world{gap:12px;bottom:0}body.native .pet-touch{height:140px}body.native #pet-menu{padding:10px}
@media(max-width:340px){#pet-menu{padding:10px;border-image-width:14px;border-width:14px}.menu-header>canvas{width:48px;height:48px}.menu-header h2{font-size:15px}.choice canvas{width:26px;height:26px}.album-entry canvas{width:26px;height:26px}.album-entry{font-size:11px}.work-action{align-items:flex-start}.work-action b{font-size:12px}.action-btn{padding:4px;font-size:11px}.pet-touch{width:140px}.pet-touch canvas{width:140px;height:121px}}
/* One companion, four main pages. Every skin still uses the generated farm atlas. */
.dress-preview{display:flex;flex-direction:column;align-items:center;border:8px solid transparent;border-image:var(--ui-card) var(--slice-card,40) fill / 8px;padding:2px 4px 7px;margin-bottom:9px}
.dress-preview>canvas{width:180px;height:120px;image-rendering:pixelated}
.dress-preview>nav{display:flex;flex-wrap:wrap;gap:4px;width:100%}.dress-preview button{flex:1 1 25%;min-width:0;font-size:10px;padding:5px 1px;border:5px solid transparent;border-image:var(--ui-button) var(--slice-button,30) fill / 5px;background:none;color:#796249;image-rendering:pixelated}.dress-preview button[aria-pressed=true]{border-image-source:var(--ui-active)}
.pet-touch canvas{width:140px;height:131px}.pet-name{overflow-wrap:anywhere;line-height:1.35}
#pet-menu{scrollbar-width:thin}.menu-tabs{position:sticky;top:-12px;z-index:2;background:#faf0d9;padding:3px 0;margin-bottom:12px}
.menu-header h2{overflow-wrap:anywhere}.menu-header>button{flex-shrink:0;min-width:30px;width:32px;height:32px;min-height:32px}
#show-more{font-size:22px;background-image:var(--ui-button);color:#7a6247}#close-menu{font-size:0}
.micro{font-size:10px;line-height:1.7;color:#8b7c65;margin:6px 0 12px}.skill-meter{height:7px;background:#e7ddc6;border-radius:2px;overflow:hidden}.skill-meter>div{height:100%;background:#9cac7e}
.job-grid,.pet-list,.adopt-grid,.cosmetic-grid,.collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.job-choice,.pet-choice,.cosmetic-choice{border:8px solid transparent;border-image-source:var(--ui-button);border-image-slice:var(--slice-button,30) fill;border-image-width:8px;background:none;image-rendering:pixelated;padding:7px 3px;min-width:0}
.job-choice[aria-pressed=true],.pet-choice[aria-pressed=true],.cosmetic-choice[aria-pressed=true]{border-image-source:var(--ui-active);border-image-slice:var(--slice-active,30) fill}
.job-choice{display:flex;align-items:center;gap:3px;text-align:left;min-height:57px}.job-choice canvas{width:28px;height:28px;flex-shrink:0}.job-choice span{font-size:12px}.job-choice small{display:block;font-size:9px;line-height:1.5;color:#85755c}
.equipment{margin:10px 0}.gear-row{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:10px 0;border-bottom:1px dashed #dcccad}.gear-row>div{min-width:0}.gear-row b{display:block;font-size:12px;font-weight:500}.gear-row small{display:block;font-size:10px;line-height:1.6;color:#87745b;margin-top:4px}.gear-row button{flex-shrink:0;min-width:65px}
.loot-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.loot-strip>span{display:flex;flex-direction:column;align-items:center;min-width:0;padding:5px 0}.loot-strip canvas{width:30px;height:30px}.loot-strip small{font-size:9px;text-align:center;overflow-wrap:anywhere;line-height:1.5}
.rare{color:#917898}.rare canvas{filter:drop-shadow(0 1px 1px #cfbfd859)}.speech-bubble[data-kind=rare],.speech-bubble[data-kind=master]{color:#8c6b97}
.pet-choice{display:flex;flex-direction:column;align-items:center}.pet-choice>canvas{width:82px;height:82px}.pet-choice b{font-size:13px;overflow-wrap:anywhere}.pet-choice small{font-size:10px;line-height:1.6;margin-top:3px}.master-badges{display:flex;gap:4px;margin-top:7px}.master-badges i{font-style:normal;font-size:9px;color:#ae9d80;background:#eee3c8;padding:2px 4px}.master-badges i.earned{color:#fff7d9;background:#9eae7f}
.name-form{padding:12px 0}.name-form label,#adopt-form>label{display:block;font-size:11px;margin-bottom:6px}.name-form>div{display:flex;gap:5px;align-items:center}.name-form input{flex:1;min-width:0}.name-form button{flex-shrink:0}
input[type=text],input:not([type]),#adopt-name{font:inherit;font-size:13px;min-height:42px;border:1px solid #cbb894;background:#fff7e1;color:#6f593f;padding:8px;max-width:100%;border-radius:3px}
details>summary{font-size:12px;cursor:pointer;min-height:44px;line-height:1.7;padding:12px 0;color:#6d7f50}details{border-top:1px dashed #d8c8a5}.adopt-grid{margin:5px 0 14px}.adopt-grid label{position:relative;display:flex;align-items:center;flex-direction:column;padding:5px;border:1px solid #d6c5a4;background:#f8eed6;border-radius:3px;font-size:12px;cursor:pointer}.adopt-grid label:has(input:checked){outline:2px solid #91a371;background:#e9ecd7}.adopt-grid input{position:absolute;top:7px;left:7px;accent-color:#81956b}.adopt-grid canvas{width:86px;height:86px}.adopt-grid small{font-size:9px;line-height:1.5;margin-top:4px}.adopt-grid b{font-weight:500}
#adopt-name{display:block;width:100%;margin:0 0 9px}#adopt-form>.action-btn{width:100%}
.sub-tabs,.book-jobs{display:flex;gap:5px;margin-bottom:12px}.sub-tabs button,.book-jobs button{flex:1;min-width:0;font:inherit;font-size:11px;min-height:40px;border:1px solid #d4c29a;border-radius:3px;background:#f7ecd2}.sub-tabs button[aria-pressed=true],.book-jobs button[aria-pressed=true]{background:#e2e8cf;border-color:#9eae7d;color:#627d48}.book-jobs button{font-size:10px}
.bag-summary{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:10px}.collection-grid .album-entry{margin:0;min-height:85px}.collection-grid .album-entry div{font-size:11px;overflow-wrap:anywhere}.collection-grid .album-entry small{font-size:9px;line-height:1.6}.collection-grid+.action-btn{margin:12px 0;width:100%}
.order-card,.family-note{padding:14px 10px;background:#f6ead0;border:1px solid #d7c49e;border-radius:3px}.order-card>small{font-size:10px;color:#8c795c}.order-card h3{font-size:15px;font-weight:500}.order-card>div{display:flex;flex-direction:column;gap:6px}.order-card span{display:flex;align-items:center;gap:8px;font-size:12px}.order-card canvas{width:34px;height:34px}.order-card p,.family-note{font-size:12px;line-height:1.7}.order-card button{width:100%}.family-note p{font-size:10px;line-height:1.8;color:#8d7b5f}
.cosmetic-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100px}.cosmetic-choice canvas{width:80px;height:70px}.cosmetic-choice b{font-size:11px;font-weight:500}.cosmetic-choice small{font-size:9px;line-height:1.65;margin-top:5px;text-align:center;overflow-wrap:anywhere}
.news>p{font-size:11px;color:#7d8f5d}body.native .menu-tabs{top:-10px}body.native .pet-touch{height:140px}
@media(max-width:340px){.menu-header{gap:6px}.menu-header>canvas{width:44px;height:44px}.menu-header h2{font-size:14px}.menu-header>button{width:28px;min-width:28px;height:28px;min-height:28px}.pet-touch canvas{height:131px}.job-choice span{font-size:11px}.job-choice{padding:5px 1px}.gear-row b{font-size:11px}.gear-row button{min-width:60px}.pet-choice canvas{width:76px;height:76px}.cosmetic-choice canvas{width:72px;height:63px}}
/* Quiet paper surfaces follow the pencil-painted companion. */
body{background:#faf7ef;color:#785f4e}
#pet-menu{border:2px solid #dbc5ae;border-image:none;background:#fffaf1;border-radius:22px;padding:14px;box-shadow:0 8px 24px #795b3818;image-rendering:auto}
.action-btn,.menu-tabs button,.release-link,.job-choice,.pet-choice,.cosmetic-choice,.dress-preview button{border:1px solid #d8bfa8;border-image:none;border-radius:12px;background:#f7eee1;image-rendering:auto;padding:9px 7px}
.action-btn.primary,.menu-tabs button[aria-pressed=true],.job-choice[aria-pressed=true],.pet-choice[aria-pressed=true],.cosmetic-choice[aria-pressed=true],.dress-preview button[aria-pressed=true]{border-image:none;border-color:#9bb8a8;background:#e6efe3;color:#4f6d5d}
.menu-tabs{background:#fffaf1}.album-entry,.empty,.release-note,.dress-preview{border:1px solid #e6d6c3;border-image:none;border-radius:12px;background:#fcf6eb;image-rendering:auto}
.dress-preview>canvas,canvas[data-species=cat]{image-rendering:auto}
.menu-header>button,#show-more,#close-menu{background:#f5e9d9;background-image:none;border:1px solid #d8bfa8;border-radius:50%;font-size:19px}
#close-menu{font-size:0}#close-menu:after{content:'×';font-size:22px}
.speech-bubble{background:#fffaf0;background-image:none;border:1px solid #c9ab8b;border-radius:16px;min-height:0;padding:10px 12px;image-rendering:auto;filter:drop-shadow(0 2px 1px #79582c12)}
.speech-bubble:after{content:'';position:absolute;left:calc(50% - 4px);bottom:-5px;width:8px;height:8px;background:#fffaf0;border-right:1px solid #c9ab8b;border-bottom:1px solid #c9ab8b;transform:rotate(45deg)}
.cycle-story{display:flex;gap:3px;margin:14px 0 7px;font-size:10px;line-height:1.5}.cycle-story span{flex:1;text-align:center;padding:7px 3px;border-radius:9px;color:#9b887a;background:#f5efe6}.cycle-story span[data-current=true]{background:#e5ede4;color:#4f705e;font-weight:600}
.cycle-track{height:4px;border-radius:4px;background:#eae1d5;overflow:hidden;margin-bottom:16px}.cycle-track>div{height:100%;background:#adc1b1;transition:width .25s linear}
.work-plan h3{font-size:13px;font-weight:500;margin:17px 0 8px}.plan-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.plan-options button{min-width:0;min-height:55px;border:1px solid #dfcbb6;border-radius:12px;background:#fffaf1;padding:8px 4px}.plan-options b{font-size:11px;font-weight:500}.plan-options small{display:block;font-size:9px;line-height:1.6;color:#9a8674;margin-top:4px;overflow-wrap:anywhere}.plan-options button[aria-pressed=true]{background:#ebe5f2;border-color:#b6a2c8}
.goal-card{display:flex;gap:10px;justify-content:space-between;align-items:center;background:#f6ebd9;border:1px solid #e1ccb0;border-radius:14px;padding:12px;margin:12px 0;font-size:12px}.goal-card>div{min-width:0}.goal-card small,.goal-card b,.goal-card span{display:block}.goal-card small{font-size:9px;color:#a18062}.goal-card b{font-size:12px;font-weight:500;margin:6px 0}.goal-card span{font-size:10px;line-height:1.7;color:#9b7f64}.goal-card button{flex-shrink:0;font-size:10px;min-width:66px}
.growth-detail>summary{font-size:12px;padding:11px 0;color:#786550;cursor:pointer}.growth-detail[open]>.skill-meter{margin-top:10px}.order-card,.family-note{border-radius:14px;background:#f8f0e2}
@media(max-width:340px){#pet-menu{border-width:2px;padding:11px}.plan-options{gap:4px}.plan-options b{font-size:10px}.cycle-story{font-size:9px}.goal-card{padding:10px}}
@media(prefers-reduced-motion:reduce){.cycle-track>div{transition:none}}
.sub-tabs button,.book-jobs button{border:1px solid #d8c5ae;border-radius:10px;background:#f8eee0;padding:9px 6px}.sub-tabs button[aria-pressed=true],.book-jobs button[aria-pressed=true]{background:#e6eee2;border-color:#aabdac}
