/* The shared shell owns the footer, menus, pause and exit confirmation. */
:root { --bg:#152c2c; --panel:#24433e; --accent:#eac38a; --pet-ink:#254e43; --pet-cream:#fff8e9; }
.game-frame { background:#203532; max-width:1200px; margin:0 auto; display:grid;grid-template-rows:auto minmax(0,1fr) auto; }
#game { grid-column:1;grid-row:2; width:100%;height:100%;min-height:0;display:block;touch-action:none;-webkit-touch-callout:none; }
@media (hover:hover) and (pointer:fine) {
 /* Override the hub's !important gamer cursor on this canvas only. */
 #game { cursor:grab !important; }
 #game[data-tool=wipe],#game[data-tool=wash] { cursor:crosshair !important; }
 #game[data-cursor=pointer] { cursor:pointer !important; }
 #game[data-cursor=grab] { cursor:grab !important; }
 #game[data-cursor=grabbing] { cursor:grabbing !important; }
}
.pet-header { grid-row:1;grid-column:1;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 22px;background:#203532;color:#fff4dc; }
.pet-heading { min-width:0; }
.pet-heading small { font-size:10px;text-transform:uppercase;letter-spacing:.17em;color:#bde3c4; }
.pet-heading strong { display:block;font-size:clamp(21px,3vw,27px);line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
#save-state { display:block;font-size:10px;color:#c3d4c1;margin-top:3px; }
.pet-growth { display:block;font-size:10px;color:#ffda8a;margin-top:2px;grid-column:1 / -1; }
.care-actions button:disabled { opacity:.55;cursor:default;box-shadow:none; }
.pet-needs { display:grid;grid-template-columns:repeat(3,minmax(85px,130px));gap:6px 14px;flex:0 1 440px; }
.need { display:block;min-width:0; }
.need-title { display:flex;justify-content:space-between;gap:5px;font-size:10px;line-height:1.2; }
.need i { font-style:normal;color:#ffdc8d; }
.need output { font-variant-numeric:tabular-nums;color:#b9d4c3;font-size:9px; }
.need meter { display:block;width:100%;height:8px;margin-top:3px;appearance:none;border:0;border-radius:20px;background:#466153; }
.need meter::-webkit-meter-bar { background:#466153;border:0;border-radius:20px; }
.need meter::-webkit-meter-optimum-value { background:linear-gradient(90deg,#52bf92,#a6e9a4);border-radius:20px; }
.need meter::-webkit-meter-suboptimum-value { background:#f6c466;border-radius:20px; }
.need meter::-webkit-meter-even-less-good-value { background:#f19179;border-radius:20px; }
.need meter::-moz-meter-bar { background:#a6e9a4;border-radius:20px; }
.interaction-panel { grid-row:3;grid-column:1;background:var(--pet-cream);color:var(--pet-ink);padding:14px 22px 10px;border-top:3px solid #eed9a9;touch-action:pan-y;max-height:48dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;container-type:inline-size; }
.interaction-panel [hidden],.game-frame > [hidden],.pet-header [hidden] { display:none!important; }
.interaction-panel button,.interaction-panel input,.interaction-panel select { font:inherit;box-sizing:border-box;color:var(--pet-ink); }
.interaction-panel button { min-height:44px;cursor:pointer;border:1px solid #dfd6bc;border-radius:13px;background:#fffdf6;transition:background .15s,transform .15s; }
.interaction-panel button:hover { background:#f1ebd7; }
.interaction-panel button:active { transform:translateY(1px); }
.interaction-panel :is(button,input,select):focus-visible { outline:3px solid #419477;outline-offset:2px; }
.interaction-panel .pet-primary { background:#347b5e;color:#fffbea;border-color:#276046;padding:10px 22px;font-weight:750;box-shadow:0 3px 0 #276046; }
.interaction-panel .pet-primary:hover { background:#28674e; }
.onboarding { max-width:880px;margin:0 auto;display:flex;gap:24px;align-items:center;justify-content:space-between; }
#step-customize { display:grid;grid-template-columns:minmax(140px,180px) minmax(0,1fr);gap:14px 24px;min-width:0; }
#step-customize > .appearance-choices { min-width:0; }
#step-customize > .pet-primary { grid-column:1 / -1;justify-self:center;min-width:0;width:min(100%,320px);max-width:100%;white-space:normal;overflow-wrap:anywhere; }
.step-kicker { font-size:9px;font-weight:750;letter-spacing:.18em;color:#7b7558; }
.onboarding h2 { margin:2px 0 6px;font-size:23px;letter-spacing:-.03em;line-height:1.15;color:#2b5845; }
.onboarding p { margin:0;font-size:12px;line-height:1.5;color:#617264;max-width:330px; }
.onboarding > .pet-primary { flex-shrink:0; }
#egg-count { display:inline-block;margin-left:8px;color:#e5eac2;font-size:12px; }
.appearance-choices { display:flex;flex-wrap:wrap;gap:8px 18px; }
.appearance-choices fieldset { padding:0;border:0;margin:0;min-inline-size:0; }
.appearance-choices legend { font-size:11px;font-weight:700;margin-bottom:4px; }
.swatches { display:flex;gap:5px; }
.interaction-panel .swatch { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:48px;padding:5px 6px;font-size:9px;border-radius:10px; }
.swatch i { width:22px;height:22px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 2px 4px #ffffff65,inset 0 -2px 3px #203b3520; }
.interaction-panel button[aria-pressed=true] { background:#e5f1dc;border-color:#71a17b;box-shadow:inset 0 0 0 1px #71a17b; }
.swatch[aria-pressed=true] i::after { content:'✓';display:block;color:#fff;font-size:17px;line-height:22px;font-weight:800;text-shadow:0 1px 2px #25483e; }
.detail-choices { width:100%;display:flex;align-items:center;gap:18px;font-size:12px; }
.detail-choices select { min-height:36px;border:1px solid #ded4b9;border-radius:9px;background:#fffdf6;padding:3px 8px;font-size:11px; }
.tail-choice { display:flex;align-items:center;min-height:40px;gap:6px; }
.tail-choice input { width:18px;height:18px;accent-color:#347b5e; }
#step-customize .step-intro { min-width:140px;max-width:180px; }
#name-form { width:min(100%,390px); }
.name-entry { display:flex;gap:6px;margin-bottom:10px; }
.name-entry input { min-width:0;width:100%;border:1px solid #c9cdb8;border-radius:10px;min-height:44px;padding:8px 12px;background:#fff; }
.name-entry button { padding:6px 10px;white-space:nowrap;font-size:11px; }
.onboarding .name-error { color:#a34535;font-size:11px;margin:2px 0 10px; }
.name-entry [aria-invalid=true] { border:2px solid #b76654; }
.interaction-panel[data-stage=room] { padding:7px 12px 6px;overflow-y:auto;max-height:36dvh; }
.care-tip { margin:0 0 5px;font-size:11px;line-height:1.3;text-align:center;color:#67775f; }
.care-actions { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-width:760px;margin:0 auto; }
.care-actions button { display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:44px;width:100%;padding:6px;font-weight:750;font-size:12px;line-height:1.2;text-align:center;white-space:normal;box-shadow:0 2px 0 #e9dfc7; }
.care-actions i { flex:none;font-style:normal;font-size:18px;line-height:1; }
.care-actions button > span { min-width:0;max-width:100%;overflow-wrap:anywhere; }
.care-actions button { position:relative; }
.portion-count { position:absolute;top:-3px;right:3px;min-width:14px;height:14px;line-height:14px;border-radius:50%;background:#e5f1dc;color:#426548;font-size:9px;font-weight:750; }
.care-actions button[data-empty=true] .portion-count { background:#f6d0bd;color:#854f37; }
.room-actions { display:flex;justify-content:center;align-items:center;gap:6px;margin-top:10px;flex-wrap:wrap; }
.room-actions button { padding:6px 11px;font-size:11px;min-height:36px;border-color:transparent;background:transparent;box-shadow:none; }
.room-actions #btn-finish { color:#6e755f;text-decoration:underline;text-underline-offset:3px; }
.room-controls { display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:2px 8px;margin-top:4px; }
.room-controls .room-actions { margin:0;gap:2px; }
.room-toolbar { display:flex;justify-content:center;gap:6px;align-items:center; }
.room-toolbar > button { padding:4px 10px;min-height:44px;box-sizing:border-box;font-size:11px; }
.object-tools { display:flex;gap:2px;background:#e9ead8;border-radius:12px;padding:2px; }
.object-tools button { padding:4px 7px;min-height:40px;border-color:transparent;background:transparent;font-size:11px; }
.room-toolbar > button { background:#e5f1dc;border-color:#a7c795;font-weight:700; }
.care-message { height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:2px 0 0;text-align:center;font-size:10px;line-height:16px;color:#587253; }
.care-message:empty { visibility:hidden; }
.placement-tools { display:flex;justify-content:center;align-items:center;gap:12px;margin:8px 0;padding:7px 10px;background:#e5f1dc;border:1px solid #a7c795;border-radius:12px;font-size:12px; }
.placement-tools button { padding:5px 12px; }
.pet-interaction-hint { margin:7px auto 0;max-width:660px;text-align:center;font-size:10px;line-height:1.4;color:#74806a; }
.scene-status { z-index:3;position:absolute;left:20px;right:20px;top:34%;max-width:540px;margin:0 auto;text-align:center;background:#203b35f5;padding:22px;border:1px solid #88a288;border-radius:18px;color:#fff2da;font-size:14px;box-shadow:0 12px 40px #10251f60; }
#btn-retry { z-index:3;position:absolute;top:60%;left:50%;transform:translateX(-50%); }
.push-charge { position:fixed;z-index:8;width:132px;box-sizing:border-box;padding:8px 10px;border:1px solid #b9d79b;border-radius:12px;background:#203b35f5;color:#fff8e9;box-shadow:0 4px 14px #10251f55;transform:translate(-50%,-100%);pointer-events:none; }
.push-charge > span { display:flex;justify-content:space-between;gap:8px;margin-bottom:5px;font-size:11px;line-height:1.2; }
.push-charge output { color:#ffdf94;font-variant-numeric:tabular-nums; }
.push-charge-track { height:9px;overflow:hidden;background:#466153;border-radius:10px; }
.push-charge-track i { display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,#83e196,#ffdb70,#ff925e);transform:scaleX(0);transform-origin:left center; }
.dev-tools { display:flex;justify-content:center;align-items:center;gap:7px;padding-top:5px;margin-top:4px;border-top:1px dashed #c5b98e; }
.dev-tools small { font-size:9px;color:#877a58; }
.dev-tools button { min-height:36px;padding:4px 10px;font-size:11px;background:#f4ecd5; }
.dev-reset-dialog { width:min(360px,calc(100vw - 32px));box-sizing:border-box;padding:22px;border:2px solid #dfc893;border-radius:18px;background:var(--pet-cream);color:var(--pet-ink);box-shadow:0 16px 60px #10251f70; }
.dev-reset-dialog::backdrop { background:#132e2b99; }
.dev-reset-dialog h2 { margin:0 0 10px;font-size:21px; }
.dev-reset-dialog p { font-size:13px;line-height:1.5; }
.dev-reset-dialog > div { display:flex;justify-content:flex-end;gap:8px; }
.dev-reset-dialog button { min-height:44px;padding:8px 14px;border:1px solid #c9bd99;border-radius:11px;background:#fffdf6;color:var(--pet-ink);font:inherit;cursor:pointer; }
.dev-reset-dialog #btn-dev-reset-confirm { background:#a84d38;color:#fff8e9;border-color:#93402d; }
.pet-menu-note { max-width:360px;color:var(--muted);font-size:1rem; }
.pet-local-note { color:var(--muted);font-size:.78rem;max-width:360px; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
@media (max-width:900px) and (min-width:601px) {
 #step-customize { flex-wrap:wrap;justify-content:center;gap:12px; }
 #step-customize .step-intro { max-width:none;min-width:0; }
 #step-customize .step-intro p { display:none; }
}
@media (max-width:600px) {
 .pet-header { flex-wrap:wrap;gap:9px;padding:9px 14px; }
 .pet-heading { display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:baseline;width:100%; }
 .pet-heading small { font-size:9px; }
 .pet-heading strong { font-size:21px; }
 #save-state { grid-column:1 / -1;margin:0;font-size:9px; }
 .pet-needs { flex-basis:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 12px; }
 .need-title { font-size:9px; }
 .interaction-panel { padding:11px 13px 8px;max-height:46dvh; }
 .onboarding { flex-direction:column;gap:12px;text-align:center; }
 .onboarding h2 { font-size:21px; }
 .onboarding p { font-size:11px; }
 #step-customize { flex-flow:row wrap;gap:10px;justify-content:center; }
 #step-customize .step-intro { max-width:none;width:100%; }
 #step-customize .step-intro p { display:none; }
 #step-customize .step-intro h2 { margin:0; }
 #step-customize .step-intro .step-kicker { display:none; }
 .appearance-choices { justify-content:center;gap:6px 14px; }
 .detail-choices { justify-content:center;gap:12px; }
 .interaction-panel .swatch { min-width:39px;font-size:8px;padding:3px 4px; }
 .swatch i { width:20px;height:20px; }
 .swatch[aria-pressed=true] i::after { line-height:20px; }
 .care-actions { gap:5px; }
 .care-actions button { padding:5px;font-size:11px; }
 .care-tip { font-size:10px;margin-bottom:5px; }
 .room-actions { gap:0;margin-top:7px; }
 .room-actions button { padding:5px 9px;font-size:10px; }
}
@media (max-height:510px) and (min-aspect-ratio:1/1) {
 .game-frame { grid-template-columns:minmax(0,1fr) 280px;grid-template-rows:auto minmax(0,1fr); }
 .pet-header { grid-column:1;grid-row:1;padding:6px 12px; }
 .pet-heading strong { font-size:20px; }.pet-heading small,#save-state { font-size:8px; }
 .pet-needs { grid-template-columns:repeat(3,minmax(55px,1fr));gap:5px 8px; }.need-title{font-size:8px; }
 .interaction-panel { grid-column:2;grid-row:1 / -1;max-height:100%;border-top:0;border-left:3px solid #eed9a9;padding:12px; }
 .interaction-panel[data-stage=room] { max-height:100%; }
 .onboarding { flex-direction:column;gap:10px;text-align:center; }
 #step-customize .step-intro { width:100%;max-width:none; }.step-intro p,.step-kicker { display:none; }
 .onboarding h2 { font-size:19px; }.onboarding p { font-size:11px; }
 .appearance-choices { justify-content:center;gap:6px; }.detail-choices { justify-content:center;gap:7px; }
 .care-actions { grid-template-columns:repeat(2,minmax(0,1fr));gap:5px; }.care-actions button { padding:5px;font-size:11px; }
 .room-actions { margin-top:6px;gap:0; }.room-actions button{padding:4px 8px;font-size:10px; }
 .care-tip { font-size:11px; }.care-message{font-size:10px; }
 .scene-status { left:8px;right:290px;top:25%;padding:16px;font-size:12px; }#btn-retry { left:calc((100% - 280px) / 2); }
}
@media (prefers-reduced-motion:reduce) { .interaction-panel button { transition:none; } }
/* The panel can be narrower than the viewport inside the hub or an iframe. */
@container (max-width:660px) {
 #step-customize { grid-template-columns:minmax(0,1fr);gap:10px;text-align:center; }
 #step-customize .step-intro { width:auto;min-width:0;max-width:none; }
 #step-customize .step-intro p,#step-customize .step-kicker { display:none; }
 #step-customize .step-intro h2 { margin:0;font-size:21px; }
 #step-customize .appearance-choices { justify-content:center;gap:8px 16px; }
 #step-customize .detail-choices { justify-content:center;flex-wrap:wrap;gap:6px 14px; }
}
@container (max-width:480px) {
 .care-actions { grid-template-columns:repeat(5,minmax(0,1fr)); }
}
@container (max-width:300px) {
 .care-actions { grid-template-columns:repeat(5,minmax(0,1fr)); }
}

/* Readable needs, one tool row and an upward menu leave the room in view. */
.game-frame:has(.interaction-panel[data-stage=room]) { grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto; }
.game-frame:has(.interaction-panel[data-stage=room]) .pet-header { display:grid;grid-column:1;grid-row:1;grid-template-columns:minmax(140px,.8fr) minmax(0,2fr);padding:8px 12px;gap:12px; }
.game-frame:has(.interaction-panel[data-stage=room]) .pet-heading { display:block;width:auto; }
.game-frame:has(.interaction-panel[data-stage=room]) .pet-heading strong { font-size:22px; }
.game-frame:has(.interaction-panel[data-stage=room]) .pet-heading small { display:none; }
.game-frame:has(.interaction-panel[data-stage=room]) #save-state { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
.game-frame:has(.interaction-panel[data-stage=room]) .pet-growth { font-size:12px;line-height:16px; }
.game-frame:has(.interaction-panel[data-stage=room]) .pet-needs { grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 12px; }
.game-frame:has(.interaction-panel[data-stage=room]) .need-title { font-size:12px;line-height:16px;gap:4px; }
.game-frame:has(.interaction-panel[data-stage=room]) .need-title > span { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.game-frame:has(.interaction-panel[data-stage=room]) .need output { flex:none;font-size:12px;color:#e0eadc; }
.game-frame:has(.interaction-panel[data-stage=room]) .need meter { height:7px;margin-top:2px; }
.interaction-panel[data-stage=room] { position:relative;grid-column:1;grid-row:3;padding:4px 6px;max-height:none;overflow:visible;container-type:normal; }
.interaction-panel[data-stage=room] .care-actions { display:flex;flex-wrap:nowrap;align-items:stretch;gap:4px;max-width:760px;min-width:0; }
.care-tool-strip { display:flex;flex:1;gap:4px;min-width:0;overflow-x:auto;scrollbar-width:none;touch-action:pan-x; }
.care-tool-strip::-webkit-scrollbar { display:none; }
.interaction-panel[data-stage=room] .care-actions button { display:flex;flex:1 0 48px;flex-direction:column;justify-content:center;align-items:center;min-width:48px;height:44px;min-height:44px;width:auto;gap:2px;padding:2px 1px;font-size:11px;line-height:13px;font-weight:700;white-space:normal;box-shadow:none;border-radius:9px; }
.interaction-panel[data-stage=room] .care-actions #btn-grab-height { flex-basis:44px;min-width:44px; }
.interaction-panel[data-stage=room] .care-actions button > span { overflow-wrap:normal; }
.interaction-panel[data-stage=room] .care-actions i { font-size:17px; }
.interaction-panel[data-stage=room] .care-actions img { width:19px;height:19px;object-fit:contain; }
.care-more { flex:0 0 44px; }
.care-more > summary { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;padding:2px;border:1px solid #c7cbb3;border-radius:9px;background:#eef0df;cursor:pointer;list-style:none;font-size:11px;line-height:13px;font-weight:700;touch-action:manipulation; }
.care-more > summary::-webkit-details-marker { display:none; }
.care-more > summary i { font-style:normal;font-size:17px;line-height:17px;letter-spacing:1px; }
.care-more[open] > summary { background:#d6e9cc;border-color:#71a17b; }
.care-more > summary:focus-visible { outline:3px solid #419477;outline-offset:2px; }
.care-more-panel { position:absolute;z-index:12;right:8px;bottom:calc(100% + 8px);box-sizing:border-box;width:min(340px,calc(100% - 16px));max-height:min(360px,55dvh);overflow-y:auto;padding:12px;border:1px solid #c7cbb3;border-radius:15px;background:var(--pet-cream);box-shadow:0 8px 28px #10251f55;touch-action:pan-y; }
.interaction-panel[data-stage=room] .care-more-panel .care-tip { margin:0 0 10px;text-align:left;font-size:13px;line-height:1.4; }
.interaction-panel[data-stage=room] .care-more-panel .room-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0; }
.interaction-panel[data-stage=room] .care-more-panel .room-actions button { flex:none;flex-direction:row;gap:6px;width:100%;min-width:0;min-height:44px;padding:6px;font-size:13px;line-height:18px;border-color:#d4d6bf;background:#fffdf6; }
.care-more-panel .room-icon-action .sr-only { position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal; }
.care-more-panel #btn-finish { grid-column:1 / -1; }
.interaction-panel[data-stage=room] .care-message { position:absolute;z-index:5;left:12px;right:12px;bottom:calc(100% + 8px);box-sizing:border-box;max-width:560px;height:auto;margin:0 auto;padding:8px 12px;border-radius:11px;background:#193e37ed;color:#fff8e9;font-size:12px;line-height:1.4;white-space:normal;pointer-events:none; }
.interaction-panel[data-stage=room] .care-message:empty,.interaction-panel[data-stage=room]:has(.care-more[open]) .care-message { display:none; }
.interaction-panel[data-stage=room] .dev-tools { margin-top:10px;padding-top:10px;gap:6px;flex-wrap:wrap; }
.interaction-panel[data-stage=room] .dev-tools small { font-size:11px; }
.interaction-panel[data-stage=room] .dev-tools button { flex:0 1 auto;min-width:0;min-height:36px;padding:4px 8px;font-size:12px; }
@media (max-width:600px) {
 .game-frame:has(.interaction-panel[data-stage=room]) .pet-header { grid-template-columns:minmax(0,1fr);gap:7px;padding:8px 10px; }
 .game-frame:has(.interaction-panel[data-stage=room]) .pet-heading { display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0; }
 .game-frame:has(.interaction-panel[data-stage=room]) .pet-heading strong { min-width:0;font-size:20px; }
 .game-frame:has(.interaction-panel[data-stage=room]) .pet-growth { flex:none;font-size:12px;line-height:16px; }
 .game-frame:has(.interaction-panel[data-stage=room]) .pet-needs { gap:6px 10px; }
}
@media (max-height:510px) and (min-aspect-ratio:1/1) {
 .game-frame:has(.interaction-panel[data-stage=room]) .pet-header { grid-template-columns:minmax(110px,.65fr) minmax(0,2fr);gap:10px;padding:5px 10px; }
 .game-frame:has(.interaction-panel[data-stage=room]) .pet-heading { display:block; }
 .game-frame:has(.interaction-panel[data-stage=room]) .pet-heading strong { font-size:20px; }
 .interaction-panel[data-stage=room] { padding:4px 8px;border-left:0;border-top:3px solid #eed9a9; }
}
.wash-brush { position:fixed;z-index:9;width:38px;height:38px;transform:translate(-21px,-26px);pointer-events:none;filter:drop-shadow(1px 2px 2px #173d3544); }
.care-message.pet-speech { position:fixed;z-index:10;box-sizing:border-box;max-width:190px;width:max-content;height:auto;margin:0;padding:10px 13px;border:2px solid #94b897;border-radius:17px;background:#fffbee;color:#285343;font-size:14px;font-weight:750;line-height:1.25;white-space:normal;text-align:center;overflow:visible;transform:translate(-50%,-100%);box-shadow:0 4px 13px #153d3540;pointer-events:none; }
.pet-speech::after { content:'';position:absolute;bottom:-8px;left:calc(50% - 7px);width:12px;height:12px;background:#fffbee;border-right:2px solid #94b897;border-bottom:2px solid #94b897;transform:rotate(45deg); }
.pet-speech[hidden] { display:none!important; }
@media (hover:hover) and (pointer:fine) {
 #game[data-tool=wash] { cursor:url('assets/ui/brush-cursor.svg') 21 26,crosshair !important; }
 #game[data-tool^=serve-] { cursor:grab !important; }
}

.egg-incubation{width:min(100%,320px);text-align:left}.egg-incubation p{font-size:14px;margin:0 0 8px}.egg-incubation label{display:flex;justify-content:space-between;font-size:13px;font-weight:700;gap:16px}.egg-incubation progress{width:100%;height:10px;accent-color:#d49a36}.egg-incubation output{font-variant-numeric:tabular-nums}

@media(max-width:620px){#step-egg.onboarding{gap:8px}#step-egg .step-kicker{display:none}#step-egg h2{font-size:18px;margin:0}.interaction-panel[data-stage=egg]{padding:10px 13px}.egg-incubation p{font-size:12px}}

.pet-mood{float:right;font-size:16px;line-height:22px;margin:2px 0 0 6px;flex:none}

/* Existing care tools, with large friendly icons and accessible names. */
.interaction-panel[data-stage=room] .care-actions{justify-content:center;gap:7px}
.interaction-panel[data-stage=room] .care-tool-strip{flex:0 1 auto;justify-content:center;gap:7px}
.interaction-panel[data-stage=room] .care-actions .cozy-icon-button{flex:0 0 48px;width:48px;min-width:48px;height:48px;padding:6px;border-radius:15px;background:#fffaf0;border:1px solid #d5d9bc;box-shadow:0 3px 0 #d9dec7}
.interaction-panel[data-stage=room] .care-actions .cozy-icon-button[aria-pressed=true]{background:#e0efd7;border-color:#78a983;box-shadow:0 2px 0 #a9c6a0;transform:translateY(1px)}
.care-actions .cozy-tool-icon,.care-more > summary .cozy-tool-icon{width:34px;height:34px;flex:none;filter:drop-shadow(0 1px 0 #fff8)}
.interaction-panel[data-stage=room] .care-actions .cozy-icon-button > .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.care-more{flex-basis:48px}.care-more > summary{width:48px;height:48px;border-radius:15px;background:#fffaf0;box-shadow:0 3px 0 #d9dec7}
.interaction-panel[data-stage=room] .care-more-panel .room-actions{grid-template-columns:repeat(2,48px);justify-content:center;gap:16px}
@media(max-width:360px){.interaction-panel[data-stage=room] .care-actions,.interaction-panel[data-stage=room] .care-tool-strip{gap:4px}}

.learning-splash{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:2px solid #fff7d7;border-radius:32px;padding:28px 28px 26px;background:radial-gradient(ellipse at 50% 0,#ddfae6 0,transparent 57%),linear-gradient(155deg,#fffdf4,#f4edff);color:#31574a;text-align:center;box-shadow:0 24px 90px #061e2666,0 0 0 8px #ffffff16;font-family:inherit;isolation:isolate}
.care-celebration{box-sizing:border-box;position:fixed;z-index:25;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:12px 18px 12px 12px;border:2px solid #fff5cc;border-radius:22px;background:linear-gradient(115deg,#fff9e8,#e3f8e9);color:#31574a;box-shadow:0 10px 30px #103c353d,0 0 0 4px #ffffff24;pointer-events:none;isolation:isolate}
.care-celebration[hidden]{display:none}.care-celebration.care-arrive{animation:care-arrive .4s cubic-bezier(.2,.8,.25,1.15) both}.care-medal{flex:0 0 52px;height:58px}.care-medal svg{width:52px;height:58px;filter:drop-shadow(0 3px 3px #c1983829)}.care-praise{min-width:0}.care-praise strong{display:block;font-size:19px;font-weight:900;letter-spacing:-.025em;color:#3d6652}.care-praise p{margin:4px 0 0;font-size:13px;line-height:1.35;color:#576d59;overflow-wrap:anywhere}.care-sparkles{position:absolute;right:8px;top:5px;color:#d0a34c;font-size:18px}.care-sparkles::after{content:'✦';position:absolute;right:19px;top:49px;font-size:11px;color:#9b82c6}
@keyframes care-arrive{from{opacity:0;transform:translate(-50%,-12px) scale(.94)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@media(prefers-reduced-motion:reduce){.care-celebration.care-arrive{animation:none}}
.learning-splash::backdrop{background:#09282d9c;backdrop-filter:blur(7px)}
.learning-splash[open]{animation:learning-arrive .48s cubic-bezier(.2,.9,.3,1.2) both}
.learning-medal{width:184px;height:164px;margin:0 auto 12px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle,#fff 0 56%,#fff8d875 58% 67%,transparent 69%);filter:drop-shadow(0 8px 12px #59a98928)}
.learning-medal svg{width:180px;height:150px;animation:learning-float 2.8s ease-in-out infinite}
.learning-kicker{font-size:11px!important;font-weight:900;letter-spacing:.2em;color:#8a6fba!important;margin:0 0 10px!important}
.learning-splash h2{position:relative;margin:0 auto 16px;font-size:clamp(25px,6vw,34px);line-height:1.12;font-weight:900;max-width:340px;letter-spacing:-.025em;color:#31574a;text-wrap:balance}
.learning-skill{display:inline-block;margin:0 0 12px!important;padding:9px 18px;border-radius:20px;background:#d6f2df;color:#32694e!important;font-size:15px!important;font-weight:800;box-shadow:inset 0 0 0 1px #badfc6}
.learning-splash #learning-description{margin:0 auto 22px;max-width:315px;color:#66796f;font-size:14px;line-height:1.6}
.learning-continue{width:100%;min-height:50px;padding:12px 20px;background:#8262bd;color:#fffdf7;border:0;border-radius:17px;font-family:inherit;font-size:16px;font-weight:800;line-height:1.4;cursor:pointer;box-shadow:0 5px 0 #654697;transition:transform .15s,background .15s}
.learning-continue:hover{background:#7352af;transform:translateY(-1px)}.learning-continue:active{transform:translateY(3px);box-shadow:0 2px 0 #654697}.learning-continue:focus-visible{outline:3px solid #b1dfc4;outline-offset:5px}
.learning-sparkles{position:absolute;inset:0;z-index:-1;overflow:hidden;border-radius:inherit;pointer-events:none}
.learning-sparkles i{position:absolute;left:calc(5% + var(--i)*8%);top:calc(8% + var(--i)*6%);font-style:normal;font-size:21px;color:#edc873;opacity:.6;animation:learning-glint 2.4s ease-in-out infinite;animation-delay:calc(var(--i)*-.27s)}.learning-sparkles i:nth-child(3n){color:#b8a2df;font-size:15px}.learning-sparkles i:nth-child(2n){color:#79c8a4}
@keyframes learning-arrive{from{opacity:0;transform:translateY(22px) scale(.92)}to{opacity:1;transform:none}}
@keyframes learning-float{50%{transform:translateY(-5px) rotate(-3deg)}}
@keyframes learning-glint{50%{opacity:.2;transform:translateY(-9px) rotate(16deg) scale(.8)}}
@media(max-width:480px){.learning-splash{padding:22px}.learning-medal{width:144px;height:122px;margin-bottom:10px}.learning-medal svg{width:140px;height:118px}.learning-splash h2{font-size:26px;margin-bottom:12px}.learning-skill{padding:7px 15px;font-size:14px!important}.learning-splash #learning-description{font-size:13px;line-height:1.5;margin-bottom:18px}}
@media(max-height:550px){.learning-splash{padding:16px 24px}.learning-medal{width:106px;height:82px;margin-bottom:4px}.learning-medal svg{width:104px;height:86px}.learning-splash h2{font-size:25px;margin-bottom:10px}.learning-splash #learning-description{font-size:12px;line-height:1.4;margin-bottom:12px}.learning-kicker{margin-bottom:6px!important}.learning-skill{padding:5px 13px;font-size:13px!important;margin-bottom:8px!important}.learning-continue{min-height:44px;padding:9px}}
@media(prefers-reduced-motion:reduce){.learning-splash[open],.learning-medal svg,.learning-sparkles i{animation:none}.learning-continue{transition:none}}
