.adventure-screen.cat-sitting-screen-active {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(220, 211, 255, .5), transparent 32%),
    radial-gradient(circle at 82% 72%, rgba(152, 214, 193, .42), transparent 34%),
    linear-gradient(145deg, #c9b2df 0%, #708d7d 48%, #4d6159 100%);
}

.adventure-screen.cat-sitting-screen-active .adventure-topbar {
  display: none;
}

.adventure-screen.cat-sitting-screen-active .adventure-shell {
  height: 100dvh;
  min-height: 0;
}

.adventure-stage.cat-sitting-stage-active {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.adventure-game.cat-sitting-active {
  width: 100%;
  width: min(100%, 133.333dvh);
  max-width: none;
  height: 100%;
  height: min(100%, 75dvw);
  min-height: 0;
  margin: 0;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .48), 0 28px 80px rgba(24, 31, 27, .4);
  overflow: hidden;
}

.adventure-game.cat-sitting-active > .adventure-game-head,
.adventure-game.cat-sitting-active > .adventure-prompt,
.adventure-game.cat-sitting-active > .adventure-feedback {
  display: none;
}

.adventure-game.cat-sitting-active > .adventure-playfield {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #dfe9df;
  box-shadow: none;
}

.adventure-game.cat-sitting-active > .adventure-playfield > .csx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.csx {
  --ink: #45364d;
  --muted: #75687d;
  --paper: #fffdf8;
  --lavender: #9b75c8;
  --lavender-dark: #684688;
  --mint: #78bca2;
  --coral: #e37f72;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  color: var(--ink);
  isolation: isolate;
  overflow: hidden;
  background: #dfe9df;
}

.csx,
.csx *,
.csx *::before,
.csx *::after {
  box-sizing: border-box;
}

.csx button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.csx button:focus-visible {
  outline: 4px solid #176ea6;
  outline-offset: 3px;
}

.csx-scene-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.csx-scene-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(39, 27, 45, .17), transparent 25%, rgba(42, 29, 48, .2)),
    radial-gradient(circle at 50% 45%, transparent 0 43%, rgba(34, 25, 39, .12) 100%);
  pointer-events: none;
}

.csx-care-icon {
  width: 64px;
  height: 64px;
  display: inline-block;
  flex: 0 0 auto;
  background-image: url('../../assets/cat-sitting/ui/care-icons.webp');
  background-repeat: no-repeat;
  background-size: 400% 200%;
  background-position: calc(var(--icon-x) * 33.333%) calc(var(--icon-y) * 100%);
  vertical-align: middle;
}

.csx-miso {
  width: 220px;
  aspect-ratio: 1;
  display: block;
  background-image: url('../../assets/cat-sitting/ui/miso-poses.webp');
  background-repeat: no-repeat;
  background-size: 200% 200%;
  filter: drop-shadow(0 15px 12px rgba(50, 36, 54, .25));
}

.csx-miso--sit { background-position: 0 0; }
.csx-miso--walk { background-position: 100% 0; }
.csx-miso--play { background-position: 0 100%; }
.csx-miso--sleep { background-position: 100% 100%; }

.csx-chrome {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: 15px;
  left: 15px;
  z-index: 40;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 3px solid rgba(255, 255, 255, .96);
  border-radius: 22px;
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 9px 28px rgba(43, 32, 49, .22);
  backdrop-filter: blur(13px);
}

.csx-icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(63, 51, 71, .14);
  cursor: pointer;
}

.csx-back > span {
  position: relative;
  width: 18px;
  height: 4px;
  border-radius: 99px;
  background: #5e5264;
}

.csx-back > span::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 10px;
  height: 10px;
  border-bottom: 4px solid #5e5264;
  border-left: 4px solid #5e5264;
  border-radius: 2px;
  transform: rotate(45deg);
}

.csx-brand {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.csx-brand img {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 13px;
  box-shadow: 0 3px 0 rgba(63, 51, 71, .13);
}

.csx-brand small,
.csx-brand strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.csx-brand small {
  color: #8b5dad;
  font: 900 10px/1 'Inter', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.csx-brand strong {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1;
}

.csx-score {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-radius: 14px;
  color: #86601b;
  background: #fff1b6;
  box-shadow: inset 0 -3px rgba(160, 110, 24, .1);
}

.csx-score > span {
  width: 21px;
  height: 21px;
  display: block;
  background: #efbd42;
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 56%, 79% 92%, 50% 71%, 21% 92%, 32% 56%, 2% 35%, 39% 34%);
}

.csx-score strong { font-size: 17px; }

.csx-sound > span {
  position: relative;
  width: 18px;
  height: 17px;
  border-radius: 4px 0 0 4px;
  background: #6c8ec7;
}

.csx-sound > span::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 9px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-right: 15px solid #6c8ec7;
}

.csx-sound > span::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -16px;
  width: 10px;
  height: 20px;
  border: 3px solid #6c8ec7;
  border-left: 0;
  border-radius: 0 13px 13px 0;
}

.csx-sound > span.muted::after {
  top: -2px;
  right: -15px;
  width: 16px;
  height: 4px;
  border: 0;
  border-radius: 9px;
  background: #d76565;
  transform: rotate(-45deg);
}

.csx-pause > span {
  width: 17px;
  height: 21px;
  display: flex;
  justify-content: space-between;
}

.csx-pause i {
  width: 6px;
  height: 21px;
  border-radius: 4px;
  background: #5e5264;
}

.csx-home-left {
  position: absolute;
  top: 92px;
  bottom: 18px;
  left: 18px;
  z-index: 3;
  width: min(28%, 320px);
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px;
  border: 4px solid rgba(255, 255, 255, .96);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0 24%, rgba(255,253,248,.9) 58%, rgba(255,253,248,.98) 100%);
  box-shadow: 0 15px 40px rgba(36, 27, 42, .25);
  backdrop-filter: blur(5px);
}

.csx-thought {
  padding: 13px;
  border: 3px solid #fff;
  border-radius: 19px 19px 19px 6px;
  background: rgba(255, 253, 248, .95);
  box-shadow: 0 7px 20px rgba(46, 34, 52, .16);
}

.csx-thought small,
.csx-thought strong { display: block; }

.csx-thought small {
  margin-bottom: 4px;
  color: #8d5eab;
  font: 900 9px/1 'Inter', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.csx-thought strong {
  font-size: clamp(15px, 1.8vw, 21px);
  line-height: 1.08;
}

.csx-home-cat {
  width: min(100%, 260px);
  margin: -12px auto -15px;
  animation: csxCatBreathe 2.6s ease-in-out infinite alternate;
}

.csx-needs {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 3px solid #fff;
  border-radius: 19px;
  background: rgba(255, 253, 248, .96);
}

.csx-need {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.csx-need > .csx-care-icon {
  width: 28px;
  height: 28px;
}

.csx-need > span { min-width: 0; }
.csx-need b {
  display: block;
  margin-bottom: 3px;
  color: #64576a;
  font: 800 9px/1 'Inter', sans-serif;
}

.csx-need span > i {
  height: 8px;
  display: block;
  overflow: hidden;
  border-radius: 99px;
  background: #e8e1e9;
}

.csx-need em {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--need-color);
}

.csx-need > strong {
  font: 900 10px/1 'Inter', sans-serif;
}

.csx-activity-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  width: calc(72% - 54px);
  min-width: 540px;
  height: clamp(390px, 58%, 540px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 4px solid rgba(255, 255, 255, .96);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(253,246,255,.96)),
    rgba(255, 253, 248, .96);
  box-shadow: 0 15px 40px rgba(36, 27, 42, .25);
  backdrop-filter: blur(13px);
}

.csx-card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 10px;
  align-items: center;
}

.csx-card-heading small {
  color: #8d5eab;
  font: 900 9px/1 'Inter', sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.csx-card-heading h3 {
  margin: 3px 0 3px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1;
}

.csx-card-heading p {
  margin: 0;
  color: var(--muted);
  font: 750 clamp(11px, 1.1vw, 14px)/1.25 'Inter', sans-serif;
}

.csx-care-ring {
  width: 66px;
  height: 66px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 7px solid #e7ddea;
  border-top-color: #a880c9;
  border-radius: 50%;
  background: #fff;
}

.csx-care-ring strong,
.csx-care-ring span { display: block; }
.csx-care-ring strong { font-size: 14px; }
.csx-care-ring span { font: 800 7px/1 'Inter', sans-serif; text-transform: uppercase; }

.csx-activity-grid {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.csx-activity-grid > button {
  position: relative;
  min-width: 0;
  min-height: 128px;
  display: grid;
  grid-template-rows: minmax(68px, 1fr) auto auto;
  align-items: center;
  justify-items: center;
  gap: 6px;
  padding: 19px 10px 10px;
  border: 3px solid #e8e0ea;
  border-radius: 22px;
  background: linear-gradient(160deg, #fff, #f8f3fa);
  box-shadow: 0 7px 0 rgba(68, 53, 75, .13), 0 12px 24px rgba(68, 53, 75, .08);
  cursor: pointer;
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.csx-activity-grid > button::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--tile-color, #a77ac7);
}

.csx-activity-grid > button[data-csx-activity="feed"] { --tile-color: #efaa62; --tile-wash: #fff2df; }
.csx-activity-grid > button[data-csx-activity="water"] { --tile-color: #59b9d4; --tile-wash: #e8f8fc; }
.csx-activity-grid > button[data-csx-activity="litter"] { --tile-color: #66b99a; --tile-wash: #e9f8f2; }
.csx-activity-grid > button[data-csx-activity="brush"] { --tile-color: #d799c9; --tile-wash: #fbeefa; }
.csx-activity-grid > button[data-csx-activity="play"] { --tile-color: #df81b9; --tile-wash: #fdeaf5; }
.csx-activity-grid > button[data-csx-activity="hide"] { --tile-color: #9b83d8; --tile-wash: #f0edfc; }
.csx-activity-grid > button[data-csx-activity="window"] { --tile-color: #79acd4; --tile-wash: #ecf5fc; }
.csx-activity-grid > button[data-csx-activity="sleep"] { --tile-color: #76629d; --tile-wash: #eeeaf7; }

.csx-activity-grid > button {
  background: linear-gradient(160deg, #fff 15%, var(--tile-wash, #f8f3fa));
}

.csx-activity-grid > button:not(:disabled):hover {
  border-color: var(--tile-color, #bc92d5);
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 9px 0 color-mix(in srgb, var(--tile-color, #a77ac7) 28%, rgba(68,53,75,.13)), 0 16px 28px rgba(68,53,75,.12);
}

.csx-activity-grid > button:disabled {
  opacity: .58;
  cursor: default;
}

.csx-activity-grid > button.done {
  border-color: #86cdb2;
  background: linear-gradient(160deg, #f8fffb, #e1f4ec);
}

.csx-activity-grid > button.ready {
  border-color: #8d70bd;
  background: linear-gradient(160deg, #fff, #eee8fa);
  box-shadow: 0 7px 0 rgba(104,70,136,.25), 0 0 0 5px rgba(155,117,200,.13);
  opacity: 1;
}

.csx-activity-picture {
  width: clamp(72px, 7.3vw, 104px);
  height: clamp(72px, 7.3vw, 104px);
  display: grid;
  place-items: center;
  border: 3px solid rgba(255,255,255,.86);
  border-radius: 24px;
  background: color-mix(in srgb, var(--tile-color, #a77ac7) 15%, white);
  box-shadow: inset 0 -5px rgba(75,55,84,.05), 0 7px 16px rgba(68,53,75,.1);
}

.csx-activity-picture .csx-care-icon {
  width: 86%;
  height: 86%;
}

.csx-activity-label {
  min-width: 0;
  width: 100%;
  display: block;
  text-align: center;
}

.csx-activity-label strong,
.csx-activity-label small {
  display: block;
}

.csx-activity-label strong {
  overflow: hidden;
  max-width: 100%;
  font-size: clamp(14px, 1.4vw, 19px);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.csx-activity-label small {
  min-height: 2.3em;
  margin-top: 4px;
  color: var(--muted);
  font: 750 clamp(9px, .83vw, 12px)/1.15 'Inter', sans-serif;
}

.csx-activity-need {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(28px, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: #665a6d;
  font: 850 clamp(8px, .75vw, 10px)/1 'Inter', sans-serif;
}

.csx-activity-need > i {
  height: 8px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(81,64,91,.12);
}

.csx-activity-need > i > b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--need-color, var(--tile-color, #9b75c8));
}

.csx-activity-grid em {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 50%;
  padding: 4px 8px;
  border-radius: 99px;
  color: #fff;
  background: #c86962;
  box-shadow: 0 3px 0 rgba(98,44,42,.16);
  font: 900 clamp(7px, .63vw, 9px)/1 'Inter', sans-serif;
  font-style: normal;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.csx-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.csx-days span {
  display: grid;
  place-items: center;
  padding: 4px;
  border: 2px solid #e5dce7;
  border-radius: 10px;
  color: #86798c;
  background: #f4eff5;
}

.csx-days span.today { color: #6c4688; border-color: #9e77be; background: #f2e7f7; }
.csx-days span.done { color: #37775f; border-color: #7cc4a6; background: #e7f5ee; }
.csx-days b { font-size: 9px; }
.csx-days small { font: 700 6px/1 'Inter', sans-serif; text-transform: uppercase; }

.csx-task-heading {
  position: absolute;
  top: 91px;
  right: 17px;
  left: 17px;
  z-index: 4;
  min-height: 74px;
  display: grid;
  grid-template-columns: 58px 58px minmax(170px, 1fr) minmax(360px, 46%);
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 3px solid #fff;
  border-radius: 22px;
  background: rgba(255,253,248,.93);
  box-shadow: 0 8px 24px rgba(41,31,47,.2);
  backdrop-filter: blur(12px);
}

.csx-task-heading > button {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  gap: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(63,51,71,.13);
  cursor: pointer;
}

.csx-task-heading > button span {
  position: relative;
  width: 17px;
  height: 4px;
  border-radius: 99px;
  background: #67576d;
}

.csx-task-heading > button span::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 9px;
  height: 9px;
  border-bottom: 3px solid #67576d;
  border-left: 3px solid #67576d;
  transform: rotate(45deg);
}

.csx-task-heading > button b { font-size: 9px; }
.csx-task-heading > .csx-care-icon { width: 55px; height: 55px; }
.csx-task-heading small { color: #8d5eab; font: 900 8px/1 'Inter', sans-serif; text-transform: uppercase; }
.csx-task-heading h3 { margin: 2px 0; font-size: 19px; line-height: 1; }
.csx-task-heading p { margin: 0; color: var(--muted); font: 700 9px/1.2 'Inter', sans-serif; }

.csx-needs.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 7px;
}

.csx-needs.compact .csx-need {
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 4px;
}

.csx-needs.compact .csx-need > strong { display: none; }
.csx-needs.compact .csx-care-icon { width: 25px; height: 25px; }
.csx-needs.compact b { font-size: 7px; }
.csx-needs.compact span > i { height: 6px; }

.csx-playfield {
  position: absolute;
  inset: 174px 17px 17px;
  z-index: 3;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,.97);
  border-radius: 27px;
  box-shadow: 0 15px 38px rgba(37,27,42,.25);
}

.csx-playfield::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(51,39,57,.06));
  pointer-events: none;
}

.csx-task-message {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 20;
  width: min(400px, 58%);
  padding: 10px 16px;
  border: 3px solid #fff;
  border-radius: 18px;
  text-align: center;
  background: rgba(255,253,248,.94);
  box-shadow: 0 8px 25px rgba(45,34,51,.2);
  transform: translateX(-50%);
  backdrop-filter: blur(9px);
}

.csx-task-message small,
.csx-task-message strong,
.csx-task-message span { display: block; }
.csx-task-message small { color: #945eaa; font: 900 7px/1 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.csx-task-message strong { margin: 3px 0 6px; font-size: 15px; }
.csx-task-message > i { height: 8px; display: block; overflow: hidden; border-radius: 99px; background: #e8e0e9; }
.csx-task-message em { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#82c6a7,#aa7fc6); transition: width .28s ease; }
.csx-task-message span { margin-top: 4px; color: #716575; font: 800 7px/1 'Inter', sans-serif; text-transform: uppercase; }

.csx-cat-stage,
.csx-brush-cat,
.csx-play-cat,
.csx-window-cat,
.csx-bedtime-cat {
  position: absolute;
  z-index: 8;
}

.csx-cat-stage { left: 36%; bottom: 2%; }
.csx-cat-stage .csx-miso { width: clamp(190px, 28vw, 330px); }

.csx-big-bowl {
  position: absolute;
  right: 10%;
  bottom: 9%;
  z-index: 9;
  width: 155px;
  height: 120px;
}

.csx-big-bowl > .csx-care-icon { width: 150px; height: 150px; }
.csx-big-bowl > span:not(.csx-care-icon) {
  display: none;
}

.csx-kibble {
  position: absolute;
  z-index: 16;
  width: 60px;
  height: 60px;
  display: grid;
  place-content: center;
  grid-template-columns: repeat(2, 13px);
  gap: 2px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(255,247,216,.95);
  box-shadow: 0 7px 0 rgba(91,62,42,.18), 0 9px 20px rgba(47,34,53,.22);
  cursor: pointer;
  transition: opacity .28s, transform .28s;
}

.csx-kibble i {
  width: 13px;
  height: 13px;
  border-radius: 46% 54% 60% 40%;
  background: #a86235;
}

.csx-kibble.done { opacity: 0; pointer-events: none; transform: translate(280px, 230px) scale(.2); }

.csx-water-bowl {
  position: absolute;
  right: 12%;
  bottom: 10%;
  z-index: 10;
  width: 190px;
  height: 160px;
}

.csx-water-bowl > .csx-care-icon { width: 190px; height: 190px; }
.csx-water-bowl > i {
  position: absolute;
  right: 35px;
  bottom: 35px;
  left: 35px;
  height: 58px;
  overflow: hidden;
  border-radius: 50%;
}

.csx-water-bowl em {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0;
  border-radius: 50%;
  background: #55b8d7;
  transition: height .1s linear;
}

.csx-hold-button {
  position: absolute;
  bottom: 11%;
  left: 10%;
  z-index: 14;
  width: 205px;
  min-height: 92px;
  padding: 16px;
  border: 4px solid #fff;
  border-radius: 24px;
  background: #eaf8f4;
  box-shadow: 0 7px 0 #8cc7b2, 0 12px 26px rgba(43,33,49,.22);
  cursor: pointer;
}

.csx-hold-button span {
  width: 38px;
  height: 38px;
  display: block;
  margin: 0 auto 5px;
  border: 7px solid #91d2bb;
  border-top-color: #4f9f84;
  border-radius: 50%;
}

.csx-hold-button strong,
.csx-hold-button small { display: block; }
.csx-hold-button small { color: #6e7c76; font: 700 9px/1.2 'Inter', sans-serif; }
.csx-hold-button.holding { transform: translateY(5px); box-shadow: 0 2px 0 #8cc7b2; }
.csx-hold-button.holding span { animation: csxSpin .7s linear infinite; }

.csx-litter-tray {
  position: absolute;
  inset: 0;
  z-index: 7;
}

.csx-litter-tray > button {
  position: absolute;
  z-index: 11;
  width: 54px;
  height: 54px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #f5e7bd;
  box-shadow: 0 5px 0 #cdb88a, 0 8px 18px rgba(43,33,49,.2);
  cursor: pointer;
}

.csx-litter-tray button i {
  width: 25px;
  height: 18px;
  display: block;
  margin: auto;
  border-radius: 50%;
  background: #ad9068;
}

.csx-litter-tray button.done { opacity: 0; transform: translate(150px,-90px) rotate(22deg) scale(.2); pointer-events: none; transition: .35s ease; }
.csx-scoop-tool { position: absolute; right: 5%; bottom: 3%; z-index: 10; transform: rotate(-18deg); }
.csx-scoop-tool .csx-care-icon { width: 155px; height: 155px; }

.csx-brush-cat { left: 50%; bottom: -2%; transform: translateX(-50%); }
.csx-brush-cat .csx-miso { width: clamp(300px, 45vw, 500px); }
.csx-fur-patch {
  position: absolute;
  z-index: 14;
  width: 48px;
  height: 48px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: rgba(202,156,220,.8);
  box-shadow: 0 0 0 7px rgba(255,255,255,.35);
  cursor: pointer;
  animation: csxPatchPulse .8s ease-in-out infinite alternate;
}

.csx-fur-patch i {
  width: 15px;
  height: 15px;
  display: block;
  margin: auto;
  border-radius: 50%;
  background: #fff;
}

.csx-fur-patch.done { opacity: 0; pointer-events: none; transform: scale(1.8); transition: .3s ease; }
.csx-brush-tool { position: absolute; right: 6%; bottom: 5%; z-index: 10; transform: rotate(-18deg); }
.csx-brush-tool .csx-care-icon { width: 125px; height: 125px; }

.csx-play-cat { left: 50%; bottom: -4%; transform: translateX(-50%); }
.csx-play-cat .csx-miso { width: clamp(250px, 39vw, 430px); }
.csx-feather-target {
  position: absolute;
  z-index: 16;
  width: 100px;
  height: 100px;
  padding: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: rgba(255,253,248,.9);
  box-shadow: 0 8px 0 rgba(81,62,90,.18), 0 10px 24px rgba(45,34,51,.2);
  cursor: pointer;
  transform: translate(-50%,-50%);
  transition: left .3s ease, top .3s ease;
}

.csx-feather-target .csx-care-icon { width: 92px; height: 92px; }
.csx-feather-target.caught { animation: csxCatch .28s ease; }

.csx-hide-spots {
  position: absolute;
  right: 6%;
  bottom: 7%;
  left: 6%;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.csx-hide-spots > button {
  position: relative;
  min-height: 145px;
  border: 4px solid #fff;
  border-radius: 24px;
  background: rgba(255,253,248,.85);
  box-shadow: 0 8px 0 rgba(80,61,88,.15);
  cursor: pointer;
  overflow: hidden;
}

.csx-hide-spots .csx-care-icon { width: 105px; height: 105px; }
.csx-hide-spots strong { display: block; margin-top: -8px; font-size: 13px; }
.csx-hide-spots .csx-miso { position: absolute; right: -13px; bottom: -19px; width: 125px; animation: csxFound .35s ease both; }
.csx-hide-spots button.wrong { animation: csxWrong .3s ease; border-color: #df857e; }
.csx-hide-spots button.found { border-color: #7bc3a5; background: #eaf7f0; }

.csx-window-cat { left: 24%; bottom: 1%; }
.csx-window-cat .csx-miso { width: clamp(220px, 34vw, 390px); }
.csx-bird {
  position: absolute;
  z-index: 14;
  width: 70px;
  height: 70px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(255,253,248,.9);
  box-shadow: 0 6px 0 rgba(70,55,76,.14);
  cursor: pointer;
  animation: csxBirdFloat .75s var(--bird-delay) ease-in-out infinite alternate;
}

.csx-bird .csx-care-icon { width: 66px; height: 66px; }
.csx-bird.done { opacity: 0; transform: translate(90px,-60px) scale(.5); pointer-events: none; transition: .4s ease; }

.csx-bedtime-cat { left: 14%; bottom: -3%; }
.csx-bedtime-cat .csx-miso { width: clamp(240px, 35vw, 400px); }
.csx-bedtime-steps {
  position: absolute;
  right: 7%;
  bottom: 8%;
  z-index: 14;
  width: min(48%, 430px);
  display: grid;
  gap: 9px;
}

.csx-bedtime-steps > button {
  min-height: 73px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 10px;
  padding: 5px 13px 5px 5px;
  border: 3px solid #fff;
  border-radius: 18px;
  text-align: left;
  background: rgba(255,253,248,.92);
  box-shadow: 0 5px 0 rgba(65,50,72,.15);
  cursor: pointer;
}

.csx-bedtime-steps .csx-care-icon { width: 62px; height: 62px; }
.csx-bedtime-steps small { display: block; color: #8f62aa; font: 900 7px/1 'Inter', sans-serif; text-transform: uppercase; }
.csx-bedtime-steps strong { display: block; margin-top: 4px; font-size: 13px; }
.csx-bedtime-steps button.done { opacity: .55; border-color: #7ec4a7; background: #e9f7f0; }
.csx-bedtime-steps button.wrong { animation: csxWrong .3s ease; border-color: #dc8179; }

.csx-result-card,
.csx-week-card {
  position: absolute;
  top: 54%;
  left: 50%;
  z-index: 10;
  width: min(620px, calc(100% - 40px));
  padding: 25px;
  border: 4px solid #fff;
  border-radius: 30px;
  text-align: center;
  background: rgba(255,253,248,.95);
  box-shadow: 0 20px 55px rgba(38,28,43,.32);
  transform: translate(-50%,-50%);
  backdrop-filter: blur(15px);
}

.csx-result-card > .csx-miso,
.csx-week-card > .csx-miso {
  width: 180px;
  margin: -115px auto -10px;
}

.csx-result-card > small,
.csx-week-card > small {
  color: #8d5eab;
  font: 900 9px/1 'Inter', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.csx-result-card h3,
.csx-week-card h3 { margin: 5px 0; font-size: clamp(27px, 4vw, 42px); }
.csx-result-card p,
.csx-week-card p { max-width: 500px; margin: 0 auto 14px; color: var(--muted); font: 700 12px/1.4 'Inter', sans-serif; }

.csx-result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 13px 0;
}

.csx-result-stats span {
  padding: 10px;
  border-radius: 14px;
  background: #f2ebf5;
  font: 800 8px/1 'Inter', sans-serif;
  text-transform: uppercase;
}

.csx-result-stats strong { display: block; margin-bottom: 4px; color: #71508a; font-size: 18px; }

.csx-main-button {
  min-height: 50px;
  padding: 12px 22px;
  border: 0;
  border-radius: 16px;
  color: #fff !important;
  background: linear-gradient(180deg,#a47ac5,#76539b);
  box-shadow: 0 6px 0 #583b77;
  font-weight: 900 !important;
  cursor: pointer;
}

.csx-main-button:active { transform: translateY(4px); box-shadow: 0 2px 0 #583b77; }

.csx-badge-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin: 14px 0;
}

.csx-badge-row span {
  min-width: 0;
  padding: 6px 3px;
  border: 2px solid #e0d5e6;
  border-radius: 12px;
  background: #f5eef7;
}

.csx-badge-row b { display: grid; place-items: center; width: 25px; height: 25px; margin: auto; border-radius: 50%; color: #fff; background: #9b75bd; }
.csx-badge-row small { display: block; margin-top: 4px; overflow: hidden; font: 700 6px/1.1 'Inter', sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.csx-reward { padding: 9px; border-radius: 12px; color: #4b755f !important; background: #e8f5ee; }
.csx-week-actions { display: flex; justify-content: center; gap: 10px; }
.csx-week-actions > button:not(.csx-main-button) { padding: 10px 16px; border: 2px solid #ddd2e1; border-radius: 14px; background: #fff; font-weight: 900; cursor: pointer; }

.csx-tutorial,
.csx-pause-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(38,28,43,.48);
  backdrop-filter: blur(10px);
}

.is-paused > .csx { filter: saturate(.72) brightness(.8); }

.csx-tutorial-card,
.csx-pause-overlay > section {
  position: relative;
  width: min(480px, 100%);
  padding: 28px;
  border: 4px solid #fff;
  border-radius: 30px;
  text-align: center;
  background: #fffdf8;
  box-shadow: 0 22px 60px rgba(34,25,39,.35);
}

.csx-tutorial-card > [data-csx-skip] {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: #eee7f1;
  font-weight: 900;
  cursor: pointer;
}

.csx-tutorial-card .csx-miso,
.csx-pause-overlay .csx-miso { width: 190px; margin: -15px auto -15px; }
.csx-tutorial-card > small,
.csx-pause-overlay small { color: #8e5fab; font: 900 8px/1 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.csx-tutorial-card h3,
.csx-pause-overlay h3 { margin: 5px 0; font-size: 31px; }
.csx-tutorial-card p,
.csx-pause-overlay p { margin: 0 auto 17px; color: var(--muted); font: 700 13px/1.45 'Inter', sans-serif; }
.csx-tutorial-card .csx-main-button,
.csx-pause-overlay .csx-main-button { width: 100%; }

.csx-page-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.csx-page-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd2e1;
}
.csx-page-dots i.active { background: #9c75be; transform: scale(1.25); }
.csx-pause-overlay section > button:not(.csx-main-button) { width: 100%; margin-top: 12px; padding: 10px; border: 0; background: transparent; font-weight: 900; cursor: pointer; }

.csx-loading {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  background: linear-gradient(145deg,#efe4f4,#d9eee5);
}

.csx-loading img {
  width: 110px;
  height: 110px;
  border: 5px solid #fff;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(57,42,63,.2);
}

.csx-loading strong { font-size: 24px; }
.csx-loading span { color: var(--muted); font-weight: 700; }
.csx-loading-dots { display: flex; gap: 7px; }
.csx-loading-dots i { width: 11px; height: 11px; border-radius: 50%; background: #9771b7; animation: csxLoading .7s ease-in-out infinite alternate; }
.csx-loading-dots i:nth-child(2) { animation-delay: .15s; }
.csx-loading-dots i:nth-child(3) { animation-delay: .3s; }

.csx-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@keyframes csxCatBreathe { to { transform: translateY(-4px) scale(1.015); } }
@keyframes csxSpin { to { transform: rotate(360deg); } }
@keyframes csxPatchPulse { to { transform: scale(1.13); box-shadow: 0 0 0 11px rgba(255,255,255,.2); } }
@keyframes csxCatch { 50% { transform: translate(-50%,-50%) scale(.75) rotate(12deg); } }
@keyframes csxFound { from { opacity: 0; transform: translateY(25px) scale(.7); } }
@keyframes csxWrong { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
@keyframes csxBirdFloat { to { transform: translateY(-7px) rotate(3deg); } }
@keyframes csxLoading { to { transform: translateY(-8px); opacity: .45; } }

@media (max-width: 900px) {
  .csx-home-left { min-width: 190px; padding: 10px; }
  .csx-activity-card { width: calc(100% - 235px); min-width: 0; padding: 12px; }
  .csx-activity-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .csx-activity-grid > button { min-height: 122px; padding: 17px 6px 8px; }
  .csx-activity-picture { width: clamp(62px, 8vw, 76px); height: clamp(62px, 8vw, 76px); border-radius: 19px; }
  .csx-activity-label small { font-size: 8px; }
  .csx-activity-need { grid-template-columns: 1fr; }
  .csx-activity-need > span { display: none; }
  .csx-task-heading { grid-template-columns: 52px 48px minmax(130px,1fr); }
  .csx-task-heading > .csx-needs { grid-column: 1 / -1; width: 100%; }
  .csx-playfield { top: 215px; }
}

@media (orientation: portrait) and (min-width: 721px) {
  .adventure-game.cat-sitting-active {
    width: 100%;
    height: 100%;
  }

  .csx-home-left {
    top: 92px;
    right: 18px;
    bottom: auto;
    width: auto;
    min-width: 0;
    height: 340px;
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    grid-template-rows: 90px 1fr;
    gap: 9px;
    padding: 12px;
  }

  .csx-home-left .csx-thought {
    grid-column: 2;
    grid-row: 1;
  }

  .csx-home-left .csx-home-cat {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 235px;
    margin: auto;
  }

  .csx-home-left > .csx-needs {
    grid-column: 2;
    grid-row: 2;
  }

  .csx-activity-card {
    right: 18px;
    bottom: 18px;
    left: 18px;
    width: auto;
    min-width: 0;
    height: 540px;
  }

  .csx-activity-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .csx-activity-grid > button {
    min-height: 155px;
  }

  .csx-activity-picture {
    width: clamp(70px, 10vw, 92px);
    height: clamp(70px, 10vw, 92px);
  }

  .csx-activity-label small {
    font-size: clamp(9px, 1.25vw, 11px);
  }

  .csx-activity-need {
    grid-template-columns: minmax(28px, 1fr) auto;
  }

  .csx-activity-need > span {
    display: block;
  }

  .csx-days {
    padding-left: 72px;
  }
}

@media (max-width: 720px) {
  .adventure-game.cat-sitting-active > .adventure-playfield { min-height: 860px; overflow: auto; }
  .csx { min-height: 860px !important; }
  .csx-chrome { right: 8px; left: 8px; gap: 5px; padding: 6px; border-radius: 18px; }
  .csx-icon-button { width: 39px; height: 39px; flex-basis: 39px; border-radius: 12px; }
  .csx-brand img { width: 37px; height: 37px; flex-basis: 37px; }
  .csx-brand strong { font-size: 12px; }
  .csx-score { height: 38px; padding: 0 8px; }
  .csx-score strong { font-size: 12px; }
  .csx-home-left {
    top: 82px;
    right: 8px;
    bottom: auto;
    left: 8px;
    width: auto;
    min-width: 0;
    height: 248px;
    display: grid;
    grid-template-columns: 125px minmax(0,1fr);
    grid-template-rows: 80px 1fr;
    gap: 7px;
    padding: 8px;
  }
  .csx-thought { grid-column: 2; padding: 9px; }
  .csx-home-cat { grid-column: 1; grid-row: 1 / 3; width: 135px; margin: auto; }
  .csx-home-left > .csx-needs { grid-column: 2; grid-row: 2; padding: 6px; gap: 3px; }
  .csx-activity-card {
    top: 340px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    height: auto;
  }
  .csx-card-heading h3 { font-size: 23px; }
  .csx-activity-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .csx-activity-grid > button { min-height: 110px; }
  .csx-task-heading { top: 81px; right: 8px; left: 8px; padding: 7px; border-radius: 18px; }
  .csx-task-heading > button { width: 48px; height: 48px; }
  .csx-task-heading > .csx-care-icon { width: 45px; height: 45px; }
  .csx-task-heading h3 { font-size: 16px; }
  .csx-playfield { inset: 202px 8px 8px; border-radius: 22px; }
  .csx-task-message { top: 7px; width: min(390px,75%); padding: 8px 12px; }
  .csx-hide-spots { gap: 7px; right: 3%; left: 3%; }
  .csx-hide-spots > button { min-height: 120px; }
  .csx-hide-spots .csx-care-icon { width: 80px; height: 80px; }
  .csx-bedtime-steps { right: 4%; width: 58%; }
  .csx-bedtime-cat { left: 2%; }
}

@media (max-width: 470px) {
  .adventure-game.cat-sitting-active > .adventure-playfield { min-height: 980px; }
  .csx { min-height: 980px !important; }
  .csx-brand img { display: none; }
  .csx-score > span { display: none; }
  .csx-home-left { height: 240px; grid-template-columns: 105px minmax(0,1fr); }
  .csx-home-cat { width: 115px; }
  .csx-thought strong { font-size: 13px; }
  .csx-activity-card { top: 330px; }
  .csx-activity-grid { grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(4,1fr); }
  .csx-activity-grid > button { min-height: 112px; }
  .csx-days span { padding: 3px 0; }
  .csx-days small { display: none; }
  .csx-task-heading { grid-template-columns: 45px 40px minmax(0,1fr); }
  .csx-needs.compact { grid-template-columns: repeat(5,1fr); }
  .csx-needs.compact .csx-need { display: block; }
  .csx-needs.compact .csx-care-icon { display: block; margin: auto; }
  .csx-needs.compact .csx-need span { display: none; }
  .csx-playfield { top: 183px; }
  .csx-task-message { width: 83%; }
  .csx-cat-stage { left: 20%; }
  .csx-cat-stage .csx-miso { width: 210px; }
  .csx-big-bowl { right: 1%; transform: scale(.8); }
  .csx-hold-button { left: 3%; width: 160px; }
  .csx-water-bowl { right: 1%; transform: scale(.8); }
  .csx-brush-cat .csx-miso { width: 330px; }
  .csx-fur-patch { width: 40px; height: 40px; }
  .csx-hide-spots { grid-template-columns: 1fr; top: 110px; bottom: 12px; }
  .csx-hide-spots > button { min-height: 95px; }
  .csx-hide-spots .csx-care-icon { width: 70px; height: 70px; }
  .csx-hide-spots .csx-miso { width: 90px; }
  .csx-window-cat { left: 4%; }
  .csx-bird { width: 56px; height: 56px; }
  .csx-bird .csx-care-icon { width: 52px; height: 52px; }
  .csx-bedtime-cat { display: none; }
  .csx-bedtime-steps { right: 5%; left: 5%; width: auto; }
  .csx-badge-row small { display: none; }
  .csx-week-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .csx *,
  .csx *::before,
  .csx *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
