/* Emilie & Ben's World of Adventures: one stylesheet for every page. */

:root {
  --sky: #efe6fb;
  --sky-deep: #d9ccf3;
  --card: #fbf8ff;
  --ink: #3a2457;
  --ink-soft: #7a659a;
  --jelly: #ff4fa0;
  --jelly-hi: #ffc2df;
  --teal: #2bc4b0;
  --orange: #ff9a3c;
  --gold: #ffcc33;
  --blue: #3d7bff;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(58, 36, 87, 0.12);
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: var(--jelly); font-weight: 700; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Top bar */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(239, 230, 251, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--sky-deep);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.brand {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .dot {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 46% 46%;
  background: var(--jelly);
  box-shadow: inset -4px -5px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  flex: none;
}
.brand .dot::before, .brand .dot::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 7px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 2px 1px 0 2px var(--ink);
}
.brand .dot::before { left: 6px; }
.brand .dot::after { right: 6px; }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav-links a:hover { color: var(--jelly); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  color: var(--jelly);
  background: #fff;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 span { color: var(--jelly); }
.hero .lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 28px;
}
.floaters { position: absolute; inset: 0; pointer-events: none; }
.floaters img {
  position: absolute;
  width: 84px;
  animation: bob 4s ease-in-out infinite;
  opacity: 0.95;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .floaters img { animation: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--jelly);
  border-radius: 999px;
  padding: 14px 26px;
  box-shadow: 0 6px 0 #d63a85;
  transition: transform 0.1s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #d63a85; }

/* Sections */
section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 32px; }
.section-title p { color: var(--ink-soft); max-width: 620px; margin-inline: auto; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

/* About the makers */
.makers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.maker { text-align: center; }
.maker .avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 600;
  color: #fff;
}
.maker .age { color: var(--ink-soft); font-weight: 700; }

/* Games menu */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.game {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  font-weight: inherit;
  overflow: hidden;
  padding: 0;
  transition: transform 0.15s;
}
a.game:hover { transform: translateY(-4px); }
.game .art {
  background: linear-gradient(180deg, #bfe3ff, #e6f6ee);
  display: grid;
  place-items: center;
  padding: 28px;
}
.game .art img { width: 140px; border-radius: 30px; box-shadow: var(--shadow); }
.game .body { padding: 22px 24px 26px; }
.game .tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.tag.new { background: var(--jelly-hi); color: #c01f6b; }
.tag.soon { background: var(--sky-deep); color: var(--ink-soft); }
.game.soon .art { background: repeating-linear-gradient(45deg, #f4effb 0 14px, #ece4f7 14px 28px); }
.game.soon .art .q {
  width: 140px;
  height: 140px;
  border-radius: 30px;
  border: 4px dashed var(--sky-deep);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 4rem;
  color: var(--sky-deep);
}

/* Game page */
.game-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0;
}
.game-hero .icon { width: 112px; border-radius: 26px; box-shadow: var(--shadow); margin-bottom: 18px; }
.game-hero .lead { font-size: 1.15rem; color: var(--ink-soft); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: #1c1530;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  line-height: 1.2;
}
.store svg { width: 28px; height: 28px; flex: none; fill: #fff; }
.store small { display: block; font-size: 0.72rem; opacity: 0.8; }
.store strong { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.store[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.soon-note { color: var(--ink-soft); font-size: 0.95rem; margin-top: 10px; }

.phone {
  width: min(300px, 100%);
  margin-inline: auto;
  border-radius: 44px;
  padding: 10px;
  background: #1c1530;
  box-shadow: 0 24px 50px rgba(58, 36, 87, 0.28);
}
.phone video, .phone img { border-radius: 34px; width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature .emoji { font-size: 2rem; line-height: 1; margin-bottom: 10px; }
.feature p { color: var(--ink-soft); margin: 0; }

.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.howto .step { display: flex; gap: 16px; align-items: flex-start; }
.howto .num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  background: var(--teal);
}

.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 20px;
}
.shots figure { margin: 0; flex: 0 0 196px; scroll-snap-align: center; text-align: center; }
.shots img { border-radius: 24px; box-shadow: var(--shadow); border: 6px solid #fff; }
.shots figcaption { font-family: var(--display); font-weight: 600; margin-top: 10px; }

.chars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 12px;
}
.char { text-align: center; font-family: var(--display); font-weight: 500; font-size: 0.95rem; }
.char img { width: 80px; margin: 0 auto; }
.char-group { margin: 22px 0 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; color: var(--ink-soft); }

.monsters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.monster { text-align: center; }
.monster img { width: 110px; margin: 0 auto 6px; }
.monster p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

.parents { border: 3px solid var(--teal); }
.parents ul { margin: 0; padding-left: 1.2em; }
.parents li { margin-bottom: 8px; }

/* Text pages (privacy, support) */
.doc { max-width: 760px; margin: 48px auto; }
.doc h2 { font-size: 1.5rem; margin-top: 1.6em; }
.doc .updated { color: var(--ink-soft); }
.faq details {
  background: var(--card);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.faq summary { font-family: var(--display); font-weight: 600; font-size: 1.1rem; cursor: pointer; }
.faq details p { margin: 10px 0 0; }

/* Footer */
footer {
  margin-top: 40px;
  padding: 36px 0 48px;
  border-top: 2px solid var(--sky-deep);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); }

@media (max-width: 760px) {
  .hero { padding: 48px 0 64px; }
  .floaters img { width: 56px; opacity: 0.6; }
  .floaters img:nth-child(-n+2) { display: none; } /* the top two would sit on the heading */
  .game-hero { grid-template-columns: 1fr; text-align: center; padding: 36px 0; }
  .game-hero .icon { margin-inline: auto; }
  .stores { justify-content: center; }
  .nav-links { gap: 12px; font-size: 0.95rem; }
  section { padding: 40px 0; }
  .card { padding: 22px; }
}
