/* Farkle Score Sheet, presentation site. Same design system as the app:
   paper, ink, dice keys, highlighter and red pencil. */

@font-face {
  font-family: 'Instrument Sans';
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrument-sans-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;
}
@font-face {
  font-family: 'Instrument Sans';
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrument-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/caveat-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;
}
@font-face {
  font-family: 'Caveat';
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/caveat-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;
  --paper: #f5f2ea;
  --card: #fffdf8;
  --ink: #1d2027;
  --ink2: #555a64;
  --rule: #e2dccf;
  --rule2: #cfc8b9;
  --track: #ede8dd;
  --blue: #2f55b8;
  --blue-deep: #1b3780;
  --on-blue: #ffffff;
  --hl: #f4e37a;
  --hl-ink: #1d2027;
  --red: #b23a26;
  --line: #e6e0d2;
  --margin: #d9897a;
  --die-face: #fffdf8;
  --die-border: #1d2027;
  --die-key: #1d2027;
  --die-pip: #1d2027;
  --shadow: rgba(29, 32, 39, 0.12);
  --wrap: 1120px;
  --gutter: 16px;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #14161b;
  --card: #1e2128;
  --ink: #f1ede4;
  --ink2: #a9adb6;
  --rule: #2c3038;
  --rule2: #3a3f49;
  --track: #2c3038;
  --blue: #8fa8f0;
  --blue-deep: #5d79c9;
  --on-blue: #14161b;
  --hl: #e9d96a;
  --hl-ink: #14161b;
  --red: #f08a74;
  --line: #2c3038;
  --margin: #8a4a40;
  --die-face: #1e2128;
  --die-border: #5a606b;
  --die-key: #0b0c0f;
  --die-pip: #f1ede4;
  --shadow: rgba(0, 0, 0, 0.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --paper: #14161b;
    --card: #1e2128;
    --ink: #f1ede4;
    --ink2: #a9adb6;
    --rule: #2c3038;
    --rule2: #3a3f49;
    --track: #2c3038;
    --blue: #8fa8f0;
    --blue-deep: #5d79c9;
    --on-blue: #14161b;
    --hl: #e9d96a;
    --hl-ink: #14161b;
    --red: #f08a74;
    --line: #2c3038;
    --margin: #8a4a40;
    --die-face: #1e2128;
    --die-border: #5a606b;
    --die-key: #0b0c0f;
    --die-pip: #f1ede4;
    --shadow: rgba(0, 0, 0, 0.5);
  }
}

/* ---------- Base ---------- */

[hidden] {
  display: none !important;
}
/* Light and dark variants of an image (app icon, screenshots). */
.only-dark {
  display: none;
}
:root[data-theme='dark'] .only-dark {
  display: block;
}
:root[data-theme='dark'] .only-light {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .only-dark {
    display: block;
  }
  :root:not([data-theme='light']) .only-light {
    display: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
  /* Short pages (404) keep the footer at the bottom of the screen. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.1;
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}
a {
  color: var(--blue);
}
img,
svg {
  display: block;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.muted {
  color: var(--ink2);
}
.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus {
  top: 8px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hl {
  background: var(--hl);
  color: var(--hl-ink);
  padding: 0 8px;
  margin-left: -4px;
  border-radius: 8px 14px 10px 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hand {
  font-family: 'Caveat', cursive;
  font-weight: 700;
}
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink2);
}

/* ---------- Dice (the app's keys) ---------- */

.die {
  --s: 44px;
  --o: calc(var(--s) * 0.085);
  --tl: radial-gradient(circle at 26% 26%, var(--die-pip) var(--o), transparent calc(var(--o) + 0.6px));
  --tr: radial-gradient(circle at 74% 26%, var(--die-pip) var(--o), transparent calc(var(--o) + 0.6px));
  --ml: radial-gradient(circle at 26% 50%, var(--die-pip) var(--o), transparent calc(var(--o) + 0.6px));
  --c: radial-gradient(circle at 50% 50%, var(--die-pip) var(--o), transparent calc(var(--o) + 0.6px));
  --mr: radial-gradient(circle at 74% 50%, var(--die-pip) var(--o), transparent calc(var(--o) + 0.6px));
  --bl: radial-gradient(circle at 26% 74%, var(--die-pip) var(--o), transparent calc(var(--o) + 0.6px));
  --br: radial-gradient(circle at 74% 74%, var(--die-pip) var(--o), transparent calc(var(--o) + 0.6px));
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--s);
  height: var(--s);
  border-radius: calc(var(--s) * 0.22);
  border: 2px solid var(--die-border);
  background-color: var(--die-face);
  box-shadow: 0 max(2px, calc(var(--s) * 0.07)) 0 var(--die-key);
  margin-bottom: max(2px, calc(var(--s) * 0.07));
}
.die[data-v='1'] {
  background-image: var(--c);
}
.die[data-v='2'] {
  background-image: var(--tr), var(--bl);
}
.die[data-v='3'] {
  background-image: var(--tr), var(--c), var(--bl);
}
.die[data-v='4'] {
  background-image: var(--tl), var(--tr), var(--bl), var(--br);
}
.die[data-v='5'] {
  background-image: var(--tl), var(--tr), var(--c), var(--bl), var(--br);
}
.die[data-v='6'] {
  background-image: var(--tl), var(--tr), var(--ml), var(--mr), var(--bl), var(--br);
}
.die.sel {
  --die-face: var(--blue);
  --die-border: var(--blue-deep);
  --die-key: var(--blue-deep);
  --die-pip: var(--on-blue);
  transform: translateY(calc(var(--s) * 0.035));
  box-shadow: 0 max(1px, calc(var(--s) * 0.035)) 0 var(--die-key);
}
.die[data-badge]::after {
  content: attr(data-badge);
  position: absolute;
  top: calc(var(--s) * -0.12);
  right: calc(var(--s) * -0.12);
  min-width: calc(var(--s) * 0.4);
  height: calc(var(--s) * 0.4);
  padding: 0 3px;
  border-radius: 99px;
  border: 2px solid var(--paper);
  background: var(--blue-deep);
  color: var(--on-blue);
  font-size: calc(var(--s) * 0.23);
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.die.s22 {
  --s: 22px;
  border-width: 1.5px;
}
.die.s36 {
  --s: 36px;
}
.die.s52 {
  --s: 52px;
}
.die.s60 {
  --s: 60px;
}

/* ---------- App icon (CSS version, same drawing as the app's) ---------- */

.app-icon {
  flex: none;
  border-radius: 22.37%;
  overflow: hidden;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 20;
}
.site-header .wrap {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand .app-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--rule);
}
.spacer {
  flex: 1;
}
.nav {
  display: none;
  gap: 4px;
}
.nav a {
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink2);
  text-decoration: none;
}
.nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--track);
}
.seg {
  display: flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--track);
}
.seg a,
.seg button {
  min-width: 40px;
  height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink2);
  background: transparent;
  cursor: pointer;
}
.seg [aria-current='true'],
.seg [aria-pressed='true'] {
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.seg .i {
  width: 18px;
  height: 18px;
}
.theme-seg {
  display: none;
}
.menu-btn {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  border: 1.5px solid var(--rule2);
  background: var(--card);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-panel {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 64px;
  border-radius: 20px;
  border: 1px solid var(--rule2);
  background: var(--card);
  box-shadow: 0 12px 40px var(--shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-panel[hidden] {
  display: none;
}
.menu-panel a {
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.menu-panel a[aria-current='page'] {
  background: var(--track);
}
.menu-panel .menu-theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px 4px 12px;
  border-top: 1px solid var(--rule);
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink2);
}

/* ---------- Download banners ---------- */

.android-banner {
  display: none;
  height: 68px;
  padding: 0 6px 0 4px;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-bottom: 1px solid var(--rule);
}
.platform-android .android-banner.show {
  display: flex;
}
.android-banner .close {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  background: none;
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.android-banner .app-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.android-banner .txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.android-banner .txt b {
  font-size: 15px;
}
.android-banner .txt span {
  font-size: 13px;
  color: var(--ink2);
}
.pill {
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  background: var(--blue);
  color: var(--on-blue);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}

/* ---------- Store badges ---------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.badges.center {
  justify-content: center;
}
.badges .store {
  display: flex;
  border-radius: 9px;
}
.badges .store img {
  height: 48px;
  width: auto;
}
.badges.small .store img {
  height: 40px;
}
.also {
  display: none;
  min-height: 44px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.qr {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--card);
}
.qr img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}
.qr span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 150px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink2);
}
.qr b {
  font-size: 14px;
  color: var(--ink);
}
/* iPhone: App Store only (the native Smart App Banner does the rest).
   Android: Google Play only. Computer: both, and the QR code. */
.platform-ios .store.google,
.platform-android .store.apple {
  display: none;
}
.platform-ios .also.google,
.platform-android .also.apple {
  display: flex;
}
.platform-desktop .qr {
  display: flex;
}
.badges.no-qr .qr {
  display: none;
}

/* ---------- Buttons ---------- */

.btn {
  height: 56px;
  padding: 0 24px;
  border-radius: 16px;
  background: var(--blue);
  color: var(--on-blue);
  box-shadow: 0 4px 0 var(--blue-deep);
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--blue-deep);
}
.link-arrow {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.link-arrow .i {
  width: 18px;
  height: 18px;
}

/* ---------- Cards and sections ---------- */

.card {
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--rule);
}
.section {
  padding: 44px 0;
}
.section > .wrap,
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
}
.section-head h2 {
  font-size: 30px;
  letter-spacing: -0.02em;
}
.section-head p {
  font-size: 17px;
  color: var(--ink2);
}
.icon-tile {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--track);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.row-split {
  display: flex;
  flex-direction: column;
  gap: 12px 24px;
  align-items: flex-start;
  justify-content: space-between;
}

/* ---------- Home: hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 40px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
:lang(fr) .hero h1 {
  font-size: 40px;
}
.hero .lead {
  font-size: 17px;
  color: var(--ink2);
  max-width: 520px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 0;
  list-style: none;
}
.chips li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.chips .i {
  width: 16px;
  height: 16px;
  color: var(--blue);
  stroke-width: 2.75;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 12px 0 8px;
}
.hero-sheet {
  position: absolute;
  top: 50px;
  width: 270px;
  height: 405px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: var(--card) repeating-linear-gradient(var(--card) 0 31px, var(--line) 31px 32px);
  transform: rotate(-5deg);
}
.hero-sheet::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34px;
  width: 1.5px;
  background: var(--margin);
}
.phone {
  position: relative;
  width: 234px;
  aspect-ratio: 390 / 844;
  border-radius: 31px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 6px #1d2027, 0 30px 60px rgba(0, 0, 0, 0.22);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Until the screenshots are in place: the frame stays, on paper. */
.phone img.missing {
  visibility: hidden;
}

/* ---------- Home: features ---------- */

.calc-card {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border-radius: 24px;
}
.calc-card h3 {
  font-size: 24px;
  line-height: 1.2;
}
.calc-card p {
  color: var(--ink2);
}
.calc-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc-text .icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}
.calc-demo {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.calc-demo .faces {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
}
.calc-demo .faces .die {
  --s: 40px;
}
.calc-demo .total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px dashed var(--rule2);
  padding-top: 12px;
}
.calc-demo .total .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink2);
}
.calc-demo .big {
  display: inline-block;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  padding: 0 8px;
  margin-left: -4px;
  border-radius: 7px 12px 9px 5px;
  background: var(--hl);
  color: var(--hl-ink);
  transform: rotate(-1deg);
}
.calc-demo .plus {
  text-align: right;
}
.calc-demo .plus b {
  display: block;
  font-size: 22px;
  color: var(--blue);
}
.calc-demo .plus span {
  font-size: 13px;
  color: var(--ink2);
}
.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 0;
  list-style: none;
}
.features li {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.features h3 {
  font-size: 18px;
  line-height: 1.25;
}
.features p {
  font-size: 15px;
  color: var(--ink2);
}
.free-note {
  border-radius: 20px;
  border: 2px dashed var(--ink);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px 20px;
}
.free-note .hand {
  font-size: 40px;
  line-height: 0.9;
  color: var(--blue);
  transform: rotate(-2deg);
  flex: none;
}
.free-note p {
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
}

/* ---------- Home: rules in 30 seconds ---------- */

.band {
  background: var(--card);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 0;
  list-style: none;
}
.steps li {
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.band .steps li {
  background: var(--paper);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.num {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 15px;
  border: 1.5px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 {
  font-size: 18px;
}
.steps p {
  font-size: 15px;
  color: var(--ink2);
}
.dice-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  min-height: 44px;
}
.struck {
  position: relative;
  margin-left: 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink2);
}
.struck::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: 52%;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(-8deg);
}
.vary {
  max-width: 700px;
}

/* ---------- Home: Score Sheet Plus ---------- */

.plus-card {
  border-radius: 28px;
  border: 2px solid var(--ink);
  background: var(--card);
  padding: 22px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.plus-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plus-copy .kicker {
  color: var(--blue);
  letter-spacing: 0.1em;
}
.plus-copy h2 {
  font-size: 30px;
  letter-spacing: -0.02em;
}
.risk-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px 8px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--rule2);
  background: var(--paper);
}
.risk-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 22px;
  flex: none;
}
.risk-bars i {
  width: 7px;
  border-radius: 2px;
  background: var(--ink);
}
.risk-bars i:nth-child(1) {
  height: 10px;
}
.risk-bars i:nth-child(2) {
  height: 16px;
}
.risk-bars i:nth-child(3) {
  height: 22px;
  background: none;
  border: 1.5px solid var(--ink);
}
.risk-pill span:not(.risk-bars) {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink2);
}
.risk-pill b {
  font-size: 14px;
  color: var(--ink);
}
.checks {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checks li {
  display: flex;
  gap: 10px;
  line-height: 1.4;
}
.checks .i {
  color: var(--blue);
  stroke-width: 2.5;
  margin-top: 1px;
}
.prices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.price {
  border-radius: 18px;
  border: 1px solid var(--rule2);
  background: var(--paper);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.price.best {
  border: 2px solid var(--ink);
}
.price div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.price b {
  font-size: 20px;
}
/* The line under a price, not the "save" pill beside it. */
.price div span {
  font-size: 14px;
  color: var(--ink2);
}
.save {
  height: 26px;
  padding: 0 9px;
  border-radius: 13px;
  background: var(--hl);
  color: var(--hl-ink);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.price-note {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink2);
}
.still-free {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.faq h2 {
  font-size: 30px;
  letter-spacing: -0.02em;
}
.faq-list {
  overflow: hidden;
}
.faq-list details {
  border-bottom: 1px solid var(--rule);
}
.faq-list details:last-child {
  border-bottom: 0;
}
.faq-list summary {
  min-height: 60px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary span {
  flex: 1;
}
.faq-list summary .i {
  transition: transform 160ms ease-out;
}
.faq-list details[open] summary .i {
  transform: rotate(180deg);
}
.faq-list details p {
  padding: 0 16px 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink2);
}

/* ---------- Final call ---------- */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--rule);
  background: var(--card) repeating-linear-gradient(var(--card) 0 39px, var(--line) 39px 40px);
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.cta::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 1.5px;
  background: var(--margin);
}
.cta > * {
  position: relative;
}
.cta h2 {
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 620px;
}

/* ---------- Text pages ---------- */

.page {
  padding: 28px 0 48px;
}
.page > .wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.page-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
}
.page-head h1 {
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.page-head p {
  font-size: 17px;
  color: var(--ink2);
}
.page-head .updated {
  font-size: 14px;
  color: var(--ink2);
}
.contact-card {
  border-radius: 22px;
  border: 2px solid var(--ink);
  background: var(--card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px 24px;
  align-items: flex-start;
}
.contact-card .icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 24px;
}
.contact-card div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-card b {
  font-size: 18px;
}
.contact-card span {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink2);
}
.contact-card .btn {
  height: 52px;
  padding: 0 20px;
  font-size: 16px;
  max-width: 100%;
}
.grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.topic {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-margin-top: 24px;
}
.topic-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topic-head .icon-tile {
  width: 36px;
  height: 36px;
}
.topic-head .i {
  width: 18px;
  height: 18px;
}
.topic h2 {
  font-size: 18px;
  line-height: 1.3;
}
.topic ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
}
.topic .note {
  font-size: 14px;
  color: var(--ink2);
  border-top: 1px dashed var(--rule2);
  padding-top: 10px;
}
.topic .links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.ext {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}
.ext .i {
  width: 15px;
  height: 15px;
}

/* Rules page */
.rules-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 0;
  list-style: none;
}
.rules-steps li {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rules-steps h2 {
  font-size: 18px;
}
.rules-steps p {
  font-size: 15px;
  color: var(--ink2);
}
.block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.block > h2 {
  font-size: 24px;
  letter-spacing: -0.015em;
}
.score-table {
  overflow: hidden;
}
.score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.score-row:last-child {
  border-bottom: 0;
}
.score-row.head {
  border-bottom: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink2);
}
.score-row.head .variant {
  display: none;
}
.score-row .name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
}
.score-row .mini {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}
.score-row .pts {
  font-size: 18px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.score-row.head .pts {
  font-size: 12px;
}
.score-row .variant {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink2);
}
.small-note {
  font-size: 14px;
  color: var(--ink2);
}
.variant-card {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.variant-card h3 {
  font-size: 17px;
}
.variant-card p {
  font-size: 15px;
  color: var(--ink2);
}
.app-card {
  border-radius: 24px;
  border: 2px solid var(--ink);
  background: var(--card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px 28px;
  align-items: flex-start;
  justify-content: space-between;
}
/* The text block, not the store badges beside it. */
.app-card > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 520px;
}
.app-card .badges {
  flex: none;
}
.app-card b {
  font-size: 20px;
}
.app-card span {
  font-size: 15px;
  color: var(--ink2);
}

/* Long text pages */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.toc {
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 14px 8px 8px;
}
.toc .kicker {
  display: block;
  padding: 0 10px 6px;
  font-size: 12px;
}
.toc ol {
  list-style: none;
  padding: 0;
}
.toc a {
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.toc a:hover {
  background: var(--track);
}
.toc a span {
  width: 20px;
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
}
.doc-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.doc-body section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-margin-top: 24px;
}
.doc-body h2 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: flex;
  gap: 10px;
}
.doc-body h2 .n {
  color: var(--ink2);
}
.doc-body p,
.doc-body li {
  font-size: 16px;
  line-height: 1.65;
}
.doc-body ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.todo {
  border-radius: 14px;
  border: 1.5px dashed var(--rule2);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink2);
}
.todo .i {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.todo b {
  color: var(--ink);
}
.facts {
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.facts div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
.facts div:last-child {
  border-bottom: 0;
}
.facts dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink2);
}
.facts dd {
  font-size: 16px;
  line-height: 1.5;
}
.facts dd.fill,
.doc-body p.fill {
  color: var(--ink2);
  font-style: italic;
}

/* 404 */
.lost {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px var(--gutter) 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.lost .dice {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}
.lost .dice .die {
  --s: 48px;
}
.lost .dice .die:nth-child(1) {
  transform: rotate(-14deg);
}
.lost .dice .die:nth-child(2) {
  transform: translateY(-8px) rotate(9deg);
}
.lost .dice .die:nth-child(3) {
  transform: translateY(4px) rotate(-6deg);
}
.lost .dice .die:nth-child(4) {
  transform: translateY(-4px) rotate(16deg);
}
.lost .hand {
  font-size: 76px;
  line-height: 0.85;
  color: var(--red);
  transform: rotate(-3deg);
}
.lost h1 {
  font-size: 34px;
  letter-spacing: -0.02em;
}
.lost p {
  font-size: 17px;
  color: var(--ink2);
  max-width: 420px;
}
.lost .btn {
  margin-top: 6px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--rule);
}
.site-footer .wrap {
  padding-top: 32px;
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
}
.footer-brand .name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer-brand .app-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.footer-brand p {
  font-size: 15px;
  color: var(--ink2);
}
.footer-links {
  display: grid;
  grid-template-columns: minmax(0, auto);
  gap: 4px 32px;
  align-content: start;
  padding: 0;
  list-style: none;
}
.footer-links a,
.footer-links button {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.footer-bottom .legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 640px;
  font-size: 13px;
  color: var(--ink2);
}
.footer-bottom .legal a {
  color: var(--ink2);
}
.footer-lang {
  display: flex;
  gap: 4px;
  align-items: center;
  color: var(--ink2);
}
.footer-lang .i {
  width: 18px;
  height: 18px;
}
.footer-lang a {
  min-height: 44px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
}
.footer-lang a[aria-current='true'] {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Cookie consent (CNIL) ---------- */

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0 8px 8px;
}
.consent[hidden] {
  display: none;
}
.consent-box {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--rule2);
  box-shadow: 0 -6px 30px var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
}
.consent-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.consent-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.consent-text b,
.consent h2 {
  font-size: 16px;
  font-weight: 700;
}
.consent-text span,
.consent .intro {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink2);
}
.consent-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  flex: none;
}
.c-btn {
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.c-btn.solid {
  border: 0;
  background: var(--ink);
  color: var(--card);
}
.c-link {
  align-self: flex-start;
  min-height: 44px;
  margin: -10px 0 -12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.c-link .i {
  width: 16px;
  height: 16px;
}
.consent .panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.consent .panel-head h2 {
  font-size: 20px;
}
.round-btn {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 22px;
  border: 1.5px solid var(--rule2);
  background: var(--card);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.round-btn .i {
  width: 18px;
  height: 18px;
}
.purposes {
  border-radius: 16px;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.purpose {
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.purpose + .purpose {
  border-top: 1px solid var(--rule);
}
.purpose div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.purpose b {
  font-size: 15px;
}
.purpose span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink2);
}
.always {
  height: 28px;
  padding: 0 10px;
  flex: none;
  border-radius: 14px;
  background: var(--track);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink2);
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.switch {
  width: 52px;
  height: 32px;
  flex: none;
  border-radius: 16px;
  border: 0;
  padding: 0;
  position: relative;
  cursor: pointer;
  background: var(--rule2);
  margin-top: 2px;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: left 160ms ease-out;
}
.switch[aria-checked='true'] {
  background: var(--blue);
}
.switch[aria-checked='true']::after {
  left: 23px;
}
.panel-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.panel-buttons .solid {
  grid-column: 1 / -1;
}

/* ---------- Computer ---------- */

@media (min-width: 860px) {
  :root {
    --gutter: 32px;
  }
  .site-header .wrap {
    height: 72px;
  }
  .brand {
    font-size: 18px;
  }
  .nav,
  .theme-seg {
    display: flex;
  }
  .menu-btn,
  .menu-panel {
    display: none !important;
  }
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 72px;
  }
  .hero-copy {
    gap: 20px;
  }
  .hero h1 {
    font-size: 66px;
  }
  :lang(fr) .hero h1 {
    font-size: 60px;
  }
  .hero .lead {
    font-size: 19px;
  }
  .badges .store img {
    height: 52px;
  }
  .hero-sheet {
    top: 70px;
    width: 350px;
    height: 527px;
  }
  .phone {
    width: 304px;
    border-radius: 41px;
    box-shadow: 0 0 0 8px #1d2027, 0 30px 60px rgba(0, 0, 0, 0.22);
  }
  .section {
    padding: 72px 0;
  }
  .section > .wrap,
  .stack {
    gap: 28px;
  }
  .section-head h2,
  .plus-copy h2,
  .faq h2,
  .cta h2 {
    font-size: 40px;
  }
  .calc-demo .faces .die {
    --s: 52px;
  }
  .calc-card {
    padding: 28px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
  .features,
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .free-note,
  .row-split {
    flex-direction: row;
    align-items: center;
  }
  .plus-card {
    padding: 36px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
  .faq {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }
  .faq-section {
    padding-top: 24px;
  }
  .cta {
    padding: 56px 32px;
  }
  .cta::before {
    left: 56px;
  }
  .page {
    padding: 48px 0 72px;
  }
  .page > .wrap {
    gap: 28px;
  }
  .page-head h1 {
    font-size: 48px;
  }
  .page-head p {
    font-size: 19px;
  }
  .contact-card,
  .app-card {
    flex-direction: row;
    align-items: center;
  }
  .grid2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rules-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .block > h2 {
    font-size: 28px;
  }
  .score-row {
    grid-template-columns: minmax(0, 1.2fr) 110px minmax(0, 1fr);
  }
  .score-row .variant {
    grid-column: auto;
  }
  .score-row.head .variant {
    display: block;
  }
  .doc.has-toc {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .toc {
    position: sticky;
    top: 24px;
  }
  .doc-body h2 {
    font-size: 24px;
  }
  .facts div {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .lost {
    padding: 96px var(--gutter) 120px;
  }
  .lost .dice .die {
    --s: 60px;
  }
  .lost .hand {
    font-size: 96px;
  }
  .lost h1 {
    font-size: 48px;
  }
  .site-footer .wrap {
    padding-top: 44px;
    padding-bottom: 32px;
  }
  .footer-top,
  .footer-bottom {
    flex-direction: row;
  }
  .footer-bottom {
    align-items: center;
  }
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, auto));
  }
  .consent {
    padding: 0 24px 24px;
  }
  .consent-box {
    padding: 18px 20px;
  }
  .consent-box.panel {
    max-width: 560px;
  }
  .consent-row {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  .consent-buttons {
    min-width: 320px;
  }
  .panel-buttons {
    grid-template-columns: 1fr 1fr 1.3fr;
  }
  .panel-buttons .solid {
    grid-column: auto;
  }
}

/* ---------- Motion, as in the app ---------- */

/* The app's ease for things that land: dice, cards. */
:root {
  --land: cubic-bezier(0.3, 0.7, 0.4, 1);
}

/* Home opening: the highlighter is drawn, the phone rises, the sheet lands. */
.hero .hl {
  background: linear-gradient(var(--hl), var(--hl)) left center / 100% 100% no-repeat;
  animation: hl-draw 650ms 250ms var(--land) both;
}
@keyframes hl-draw {
  from {
    background-size: 0% 100%;
  }
}
.hero .phone {
  animation: rise 700ms 120ms var(--land) both;
}
.hero-sheet {
  animation: fade-in 600ms 380ms ease-out both;
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 40px;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* Revealed on scroll (classes set by site.js; without it, all is shown). */
.js .reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 500ms ease-out, translate 600ms var(--land);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in {
  opacity: 1;
  translate: none;
}

/* Dice fall onto the table, one after the other. */
@keyframes die-fall {
  from {
    opacity: 0;
    translate: 0 -48px;
    rotate: -35deg;
  }
}
.js .dice-fall:not(.in) .die {
  opacity: 0;
}
.dice-fall.in .die,
.lost .dice .die {
  animation: die-fall 500ms var(--land) both;
}
.dice-fall.in .die:nth-child(2),
.lost .dice .die:nth-child(2) {
  animation-delay: 80ms;
}
.dice-fall.in .die:nth-child(3),
.lost .dice .die:nth-child(3) {
  animation-delay: 160ms;
}
.dice-fall.in .die:nth-child(4),
.lost .dice .die:nth-child(4) {
  animation-delay: 240ms;
}
.dice-fall.in .die:nth-child(5) {
  animation-delay: 320ms;
}
.dice-fall.in .die:nth-child(6) {
  animation-delay: 400ms;
}

/* The lost points, struck in red pencil once the dice are down. */
.struck::after {
  transform-origin: left center;
}
.js .steps li:not(.in) .struck::after {
  scale: 0 1;
}
.steps li.in .struck::after {
  animation: strike 380ms 650ms ease-out both;
}
@keyframes strike {
  from {
    scale: 0 1;
  }
}

/* "Free." written by hand, left to right. */
.js .free-note:not(.in) .hand {
  clip-path: inset(0 100% 0 -12px);
}
.free-note.in .hand {
  animation: write 750ms 200ms ease-in-out both;
}
@keyframes write {
  from {
    clip-path: inset(0 100% 0 -12px);
  }
  to {
    clip-path: inset(0 -12px 0 -12px);
  }
}

/* Keys that press like the app's. */
.badges .store,
.pill,
.c-btn {
  transition: translate 90ms ease-out;
}
.badges .store:active,
.pill:active,
.c-btn:active {
  translate: 0 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
