:root {
  --ink: #2A2342;
  --ink-soft: #5F5878;
  --pink: #FF5C93;
  --paper: #FFFDF8;
  --orange: #FF8A2B;
  --orange-lip: #D2620C;
  --fish: #FFC531;
  --fish-lip: #D9A516;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: linear-gradient(180deg, #E8F6FF 0%, #BDE7FF 100%) fixed;
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800;
  display: flex;
  justify-content: center;
}
main {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 48px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.from { font-size: 18px; margin: 0; }
h1 {
  margin: 6px 0 0;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  font-size: 46px;
  line-height: 1.05;
  transform: rotate(-2deg);
}
.icon {
  margin-top: 36px;
  width: 168px;
  height: 168px;
  border-radius: 38px;
  border: 6px solid #fff;
  box-shadow: 0 10px 0 var(--fish-lip);
}
.note {
  margin: 40px 0 0;
  width: 100%;
  padding: 14px 18px;
  border-radius: 22px;
  background: var(--paper);
  font-size: 16px;
}
.actions {
  margin-top: auto;
  padding-top: 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  border-radius: 22px;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  box-shadow: 0 7px 0 #9CCDE8;
}
.button.main { height: 72px; border-radius: 24px; background: var(--orange); box-shadow: 0 8px 0 var(--orange-lip); }
.button:active { transform: translateY(5px); box-shadow: none; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 16px; }
.badge { display: block; transition: transform .15s; }
.badge:active { transform: scale(.96); }
.badge img { display: block; height: 56px; width: auto; }
.hidden { display: none; }

/* Text pages: privacy policy and support. Calm on purpose: the pink stays an accent, as on other games' policy pages */
body.doc { display: block; background: #E6F4FD; }
.bar {
  border-bottom: 4px solid var(--pink);
  background: #fff;
}
.bar-in {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 22px;
}
.brand img { border-radius: 10px; }
.lang {
  padding: 4px 14px;
  border-radius: 14px;
  border: 2px solid var(--pink);
  color: var(--pink);
  text-decoration: none;
}
main.page {
  display: block;
  max-width: 960px;
  min-height: 0;
  margin: 0 auto;
  padding: 28px 16px 8px;
  text-align: left;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.page h1 { margin: 0; font-size: 34px; transform: none; }
.page h2 { margin: 28px 0 6px; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 21px; line-height: 1.25; }
.page p, .page ul { margin: 8px 0; }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page strong { font-weight: 700; }
.page a { color: #C2185B; font-weight: 700; }
.page code { font-size: 14px; background: #fff; padding: 1px 5px; border-radius: 6px; }
.muted { color: var(--ink-soft); }
.foot {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  border-top: 1px solid #C9DCEA;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.foot a { color: var(--ink); }
.links { margin-top: 20px; font-size: 14px; }
.links a { color: var(--ink); }

/* Desktop: the landing and challenge pages grow, the store buttons sit side by side, and text pages read larger */
@media (min-width: 900px) {
  main { max-width: 760px; padding-top: 72px; }
  h1 { font-size: 64px; }
  .icon { width: 220px; height: 220px; border-radius: 50px; }
  .note { font-size: 19px; max-width: 560px; }
  .actions { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 48px; }
  .actions .button { flex: 1 1 260px; max-width: 340px; }
  main.page { font-size: 17.5px; padding-top: 44px; }
  .page h1 { font-size: 44px; }
  .page h2 { font-size: 24px; margin-top: 36px; }
}
