/* The app's own typeface, on the site.
 *
 * One family name, two fonts, split by unicode-range: Fredoka carries Latin
 * and Hebrew, and Comfortaa carries Cyrillic - because Fredoka has no
 * Cyrillic at all, and a Russian reader would otherwise have fallen back to
 * whatever the system offered. Comfortaa is the nearest thing to it that
 * does: rounded, geometric, and unserious in the same way.
 *
 * The browser downloads only the file a page actually needs, so a Hebrew
 * reader never fetches the Cyrillic one. All five together are 80KB.
 *
 * Self-hosted rather than linked from Google's CDN. This site tells people we
 * do not hand them to third parties, and a font request is a request: it
 * carries their address to somebody else's server. Variable files, so 400
 * through 700 are one download and a bold weight is really bold rather than a
 * smeared regular.
 */

/* latin */
@font-face {
  font-family: "ZUZU";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/Fredoka-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: "ZUZU";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/Fredoka-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* hebrew */
@font-face {
  font-family: "ZUZU";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/Fredoka-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

/* cyrillic */
@font-face {
  font-family: "ZUZU";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/Comfortaa-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* cyrillic-ext */
@font-face {
  font-family: "ZUZU";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/Comfortaa-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Shared by the home page, the privacy policy and the terms. */
:root {
  color-scheme: dark;
  --ink: #fff;
  --soft: rgba(255,255,255,.74);
  --card: rgba(255,255,255,.13);
  --star: #FFD75E;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(165deg, #7246FB, #D359C2 52%, #302066) fixed;
  color: var(--ink);
  font-family: "ZUZU", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-synthesis-weight: none;
  line-height: 1.7;
  overflow-x: hidden;
}
main { position: relative; z-index: 1; max-width: 44rem; margin: 0 auto; padding: 0 22px 80px; }
a { color: #ffe08a; }

/* --- language switcher ---------------------------------------------------
   Every language is in the page; the switcher only decides which one is
   shown. One address per document, so a link to the privacy policy works
   whatever language the person reading it wants - which matters, because
   these addresses go into store listings and consent screens where a
   per-language URL would be one more thing to keep in step. */
.langs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  padding: 6px 0 0; margin: 0;
}
.langs button {
  font: inherit; font-size: .86rem; font-weight: 600;
  padding: 7px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.28);
  background: transparent; color: rgba(255,255,255,.78);
}
.langs button[aria-pressed="true"] { background: #fff; color: #2b1a5e; border-color: #fff; }

/* Hidden until the script picks one. Without JavaScript the first block -
   Hebrew - is the one that shows, rather than all three at once. */
[data-lang] { display: none; }
[data-lang].on { display: block; }
html:not(.js) [data-lang]:first-of-type { display: block; }

[dir="rtl"] { text-align: right; }
[dir="ltr"] { text-align: left; }

.brand { font-size: 2.2rem; font-weight: 700; margin: 0; letter-spacing: .02em; text-align: center; }
.updated { color: var(--soft); font-size: .85rem; margin: .3rem 0 2rem; text-align: center; }
h2 { font-size: 1.15rem; margin: 2.2rem 0 .6rem; }
p, li { color: rgba(255,255,255,.9); margin: 0 0 .9rem; }
ul { padding-inline-start: 1.2rem; margin: 0 0 1rem; }
.card { background: var(--card); border-radius: 18px; padding: 18px 20px; margin: 1.3rem 0; }
.card p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .95rem; }
th, td { text-align: start; padding: .55rem .4rem; border-bottom: 1px solid rgba(255,255,255,.16); vertical-align: top; }
th { color: var(--soft); font-weight: 600; }
footer { margin-top: 3rem; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); color: var(--soft); font-size: .85rem; text-align: center; }
