/* julklappat.se: a landing page for the app. Night sky, snow and gold from src/theme/themes.ts; our own painted
   illustrations (scripts/site-art.mjs); Plus Jakarta Sans. Ukrainian falls back to the system sans, as in the app.
   A picture leads every section and the words are a label and a line. */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/jakarta-400Regular.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/jakarta-700Bold.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/jakarta-800ExtraBold.woff2) format("woff2"); }

:root {
  --night: #17162a;
  --deep: #12102a;
  --sky: #1d1a46;
  --dusk: #2b2850;
  --surface: #232238;
  --well: #2c2b44;
  --line: #36354f;
  --text: #f7efe3;
  --muted: #b3abc2;
  --soft: #d4cde1;
  --gold: #ffd256;
  --gold-light: #fff0b3;
  --gold-deep: #f2a83a;
  --ink: #2b1d05;
  --snow: #e6e2f4;
  --snow-deep: #d9d4ec;
  --snow-ink: #24214a;
  --snow-muted: #5c5880;
  --rose: #ffb4a3;
  --gutter: 16px;
  --wide: 76rem;
  --side: max(var(--gutter), calc((100% - var(--wide)) / 2));
  --top: 64px;
  --scan: 96px;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--night); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; background: var(--night); color: var(--text); font: 400 17px/1.6 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
/* A <picture> only chooses the file: its <img> is laid out as if it stood there alone. */
picture { display: contents; }
source { display: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
main { overflow-x: clip; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.line { display: block; }
.gold { color: var(--gold); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: 10px 16px; border-radius: 12px; background: var(--surface); }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: var(--top); padding: 8px var(--side); background: rgba(23, 22, 42, .72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.125rem; letter-spacing: -.01em; text-decoration: none; }
.brand img, .foot-name img { width: 36px; height: 36px; border-radius: 10px; }
.links { display: none; gap: 4px; margin-inline: auto; }
.links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: .9375rem; font-weight: 700; text-decoration: none; }
.links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.top-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 900px) { .links { display: flex; } .top-end { margin-left: 0; } }

/* Language dropdown: the one from the privacy page */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: 700 .9375rem/1 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lang-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn .chev { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; }
/* On the narrowest phones the brand and a long name ("Українська") don't both fit, so the button keeps the globe and
   the arrow, and its name stays for screen readers: nothing is cut. */
@media (max-width: 359px) {
  .lang-btn { gap: 4px; padding-inline: 10px 8px; }
  .lang-btn .lang-name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
.lang-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; flex-direction: column; gap: 2px; min-width: 11rem; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.lang-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.lang-menu a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .9375rem; }
.lang-menu a:hover { background: var(--well); }
.lang-menu a[aria-current="true"] { color: var(--gold); }
.lang-menu a[aria-current="true"]::after { content: "\2713"; }
/* site.js marks the open menu `is-open`. A state's name is styled only together with what it is a state of, never
   by itself: a bare `.open` meant for a link once hid this switch on a phone (SCRUM-403). */
.lang.is-open .lang-menu { display: flex; }
.lang.is-open .chev { transform: rotate(180deg); }
html:not(.js) .lang:focus-within .lang-menu { display: flex; }
@media (hover: hover) { .lang:hover .lang-menu { display: flex; } .lang:hover .chev { transform: rotate(180deg); } }
@media (prefers-reduced-motion: reduce) { .lang-btn .chev { transition: none; } }

/* The offer of the reader's own language (SCRUM-407): a small pill under the bar, added by site.js after load. It
   floats over the page and takes no room, so the first screen doesn't move; it sits in the 42px the hero keeps free
   under the bar, and scrolls away with it. Under the bar's z-index, so the open language menu covers it. */
.offer { position: absolute; top: calc(var(--top) + 6px); left: 0; right: 0; z-index: 20; display: flex; align-items: center; width: fit-content; max-width: calc(100% - 2 * var(--gutter)); height: 32px; margin-inline: auto; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: 0 6px 18px rgba(4, 3, 20, .32); font-size: .875rem; line-height: 1.2; }
.offer-link { min-width: 0; padding: 4px 4px 4px 14px; overflow: hidden; color: var(--text); font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.offer-link::after { content: " \2192"; color: var(--gold); }
.offer-link:hover { color: var(--gold-light); }
.offer-x { position: relative; flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.offer-x::before { content: ""; position: absolute; inset: -7px; }
.offer-x:hover { color: var(--text); }
.offer-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* Every page but the landing page starts its content right under the bar (About's portrait, 32px down), so on a
   phone the offer gets room of its own: site.js marks <main> while the offer is there. */
@media (max-width: 899px) { main.offer-room { margin-top: 40px; } }
@media (prefers-reduced-motion: no-preference) { .offer { animation: offer-in .4s ease-out both; } }
@keyframes offer-in { from { opacity: 0; } }

/* Buttons and store badges */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-deep)); color: var(--ink); font: 800 1rem/1.2 var(--sans); text-decoration: none; text-align: center; box-shadow: 0 8px 28px rgba(242, 168, 58, .28); cursor: pointer; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .9375rem; display: none; }
@media (min-width: 900px) { .btn-small { display: inline-flex; } }
/* --bh is a badge's height: Apple's is three times as wide as it is tall, and ours for Android follows it. On the
   narrowest phones both are a little smaller, so they still stand side by side. */
.stores { --along: center; --bh: 52px; display: flex; flex-wrap: wrap; align-items: center; justify-content: var(--along); gap: 10px 12px; }
@media (max-width: 359px) { .stores { --bh: 46px; gap: 8px; } }
.badge { display: block; border-radius: 9px; }
.badge img { height: var(--bh); width: auto; }
.soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 14px 22px; border: 1px solid rgba(255, 210, 86, .4); border-radius: 999px; background: rgba(35, 34, 56, .72); font-weight: 700; }
/* Under a badge, the phones still waiting are a quiet line, so the badge leads. */
.stores .soon { flex-basis: 100%; justify-content: var(--along); margin-top: 0; padding: 0; border: 0; background: none; color: var(--muted); font-size: .875rem; font-weight: 400; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* Android's badge, beside the App Store's while Google Play has no link: ours, something to tap, and it goes to
   "tell me when Android is out". It has the size and the two lines of Apple's badge, outlined, so the two weigh
   the same (picked over a pill and a gold badge, docs/design.md → Picks). */
.android { display: inline-flex; align-items: center; gap: calc(var(--bh) * .14); width: calc(var(--bh) * 3); height: var(--bh); padding-left: calc(var(--bh) * .21); border: 1px solid #a6a6a6; border-radius: calc(var(--bh) * .17); background: rgba(12, 11, 28, .6); color: #fff; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.android:hover { border-color: #fff; }
.android .bell { flex: none; width: calc(var(--bh) * .46); height: calc(var(--bh) * .46); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.android-words { display: grid; text-align: left; line-height: 1.12; }
.android-small { font-size: calc(var(--bh) * .2); letter-spacing: .01em; }
.android-big { font-size: calc(var(--bh) * .345); font-weight: 700; letter-spacing: -.015em; }
/* The QR code to the App Store is for a computer: a phone taps the badge. The page fetches it from 900px up, too.
   Beside the badges it stands only where the page ends; a wide screen's bar has a card of its own (.scan). */
.qr { display: none; }
@media (min-width: 900px) {
  .qr { display: flex; align-items: center; gap: 12px; max-width: 13rem; padding: 7px 14px 7px 7px; border: 1px solid var(--line); border-radius: 16px; background: rgba(35, 34, 56, .72); color: var(--muted); font-size: .875rem; font-weight: 700; line-height: 1.3; text-align: left; }
  .qr img { flex: none; width: 72px; height: 72px; border-radius: 8px; }
}

/* The QR code's own card, on a computer (SCRUM-406): in the sticky bar's top right corner, hanging a little below
   the bar, as on napper.app. It is the bar's own, so it stays put while the page scrolls, on every page, and the
   bar's gold "Get the app" is always in sight beside it. Night surface, gold edge, the code on white, and the
   button's words under the code. The code is 70px: two pixels to each of its 35 modules, so it is sharp on any
   screen.
   It hangs in the margin beside the page's column and never over the page: 16px from the screen's edge, and
   closer where the margin is narrow, so that 8px always stays between it and the column. A margin of 112px holds
   that (8, the card's 96, 8), and a screen has one from 1440px up. Below that the card is left out: at 1280px the
   margin is 32px, and a card hanging there would ride over the ends of the lines that scroll under it. It can't
   get smaller instead, the code being as small as it may be. A narrower computer keeps the gold button, which
   leads to the code at the page's end.
   It is out of the bar's row, so the language switch and the button keep their places with or without it. */
.scan { display: none; }
@media (min-width: 1440px) {
  .scan { position: absolute; top: 8px; right: clamp(0px, calc(var(--side) - var(--scan) - 8px), 16px); display: grid; justify-items: center; gap: 5px; width: var(--scan); padding: 10px 0 8px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 210, 86, .55), 0 14px 30px rgba(4, 3, 20, .42); color: var(--text); font: 800 .71875rem/16px var(--sans); text-decoration: none; white-space: nowrap; }
  .scan:hover { box-shadow: inset 0 0 0 1px var(--gold), 0 14px 30px rgba(4, 3, 20, .42); }
  .scan:focus-visible { border-radius: 18px; }
  .scan img { width: 70px; height: 70px; border-radius: 8px; }
}

/* The sky shared by the hero and the finale */
.hero, .finale { position: relative; overflow: clip; background: url(/img/stars.svg) center top / 960px 720px, radial-gradient(70rem 42rem at 10% 12%, rgba(169, 163, 232, .2), transparent 72%), radial-gradient(60rem 40rem at 95% 10%, rgba(169, 163, 232, .16), transparent 72%), linear-gradient(180deg, #16143a 0, var(--sky) 45%, #2a2666 100%); }
.lights { position: absolute; inset: 0 0 auto; width: 100%; height: clamp(66px, 11.8vw, 170px); object-fit: cover; object-position: top; pointer-events: none; }
.hill { position: absolute; left: 0; bottom: 0; width: 100%; max-width: none; pointer-events: none; }
.hill-far { height: clamp(120px, 15vw, 220px); bottom: clamp(30px, 4vw, 56px); }
.hill-snow { height: clamp(96px, 11vw, 160px); z-index: 4; }
.art { filter: drop-shadow(0 12px 20px rgba(4, 3, 20, .34)); }
.clay { position: absolute; filter: drop-shadow(0 14px 22px rgba(4, 3, 20, .4)); }

/* Hero: the whole first screen, and one message. The slogan, one short line, the App Store badge with Android's
   beside it, and the collage: nothing else, so nobody gets lost. It is as tall as the small viewport under the
   header, the words and the badges come first, and the collage takes the height that's left, so nothing is cut at
   the bottom on any phone. */
/* Safari on an iPhone lays its Smart App Banner over the top of the page without telling the viewport, which would
   push the picture's foot out of view: leave the banner its room wherever there is one to show. */
@supports (-webkit-touch-callout: none) { :root:has(meta[name="apple-itunes-app"]) { --banner: 84px; } }
.hero { display: flex; flex-direction: column; height: calc(100vh - var(--top)); height: calc(100svh - var(--top) - var(--banner, 0px)); min-height: 470px; max-height: 880px; padding-top: clamp(42px, 6.6svh, 92px); }
.hero-inner { position: relative; z-index: 5; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; padding-inline: var(--gutter); text-align: center; container: hero / size; }
.hero-copy { flex: 1 0 auto; align-self: stretch; display: flex; flex-direction: column; align-items: center; container-type: inline-size; }
/* On a tall phone the room that's left is shared: two parts above the words and three under the collage. So the
   words, the badges and the picture stay together as one block, the picture never sits low with empty sky over
   the words, and the photograph ends in the night, above the snow where the painted pictures begin. */
.hero-copy::before { content: ""; flex: 1; }
.hero-inner::after { content: ""; flex: 1.5 1 0; }
/* On a phone the slogan keeps to its two lines in every language: --chars is its longer line, and the size gives way
   until that line fits the screen. */
.hero h1 { font-weight: 800; font-size: clamp(1.75rem, min(12.6vw, 7.6svh), 4rem); font-size: min(clamp(1.75rem, min(12.6vw, 7.6svh), 4rem), calc(100cqi / var(--chars, 13) / .57)); line-height: 1.04; letter-spacing: -.025em; }
.hero h1 .line { white-space: nowrap; }
/* The app's name over the slogan, in About's eyebrow (SCRUM-481): part of the heading, in the eyebrow's own size.
   Where a phone's first screen is too short to give it a line (320×568, or a 390 iPhone under Safari's App Store
   banner), the picture keeps its size instead and the name stays in the heading for screen readers and search
   engines only, as the language button's name does on a narrow phone. A computer has the words beside the picture,
   with room for it. `hero` is .hero-inner, whose height is the first screen's less the bar and the sky above. */
.hero h1 .eyebrow { margin-bottom: clamp(6px, 1.4svh, 14px); line-height: 1.4; letter-spacing: normal; }
@media (max-width: 899px) {
  @container hero (max-height: 519px) {
    .hero h1 .eyebrow { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  }
}
.lede { max-width: 31rem; margin-top: clamp(8px, 1.8svh, 18px); color: var(--soft); font-size: clamp(1.0625rem, 2.7svh, 1.25rem); line-height: 1.4; text-wrap: balance; }
.hero .stores { margin-top: clamp(16px, 3svh, 30px); }
/* The collage's room: the collage's own shape (six wide to five tall) when there's height for it, and shorter,
   with the collage smaller and still whole, when there isn't (a short phone). It reaches a little into the page's
   margins: the room the words left. */
.hero-art { position: relative; flex: 0 1 auto; width: calc(100% + 16px); max-width: 560px; aspect-ratio: 6 / 5; min-height: 0; margin: clamp(10px, 2.4svh, 30px) -8px clamp(10px, 2.2svh, 24px); container-type: size; }
/* A warm light on the snow and the night around the collage. */
.hero-art::before { content: ""; position: absolute; inset: -6% -8% -4%; background: radial-gradient(closest-side, rgba(255, 196, 110, .2), transparent); pointer-events: none; }

/* The collage: a photograph of real-looking people, the phone with the app's Games screen standing in front of its
   right end, and one of the app's moments as a card under it (SCRUM-402; picked over hands holding the phone, the
   room as a soft backdrop, and the painted characters of SCRUM-401).
   The photograph is a family's Christmas Eve: a girl has just rolled two dice, and a grandfather far away waves
   from a tablet. The phone covers its last 28%, where it has only a window, right up to the dice.
   Everything is placed and sized from the phone's height (--ph): the photograph is --cw by --ch, the whole is
   --tw wide (1.249 phones) and 1.04 phones tall, and --ph is as tall as its room allows. So the collage grows and
   shrinks as one and is never cut. Nothing covers what the phone shows: the photograph is behind the phone, and
   the card only touches its frame.
   The photograph starts just under the phone's top and ends a fifth of a phone above its foot, so the card has a
   place of its own there: it laps over the photograph's last few per cent, the table's edge, and hides nobody,
   not the dice and not the straw goat, however tall the card's words make it. Its words are sized from the phone
   too (--f), so the card keeps its share of the collage in a wide, short room as in a tall one.
   Without container units (a browser from before 2023) the phone has a size from the screen's width, smaller. */
.stage { position: absolute; inset: 0; --ph: 46vw; --f: clamp(7.5px, calc(var(--ph) * .035), 16px); --pw: calc(var(--ph) * .4603); --ch: calc(var(--ph) * .78); --cw: calc(var(--ch) * 1.4121); --tw: calc(var(--cw) * .7158 + var(--pw)); --top: calc(50% - var(--ph) * .52); }
@supports (width: 1cqw) { .stage { --ph: min(96cqh, 80cqw); } }
.stage .phone, .stage .photo, .stage .moment { position: absolute; }
/* The frame is a share of the phone's own width; a padding in per cent would count from the room. (Two classes,
   so this is stronger than the page's own phone frame, which comes later.) Both its width and its height are
   given: Safari adds the frame to a height it works out from the shape, and the phone comes out too tall. */
.stage .stage-phone { left: calc(50% + var(--tw) / 2 - var(--pw)); top: var(--top); width: var(--pw); height: var(--ph); aspect-ratio: auto; padding: calc(var(--pw) * .029); box-shadow: 0 calc(var(--ph) * .05) calc(var(--ph) * .1) rgba(4, 3, 20, .5), 0 calc(var(--ph) * .015) calc(var(--ph) * .035) rgba(4, 3, 20, .4); z-index: 3; }
/* The photograph is a print laid on the page: round corners, the gold hairline of the app's cards, a shadow. */
.stage-photo { left: calc(50% - var(--tw) / 2); top: calc(var(--top) + var(--ph) * .03); width: var(--cw); height: var(--ch); max-width: none; object-fit: cover; border-radius: calc(var(--ph) * .05); box-shadow: 0 0 0 max(1px, calc(var(--ph) * .003)) rgba(255, 210, 86, .34), 0 calc(var(--ph) * .05) calc(var(--ph) * .11) rgba(4, 3, 20, .55); z-index: 2; }
/* The moment, drawn like the app's own cards: its right edge on the phone's frame, its top on the photograph's
   foot. */
.moment { display: grid; justify-items: start; gap: .3em; width: max-content; max-width: 8.8em; padding: .7em .86em .76em; border-radius: 1.05em; background: linear-gradient(160deg, #3d3966, #2a2848); box-shadow: inset 0 0 0 max(1px, .09em) rgba(255, 210, 86, .5), 0 .7em 1.6em rgba(4, 3, 20, .55); color: var(--text); font-weight: 800; line-height: 1.16; text-align: left; z-index: 5; }
.moment-lead { right: calc(50% - var(--tw) / 2 + var(--pw)); top: calc(var(--top) + var(--ph) * .755); font-size: calc(var(--f) * 1.1); transform: rotate(-2.5deg); }
.moment-label { color: var(--gold); font-size: .58em; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.moment-row { display: flex; align-items: center; gap: .45em; }
.moment-face { display: grid; place-items: center; flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: #ff8fa3; box-shadow: 0 0 0 .14em rgba(255, 255, 255, .2); color: #2b1d3a; font-size: .9em; }
.moment-glass { width: 1.7em; height: 1.7em; padding: .34em; border-radius: 50%; background: rgba(255, 210, 86, .16); fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.moment-title { font-size: .94em; text-wrap: balance; }
.moment-line { color: var(--muted); font-size: .78em; font-weight: 700; }
@media (min-width: 900px) {
  .hero { min-height: 600px; max-height: 860px; padding-top: clamp(84px, 12svh, 132px); }
  .hero-inner { flex-direction: row; align-items: stretch; gap: clamp(24px, 4vw, 56px); padding-inline: var(--side); text-align: left; }
  .hero-copy { flex: 1 1 42%; align-items: flex-start; justify-content: center; padding-bottom: clamp(56px, 11svh, 132px); }
  .hero-copy::before, .hero-inner::after { content: none; }
  .hero h1 { font-size: clamp(2.75rem, min(5.9vw, 9.2svh), 5.25rem); text-wrap: balance; }
  .hero h1 .line { white-space: normal; }
  .lede { font-size: 1.375rem; margin-top: 20px; }
  .hero .stores { --along: flex-start; margin-top: 32px; }
  /* Beside the words, the collage's room is the words' own: the same height, clear of the snow by the same margin.
     So the phone, in the room's middle, is level with the words, and nothing sits low on the page. */
  .hero-art { flex: 1 1 58%; align-self: stretch; width: auto; max-width: none; aspect-ratio: auto; margin: 0 0 clamp(56px, 11svh, 132px); }
  .hero-art::before { inset: -4% 4%; }
  .stage { --ph: min(34vw, 450px); }
}
@supports (width: 1cqw) { @media (min-width: 900px) { .stage { --ph: min(92cqh, 80cqw); } } }

/* Phone frame, drawn by the page around a clean view of the app */
.phone { position: relative; aspect-ratio: 1320 / 2868; padding: 2.9%; border-radius: 16.3% / 7.5%; background: linear-gradient(135deg, #8d8b98 0%, #3a3946 22%, #23222d 50%, #4b4a57 78%, #9a98a6 100%); box-shadow: 0 30px 60px rgba(4, 3, 20, .5), 0 12px 26px rgba(4, 3, 20, .4); }
.phone::before { content: ""; position: absolute; inset: .55%; border-radius: inherit; background: #07070c; }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 13.6% / 6.3%; background: var(--night); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* Four reasons, on the snow */
.snow { position: relative; padding: 56px var(--side) 124px; background: linear-gradient(180deg, var(--snow), var(--snow-deep)); color: var(--snow-ink); }
.points { position: relative; z-index: 1; display: grid; gap: 30px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center; }
.point-art { width: 132px; height: 108px; object-fit: contain; margin: 0 auto 10px; filter: drop-shadow(0 12px 14px rgba(60, 52, 120, .26)); }
.points h2 { font-size: 1.125rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.points p { margin-top: 6px; color: var(--snow-muted); font-size: .9688rem; line-height: 1.5; text-wrap: pretty; }
.hill-night { height: 110px; bottom: -1px; }
@media (min-width: 900px) { .points { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } .point-art { width: 170px; height: 140px; } .snow { padding-top: 48px; padding-bottom: 156px; } .points h2 { font-size: 1.25rem; } .hill-night { height: 140px; } }

/* Night bands */
.band { padding: 64px var(--side) 0; background: var(--night); }
.title { font-size: clamp(2rem, 6.4vw, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; text-align: center; text-wrap: balance; }
.title-small { font-size: clamp(1.5rem, 5vw, 2.25rem); }
.title-lede { max-width: 34rem; margin: 16px auto 0; color: var(--muted); font-size: 1.125rem; text-align: center; text-wrap: pretty; }

/* The two games: a picture, the name, a line and three steps */
.game-grid { display: grid; gap: 18px; margin-top: 36px; }
.game { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 22px 28px; border-radius: 34px; background: linear-gradient(165deg, #2f2a70, #1f1c49 62%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.game-dice { background: linear-gradient(165deg, #4a2438, #231a3f 62%); }
.game-art { align-self: center; width: 168px; height: 164px; object-fit: contain; margin-bottom: 12px; }
.game-name { padding: 5px 13px; border-radius: 999px; background: rgba(255, 210, 86, .14); color: var(--gold); font-size: .875rem; font-weight: 800; line-height: 1.3; }
.game h3 { margin-top: 12px; font-size: clamp(1.5rem, 5.4vw, 2rem); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.steps { counter-reset: step; display: grid; gap: 12px; margin-top: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: rgba(255, 210, 86, .16); color: var(--gold); font-size: .875rem; font-weight: 800; }
@media (min-width: 900px) { .game-grid { grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; } .game { padding: 32px 40px 40px; } .game-art { width: 240px; height: 232px; } .game h3 { font-size: 2.25rem; } }

/* A look inside: three clean views of the app. A phone swipes through them; a computer shows them side by side. */
.look { padding-inline: 0; }
.look .title { padding-inline: var(--gutter); }
.scroller { margin-top: 24px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.reel { display: flex; gap: 22px; width: max-content; margin-inline: auto; padding: 12px 24px 44px; }
.reel li { scroll-snap-align: center; }
.reel figure { width: min(60vw, 240px); }
.reel figcaption { margin-top: 16px; font-weight: 700; text-align: center; text-wrap: balance; }
@media (min-width: 900px) { .scroller { margin-top: 40px; } .reel { gap: 56px; padding-bottom: 56px; } .reel figure { width: 260px; } }

/* The tree: the app's Tree tab, and what you do there in three pictures */
.wait { display: grid; gap: 40px; justify-items: center; margin-top: 36px; }
.loop { display: grid; gap: 12px; width: 100%; max-width: 30rem; }
.loop li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.loop-art { width: 96px; height: 92px; object-fit: contain; }
.loop h3 { font-size: 1.1875rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.loop p { margin-top: 2px; color: var(--muted); font-size: .9688rem; line-height: 1.45; text-wrap: pretty; }
.wait-phone { position: relative; }
.wait-phone .phone { width: min(60vw, 250px); }
.stage-glow { position: absolute; inset: -8% -34%; background: radial-gradient(closest-side, rgba(255, 196, 110, .18), transparent); pointer-events: none; }
@media (min-width: 900px) {
  .wait { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-top: 56px; }
  .wait-phone { justify-self: end; }
  .wait-phone .phone { width: 280px; }
  .loop { justify-self: start; gap: 16px; }
  .loop li { grid-template-columns: 132px 1fr; gap: 20px; padding: 14px 24px 14px 14px; }
  .loop-art { width: 132px; height: 124px; }
  .loop h3 { font-size: 1.375rem; }
  .loop p { font-size: 1.0625rem; }
}

/* Tell me when Android is out */
.notify { display: grid; justify-items: center; max-width: 46rem; margin: 64px auto 0; padding: 0 22px 26px; border-radius: 34px; background: linear-gradient(165deg, #2f2a70, #1f1c49 62%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); text-align: center; }
.notify-art { width: 112px; margin-top: -40px; }
.notify-copy { width: 100%; }
.notify h2 { margin-top: 10px; font-size: clamp(1.5rem, 5.4vw, 2rem); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.notify-p { margin-top: 8px; color: var(--muted); text-wrap: pretty; }
/* Without JavaScript nothing could send it, so there is no form: the <noscript> line says where to write. */
.notify-form { display: none; margin-top: 18px; text-align: left; }
.js .notify-form { display: block; }
.notify-form label { display: block; margin: 0 0 6px 18px; color: var(--muted); font-size: .875rem; font-weight: 700; }
.field { display: flex; flex-wrap: wrap; gap: 10px; }
.field input { flex: 1 1 13rem; min-width: 0; min-height: 52px; padding: 0 20px; border: 1px solid #5b5890; border-radius: 999px; background: var(--night); color: var(--text); font: 400 1rem/1.2 var(--sans); }
.field input::placeholder { color: #9891ad; opacity: 1; }
.field input:focus-visible { border-color: var(--gold); outline-offset: 2px; border-radius: 999px; }
.field input[aria-invalid="true"] { border-color: var(--rose); }
.field .btn { flex: 1 0 auto; }
.notify-form[aria-busy="true"] .btn { opacity: .6; cursor: progress; }
/* The field only a robot fills in: out of sight, out of the tab order and out of a screen reader's way. */
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Once the address is in, the ask gives way to the thank-you. */
.notify-copy:has(.notify-form[hidden]) .notify-p { display: none; }
.says p, .notify-nojs { margin-top: 14px; font-weight: 700; text-wrap: pretty; }
.says [data-say="ok"] { color: var(--gold); font-size: 1.125rem; }
.says [data-say="email"] { color: var(--rose); }
.consent { margin-top: 12px; color: var(--muted); font-size: .8125rem; text-wrap: pretty; }
/* For someone who would rather not wait for Android: Julklappat in the browser. A second way under the field, as
   an outlined pill (About's .chip), so the gold button stays the one to press. */
.notify-web { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--soft); font-weight: 700; }
@media (min-width: 900px) {
  .notify { grid-template-columns: 170px minmax(0, 1fr); gap: 36px; align-items: center; justify-items: start; margin-top: 96px; padding: 34px 48px 34px 40px; text-align: left; }
  .notify-art { width: 170px; margin: -56px 0 0; }
  .notify h2 { margin-top: 0; }
  .notify-web { justify-content: flex-start; }
}

/* Good to know */
.faq { display: grid; gap: 22px; max-width: 46rem; margin: 8px auto 0; }
.faq-head { display: flex; align-items: center; justify-content: center; gap: 8px; }
.faq-art { flex: none; width: 116px; }
.faq .title { text-align: left; }
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 22px; border-radius: 22px; font-size: 1.0625rem; font-weight: 800; line-height: 1.3; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin: -4px 4px 0 0; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { margin-top: 6px; transform: rotate(-135deg); }
.faq details p { padding: 0 22px 18px; color: var(--muted); text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
@media (min-width: 900px) {
  .faq { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; max-width: 60rem; margin-top: 40px; }
  .faq-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .faq-art { width: 190px; }
}

/* Who makes it, pointing to About */
.maker-strip { padding: 80px var(--gutter) 80px; background: var(--night); }
.maker-card { display: flex; align-items: center; gap: 18px; max-width: 34rem; margin: 0 auto; padding: 16px 26px 16px 16px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); color: var(--text); text-decoration: none; }
.maker-card:hover { box-shadow: inset 0 0 0 1px rgba(255, 210, 86, .5); }
.maker-face { flex: none; width: 72px; height: 72px; border: 2px solid var(--gold); border-radius: 50%; object-fit: cover; }
.maker-words { display: grid; gap: 4px; }
.maker-made { font-weight: 700; line-height: 1.4; text-wrap: pretty; }
.maker-more { color: var(--gold); font-size: .9375rem; font-weight: 700; }
@media (min-width: 900px) { .maker-face { width: 88px; height: 88px; } .maker-made { font-size: 1.125rem; } }

/* About: the app's About, with room for the photo */
.about { background: url(/img/stars.svg) center top / 960px 720px, linear-gradient(180deg, #16143a 0, var(--night) 760px); }
.about-hero { display: grid; gap: 32px; padding: 32px var(--side) 16px; }
.portrait { position: relative; justify-self: center; width: min(100%, 440px); margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 70px rgba(4, 3, 20, .55); }
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: 28px; box-shadow: inset 0 0 0 1px rgba(255, 210, 86, .35); pointer-events: none; }
.eyebrow { color: var(--gold); font-size: .9375rem; font-weight: 800; }
.about h1 { margin-top: 8px; font-size: clamp(2.25rem, 9.4vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.role { margin-top: 10px; color: var(--muted); font-size: 1.0625rem; text-wrap: pretty; }
.hello { margin-top: 24px; font-size: 1.1875rem; text-wrap: pretty; }
.connect { margin-top: 16px; color: var(--muted); text-wrap: pretty; }
.profiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(255, 210, 86, .45); border-radius: 999px; color: var(--gold); font-weight: 700; text-decoration: none; }
.chip:hover { background: rgba(255, 210, 86, .1); }
.chapters { display: grid; gap: 44px; max-width: 46rem; margin: 0 auto; padding: 64px var(--gutter) 16px; }
.chapter { display: grid; gap: 10px; }
.chapter-n { color: var(--gold); font-size: .875rem; font-weight: 800; letter-spacing: .08em; }
.chapter h2 { margin-top: 4px; font-size: clamp(1.5rem, 5.4vw, 2rem); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.chapter > p { color: var(--muted); font-size: 1.09375rem; text-wrap: pretty; }
.thanks-wrap { padding: 112px var(--gutter) 88px; }
.thanks { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 36rem; margin: 0 auto; padding: 72px 24px 32px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); text-align: center; }
.thanks-art { width: 120px; left: 50%; top: -64px; transform: translateX(-50%); }
.thanks p { font-size: 1.125rem; font-weight: 700; text-wrap: balance; }
.thanks-mail { color: var(--muted); font-size: .9375rem; }
@media (min-width: 900px) {
  .about-hero { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 72px; align-items: center; padding-top: 64px; }
  .portrait { justify-self: start; }
  .hello { font-size: 1.25rem; }
  /* Titles under the photo, words under the intro. */
  .chapters { max-width: none; padding-top: 104px; padding-inline: var(--side); }
  .chapter { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 72px; }
  .chapter > p { max-width: 38rem; font-size: 1.125rem; }
}

/* The closing call to action: the same evening, from inside */
.finale { display: flex; flex-direction: column; align-items: center; padding: clamp(120px, 15vw, 200px) var(--gutter) 0; text-align: center; }
.finale h2 { position: relative; z-index: 3; font-size: clamp(2.5rem, 9vw, 5rem); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
.finale .stores { position: relative; z-index: 3; margin-top: 28px; }
.finale-art { position: relative; z-index: 5; width: min(100%, 620px); margin: 32px 0 clamp(12px, 2.4vw, 30px); }
.finale-pic { width: 100%; }

/* Footer */
.foot { padding: 48px var(--side) 40px; background: var(--deep); color: var(--muted); font-size: .9375rem; }
.foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.foot-brand { grid-column: 1 / -1; }
.foot-name { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.125rem; font-weight: 800; margin-bottom: 8px; }
.foot .made { margin-top: 6px; }
/* The way back into the web app for someone already playing: it stood in the first screen, and lives here now. */
.foot .resume { margin-top: 14px; }
.foot .resume a { display: inline-block; padding: 6px 0; font-weight: 700; }
.foot h2 { margin-bottom: 8px; color: var(--text); font-size: .9375rem; font-weight: 800; }
.foot nav a { display: inline-block; padding: 7px 0; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.foot nav a:hover { color: var(--gold); }
.fine { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.fine + .fine { margin-top: 8px; padding-top: 0; border-top: 0; }
@media (min-width: 744px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }

/* Plain pages: support, privacy, terms */
.plain, .legal main { max-width: 42rem; margin: 0 auto; padding: 40px var(--gutter) 72px; }
.plain { min-height: 52vh; }
.plain h1, .legal h1 { font-size: clamp(2rem, 7vw, 3rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 8px; color: var(--text); }
.plain p { margin-bottom: 18px; color: var(--muted); }
.plain .btn { color: var(--ink); }
.legal h2 { margin: 2rem 0 .4rem; color: var(--gold); font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.legal p, .legal ul, .legal ol { margin: .5rem 0; max-width: 65ch; }
.legal ul { padding-left: 1.2rem; list-style: disc; }
.legal ol { padding-left: 1.2rem; list-style: decimal; }
.legal li { margin: .3rem 0; }
.legal a { color: #a9a3e8; }
.legal .meta { margin: 0 0 1.2rem; color: var(--muted); font-size: 15px; }
.legal .lead { font-size: 1.05rem; }
.legal mark { padding: 0 .25em; border-radius: 4px; background: rgba(255, 210, 86, .16); color: var(--gold-light); }
.legal table { width: 100%; margin: .6rem 0; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { color: var(--muted); font-weight: 600; }
.legal .scroll { overflow-x: auto; }
.js .legal section.l { display: none; }
.js[data-lang="en"] #lang-en, .js[data-lang="sv"] #lang-sv, .js[data-lang="uk"] #lang-uk { display: block; }
.chrome { display: none; }
[data-lang="en"] .chrome[data-l="en"], [data-lang="sv"] .chrome[data-l="sv"], [data-lang="uk"] .chrome[data-l="uk"] { display: contents; }
