/* Landing page "/" (public/index.html). Bright toy-like look of the game (theme palette, auth screen sky);
   phone first: 16 px side gutters at 375 px, no horizontal scroll. No web fonts, no external files. */

:root {
  color-scheme: light;
  --sky-top: #8ed1fc;
  --sky-mid: #bfe5fd;
  --sky-bottom: #e6f6ff;
  --panel: #ffffff;
  --text: #38383d;
  --muted: #4f5260;
  --ink: #2f4f7a;
  --navy: #08203b;
  --link: #2f5ea8;
  --blue: #6794d9;
  --ice: #eef6ff;
  --orange: #ff9200;
  --amber: #ffc044;
  --green: #61cb8b;
  --grass: #78c427;
  --halloween: #ff7e44;
  --sint: #cf534f;
  --winter: #6fb7f0;
  --nieuwjaar: #ffc044;
  --radius: 22px;
  --gutter: 16px;
  --card-shadow: 0 4px 0 rgba(103, 148, 217, 0.35), 0 14px 32px rgba(47, 79, 122, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--sky-bottom); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--sky-bottom);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); font-weight: 600; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; }
h2 { margin: 0 0 6px; font-size: 28px; font-weight: 900; text-align: center; }
h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
p { margin: 0 0 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 18px;
  font-weight: 900;
  font-size: 21px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn--play {
  min-width: 240px;
  background: linear-gradient(180deg, #ffb53d 0%, var(--orange) 100%);
  color: var(--navy);
  box-shadow: inset 0 -5px 0 rgba(176, 96, 65, 0.45), 0 6px 0 rgba(8, 32, 59, 0.18), 0 14px 26px rgba(255, 146, 0, 0.35);
}
.btn--play:hover { transform: translateY(-2px); }
.btn--play:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(176, 96, 65, 0.45), 0 2px 0 rgba(8, 32, 59, 0.18); }
.btn:focus-visible { outline: 4px solid var(--navy); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gutter) 40px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-bottom) 100%);
  text-align: center;
}
.hero::after {
  /* a grass strip with a soft hill, like the park ground */
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -60px;
  height: 110px;
  border-radius: 50% 50% 0 0;
  background: var(--grass);
  box-shadow: inset 0 8px 0 rgba(255, 255, 255, 0.25);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding-bottom: 30px;
  display: grid;
  grid-template-areas: "copy" "phone" "facts";
  justify-items: center;
}
.hero__copy { grid-area: copy; max-width: 640px; }
.hero__logo { margin: 0 auto; width: min(68vw, 300px); }
.hero__logo img { width: 100%; filter: drop-shadow(0 8px 14px rgba(8, 32, 59, 0.18)); }
.hero__pitch { margin: 4px auto 16px; max-width: 28ch; color: var(--navy); font-size: 20px; font-weight: 800; line-height: 1.28; }
.hero__login { margin: 12px 0 0; color: var(--navy); font-size: 16px; font-weight: 700; }
.hero__login a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); }
.hero__phone { grid-area: phone; margin-top: 22px; }
.hero__phone .phone { width: min(70vw, 270px); }
/* the hero video is the poster's box: like the img it replaces it is a block (the global img rule) with the same width/height/aspect-ratio as the phone screens; the poster shows until the video plays */
.hero__phone video.phone__screen { display: block; object-fit: cover; }
.hero__facts { grid-area: facts; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero__facts li {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

/* ---------- phone frame (CSS only, light like the rest: no dark bezel) ---------- */
.phone {
  position: relative;
  width: 100%;
  padding: 22px 9px 9px;
  border-radius: 42px;
  background: #fff;
  border: 3px solid #cfe2f7;
  box-shadow: 0 6px 0 rgba(103, 148, 217, 0.35), 0 20px 38px rgba(47, 79, 122, 0.25);
}
.phone__speaker { position: absolute; top: 8px; left: 50%; width: 56px; height: 7px; border-radius: 999px; background: #d3e3f6; transform: translateX(-50%); }
.phone__screen { width: 100%; height: auto; aspect-ratio: 750 / 1624; border-radius: 28px; background: #cfe9d0; }

.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; width: 120px; height: 36px; border-radius: 999px; background: #fff; opacity: 0.85; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: #fff; }
.cloud::before { width: 54px; height: 54px; left: 18px; top: -26px; }
.cloud::after { width: 40px; height: 40px; left: 60px; top: -16px; }
.cloud--a { top: 46%; left: -50px; transform: scale(0.7); }
.cloud--b { top: 20%; right: -40px; transform: scale(0.6); }
.cloud--c { top: 64%; right: 4%; transform: scale(0.5); opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) {
  .cloud--a { animation: drift 38s ease-in-out infinite alternate; }
  .cloud--b { animation: drift 46s ease-in-out infinite alternate-reverse; }
  .cloud--c { animation: drift 54s ease-in-out infinite alternate; }
}
@keyframes drift { from { translate: 0 0; } to { translate: 40px 0; } }

/* ---------- sections ---------- */
main { display: block; }
.section { max-width: 1080px; margin: 0 auto; padding: 36px var(--gutter) 8px; }
.section__lead { margin: 0 auto 20px; max-width: 46ch; text-align: center; color: var(--muted); }

/* screenshot cards: a bold heading, a subline, a phone screen cropped at the bottom of a bright rounded card.
   Phones: a row you swipe (scroll-snap); wider screens: a grid. */
.shots__row {
  display: flex;
  gap: 14px;
  margin: 20px calc(-1 * var(--gutter)) 0;
  padding: 4px var(--gutter) 22px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.shots__row:focus-visible { outline: 4px solid var(--navy); outline-offset: -2px; border-radius: 28px; }
.shotcard {
  flex: 0 0 min(80vw, 300px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 22px 16px 0;
  border-radius: 28px;
  text-align: center;
  scroll-snap-align: start;
  box-shadow: var(--card-shadow);
}
.shotcard--blue { background: linear-gradient(180deg, #a8dafc 0%, #e0f3ff 100%); }
.shotcard--green { background: linear-gradient(180deg, #b6ebc8 0%, #e7f8ed 100%); }
.shotcard--sun { background: linear-gradient(180deg, #ffd98a 0%, #fff2d2 100%); }
.shotcard--pink { background: linear-gradient(180deg, #f8c8f1 0%, #fdebfb 100%); }
.shotcard h3 { margin: 0 0 6px; min-height: 2.3em; font-size: 23px; font-weight: 900; color: var(--navy); }
.shotcard p { margin: 0 0 18px; min-height: 3.1em; color: var(--ink); font-size: 16px; line-height: 1.5; font-weight: 600; }
.shotcard .phone { width: min(74%, 230px); margin-bottom: -38%; }
.shots__wide { margin: 14px 0 0; }
.swipe-hint { display: inline; }
.shots__wide img { width: 100%; border-radius: 22px; background: #cfe9d0; box-shadow: var(--card-shadow); }
.shots__wide figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; text-align: center; }

/* features */
.features__grid { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.feature { padding: 18px 18px 14px; border-radius: var(--radius); background: var(--panel); box-shadow: var(--card-shadow); }
.feature__icon { width: 48px; height: 48px; margin-bottom: 8px; }
.feature p { color: var(--muted); }

/* events */
.events__live {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px; /* two lines of text on a phone */
  margin: 0 auto 18px;
  max-width: 560px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #fff7e0;
  color: var(--navy);
  font-weight: 800;
  text-align: center;
  box-shadow: inset 0 -3px 0 rgba(255, 192, 68, 0.6);
}
/* the slot stays reserved (invisible) until /api/events answers, so nothing below it jumps */
.events__live[hidden] { display: flex; visibility: hidden; }
.events__grid { display: grid; gap: 14px; }
.event { position: relative; padding: 18px; border-radius: var(--radius); background: var(--panel); box-shadow: var(--card-shadow); border-top: 8px solid var(--blue); }
.event--halloween { border-top-color: var(--halloween); }
.event--sint { border-top-color: var(--sint); }
.event--winter { border-top-color: var(--winter); }
.event--nieuwjaar { border-top-color: var(--nieuwjaar); }
.event--weekly { border-top-color: var(--green); }
.event__date { margin: 0 0 4px; color: var(--muted); font-size: 15px; font-weight: 700; }
.event p { color: var(--muted); }
.event h3 { font-size: 22px; }
.event__items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.event__items li { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 8px 4px 4px; border-radius: 14px; background: var(--ice); color: var(--ink); font-weight: 800; font-size: 14px; line-height: 1.2; overflow-wrap: break-word; hyphens: manual; }
.event__items img { flex: none; width: 40px; height: 40px; }
.events__more { margin: 16px 0 0; text-align: center; color: var(--ink); font-weight: 700; }

/* call to action */
.cta { text-align: center; padding-bottom: 40px; }
.cta p { color: var(--muted); }
.cta .btn { margin-top: 8px; }

/* intro, steps, teasers and FAQ teaser (real text content around the screenshots) */
.hero__sub { max-width: 34ch; margin: 0 auto 18px; color: var(--ink); font-size: 17px; line-height: 1.5; }
.intro p, .steps__more, .faq-teaser__more { max-width: 720px; margin-left: auto; margin-right: auto; }
.steps__more, .faq-teaser__more { text-align: center; margin-top: 14px; }
.steps__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps__list li { position: relative; counter-increment: step; padding: 14px 16px 12px 62px; border-radius: var(--radius); background: var(--panel); box-shadow: var(--card-shadow); }
.steps__list li::before { content: counter(step); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: var(--navy); font-weight: 900; font-size: 19px; }
.steps__list h3 { margin: 0 0 2px; font-size: 18px; }
.steps__list p { margin: 0; color: var(--muted); }
.teasers__grid { display: grid; gap: 14px; margin-top: 16px; }
.teaser { padding: 16px 18px 10px; border-radius: var(--radius); background: var(--panel); box-shadow: var(--card-shadow); }
.teaser h3 { margin: 0 0 6px; }
.teaser p { color: var(--muted); }
.teaser__date { margin: 0 0 4px; font-size: 14px; }
.teaser ul { margin: 0 0 10px; padding-left: 20px; color: var(--muted); }
.faq-teaser__list { max-width: 720px; margin: 14px auto 0; }
.faq-teaser__list dt { margin-top: 12px; color: var(--ink); font-weight: 800; }
.faq-teaser__list dd { margin: 2px 0 0; }

/* ---------- wider screens ---------- */
@media (min-width: 600px) {
  .hero { padding-top: 36px; }
  .hero__pitch { font-size: 24px; }
  .events__live { min-height: 48px; }
  .shots__row { display: grid; grid-template-columns: repeat(2, 1fr); margin: 24px 0 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .shotcard { flex: none; }
  .swipe-hint { display: none; }
  .shots__wide { margin-top: 30px; }
  .shotcard .phone { width: min(60%, 230px); }
  h2 { font-size: 32px; }
  .features__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: auto auto; grid-template-rows: auto auto; grid-template-areas: "copy phone" "facts phone"; justify-content: center; justify-items: start; column-gap: 72px; padding-bottom: 40px; }
  .hero__copy { align-self: end; text-align: left; }
  .hero__logo { margin: 0; width: 460px; }
  .hero__pitch { margin: 6px 0 22px; max-width: 26ch; font-size: 28px; }
  .hero__phone { margin-top: 0; }
  .hero__phone .phone { width: 300px; }
  .hero__facts { justify-content: flex-start; align-self: start; max-width: 460px; }
}
@media (min-width: 960px) {
  .teasers__grid { grid-template-columns: repeat(3, 1fr); }
  .steps__list { grid-template-columns: repeat(4, 1fr); }
  .steps__list li { padding: 62px 16px 12px; }
  .section { padding-top: 48px; }
  .shots__row { grid-template-columns: repeat(4, 1fr); }
  .shotcard .phone { width: min(76%, 230px); }
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .events__grid { grid-template-columns: repeat(3, 1fr); }
}
