:root {
  --ink: #3d2a55;
  --muted: #6d5a82;
  --pink: #ff8ec7;
  --lilac: #b48cff;
  --cream: #fff7fb;
  --glass: rgba(255, 255, 255, 0.62);
  --shadow: 0 18px 40px rgba(180, 120, 190, 0.28);
}

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

html, body { min-height: 100%; }

body {
  font-family: "Quicksand", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f3e8ff 0%, #ffe8f4 42%, #fff6ea 100%);
  overflow-x: hidden;
}

h1, h2, h3, .logo-text, .jelly {
  font-family: "Comfortaa", cursive;
}

.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.moon {
  position: absolute;
  top: 48px;
  right: 8%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #ffe9c8 55%, #ffd0ea);
  box-shadow: 0 0 60px rgba(255, 220, 240, 0.9);
  animation: pulse 6s ease-in-out infinite;
}

.star {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 2.8s ease-in-out infinite;
}

.petal {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 14px;
  background: #ffb7d5;
  border-radius: 80% 0 80% 0;
  opacity: 0.7;
  animation: fall linear infinite;
}

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4vw 18px 7vw;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.logo-mark img, .logo-mark svg { width: 100%; height: 100%; object-fit: cover; display: block; }

.logo-text { font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; }

nav { display: flex; gap: 16px; flex-shrink: 0; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
nav a:hover { color: var(--pink); }

main { position: relative; z-index: 1; padding: 10px 7vw 80px; }

.panel { display: none; animation: rise 0.55s ease; }
.panel.show { display: block; }

.hero-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  min-height: 68vh;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.8);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #8a5ab8;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

h1 { font-size: clamp(2.2rem, 5vw, 4.1rem); line-height: 1.12; margin-bottom: 16px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 10px; }
em { font-style: normal; background: linear-gradient(90deg, #ff7ec8, #9b7dff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; line-height: 1.6; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 12px; }

.jelly {
  border: 0;
  cursor: pointer;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.jelly:hover { transform: translateY(-3px) scale(1.03); }
.jelly:active { transform: scale(0.96); }

.play {
  color: #fff;
  background: linear-gradient(180deg, #ffb3dc 0%, #ff7ec8 55%, #e56bff 100%);
  box-shadow: 0 10px 0 #d45aa8, 0 18px 28px rgba(255, 120, 190, 0.35);
  animation: bounce 2.4s ease-in-out infinite;
}

.ghost {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 0 #e9d7ff, 0 14px 24px rgba(180, 140, 220, 0.22);
}

.hint { color: #9a7ab0; font-size: 0.92rem; }

.mascot-wrap { position: relative; display: grid; place-items: center; }
.glow {
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,180,230,0.55), transparent 70%);
  filter: blur(12px);
  animation: pulse 4s ease-in-out infinite;
}
.mascot {
  position: relative;
  width: min(420px, 90%);
  border-radius: 36px;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  animation: float 5s ease-in-out infinite;
}

.float-chip {
  position: absolute;
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: float 3.6s ease-in-out infinite;
}
.chip-a { top: 12%; left: 4%; }
.chip-b { bottom: 16%; right: 2%; animation-delay: -1.4s; }

.world { margin-top: 70px; }
.world-banner {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.world-banner img { width: 100%; height: 320px; object-fit: cover; display: block; }
.world-caption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: 20px;
  max-width: 420px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.cards article {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.cards span { font-size: 1.6rem; }
.cards h3 { margin: 10px 0 6px; }
.cards p { color: var(--muted); }

.select-head { text-align: center; margin: 20px auto 28px; max-width: 640px; }
.select-head .lead, .select-head p { color: var(--muted); }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.hero-card {
  border: 0;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  padding-bottom: 16px;
}
.hero-card:hover { transform: translateY(-8px) rotate(-0.6deg); }
.hero-card img { width: 100%; height: 280px; object-fit: cover; display: block; }
.hero-card h3 { padding: 14px 16px 0; }
.hero-card p { padding: 4px 16px 0; color: var(--muted); font-weight: 700; }
.tag {
  display: inline-block;
  margin: 10px 16px 0;
  background: var(--tint, #ffe6f4);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.dl-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 860px;
  margin: 40px auto;
}
.dl-art img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 24px;
}
.bar {
  height: 16px;
  background: #f3e8ff;
  border-radius: 999px;
  overflow: hidden;
  margin: 22px 0 10px;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9ad4, #b48cff);
  transition: width 0.2s linear;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 10px 20px 30px;
  color: #9a7ab0;
  font-weight: 700;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.04); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.2); }
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(360deg); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-row, .dl-card, .cards, .hero-grid { grid-template-columns: 1fr; }
  .hero-row { min-height: unset; }
  nav { display: none; }
  .world-banner img { height: 220px; }
  .hero-card img { height: 340px; }
}
