/* The game's website in the game's own colours (scripts/ui.gd, the pastel look) and
   its font, Nunito, served from here: nothing loads from other sites. */
@font-face {
  font-family: "Nunito";
  src: url("/static/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  --bg: #fdeef1;
  --hero: linear-gradient(180deg, #f48aa5 0%, #e2577b 100%);
  --card: #ffffff;
  --ink: #4b3a55;
  --muted: #8a6f8f;
  --pink: #ee6d8d;
  --teal: #1f8a72;
  --yellow: #7fd3bd;
  --rule: #f1cdd8;
  --chip: #ffffff;
  --shadow: 0 10px 30px rgba(75, 58, 85, 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #241a2b;
    --hero: linear-gradient(180deg, #7a3655 0%, #4d2540 100%);
    --card: #33263d;
    --ink: #f6e6ee;
    --muted: #b79bc2;
    --teal: #7fd3bd;
    --rule: #47304f;
    --chip: #33263d;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--teal); font-weight: 700; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 34px; font-weight: 900; }
h2 { font-size: 22px; font-weight: 850; margin: 0 0 12px; }
h3 { font-size: 18px; font-weight: 800; margin: 18px 0 4px; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 19px; font-weight: 750; }
.date { color: var(--muted); margin: 6px 0 18px; }

/* header: the icon, the name, three links */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
  max-width: 800px; margin: 0 auto; padding: 14px 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 900;
}
.brand img { border-radius: 10px; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a {
  color: var(--ink); text-decoration: none; font-weight: 750; font-size: 15px;
  padding: 6px 12px; border-radius: 999px; background: var(--chip);
}
.top nav a[aria-current] { background: var(--yellow); color: #17362e; }
.top nav a.lang { background: transparent; border: 2px solid var(--rule); }

main { max-width: 800px; margin: 0 auto; padding: 4px 16px 24px; }
.card {
  background: var(--card); border-radius: 26px; padding: 24px 22px;
  margin: 0 0 18px; box-shadow: var(--shadow);
}

/* home: the store listing */
.app {
  display: flex; align-items: center; gap: 20px;
  background: var(--hero); border-radius: 30px; padding: 24px;
  margin: 0 0 14px; color: #fff; box-shadow: var(--shadow);
}
.app-icon { width: 112px; height: 112px; border-radius: 26px; flex: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }
.app h1 { font-size: 40px; text-shadow: 0 2px 0 rgba(75, 58, 85, 0.25); }
.subtitle { font-size: 19px; font-weight: 750; margin: 2px 0 12px; opacity: 0.95; }
/* Apple's badge as it is: unchanged, at least 40 px tall, with room around it */
.store { margin: 14px 0 0; }
.store a { display: inline-block; line-height: 0; border-radius: 10px; }
.store img { display: block; height: 54px; width: auto; }
.facts {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.facts li {
  background: var(--card); border-radius: 18px; padding: 10px 8px; text-align: center;
  display: flex; flex-direction: column; justify-content: center;
}
.facts b { font-size: 18px; font-weight: 900; }
.facts span { font-size: 13px; color: var(--muted); line-height: 1.3; }

.shots {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 14px; margin: 0 -4px 6px;
  -webkit-overflow-scrolling: touch;
}
.shots figure { margin: 0; flex: 0 0 200px; scroll-snap-align: start; }
.shots img {
  display: block; width: 100%; height: auto; border-radius: 22px;
  box-shadow: var(--shadow); background: var(--rule);
}
.shots figcaption { font-size: 14px; font-weight: 750; text-align: center; margin-top: 8px; line-height: 1.3; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features img { flex: none; margin-top: 2px; background: var(--pink); border-radius: 13px; padding: 9px; }
.features h3 { margin: 0 0 2px; }

.label-box {
  border: 2px solid var(--rule); border-radius: 18px; padding: 14px 16px; margin: 0 0 12px;
}
.label-box b { font-size: 18px; font-weight: 900; }
.label-box p { color: var(--muted); margin: 4px 0 0; }

.info { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.info dt { color: var(--muted); }
.info dd { margin: 0; font-weight: 750; text-align: right; }

/* support and privacy */
.card ul { padding-left: 22px; margin: 0 0 12px; }
.card li { margin: 0 0 6px; }
.page-support h3:first-of-type { margin-top: 0; }

footer {
  max-width: 800px; margin: 0 auto; padding: 8px 16px 40px;
  color: var(--muted); font-size: 14px;
}
footer .note { background: var(--card); border-radius: 16px; padding: 12px 14px; color: var(--ink); }

@media (max-width: 560px) {
  h1 { font-size: 28px; }
  .app { padding: 18px; gap: 14px; }
  .app-icon { width: 84px; height: 84px; border-radius: 20px; }
  .app h1 { font-size: 32px; }
  .subtitle { font-size: 16px; margin-bottom: 10px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .shots figure { flex-basis: 64%; }
  .card { padding: 20px 18px; border-radius: 22px; }
}

/* narrow phones (iPhone SE): the icon above the name, the name on two lines at most,
   the store pill on one */
@media (max-width: 420px) {
  .app { flex-direction: column; align-items: flex-start; gap: 12px; }
  .app-icon { width: 72px; height: 72px; border-radius: 17px; }
  .app h1 { font-size: 28px; }
  .store img { height: 46px; }
  .top nav a { font-size: 14px; padding: 5px 10px; }
}
