/* Bumbeebum: sunny yellow and royal purple, with rounded everything. */
:root {
  --sun: #ffc93c;
  --sun-deep: #ffab00;
  --sun-soft: #fff1c2;
  --purple: #6d3fd1;
  --purple-deep: #4a2499;
  --ink: #2d1466;
  --ink-soft: #5d4a8a;
  --lilac: #efe8ff;
  --cream: #fffaf0;
  --paper: #ffffff;
  --night: #1b1450;
  --radius: 30px;
  font-family: ui-rounded, "Arial Rounded MT Bold", "Nunito", "Varela Round",
    system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: var(--purple); }
.wrap { width: min(1100px, 100% - 40px); margin-inline: auto; position: relative; }

/* ---------- The sky: a purple band that holds the header and hero ---------- */
.sky {
  position: relative;
  background: radial-gradient(120% 90% at 80% 0%, #8a5cf0 0%, var(--purple) 45%, var(--purple-deep) 100%);
  color: #fff;
  padding-bottom: 90px;
  overflow: hidden;
}
.sky.night { background: radial-gradient(120% 90% at 75% 0%, #5a3cc4 0%, #2b1f7a 45%, var(--night) 100%); }
.sky.small { padding-bottom: 110px; }

.star {
  position: absolute;
  color: var(--sun);
  pointer-events: none;
  animation: twinkle 3s ease-in-out infinite;
  text-shadow: 0 0 12px rgba(255, 201, 60, 0.7);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(20deg); }
}

.cloud {
  position: absolute;
  width: 200px;
  fill: rgba(255, 255, 255, 0.14);
  animation: drift 45s linear infinite;
  pointer-events: none;
}
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(120vw); } }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; display: block; }
.wave.up { bottom: auto; top: -69px; }

/* ---------- Header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 8px 22px 8px 12px;
  background: var(--paper);
  border-radius: 999px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.16);
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.brand img.bee { width: 52px; height: 52px; transition: transform 0.3s; }
.brand:hover img.bee { transform: rotate(-14deg) scale(1.12); }
.brand img.word { height: 38px; width: auto; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s, transform 0.15s;
}
.top nav a:hover { background: var(--sun); transform: translateY(-2px) rotate(-2deg); }

/* ---------- Home hero ---------- */
.hello {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 44px 0 30px;
}
.hello h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}
.hello h1 em { font-style: normal; color: var(--sun); display: inline-block; animation: wiggle 2.6s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.hello p { font-size: 1.2rem; margin: 0 0 26px; color: #ece4ff; max-width: 34ch; }

.bee-stage { position: relative; display: grid; place-items: center; min-height: 340px; }
.bee-stage::before {
  content: ""; position: absolute; width: min(380px, 86%); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 201, 60, 0.55), rgba(255, 201, 60, 0) 68%);
  border-radius: 50%;
}
.bee-big {
  position: relative;
  width: min(380px, 84%);
  border: 0; padding: 0; background: none; cursor: pointer;
  filter: drop-shadow(0 22px 20px rgba(20, 8, 60, 0.4));
  animation: bob 3.4s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.bee-big img { width: 100%; }
/* The animated bee sits over the still one once its pictures have loaded.
   It is drawn smaller in its frames, to leave room for sparkles. */
.bee-big .sprite {
  position: absolute; inset: -23.1%;
  background-size: 800% 600%; background-repeat: no-repeat;
  opacity: 0; will-change: opacity, background-position;
}
.bee-big.live .sprite.idle, .bee-big.live.casting .sprite.magic { opacity: 1; }
.bee-big.live.casting .sprite.idle { opacity: 0; }
.bee-big.live { animation-duration: 5s; }
.bee-big.live img { visibility: hidden; }
.bee-big.glow::after {
  content: ""; position: absolute; inset: -10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 150, 0.9), rgba(201, 176, 255, 0.5) 45%, transparent 70%);
  z-index: -1; animation: glow 2.2s ease-out forwards;
}
@keyframes glow {
  0% { transform: scale(0.4); opacity: 0; }
  35% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
.bee-big.spin img { animation: spin 0.8s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes bob { 50% { transform: translateY(-16px) rotate(-3deg); } }
@keyframes spin { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(200deg); } 100% { transform: scale(1) rotate(360deg); } }
.bubble {
  position: absolute; top: 4%; right: 2%;
  background: var(--paper); color: var(--ink);
  font-weight: 800; font-size: 1rem;
  padding: 8px 16px; border-radius: 20px 20px 20px 4px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
  transform: rotate(6deg);
  animation: wiggle 2s ease-in-out infinite;
}
.pop {
  position: fixed; z-index: 50; pointer-events: none;
  font-size: 26px; color: var(--sun);
  text-shadow: 0 2px 0 var(--purple-deep);
  animation: pop 1.1s ease-out forwards;
}
@keyframes pop {
  to { transform: translate(var(--dx), var(--dy)) rotate(260deg) scale(0.3); opacity: 0; }
}

/* ---------- Buttons and pills ---------- */
.button {
  display: inline-block;
  background: linear-gradient(#ffe07a, var(--sun) 55%, var(--sun-deep));
  color: var(--ink);
  font-weight: 900;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  border: 4px solid var(--ink);
  box-shadow: 0 7px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.button:hover { transform: translateY(3px) rotate(-1deg); box-shadow: 0 4px 0 var(--ink); }
.button:active { transform: translateY(7px); box-shadow: 0 0 0 var(--ink); }

.pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 26px 0 0; list-style: none; }
.pills li {
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 800;
  font-size: 0.95rem;
}
.pills li::before { content: "✓ "; color: var(--sun); }

/* ---------- Sections ---------- */
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); line-height: 1.12; margin: 0 0 14px; }
h2 .squiggle {
  display: inline-block;
  background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%);
  padding: 0 6px; margin: 0 -6px;
  border-radius: 6px;
}
.section { padding: 64px 0; position: relative; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.lead { color: var(--ink-soft); max-width: 60ch; margin: 0 0 32px; font-size: 1.1rem; }

.band { position: relative; background: var(--sun-soft); }
.band.lilac { background: var(--lilac); }
.dots {
  background-image: radial-gradient(rgba(109, 63, 209, 0.09) 2.5px, transparent 3px);
  background-size: 28px 28px;
}

/* ---------- Game cards on the home page ---------- */
.games { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: stretch; }
.game-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--night);
  color: #fff;
  border-radius: var(--radius);
  border: 5px solid var(--ink);
  box-shadow: 0 10px 0 var(--ink);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
}
.game-card:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 16px 0 var(--ink); }
.game-card .art { min-height: 340px; background: center / cover no-repeat; }
.game-card .words { padding: 30px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.game-card img.logo { width: min(280px, 90%); margin-bottom: 12px; }
.game-card p { margin: 0 0 20px; color: #ddd6ff; }
.sticker {
  position: absolute; top: 18px; left: -8px;
  background: var(--sun); color: var(--ink);
  font-weight: 900; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 18px 6px 22px;
  border-radius: 0 999px 999px 0;
  border: 3px solid var(--ink);
  transform: rotate(-4deg);
  z-index: 2;
}
.next-card {
  border: 5px dashed #c9b6f5;
  border-radius: var(--radius);
  display: grid; place-items: center; text-align: center;
  padding: 28px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
}
.next-card img { width: 110px; margin: 0 auto 10px; animation: bob 3s ease-in-out infinite; }
.next-card b { display: block; color: var(--ink); font-size: 1.25rem; }

/* ---------- Promise cards ---------- */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.promise {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  border: 4px solid var(--ink);
  box-shadow: 0 8px 0 var(--ink);
  transition: transform 0.18s;
}
.promise:nth-child(odd) { transform: rotate(-1deg); }
.promise:nth-child(even) { transform: rotate(1deg); }
.promise:hover { transform: rotate(0) translateY(-6px); }
.promise .dot {
  width: 64px; height: 64px; border-radius: 22px;
  background: var(--sun);
  border: 3px solid var(--ink);
  display: grid; place-items: center;
  font-size: 1.9rem; margin-bottom: 14px;
  transform: rotate(-6deg);
}
.promise:nth-child(even) .dot { background: #c9b0ff; transform: rotate(6deg); }
.promise h3 { margin: 0 0 6px; font-size: 1.3rem; }
.promise p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.about img { width: 220px; animation: bob 4s ease-in-out infinite; }
.about p { color: var(--ink-soft); font-size: 1.1rem; max-width: 56ch; }

/* ---------- The game's own page ---------- */
.game-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 40px 0 30px;
}
.game-hero img.logo { width: min(440px, 92%); margin-bottom: 18px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4)); }
.game-hero p.big { font-size: 1.3rem; color: #e8e2ff; margin: 0 0 6px; max-width: 34ch; }
.phone {
  width: min(290px, 76%);
  margin-inline: auto;
  border-radius: 40px;
  border: 9px solid #0d0930;
  overflow: hidden;
  box-shadow: 0 0 0 4px var(--sun), 0 30px 60px rgba(0, 0, 0, 0.55);
  background: #0d0930;
  transform: rotate(3deg);
  transition: transform 0.25s;
}
.phone:hover { transform: rotate(0); }
.phone video { width: 100%; height: auto; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.badge {
  background: #0d0930;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 8px 20px;
  font-size: 1.05rem; font-weight: 800;
  line-height: 1.25;
  color: #fff;
}
.badge small { display: block; opacity: 0.75; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }

.lands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: left; }
.land {
  background: var(--paper);
  border-radius: 26px;
  border: 4px solid var(--ink);
  box-shadow: 0 7px 0 var(--ink);
  overflow: hidden;
  position: relative;
  transition: transform 0.18s;
}
.land:hover { transform: translateY(-8px) rotate(-1.5deg); }
.land img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 4px solid var(--ink); }
.land .num {
  position: absolute; top: 10px; left: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--sun); border: 3px solid var(--ink);
  display: grid; place-items: center; font-weight: 900;
}
.land div { padding: 14px 16px 18px; }
.land b { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.land span { font-size: 0.93rem; color: var(--ink-soft); display: block; line-height: 1.45; }

.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 6px 26px;
  scroll-snap-type: x mandatory;
}
.shots img {
  width: 220px;
  flex: none;
  border-radius: 26px;
  border: 5px solid var(--ink);
  box-shadow: 0 8px 0 var(--ink);
  scroll-snap-align: center;
  transition: transform 0.18s;
}
.shots img:nth-child(odd) { transform: rotate(-2deg); }
.shots img:nth-child(even) { transform: rotate(2deg); }
.shots img:hover { transform: rotate(0) scale(1.04); }

.learn { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; text-align: left; }
.learn > div {
  background: var(--paper); border-radius: var(--radius);
  border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink);
  padding: 26px 28px;
}
.learn h3 { margin: 0 0 10px; font-size: 1.35rem; }
.learn ul { margin: 0; padding: 0; list-style: none; }
.learn li { padding: 5px 0 5px 34px; position: relative; color: var(--ink-soft); }
.learn li::before {
  content: "★"; position: absolute; left: 0; top: 3px;
  color: var(--sun-deep); font-size: 1.2rem;
}

/* ---------- Text pages ---------- */
.page {
  background: var(--paper);
  border-radius: var(--radius);
  border: 4px solid var(--ink);
  box-shadow: 0 8px 0 var(--ink);
  padding: clamp(24px, 5vw, 52px);
  margin: 36px 0 70px;
}
.page h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; margin: 0 0 8px; }
.page h2 { font-size: 1.3rem; margin: 32px 0 6px; }
.page p, .page li { max-width: 68ch; color: #3d2a75; }
.page .mail {
  display: inline-block; background: var(--sun-soft); border-radius: 16px;
  padding: 12px 20px; font-weight: 800; margin: 6px 0;
}
.muted { color: var(--ink-soft) !important; }
details {
  border: 3px solid var(--lilac); border-radius: 20px;
  padding: 4px 20px; margin: 12px 0; max-width: 72ch;
}
details[open] { background: #faf7ff; border-color: #c9b6f5; }
summary { font-weight: 800; cursor: pointer; padding: 12px 0; font-size: 1.08rem; }
summary::marker { color: var(--purple); }

/* ---------- Footer ---------- */
footer {
  position: relative;
  margin-top: 70px;
  background: var(--purple-deep);
  color: #ded3ff;
  padding: 34px 0 44px;
  font-size: 0.98rem;
}
footer .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: #fff; font-weight: 700; }
.flyer {
  position: absolute; top: -104px; left: 0; width: 64px;
  animation: fly 26s linear infinite;
  pointer-events: none;
}
.flyer img { animation: bob 1.4s ease-in-out infinite; }
@keyframes fly { from { transform: translateX(-80px); } to { transform: translateX(100vw); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flyer { display: none; }
}

@media (max-width: 860px) {
  .hello, .game-card, .game-hero, .games, .about, .learn { grid-template-columns: 1fr; }
  .hello { text-align: center; padding-top: 26px; }
  .hello p { margin-inline: auto; }
  .hello .pills { justify-content: center; }
  .bee-stage { order: -1; min-height: 240px; }
  .bee-big { width: 230px; }
  .bubble { right: 8%; }
  .game-card .art { min-height: 230px; }
  .promises { grid-template-columns: 1fr; }
  .lands { grid-template-columns: 1fr 1fr; }
  .about { text-align: center; }
  .about img { margin-inline: auto; width: 160px; }
  .about p { margin-inline: auto; }
  .brand img.word { height: 28px; }
  .brand img.bee { width: 40px; height: 40px; }
  .top { padding: 6px 10px 6px 8px; }
  .top nav a { padding: 6px 9px; font-size: 0.92rem; }
  .game-hero { text-align: center; }
  .game-hero img.logo, .game-hero p.big { margin-inline: auto; }
  .game-hero .pills, .badges { justify-content: center; }
  .section { padding: 48px 0; }
}
@media (max-width: 460px) {
  .top nav a:first-child { display: none; }
  .top nav { flex-wrap: nowrap; gap: 0; }
  .top nav a { padding: 6px 8px; font-size: 0.88rem; white-space: nowrap; }
  .brand img.word { height: 24px; }
  .brand img.bee { width: 36px; height: 36px; }
  .lands { grid-template-columns: 1fr; }
}
