:root {
  --cream: #f8efe2;
  --peach: #f6c28b;
  --ginger: #d97745;
  --ink: #24160f;
  --moss: #607744;
  --sky: #d8eef2;
  --card: rgba(255, 250, 244, 0.78);
  --shadow: 0 28px 60px rgba(78, 43, 17, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 38%),
    linear-gradient(180deg, var(--sky), #f3dcc5 48%, #e6b48a 100%);
  overflow-x: hidden;
}

.scene {
  position: relative;
  min-height: 100vh;
  padding: 32px 20px 48px;
  display: grid;
  place-items: center;
}

.scene::before,
.scene::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.45;
  filter: blur(8px);
  pointer-events: none;
}

.scene::before {
  width: 260px;
  height: 260px;
  background: rgba(255, 244, 189, 0.9);
  top: 40px;
  right: -40px;
}

.scene::after {
  width: 220px;
  height: 220px;
  background: rgba(183, 211, 179, 0.65);
  bottom: 50px;
  left: -30px;
}

main {
  position: relative;
  width: min(980px, 100%);
  background: var(--card);
  border: 1px solid rgba(110, 70, 35, 0.18);
  border-radius: 32px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.hero,
.panel {
  padding: 36px;
}

.hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(255, 245, 234, 0.6)),
    repeating-linear-gradient(-35deg,
      rgba(217, 119, 69, 0.06) 0,
      rgba(217, 119, 69, 0.06) 24px,
      rgba(255, 255, 255, 0.16) 24px,
      rgba(255, 255, 255, 0.16) 48px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(96, 119, 68, 0.14);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.lead {
  max-width: 32rem;
  font-size: 1.12rem;
  line-height: 1.6;
  color: rgba(36, 22, 15, 0.78);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.stat {
  min-width: 150px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(110, 70, 35, 0.1);
}

.stat strong {
  display: block;
  font-size: 1.2rem;
}

.cat-stage {
  position: relative;
  margin-top: 28px;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.laser-arena {
  margin-top: 18px;
  border-radius: 22px;
  padding: 14px;
  border: 1px solid rgba(110, 70, 35, 0.2);
  background:
    linear-gradient(160deg, rgba(34, 27, 21, 0.88), rgba(67, 44, 33, 0.86));
  color: #fdeedc;
}

.laser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

#laser-status {
  color: #ffddab;
  font-variant-numeric: tabular-nums;
}

.laser-zone {
  position: relative;
  height: 116px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 225, 185, 0.45);
  background:
    radial-gradient(circle at 20% 20%, rgba(252, 229, 194, 0.18), transparent 45%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 220, 178, 0.07) 0,
      rgba(255, 220, 178, 0.07) 6px,
      rgba(255, 220, 178, 0.03) 6px,
      rgba(255, 220, 178, 0.03) 12px
    );
  overflow: hidden;
}

#laser-dot {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  display: none;
  cursor: crosshair;
  background: radial-gradient(circle, #fff6de 0 28%, #ff5e4f 52%, #a8251a 100%);
  box-shadow:
    0 0 0 3px rgba(255, 132, 104, 0.25),
    0 0 18px rgba(255, 102, 84, 0.9);
  animation: laser-pop 400ms ease-in-out infinite alternate;
}

#laser-dot.active {
  display: block;
}

.cat-shadow {
  position: absolute;
  width: 250px;
  height: 42px;
  border-radius: 50%;
  background: rgba(87, 46, 22, 0.14);
  bottom: 12px;
  filter: blur(6px);
}

.cat {
  position: relative;
  width: 230px;
  height: 250px;
  animation: float 3.4s ease-in-out infinite;
  transform-origin: center bottom;
}

.ear {
  position: absolute;
  width: 82px;
  height: 96px;
  background: var(--ginger);
  border: 4px solid var(--ink);
  border-radius: 18px 62px 10px 50px;
  top: 10px;
  z-index: 0;
}

.ear::after {
  content: "";
  position: absolute;
  inset: 16px 14px 16px 14px;
  background: #f5b7a2;
  border-radius: 12px 46px 8px 34px;
}

.ear.left {
  left: 16px;
  transform: rotate(-12deg);
}

.ear.right {
  right: 16px;
  transform: scaleX(-1) rotate(-12deg);
}

.head {
  position: absolute;
  inset: 50px 24px auto;
  height: 158px;
  background: var(--peach);
  border: 4px solid var(--ink);
  border-radius: 48% 48% 44% 44%;
  z-index: 1;
}

.stripe {
  position: absolute;
  width: 18px;
  height: 58px;
  background: rgba(142, 69, 31, 0.48);
  border-radius: 999px;
  top: 18px;
}

.stripe.a {
  left: 56px;
  transform: rotate(-14deg);
}

.stripe.b {
  left: calc(50% - 9px);
}

.stripe.c {
  right: 56px;
  transform: rotate(14deg);
}

.eye {
  position: absolute;
  top: 76px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #18210e;
  transition: transform 180ms ease, height 180ms ease, border-radius 180ms ease;
}

.eye::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  top: 6px;
  left: 20px;
}

.eye.left {
  left: 54px;
}

.eye.right {
  right: 54px;
}

.nose {
  position: absolute;
  width: 24px;
  height: 18px;
  background: #f19187;
  border: 4px solid var(--ink);
  border-radius: 50% 50% 60% 60%;
  top: 102px;
  left: calc(50% - 12px);
}

.mouth {
  position: absolute;
  width: 64px;
  height: 34px;
  top: 122px;
  left: calc(50% - 32px);
  border-bottom: 4px solid var(--ink);
  border-radius: 0 0 40px 40px;
  transition: transform 180ms ease, border-radius 180ms ease;
}

.whisker {
  position: absolute;
  width: 68px;
  border-top: 3px solid var(--ink);
  top: 118px;
}

.whisker.left.one {
  left: -10px;
  transform: rotate(8deg);
}

.whisker.left.two {
  left: -12px;
  top: 134px;
  transform: rotate(-7deg);
}

.whisker.right.one {
  right: -10px;
  transform: rotate(-8deg);
}

.whisker.right.two {
  right: -12px;
  top: 134px;
  transform: rotate(7deg);
}

.body {
  position: absolute;
  width: 150px;
  height: 122px;
  left: calc(50% - 75px);
  bottom: 20px;
  background: var(--peach);
  border: 4px solid var(--ink);
  border-radius: 48% 48% 30% 30%;
}

.belly {
  position: absolute;
  width: 84px;
  height: 72px;
  left: calc(50% - 42px);
  bottom: 18px;
  background: #fff1df;
  border-radius: 50% 50% 40% 40%;
}

.paw {
  position: absolute;
  width: 42px;
  height: 50px;
  background: #fff1df;
  border: 4px solid var(--ink);
  border-radius: 44% 44% 40% 40%;
  bottom: -12px;
}

.paw.left {
  left: 22px;
}

.paw.right {
  right: 22px;
}

.tail {
  position: absolute;
  width: 118px;
  height: 28px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--ginger);
  right: -62px;
  bottom: 68px;
  transform: rotate(28deg);
  transform-origin: left center;
  animation: wag 2.5s ease-in-out infinite;
}

.tail::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 28px;
  right: -6px;
  top: -4px;
  border-radius: 999px;
  background: var(--ginger);
  border: 4px solid var(--ink);
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255, 247, 240, 0.82);
}

.panel h2 {
  margin: 0;
  font-size: 1.8rem;
}

.status {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(110, 70, 35, 0.12);
}

.status p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.challenge {
  border-color: rgba(87, 46, 22, 0.22);
  background:
    linear-gradient(140deg, rgba(255, 248, 222, 0.72), rgba(255, 255, 255, 0.78));
}

.challenge-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#challenge-timer {
  font-weight: 700;
}

#challenge-button {
  padding: 10px 12px;
  border-radius: 12px;
}

.setup {
  background: rgba(96, 119, 68, 0.1);
}

.setup-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.setup-row label {
  font-size: 0.95rem;
}

.setup-row select {
  border: 1px solid rgba(110, 70, 35, 0.25);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
}

.meter-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 72px 1fr 34px;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
}

.meter {
  height: 12px;
  border-radius: 999px;
  background: rgba(36, 22, 15, 0.12);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5f8e44, #88b568);
  transition: width 180ms ease, background-color 180ms ease;
}

.meter-fill.warn {
  background: linear-gradient(90deg, #d1a04e, #b97c35);
}

.meter-fill.low {
  background: linear-gradient(90deg, #cc6a43, #a94428);
}

.meter-fill.danger {
  background: linear-gradient(90deg, #dc7b4c, #b6492a);
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

button {
  border: 0;
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: #fffaf5;
  background: linear-gradient(180deg, #b46a45, #8f4d2b);
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(143, 77, 43, 0.22);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

button:hover,
button:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.05);
  box-shadow: 0 16px 28px rgba(143, 77, 43, 0.28);
  outline: none;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 10px 18px rgba(143, 77, 43, 0.15);
}

#restart {
  background: linear-gradient(180deg, #59663f, #3f4d2d);
  box-shadow: 0 12px 24px rgba(63, 77, 45, 0.24);
}

#catnip {
  background: linear-gradient(180deg, #b35f31, #7f2f1d);
  box-shadow: 0 12px 24px rgba(127, 47, 29, 0.25);
}

.quick-help {
  margin: 2px 4px 0;
  font-size: 0.86rem;
  color: rgba(36, 22, 15, 0.7);
}

.room-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.house-map {
  position: relative;
  margin-top: 12px;
  height: 212px;
  border-radius: 18px;
  border: 1px solid rgba(103, 70, 45, 0.28);
  background:
    linear-gradient(180deg, rgba(242, 230, 215, 0.96), rgba(225, 201, 174, 0.78));
  overflow: hidden;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -10px 20px rgba(104, 72, 42, 0.16),
    0 10px 22px rgba(90, 60, 38, 0.15);
  --light-x: 25%;
  --light-y: 25%;
}

.house-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(162, 117, 78, 0.12) 0,
      rgba(162, 117, 78, 0.12) 18px,
      rgba(126, 89, 58, 0.08) 18px,
      rgba(126, 89, 58, 0.08) 36px
    );
  pointer-events: none;
}

.house-map::after {
  content: "";
  position: absolute;
  left: calc(50% - 33px);
  top: calc(50% - 13px);
  width: 66px;
  height: 26px;
  border-radius: 999px;
  background: rgba(118, 88, 56, 0.12);
  filter: blur(2px);
  pointer-events: none;
}

.ambient-light {
  position: absolute;
  width: 124px;
  height: 124px;
  left: var(--light-x);
  top: var(--light-y);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.32) 0, rgba(255, 255, 255, 0) 72%);
  filter: blur(1px);
  transition: left 360ms ease, top 360ms ease;
  pointer-events: none;
}

.hallway-cross {
  position: absolute;
  left: calc(50% - 34px);
  top: calc(50% - 34px);
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(175, 153, 130, 0.2) 0,
      rgba(175, 153, 130, 0.2) 11px,
      rgba(149, 126, 102, 0.16) 11px,
      rgba(149, 126, 102, 0.16) 22px
    ),
    linear-gradient(180deg, rgba(224, 207, 188, 0.9), rgba(200, 178, 154, 0.8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 -3px 6px rgba(89, 66, 47, 0.14);
}

.door {
  position: absolute;
  background: linear-gradient(180deg, rgba(169, 130, 95, 0.44), rgba(136, 99, 67, 0.44));
  border-radius: 999px;
  opacity: 0.6;
}

.door-top,
.door-bottom {
  width: 24px;
  height: 6px;
  left: calc(50% - 12px);
}

.door-top {
  top: 53px;
}

.door-bottom {
  bottom: 53px;
}

.door-left,
.door-right {
  width: 6px;
  height: 24px;
  top: calc(50% - 12px);
}

.door-left {
  left: 73px;
}

.door-right {
  right: 73px;
}

.map-links {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
}

.map-links path {
  fill: none;
  stroke: rgba(108, 75, 50, 0.34);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 0;
  animation: map-flow 7s linear infinite;
}

.room-btn,
.room-action-btn {
  position: absolute;
  width: 132px;
  min-height: 72px;
  border-radius: 14px;
  padding: 9px 10px;
  border: 1px solid rgba(93, 63, 39, 0.34);
  font: inherit;
  font-size: 0.8rem;
  color: #2e2017;
  text-align: left;
  background: linear-gradient(180deg, #d6b08b, #b98f67);
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(90, 50, 28, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.36);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
  overflow: hidden;
}

.room-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid rgba(104, 72, 44, 0.2);
  border-radius: inherit;
  pointer-events: none;
}

.room-btn::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 8px;
  opacity: 0.45;
  pointer-events: none;
}

.room-action-btn {
  position: static;
  width: auto;
  min-height: 0;
  font-size: 0.9rem;
  color: #fffaf5;
  border: 0;
  background: linear-gradient(180deg, #996045, #6f3e29);
}

.room-btn.is-active {
  background: linear-gradient(180deg, #5e7d43, #435b31);
  color: #f7efe4;
  box-shadow: 0 10px 18px rgba(67, 91, 49, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-2px) scale(1.03);
}

.room-btn:hover {
  transform: translateY(-2px) scale(1.03);
  filter: saturate(1.06);
}

.room-kitchen {
  top: 10px;
  left: 10px;
  background:
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.3), transparent 46%),
    linear-gradient(180deg, #e4c6a7, #c89f77);
}

.room-kitchen::after {
  background:
    linear-gradient(90deg, rgba(148, 107, 73, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148, 107, 73, 0.16) 1px, transparent 1px);
  background-size: 11px 11px;
}

.room-living {
  top: 10px;
  right: 10px;
  background:
    radial-gradient(circle at 20% 76%, rgba(255, 255, 255, 0.28), transparent 44%),
    linear-gradient(180deg, #dbc7b4, #b8a086);
}

.room-living::after {
  background:
    radial-gradient(circle at 46% 58%, rgba(144, 96, 71, 0.3) 0 32%, rgba(144, 96, 71, 0) 34%),
    linear-gradient(180deg, rgba(113, 77, 56, 0.1), rgba(113, 77, 56, 0.04));
}

.room-bedroom {
  bottom: 10px;
  left: 10px;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.3), transparent 43%),
    linear-gradient(180deg, #d7ccb7, #bba88c);
}

.room-bedroom::after {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(132, 113, 95, 0.12) 0,
      rgba(132, 113, 95, 0.12) 6px,
      rgba(132, 113, 95, 0.02) 6px,
      rgba(132, 113, 95, 0.02) 12px
    );
}

.room-bathroom {
  bottom: 10px;
  right: 10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 42%),
    linear-gradient(180deg, #c4d6da, #98b0b6);
}

.room-bathroom::after {
  background:
    linear-gradient(90deg, rgba(94, 126, 136, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(94, 126, 136, 0.18) 1px, transparent 1px);
  background-size: 9px 9px;
}

.room-icon {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
}

.room-label {
  display: block;
  margin-top: 2px;
  font-size: 0.92rem;
  font-weight: 700;
}

.room-furniture {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 46px;
  height: 28px;
}

.furniture {
  position: absolute;
  display: block;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.f-counter {
  width: 28px;
  height: 8px;
  left: 0;
  top: 0;
  background: #a56f49;
}

.f-bowl {
  width: 10px;
  height: 10px;
  right: 2px;
  top: 10px;
  border-radius: 50%;
  background: #d5cfc4;
}

.f-sofa {
  width: 30px;
  height: 10px;
  left: 0;
  top: 5px;
  background: #8e624b;
}

.f-tv {
  width: 12px;
  height: 8px;
  right: 1px;
  top: 17px;
  background: #43474c;
}

.f-bed {
  width: 30px;
  height: 12px;
  left: 0;
  top: 8px;
  background: #c8b9a2;
}

.f-lamp {
  width: 8px;
  height: 8px;
  right: 2px;
  top: 2px;
  border-radius: 50%;
  background: #efe4c8;
}

.f-sink {
  width: 13px;
  height: 9px;
  left: 0;
  top: 6px;
  background: #d0dde0;
}

.f-tub {
  width: 24px;
  height: 10px;
  right: 0;
  top: 15px;
  border-radius: 7px;
  background: #dce8ea;
}

.house-map[data-active-room="kitchen"] {
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -8px 22px rgba(170, 112, 54, 0.22);
}

.house-map[data-active-room="living"] {
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -8px 22px rgba(111, 86, 64, 0.2);
}

.house-map[data-active-room="bedroom"] {
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -8px 22px rgba(95, 100, 117, 0.2);
}

.house-map[data-active-room="bathroom"] {
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -8px 22px rgba(74, 128, 145, 0.22);
}

.cat-marker {
  position: absolute;
  width: 24px;
  height: 18px;
  border-radius: 55% 55% 48% 48%;
  background: linear-gradient(180deg, #edb071, #bf6c38);
  box-shadow:
    0 0 0 3px rgba(207, 110, 63, 0.18),
    0 0 12px rgba(207, 110, 63, 0.36);
  transform: translate(-50%, -50%);
  transition: left 420ms cubic-bezier(0.25, 1, 0.3, 1), top 420ms cubic-bezier(0.25, 1, 0.3, 1);
  animation: marker-bob 1.4s ease-in-out infinite;
  pointer-events: none;
}

.cat-marker::before,
.cat-marker::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: -3px;
  background: #bf6c38;
  border-radius: 2px 2px 0 0;
}

.cat-marker::before {
  left: 3px;
  transform: rotate(-32deg);
}

.cat-marker::after {
  right: 3px;
  transform: rotate(32deg);
}

.cat-marker.is-walking {
  animation: marker-walk 260ms ease-in-out infinite;
}

.house-map.is-traveling .map-links path {
  stroke: rgba(83, 126, 72, 0.38);
  animation-duration: 2s;
}

.house-map.is-traveling .cat-marker {
  box-shadow:
    0 0 0 3px rgba(103, 159, 85, 0.25),
    0 0 14px rgba(103, 159, 85, 0.48);
}

.facts {
  padding: 18px;
  border-radius: 24px;
  background: rgba(96, 119, 68, 0.12);
}

.facts strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.facts ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

#objective-list li {
  transition: color 140ms ease, opacity 140ms ease;
}

#objective-list li.done {
  color: rgba(36, 22, 15, 0.55);
  text-decoration: line-through;
}

.mood-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(36, 22, 15, 0.08);
  font-size: 0.95rem;
}

.cat.is-sleepy .eye {
  height: 6px;
  border-radius: 999px;
  transform: translateY(12px);
}

.cat.is-sleepy .mouth {
  transform: translateY(3px) scaleX(0.92);
}

.cat.is-chaos {
  animation-duration: 1s;
}

.cat.is-chaos .eye.left {
  transform: translate(-6px, -4px) scale(1.06);
}

.cat.is-chaos .eye.right {
  transform: translate(8px, 2px) scale(0.92);
}

.cat.is-chaos .mouth {
  border-radius: 0 0 20px 20px;
  transform: scaleX(1.08);
}

.cat.is-royal .head,
.cat.is-royal .body {
  background: #e7b06e;
}

.cat.is-royal .tail,
.cat.is-royal .ear {
  background: #bf6c38;
}

.cat.is-royal .mouth {
  transform: translateY(-1px) scaleX(0.9);
}

.cat.is-frenzy {
  animation-duration: 0.9s;
}

.stat strong.pulse {
  animation: score-pop 220ms ease;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes wag {
  0%,
  100% {
    transform: rotate(28deg);
  }

  50% {
    transform: rotate(44deg);
  }
}

@keyframes score-pop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.24);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes map-flow {
  to {
    stroke-dashoffset: -170;
  }
}

@keyframes marker-bob {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-2px);
  }
}

@keyframes marker-walk {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-2deg) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-1px) rotate(2deg) scale(1.04);
  }
}

@keyframes laser-pop {
  0% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1.08);
  }
}

@media (max-width: 860px) {
  .wrap {
    grid-template-columns: 1fr;
  }

  .hero,
  .panel {
    padding: 28px;
  }

  .cat-stage {
    min-height: 280px;
  }
}

@media (max-width: 560px) {
  .controls {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3.4rem;
  }

  .hero,
  .panel {
    padding: 22px;
  }
}
