:root {
  --bg: #0f1226;
  --fg: #e6e7ff;
  --accent: #8ea6ff;
  --accent-2: #9ef0ff;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: radial-gradient(1200px 800px at 50% 20%, #1a1f3a 0%, var(--bg) 60%);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 40px 16px 56px;
  text-align: center;
}

h1 {
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(158, 240, 255, 0.25);
}

.hint {
  margin: 12px 0 0;
  opacity: 0.85;
}

.scene {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 24px auto 0;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(142,166,255,0.15), rgba(158,240,255,0.10));
  box-shadow:
    inset 0 0 40px rgba(142,166,255,0.10),
    0 12px 30px rgba(0,0,0,0.35);
  overflow: hidden;
}

/* Stars */
.star {
  position: absolute;
  background: radial-gradient(circle, #ffffff 0%, #ffffff 50%, transparent 51%);
  filter: drop-shadow(0 0 6px #b7f0ff);
  border-radius: 50%;
  opacity: 0.9;
  animation: twinkle 2.8s infinite ease-in-out;
}
.star-a { width: 4px; height: 4px; top: 40px; left: 36px; animation-delay: 0.2s; }
.star-b { width: 3px; height: 3px; top: 96px; right: 48px; animation-delay: 0.8s; }
.star-c { width: 5px; height: 5px; bottom: 36px; left: 88px; animation-delay: 1.4s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50%      { opacity: 1;    transform: scale(1.1); }
}

/* Mascot (emoji) */
.mascot {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  filter: drop-shadow(0 10px 30px rgba(158,240,255,0.35));
  animation:
    floaty 3.4s ease-in-out infinite,
    blink 5s linear infinite;
  will-change: transform, filter;
}

@keyframes floaty {
  0%   { transform: translate(-50%, -52%) rotate(-2deg); }
  50%  { transform: translate(-50%, -48%) rotate(2deg); }
  100% { transform: translate(-50%, -52%) rotate(-2deg); }
}

/* cheeky “blink”: tiny scale flash */
@keyframes blink {
  0%, 96%, 100% { filter: drop-shadow(0 10px 30px rgba(158,240,255,0.35)); }
  97%          { filter: drop-shadow(0 10px 12px rgba(158,240,255,0.20)); }
  98%          { filter: drop-shadow(0 10px 40px rgba(158,240,255,0.55)); }
  99%          { filter: drop-shadow(0 10px 25px rgba(158,240,255,0.40)); }
}

/* Ground shadow */
.shadow {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 120px;
  height: 18px;
  background: radial-gradient(60px 10px at 50% 50%, rgba(0,0,0,0.5), transparent 70%);
  filter: blur(4px);
  animation: bobShadow 3.4s ease-in-out infinite;
}
@keyframes bobShadow {
  0%, 100% { transform: translateX(-50%) scaleX(0.9); opacity: 0.75; }
  50%      { transform: translateX(-50%) scaleX(1.05); opacity: 0.55; }
}
