body {
  margin: 0;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  color: #7a2d82;
  background: linear-gradient(#ffe8fb, #dff8ff, #fff1c9);
  min-height: 100vh;
  overflow-x: hidden;
}

.sky {
  min-height: 100vh;
  position: relative;
  padding: 12px;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.8) 0 35px, transparent 36px),
    radial-gradient(circle at 80% 15%, rgba(255,255,255,.8) 0 45px, transparent 46px),
    radial-gradient(circle at 40% 70%, rgba(255,255,255,.65) 0 50px, transparent 51px);
}

.top-marquee, footer marquee {
  background: #ffd4f2;
  border: 4px ridge #ff91d8;
  padding: 8px;
  color: #9b2fae;
  font-size: 20px;
  font-weight: bold;
}

.clubhouse {
  max-width: 850px;
  margin: 28px auto;
  padding: 25px;
  text-align: center;
  border: 8px ridge #ff99df;
  border-radius: 28px;
  background: rgba(255, 246, 253, 0.92);
  box-shadow: 0 0 25px #ffb6ea, inset 0 0 22px white;
}

.paint-house {
  max-width: 980px;
}

.sparkles {
  font-size: 34px;
  animation: twinkle 1.2s infinite alternate;
}

h1 {
  font-size: 62px;
  margin: 4px 0;
  color: #ff63c7;
  text-shadow: 3px 3px #fff, 5px 5px #b9f4ff;
}

h2 {
  margin-top: 0;
  font-size: 34px;
  color: #9b6bff;
  text-shadow: 2px 2px white;
}

.welcome {
  font-size: 24px;
  background: #fff9c9;
  display: inline-block;
  padding: 10px 20px;
  border: 3px dashed #ffb3e6;
  border-radius: 18px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 25px auto;
}

.small-grid {
  max-width: 260px;
}

button,
.button-link {
  font-family: inherit;
  font-size: 20px;
  padding: 16px 12px;
  border-radius: 20px;
  border: 4px outset #ffb6ea;
  color: #7a2d82;
  background: linear-gradient(#fff, #ffd4f2, #dff8ff);
  cursor: pointer;
  box-shadow: 3px 3px 0 #d89cff;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.button-link:hover {
  transform: scale(1.05);
  background: linear-gradient(#fffbd8, #ffd4f2, #e4d7ff);
}

button:active {
  border-style: inset;
  transform: scale(.98);
}

#magic-box {
  min-height: 80px;
  margin: 20px auto;
  padding: 15px;
  border: 5px groove #c2f2ff;
  border-radius: 20px;
  background: #ffffff;
  font-size: 24px;
}

#sticker-area {
  min-height: 85px;
  margin: 20px auto;
  padding: 12px;
  border: 4px dotted #ff99df;
  border-radius: 16px;
  background: #fff7fd;
}

.tiny-title {
  margin: 0 0 8px;
  font-size: 18px;
  color: #b94fc7;
}

.sticker {
  font-size: 34px;
  display: inline-block;
  margin: 6px;
  animation: pop .35s ease-out;
}

.retro-row {
  font-size: 38px;
  margin-top: 20px;
  letter-spacing: 8px;
}

.counter {
  margin: 22px auto 8px;
  display: inline-block;
  padding: 8px 14px;
  background: black;
  color: #00ff66;
  font-family: monospace;
  border: 4px inset #ccc;
  font-size: 18px;
}

.parent-note {
  font-size: 16px;
  color: #9a5aa8;
}

.cloud {
  position: fixed;
  font-size: 72px;
  opacity: .8;
  pointer-events: none;
  animation: float 8s ease-in-out infinite alternate;
}

.cloud1 { left: 4%; top: 16%; }
.cloud2 { right: 6%; top: 28%; animation-delay: 1s; }
.cloud3 { left: 10%; bottom: 10%; animation-delay: 2s; }

.floating-sparkle {
  position: fixed;
  font-size: 32px;
  pointer-events: none;
  animation: sparkleFloat 2.5s ease-out forwards;
}

.dance {
  font-size: 30px;
  animation: bounce .4s infinite alternate;
}

.party-mode {
  animation: rainbowFlash 1s infinite;
}

.paint-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  background: #fff7fd;
  border: 4px dotted #ff99df;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}

.paint-toolbar button {
  font-size: 16px;
  padding: 10px;
}

.size-label {
  font-size: 18px;
  padding: 8px;
  background: #fff9c9;
  border: 3px dashed #ffb3e6;
  border-radius: 14px;
}

.paint-help {
  font-size: 18px;
  background: #ffffff;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 14px;
  border: 3px groove #c2f2ff;
}

#paint-canvas {
  width: 100%;
  max-width: 800px;
  height: auto;
  background: white;
  border: 8px ridge #ff99df;
  border-radius: 12px;
  cursor: crosshair;
  touch-action: none;
  box-shadow: 0 0 18px #ffb6ea;
}

@keyframes twinkle {
  from { opacity: .4; transform: scale(.95); }
  to { opacity: 1; transform: scale(1.08); }
}

@keyframes pop {
  from { transform: scale(.1) rotate(-20deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(18px); }
}

@keyframes sparkleFloat {
  from { transform: translateY(0) scale(.8); opacity: 1; }
  to { transform: translateY(-80px) scale(1.5); opacity: 0; }
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

@keyframes rainbowFlash {
  0% { background: #ffe8fb; }
  25% { background: #dff8ff; }
  50% { background: #fff1c9; }
  75% { background: #e7d7ff; }
  100% { background: #ffe8fb; }
}

@media (max-width: 600px) {
  h1 { font-size: 42px; }
  h2 { font-size: 26px; }
  .welcome, #magic-box { font-size: 20px; }
  .cloud { font-size: 44px; }
  .paint-toolbar button { font-size: 14px; }
}
