/* Ace & Ink – the card table at night, seen from above. The felt is the page; paper, cards, the phone and a
   beer mat are objects lying on it. Colours from the app's Table theme (WCAG AA, tested there). */

@font-face {
  font-family: "Fraunces Display";
  src: url("fonts/AceInkFraunces-Display.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Fraunces Heading";
  src: url("fonts/AceInkFraunces-Heading.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --felt: #1b4a40;
  --felt-deep: #0d2722;
  --ivory: #f3ebdc;
  --ivory-2: #b9cdc5;
  --brass: #c9a55c;
  --paper: #f7f1e3;
  --rule: #c6d2de;
  --margin: #d07a70;
  --ink: #1f2d57;
  --ink-2: #5c6479;
  --seal: #a8322a;
  --mat: #ebdfc4;
  --wood: #3a2418;
  --lift: 0 1px 2px rgb(0 0 0 / 0.3), 0 14px 30px rgb(0 0 0 / 0.38);
  --drop: 0 2px 4px rgb(0 0 0 / 0.35), 0 30px 60px rgb(0 0 0 / 0.5);

  --display: "Fraunces Display", Georgia, serif;
  --heading: "Fraunces Heading", Georgia, serif;
  --text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --line: 2rem; /* the pad's ruling; text on paper sits on it */
  color-scheme: dark;

  /* The nap of the felt, the fibres of the paper. Inline SVG noise, no request. */
  /* The felt is not even: large soft patches where the nap lies differently (dark only, laid over the felt). */
  --mottle: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 900' preserveAspectRatio='none'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='3' seed='7'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 .04 0 0 0 0 .03 0 0 0 -.9 .5'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>");
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: 400 1rem/1.6 var(--text);
  color: var(--ivory);
  background: var(--felt);
  background-image: var(--grain), radial-gradient(ellipse 90% 60% at 50% 0, rgb(255 236 190 / 0.1), transparent 70%);
  background-blend-mode: soft-light, normal;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* The lamp's falloff: wherever you are on the table, the edges are in the dark. Behind the objects, over the felt. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 42%, transparent 45%, rgb(3 14 11 / 0.55) 100%),
    var(--mottle) center / cover no-repeat; /* one sheet, scaled, never tiled: no seams */
  opacity: 0.9;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; /* focus and hover states carry the feedback */
}
:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 6px;
}
.sheet :focus-visible {
  outline-color: var(--ink);
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 600;
}
.skip:focus {
  top: 1rem;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Type: 128 / 96 / 56 / 40 / 24 / 18 / 16 / 13. Fraunces large and tight, Instrument Sans for reading. */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}
h2 {
  font: 400 clamp(2.25rem, 5.2vw, 3.5rem) / 1 var(--display);
  letter-spacing: -0.02em;
}
h3 {
  font: 400 1.5rem/1.15 var(--heading);
}
.lede {
  font-size: 1.125rem;
  line-height: 1.55;
  margin: 0;
  max-width: 34em;
}
.small {
  font-size: 0.8125rem;
}

/* Header: lying on the felt, no bar. */
.top .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font: 400 1.375rem/1 var(--heading);
  margin-right: auto;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: var(--lift);
}
.top nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}
.top nav a:hover {
  background: rgb(255 255 255 / 0.08);
}
.top nav .lang {
  border: 1px solid rgb(243 235 220 / 0.35);
}

/* MARK: Hero — the claim set huge on the felt, the round written out on a pad sheet, the phone beside it. */
.hero {
  position: relative;
  padding-block: clamp(1.5rem, 5vw, 4rem) clamp(4rem, 10vw, 8rem);
}
/* The lamp over the table. */
.hero::before {
  content: "";
  position: absolute;
  inset: -5rem 0 0;
  background: radial-gradient(ellipse 50% 52% at 55% 50%, rgb(255 228 170 / 0.2), rgb(255 228 170 / 0.06) 55%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0 10%;
  pointer-events: none;
  background: radial-gradient(ellipse 30% 22% at 35% 40%, rgb(255 240 210 / 0.05), transparent 70%),
    radial-gradient(ellipse 26% 30% at 70% 55%, rgb(255 240 210 / 0.045), transparent 70%);
  filter: blur(8px);
}
.hero .wrap {
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}
.hero h1 {
  grid-column: 1 / -1;
  font: 400 clamp(3rem, 10.4vw, 8rem) / 0.9 var(--display);
  letter-spacing: -0.035em;
  text-wrap: initial;
}
.hero h1 span {
  display: block;
}
.hero h1 em {
  font-style: normal;
  color: var(--brass);
}
.intro {
  grid-column: 1 / span 4;
  padding-top: clamp(2rem, 5vw, 4.5rem);
}
.intro .lede {
  color: var(--ivory);
}
.soon {
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.soon .small {
  color: var(--ivory-2);
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--seal);
  background-image: linear-gradient(to bottom, rgb(255 255 255 / 0.12), transparent 60%);
  color: #fbf5ea;
  font-weight: 600;
  box-shadow: var(--lift);
}

/* Pad paper: ruled every --line, red margin, grain. */
.ledger,
.sheet {
  position: relative;
  background-color: var(--paper);
  background-image: var(--grain), repeating-linear-gradient(to bottom, transparent 0 calc(var(--line) - 1px), var(--rule) calc(var(--line) - 1px) var(--line));
  background-blend-mode: soft-light, normal;
  background-position: 0 0, 0 -0.45rem; /* the rule sits just under the baseline */
  color: var(--ink);
  border-radius: 4px 4px 14px 14px;
  box-shadow: var(--drop);
}
.ledger::before,
.sheet::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 clamp(2rem, 4.5vw, 3.25rem);
  width: 1px;
  background: var(--margin);
}

/* The signature: one Doppelkopf round, every point with its reason, the total ringed in red ink.
   It is also a calculator without script: ticks and choices feed a CSS counter, the total and the split read it. */
.ledger {
  --m: clamp(2rem, 4.5vw, 3.25rem); /* width of the margin column */
  grid-column: 5 / span 6;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding: var(--line) clamp(1.25rem, 3vw, 2.25rem) var(--line) calc(var(--m) + 1.25rem);
  rotate: -2.5deg;
  z-index: 3;
  counter-reset: pts 1; /* "won" is always one */
  font-variant-numeric: tabular-nums;
  line-height: var(--line);
}
.ledger .cap {
  margin: 0 0 var(--line);
  font: 400 1.5rem/var(--line) var(--heading);
}
.ledger .cap span {
  display: block;
  font: 400 0.9375rem/var(--line) var(--text);
  color: var(--ink-2);
}
.row {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0;
  min-height: var(--line);
  font-size: 1.0625rem;
}
.row > span {
  flex: 1;
}
.row b {
  font-size: 1.125rem;
  min-width: 2ch;
  text-align: right;
}
/* Ticks sit in the margin column, in red, like a checked list. */
.fixed::before,
.tick > span::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem - var(--m) / 2 - 0.55rem);
  top: 0.45rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 1.5px solid rgb(31 45 87 / 0.55);
  border-radius: 3px;
}
.fixed::after,
.tick:has(input:checked) > span::after {
  content: "";
  position: absolute;
  left: calc(-1.25rem - var(--m) / 2 - 0.2rem);
  top: 0.3rem;
  width: 0.45rem;
  height: 0.85rem;
  border: solid var(--seal);
  border-width: 0 2.5px 2.5px 0;
  rotate: 40deg;
}
.fixed::before {
  border-color: transparent;
}
.tick {
  cursor: pointer;
}
.tick input,
.eyes input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.tick b {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
}
.tick:has(input:checked) {
  counter-increment: pts 1;
}
.tick:has(input:checked) b {
  visibility: visible;
  opacity: 1;
}
.tick:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}
.tick:hover > span::before {
  border-color: var(--ink);
}
/* Kontra's points: one choice, worth 0 to 4. */
.eyes {
  border: 0;
  padding: 0;
  margin: 0;
  display: block;
}
.eyes legend {
  float: left;
  padding: 0;
  font-size: 1.0625rem;
}
.eyes > b {
  position: absolute;
  top: 0;
  right: 0;
}
.eyes .opts {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.3rem;
  padding-block: 0.25rem;
}
.eyes label {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid rgb(31 45 87 / 0.3);
  font-size: 0.8125rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.eyes label:hover {
  border-color: var(--ink);
}
.eyes label:has(:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.eyes label:has(:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.eyes:has(.e0:checked) > b::after { content: "–"; color: var(--ink-2); }
.eyes:has(.e1:checked) { counter-increment: pts 1; }
.eyes:has(.e1:checked) > b::after { content: "+1"; }
.eyes:has(.e2:checked) { counter-increment: pts 2; }
.eyes:has(.e2:checked) > b::after { content: "+2"; }
.eyes:has(.e3:checked) { counter-increment: pts 3; }
.eyes:has(.e3:checked) > b::after { content: "+3"; }
.eyes:has(.e4:checked) { counter-increment: pts 4; }
.eyes:has(.e4:checked) > b::after { content: "+4"; }
.total {
  align-items: center;
  min-height: calc(var(--line) * 3);
  margin-top: 0.5rem;
  border-top: 3px double var(--ink);
}
.total > span {
  font: 400 1.5rem/1 var(--heading);
}
.total .sum {
  position: relative;
  font-size: 3rem;
  line-height: 1;
  padding-right: 0.15em;
}
.sum .n::before {
  content: "+" counter(pts);
}
svg.ring {
  position: absolute;
  inset: -0.32em -0.4em -0.28em -0.5em;
  width: calc(100% + 0.9em);
  height: calc(100% + 0.6em);
  color: var(--seal);
  overflow: visible;
}
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  color: var(--ink-2);
}
.split b {
  color: var(--ink);
}
.split .re::before {
  content: "+" counter(pts);
}
.split .k::before {
  content: "−" counter(pts);
}
.split .k {
  color: var(--seal);
}

/* The phone: an object on the table, slightly turned. */
.phone {
  width: min(300px, 100%);
  aspect-ratio: 1206 / 2622;
  padding: 8px;
  border-radius: 44px;
  background: #0b0b0c;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06) inset, var(--drop);
}
.phone picture,
.phone img {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  object-fit: cover;
}
.hero .phone {
  grid-column: 10 / span 3;
  justify-self: end;
  width: 100%;
  max-width: 290px;
  margin-top: clamp(-15rem, -16vw, -6rem); /* rises beside the short last line of the claim */
  rotate: 5deg;
  z-index: 2;
}

/* MARK: Games — a hand of nine playing cards. */
.games {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(5rem, 10vw, 8rem);
  background-image: radial-gradient(ellipse 55% 50% at 50% 68%, rgb(255 228 170 / 0.12), transparent 72%);
}
.games .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem 3rem;
  align-items: end;
}
.games .aside {
  margin: 0;
  color: var(--ivory-2);
  max-width: 28em;
}
.hand {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}
.card {
  --r: 0deg;
  --y: 0rem;
  position: relative;
  flex: 0 0 13.25rem;
  aspect-ratio: 5 / 7;
  margin: -0.4rem -0.35rem;
  padding: 3.4rem 1.25rem 2.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--paper);
  background-image: var(--grain);
  background-blend-mode: soft-light;
  color: var(--ink);
  border-radius: 12px;
  box-shadow: var(--lift);
  transform: translateY(var(--y)) rotate(var(--r));
  transform-origin: 50% 120%;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 1px solid rgb(31 45 87 / 0.16);
  border-radius: 8px;
  pointer-events: none;
}
.card:hover {
  transform: translateY(calc(var(--y) - 1rem)) rotate(var(--r));
  z-index: 2;
}
.idx {
  position: absolute;
  top: 0.8rem;
  left: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font: 400 1.375rem/1 var(--heading);
}
.idx i {
  font: normal 400 1.125rem/1.1 Georgia, serif;
}
.idx svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
}
.idx-b {
  top: auto;
  left: auto;
  bottom: 0.8rem;
  right: 0.85rem;
  transform: rotate(180deg);
}
.card.red .idx {
  color: var(--seal);
}
.card h3 {
  font-size: 1.4rem;
}
.card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.card .src {
  margin-top: auto;
  font-size: 0.75rem;
  line-height: 1.35;
  font-style: italic;
  padding-right: 1.25rem; /* clear of the bottom index */
}
.card.joker {
  background-color: var(--ink);
  color: var(--ivory);
}
.card.joker::before {
  border-color: rgb(201 165 92 / 0.5);
}
.card.joker .idx {
  color: var(--brass);
}
.card.joker p {
  color: var(--ivory-2);
}
/* Two arcs, five and four, as if fanned in a hand. */
.card:nth-child(1) { --r: -7deg; --y: 1.6rem; }
.card:nth-child(2) { --r: -3.5deg; --y: 0.4rem; }
.card:nth-child(3) { --r: 0deg; --y: 0rem; }
.card:nth-child(4) { --r: 3.5deg; --y: 0.4rem; }
.card:nth-child(5) { --r: 7deg; --y: 1.6rem; }
.card:nth-child(6) { --r: -5deg; --y: 1.2rem; }
.card:nth-child(7) { --r: -1.7deg; --y: 0.2rem; }
.card:nth-child(8) { --r: 1.7deg; --y: 0.2rem; }
.card:nth-child(9) { --r: 5deg; --y: 1.2rem; }

/* MARK: Table — seen from above: the phone in the middle, four seats around it. */
.table {
  padding-block: clamp(3rem, 7vw, 6rem);
  background-image: radial-gradient(ellipse 42% 58% at 30% 50%, rgb(255 228 170 / 0.15), transparent 72%);
}
.table .wrap {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 3rem clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.board {
  position: relative;
  container-type: inline-size;
  width: min(100%, 34rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.board::before {
  content: "";
  position: absolute;
  inset: 4% 6%;
  border-radius: 50%;
  border: 1px solid rgb(201 165 92 / 0.45);
  box-shadow: 0 0 0 10px rgb(0 0 0 / 0.12), inset 0 0 60px rgb(0 0 0 / 0.25);
}
.board .phone {
  width: 34%;
  padding: 6px;
  border-radius: 32px;
  transform: rotate(-4deg);
}
.board .phone img {
  border-radius: 27px;
}
.seat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: 400 1.25rem/1 var(--heading);
  white-space: nowrap;
}
.seat i {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font: normal 400 0.9rem/1 var(--heading);
  color: var(--ivory);
  box-shadow: 0 0 0 2px rgb(243 235 220 / 0.85);
}
.seat.s i { background: #a8322a; }
.seat.w i { background: #1f2d57; }
.seat.n i { background: #5b3f7a; }
.seat.e i { background: #1f5a4a; }
.dealer {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin: -0.8rem;
  border-radius: 50%;
  background: var(--brass);
  color: var(--felt-deep);
  font: 600 0.8rem/1 var(--text);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.4);
  translate: 13cqi -46cqi; /* beside Anna, who deals in the screenshot */
}
.seat.s { bottom: 0; left: 50%; transform: translateX(-50%); }
.seat.n { top: 0; left: 50%; transform: translateX(-50%) rotate(180deg); }
.seat.w { left: 0; top: 50%; transform: translate(-30%, -50%) rotate(90deg); }
.seat.e { right: 0; top: 50%; transform: translate(30%, -50%) rotate(-90deg); }
.copy dl {
  margin: 2rem 0 0;
}
.copy dt {
  font: 400 1.25rem/1.3 var(--heading);
  color: var(--brass);
  margin-top: 1.25rem;
}
.copy dd {
  margin: 0.2rem 0 0;
  color: var(--ivory-2);
}
.copy .lede {
  margin-top: 1.25rem;
}

/* MARK: Promise — three refusals, set as large as the claim. */
.promise {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--felt-deep);
  background-image: var(--grain);
  background-blend-mode: soft-light;
}
.promise ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.promise li {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 0.5rem 3rem;
  align-items: end;
  padding-block: clamp(1rem, 2.5vw, 1.75rem);
  border-top: 1px solid rgb(201 165 92 / 0.35);
}
.promise li:last-child {
  border-bottom: 1px solid rgb(201 165 92 / 0.35);
}
.promise strong {
  font: 400 clamp(2.75rem, 8vw, 6rem) / 0.95 var(--display);
  letter-spacing: -0.03em;
}
.promise strong i {
  font-style: normal;
  color: var(--brass);
}
.promise p {
  margin: 0 0 0.5rem;
  color: var(--ivory-2);
}

/* MARK: Pro — the list on a pad sheet, the price on a beer mat beside it. */
.pro {
  padding-block: clamp(4.5rem, 10vw, 8rem) clamp(4rem, 9vw, 7rem);
  position: relative;
  background-image: radial-gradient(ellipse 55% 65% at 45% 55%, rgb(255 228 170 / 0.13), transparent 72%);
}
/* Where a glass stood, next to the beer mat. */
.pro::after {
  content: "";
  position: absolute;
  right: max(2%, calc(50% - 46rem));
  bottom: 12%;
  width: 11rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(ellipse 50% 48% at 52% 50%, transparent 82%, rgb(4 18 14 / 0.22) 88%, rgb(4 18 14 / 0.1) 94%, transparent 99%);
  filter: blur(1.5px);
  pointer-events: none;
}
.pro .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.pro .sheet {
  grid-column: 1 / span 10;
  grid-row: 1;
  padding: calc(var(--line) * 1.5) clamp(1.5rem, 5vw, 3.5rem) var(--line) calc(clamp(2rem, 4.5vw, 3.25rem) + clamp(1.25rem, 3vw, 2.25rem));
  transform: rotate(-0.8deg);
}
.pro h2 {
  max-width: 13em;
}
.pro .cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 3rem;
  margin-top: var(--line);
}
.pro h3 {
  line-height: var(--line);
  padding-bottom: calc(var(--line) / 2);
}
.pro ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: var(--line);
}
.pro .note {
  margin: var(--line) 0 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: var(--line);
}
.coaster {
  grid-column: 9 / span 4;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  z-index: 2;
  width: min(17rem, 100%);
  aspect-ratio: 1;
  margin: -3.5rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 50%;
  background: var(--mat);
  background-image: var(--grain), radial-gradient(circle, transparent 62%, rgb(168 50 42 / 0.9) 62.4% 63.6%, transparent 64%);
  background-blend-mode: multiply, normal;
  color: var(--ink);
  box-shadow: var(--drop);
  transform: rotate(9deg);
  text-align: center;
}
.coaster span {
  font-size: 0.875rem;
  color: var(--ink-2);
}
.coaster span:first-child {
  font: 600 0.75rem/1 var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--seal);
}
.coaster strong {
  font: 400 clamp(2.25rem, 4vw, 3rem) / 1 var(--display);
  letter-spacing: -0.02em;
}
.tally {
  width: 3.5rem;
  color: #5d5a52;
  margin-top: 0.25rem;
}

/* MARK: Legal and support pages: one long sheet on the felt. */
.doc {
  padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3.5rem, 8vw, 6rem);
}
.doc .sheet {
  max-width: 52rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3.5rem)
    calc(clamp(2rem, 4.5vw, 3.25rem) + clamp(1.25rem, 3vw, 2.25rem));
  line-height: 1.7;
  background-image: var(--grain);
  border-radius: 14px;
}
.doc h1 {
  font: 400 clamp(2.25rem, 5vw, 3.25rem) / 1 var(--display);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.doc h2 {
  font: 400 1.5rem/1.25 var(--heading);
  margin: 2.25rem 0 0.5rem;
}
.doc h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.25rem;
}
.doc p,
.doc ul {
  margin: 0.5rem 0;
}
.doc .stand {
  color: var(--ink-2);
  font-size: 0.875rem;
}
.doc details {
  border-top: 1px solid var(--rule);
  padding: 0.75rem 0;
}
.doc summary {
  cursor: pointer;
  font: 400 1.125rem/1.4 var(--heading);
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* MARK: Footer — the wooden rim of the table. */
.foot {
  background: linear-gradient(to bottom, #4a2f20, var(--wood) 30%, #24150d);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 -10px 24px rgb(0 0 0 / 0.35);
  color: #d9c9b4;
  padding-block: 2.25rem;
  font-size: 0.9375rem;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
}
.foot p {
  margin: 0;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-left: auto;
}
.foot a {
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* MARK: Props — things lying on the table. Decorative, hidden from assistive tech. */
.cardback {
  display: block;
  width: 9rem;
  aspect-ratio: 5 / 7;
  border-radius: 10px;
  border: 0.4rem solid var(--paper);
  background-color: var(--ink);
  background-image: radial-gradient(circle at 50% 50%, var(--ink) 0 1.3rem, transparent 1.35rem),
    repeating-linear-gradient(45deg, rgb(201 165 92 / 0.28) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(-45deg, rgb(201 165 92 / 0.28) 0 1px, transparent 1px 8px);
  box-shadow: inset 0 0 0 0.35rem var(--ink), inset 0 0 0 calc(0.35rem + 1px) rgb(201 165 92 / 0.7), var(--lift);
  position: relative;
}
.cardback::after {
  content: "♠\FE0E";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 400 1.6rem/1 Georgia, serif;
  color: var(--brass);
}
.prop {
  position: absolute;
  pointer-events: none;
}
.hero .c1 {
  left: -2.75rem;
  bottom: 2.5rem;
  rotate: -18deg;
}
.hero .c2 {
  right: -3.5rem;
  top: 5.5rem;
  rotate: 74deg;
}
.pencil {
  position: absolute;
  right: 18%;
  bottom: -2.4rem;
  width: 17rem;
  height: auto;
  rotate: -7deg;
  filter: drop-shadow(0 6px 5px rgb(0 0 0 / 0.4));
  pointer-events: none;
}
.deck {
  position: absolute;
  top: 2%;
  left: -1%;
  width: 17cqi;
  rotate: -14deg;
}
.deck .cardback {
  width: 100%;
  border-width: 0.3rem;
  font-size: 0.8em;
}
.deck .cardback + .cardback {
  position: absolute;
  inset: 0;
}
.deck .cardback:nth-child(2) { translate: -2px -3px; rotate: -2deg; }
.deck .cardback:nth-child(3) { translate: -4px -6px; rotate: 1.5deg; }

/* MARK: Narrower tables */
@media (max-width: 72rem) {
  /* The hand becomes a row to swipe through. */
  .hand {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    padding: 1.5rem var(--gutter) 2.5rem;
    scrollbar-width: none;
  }
  .hand::-webkit-scrollbar {
    display: none;
  }
  .card {
    margin: 0 -0.25rem;
    scroll-snap-align: start;
    --y: 0rem;
  }
  .card:nth-child(odd) { --r: -1.5deg; }
  .card:nth-child(even) { --r: 1.5deg; }
  .card:hover {
    transform: translateY(-0.5rem) rotate(var(--r));
  }
}
@media (max-width: 1240px) {
  .hero .c2 {
    display: none;
  }
}
@media (max-width: 960px) {
  .hero .c1 {
    display: none;
  }
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .intro {
    grid-column: 1 / -1;
    padding-top: 1.75rem;
  }
  .ledger {
    grid-column: 1 / span 2;
    grid-row: 3;
    margin-top: 2.5rem;
    width: min(100%, 30rem);
  }
  .hero .phone {
    grid-column: 2;
    grid-row: 3;
    width: min(62%, 230px);
    margin-top: 11rem; /* no room beside the claim here */
    margin-right: -0.5rem;
  }
  .games .wrap,
  .table .wrap,
  .promise li {
    grid-template-columns: minmax(0, 1fr);
  }
  .board {
    justify-self: center;
    order: 2;
  }
  .pro .sheet {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .coaster {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: end;
    width: 13rem;
    margin: 0 0.5rem -4rem 0;
  }
  .pro h2 {
    max-width: calc(100% - 8rem);
  }
  .top nav a:not(.lang) {
    display: none;
  }
}
@media (max-width: 640px) {
  .hero .phone {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: end;
    width: min(58%, 220px);
    margin-top: -1.25rem; /* tucks under the sheet's corner, clear of the points line */
  }
  .ledger {
    width: 88%;
  }
  .pro .cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .pro .cols > div + div {
    margin-top: var(--line);
  }
  .pro h2 {
    max-width: none;
    padding-top: 4rem;
  }
  .seat {
    font-size: 1rem;
  }
  .pencil {
    width: 12rem;
    right: 8%;
    bottom: -1.9rem;
  }
  .seat i {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.75rem;
  }
}

/* MARK: Motion — only for those who have not asked for less. */
@media (prefers-reduced-motion: no-preference) {
  /* Opening: the lamp comes on, the pad is laid down and written, the total ringed, the phone dropped beside it. */
  .hero::before {
    animation: lamp 1.6s ease-out both;
  }
  .hero::after {
    animation: haze 38s ease-in-out infinite alternate;
  }
  .pencil {
    animation: slide 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 2.3s both;
  }
  .ledger {
    animation: lay 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
  }
  .ledger .cap,
  .ledger .row,
  .ledger .split {
    animation: write 0.45s ease-out both;
  }
  .ledger .cap { animation-delay: 0.6s; }
  .ledger .fixed { animation-delay: 0.8s; }
  .ledger .eyes { animation-delay: 0.95s; }
  .ledger .tick:nth-of-type(1) { animation-delay: 1.1s; }
  .ledger .tick:nth-of-type(2) { animation-delay: 1.25s; }
  .ledger .tick:nth-of-type(3) { animation-delay: 1.4s; }
  .ledger .total { animation-delay: 1.55s; }
  .ledger .split { animation-delay: 2.2s; }
  svg.ring path {
    stroke-dasharray: 1;
    animation: draw 0.6s ease-in-out 1.75s both;
  }
  .hero .phone {
    animation: drop 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
  }

  /* The cards are dealt from one pile into the fan as the hand scrolls into view. */
  @supports (animation-timeline: view()) {
    @media (min-width: 72.01rem) {
      .hand {
        view-timeline: --hand block;
      }
      .card {
        animation: deal linear both;
        animation-timeline: --hand;
        animation-range: entry calc(5% + var(--i) * 7%) entry calc(55% + var(--i) * 5%);
      }
    }
    .promise strong {
      animation: ink linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 90%;
    }
    .tally path {
      stroke-dasharray: 1;
      animation: draw linear both;
      animation-timeline: view();
    }
    .tally path:nth-child(1) { animation-range: entry 60% cover 40%; }
    .tally path:nth-child(2) { animation-range: entry 70% cover 42%; }
    .tally path:nth-child(3) { animation-range: entry 80% cover 44%; }
    .tally path:nth-child(4) { animation-range: entry 90% cover 46%; }
    .tally path:nth-child(5) { animation-range: entry 100% cover 49%; }
    .tally path:nth-child(6) { animation-range: cover 40% cover 51%; }
    .tally path:nth-child(7) { animation-range: cover 42% cover 53%; }
  }

  /* The deal passes on round the table: Anna, Tom, Lena, Max. */
  .dealer {
    animation: deal-on 16s cubic-bezier(0.6, 0, 0.3, 1) 2.5s infinite;
  }
  .coaster {
    transition: rotate 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .coaster:hover {
    rotate: -4deg;
  }
}
.card:nth-child(1) { --i: 0; --dx: 2; }
.card:nth-child(2) { --i: 1; --dx: 1; }
.card:nth-child(3) { --i: 2; --dx: 0; }
.card:nth-child(4) { --i: 3; --dx: -1; }
.card:nth-child(5) { --i: 4; --dx: -2; }
.card:nth-child(6) { --i: 5; --dx: 1.5; }
.card:nth-child(7) { --i: 6; --dx: 0.5; }
.card:nth-child(8) { --i: 7; --dx: -0.5; }
.card:nth-child(9) { --i: 8; --dx: -1.5; }
@keyframes lamp {
  0% { opacity: 0; }
  30% { opacity: 0.9; }
  36% { opacity: 0.35; }
  44% { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes slide {
  from { opacity: 0; translate: 3rem 2.5rem; }
}
@keyframes haze {
  to { translate: 6% -4%; scale: 1.15; }
}
@keyframes lay {
  from { opacity: 0; translate: -2rem 5rem; rotate: -9deg; }
}
@keyframes write {
  from { clip-path: inset(-0.5rem 100% -0.5rem -4rem); }
  to { clip-path: inset(-0.5rem -1rem -0.5rem -4rem); }
}
@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes drop {
  from { translate: 3rem 4rem; rotate: 14deg; }
}
@keyframes deal {
  from { opacity: 0; translate: calc(var(--dx) * 13rem) -10rem; rotate: calc(var(--dx) * 8deg); }
  40% { opacity: 1; }
}
@keyframes ink {
  from { clip-path: inset(-20% 100% -25% 0); }
  to { clip-path: inset(-20% -5% -25% 0); }
}
@keyframes deal-on {
  0%, 21% { translate: 13cqi -46cqi; }
  25%, 46% { translate: 46cqi 13cqi; }
  50%, 71% { translate: -13cqi 46cqi; }
  75%, 96% { translate: -46cqi -13cqi; }
  100% { translate: 13cqi -46cqi; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card {
    transition: none;
  }
}
@media print {
  .top nav,
  .phone,
  .board,
  .foot nav {
    display: none;
  }
  body {
    background: none;
    color: #000;
  }
  .sheet,
  .ledger {
    transform: none !important;
    box-shadow: none;
  }
}
