:root {
  --bg-top: #ffd6ec;
  --bg-mid: #fff2cc;
  --bg-bot: #d4f5ff;
  --ink: #4a2e4b;
  --pink: #ff6fa8;
  --pink-dark: #e64989;
  --cream: #fff9f2;
  --card-bg: rgba(255, 255, 255, 0.78);
  --shadow: 0 12px 30px rgba(74, 46, 75, 0.14);
}
* { box-sizing: border-box; user-select: none; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden;
  font-family: "Fredoka", "Nunito", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-bot) 100%);
}
.sky-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.cloud { position: absolute; background: rgba(255,255,255,0.65); border-radius: 999px; filter: blur(1px); animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud-1 { width: 170px; height: 56px; top: 12%; left: -200px; animation-duration: 34s; }
.cloud-1::before { width: 72px; height: 72px; top: -32px; left: 26px; }
.cloud-1::after { width: 54px; height: 54px; top: -22px; right: 26px; }
.cloud-2 { width: 220px; height: 68px; top: 28%; left: -260px; opacity: 0.55; animation-duration: 46s; animation-delay: -18s; }
.cloud-2::before { width: 90px; height: 90px; top: -42px; left: 36px; }
.cloud-2::after { width: 68px; height: 68px; top: -28px; right: 34px; }
.cloud-3 { width: 140px; height: 46px; top: 62%; left: -180px; opacity: 0.5; animation-duration: 39s; animation-delay: -9s; }
.cloud-3::before { width: 60px; height: 60px; top: -26px; left: 20px; }
.cloud-3::after { width: 44px; height: 44px; top: -18px; right: 22px; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 340px)); } }
.stage { position: fixed; inset: 0; z-index: 1; overflow: hidden; }
.hud-top { position: fixed; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; z-index: 10; pointer-events: none; }
.brand-pill, .boop-pill {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border-radius: 999px; background: var(--card-bg); backdrop-filter: blur(10px);
  box-shadow: var(--shadow); font-size: 1.05rem; font-weight: 600; border: 2px solid rgba(255,255,255,0.9);
}
.brand-name { letter-spacing: 0.02em; }
.hud-bottom {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 10;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 26px; background: var(--card-bg); backdrop-filter: blur(12px);
  box-shadow: var(--shadow); border: 2px solid rgba(255,255,255,0.92); max-width: calc(100vw - 24px);
}
.btn {
  appearance: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 999px; font-family: inherit; font-size: 0.96rem; font-weight: 600;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.94); }
.btn-primary { background: linear-gradient(135deg, var(--pink), #ff8ec0); color: #fff; box-shadow: 0 6px 16px rgba(255,111,168,0.35); }
.btn-secondary { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(74,46,75,0.1); }
.volume-control { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #fff; border-radius: 999px; box-shadow: 0 4px 12px rgba(74,46,75,0.08); }
.volume-control input[type="range"] { width: 76px; accent-color: var(--pink); cursor: pointer; }
.cat-wrapper { position: absolute; top: 0; left: 0; will-change: transform; cursor: pointer; z-index: 3; }
.cat-sprite { display: block; width: 150px; height: auto; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(74,46,75,0.24)); transform-origin: center bottom; }
.cat-pop-in { animation: popOut 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes popOut {
  0% { opacity: 0; transform: scale(0.05) rotate(-25deg); }
  65% { opacity: 1; transform: scale(1.16) rotate(6deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.particle { position: absolute; pointer-events: none; font-size: 1.4rem; z-index: 4; animation: floatUp 0.95s ease-out forwards; }
@keyframes floatUp {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 70px)) scale(1.25) rotate(22deg); }
}
.start-overlay {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
  background: rgba(255,224,240,0.55); backdrop-filter: blur(10px);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.start-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.start-card {
  width: min(90vw, 370px); padding: 28px 24px; border-radius: 30px;
  background: rgba(255,255,255,0.92); box-shadow: 0 22px 50px rgba(74,46,75,0.18);
  text-align: center; border: 3px solid #fff;
}
.start-preview { margin-bottom: 10px; }
.preview-cat { width: 112px; height: auto; filter: drop-shadow(0 10px 14px rgba(74,46,75,0.2)); animation: idleBob 1.8s ease-in-out infinite; }
@keyframes idleBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.start-card h1 { margin: 4px 0 8px; font-size: 2rem; }
.start-card p { margin: 0 0 20px; font-family: "Nunito", system-ui, sans-serif; font-size: 1rem; opacity: 0.85; }
.btn-start { width: 100%; justify-content: center; padding: 14px 20px; font-size: 1.1rem; background: linear-gradient(135deg, var(--pink), #ff95c5); color: #fff; box-shadow: 0 10px 24px rgba(255,111,168,0.42); }
@media (max-width: 560px) {
  .cat-sprite { width: 115px; }
  .hud-bottom { gap: 8px; padding: 8px 10px; }
  .btn { padding: 8px 12px; font-size: 0.88rem; }
}