:root {
  --bg1: #fff4d8;
  --bg2: #ffd7a8;
  --accent: #ff9f1c;
  --accent-dark: #b66700;
  --cat: #ffbd66;
  --cat-dark: #e5962b;
  --cat-light: #ffe0ae;
  --ink: #4a2d12;
  --shadow: rgba(77, 41, 10, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.55), transparent 30%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow: hidden;
  cursor: crosshair;
}

.sky {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.3), transparent 20%),
    radial-gradient(circle at 80% 15%, rgba(255,255,255,0.35), transparent 18%),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,0.25), transparent 12%);
  pointer-events: none;
}

.hud {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
}

.brand,
.stats,
.hint {
  background: rgba(255, 252, 245, 0.88);
  border: 2px solid rgba(74, 45, 18, 0.08);
  box-shadow: 0 10px 30px rgba(74, 45, 18, 0.08);
  border-radius: 999px;
  padding: 12px 16px;
  backdrop-filter: blur(10px);
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
}

.stats {
  display: flex;
  gap: 16px;
  font-weight: 700;
}

.hint {
  width: min(720px, 100%);
  border-radius: 22px;
  line-height: 1.35;
}

.playground {
  position: relative;
  width: 100vw;
  height: 100vh;
  isolation: isolate;
}

.cursor-ring {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 3px dashed rgba(182, 103, 0, 0.65);
  border-radius: 50%;
  pointer-events: none;
  z-index: 25;
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear;
}

.cat {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: 440px;
  height: 420px;
  transform: translateX(-50%);
  filter: drop-shadow(0 28px 28px var(--shadow));
}

.cat.excited {
  animation: bounce 0.36s ease;
}

.body {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 340px;
  height: 250px;
  transform: translateX(-50%);
  background: var(--cat);
  border: 5px solid var(--ink);
  border-radius: 50% 50% 44% 44%;
}

.belly {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 200px;
  height: 140px;
  transform: translateX(-50%);
  background: var(--cat-light);
  border: 5px solid var(--ink);
  border-radius: 50%;
}

.head {
  position: absolute;
  left: 50%;
  top: 36px;
  width: 250px;
  height: 210px;
  transform: translateX(-50%);
  background: var(--cat);
  border: 5px solid var(--ink);
  border-radius: 48% 48% 46% 46%;
  z-index: 5;
}

.ear {
  position: absolute;
  top: 14px;
  width: 80px;
  height: 90px;
  background: var(--cat);
  border: 5px solid var(--ink);
  border-radius: 20px 20px 8px 8px;
  z-index: 1;
}

.ear::before {
  content: "";
  position: absolute;
  inset: 18px;
  background: #ffc0c0;
  border-radius: 12px;
}

.ear-left {
  left: 82px;
  transform: rotate(-24deg);
}

.ear-right {
  right: 82px;
  transform: rotate(24deg);
}

.eye {
  position: absolute;
  top: 72px;
  width: 22px;
  height: 34px;
  background: var(--ink);
  border-radius: 50%;
}

.eye-left {
  left: 64px;
}

.eye-right {
  right: 64px;
}

.blush {
  position: absolute;
  top: 100px;
  width: 34px;
  height: 18px;
  background: rgba(255, 130, 130, 0.45);
  border-radius: 50%;
}

.blush-left {
  left: 34px;
}

.blush-right {
  right: 34px;
}

.nose {
  position: absolute;
  left: 50%;
  top: 104px;
  width: 28px;
  height: 18px;
  transform: translateX(-50%);
  background: #ff8d8d;
  border: 4px solid var(--ink);
  border-radius: 45% 45% 60% 60%;
}

.mouth-target {
  position: absolute;
  left: 50%;
  top: 138px;
  width: 70px;
  height: 42px;
  transform: translateX(-50%);
  background: #80461b;
  border: 5px solid var(--ink);
  border-radius: 0 0 40px 40px;
  overflow: hidden;
}

.mouth-target::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 42px;
  height: 24px;
  transform: translateX(-50%);
  background: #ff6f91;
  border-radius: 50%;
}

.whiskers {
  position: absolute;
  top: 132px;
  width: 78px;
  height: 2px;
  background: var(--ink);
}

.whiskers::before,
.whiskers::after {
  content: "";
  position: absolute;
  left: 0;
  width: 78px;
  height: 2px;
  background: var(--ink);
}

.whiskers::before {
  top: -14px;
}

.whiskers::after {
  top: 14px;
}

.whiskers-left {
  left: -42px;
  transform: rotate(8deg);
}

.whiskers-right {
  right: -42px;
  transform: rotate(-8deg);
}

.paw {
  position: absolute;
  bottom: 38px;
  width: 82px;
  height: 100px;
  background: var(--cat);
  border: 5px solid var(--ink);
  border-radius: 46px;
  z-index: 2;
}

.paw-left {
  left: 84px;
  transform: rotate(14deg);
}

.paw-right {
  right: 84px;
  transform: rotate(-14deg);
}

.tail {
  position: absolute;
  right: 24px;
  bottom: 92px;
  width: 120px;
  height: 34px;
  background: var(--cat-dark);
  border: 5px solid var(--ink);
  border-radius: 999px;
  transform: rotate(24deg);
  transform-origin: left center;
  z-index: 0;
}

.message {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(255, 251, 242, 0.92);
  border: 2px solid rgba(74, 45, 18, 0.08);
  box-shadow: 0 12px 32px rgba(74, 45, 18, 0.12);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  z-index: 40;
}

.donut {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffcf86, #e5973e);
  border: 4px solid var(--ink);
  box-shadow: 0 10px 18px rgba(74, 45, 18, 0.18);
  z-index: 20;
}

.donut::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #ff7fa4;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: rgba(255, 248, 240, 0.95);
}

.sparkle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 188, 53, 0.9);
  pointer-events: none;
  animation: poof 0.45s ease forwards;
  z-index: 50;
}

@keyframes poof {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.4);
  }
}

@keyframes bounce {
  0% { transform: translateX(-50%) scale(1); }
  35% { transform: translateX(-50%) scale(1.05, 0.96); }
  70% { transform: translateX(-50%) scale(0.98, 1.03); }
  100% { transform: translateX(-50%) scale(1); }
}

@media (max-width: 900px) {
  .cat {
    width: 340px;
    height: 350px;
  }

  .body {
    width: 260px;
    height: 200px;
  }

  .head {
    width: 210px;
    height: 180px;
    top: 54px;
  }

  .belly {
    width: 160px;
    height: 110px;
  }

  .paw {
    width: 64px;
    height: 82px;
    bottom: 32px;
  }

  .message {
    bottom: 12px;
    width: calc(100% - 24px);
    text-align: center;
    border-radius: 20px;
  }
}
