@font-face {
  font-family: 'Comic Neue';
  src: url('../../paws-and-ladders/fonts/ComicNeue-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Comic Neue';
  src: url('../../paws-and-ladders/fonts/ComicNeue-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink: #f8c8dc;
  --lavender: #c8b8e8;
  --mint: #b8e8c8;
  --peach: #f8d8b8;
  --sky: #b8d8f8;
  --cream: #fdf6ec;
  --text: #4a3728;
  --accent: #c8b8e8;
  --accent-dark: #6b2bd9;
}

html, body { min-height: 100vh; }
body {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
  background: var(--cream);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.app-shell { width: 100%; max-width: 640px; text-align: center; }

.screen { display: none; }
body[data-screen="welcome"] .screen-welcome,
body[data-screen="paint"]   .screen-paint,
body[data-screen="mirror"]  .screen-mirror { display: block; }

h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.tagline { font-size: 1.1rem; margin-bottom: 2rem; }

.big-btn, .small-btn {
  font-family: inherit;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.big-btn {
  font-size: 1.2rem;
  padding: 0.9rem 1.6rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15);
  margin-top: 1rem;
}
.big-btn:hover { transform: translateY(-1px); }
.big-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.15); }
.small-btn {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  background: white;
  color: var(--text);
  box-shadow: 0 2px 0 rgba(0,0,0,0.12);
  margin: 0 0.3rem;
}
.small-btn:hover { transform: translateY(-1px); }

#paint-canvas {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  background: white;
  border: 4px solid var(--accent);
  border-radius: 14px;
  touch-action: none;
  display: block;
  margin: 0 auto 1rem;
  cursor: crosshair;
}

.palette {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  padding: 0;
}
.swatch.selected { border-color: var(--accent-dark); transform: scale(1.1); }

.brushes {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.brush {
  background: white;
  border: 3px solid #ddd;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.brush span {
  display: inline-block;
  background: var(--text);
  border-radius: 50%;
}
.brush.selected { border-color: var(--accent-dark); }

.paint-actions { margin-bottom: 0.6rem; }

.paint-hint {
  color: var(--accent-dark);
  font-weight: 700;
  margin-top: 0.4rem;
}

.cat-stage {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 1rem;
}
.cat-stage svg {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: grayscale(100%);
}
.cat-stage svg.reveal-stage-silhouette { opacity: 1; }
.cat-stage svg.reveal-stage-color {
  filter: grayscale(0%);
  transition: filter 0.5s ease;
}
.cat-stage svg.reveal-stage-face { transform: scale(1); }

.mood-label {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mood-message {
  font-size: 1.05rem;
  min-height: 2.4em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.mood-label.reveal-text-shown,
.mood-message.reveal-text-shown { opacity: 1; transform: translateY(0); }

.mirror-actions { margin-top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  .cat-stage svg, .mood-label, .mood-message { transition: none; }
}
