/* Rituel — "La table": the card-selection screen.
 * Layouts: ≥1100px a full-height right-hand rail (filters + Ton jeu), the bar over the grid
 * only; 761–1099px a slim bar with search + Filtres and a one-line bottom tray; ≤760px the
 * same, filters in a bottom sheet. The Grille / Découverte switch sits next to the title. */
:root {
  --ground: #f2eadb;
  --surface: #e9dfcc;
  --surface-2: #e2d6bf;
  --paper: #fbf7ef;
  --ink: #23161a;
  --muted: #5d4c4f;
  --bordeaux: #5a1a22;
  --bordeaux-2: #6e2530;
  --gold: #b8913c;
  --gold-2: #dcb45f;
  --gold-ink: #7d5e1c; /* gold as text on light grounds (5:1) */
  --seal: #c9a24a;
  --cream: #f6eedf;

  /* Levels: cream marble, bordeaux marble, black marble.
   * Three different lightnesses + a hue step, so they separate even at 8px. */
  --l1: #ddd0b4;          /* stone */
  --l1-line: #957a47;     /* its outline, the stone would vanish on the ground without it */
  --l2: #8e2b37;          /* bordeaux, lifted so it never reads as black */
  --l3: #17110f;          /* ink-black */
  --lv1-bg: linear-gradient(rgb(190 168 120 / .42), rgb(190 168 120 / .42)), url(/textures/marbre-creme-s.jpg) 40% 40% / 260px;
  --lv2-bg: linear-gradient(rgb(160 44 58 / .5), rgb(160 44 58 / .5)), url(/textures/marbre-bordeaux-s.jpg) 30% 60% / 260px;
  --lv3-bg: url(/textures/marbre-noir-s.jpg) 60% 30% / 260px;

  --display: "Young Serif", Georgia, serif;
  --text: "Source Serif 4", Georgia, serif;

  --m: 40px;
  --bar-h: 68px;
  --rail-w: 380px;
  --tray-h: 0px;          /* the bottom tray only exists below 1100px */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --r-card: 4.8% / 3.43%;
  --card-shadow: 0 1px 2px rgb(35 22 26 / .12), 0 10px 24px -14px rgb(35 22 26 / .5);
  --card-shadow-up: 0 2px 4px rgb(35 22 26 / .12), 0 26px 40px -20px rgb(35 22 26 / .55);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { display: block; }
h2 { font-weight: 400; }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--bordeaux); color: var(--cream); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn, .btn-quiet {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px;
  font: 600 1rem/1 var(--text); white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, opacity 200ms ease;
}
.btn { background: var(--bordeaux); color: var(--cream); }
.btn-quiet { background: var(--surface); color: var(--ink); }
.btn:active, .btn-quiet:active { transform: scale(.97); }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); cursor: default; }
.btn[aria-disabled="true"]:active { transform: none; }
.btn-quiet[aria-disabled="true"] { color: rgb(93 76 79 / .6); }
.btn-quiet svg, .btn svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .btn:not([aria-disabled="true"]):hover { background: var(--bordeaux-2); }
  .btn-quiet:hover { background: var(--surface-2); }
}
.link { background: none; border: 0; padding: 6px 0; min-height: 44px; color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; font-size: .9375rem; }

/* ---------- Top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  height: var(--bar-h); padding: 0 var(--m);
  background: var(--ground);
  container-type: inline-size;
}
.home { flex: none; font: 400 1.5rem/1 var(--display); color: var(--bordeaux); text-decoration: none; }
.bar h1 { flex: none; margin: 0; font: 400 1.625rem/1.1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.bar .seg { flex: none; margin-left: -8px; }
.bar-sub { flex: 1 1 auto; margin: 0; font-size: .9375rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; text-align: right; }
.bar-tools { display: flex; align-items: center; gap: 10px; min-width: 0; margin-left: auto; }
.bar-tools:empty { display: none; }
/* The intro line only shows when it fits whole: a cut sentence reads worse than none. */
@container (max-width: 1120px) { .bar-sub { display: none; } }

.seg {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 14px; background: var(--surface);
}
.seg button {
  position: relative; z-index: 1; min-height: 40px; padding: 0 18px; border: 0; background: none;
  border-radius: 10px; font-weight: 600; font-size: .9375rem; color: var(--muted);
  transition: color 200ms ease;
}
.seg button[aria-checked="true"] { color: var(--ink); }
.seg-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--paper); border-radius: 10px;
  box-shadow: 0 1px 2px rgb(35 22 26 / .1);
  transition: transform 260ms var(--ease-out);
}
.seg[data-mode="discover"] .seg-thumb { transform: translateX(100%); }

.fbtn {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px;
  background: var(--surface); font-weight: 600; font-size: .9375rem;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.fbtn:active { transform: scale(.97); }
.fbtn[aria-expanded="true"] { background: var(--surface-2); }
.fbadge {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--bordeaux); color: var(--cream); font-size: .8125rem; font-variant-numeric: tabular-nums;
}
.fbadge[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .fbtn:hover { background: var(--surface-2); } }

/* ---------- Search + filters (live in the rail, or in the Filtres sheet) ---------- */
.search {
  position: relative; display: flex; align-items: center;
  min-height: 44px; border-radius: 12px; background: var(--paper);
  box-shadow: inset 0 0 0 1px rgb(35 22 26 / .12);
  transition: box-shadow 200ms ease;
}
.search:focus-within { box-shadow: inset 0 0 0 2px var(--bordeaux); }
.search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 44px; border: 0; background: none; padding: 0 14px 0 40px; font-size: 1rem; outline: none; }
.search input::placeholder { color: #76666a; }
.search input::-webkit-search-cancel-button { cursor: pointer; }

.filters { display: grid; gap: 18px; }
.fgroup { display: grid; gap: 8px; }
.glabel { margin: 0; font: 600 .875rem/1.2 var(--text); color: var(--muted); }
.chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 8px 14px; border: 0; border-radius: 12px;
  background: var(--surface); color: var(--ink); font-size: .9375rem; line-height: 1.3;
  box-shadow: inset 0 -2px 0 rgb(35 22 26 / .06);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  white-space: nowrap;
}
.chip:active { transform: scale(.96) translateY(1px); }
.chip[aria-pressed="true"] { background: var(--bordeaux); color: var(--cream); box-shadow: inset 0 2px 3px rgb(0 0 0 / .25); }
.chip .stars { color: var(--gold-ink); letter-spacing: .02em; }
.chip[aria-pressed="true"] .stars { color: var(--gold-2); }
.chip .n { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .n { color: rgb(246 238 223 / .7); }
.chip[aria-pressed="true"] .sw { box-shadow: 0 0 0 1.5px rgb(246 238 223 / .7); }
.chip[aria-pressed="true"] .sw.b1 { box-shadow: inset 0 0 0 1.5px var(--l1-line), 0 0 0 1.5px rgb(246 238 223 / .7); }
@media (hover: hover) and (pointer: fine) {
  .chip:not([aria-pressed="true"]):hover { background: var(--surface-2); }
}
.count { margin: 0; font-size: .9375rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Level swatches: a chip of each marble ---------- */
.sw { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 3px; }
.sw.b1 { background: var(--lv1-bg), var(--l1); box-shadow: inset 0 0 0 1.5px var(--l1-line); }
.sw.b2 { background: var(--lv2-bg), var(--l2); }
.sw.b3 { background: var(--lv3-bg), var(--l3); }

/* ---------- Shell ---------- */
.shell { position: relative; }
.col { min-width: 0; }
main { padding: 20px var(--m) 48px; min-width: 0; }

/* ---------- Grid ---------- */
.grid {
  position: relative; list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 40px 24px; max-width: 1600px;
}
.grid[hidden] { display: none; }
.cell { position: relative; }
.cell.out { display: none; }
.card {
  position: relative; display: block; aspect-ratio: 63 / 88; perspective: 900px;
  border-radius: var(--r-card); outline-offset: 6px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  /* Keyboard focus never lands under the sticky bar or the bottom tray. */
  scroll-margin: calc(var(--bar-h) + 24px) 0 calc(var(--tray-h) + 32px);
}
/* GSAP promotes a card only while it tilts; 52 permanent layers cost memory for nothing. */
.tilt { position: absolute; inset: 0; transform-style: preserve-3d; }
.shadow {
  position: absolute; inset: 0; border-radius: var(--r-card); box-shadow: var(--card-shadow);
}
.shadow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--card-shadow-up);
  opacity: 0; transition: opacity 260ms ease;
}
.face {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-card);
  background: var(--surface-2); container-type: inline-size;
}
.face img.art { position: absolute; width: 109.6%; height: 106.86%; left: -4.8%; top: -3.43%; max-width: none; }

/* Added: the card is taken off the table. A cream veil over the picture, colours drained a little,
 * the gold seal on its corner. Hover lifts the veil a bit so the card stays readable. */
.cell .face::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgb(246 238 223 / .62);
  opacity: 0; transition: opacity 220ms ease;
}
.cell .face img.art { transition: filter 220ms ease; }
.cell.kept .face::after { opacity: 1; }
.cell.kept .face img.art { filter: saturate(.45) contrast(.92); }
.cell.kept .shadow { box-shadow: 0 1px 2px rgb(35 22 26 / .1); }
@media (hover: hover) and (pointer: fine) {
  .cell.kept .card:hover .face::after { opacity: .55; }
  .cell.kept .card:hover .face img.art { filter: saturate(.75); }
}
.cell.kept .card:focus-visible .face::after { opacity: .55; }
.seal {
  position: absolute; top: -9px; right: -9px; z-index: 2;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--seal); color: var(--bordeaux);
  box-shadow: 0 0 0 2.5px var(--paper), 0 3px 8px -3px rgb(35 22 26 / .55);
  opacity: 0; transform: scale(.6) rotate(-25deg);
  transition: opacity 160ms ease, transform 300ms var(--ease-out);
  pointer-events: none;
}
.seal svg { width: 20px; height: 20px; stroke-width: 2.4; }
.cell.kept .seal { opacity: 1; transform: none; }
/* Several copies: the seal stretches into a pill and shows the count instead of the tick. */
.seal-n { display: none; font: 400 .9375rem/1 var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.cell.multi .seal { width: auto; min-width: 32px; padding: 0 9px; border-radius: 16px; }
.cell.multi .seal svg { display: none; }
.cell.multi .seal-n { display: block; }

.meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.meta-l { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.meta-lv { display: inline-flex; align-items: center; gap: 6px; }
.meta-lv .sw { width: 11px; height: 11px; border-radius: 2px; }
.meta .stars { color: var(--gold-ink); font-size: .875rem; letter-spacing: .04em; }
.meta .theme { font-size: .875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.keep {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 40px; padding: 0 10px 0 7px; border: 0; border-radius: 12px; gap: 5px;
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: .875rem;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.keep svg { width: 18px; height: 18px; }
.keep:active { transform: scale(.95); }
.keep[hidden] { display: none; }

/* Added: "Ajouter" turns into a compact stepper, − n +. Quiet (no fill) so the added cards
 * stay calm on the table; each half fills on hover or focus. */
.step {
  display: inline-flex; align-items: center; flex: none; height: 40px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgb(35 22 26 / .14);
}
.step[hidden] { display: none; }
.step button {
  position: relative; display: grid; place-items: center; width: 34px; height: 40px; padding: 0; border: 0;
  background: none; color: var(--ink); border-radius: 11px;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.step button svg { width: 16px; height: 16px; }
.step button:active { transform: scale(.9); }
.step button[aria-disabled="true"] { color: rgb(93 76 79 / .38); cursor: default; }
.step button[aria-disabled="true"]:active { transform: none; }
.step button:focus-visible { outline-offset: -2px; }
.st-n {
  min-width: 18px; text-align: center; font: 600 .9375rem/1 var(--text); font-variant-numeric: tabular-nums;
  display: inline-block;
}
@media (hover: hover) and (pointer: fine) {
  .keep:hover { background: var(--surface-2); }
  .step button:not([aria-disabled="true"]):hover { background: var(--surface); }
  .card:hover .shadow::after { opacity: 1; }
}

/* Rewritten words: a band in the card's own tone, set over the printed one. */
.band {
  position: absolute; left: 4.8%; right: 4.8%; bottom: 3.2%; min-height: 16.8%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6cqw;
  padding: 2.4cqw 4.4cqw 2.8cqw; border-radius: 3cqw;
  background: var(--band, #3a2a2c); color: #f7efe2; text-align: center;
}
.band.tall { min-height: 20.6%; }
.band .t { font: 600 5.6cqw/1.15 var(--text); letter-spacing: -0.005em; }
.band .s { font: italic 400 3.75cqw/1.35 var(--text); color: rgb(247 239 226 / .86); }
.band .t:empty::before { content: "Ton titre"; opacity: .5; }
.band .s:empty::before { content: "Ta phrase"; opacity: .5; }

.empty[hidden] { display: none; }
.empty { padding: 80px 0 40px; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 16px; font-size: 1.125rem; }

/* ---------- Ton jeu (shared parts) ---------- */
.tray-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tray-title { margin: 0; font: 400 1.375rem/1.1 var(--display); letter-spacing: -0.01em; }
.counter { margin: 0; display: flex; align-items: baseline; font-variant-numeric: tabular-nums; line-height: 1; }
.counter b { font: 400 2.25rem/1 var(--display); letter-spacing: -0.02em; display: inline-block; transition: color 400ms ease; }
.counter > span { font: 400 1.125rem/1 var(--display); color: var(--muted); }
.tray.complete .counter b { color: var(--gold-ink); }
.tray-meter { position: relative; display: grid; }
.progress { position: relative; height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.progress i { position: absolute; inset: 0; background: var(--bordeaux); transform-origin: left; transform: scaleX(0); transition: transform 500ms var(--ease-out), background-color 400ms ease; border-radius: 3px; }
.tray.complete .progress i { background: var(--gold); }
.done-line { margin: 0; font-size: .9375rem; line-height: 1.35; color: var(--ink); text-wrap: balance; }
.done-line:empty { display: none; }

/* The balance: three marble segments, sized by their share. Three nodes in a contained box,
 * so flex-grow is cheap here and lets the stone segment keep its outline. */
.balance { display: grid; gap: 8px; }
.bal-bar {
  display: flex; gap: 2px; height: 12px; border-radius: 4px; contain: layout paint;
  box-shadow: inset 0 0 0 1px rgb(35 22 26 / .12); /* the empty bar still shows its frame */
}
.bal-bar i { flex: 0 0 0; min-width: 0; border-radius: 3px; transition: flex-grow 500ms var(--ease-out); }
.bal-bar .b1 { background: var(--lv1-bg), var(--l1); box-shadow: inset 0 0 0 1.5px var(--l1-line); }
.bal-bar .b2 { background: var(--lv2-bg), var(--l2); }
.bal-bar .b3 { background: var(--lv3-bg), var(--l3); }
.bal-bar.has { box-shadow: none; }
.bal-legend { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bal-legend li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bal-legend .st { color: var(--gold-ink); letter-spacing: .02em; }
.bal-legend b { color: var(--ink); font-weight: 600; }

.hand-wrap { position: relative; min-width: 0; }
.hand {
  position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px;
  background: none; text-align: left; outline-offset: -2px;
}
.fan { position: absolute; inset: 0; transition: transform 220ms var(--ease-out); }
.hand-cue { font-size: .875rem; color: var(--muted); transition: color 200ms ease; pointer-events: none; }
.hand-cue[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hand:hover .fan { transform: translateY(-4px); }
  .hand-wrap:hover .hand-cue { color: var(--ink); }
}
.hand:active .fan { transform: translateY(-2px) scale(.98); }
.hand-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 12px; color: var(--muted); font-size: .9375rem; line-height: 1.35;
}
.hand-empty[hidden] { display: none; }
.hand-empty::before {
  content: ""; width: 40px; height: 56px; border-radius: 4px; flex: none;
  border: 1.5px dashed rgb(93 76 79 / .45); /* an empty slot */
}
.mini {
  position: absolute; left: 0; top: 0; width: var(--mini-w, 46px); aspect-ratio: 63 / 88;
  border-radius: var(--r-card); transform-origin: 50% 130%; will-change: transform;
}
.mini .face { box-shadow: 0 1px 2px rgb(35 22 26 / .2), 0 4px 10px -4px rgb(35 22 26 / .35); }
.deck-back {
  position: absolute; left: 0; top: 0; width: var(--mini-w, 46px); aspect-ratio: 63 / 88; pointer-events: none;
}
.tray-actions { display: flex; gap: 10px; }
.tray-actions .short { display: none; }

/* ---------- ≥1100px: the rail ---------- */
/* The rail runs the full height of the window, from the top: the bar only spans the grid.
 * Inside, a plain column: filters, then Ton jeu, whose deck takes whatever height is left
 * (app.js sizes the fan to fit that box whole), then the two buttons. Nothing is stacked
 * over anything; on a very short window the rail scrolls instead. */
@media (min-width: 1100px) {
  .shell { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail-w); align-items: start; }
  .rail {
    position: sticky; top: 0; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    background: var(--paper);
    box-shadow: -1px 0 0 rgb(35 22 26 / .06);
  }
  .rail-filters { flex: none; display: grid; gap: 16px; padding: 24px 22px 18px 24px; }
  .rail .filters { gap: 14px; }
  .rail .chips { gap: 6px; }
  .rail .chip { min-height: 36px; padding: 6px 10px; gap: 6px; font-size: .9375rem; }
  .rail .chip .sw { width: 12px; height: 12px; }
  .tray {
    flex: 1 0 auto; display: flex; flex-direction: column; gap: 12px;
    padding: 20px 22px 24px 24px; background: var(--cream);
  }
  .tray-head, .tray-meter, .balance, .tray-actions { flex: none; }
  .counter b { font-size: 2rem; }
  .hand-wrap { flex: 1 1 0; min-height: 104px; display: flex; flex-direction: column; margin: 4px 0 6px; }
  .hand { position: relative; inset: auto; flex: 1 1 0; min-height: 0; }
  .mini, .deck-back { transition: width 350ms var(--ease-out); }
  .hand-cue { position: absolute; left: 0; right: 0; top: calc(var(--fan-b, 100%) + 6px); text-align: center; font-size: .8125rem; line-height: 16px; }
  .tray.complete .hand-cue { display: none; }
  .tray.complete .progress { display: none; }
  .done-line { font: 400 1.125rem/1.3 var(--display); }
  .tray-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .tray-actions .btn, .tray-actions .btn-quiet { padding: 0 12px; }
  .toast { --toast-x: calc((100vw - var(--rail-w)) / 2); }
}
@media (min-width: 1100px) and (max-height: 780px) {
  :root { --bar-h: 60px; }
  .rail-filters { gap: 12px; padding-top: 16px; padding-bottom: 14px; }
  .rail .filters { gap: 10px; }
  .fgroup { gap: 6px; }
  .rail .chip { min-height: 34px; padding: 5px 10px; }
  .tray { gap: 9px; padding-top: 14px; padding-bottom: 16px; }
  .counter b { font-size: 1.75rem; }
  .hand-wrap { min-height: 88px; margin: 2px 0 4px; }
  .hand-cue { display: none; }
  .done-line { font: 600 .9375rem/1.3 var(--text); }
}

/* ---------- Card backs: the level's marble with Rituel in hot-foil gold ---------- */
.back {
  display: grid; place-content: center; text-align: center; gap: 4%;
  background: url(/textures/marbre-creme-s.jpg) 30% 30% / 320%; color: var(--gold);
}
.back.l2 { background-image: url(/textures/marbre-bordeaux-s.jpg); color: var(--gold-2); }
.back.l3 { background-image: url(/textures/marbre-noir-s.jpg); color: var(--gold-2); }
.back b { font: 400 18cqw/1 var(--display); filter: url(#foil); --wm-star: currentColor; }
.back i { font-style: normal; font-size: 7.5cqw; letter-spacing: .16em; filter: url(#foil); }

/* ---------- Flying cards and sparkles ---------- */
.fx { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.flyer { position: absolute; left: 0; top: 0; aspect-ratio: 63 / 88; transform-origin: 0 0; will-change: transform; }
.flyer .face { box-shadow: var(--card-shadow-up); }
.spark { position: absolute; left: 0; top: 0; width: 14px; height: 14px; fill: var(--gold-2); will-change: transform, opacity; }
.spark.d { fill: var(--gold); }

/* ---------- Toast ---------- */
.toast {
  --toast-x: 50vw;
  position: fixed; z-index: 66; /* above the hand panel (65), under the viewer (70) */
  left: var(--toast-x); bottom: calc(var(--tray-h) + 20px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 16px; width: max-content; max-width: min(560px, calc(100vw - 32px));
  padding: 8px 8px 8px 18px; border-radius: 12px; background: var(--ink); color: var(--cream);
  font-size: .9375rem; box-shadow: 0 10px 30px -10px rgb(35 22 26 / .5);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity 200ms ease, transform 260ms var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: rgb(246 238 223 / .12); color: var(--gold-2); font-weight: 600; }
.toast button[hidden] { display: none; }
.toast span { min-width: 0; }

/* ---------- Viewer: one card, large ---------- */
.viewer { position: fixed; inset: 0; z-index: 70; overscroll-behavior: contain; }
.viewer[hidden] { display: none; }
.v-scrim { position: absolute; inset: 0; background: rgb(242 234 219 / .96); }
.v-layout {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center; gap: 56px; padding: 56px max(var(--m), calc((100vw - 1180px) / 2));
}
.v-stage { display: grid; place-items: center; height: 100%; min-height: 0; min-width: 0; perspective: 1600px; container-type: size; }
.big { position: relative; width: min(100cqw, 100cqh * 63 / 88, 516px); aspect-ratio: 63 / 88; transform-origin: 0 0; }
.big-inner { position: absolute; inset: 0; transform-style: preserve-3d; }
.big .face { backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 2px 6px rgb(35 22 26 / .12), 0 40px 70px -30px rgb(35 22 26 / .55); }
.big .back { transform: rotateY(180deg); }
.big img.lo, .big img.hi { position: absolute; width: 109.6%; height: 106.86%; left: -4.8%; top: -3.43%; max-width: none; }
.big img.hi { opacity: 0; transition: opacity 300ms ease; }
.big img.hi.ready { opacity: 1; }
.band.edit { opacity: 0; transition: opacity 180ms ease; cursor: text; }
.band.edit.on, .band.edit:focus-within { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .band.edit:hover { opacity: 1; } }
.band.edit .t, .band.edit .s { outline: none; border-radius: 4px; padding: 0 .6cqw; caret-color: var(--gold-2); }
.band.edit .t:focus, .band.edit .s:focus { box-shadow: 0 1.5px 0 0 var(--gold-2); }

.v-panel { display: grid; gap: 14px; align-content: center; justify-items: start; }
.v-meta { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--muted); }
.v-meta .stars { color: var(--gold-ink); letter-spacing: .04em; }
.v-title { margin: 0; font: 400 2rem/1.15 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.v-sub { margin: 0; font-size: 1.125rem; font-style: italic; color: var(--ink); text-wrap: pretty; }
.v-edit-hint { margin: 8px 0 0; font-size: .9375rem; color: var(--muted); }
.v-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.v-actions .btn[hidden] { display: none; }
.v-qty { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; }
.v-qty[hidden] { display: none; }
.v-qty .step { height: 48px; }
.v-qty .step button { width: 44px; height: 48px; }
.v-qty .st-n { min-width: 26px; font-size: 1.0625rem; }
.v-qty-l { font-size: .9375rem; color: var(--muted); }
.v-close {
  position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; display: grid; place-items: center;
  border: 0; border-radius: 12px; background: var(--surface); transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.v-close svg { width: 22px; height: 22px; }
.v-close:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .v-close:hover { background: var(--surface-2); } }

/* ---------- Ton jeu: the whole hand ---------- */
.hp { position: fixed; inset: 0; z-index: 65; }
.hp[hidden] { display: none; }
.hp-scrim { position: absolute; inset: 0; background: rgb(35 22 26 / .4); }
.hp-sheet {
  position: absolute; top: 40px; bottom: 0;
  left: max(var(--m), calc((100vw - 1180px) / 2)); right: max(var(--m), calc((100vw - 1180px) / 2));
  display: flex; flex-direction: column; background: var(--paper); border-radius: 20px 20px 0 0;
  box-shadow: 0 -20px 50px -24px rgb(35 22 26 / .5);
}
.hp-grip { display: none; }
.hp-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  padding: 28px 28px 20px 36px;
}
.hp-title h2 { margin: 0; font: 400 2rem/1.1 var(--display); letter-spacing: -0.015em; }
.hp-count { margin: 6px 0 0; font-size: .9375rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hp-fill { display: none; }
.hp-balance { justify-self: end; display: grid; gap: 10px; width: min(100%, 540px); }
.hp-bar { width: 100%; height: 14px; }
.hp-legend {
  display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none;
  font-size: .9375rem; color: var(--muted);
}
.hp-legend li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.hp-legend .st { color: var(--gold-ink); letter-spacing: .02em; }
.hp-legend b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hp-close {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px;
  background: var(--surface); transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.hp-close svg { width: 22px; height: 22px; }
.hp-close:active { transform: scale(.95); }
.hp-body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: grid; align-content: start; gap: 40px; padding: 12px 36px 48px;
}
.hp-group { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: start; gap: 12px 28px; }
.hp-group[hidden] { display: none; }
.hp-ghead h3 { margin: 0; font: 400 1.375rem/1.2 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.hp-ghead .lv { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.hp-ghead .sw { width: 18px; height: 18px; border-radius: 4px; }
.hp-ghead .stars { font: 400 1rem/1 var(--text); color: var(--gold-ink); letter-spacing: .04em; }
.hp-gsub { margin: 6px 0 0; font-size: .9375rem; color: var(--muted); }
.hp-gsub b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hp-gempty { grid-column: 2; margin: 0; padding-top: 4px; color: var(--muted); font-style: italic; }
.hp-gempty[hidden] { display: none; }
.hp-list {
  grid-column: 2; grid-row: 1; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 22px 18px;
}
.hp-list:empty { display: none; }
.hp-item { position: relative; min-width: 0; }
.hp-item.gone { display: none; }
.hp-card {
  position: relative; display: block; width: 100%; aspect-ratio: 63 / 88; padding: 0; border: 0;
  background: none; border-radius: var(--r-card); outline-offset: 4px;
  transition: transform 160ms var(--ease-out);
}
.hp-card .face { box-shadow: 0 1px 2px rgb(35 22 26 / .15), 0 8px 16px -10px rgb(35 22 26 / .5); }
.hp-card:active { transform: scale(.97); }
.hp-name {
  margin: 8px 0 0; font-size: .875rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
/* Copies are grouped: one entry, "×n" on its corner, the stepper under the name. */
.hp-n {
  position: absolute; top: -8px; right: -8px; z-index: 2;
  display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px;
  background: var(--seal); color: var(--bordeaux); font: 400 .9375rem/1 var(--display); font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2.5px var(--paper), 0 3px 8px -3px rgb(35 22 26 / .55);
}
.hp-n:empty { display: none; }
.hp-item .step { margin-top: 6px; height: 36px; }
.hp-item .step button { width: 34px; height: 36px; }
.hp-item .step button::before { content: ""; position: absolute; inset: -4px 0; } /* 44px tall hit area */
@media (hover: hover) and (pointer: fine) {
  .hp-close:hover { background: var(--surface-2); }
}
.hp-none { padding: 40px 0; text-align: center; color: var(--muted); }
.hp-none[hidden] { display: none; }
.hp-none p { margin: 0 0 6px; }
.hp-none .hp-none-t { font: 400 1.5rem/1.2 var(--display); color: var(--ink); }

/* ---------- Filtres sheet (below 1100px) ---------- */
.fsheet { position: fixed; inset: 0; z-index: 64; }
.fsheet[hidden] { display: none; }
.fs-scrim { position: absolute; inset: 0; background: rgb(35 22 26 / .18); }
.fs-panel {
  position: absolute; top: calc(var(--bar-h) - 4px); right: var(--m); width: min(440px, calc(100vw - 2 * var(--m)));
  max-height: calc(100dvh - var(--bar-h) - var(--tray-h) - 16px);
  display: flex; flex-direction: column; background: var(--paper); border-radius: 16px;
  box-shadow: 0 2px 6px rgb(35 22 26 / .08), 0 24px 50px -20px rgb(35 22 26 / .45);
  transform-origin: var(--fs-origin, 85% 0);
}
.fs-grip { display: none; }
.fs-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 4px 22px; }
.fs-head h2 { margin: 0; font: 400 1.375rem/1.2 var(--display); }
.fs-head .hp-close { width: 44px; height: 44px; }
.fs-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 22px 16px; }
.fs-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 16px 16px; }

/* ---------- Découverte ---------- */
.discover { display: grid; justify-items: center; gap: 18px; padding-top: 4px; }
.discover[hidden] { display: none; }
.d-stage { position: relative; width: 100%; height: var(--stage-h, 520px); touch-action: none; }
.dcard {
  position: absolute; left: 50%; top: 0; height: 100%; aspect-ratio: 63 / 88; max-width: 92%;
  margin-left: calc(var(--dw, 372px) / -2); width: var(--dw, 372px);
  transform-origin: 50% 85%; will-change: transform; user-select: none; -webkit-user-select: none;
  touch-action: none; cursor: grab;
}
.dcard:active { cursor: grabbing; }
.dcard .face { box-shadow: var(--card-shadow-up); }
.dcard .face img { pointer-events: none; -webkit-user-drag: none; }
.stamp {
  position: absolute; top: 7%; z-index: 3; padding: 6px 14px 7px; border-radius: 10px;
  font: 400 clamp(1.125rem, 6cqw, 1.75rem)/1 var(--display); opacity: 0; pointer-events: none;
}
.stamp.keep-s { left: 7%; background: var(--bordeaux); color: var(--cream); transform: rotate(-8deg); }
.stamp.pass-s { right: 7%; background: var(--paper); color: var(--ink); transform: rotate(8deg); }
.d-controls { display: flex; gap: 12px; align-items: center; }
.d-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 12px;
  font-weight: 600; transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.d-btn svg { width: 20px; height: 20px; }
.d-btn:active { transform: scale(.96); }
.d-pass, .d-open { background: var(--surface); }
.d-keep { background: var(--bordeaux); color: var(--cream); }
.d-hint { margin: 0; font-size: .9375rem; color: var(--muted); }
/* End of the queue: the message takes the stage's place, centred in the room left. */
.d-done {
  display: grid; place-content: center; justify-items: center; text-align: center;
  width: 100%; min-height: calc(100vh - var(--bar-h) - var(--tray-h) - 96px);
  min-height: calc(100dvh - var(--bar-h) - var(--tray-h) - 96px);
  padding: 32px var(--m);
}
.d-done[hidden] { display: none; }
.discover.done .d-stage, .discover.done .d-controls, .discover.done .d-hint { display: none; }
.d-done p { margin: 0 0 8px; color: var(--muted); }
.d-done .d-done-title { font: 400 1.5rem/1.2 var(--display); color: var(--ink); }
.d-done button { margin-top: 12px; }
body.mode-discover { overflow: hidden; }
body.mode-discover .count { display: none; }
.d-open .short { display: none; }

/* ---------- Shake ---------- */
.shake { animation: shake 420ms var(--ease-out); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}

/* ---------- Below 1100px: slim bar + one-line bottom tray ---------- */
@media (max-width: 1099px) {
  :root { --m: 28px; --bar-h: 64px; --tray-h: 76px; }
  body { padding-bottom: calc(var(--tray-h) + 24px + env(safe-area-inset-bottom)); }
  .bar { gap: 20px; }
  .bar-sub { display: none; }
  .bar h1 { font-size: 1.375rem; }
  .bar .seg { margin-left: -6px; }
  .bar-tools .search { width: 260px; flex: 0 1 260px; min-width: 150px; }
  .fbtn { display: inline-flex; }
  .rail { display: contents; }
  .rail-filters { display: none; }
  .tray {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    height: calc(var(--tray-h) + env(safe-area-inset-bottom));
    padding: 0 var(--m) env(safe-area-inset-bottom);
    display: grid; grid-template-columns: 76px auto minmax(0, 1fr) auto; grid-template-areas: "hand count meter act";
    align-items: center; gap: 0 18px;
    background: var(--paper); border-radius: 18px 18px 0 0;
    box-shadow: 0 -1px 0 rgb(35 22 26 / .06), 0 -14px 34px -18px rgb(35 22 26 / .35);
    cursor: pointer;
  }
  .tray-head { grid-area: count; }
  .tray-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .counter b { font-size: 1.75rem; }
  .counter > span { font-size: 1rem; }
  .tray-meter { grid-area: meter; }
  .tray.complete .progress { display: none; }
  .done-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .balance { display: none; }
  .hand-wrap { grid-area: hand; height: 64px; }
  .hand-cue { display: none; }
  .hand-empty { padding: 0; }
  .hand-empty > span { display: none; }
  .hand-empty::before { width: 34px; height: 47px; }
  .tray-actions { grid-area: act; cursor: default; }
  .tray-actions .long { display: none; }
  .tray-actions .short { display: inline; }
  .tray-actions .btn, .tray-actions .btn-quiet { min-height: 48px; }
  /* A grip says the tray opens upward. */
  .tray::before {
    content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px;
    border-radius: 2px; background: rgb(35 22 26 / .16);
  }
  .v-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding: 40px var(--m); }
  .v-title { font-size: 1.625rem; }
  .hp-head { grid-template-columns: auto 1fr auto; gap: 24px; padding: 22px 20px 16px 28px; }
  .hp-title h2 { font-size: 1.75rem; }
  .hp-body { padding: 8px 28px 40px; gap: 32px; }
  .hp-group { grid-template-columns: 150px minmax(0, 1fr); gap: 12px 20px; }
  .chip { min-height: 44px; }
}

/* Narrow tablets: the switch and the search share the bar with the title, the logo steps out. */
@media (min-width: 761px) and (max-width: 940px) {
  .bar { gap: 14px; }
  .home { display: none; }
  .seg button { padding: 0 12px; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --m: 16px; --bar-h: 112px; --tray-h: 72px; }
  body { font-size: 16px; }
  .bar {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 56px 48px; gap: 0 10px; align-content: start;
    padding-top: 0; padding-bottom: 8px;
  }
  .home { display: none; }
  .bar h1 { grid-row: 1; grid-column: 1; align-self: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 1.125rem; letter-spacing: -0.015em; }
  .bar .seg { grid-row: 1; grid-column: 2; margin-left: 0; align-self: center; }
  .seg button { padding: 0 8px; min-height: 40px; font-size: .8125rem; }
  .bar-tools { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; margin-left: 0; }
  .bar-tools .search { flex: 1; width: auto; min-width: 0; }
  .fbtn { min-height: 44px; padding: 0 14px; }
  main { padding: 10px var(--m) 32px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .meta { margin-top: 10px; }
  .keep { min-height: 44px; width: 44px; justify-content: center; padding: 0; }
  .keep .lbl { display: none; }
  .step { height: 44px; }
  .step button { width: 38px; height: 44px; }
  .st-n { min-width: 16px; }
  .meta { gap: 4px; }
  .seal { top: -7px; right: -7px; width: 28px; height: 28px; }
  .seal svg { width: 18px; height: 18px; }

  .tray { grid-template-columns: 60px auto minmax(0, 1fr) auto; gap: 0 12px; padding-top: 4px; border-radius: 16px 16px 0 0; }
  .hand-wrap { height: 58px; }
  .counter b { font-size: 1.5rem; }
  .counter > span { font-size: .9375rem; }
  .done-line { font-size: .875rem; }
  .tray-actions #fill { display: none; }
  .tray-actions .btn { padding: 0 16px; min-height: 44px; }
  .hp-fill { display: inline-flex; margin-top: 10px; min-height: 44px; }
  .hp-fill[hidden] { display: none; }

  .toast { font-size: .875rem; }
  .toast button { min-height: 44px; }

  .fs-scrim { background: rgb(35 22 26 / .4); }
  .fs-panel {
    top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: calc(100dvh - 48px);
    border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom);
  }
  .fs-grip { display: flex; justify-content: center; padding: 10px 0 2px; touch-action: none; }
  .fs-grip i { width: 40px; height: 5px; border-radius: 3px; background: rgb(35 22 26 / .22); }
  .fs-head { padding: 2px 10px 4px 16px; touch-action: none; }
  .fs-body { padding: 6px 16px 12px; }
  .fs-foot { padding: 10px 16px 14px; }

  .hp-sheet {
    top: auto; left: 0; right: 0; max-height: calc(100dvh - 48px);
    border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom);
  }
  .hp-grip { display: flex; justify-content: center; padding: 10px 0 6px; touch-action: none; cursor: grab; }
  .hp-grip i { width: 40px; height: 5px; border-radius: 3px; background: rgb(35 22 26 / .22); }
  .hp-head { grid-template-columns: 1fr auto; gap: 14px 12px; padding: 2px 16px 16px; touch-action: none; }
  .hp-title h2 { font-size: 1.5rem; }
  .hp-count { margin-top: 4px; font-size: .875rem; }
  .hp-balance { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; width: 100%; gap: 8px; }
  .hp-bar { height: 12px; }
  .hp-legend { gap: 4px 14px; font-size: .875rem; }
  .hp-close { grid-column: 2; grid-row: 1; width: 44px; height: 44px; align-self: start; }
  .hp-body { padding: 8px 16px 28px; gap: 28px; }
  .hp-group { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hp-ghead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
  .hp-ghead .lv { display: inline-flex; margin: 0; align-self: center; }
  .hp-ghead h3 { font-size: 1.25rem; }
  .hp-gsub { margin: 0; font-size: .875rem; }
  .hp-list, .hp-gempty { grid-column: 1; grid-row: auto; }
  .hp-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
  body.mode-discover .toast { bottom: auto; top: calc(8px + env(safe-area-inset-top)); transform: translate(-50%, -12px); }
  body.mode-discover .toast.show { transform: translate(-50%, 0); }

  .v-layout {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 18px; align-items: stretch;
    padding: 64px var(--m) calc(20px + env(safe-area-inset-bottom));
  }
  .v-panel { gap: 8px; justify-items: stretch; }
  .v-title { font-size: 1.375rem; }
  .v-sub { font-size: 1rem; }
  .v-edit-hint { margin-top: 2px; font-size: .875rem; }
  .v-actions { margin-top: 6px; display: grid; grid-template-columns: 1fr auto; }
  .v-close { top: 10px; right: 10px; }
  .link { justify-self: start; }

  .d-controls { width: 100%; padding: 0 var(--m); }
  .d-btn { flex: 1; justify-content: center; padding: 0 10px; }
  .d-hint { display: none; }
  .d-open .long { display: none; }
  .d-open .short { display: inline; }
  .discover { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .seg-thumb, .progress i, .seal, .toast, .fan, .hp-card, .step button { transition-property: opacity, background-color, color; }
  .mini, .deck-back { transition: none; }
  .bal-bar i { transition: none; }
  .seal { transform: none; }
  .hand:hover .fan, .hand:active .fan { transform: none; }
  .shake { animation: none; }
}
