/* A small, deliberately low-resolution companion that lives above the app shell. */
#pixel-cat-pet {
  --cat-ink:#252238;
  --cat-fur:#f7ba73;
  --cat-fur-light:#ffe5ae;
  --cat-pink:#f291a5;
  position:fixed;
  left:calc(100vw - 118px);
  top:calc(100vh - 152px);
  z-index:2147483000;
  width:112px;
  height:112px;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  cursor:grab;
  filter:drop-shadow(0 8px 7px rgba(18,18,30,.22));
  transition:filter .18s ease;
}
#pixel-cat-pet:hover { filter:drop-shadow(0 10px 10px rgba(18,18,30,.31)); }
#pixel-cat-pet.is-dragging { cursor:grabbing; filter:drop-shadow(0 14px 12px rgba(18,18,30,.34)); }
#pixel-cat-pet.is-hiding { display:none; }
#pixel-cat-pet::after { content:""; position:absolute; z-index:-1; left:21px; bottom:7px; width:73px; height:9px; border-radius:50%; background:rgba(16,25,29,.18); filter:blur(3px); transform:scaleX(.9); transition:opacity .18s ease,transform .18s ease; }
#pixel-cat-pet.is-dragging::after { opacity:.35; transform:scaleX(.72); }
.pixel-cat-hearts { position:absolute; z-index:4; top:-4px; left:7px; width:78px; height:45px; pointer-events:none; }
.pixel-cat-hearts i { position:absolute; color:#f08099; font:900 20px/1 sans-serif; font-style:normal; opacity:0; text-shadow:1px 2px 0 rgba(103,49,65,.18); }
.pixel-cat-hearts i:nth-child(1) { left:4px; top:10px; }.pixel-cat-hearts i:nth-child(2) { left:27px; top:1px; color:#ff9eae; font-size:15px; }.pixel-cat-hearts i:nth-child(3) { left:49px; top:13px; color:#e96887; font-size:13px; }
#pixel-cat-pet.is-petted .pixel-cat-hearts i { animation:pixelCatLove .92s ease-out both; }
#pixel-cat-pet.is-petted .pixel-cat-hearts i:nth-child(2) { animation-delay:.08s; } #pixel-cat-pet.is-petted .pixel-cat-hearts i:nth-child(3) { animation-delay:.16s; }
.pixel-cat-bubble {
  position:absolute;
  right:calc(100% + 14px);
  top:auto;
  bottom:8px;
  min-width:112px;
  max-width:216px;
  padding:8px 11px 10px;
  border:2px solid #33283a;
  border-radius:12px;
  background:linear-gradient(145deg,#fffdf4,#fff0d6);
  box-shadow:3px 4px 0 rgba(38,30,46,.34),inset 0 0 0 2px rgba(255,255,255,.72);
  color:#3b3245;
  font:600 12px/1.45 "IBM Plex Sans",sans-serif;
  letter-spacing:.01em;
  opacity:0;
  transform:translateY(5px) scale(.92);
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;
  line-height:1.35;
  white-space:normal;
}
.pixel-cat-bubble b { display:block; margin-bottom:3px; color:#b86b4d; font-size:9px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }.pixel-cat-bubble [data-cat-dialogue] { display:block; }
.pixel-cat-bubble::after { content:""; position:absolute; right:-7px; bottom:25px; width:12px; height:12px; background:#fff4de; border-top:2px solid #33283a; border-right:2px solid #33283a; box-shadow:2px -1px 0 rgba(38,30,46,.12); transform:rotate(45deg); }
#pixel-cat-pet.is-speaking .pixel-cat-bubble { opacity:1; transform:translateY(0) scale(1); }
.cat-companion-panel { position:fixed; z-index:2147483001; box-sizing:border-box; width:min(338px,calc(100vw - 32px)); padding:15px; border:1px solid #4cdccb; border-radius:12px; background:linear-gradient(145deg,#102927,#11191d); box-shadow:0 18px 42px rgba(0,0,0,.38),0 0 24px rgba(58,222,202,.1); color:#eafff9; font-family:"IBM Plex Sans",system-ui,sans-serif; }
.cat-companion-panel header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }.cat-companion-panel header small { color:#68f0df; font-size:9px; font-weight:800; letter-spacing:.15em; }.cat-companion-panel h2 { margin:4px 0; font-size:18px; }.cat-companion-panel header p { margin:0; color:#9dc5be; font-size:11px; }.cat-companion-panel header button { width:28px; height:28px; border:1px solid #3c625d; border-radius:7px; background:#142320; color:#dafbf4; font-size:19px; cursor:pointer; }
.cat-companion-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin:14px 0 10px; }.cat-companion-stats article { min-width:0; padding:9px 8px; border:1px solid rgba(103,236,216,.2); border-radius:7px; background:rgba(5,20,20,.46); }.cat-companion-stats span { display:block; overflow:hidden; color:#90bdb5; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }.cat-companion-stats strong { display:block; overflow:hidden; margin-top:5px; color:#fff1b6; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.cat-companion-tip { padding:10px 11px; border-left:3px solid #ffd268; border-radius:5px; background:rgba(255,210,104,.09); }.cat-companion-tip b { color:#ffe3a0; font-size:10px; }.cat-companion-tip p { margin:5px 0 0; color:#d7ece6; font-size:11px; line-height:1.55; }.cat-companion-note { display:block; margin-top:8px; color:#769b95; font-size:9px; line-height:1.35; }
.pixel-cat { position:absolute; left:8px; bottom:0; width:78px; height:91px; image-rendering:pixelated; animation:pixelCatIdle 2.8s steps(2,end) infinite; }
.pixel-cat .part { position:absolute; box-sizing:border-box; background:var(--cat-fur); }
.pixel-cat .tail { left:57px; top:50px; width:17px; height:33px; border:5px solid var(--cat-ink); border-left:0; border-radius:0 15px 15px 0; z-index:0; transform-origin:2px 27px; animation:pixelCatTail 1.35s steps(2,end) infinite; }
.pixel-cat .body { left:12px; top:42px; width:55px; height:42px; border:5px solid var(--cat-ink); border-radius:18px 18px 10px 10px; z-index:1; }
.pixel-cat .belly { left:28px; top:58px; width:25px; height:19px; border:0; background:var(--cat-fur-light); border-radius:10px 12px 5px 5px; z-index:2; }
.pixel-cat .head { left:9px; top:13px; width:61px; height:50px; border:5px solid var(--cat-ink); border-radius:21px 21px 18px 18px; z-index:4; }
.pixel-cat .ear { top:3px; width:20px; height:25px; border:5px solid var(--cat-ink); background:var(--cat-ear,var(--cat-fur)); z-index:2; }
.pixel-cat .ear.left { left:11px; clip-path:polygon(0 0,100% 35%,80% 100%,0 100%); }
.pixel-cat .ear.right { left:50px; transform:scaleX(-1); clip-path:polygon(0 0,100% 35%,80% 100%,0 100%); }
.pixel-cat .ear::after { content:""; position:absolute; inset:5px 4px 3px 5px; background:var(--cat-pink); clip-path:polygon(0 0,100% 36%,78% 100%,0 100%); }
.pixel-cat .face { position:absolute; left:20px; top:30px; width:39px; height:25px; z-index:5; }
.pixel-cat .eye { position:absolute; top:1px; width:10px; height:12px; background:#38334d; box-shadow:2px 2px 0 #fff; }
.pixel-cat .eye.left { left:3px; }.pixel-cat .eye.right { right:3px; }
.pixel-cat .nose { position:absolute; top:13px; left:16px; width:8px; height:6px; background:var(--cat-pink); }
.pixel-cat .mouth { position:absolute; top:18px; left:14px; width:13px; height:6px; border-bottom:3px solid var(--cat-ink); border-radius:0 0 8px 8px; }
.pixel-cat .stripe { left:34px; top:19px; width:7px; height:12px; background:var(--cat-ink); z-index:6; }
.pixel-cat .paw { bottom:2px; width:22px; height:15px; border:5px solid var(--cat-ink); border-radius:5px 5px 7px 7px; z-index:4; }
.pixel-cat .paw.left { left:14px; }.pixel-cat .paw.right { left:46px; }
.pixel-cat .cheek { position:absolute; top:16px; width:7px; height:4px; background:var(--cat-pink); opacity:.78; }.pixel-cat .cheek.left { left:0; }.pixel-cat .cheek.right { right:0; }
.cat-orange { --cat-fur:#f7ba73; --cat-fur-light:#ffe5ae; --cat-pink:#f291a5; }
.cat-siamese { --cat-fur:#f7e5c4; --cat-fur-light:#fff4da; --cat-ear:#72514d; --cat-ink:#352c38; --cat-pink:#db8894; }.cat-siamese .tail,.cat-siamese .paw { background:#72514d; }
.cat-ragdoll { --cat-fur:#96776c; --cat-fur-light:#ffe6bd; --cat-ear:#735b55; --cat-ink:#3c3033; --cat-pink:#ee9ba7; }.cat-ragdoll .body { border-radius:22px 24px 10px 12px; }
.cat-black { --cat-fur:#38333d; --cat-fur-light:#57505d; --cat-ear:#38333d; --cat-ink:#211d27; --cat-pink:#ef95a9; }.cat-black .eye { background:#ffd363; box-shadow:2px 2px 0 #fff8db; }.cat-black .stripe { background:#57505d; }
.cat-gray { --cat-fur:#b6b3be; --cat-fur-light:#f7f4f2; --cat-ear:#8e899b; --cat-ink:#363142; --cat-pink:#ef9ca8; }.cat-gray .tail { background:#8e899b; }
.cat-calico { --cat-fur:#f4c68d; --cat-fur-light:#fff1d4; --cat-ear:#df8b5d; --cat-ink:#392a32; --cat-pink:#f19098; }.cat-calico .stripe { background:#9d6047; }.cat-calico .body::after { content:""; position:absolute; right:4px; top:7px; width:11px; height:11px; background:#9d6047; border-radius:4px; }
.pixel-cat-help { position:absolute; left:50%; bottom:-19px; transform:translateX(-50%); color:rgba(72,68,87,.7); font:600 10px/1 "IBM Plex Sans",sans-serif; white-space:nowrap; opacity:0; transition:opacity .18s ease; pointer-events:none; }
#pixel-cat-pet:hover .pixel-cat-help { opacity:1; }
@keyframes pixelCatIdle { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-3px); } }
@keyframes pixelCatTail { 0%,100% { transform:rotate(-7deg); } 50% { transform:rotate(13deg); } }
#pixel-cat-pet.is-petted .pixel-cat { animation:pixelCatHappy .38s steps(2,end) 3; }
#pixel-cat-pet.is-petted .pixel-cat .eye { height:3px; top:6px; }
#pixel-cat-pet.is-droopy .pixel-cat { animation:pixelCatDroopy 2.8s steps(2,end) infinite; filter:saturate(.62); }.is-droopy .pixel-cat .eye { height:3px; top:7px; }
@keyframes pixelCatHappy { 0%,100% { transform:translateY(0) rotate(0); } 50% { transform:translateY(-9px) rotate(-2deg); } }
@keyframes pixelCatDroopy { 0%,100% { transform:translateY(3px); } 50% { transform:translateY(0); } }
@media (max-width:700px), (prefers-reduced-motion:reduce) { #pixel-cat-pet { display:none; }.cat-companion-panel { display:none; } }
body.route-auth #pixel-cat-pet { display:none; }

/* The switch is deliberately an in-page preference, not another permanent floating control. */
.pixel-cat-settings-card { display:flex; align-items:center; justify-content:space-between; gap:24px; max-width:720px; margin:20px auto; padding:18px 20px; border:1px solid #d9d5ea; border-radius:16px; background:linear-gradient(135deg,#fff9ef,#f5f1ff); box-shadow:0 8px 22px rgba(67,56,112,.09); color:#2f2941; font-family:"IBM Plex Sans",sans-serif; }
.pixel-cat-settings-card { position:relative; }
.pixel-cat-action-row { position:absolute; top:50%; right:82px; display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:8px; max-width:46%; transform:translateY(-50%); }
.pixel-cat-action-row > span { padding:5px 7px; border:1px solid rgba(231,189,118,.52); border-radius:5px; color:#f5d59a; font-size:10px; font-weight:800; letter-spacing:.08em; }
.pixel-cat-action-row button { min-height:30px; padding:0 10px; border:1px solid #4f8f87; border-radius:6px; background:#183b39; color:#c8fff7; font:700 11px/1 "IBM Plex Sans",sans-serif; cursor:pointer; }
.pixel-cat-action-row button[data-feed-cat] { border-color:#e4b866; background:#5a4225; color:#ffe9b5; }
.pixel-cat-action-row button[data-open-pet-room] { border-color:#a779e8; background:#2a203e; color:#dcc7ff; }
.pixel-cat-action-row button:disabled { border-color:#354846; background:#263331; color:#82918d; cursor:not-allowed; }
.profile-page-shell .pixel-cat-settings-card { max-width:none; margin:24px 0; border-color:#28514e; background:linear-gradient(135deg,#102523,#11161a); box-shadow:none; color:#e6f3ef; }.profile-page-shell .pixel-cat-settings-copy > div > span { color:#91a29f; }.profile-page-shell .pixel-cat-choices { border-top-color:#28403f; }.profile-page-shell .pixel-cat-choice { background:#151e20; color:#aebdb9; }.profile-page-shell .pixel-cat-choice:hover { border-color:#47877f; }.profile-page-shell .pixel-cat-choice.is-selected { border-color:#35d6c5; background:#143330; color:#75e5d8; }
.pixel-cat-settings-copy { display:flex; align-items:center; gap:13px; min-width:0; }
.pixel-cat-settings-icon { position:relative; display:block; flex:0 0 auto; width:64px; height:64px; overflow:hidden; border:3px solid #3e3650; border-radius:18px; background:#fff6df; box-shadow:inset 0 0 0 5px #f0c27c; }.pixel-cat-settings-icon::after { content:""; position:absolute; inset:0; background:linear-gradient(135deg,transparent 60%,rgba(255,190,109,.22)); pointer-events:none; }
.pixel-cat-art { display:grid; grid-template-columns:repeat(24,1fr); grid-template-rows:repeat(20,1fr); width:100%; height:100%; aspect-ratio:24/20; image-rendering:pixelated; -ms-interpolation-mode:nearest-neighbor; }.pixel-cell { display:block !important; width:auto !important; height:auto !important; margin:0 !important; font:0/0 sans-serif !important; }.pixel-O { background:var(--eye); }.pixel-F { background:var(--fur); }.pixel-C { background:var(--cream); }.pixel-E { background:var(--eye); }.pixel-P { background:var(--pink,#e49a72); }.pixel-S { background:var(--accent); }.pixel-A { background:var(--mark,#b3745b); }.pixel-T { background:var(--fur); }.pixel-blank { background:transparent; }.pixel-cat-settings-copy > div > i,.pixel-cat-settings-copy > div > strong,.pixel-cat-settings-copy > div > span { display:block; }.pixel-cat-settings-copy > div > i { margin-bottom:4px; color:#36cdbd; font-size:9px; font-style:normal; font-weight:700; letter-spacing:.12em; }.pixel-cat-settings-copy > div > strong { font-size:20px; line-height:1.1; }.pixel-cat-settings-copy > div > span { margin-top:6px; color:#746e84; font-size:12px; }
.pixel-bead-A { background:var(--bead-A); }.pixel-bead-B { background:var(--bead-B); }.pixel-bead-C { background:var(--bead-C); }.pixel-bead-D { background:var(--bead-D); }.pixel-bead-E { background:var(--bead-E); }.pixel-bead-F { background:var(--bead-F); }.pixel-bead-G { background:var(--bead-G); }
.pixel-cat-switch { position:relative; flex:0 0 auto; width:48px; height:28px; padding:0; border:0; border-radius:20px; background:#aca7b8; cursor:pointer; transition:background .18s ease; }
.pixel-cat-switch::after { content:""; position:absolute; top:4px; left:4px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform .18s ease; }.pixel-cat-switch[aria-checked="true"] { background:#268f83; }.pixel-cat-switch[aria-checked="true"]::after { transform:translateX(20px); }
.pixel-cat-care { display:grid; grid-template-columns:76px minmax(170px,1fr) auto auto; align-items:center; gap:15px; width:100%; padding:14px; border:1px solid #2b5652; border-radius:12px; background:#122523; }.pixel-cat-care-avatar { position:relative; width:70px; height:67px; overflow:hidden; border-radius:9px; background:#0d1818; }.pixel-cat-care-avatar .pixel-cat { left:2px; bottom:-23px; transform:scale(.82); transform-origin:bottom left; animation:none; }.pixel-cat-care-avatar .tail { animation:none; }.pixel-cat-care-status > div { display:flex; align-items:center; gap:8px; }.pixel-cat-care-status b { color:#76e5d8; font-size:13px; }.pixel-cat-care-status strong { color:#edf8f5; font-size:15px; }.pixel-cat-care-status em { padding:3px 6px; border-radius:10px; background:#1e4b45; color:#84d7cc; font-size:10px; font-style:normal; }.pixel-cat-care-status p { margin:6px 0 0; color:#91a7a2; font-size:12px; }.pixel-cat-food-count { display:grid; gap:2px; min-width:82px; text-align:center; }.pixel-cat-food-count span,.pixel-cat-food-count small { color:#94aaa6; font-size:10px; }.pixel-cat-food-count b { color:#ffd36c; font-size:25px; line-height:1; }.pixel-cat-care button[data-feed-cat] { min-width:104px; padding:9px 11px; border:1px solid #2dcab8; border-radius:7px; background:#1a8f83; color:#fff; font:700 12px/1 "IBM Plex Sans",sans-serif; cursor:pointer; }.pixel-cat-care button:disabled { border-color:#354846; background:#263331; color:#82918d; cursor:not-allowed; }
.pixel-cat-care button[data-open-bead] { padding:9px 11px; border:1px solid #cc9a61; border-radius:7px; background:#35271f; color:#ffd39b; font:700 12px/1 "IBM Plex Sans",sans-serif; cursor:pointer; }
.bead-workshop { position:fixed; z-index:2147483640; inset:0; display:grid; place-items:center; padding:24px; }.bead-workshop-backdrop { position:absolute; inset:0; border:0; background:rgba(5,8,10,.76); }.bead-workshop > section { position:relative; width:min(840px,100%); max-height:calc(100vh - 48px); overflow:auto; padding:22px; border:1px solid #37716a; border-radius:16px; background:#10191a; color:#edf5f2; font-family:"IBM Plex Sans",sans-serif; }.bead-workshop header { display:flex; justify-content:space-between; gap:18px; }.bead-workshop header small { color:#43d3c1; letter-spacing:.12em; }.bead-workshop h2 { margin:5px 0; font-size:23px; }.bead-workshop p { margin:0; color:#9aa9a5; }.bead-workshop header button { width:32px; height:32px; border:1px solid #3b4c49; background:transparent; color:#d8e5e1; font-size:22px; cursor:pointer; }.bead-workspace { display:grid; grid-template-columns:190px 1fr; gap:24px; margin:22px 0; }.bead-preview { width:172px; height:172px; padding:8px; background:#0b1112; border:1px solid #304542; }.bead-workspace input { width:172px; box-sizing:border-box; margin-top:10px; padding:9px; border:1px solid #3b5a56; background:#0b1112; color:#fff; }.bead-palette { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }.bead-palette button { width:24px; height:24px; border:2px solid transparent; border-radius:4px; background:var(--bead); cursor:pointer; }.bead-palette button.active { border-color:#fff; }.bead-palette .bead-eraser { width:auto; padding:0 8px; background:#26302f; color:#cdd8d4; font-size:11px; }.bead-grid { display:grid; grid-template-columns:repeat(24,1fr); width:min(520px,100%); aspect-ratio:24/20; border:1px solid #566864; background:#1c2625; }.bead-cell { min-width:0; border:1px solid rgba(140,162,157,.23); background:transparent; cursor:crosshair; }.bead-cell.bead-A { background:#f2ad62; }.bead-cell.bead-B { background:#fff0cd; }.bead-cell.bead-C { background:#1b1720; }.bead-cell.bead-D { background:#ed91a4; }.bead-cell.bead-E { background:#cf7448; }.bead-cell.bead-F { background:#8b98a9; }.bead-cell.bead-G { background:#5dbd91; }.bead-workshop footer { display:flex; align-items:center; justify-content:space-between; gap:16px; color:#879793; font-size:11px; }.bead-workshop footer button { padding:10px 14px; border:0; border-radius:7px; background:#1b998c; color:#fff; font-weight:700; cursor:pointer; }
.pixel-cat-settings-card { flex-wrap:wrap; }.pixel-cat-settings-card > .pixel-cat-switch { margin-left:auto; }.pixel-cat-choices { display:grid; grid-template-columns:repeat(6,minmax(72px,1fr)); gap:9px; width:100%; max-height:330px; overflow-y:auto; padding:5px 4px 0 0; border-top:1px solid rgba(119,105,151,.17); }
.pixel-cat-choice { display:grid; grid-template-rows:58px auto auto; place-items:center; gap:3px; min-width:0; padding:7px 3px 6px; border:2px solid transparent; border-radius:10px; background:#fffdf8; color:#70697b; cursor:pointer; font:600 10px/1.2 "IBM Plex Sans",sans-serif; }.pixel-cat-choice:hover { border-color:#cfcae0; }.pixel-cat-choice.is-selected { border-color:#268f83; background:#eefaf7; color:#19766d; }.pixel-cat-choice small { color:#778986; font-size:9px; font-weight:500; }.pixel-cat-choice.is-locked { filter:saturate(.1); opacity:.63; cursor:not-allowed; }.pixel-cat-choice.is-locked::before { content:"🔒"; position:absolute; z-index:2; margin-top:25px; font-size:15px; }.pixel-cat-choice { position:relative; }
.pixel-cat-thumbnail { position:relative; width:58px; height:58px; overflow:hidden; transform:translateY(2px); }.pixel-cat-thumbnail .pixel-cat { left:-3px; bottom:-21px; transform:scale(.71); transform-origin:bottom left; animation:none; }.pixel-cat-thumbnail .tail { animation:none; }
.pixel-cat-settings-icon .pixel-cat-art { width:58px; height:48px; margin:8px 0 0 3px; }
.pixel-cat-thumbnail .pixel-cat-art { width:58px; height:48px; margin-top:5px; }
.pixel-cat-care-avatar .pixel-cat-art { width:70px; height:58px; margin-top:5px; }
#pixel-cat-pet .pixel-cat-art { width:108px; height:90px; margin-top:10px; filter:drop-shadow(0 4px 0 rgba(18,18,30,.15)); transform-origin:50% 100%; animation:pixelCatArtIdle 2.7s steps(2,end) infinite; transition:transform .18s ease,filter .18s ease; }
#pixel-cat-pet:hover .pixel-cat-art { animation-duration:1.7s; filter:drop-shadow(0 5px 0 rgba(18,18,30,.18)); }
#pixel-cat-pet.is-petted .pixel-cat-art { animation:pixelCatArtHappy .38s steps(2,end) 3; }
#pixel-cat-pet.is-droopy .pixel-cat-art { filter:grayscale(.45) saturate(.55) drop-shadow(0 6px 0 rgba(18,18,30,.18)); transform:translateY(4px); }
@keyframes pixelCatArtIdle { 0%,100% { transform:translateY(0); } 48% { transform:translateY(0); } 50%,74% { transform:translateY(-2px); } 76% { transform:translateY(0); } }
@keyframes pixelCatArtHappy { 0%,100% { transform:translateY(0) rotate(0); } 50% { transform:translateY(-7px) rotate(-1deg); } }
.pixel-cat-art { grid-template-columns:repeat(var(--pixel-columns,24),1fr); grid-template-rows:repeat(var(--pixel-rows,20),1fr); }
.pixel-bead-H { background:var(--bead-H); }.pixel-bead-I { background:var(--bead-I); }.pixel-bead-J { background:var(--bead-J); }.pixel-bead-K { background:var(--bead-K); }.pixel-bead-L { background:var(--bead-L); }.pixel-bead-M { background:var(--bead-M); }.pixel-bead-N { background:var(--bead-N); }.pixel-bead-O { background:var(--bead-O); }.pixel-bead-P { background:var(--bead-P); }.pixel-bead-Q { background:var(--bead-Q); }.pixel-bead-R { background:var(--bead-R); }
.bead-workshop > section { width:min(1040px,100%); }.bead-workspace { grid-template-columns:200px 1fr; }.bead-preview,.bead-workspace input { width:180px; }.bead-grid { grid-template-columns:repeat(32,1fr); width:min(680px,100%); aspect-ratio:32/28; }
.bead-cell.bead-H { background:#f6f0e4; }.bead-cell.bead-I { background:#9b5b4f; }.bead-cell.bead-J { background:#6c3e38; }.bead-cell.bead-K { background:#f3c0d0; }.bead-cell.bead-L { background:#d37b9e; }.bead-cell.bead-M { background:#b9d7ed; }.bead-cell.bead-N { background:#5f86b5; }.bead-cell.bead-O { background:#93bc6d; }.bead-cell.bead-P { background:#4c825f; }.bead-cell.bead-Q { background:#f2d35d; }.bead-cell.bead-R { background:#8464a7; }
.pixel-cat-care button[data-open-pet-room] { padding:9px 11px; border:1px solid #a779e8; border-radius:7px; background:#2a203e; color:#dcc7ff; font:700 12px/1 "IBM Plex Sans",sans-serif; cursor:pointer; }
.pixel-cat-care { grid-template-columns:76px minmax(150px,1fr) auto auto auto auto; }
.pet-room { position:fixed; z-index:2147483642; inset:0; display:grid; place-items:center; padding:24px; }.pet-room-backdrop { position:absolute; inset:0; border:0; background:rgba(5,8,10,.78); }.pet-room > section { position:relative; width:min(760px,100%); max-height:calc(100vh - 48px); overflow:auto; padding:26px; border:1px solid #446d67; border-radius:20px; background:#101b1b; color:#ecf7f3; font-family:"IBM Plex Sans",sans-serif; }.pet-room header { display:flex; justify-content:space-between; gap:18px; }.pet-room header small { color:#62d8c5; font-size:10px; font-weight:700; letter-spacing:.14em; }.pet-room h2 { margin:5px 0; font-size:26px; }.pet-room header p { margin:0; color:#9aada8; }.pet-room header button { width:34px; height:34px; border:1px solid #415955; background:transparent; color:#e5f3ef; font-size:22px; cursor:pointer; }.pet-room-scene { position:relative; height:285px; margin:24px 0 18px; overflow:hidden; border:1px solid #3b655e; border-radius:14px; background:linear-gradient(#24433e 0 64%,#a97452 64%); }.pet-room-window { position:absolute; top:23px; left:30px; display:grid; place-items:center; width:67px; height:67px; border:7px solid #e7d5a7; background:#8bcbd0; color:#ffe28b; font-size:27px; box-shadow:inset 0 0 0 3px #5b999c; }.pet-room-shelf { position:absolute; top:95px; right:52px; width:90px; padding:9px 0; border-bottom:8px solid #6e4936; text-align:center; font-size:25px; }.pet-room-cat { position:absolute; z-index:2; left:50%; bottom:32px; width:216px; height:180px; transform:translateX(-50%); filter:drop-shadow(0 8px 0 rgba(19,16,14,.18)); }.pet-room-cat .pixel-cat-art { width:216px; height:180px; animation:pixelCatArtIdle 2.7s steps(2,end) infinite; }.pet-room-rug { position:absolute; bottom:14px; left:50%; width:310px; height:52px; border-radius:50%; background:#d8c47e; opacity:.9; transform:translateX(-50%); }.pet-room-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }.pet-room-stats article { display:grid; gap:6px; min-height:91px; padding:14px; border:1px solid #345850; border-radius:11px; background:#132624; }.pet-room-stats span,.pet-room-stats small { color:#91aaa4; font-size:11px; }.pet-room-stats b { color:#ffe08b; font-size:20px; }.pet-room footer { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }.pet-room footer button { padding:11px 15px; border:1px solid #44645f; border-radius:8px; background:#1d302e; color:#e4f1ee; cursor:pointer; font-weight:700; }.pet-room footer [data-feed-cat] { border-color:#ffc65c; background:#bd7632; color:#fff; }
#pixel-cat-pet.cat-orange .pixel-cat-art,.pet-room-cat.cat-orange .pixel-cat-art { animation:pixelCatOrangePeek 3.2s steps(2,end) infinite; }
#pixel-cat-pet.cat-cream-tabby .pixel-cat-art,.pet-room-cat.cat-cream-tabby .pixel-cat-art { animation:pixelCatTabbySway 2.35s steps(2,end) infinite; }
#pixel-cat-pet.cat-custom .pixel-cat-art,.pet-room-cat.cat-custom .pixel-cat-art { animation:pixelCatCustomHop 1.9s steps(2,end) infinite; }
#pixel-cat-pet.cat-black-cat .pixel-cat-art,.pet-room-cat.cat-black-cat .pixel-cat-art { animation:pixelCatBlackCatBlink 3.6s steps(2,end) infinite; }
#pixel-cat-pet.cat-black-cat .pixel-cat-art { width:86px; height:99px; margin:3px 0 0 10px; }.pet-room-cat.cat-black-cat .pixel-cat-art { width:156px; height:179px; margin-left:30px; }.pixel-cat-care-avatar.cat-black-cat .pixel-cat-art { width:42px; height:48px; margin-left:6px; }.pixel-cat-settings-icon.cat-black-cat .pixel-cat-art { width:36px; height:42px; margin:5px 0 0 8px; }.pixel-cat-choice.cat-black-cat .pixel-cat-art { width:32px; height:37px; margin:3px 0 0 6px; }
@keyframes pixelCatOrangePeek { 0%,28%,100% { transform:translateY(0) rotate(0); } 32%,52% { transform:translateY(-3px) rotate(-1deg); } 56% { transform:translateY(0) rotate(0); } 72% { transform:translateY(-2px) rotate(1deg); } }
@keyframes pixelCatTabbySway { 0%,100% { transform:translate(0,0) rotate(0); } 25% { transform:translate(2px,-1px) rotate(1deg); } 50% { transform:translate(0,-2px) rotate(0); } 75% { transform:translate(-2px,-1px) rotate(-1deg); } }
@keyframes pixelCatCustomHop { 0%,100% { transform:translateY(0) scale(1); } 42% { transform:translateY(-5px) scale(1.02,.98); } 55% { transform:translateY(0) scale(.98,1.02); } }
@keyframes pixelCatBlackCatBlink { 0%,40%,100% { transform:translateY(0) rotate(0); } 44% { transform:translateY(1px) scaleY(.96); } 48% { transform:translateY(0) rotate(-1deg); } 60% { transform:translateY(-2px) rotate(1deg); } 72% { transform:translateY(0) rotate(0); } }
@keyframes pixelCatLove { 0% { opacity:0; transform:translateY(7px) scale(.55) rotate(-10deg); } 28% { opacity:1; transform:translateY(-5px) scale(1) rotate(4deg); } 100% { opacity:0; transform:translateY(-27px) scale(.78) rotate(12deg); } }
#pixel-cat-pet.is-petted .pixel-cat-art { animation:pixelCatArtHappy .38s steps(2,end) 3; }
.pixel-cat-settings-card { gap:12px; padding:14px 16px; }.pixel-cat-settings-copy { gap:10px; }.pixel-cat-settings-icon { width:52px; height:52px; border-radius:14px; }.pixel-cat-settings-icon .pixel-cat-art { width:48px; height:40px; margin:6px 0 0 2px; }.pixel-cat-settings-copy > div > strong { font-size:17px; }.pixel-cat-settings-copy > div > span { font-size:11px; }.pixel-cat-care { gap:9px; padding:10px; grid-template-columns:56px minmax(120px,1fr) auto auto auto auto; }.pixel-cat-care-avatar { width:56px; height:48px; }.pixel-cat-care-avatar .pixel-cat-art { width:56px; height:46px; margin-top:1px; }.pixel-cat-care-status p { display:none; }.pixel-cat-care-status strong { font-size:13px; }.pixel-cat-care-status em { display:none; }.pixel-cat-food-count { min-width:58px; }.pixel-cat-food-count b { font-size:20px; }.pixel-cat-food-count small { display:none; }.pixel-cat-care button[data-feed-cat],.pixel-cat-care button[data-open-pet-room],.pixel-cat-care button[data-open-bead] { min-width:0; padding:8px 9px; font-size:11px; }.pixel-cat-choices { grid-template-columns:repeat(3,74px); justify-content:start; gap:7px; max-height:112px; }.pixel-cat-choice { grid-template-rows:42px auto auto; padding:4px 2px; }.pixel-cat-thumbnail { width:44px; height:42px; }.pixel-cat-thumbnail .pixel-cat-art { width:44px; height:37px; margin-top:3px; }.pixel-cat-choice small { font-size:8px; }
.profile-page-shell .pixel-cat-settings-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px 18px; margin:18px 0; padding:15px 18px 13px; border-radius:15px; background:linear-gradient(118deg,#0d2220,#10191a 68%); }.profile-page-shell .pixel-cat-settings-copy { grid-column:1; }.profile-page-shell .pixel-cat-switch { grid-column:2; grid-row:1; }.profile-page-shell .pixel-cat-care { grid-column:1/-1; width:auto; min-height:52px; padding:9px 11px; border-radius:10px; grid-template-columns:52px minmax(120px,1fr) auto auto auto auto; }.profile-page-shell .pixel-cat-care-avatar { width:52px; height:45px; }.profile-page-shell .pixel-cat-care-avatar .pixel-cat-art { width:52px; height:43px; }.profile-page-shell .pixel-cat-care-status > div { gap:6px; }.profile-page-shell .pixel-cat-food-count { min-width:48px; }.profile-page-shell .pixel-cat-choices { grid-column:1/-1; width:max-content; max-height:none; min-height:0; overflow:visible; grid-template-columns:repeat(3,68px); gap:6px; padding:8px 0 0; border-top-color:#29413e; }.profile-page-shell .pixel-cat-choice { grid-template-rows:36px auto auto; min-height:65px; padding:3px 1px; border-radius:8px; }.profile-page-shell .pixel-cat-thumbnail { width:38px; height:36px; }.profile-page-shell .pixel-cat-thumbnail .pixel-cat-art { width:38px; height:32px; margin-top:2px; }.profile-page-shell .pixel-cat-choice span:not(.pixel-cat-thumbnail) { font-size:9px; }.profile-page-shell .pixel-cat-choice small { font-size:7px; }.profile-page-shell .pixel-cat-settings-copy > div > i { margin-bottom:2px; }.profile-page-shell .pixel-cat-settings-copy strong { font-size:18px; }

/* Profile pet desk: one bright, coherent module rather than stacked strips. */
.profile-page-shell .pixel-cat-settings-card { grid-template-columns:minmax(0,1fr) auto; gap:10px 18px; margin:20px 0 24px; padding:18px 20px 16px; border-color:#2fcdbc; border-radius:12px; background:linear-gradient(112deg,#123532 0%,#102226 56%,#11161c 100%); box-shadow:0 18px 40px rgba(15,192,174,.10); }
.profile-page-shell .pixel-cat-settings-copy { align-items:flex-start; }
.profile-page-shell .pixel-cat-settings-copy .pixel-cat-settings-icon { display:block; flex:0 0 auto; width:62px; height:62px; border-color:#55e8d7; border-radius:12px; background:radial-gradient(circle at 50% 38%,#fff0c6 0 42%,#d7a260 43% 100%); box-shadow:0 0 0 4px rgba(58,226,207,.09),inset 0 0 0 4px rgba(15,59,55,.22); }
.profile-page-shell .pixel-cat-settings-copy .pixel-cat-settings-icon .pixel-cat-art { width:58px; height:48px; margin:8px 0 0 2px; }
.profile-page-shell .pixel-cat-settings-copy > div > i { color:#65f0df; letter-spacing:.16em; }
.profile-page-shell .pixel-cat-settings-copy strong { color:#f2fffc; font-size:20px; }
.profile-page-shell .pixel-cat-settings-copy > div > span { color:#9dc7c1; }
.profile-page-shell .pixel-cat-switch { background:#27504e; }
.profile-page-shell .pixel-cat-switch[aria-checked="true"] { background:#20cbb9; }
.profile-page-shell .pixel-cat-care { display:grid; grid-template-columns:86px minmax(170px,1fr) auto auto auto auto; align-items:center; min-height:70px; padding:12px 14px; border-color:rgba(94,232,216,.46); border-radius:9px; background:rgba(8,24,27,.54); }
.profile-page-shell .pixel-cat-care-avatar { width:78px; height:66px; border:1px solid rgba(99,239,222,.22); border-radius:10px; background:radial-gradient(circle at 50% 38%,rgba(255,229,174,.34),rgba(83,227,210,.12) 56%,transparent 72%); }
.profile-page-shell .pixel-cat-care-avatar .pixel-cat-art { width:76px; height:63px; margin:2px 0 0 1px; filter:drop-shadow(0 3px 0 rgba(5,13,18,.22)); }
.profile-page-shell .pixel-cat-care-status strong { color:#effffc; font-size:16px; }
.profile-page-shell .pixel-cat-care-status b { color:#67efde; }
.profile-page-shell .pixel-cat-care-status em { display:inline-flex; background:rgba(47,205,188,.18); color:#a4f8ed; }
.profile-page-shell .pixel-cat-food-count b { color:#ffda76; }
.profile-page-shell .pixel-cat-care button[data-feed-cat] { border-color:#33dcca; background:#20b9aa; }
.pixel-cat-care button[data-open-cat-chooser] { padding:9px 11px; border:1px solid #62dfd0; border-radius:7px; background:#153d3a; color:#b9fff4; font:700 12px/1 "IBM Plex Sans",sans-serif; cursor:pointer; }
.profile-page-shell .pixel-cat-care button[data-open-cat-chooser] { border-color:#60ebdc; background:linear-gradient(135deg,#135550,#1b776e); box-shadow:0 0 15px rgba(51,220,202,.13); }
.pixel-cat-care button[data-open-cat-name] { padding:9px 11px; border:1px solid #cfa96c; border-radius:7px; background:#33291e; color:#ffe0a7; font:700 12px/1 "IBM Plex Sans",sans-serif; cursor:pointer; }
.profile-page-shell .pixel-cat-care button[data-open-cat-name] { border-color:#e7bd76; background:linear-gradient(135deg,#4b3723,#76512a); color:#fff0ca; }
.pixel-cat-settings-copy strong b { font-weight:inherit; }
.profile-page-shell .pixel-cat-care-status p { display:block; }
.pixel-cat-selector-head { display:flex; align-items:end; justify-content:space-between; gap:16px; width:100%; padding:12px 0 2px; border-top:1px solid rgba(97,230,214,.22); color:#9dc7c1; }
.pixel-cat-selector-head > div { display:grid; gap:3px; }
.pixel-cat-selector-head i { color:#67efde; font-size:9px; font-style:normal; font-weight:800; letter-spacing:.14em; }
.pixel-cat-selector-head strong { color:#effffc; font-size:13px; }
.pixel-cat-selector-head > span { font-size:11px; }
.pixel-cat-selector-head.is-noticed { animation:pixelCatChooserCue .72s ease both; }
@keyframes pixelCatChooserCue { 0%,100% { opacity:1; } 35% { color:#ecfff9; transform:translateX(5px); } }
.profile-page-shell .pixel-cat-selector-head { grid-column:1/-1; }
.profile-page-shell .pixel-cat-choices { grid-column:1/-1; display:flex; width:auto; gap:8px; padding:10px 0 0; border-top-color:rgba(97,230,214,.22); }
.profile-page-shell .pixel-cat-choice { width:72px; min-height:62px; border:1px solid transparent; background:rgba(9,24,27,.45); color:#a9c7c2; }
.profile-page-shell .pixel-cat-choice.is-selected { border-color:#37d9c8; background:rgba(35,191,176,.18); color:#e9fffb; }
@media (max-width:960px) { .pixel-cat-care button[data-open-cat-chooser] { justify-self:start; } .pixel-cat-selector-head { grid-column:1/-1; } }
@media (max-width:960px) { .pixel-cat-action-row { position:static; grid-column:1/-1; justify-content:flex-start; max-width:none; transform:none; margin-top:4px; } }
@media (max-width:860px) { .pixel-cat-choices { grid-template-columns:repeat(3,1fr); } }
@media (max-width:960px) { .pixel-cat-care { grid-template-columns:70px 1fr; }.pixel-cat-food-count,.pixel-cat-care button[data-feed-cat] { justify-self:start; } }
@media (max-width:700px) { .pixel-cat-settings-card { margin:14px; padding:14px; gap:12px; }.pixel-cat-settings-copy > div > span { font-size:11px; } }

/* Naming is a focused, short preference rather than an inline form. */
.cat-naming-modal { position:fixed; z-index:2147483644; inset:0; display:grid; place-items:center; padding:24px; font-family:"IBM Plex Sans",system-ui,sans-serif; }
.cat-naming-backdrop { position:absolute; inset:0; border:0; background:rgba(4,10,12,.8); }
.cat-naming-modal > section { position:relative; width:min(420px,100%); padding:24px; border:1px solid #4bd9c8; border-radius:12px; background:linear-gradient(145deg,#112a28,#11191d); box-shadow:0 22px 70px rgba(0,0,0,.45); color:#eafff8; }
.cat-naming-modal header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }.cat-naming-modal header small { color:#66edda; font-size:10px; font-weight:800; letter-spacing:.14em; }.cat-naming-modal h2 { margin:5px 0; font-size:22px; letter-spacing:0; }.cat-naming-modal header p { margin:0; color:#9abdb7; font-size:12px; line-height:1.6; }.cat-naming-modal header button { display:grid; width:30px; height:30px; place-items:center; border:1px solid #3d615c; border-radius:6px; background:transparent; color:#dff9f4; font-size:19px; cursor:pointer; }
.cat-naming-modal label { display:grid; gap:9px; margin-top:22px; color:#b7d7d1; font-size:12px; font-weight:700; }.cat-naming-modal input { width:100%; height:44px; padding:0 12px; border:1px solid #3b6962; border-radius:6px; outline:none; background:#0d1719; color:#f0fffb; font:600 14px/1 "IBM Plex Sans",sans-serif; }.cat-naming-modal input:focus { border-color:#5be7d5; box-shadow:0 0 0 3px rgba(91,231,213,.12); }.cat-naming-modal footer { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }.cat-naming-modal footer button { height:36px; padding:0 13px; border:1px solid #3d615c; border-radius:6px; background:#182b2b; color:#c9e5e0; font-size:12px; font-weight:700; cursor:pointer; }.cat-naming-modal footer [data-save-cat-name] { border-color:#31cbb9; background:#1c9d90; color:#fff; }.cat-naming-modal footer [data-save-cat-name]:hover { background:#25b8a8; }

/* Cat selection is a deliberate modal action, not a cramped row of tiny cards. */
.cat-chooser-modal { position:fixed; z-index:2147483643; inset:0; display:grid; place-items:center; padding:24px; }
.cat-chooser-backdrop { position:absolute; inset:0; border:0; background:rgba(4,10,12,.8); }
.cat-chooser-modal > section { position:relative; width:min(640px,100%); padding:24px; border:1px solid #48daca; border-radius:18px; background:linear-gradient(145deg,#102624,#10171b); box-shadow:0 28px 70px rgba(0,0,0,.48),0 0 36px rgba(53,222,202,.12); color:#effffc; font-family:"IBM Plex Sans",sans-serif; }
.cat-chooser-modal header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.cat-chooser-modal header small { color:#6ef3e1; font-size:10px; font-weight:800; letter-spacing:.16em; }
.cat-chooser-modal h2 { margin:6px 0 5px; font-size:24px; }
.cat-chooser-modal header p { margin:0; color:#9ec6c0; font-size:12px; }
.cat-chooser-modal header button { width:34px; height:34px; border:1px solid #3e625d; border-radius:9px; background:#14211f; color:#dffcf6; font-size:22px; cursor:pointer; }
.cat-chooser-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:20px; }
.cat-chooser-option { display:grid; grid-template-rows:100px auto auto; place-items:center; gap:5px; min-height:170px; padding:12px 8px; border:1px solid #355550; border-radius:13px; background:rgba(7,20,22,.64); color:#d7ece8; cursor:pointer; transition:transform .16s ease,border-color .16s ease,background .16s ease; }
.cat-chooser-option > span { position:relative; width:98px; height:88px; overflow:hidden; border-radius:10px; background:radial-gradient(circle at 50% 38%,rgba(118,246,224,.16),transparent 66%); }
.cat-chooser-option .pixel-cat-art { width:88px; height:74px; margin:9px 0 0 5px; }
.cat-chooser-option strong { font-size:13px; }
.cat-chooser-option small { color:#8db9b1; font-size:10px; }
.cat-chooser-option:hover,.cat-chooser-option.is-selected { border-color:#5cf0da; background:rgba(29,125,112,.24); transform:translateY(-2px); }
.cat-chooser-option.is-selected { box-shadow:0 0 0 1px rgba(102,255,226,.2),0 0 20px rgba(50,221,196,.16); }

.pet-room-food-bowl { position:absolute; z-index:4; right:74px; bottom:35px; display:grid; place-items:center; width:118px; height:70px; padding:0; border:0; background:transparent; color:#fff5cf; cursor:pointer; }
.pet-room-food-bowl::before { content:""; position:absolute; bottom:17px; width:76px; height:27px; border:5px solid #3b3032; border-radius:4px 4px 17px 17px; background:linear-gradient(#e57e50 0 43%,#b94a3e 44%); box-shadow:inset 0 -5px #773137,0 5px 0 rgba(48,25,25,.22); }
.pet-room-food-bowl::after { content:""; position:absolute; bottom:38px; width:62px; height:15px; border:5px solid #3b3032; border-radius:50%; background:#f0b94f; box-shadow:inset 0 3px #d98942; }
.pet-room-food-pixels { position:absolute; z-index:1; bottom:42px; display:grid; grid-template-columns:repeat(4,7px); gap:2px; }
.pet-room-food-pixels i { width:7px; height:7px; background:#f4d55f; box-shadow:1px 1px 0 #b06d33; }
.pet-room-food-bowl strong,.pet-room-food-bowl small { position:absolute; z-index:2; left:50%; width:150px; transform:translateX(-50%); font-family:"IBM Plex Sans",sans-serif; text-align:center; white-space:nowrap; }
.pet-room-food-bowl strong { bottom:-5px; color:#fff3cd; font-size:11px; }
.pet-room-food-bowl small { bottom:-20px; color:#d0ad88; font-size:9px; }
.pet-room-food-bowl:hover:not(:disabled) { filter:brightness(1.12); transform:translateY(-2px); }
.pet-room-food-bowl:disabled { cursor:not-allowed; filter:grayscale(.68) brightness(.68); }
.pet-room-food-bowl:disabled .pet-room-food-pixels { display:none; }
.pet-room.is-feeding .pet-room-cat { animation:pixelCatWalkToBowl 1.4s steps(5,end) both; }
.pet-room.is-feeding .pet-room-food-pixels { animation:pixelFoodNibble 1.05s steps(3,end) both; }
.pet-room.is-feeding .pet-room-food-bowl::after { animation:pixelBowlShake .34s steps(2,end) 3; }
@keyframes pixelCatWalkToBowl { 0% { transform:translateX(-50%); } 42% { transform:translateX(2%); } 72% { transform:translateX(4%) translateY(6px) scale(1.04,.93); } 100% { transform:translateX(-50%); } }
@keyframes pixelFoodNibble { 0%,100% { transform:translateY(0); opacity:1; } 45% { transform:translateY(5px); opacity:.35; } 70% { transform:translateY(2px); opacity:.72; } }
@keyframes pixelBowlShake { 0%,100% { transform:translateX(0); } 50% { transform:translateX(3px); } }
@media (max-width:640px) { .cat-chooser-modal { padding:14px; }.cat-chooser-modal > section { padding:18px; }.cat-chooser-grid { grid-template-columns:1fr 1fr; }.pet-room-food-bowl { right:20px; transform:scale(.82); transform-origin:right bottom; }.pet-room.is-feeding .pet-room-cat { animation:none; } }
