/* The page's own styles, kept out of index.html (the site's CSP). */
html, body {
  margin: 0;
  height: 100%;
  background: #BFE6FA;
  overflow: hidden;
  /* No iOS callout or text selection on a long hold (Peek). */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#splash {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: radial-gradient(ellipse at 50% 35%, #FFF9EE 0%, #BFE6FA 55%, #7CC8F2 100%);
}
#splash img {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: 0 12px 32px rgba(90, 52, 21, 0.35);
  animation: bob 1.6s ease-in-out infinite;
}
#splash .dots { display: flex; gap: 10px; }
#splash .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FF7FA8;
  opacity: 0.35;
  animation: blink 1.2s ease-in-out infinite;
}
#splash .dots span:nth-child(2) { animation-delay: 0.2s; }
#splash .dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}
@keyframes blink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #splash img, #splash .dots span { animation: none; }
}
#tap-to-start {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  padding: 0;
  font: inherit;
  color: #3A2618;
  background: rgba(58, 38, 24, 0.35);
  cursor: pointer;
}
#tap-to-start[hidden] { display: none; }
#tap-to-start .balloon {
  width: 92px;
  height: 108px;
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  background: radial-gradient(circle at 35% 30%, #FFC2D2 0%, #FF5A5F 45%, #D13A45 100%);
  box-shadow: 0 10px 24px rgba(90, 52, 21, 0.35);
  animation: bob 1.6s ease-in-out infinite;
}
#tap-to-start .balloon { position: relative; }
#tap-to-start .balloon::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 14px;
  height: 11px;
  transform: translateX(-50%);
  background: #D13A45;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
#tap-to-start .label {
  padding: 12px 28px;
  border-radius: 999px;
  background: #FFF6E6;
  box-shadow: 0 4px 0 #D9C4A3, 0 10px 24px rgba(90, 52, 21, 0.3);
  font-family: 'Lilita One', 'Arial Rounded MT Bold', sans-serif;
  font-size: 30px;
}
#tap-to-start .hint {
  font-family: sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #FFF6E6;
}
#tap-to-start.waiting .label { opacity: 0.7; }
@media (prefers-reduced-motion: reduce) {
  #tap-to-start .balloon { animation: none; }
}
noscript p {
  margin-top: 40vh;
  text-align: center;
  color: #3A2618;
  font-family: sans-serif;
}
