/*
 * Lovely Party (template/espace/lovely-party.php, docs/LOVELY_PARTY.md): the evening on a board, in the theme of the
 * app (cream, framboise, plum, coral; Nunito, Caveat for the winner). The night of the page, the start, the board (the
 * race, the path of pieces the camera follows, the pawns, the dock with the hearts and the die), the sheet of a square,
 * the toast of what just happened, and the arrival. The pieces and the path are drawn by static/js/espace/espace.js
 * (partyPage).
 */

/* ---- The night ---- */
.lc-game.lc-party {
  background: linear-gradient(180deg, #4e1a5c 0%, #702a71 26%, #8d346a 50%, #b0128a 76%, #d70298 100%);
  color: #ffffff;
}

.lp-night {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.lp-night i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fbf8ef;
  animation: lp-twinkle 3.4s ease-in-out infinite;
}

.lp-night i:nth-child(1) { left: 6%; top: 18%; }
.lp-night i:nth-child(2) { left: 78%; top: 17%; animation-duration: 4s; animation-delay: -1s; }
.lp-night i:nth-child(3) { left: 88%; top: 27%; width: 4px; height: 4px; animation-duration: 2.8s; }
.lp-night i:nth-child(4) { left: 64%; top: 23%; animation-delay: -2s; }
.lp-night i:nth-child(5) { left: 95%; top: 36%; animation-duration: 3.8s; }
.lp-night i:nth-child(6) { left: 7%; top: 37%; animation-delay: -1.6s; }
.lp-night i:nth-child(7) { left: 4%; top: 52%; animation-duration: 4.4s; }
.lp-night i:nth-child(8) { left: 93%; top: 55%; animation-delay: -.6s; }
.lp-night i:nth-child(9) { left: 30%; top: 12%; width: 2px; height: 2px; animation-duration: 3s; }

.lp-night b {
  position: absolute;
  left: 78%;
  top: 9%;
  width: 120px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(251, 248, 239, 0), rgba(251, 248, 239, .95));
  opacity: 0;
  transform-origin: 100% 50%;
  animation: lp-shoot 9s linear infinite;
}

.lp-night b:nth-of-type(2) {
  left: 40%;
  top: 24%;
  animation-duration: 13s;
  animation-delay: -6s;
}

@keyframes lp-shoot {
  0%, 90% { opacity: 0; transform: rotate(-28deg) translateX(0); }
  92% { opacity: 1; }
  100% { opacity: 0; transform: rotate(-28deg) translateX(-320px); }
}

@keyframes lp-twinkle {
  0%, 100% { opacity: .25; }
  50% { opacity: 1; }
}

.lp-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---- The buttons: pills, with the hearts they win ---- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
}

.lp-btn:active:not(:disabled) {
  transform: translateY(3px);
}

.lp-btn:disabled {
  opacity: .55;
  cursor: default;
}

.lp-btn:focus-visible {
  outline: 3px solid #ffd6e4;
  outline-offset: 3px;
}

.lp-btn--white {
  background: #ffffff;
  box-shadow: 0 5px 0 rgba(165, 12, 58, .35);
  color: #c4285b;
}

.lp-btn--framboise {
  background: #c4285b;
  box-shadow: 0 4px 0 #a50c3a;
  color: #fbf8ef;
}

.lp-btn--plum {
  background: #702a71;
  box-shadow: 0 4px 0 rgba(51, 11, 134, .45);
  color: #fbf8ef;
}

.lp-btn--big {
  min-height: 64px;
  font-size: 18px;
}

.lp-btn__badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(251, 248, 239, .22);
  font-size: 12.5px;
  letter-spacing: 0;
}

.lp-btn--white .lp-btn__badge {
  background: rgba(196, 40, 91, .12);
}

/* ---- The start ---- */
.lp-start {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 12px;
}

/* The hero in the middle of the room left; the game in progress and the new game at the foot, under the thumb. */
.lp-start__hero {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0 18px;
}

.lp-start__actions {
  flex: none;
}

.lp-start__art {
  display: block;
  width: calc(100% + 32px);
  max-width: none;
  height: auto;
  margin: 0 -16px;
  overflow: visible;
}

.lp-start__die {
  animation: lp-start-die 4s ease-in-out infinite;
}

@keyframes lp-start-die {
  0%, 100% { transform: translate(320px, 84px) rotate(14deg); }
  50% { transform: translate(320px, 78px) rotate(8deg); }
}

.lp-start__title {
  margin: 10px 0 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.lp-start__text {
  margin: 6px 12px 0;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.lp-resume {
  margin-top: 18px;
  padding: 14px 16px 16px;
  border-radius: 22px;
  background: #fbf8ef;
  box-shadow: 0 5px 0 rgba(51, 11, 134, .35), 0 18px 32px rgba(51, 11, 134, .25);
  color: #702a71;
}

.lp-resume[hidden] {
  display: none;
}

.lp-resume__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.lp-resume__title {
  margin: 0;
  color: #c4285b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lp-resume__when {
  color: #8d346a;
  font-size: 12.5px;
  font-weight: 800;
}

.lp-resume__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 10px 0 12px;
  font-size: 14.5px;
  font-weight: 800;
}

.lp-resume__hearts {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.lp-resume__hearts svg {
  fill: #c4285b;
}

.lp-resume .lp-btn {
  width: 100%;
}

.lp-new {
  margin-top: 22px;
}

.lp-new__title {
  margin: 0 4px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lp-sizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.lp-size {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 108px;
  padding: 10px 6px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.lp-size[aria-checked="true"] {
  background: #fbf8ef;
  box-shadow: 0 4px 0 rgba(51, 11, 134, .35), inset 0 0 0 2.5px #c4285b;
  color: #702a71;
  transform: translateY(-2px);
}

.lp-size:focus-visible {
  outline: 3px solid #ffd6e4;
  outline-offset: 2px;
}

.lp-size__name {
  font-size: 14px;
  font-weight: 900;
}

.lp-size__count {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.lp-size__unit,
.lp-size__time {
  font-size: 12px;
  font-weight: 800;
}

.lp-size__time {
  opacity: .85;
}

/* Avec du piment: a switch with the Pass; without it, its lock (the window of the Pass). */
.lp-spicy {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28);
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lp-spicy:focus-visible {
  outline: 3px solid #ffd6e4;
  outline-offset: 2px;
}

.lp-spicy__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(254, 87, 89, .9);
  color: #fbf8ef;
}

.lp-spicy__words {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.lp-spicy__words strong {
  font-size: 15px;
  font-weight: 900;
}

.lp-spicy__words small {
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 800;
}

.lp-spicy__lock {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fbf8ef;
  color: #c4285b;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lp-spicy__lock[hidden] {
  display: none;
}

/* The switch: plum off, framboise on, its knob sliding. */
.lp-spicy__knob {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(51, 11, 134, .45);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3);
  transition: background .2s ease;
}

.lp-spicy__knob::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fbf8ef;
  transition: transform .2s ease;
}

.lp-spicy[aria-checked="true"] .lp-spicy__knob {
  background: #c4285b;
}

.lp-spicy[aria-checked="true"] .lp-spicy__knob::after {
  transform: translateX(18px);
}

.lp-spicy.is-locked .lp-spicy__knob {
  display: none;
}

.lp-new .lp-btn--white {
  width: 100%;
  min-height: 56px;
  margin-top: 16px;
  font-size: 17px;
}

.lp-new__note {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
}

/* ---- The race to the arrival ---- */
.lp-race {
  position: relative;
  flex: none;
  height: 24px;
  margin: 0 14px;
}

.lp-race__track,
.lp-race__fill {
  position: absolute;
  left: 0;
  top: 8px;
  height: 8px;
  border-radius: 999px;
}

.lp-race__track {
  right: 26px;
  background: rgba(251, 248, 239, .16);
}

.lp-race__fill {
  background: linear-gradient(90deg, rgba(251, 248, 239, .3), rgba(251, 248, 239, .65));
  transition: width .3s ease;
}

.lp-race__mark {
  position: absolute;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  transition: left .3s ease;
}

.lp-race__mark--0 {
  z-index: 1;
  background: #fbf8ef;
  box-shadow: inset 0 0 0 2.5px #c4285b, 0 2px 0 rgba(51, 11, 134, .35);
  color: #c4285b;
}

.lp-race__mark--1 {
  background: #702a71;
  box-shadow: inset 0 0 0 2px #fbf8ef, 0 2px 0 rgba(51, 11, 134, .35);
  color: #fbf8ef;
}

.lp-race__end {
  position: absolute;
  right: 0;
  top: 1px;
  fill: #fe5759;
  stroke: #fbf8ef;
  stroke-width: 1.4;
}

.lp-race--light {
  margin: 10px 0 0;
}

.lp-race--light .lp-race__track {
  background: rgba(112, 42, 113, .12);
}

.lp-race--light .lp-race__fill {
  background: rgba(196, 40, 91, .4);
}

.lp-race--light .lp-race__end {
  stroke: none;
}

/* ---- The board ---- */
/* The board holds in the screen: the night of the stage scrolls under its camera, never the page (no overflow here:
   the stage reaches the edges of the screen, and a box that clips could be pushed sideways by a focus). */
.lc-party[data-party-view="board"] .esp-game__shell {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  gap: 10px;
}

.lp-board {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.lp-board[hidden],
.lp-start[hidden],
.lp-end[hidden] {
  display: none;
}

.lp-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  margin: 0 -16px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 26px, #000 calc(100% - 16px), transparent 100%);
}

.lp-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transition: transform .6s cubic-bezier(.22, .8, .3, 1);
  will-change: transform;
}

.lp-layer.is-still {
  transition: none;
}

.lp-stage.is-dragging {
  cursor: grabbing;
}

/* The look at the path when the board opens: from the arrival down to the pawn whose turn it is. */
.lp-layer.is-tour {
  transition: transform 2.5s cubic-bezier(.45, .05, .3, 1) .45s;
}

.lp-path {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

/* A piece stands on its square: the middle of its face on the point of the square. */
.lp-piece {
  position: absolute;
  width: 78px;
  height: 86px;
  margin: -36px 0 0 -39px;
  pointer-events: none;
}

.lp-piece svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lp-piece.is-pop svg {
  transform-origin: 50% 80%;
  animation: lp-pop .5s cubic-bezier(.3, 1.6, .5, 1);
}

@keyframes lp-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.22, .86); }
  60% { transform: scale(.94, 1.08); }
  100% { transform: scale(1); }
}

/* A square of the Pass: a light sweeps its ticket now and then. */
.lp-piece.is-pass::after {
  content: "";
  position: absolute;
  inset: 4% 8% 18%;
  border-radius: 50%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 240, 200, .75) 50%, rgba(255, 255, 255, 0) 62%) no-repeat;
  background-size: 260% 100%;
  animation: lp-shine 3.6s ease-in-out infinite;
}

@keyframes lp-shine {
  0%, 55% { background-position: 120% 0; }
  85%, 100% { background-position: -40% 0; }
}

/* The sparks from the square reached: a ring and ten sparks in its colour. */
.lp-burst {
  position: absolute;
  z-index: 3;
  width: 0;
  height: 0;
  pointer-events: none;
}

.lp-burst::before {
  content: "";
  position: absolute;
  left: -36px;
  top: -36px;
  width: 72px;
  height: 72px;
  border: 3px solid currentColor;
  border-radius: 50%;
  animation: lp-ring .6s ease-out forwards;
}

.lp-burst i {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: lp-spark .7s cubic-bezier(.2, .7, .3, 1) forwards;
}

.lp-burst--cream { color: #fbf8ef; }
.lp-burst--coral { color: #ffb0a8; }
.lp-burst--gold { color: #ffd27a; }

@keyframes lp-ring {
  0% { opacity: .9; transform: scale(.4); }
  100% { opacity: 0; transform: scale(1.7); }
}

@keyframes lp-spark {
  0% { opacity: 1; transform: rotate(var(--lp-a)) translateX(10px) scale(1); }
  100% { opacity: 0; transform: rotate(var(--lp-a)) translateX(var(--lp-d)) scale(.3); }
}

.lp-piece--depart {
  width: 72px;
  height: 79px;
  margin: -33px 0 0 -36px;
}

.lp-piece--arrivee {
  width: 100px;
  height: 110px;
  margin: -46px 0 0 -50px;
}

.lp-piece--arrivee svg {
  transform-origin: 50% 46%;
  animation: lp-beat 1.3s ease-in-out infinite;
}

@keyframes lp-beat {
  0%, 56%, 100% { transform: scale(1); }
  14% { transform: scale(1.1); }
  28% { transform: scale(1); }
  42% { transform: scale(1.05); }
}

.lp-pawn {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 53px;
  margin: -47px 0 0 -21px;
  pointer-events: none;
  transition: left .24s ease, top .24s ease;
}

.lp-pawn.is-still {
  transition: none;
}

.lp-pawn svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lp-pawn svg {
  filter: drop-shadow(0 2px 0 rgba(51, 11, 134, .45));
}

/* Each pawn in the colours of its player, as their hearts in the dock, its initial on its head. */
.lp-pawn--0 .lp-pawn__body {
  fill: #fbf8ef;
  stroke: #c4285b;
  stroke-width: 2;
}

.lp-pawn--0 .lp-pawn__letter {
  fill: #c4285b;
}

.lp-pawn--1 .lp-pawn__body {
  fill: #702a71;
  stroke: #fbf8ef;
  stroke-width: 1.8;
}

.lp-pawn--1 .lp-pawn__letter {
  fill: #fbf8ef;
}

/* The pawn whose turn it is: a halo that breathes under it. */
.lp-pawn.is-turn::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -4px;
  height: 10px;
  border-radius: 50%;
  background: rgba(251, 248, 239, .55);
  animation: lp-halo 1.6s ease-out infinite;
}

@keyframes lp-halo {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(1.9); opacity: 0; }
}

.lp-pawn.is-hop svg {
  transform-origin: 50% 100%;
  animation: lp-hop .26s ease-out;
}

@keyframes lp-hop {
  0% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(-3px) scale(.9, 1.12); }
  50% { transform: translateY(-18px) scale(1, 1); }
  80% { transform: translateY(0) scale(1.16, .84); }
  100% { transform: translateY(0) scale(1, 1); }
}

/* ---- The dock: the hearts, whose turn it is, the die ---- */
.lp-dock {
  flex: none;
  padding: 12px 14px 14px;
  border-radius: 24px;
  background: #fbf8ef;
  box-shadow: 0 6px 0 rgba(51, 11, 134, .3), 0 -6px 26px rgba(51, 11, 134, .25);
  color: #702a71;
}

.lp-scores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lp-score {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  background: rgba(112, 42, 113, .07);
  box-shadow: inset 0 0 0 1.5px rgba(112, 42, 113, .16);
  color: #702a71;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.lp-score.is-turn {
  background: #c4285b;
  box-shadow: 0 3px 0 #a50c3a;
  color: #fbf8ef;
}

.lp-score__pawn {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.lp-score[data-party-score="0"] .lp-score__pawn {
  background: #fbf8ef;
  box-shadow: inset 0 0 0 2.5px #c4285b;
  color: #c4285b;
}

.lp-score[data-party-score="1"] .lp-score__pawn {
  background: #702a71;
  box-shadow: inset 0 0 0 2px #fbf8ef;
  color: #fbf8ef;
}

.lp-score__name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-score__hearts {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 16px;
  font-weight: 900;
}

.lp-score__hearts svg {
  fill: currentColor;
}

.lp-score:not(.is-turn) .lp-score__hearts {
  color: #c4285b;
}

.lp-score.is-bump .lp-score__hearts {
  animation: lp-bump .45s ease-out;
}

@keyframes lp-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.lp-dock__row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.lp-die {
  --lp-half: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 380px;
  animation: lp-die-float 4s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

/* The die: a cube of six faces in 3D, its rounded corners filled by three planes inside; thrown, it turns fast then
   slower and lands on its face (static/js/espace/espace.js, face). */
.lp-cube {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  transform: rotateX(-16deg) rotateY(20deg);
  transform-style: preserve-3d;
}

.lp-cube.is-spinning {
  transition: transform 1.15s cubic-bezier(.16, .72, .24, 1);
}

.lp-cube__face,
.lp-cube__core {
  position: absolute;
  inset: 0;
  border-radius: 13px;
}

.lp-cube__face {
  background: radial-gradient(circle at 30% 24%, #e4547e, #c4285b 58%, #a8194a);
  box-shadow: inset 0 0 0 2px rgba(251, 248, 239, .2), inset 0 -5px 9px rgba(80, 0, 30, .28);
  backface-visibility: hidden;
}

.lp-cube__face svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #fbf8ef;
}

.lp-cube__core {
  inset: 3px;
  border-radius: 6px;
  background: #a8194a;
}

.lp-cube__core--x {
  transform: rotateX(90deg);
}

.lp-cube__core--y {
  transform: rotateY(90deg);
}

.lp-die:disabled {
  cursor: default;
}

.lp-die:focus-visible {
  outline: 3px solid #c4285b;
  outline-offset: 2px;
  border-radius: 20px;
}

.lp-die.is-held {
  animation: lp-die-shake .14s linear infinite;
}

.lp-die.is-rolling {
  animation: lp-die-roll 1.2s linear 1;
}

.lp-die.is-landed {
  animation: lp-die-land .45s ease-out 1;
}

@keyframes lp-die-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes lp-die-shake {
  0%, 100% { transform: rotate(-6deg) translateX(-2px); }
  50% { transform: rotate(5deg) translateX(2px); }
}

/* Thrown, it jumps while the cube turns, hits the table, bounces twice and settles (the clacks follow these hits). */
@keyframes lp-die-roll {
  0% { transform: translate(0, 0) scale(1); }
  12% { transform: translate(-6px, -34px) scale(1.06); }
  28% { transform: translate(4px, 0) scale(1.1, .9); }
  38% { transform: translate(-3px, -18px) scale(1); }
  46% { transform: translate(2px, 0) scale(1.06, .94); }
  56% { transform: translate(-1px, -8px) scale(1); }
  64% { transform: translate(0, 0) scale(1.03, .97); }
  76% { transform: translate(0, -2px) scale(1); }
  88%, 100% { transform: translate(0, 0) scale(1); }
}

@keyframes lp-die-land {
  0% { transform: scale(1.1, .9); }
  50% { transform: scale(.97, 1.04); }
  100% { transform: scale(1); }
}

.lp-dock__words {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lp-dock__turn {
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-dock .lp-btn {
  width: 100%;
  margin-top: 8px;
}

/* ---- The sheet of a square ---- */
.lp-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(51, 11, 134, 0);
  transition: background .28s ease;
}

.lp-sheet[hidden] {
  display: none;
}

.lp-sheet.is-open {
  background: rgba(51, 11, 134, .45);
}

.lp-sheet__card {
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  max-height: calc(100svh - 40px);
  box-sizing: border-box;
  padding: 22px 20px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  background: #fbf8ef;
  box-shadow: 0 -12px 40px rgba(51, 11, 134, .35);
  color: #702a71;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.22, .8, .3, 1);
}

.lp-sheet.is-open .lp-sheet__card {
  transform: translateY(0);
}

/* A new step of the same square: its height moves, the content already there. */
.lp-sheet__card.is-morphing {
  overflow: hidden;
  transition: transform .32s cubic-bezier(.22, .8, .3, 1), height .32s cubic-bezier(.22, .8, .3, 1);
}

.lp-sheet__tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(196, 40, 91, .1);
  color: #c4285b;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lp-sheet[data-kind="tp"] .lp-sheet__tag {
  background: rgba(112, 42, 113, .1);
  color: #702a71;
}

.lp-sheet[data-kind="qd"] .lp-sheet__tag {
  background: rgba(215, 2, 152, .1);
  color: #a3027a;
}

.lp-sheet[data-kind="debat"] .lp-sheet__tag {
  background: rgba(106, 63, 224, .1);
  color: #5b36d6;
}

.lp-sheet[data-kind="duel"] .lp-sheet__tag {
  background: rgba(242, 154, 31, .16);
  color: #a85a08;
}

.lp-sheet[data-kind="action"] .lp-sheet__tag {
  background: rgba(165, 12, 58, .1);
  color: #a50c3a;
}

.lp-sheet[data-kind="calin"] .lp-sheet__tag {
  background: rgba(254, 87, 89, .14);
  color: #c93436;
}

.lp-sheet[data-kind="deep"] .lp-sheet__tag {
  background: rgba(47, 93, 138, .12);
  color: #2f5d8a;
}

/* A square of the Pass: its tag a framboise ticket, its card ringed with gold. */
.lp-sheet.is-pass .lp-sheet__tag {
  background: #c4285b;
  color: #fbf8ef;
}

.lp-sheet.is-pass .lp-sheet__words {
  box-shadow: inset 0 0 0 2.5px #f29a1f, 0 4px 0 rgba(112, 42, 113, .18);
}

.lp-sheet__title {
  margin: 12px 0 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

.lp-sheet__text {
  margin: 6px 0 0;
  color: #8d346a;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.4;
}

.lp-sheet__text[hidden] {
  display: none;
}

.lp-sheet__play {
  margin-top: 16px;
}

.lp-sheet__play:empty {
  display: none;
}

.lp-sheet__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* The card of Action ou Vérité, their first names in framboise. */
.lp-sheet__words {
  margin: 0;
  padding: 22px 20px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(196, 40, 91, .14), 0 4px 0 rgba(112, 42, 113, .18);
  color: #702a71;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.32;
  text-align: center;
}

.lp-sheet__words {
  transform-origin: 50% 0;
  animation: lp-deal .48s cubic-bezier(.2, .8, .3, 1) both;
}

@keyframes lp-deal {
  0% { opacity: 0; transform: perspective(700px) rotateX(-72deg) translateY(-8px); }
  100% { opacity: 1; transform: perspective(700px) rotateX(0) translateY(0); }
}

.lp-sheet__title.is-slam {
  animation: lp-slam .55s cubic-bezier(.2, 1.4, .4, 1) both;
}

@keyframes lp-slam {
  0% { opacity: 0; transform: scale(2.2) rotate(-5deg); }
  55% { opacity: 1; transform: scale(.94) rotate(1deg); }
  75% { transform: scale(1.03) rotate(-1deg); }
  100% { transform: scale(1) rotate(0); }
}

.lp-sheet__words em {
  color: #c4285b;
  font-style: normal;
  font-weight: 900;
}

.lp-sheet__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.lp-sheet__actions:empty {
  display: none;
}

.lp-sheet__actions .lp-btn {
  min-height: 54px;
  padding: 0 12px;
  font-size: 14.5px;
  letter-spacing: .03em;
}

/* Tu préfères: the card cut in two, the « ou » between the halves. */
.lp-halves {
  position: relative;
  display: grid;
  gap: 8px;
}

.lp-half {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  box-sizing: border-box;
  padding: 16px 20px;
  border: 0;
  border-radius: 22px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: opacity .3s ease, transform .3s ease;
}

.lp-half--1 {
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(196, 40, 91, .16), 0 4px 0 rgba(112, 42, 113, .2);
  color: #702a71;
}

.lp-half--2 {
  background: #702a71;
  box-shadow: 0 4px 0 rgba(51, 11, 134, .4);
  color: #ffffff;
}

.lp-half:disabled {
  cursor: default;
}

.lp-half.is-chosen {
  transform: scale(1.02);
}

.lp-half.is-other {
  opacity: .4;
  transform: scale(.97);
}

.lp-half:focus-visible {
  outline: 3px solid #c4285b;
  outline-offset: 2px;
}

.lp-half__words {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.lp-half__tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #c4285b;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lp-half--2 .lp-half__tag {
  background: #fbf8ef;
  color: #702a71;
}

.lp-halves__or {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 0 rgba(112, 42, 113, .35);
  color: #c4285b;
  font-size: 14px;
  font-weight: 900;
  pointer-events: none;
}

/* One button alone, the width of the card (the wheel to turn, a hug done). */
.lp-sheet__actions--one {
  grid-template-columns: minmax(0, 1fr);
}

/* Who won: the question, the two first names, « Personne » under them. */
.lp-sheet__ask {
  grid-column: 1 / -1;
  margin: 0 0 -4px;
  color: #8d346a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.lp-btn--ghost {
  grid-column: 1 / -1;
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(112, 42, 113, .22);
  color: #702a71;
}

.lp-sheet__actions .lp-btn--ghost {
  min-height: 44px;
}

/* The timer: a touch starts it, the ring fills, « Fini ! » at the end. */
.lp-chrono-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.lp-chrono {
  --lp-chrono: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(#c4285b calc(var(--lp-chrono) * 1turn), rgba(196, 40, 91, .16) 0);
  color: #702a71;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lp-chrono::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 0 rgba(112, 42, 113, .16);
}

.lp-chrono__left {
  position: relative;
}

.lp-chrono.is-done {
  animation: lp-beat 1.4s ease-in-out 2;
}

.lp-chrono.is-last {
  background: conic-gradient(#fe5759 calc(var(--lp-chrono) * 1turn), rgba(254, 87, 89, .18) 0);
  color: #c93436;
  animation: lp-beat 1s ease-in-out infinite;
}

.lp-chrono:focus-visible {
  outline: 3px solid #c4285b;
  outline-offset: 3px;
}

/* The wheel of the gages: the disc turns four times and slows down under the pointer. */
.lp-wheel {
  position: relative;
  width: 184px;
  height: 184px;
  margin: 6px auto 0;
}

.lp-wheel__disc {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 5px 0 rgba(112, 42, 113, .22));
  transition: transform 2.3s cubic-bezier(.12, .8, .2, 1);
}

.lp-wheel__name {
  fill: #fbf8ef;
  font-family: Nunito, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.lp-wheel__pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 28px;
  height: 32px;
  margin-left: -14px;
}

/* ---- The opinion at the end: three questions with five stars, a few words, then thanks ---- */
.lp-avis {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-avis__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px 9px 14px;
  border-radius: 16px;
  background: rgba(196, 40, 91, .06);
}

.lp-avis__q {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lp-avis__q strong {
  font-size: 15.5px;
  font-weight: 900;
}

.lp-avis__q span {
  color: #8d346a;
  font-size: 12.5px;
  font-weight: 800;
}

.lp-avis__stars {
  display: flex;
  flex: none;
  gap: 1px;
}

.lp-star {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lp-star svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: rgba(112, 42, 113, .32);
  stroke-width: 1.6;
  stroke-linejoin: round;
  transition: transform .22s cubic-bezier(.3, 1.6, .5, 1), fill .15s ease;
}

.lp-star.is-on svg {
  fill: #f4b23c;
  stroke: #d98a1a;
  transform: scale(1.12);
}

.lp-star:focus-visible {
  outline: 3px solid #c4285b;
  outline-offset: -2px;
  border-radius: 10px;
}

.lp-avis__label {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 900;
}

/* Sixteen pixels: a smaller field makes the iPhone zoom on it. */
.lp-avis__words {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(112, 42, 113, .16);
  color: #702a71;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  resize: none;
}

.lp-avis__words::placeholder {
  color: #a8789a;
}

.lp-avis__words:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #c4285b;
}

.lp-sheet[data-kind="avis"] .lp-btn:disabled {
  opacity: .45;
}

.lp-sheet[data-kind="merci"] .lp-sheet__tag {
  align-self: center;
}

.lp-sheet[data-kind="merci"] .lp-sheet__title {
  font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.lp-sheet[data-kind="merci"] .lp-sheet__text {
  text-align: center;
}

.lp-avis__heart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #c4285b;
  box-shadow: 0 5px 0 #a50c3a;
  animation: lp-beat 1.3s ease-in-out infinite;
}

.lp-avis__heart svg {
  width: 40px;
  height: 40px;
  fill: #fbf8ef;
}

/* ---- The effects over the page: the hearts that fly to the chips, the confetti ---- */
.lp-fx {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  pointer-events: none;
}

.lp-fly {
  position: absolute;
  left: -13px;
  top: -13px;
  width: 26px;
  height: 26px;
  will-change: transform, opacity;
}

.lp-fly svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: #ff4f8b;
  stroke: #fbf8ef;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px rgba(255, 79, 139, .8));
}

.lp-fly--lost svg {
  fill: #9a6a9b;
  filter: none;
}

.lp-confetti {
  position: absolute;
  left: -4px;
  top: -7px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  will-change: transform, opacity;
}

/* The turn goes to the other: their name crosses the night, in their colour. */
.lp-banner {
  position: absolute;
  left: 0;
  right: 0;
  top: 34%;
  z-index: 4;
  margin: 0;
  padding: 10px 20px;
  color: #fbf8ef;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.lp-banner--0 {
  text-shadow: 0 3px 0 #a50c3a, 0 0 28px rgba(255, 79, 139, .9);
}

.lp-banner--1 {
  text-shadow: 0 3px 0 #45174a, 0 0 28px rgba(168, 139, 255, .9);
}

.lp-banner.is-on {
  animation: lp-banner 1.35s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes lp-banner {
  0% { opacity: 0; transform: translateX(-55%) skewX(-14deg); }
  24% { opacity: 1; transform: translateX(0) skewX(0); }
  72% { opacity: 1; transform: translateX(0) scale(1.05); }
  100% { opacity: 0; transform: translateX(55%) skewX(12deg); }
}

/* ---- The toast: what just happened, over the board ---- */
.lp-toast {
  position: fixed;
  left: 50%;
  top: calc(84px + env(safe-area-inset-top, 0px));
  z-index: 70;
  max-width: min(360px, calc(100% - 40px));
  margin: 0;
  padding: 11px 18px;
  border-radius: 999px;
  background: #fbf8ef;
  box-shadow: 0 6px 0 rgba(51, 11, 134, .3), 0 14px 30px rgba(51, 11, 134, .3);
  color: #702a71;
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.lp-toast[hidden] {
  display: none;
}

.lp-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---- The arrival ---- */
.lp-end {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 24px;
}

.lp-end__kicker {
  margin: 8px 0 0;
  color: #ffd6e4;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}

.lp-end__winner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2px 0 0;
  font-weight: 900;
  text-align: center;
}

.lp-end__winner span {
  max-width: 100%;
  overflow: hidden;
  color: #fbf8ef;
  font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-end__winner small {
  margin-top: 2px;
  font-size: 21px;
}

.lp-end__winner.is-in span {
  animation: lp-winner .9s cubic-bezier(.2, 1.5, .4, 1) both;
}

@keyframes lp-winner {
  0% { opacity: 0; transform: scale(.3) rotate(-8deg); text-shadow: 0 0 0 rgba(255, 210, 122, 0); }
  60% { opacity: 1; transform: scale(1.12) rotate(2deg); text-shadow: 0 0 34px rgba(255, 210, 122, .95); }
  100% { transform: scale(1) rotate(0); text-shadow: 0 0 18px rgba(255, 210, 122, .55); }
}

.lp-end__scores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.lp-final {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(112, 42, 113, .3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
  font-size: 14px;
  font-weight: 900;
}

.lp-final.is-win {
  background: #fbf8ef;
  box-shadow: 0 3px 0 rgba(112, 42, 113, .35);
  color: #702a71;
}

.lp-final__hearts {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.lp-final__hearts svg {
  fill: currentColor;
}

.lp-final.is-win .lp-final__hearts {
  color: #c4285b;
}

.lp-reward {
  margin-top: 30px;
  text-align: center;
}

.lp-reward__title {
  margin: 0 8px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.lp-reward__pick,
.lp-reward__hint {
  margin: 4px 8px 0;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 800;
}

.lp-reward__pick[hidden],
.lp-reward__hint[hidden],
.lp-reward__deck[hidden] {
  display: none;
}

.lp-reward__deck {
  position: relative;
  height: 170px;
  margin-top: 14px;
}

.lp-reward__back {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 104px;
  height: 146px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform .2s ease;
}

.lp-reward__back svg {
  display: block;
  filter: drop-shadow(0 5px 0 rgba(112, 42, 113, .45));
}

.lp-reward__back:nth-child(1) {
  margin-left: -143px;
  transform: rotate(-12deg);
}

.lp-reward__back:nth-child(2) {
  top: 0;
  margin-left: -52px;
  animation: lp-float 4s ease-in-out infinite;
}

.lp-reward__back:nth-child(3) {
  margin-left: 39px;
  transform: rotate(12deg);
}

.lp-reward__back:focus-visible {
  outline: 3px solid #ffd6e4;
  outline-offset: 3px;
  border-radius: 16px;
}

@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.lp-reward__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 6px 0;
  padding: 28px 22px 16px;
  border-radius: 22px;
  background: #fbf8ef;
  box-shadow: 0 6px 0 rgba(112, 42, 113, .45), 0 22px 40px rgba(51, 11, 134, .25);
  color: #702a71;
}

.lp-reward__card[hidden] {
  display: none;
}

.lp-reward__card.is-turning {
  animation: lp-turn .6s cubic-bezier(.2, .8, .2, 1);
}

@keyframes lp-turn {
  0% { transform: perspective(700px) rotateY(90deg); }
  100% { transform: perspective(700px) rotateY(0); }
}

.lp-reward__tag {
  position: absolute;
  left: 50%;
  top: -15px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #c4285b;
  box-shadow: 0 3px 0 rgba(51, 11, 134, .25);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.lp-reward__text {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.lp-reward__by {
  color: #c4285b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lp-recap {
  margin-top: 26px;
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: #fbf8ef;
  box-shadow: 0 6px 0 rgba(112, 42, 113, .45), 0 22px 40px rgba(51, 11, 134, .22);
  color: #702a71;
}

.lp-recap__label {
  margin: 0;
  color: #c4285b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lp-recap__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.lp-recap__medal {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #c4285b;
  box-shadow: 0 3px 0 rgba(112, 42, 113, .35);
  color: #fbf8ef;
}

.lp-recap__words {
  display: flex;
  flex-direction: column;
}

.lp-recap__words small {
  color: #8d346a;
  font-size: 12.5px;
  font-weight: 800;
}

.lp-recap__words strong {
  font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.lp-recap__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.lp-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(196, 40, 91, .07);
}

.lp-stat strong {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.lp-stat span {
  color: #8d346a;
  font-size: 12.5px;
  font-weight: 800;
}

/* Without the Pass, under the recap: what its squares would have given. */
.lp-passband {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 18px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1.5px rgba(242, 154, 31, .7);
  text-align: center;
}

.lp-passband[hidden] {
  display: none;
}

.lp-passband p {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.lp-passband .lp-btn {
  width: 100%;
}

.lp-end__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.lp-end__actions .lp-btn {
  min-height: 56px;
  padding: 0 10px;
}

@media (prefers-reduced-motion: reduce) {
  .lp-night i,
  .lp-start__die,
  .lp-piece--arrivee svg,
  .lp-pawn.is-turn::before,
  .lp-die,
  .lp-die.is-rolling,
  .lp-die.is-landed,
  .lp-chrono.is-done,
  .lp-chrono.is-last,
  .lp-avis__heart,
  .lp-night b,
  .lp-piece.is-pass::after,
  .lp-piece.is-pop svg,
  .lp-sheet__words,
  .lp-sheet__title.is-slam,
  .lp-end__winner.is-in span,
  .lp-reward__back:nth-child(2) {
    animation: none;
  }

  .lp-layer,
  .lp-pawn,
  .lp-sheet__card,
  .lp-wheel__disc,
  .lp-star svg,
  .lp-spicy__knob,
  .lp-spicy__knob::after,
  .lp-toast {
    transition: none;
  }
}

/* ===================== Encore une partie (lot 9, 2026-11-06, docs/LOVELY_PARTY.md) =====================
   The last straight (golden squares that count double, a ribbon that folds into a pill), the crown on the pawn of the
   last winner, the big words of a rematch, the end in full (the count of the hearts into two hearts that fill up, the
   crown, the verdict; the title of the evening turned over like the card of the collection; the reward; then what comes
   next at the foot), the crown of the couple on the start and the album of the twelve titles. Only on a phone that
   opened its test link (EspaceLang::partyFinal): the markup is not even in the page without it. */

/* ---- The last straight ---- */
.lp-piece.is-gold::before {
  content: "";
  position: absolute;
  left: -14%;
  right: -14%;
  top: 2%;
  height: 92%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 154, .72), rgba(255, 226, 154, 0) 68%);
  animation: lp-gold-breathe 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes lp-gold-breathe {
  0%, 100% { opacity: .55; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.06); }
}

.lp-x2 {
  position: absolute;
  top: 0;
  right: -4px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff3cf 0%, #e5b75c 38%, #fff6db 58%, #c9963f 100%);
  box-shadow: 0 0 0 2.5px #fbf8ef, 0 3px 0 rgba(122, 74, 8, .4);
  color: #7a4a08;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.lp-straight {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(86%, 330px);
  padding: 10px 16px 11px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff3cf 0%, #e5b75c 38%, #fff6db 58%, #c9963f 100%);
  box-shadow: 0 5px 0 rgba(122, 74, 8, .4), 0 0 26px rgba(255, 226, 154, .55);
  color: #4a0e2e;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -30px) scale(.9);
  transition: opacity .3s ease, transform .5s cubic-bezier(.2, 1.5, .4, 1), width .4s ease, padding .4s ease;
  pointer-events: none;
}

.lp-straight[hidden] {
  display: none;
}

.lp-straight.is-on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.lp-straight b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  transition: font-size .4s ease;
}

.lp-straight b i {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #c4285b;
  color: #fbf8ef;
  font-size: 11.5px;
  font-style: normal;
  transition: width .4s ease, height .4s ease;
}

.lp-straight__text {
  max-height: 40px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  transition: max-height .4s ease, opacity .25s ease;
}

.lp-straight::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -50%;
  width: 34%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .8), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  animation: lp-sweep 2.6s ease-in-out .4s infinite;
}

.lp-straight.is-small {
  width: 236px;
  padding: 6px 12px 6px 7px;
}

.lp-straight.is-small b {
  font-size: 14.5px;
}

.lp-straight.is-small b i {
  width: 22px;
  height: 22px;
}

.lp-straight.is-small .lp-straight__text {
  max-height: 0;
  opacity: 0;
}

/* A square of the last straight in the sheet: its tag carries a golden ×2. */
.lp-sheet.is-gold .lp-sheet__tag::after {
  content: "×2";
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff3cf 0%, #e5b75c 45%, #c9963f 100%);
  color: #7a4a08;
  letter-spacing: 0;
}

/* ---- The crown of the last winner, above their pawn ---- */
.lp-pawn__crown {
  position: absolute;
  left: 50%;
  top: -19px;
  width: 30px;
  margin-left: -15px;
  opacity: 0;
  transform: translateY(-24px) scale(.6);
  transition: opacity .3s ease, transform .5s cubic-bezier(.2, 1.6, .4, 1);
}

.lp-pawn__crown svg,
.lp-mini__crown svg,
.lp-jar__crown svg {
  display: block;
  width: 100%;
  height: auto;
}

.lp-pawn.has-crown .lp-pawn__crown {
  opacity: 1;
  transform: none;
  animation: lp-crown-bob 2.2s ease-in-out .5s infinite;
}

.lp-pawn.has-crown .lp-pawn__crown svg {
  filter: drop-shadow(0 0 6px rgba(255, 226, 154, .8));
}

@keyframes lp-crown-bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-3px) rotate(4deg); }
}

/* ---- The big words of a rematch, then its two hearts ahead ---- */
.lp-bigb {
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  opacity: 0;
  transform: scale(.6);
  pointer-events: none;
}

.lp-bigb[hidden] {
  display: none;
}

.lp-bigb.is-on {
  animation: lp-big-in .6s cubic-bezier(.2, 1.5, .4, 1) forwards;
}

.lp-bigb.is-off {
  animation: lp-big-out .4s ease-in forwards;
}

@keyframes lp-big-in {
  0% { opacity: 0; transform: scale(.6); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes lp-big-out {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.15); }
}

.lp-bigb b {
  color: #ffe29a;
  font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  font-size: clamp(50px, 16vw, 66px);
  font-weight: 700;
  line-height: .9;
  text-shadow: 0 0 26px rgba(255, 226, 154, .6), 0 4px 0 rgba(122, 74, 8, .45);
  transform: rotate(-4deg);
}

.lp-bigb span {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(26, 6, 40, .42);
  color: #fbf8ef;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.lp-pill-fly {
  position: absolute;
  left: 0;
  top: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff3cf 0%, #e5b75c 38%, #fff6db 58%, #c9963f 100%);
  box-shadow: 0 4px 0 rgba(122, 74, 8, .4), 0 0 22px rgba(255, 226, 154, .65);
  color: #4a0e2e;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  will-change: transform, opacity;
}

/* ---- The end in full: one screen, the next steps under the thumb ---- */
.lc-party[data-party-view="final"] .esp-game__shell {
  height: 100vh;
  height: 100svh;
  min-height: 0;
}

.lp-finale {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.lp-finale[hidden],
.lp-album[hidden] {
  display: none;
}

.lp-final__dim {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 42%, rgba(26, 6, 40, .2), rgba(26, 6, 40, .82) 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}

.lp-final__dim.is-on {
  opacity: 1;
}

.lp-count,
.lp-titlecard {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding-bottom: 18px;
  opacity: 0;
  transition: opacity .45s ease;
}

.lp-count[hidden],
.lp-titlecard[hidden],
.lp-final__reward[hidden],
.lp-next[hidden] {
  display: none;
}

.lp-count.is-in,
.lp-titlecard.is-in {
  opacity: 1;
}

.lp-final__cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
}

.lp-final__cta .lp-btn {
  min-width: min(260px, 100%);
}

.lp-final__cta .lp-btn:not([hidden]) {
  animation: lp-cta-in .45s cubic-bezier(.2, 1.4, .4, 1) both;
}

@keyframes lp-cta-in {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* The two hearts that fill up, one heart at a time. */
.lp-jars {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 30px;
}

.lp-jar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(118px, 35vw, 140px);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .4s ease, transform .55s cubic-bezier(.2, 1.4, .4, 1);
}

.lp-count.is-in .lp-jar {
  opacity: 1;
  transform: scale(1);
}

.lp-count.is-in .lp-jar + .lp-jar {
  transition-delay: .08s;
}

.lp-count.is-in .lp-jar.is-dim {
  opacity: .58;
  transform: scale(.92);
}

.lp-jar__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transition: filter .35s ease;
}

.lp-jar.is-lead .lp-jar__svg {
  filter: drop-shadow(0 0 16px rgba(255, 226, 154, .9));
}

.lp-jar__fill {
  transition: transform .22s ease-out;
}

.lp-jar__wave {
  animation: lp-wave 1.6s linear infinite;
}

@keyframes lp-wave {
  from { transform: translateX(0); }
  to { transform: translateX(30px); }
}

.lp-jar__num {
  position: absolute;
  top: 21%;
  left: 0;
  right: 0;
  margin: 0;
  color: #fbf8ef;
  font-size: 40px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 3px 0 rgba(69, 23, 74, .45);
  font-variant-numeric: tabular-nums;
}

.lp-jar__num.is-bump {
  animation: lp-bump-num .32s ease-out;
}

@keyframes lp-bump-num {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.lp-jar__who {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin-top: 10px;
  padding: 4px 13px 4px 4px;
  border-radius: 999px;
  background: rgba(251, 248, 239, .14);
  color: #fbf8ef;
  font-size: 15px;
  font-weight: 900;
}

.lp-jar__who span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-jar__crown {
  position: absolute;
  top: -34px;
  left: 50%;
  width: 66px;
  margin-left: -33px;
  opacity: 0;
  pointer-events: none;
}

.lp-jar__crown svg {
  filter: drop-shadow(0 4px 0 rgba(122, 74, 8, .35)) drop-shadow(0 0 14px rgba(255, 226, 154, .7));
}

.lp-jar__crown.is-on {
  opacity: 1;
  animation: lp-crown-drop .8s cubic-bezier(.25, 1.3, .5, 1) both;
}

@keyframes lp-crown-drop {
  0% { opacity: 0; transform: translateY(-250px) rotate(-20deg) scale(.8); }
  55% { opacity: 1; transform: translateY(6px) rotate(4deg) scale(1.06); }
  78% { transform: translateY(-7px) rotate(-3deg) scale(1); }
  100% { opacity: 1; transform: translateY(0) rotate(-7deg) scale(1); }
}

.lp-lead {
  min-height: 24px;
  margin: 16px 0 0;
  color: #ffd6e4;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.lp-lead.is-pop {
  animation: lp-pop-in .35s ease-out;
}

@keyframes lp-pop-in {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.lp-verdict {
  max-width: 340px;
  min-height: 1em;
  margin: 2px 0 0;
  color: #ffe29a;
  font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  font-size: clamp(40px, 11.5vw, 52px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 22px rgba(255, 226, 154, .55), 0 3px 0 rgba(122, 74, 8, .45);
  text-wrap: balance;
  opacity: 0;
  transform: scale(.6);
}

.lp-verdict.is-on {
  animation: lp-verdict-in .6s cubic-bezier(.2, 1.5, .4, 1) forwards;
}

@keyframes lp-verdict-in {
  0% { opacity: 0; transform: scale(.6) rotate(-4deg); }
  100% { opacity: 1; transform: scale(1) rotate(-2deg); }
}

/* The title of the evening: a card that turns over, in the light of its rarity. */
.lp-tplace {
  --k: 1;
  position: relative;
  width: calc(208px * var(--k));
  height: calc(290px * var(--k));
  margin-top: 20px;
  transform-origin: 50% 0;
  transition: transform .6s cubic-bezier(.3, .8, .25, 1);
}

@media (max-height: 700px) {
  .lp-tplace {
    --k: .82;
  }
}

@media (max-height: 600px) {
  .lp-tplace {
    --k: .72;
  }
}

.lp-tplace[data-r="commune"] { --ra: rgba(255, 214, 228, .6); --rr: rgba(255, 214, 228, .16); }
.lp-tplace[data-r="rare"] { --ra: rgba(214, 204, 236, .75); --rr: rgba(236, 230, 250, .22); }
.lp-tplace[data-r="legendaire"] { --ra: rgba(255, 210, 110, .8); --rr: rgba(255, 226, 154, .3); }

.lp-aura {
  position: absolute;
  inset: -42%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}

.lp-aura::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ra) 0%, rgba(255, 255, 255, 0) 64%);
}

.lp-aura i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--rr) 0deg 7deg, rgba(255, 255, 255, 0) 7deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 18%, rgba(0, 0, 0, 0) 66%);
  mask: radial-gradient(circle, #000 18%, rgba(0, 0, 0, 0) 66%);
  animation: lp-spin 18s linear infinite;
}

.lp-titlecard.is-in .lp-aura {
  opacity: .7;
}

.lp-titlecard.is-charging .lp-aura,
.lp-titlecard.is-revealed .lp-aura {
  opacity: 1;
}

@keyframes lp-spin {
  to { transform: rotate(360deg); }
}

.lp-tfloat,
.lp-ttremble {
  position: absolute;
  inset: 0;
}

.lp-titlecard.is-in .lp-tfloat {
  animation: lp-rise .75s cubic-bezier(.2, .9, .3, 1) both, lp-hover 3.6s ease-in-out .75s infinite;
}

@keyframes lp-rise {
  0% { opacity: 0; transform: translateY(140px) rotate(-6deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes lp-hover {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

.lp-ttremble {
  perspective: 900px;
}

.lp-ttremble.is-on {
  animation: lp-tremble .08s linear infinite;
}

.lp-ttremble.is-beat {
  animation: lp-pulse .42s ease-out;
}

.lp-ttremble.is-land {
  animation: lp-land .5s cubic-bezier(.3, 1.5, .5, 1);
}

@keyframes lp-tremble {
  0% { transform: translate(-2px, 1px) rotate(-1.2deg); }
  50% { transform: translate(2px, -1px) rotate(1.2deg); }
  100% { transform: translate(-2px, 1px) rotate(-1.2deg); }
}

@keyframes lp-pulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.07); }
  60% { transform: scale(.98); }
  100% { transform: scale(1); }
}

@keyframes lp-land {
  0% { transform: scale(1.06, .94); }
  45% { transform: scale(.98, 1.03) translateY(-4px); }
  100% { transform: scale(1); }
}

.lp-tcard {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.lp-tcard:disabled {
  cursor: default;
}

.lp-tcard:focus-visible {
  outline: 3px solid #ffd6e4;
  outline-offset: 4px;
  border-radius: 20px;
}

.lp-tcard__back,
.lp-tcard__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: calc(18px * var(--k));
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.lp-tcard__back {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, #e4547e, #c4285b 55%, #a50c3a);
  box-shadow: 0 10px 0 rgba(69, 23, 74, .35);
}

.lp-tcard__back::before {
  content: "";
  position: absolute;
  inset: calc(10px * var(--k));
  border: 2px solid rgba(251, 248, 239, .85);
  border-radius: calc(12px * var(--k));
}

.lp-tcard__back svg {
  width: 46%;
}

.lp-tcard__face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(9px * var(--k));
  padding: calc(20px * var(--k)) calc(14px * var(--k)) calc(34px * var(--k));
  background: #fbf8ef;
  box-shadow: 0 10px 0 rgba(69, 23, 74, .35);
  color: #702a71;
  text-align: center;
  transform: rotateY(180deg);
}

.lp-tcard__face::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: calc(6px * var(--k));
  border-radius: inherit;
  background: #f3c6d6;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.lp-tplace[data-r="rare"] .lp-tcard__face::before {
  background: linear-gradient(135deg, #f8f4fc 0%, #cec4de 38%, #ffffff 58%, #b8adcc 100%);
}

.lp-tplace[data-r="legendaire"] .lp-tcard__face::before {
  background: linear-gradient(135deg, #fff3cf 0%, #e5b75c 38%, #fff6db 58%, #c9963f 100%);
}

.lp-tplace[data-r="legendaire"] .lp-tcard__face::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -60%;
  width: 36%;
  background: linear-gradient(90deg, rgba(255, 246, 219, 0), rgba(255, 246, 219, .85), rgba(255, 246, 219, 0));
  transform: skewX(-18deg);
  animation: lp-sweep 3s ease-in-out 1.2s infinite;
}

.lp-rchip {
  padding: calc(5px * var(--k, 1)) calc(11px * var(--k, 1));
  border-radius: 999px;
  font-size: calc(10.5px * var(--k, 1));
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lp-rchip[data-r="commune"] { background: #c4285b; color: #fbf8ef; }
.lp-rchip[data-r="rare"] { background: linear-gradient(135deg, #f8f4fc 0%, #cec4de 38%, #ffffff 58%, #b8adcc 100%); color: #5b3f86; }
.lp-rchip[data-r="legendaire"] { background: linear-gradient(135deg, #fff3cf 0%, #e5b75c 38%, #fff6db 58%, #c9963f 100%); color: #4a0e2e; }

.lp-emb {
  display: grid;
  flex: none;
  place-items: center;
  width: calc(66px * var(--k, 1));
  height: calc(66px * var(--k, 1));
  border-radius: 50%;
  box-shadow: 0 calc(4px * var(--k, 1)) 0 rgba(69, 23, 74, .25);
  color: #fbf8ef;
}

.lp-emb[data-r="commune"] { background: radial-gradient(circle at 35% 30%, #e4547e, #c4285b 60%, #a50c3a); }
.lp-emb[data-r="rare"] { background: radial-gradient(circle at 35% 30%, #a88bff, #7b5bc8 60%, #5b3f86); }
.lp-emb[data-r="legendaire"] { background: radial-gradient(circle at 35% 30%, #fff3cf, #e5b75c 55%, #b8862f); color: #4a0e2e; }

.lp-emb svg {
  width: 62%;
  height: 62%;
}

.lp-tname {
  color: #702a71;
  font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  font-size: calc(42px * var(--k));
  font-weight: 700;
  line-height: .95;
}

.lp-tline {
  max-width: 94%;
  color: #8d346a;
  font-size: calc(13.5px * var(--k));
  font-weight: 800;
  line-height: 1.25;
}

.lp-tdate {
  position: absolute;
  bottom: calc(15px * var(--k));
  color: rgba(112, 42, 113, .5);
  font-size: calc(9.5px * var(--k));
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lp-tflash {
  position: absolute;
  inset: -8%;
  z-index: 5;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  pointer-events: none;
}

.lp-tflash.is-on {
  animation: lp-flash .55s ease-out;
}

@keyframes lp-flash {
  0% { opacity: 0; transform: scale(.7); }
  25% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.3); }
}

.lp-tstamp {
  position: absolute;
  top: -12px;
  right: -18px;
  z-index: 6;
  padding: 7px 12px;
  border-radius: 999px;
  background: #c4285b;
  box-shadow: 0 3px 0 #a50c3a, 0 0 0 2.5px #fbf8ef;
  color: #fbf8ef;
  font-size: 13px;
  font-weight: 900;
  transform: rotate(12deg) scale(0);
}

.lp-tstamp[hidden] {
  display: none;
}

.lp-tstamp.is-on {
  animation: lp-stamp .5s cubic-bezier(.2, 1.6, .4, 1) .2s forwards;
}

@keyframes lp-stamp {
  0% { transform: rotate(30deg) scale(0); }
  100% { transform: rotate(12deg) scale(1); }
}

.lp-thint {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 14.5px;
  font-weight: 800;
  text-align: center;
  transition: opacity .3s ease;
}

.lp-titlecard.is-charging .lp-thint,
.lp-titlecard.is-revealed .lp-thint {
  opacity: 0;
}

.lp-tmeta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-top: -8px;
  padding: 6px 12px;
  border: 0;
  border-radius: 16px;
  background: none;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  animation: lp-cta-in .45s cubic-bezier(.2, 1.4, .4, 1) both;
}

.lp-tmeta[hidden] {
  display: none;
}

.lp-tmeta b {
  color: #ffe29a;
  font-weight: 900;
}

.lp-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.lp-dot {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(251, 248, 239, .38);
  border-radius: 50%;
}

.lp-dot.is-commune { border-color: #fbf8ef; background: #fbf8ef; }
.lp-dot.is-rare { border-color: transparent; background: linear-gradient(135deg, #f8f4fc 0%, #cec4de 38%, #ffffff 58%, #b8adcc 100%); }
.lp-dot.is-legendaire { border-color: transparent; background: linear-gradient(135deg, #fff3cf 0%, #e5b75c 38%, #fff6db 58%, #c9963f 100%); }

.lp-dot.is-new {
  animation: lp-dot-new .7s cubic-bezier(.2, 1.6, .4, 1) .3s both;
}

@keyframes lp-dot-new {
  0% { transform: scale(0); box-shadow: 0 0 0 0 rgba(255, 226, 154, .9); }
  60% { transform: scale(1.5); box-shadow: 0 0 0 8px rgba(255, 226, 154, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 226, 154, 0); }
}

/* The title gets out of the way when what comes next rises. */
.lp-titlecard.is-docked .lp-tplace {
  transform: translateY(-10px) scale(.56);
}

.lp-titlecard.is-docked .lp-tmeta,
.lp-titlecard.is-docked .lp-thint,
.lp-titlecard.is-docked .lp-final__cta {
  opacity: 0;
  pointer-events: none;
}

/* The reward, after the title: its section of before, moved here. */
.lp-final__reward {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  animation: lp-cta-in .45s cubic-bezier(.2, 1.4, .4, 1) both;
}

.lp-final__reward.is-docked {
  animation: none;
  transition: transform .5s cubic-bezier(.2, .85, .25, 1);
}

/* What comes next, at the foot: the rematch first. */
.lp-next {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  justify-content: center;
  transform: translateY(105%);
  transition: transform .5s cubic-bezier(.2, .85, .25, 1);
}

.lp-next.is-open {
  transform: translateY(0);
}

.lp-next__card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: min(430px, 100%);
  max-height: calc(100svh - 70px);
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  background: #fbf8ef;
  box-shadow: 0 -10px 30px rgba(26, 6, 40, .3);
  color: #702a71;
}

.lp-tonight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
}

.lp-tonight__k {
  color: #c4285b;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lp-score2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.lp-score2 b {
  color: #c4285b;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.lp-score2 em {
  font-style: normal;
  opacity: .6;
}

.lp-score2__name {
  overflow: hidden;
  max-width: 7.5em;
  text-overflow: ellipsis;
}

.lp-mini {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.lp-mini--0 {
  background: #fbf8ef;
  box-shadow: inset 0 0 0 2.5px #c4285b;
  color: #c4285b;
}

.lp-mini--1 {
  background: #702a71;
  box-shadow: inset 0 0 0 2px #fbf8ef;
  color: #fbf8ef;
}

.lp-mini__crown {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 22px;
  margin-left: -11px;
  transform: rotate(-8deg);
}

.lp-next .lp-btn--big {
  width: 100%;
}

.lp-next__line {
  margin: -4px 0 0;
  color: #8d346a;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.lp-next__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.lp-next__stats span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(196, 40, 91, .07);
  color: #8d346a;
  font-size: 12.5px;
  font-weight: 800;
}

.lp-next__stats b {
  color: #702a71;
  font-weight: 900;
}

.lp-rate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  min-height: 54px;
  padding: 4px 0;
  border-top: 1.5px solid rgba(112, 42, 113, .12);
  border-bottom: 1.5px solid rgba(112, 42, 113, .12);
  font-size: 14.5px;
  font-weight: 900;
}

.lp-rate__stars {
  display: flex;
}

.lp-rate__star {
  display: grid;
  place-items: center;
  width: 38px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(112, 42, 113, .26);
  cursor: pointer;
  transition: color .2s ease;
}

.lp-rate__star svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.lp-rate__star.is-on {
  color: #f29a1f;
}

.lp-rate__star.is-pop svg {
  animation: lp-pop-in .4s cubic-bezier(.2, 1.6, .4, 1);
}

.lp-rate__more {
  flex-basis: 100%;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: #c4285b;
  font: inherit;
  font-size: 13.5px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.lp-rate__more[hidden],
.lp-next__pass[hidden] {
  display: none;
}

.lp-next__pass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(242, 154, 31, .1);
  box-shadow: inset 0 0 0 1.5px rgba(242, 154, 31, .55);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
}

.lp-next__pass button {
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #c4285b;
  color: #fbf8ef;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

.lp-next .lp-btn--ghost {
  min-height: 46px;
}

/* A light that crosses a button now and then. */
.lp-shine {
  position: relative;
  overflow: hidden;
}

.lp-shine::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  animation: lp-sweep 3.2s ease-in-out 1s infinite;
  pointer-events: none;
}

@keyframes lp-sweep {
  0%, 62% { left: -60%; }
  100% { left: 130%; }
}

/* ---- The crown of the couple, on the start ---- */
.lp-crown-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 6px;
  padding: 16px 16px 8px;
  border-radius: 22px;
  background: #fbf8ef;
  box-shadow: 0 5px 0 rgba(51, 11, 134, .35), 0 18px 32px rgba(51, 11, 134, .25);
  color: #702a71;
}

.lp-crown-card[hidden] {
  display: none;
}

.lp-crown-card .lp-score2 {
  align-self: center;
  margin-top: 8px;
}

.lp-crown-card__line {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.lp-crown-card .lp-btn {
  width: 100%;
}

.lp-crown-card .lp-btn[hidden],
.lp-crown-card__line[hidden] {
  display: none;
}

.lp-crown-card__titles {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-top: 1.5px solid rgba(112, 42, 113, .12);
  background: none;
  color: #702a71;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.lp-crown-card__titles .lp-dots {
  flex: none;
  flex-wrap: nowrap;
  gap: 2px;
}

.lp-crown-card__titles .lp-dot {
  width: 8px;
  height: 8px;
  border-width: 1.5px;
  border-color: rgba(112, 42, 113, .3);
}

.lp-crown-card__titles .lp-dot.is-commune {
  border-color: #c4285b;
  background: #c4285b;
}

/* On a narrow phone, the words of a long language go to a second line (after « · », see paintCrown) rather than
   pushing the arrow out of the card. */
.lp-crown-card__titles span:nth-child(2) {
  min-width: 0;
  line-height: 1.2;
  word-break: keep-all;
}

.lp-crown-card__titles svg {
  flex: none;
  margin-left: auto;
}

/* ---- The album of the titles ---- */
.lc-party[data-party-view="album"] .lp-shell {
  padding-bottom: 28px;
}

.lp-album {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.lp-album__top {
  display: flex;
}

.lp-album__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 14px 0 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fbf8ef;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.lp-album__title {
  margin: 16px 0 0;
  color: #ffd6e4;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.lp-album__count {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 900;
}

.lp-album__count b {
  color: #ffe29a;
  font-size: 34px;
  line-height: 1;
}

.lp-album__bar {
  height: 10px;
  margin: 10px 0 14px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, .2);
}

.lp-album__bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(135deg, #fff3cf 0%, #e5b75c 38%, #fff6db 58%, #c9963f 100%);
  transition: width .8s cubic-bezier(.3, .8, .3, 1) .2s;
}

.lp-album__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.lp-tile {
  --k: .62;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 11px 6px 10px;
  border-radius: 16px;
  background: #fbf8ef;
  color: #702a71;
  text-align: center;
}

.lp-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: inherit;
  background: #f3c6d6;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.lp-tile[data-r="rare"]::before {
  background: linear-gradient(135deg, #f8f4fc 0%, #cec4de 38%, #ffffff 58%, #b8adcc 100%);
}

.lp-tile[data-r="legendaire"]::before {
  background: linear-gradient(135deg, #fff3cf 0%, #e5b75c 38%, #fff6db 58%, #c9963f 100%);
}

.lp-tile b {
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.15;
}

.lp-tile small {
  color: #8d346a;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
}

.lp-tile.is-missing {
  background: rgba(26, 6, 40, .22);
  color: rgba(255, 255, 255, .9);
}

.lp-tile.is-missing::before {
  background: rgba(251, 248, 239, .22);
}

.lp-tile.is-missing small {
  color: rgba(255, 255, 255, .72);
}

.lp-tile__q {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 2px dashed rgba(251, 248, 239, .45);
  border-radius: 50%;
  font-size: 19px;
  font-weight: 900;
}

.lp-tile__new {
  position: absolute;
  top: -7px;
  right: -5px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 999px;
  background: #c4285b;
  box-shadow: 0 0 0 2px #fbf8ef;
  color: #fbf8ef;
  font-size: 10px;
  font-weight: 900;
  transform: rotate(10deg);
}

.lp-album__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 900;
}

.lp-album__foot .lp-score2 {
  color: #fbf8ef;
}

.lp-album__foot .lp-score2 b {
  color: #ffe29a;
}

/* The lights of the end, drawn over the screen (a canvas as large as the screen, nothing to download). */
.lp-lights {
  position: fixed;
  inset: 0;
  z-index: 85;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .lp-piece.is-gold::before,
  .lp-straight::after,
  .lp-pawn.has-crown .lp-pawn__crown,
  .lp-bigb.is-on,
  .lp-bigb.is-off,
  .lp-jar__wave,
  .lp-jar__num.is-bump,
  .lp-jar__crown.is-on,
  .lp-lead.is-pop,
  .lp-verdict.is-on,
  .lp-aura i,
  .lp-titlecard.is-in .lp-tfloat,
  .lp-ttremble.is-on,
  .lp-ttremble.is-beat,
  .lp-ttremble.is-land,
  .lp-tcard__face::after,
  .lp-tflash.is-on,
  .lp-tstamp.is-on,
  .lp-tmeta,
  .lp-dot.is-new,
  .lp-final__reward,
  .lp-final__cta .lp-btn:not([hidden]),
  .lp-rate__star.is-pop svg,
  .lp-shine::after {
    animation: none;
  }

  .lp-bigb.is-on,
  .lp-verdict.is-on,
  .lp-jar__crown.is-on {
    opacity: 1;
    transform: none;
  }

  .lp-tstamp.is-on {
    transform: rotate(12deg);
  }

  .lp-straight,
  .lp-count,
  .lp-titlecard,
  .lp-jar,
  .lp-tplace,
  .lp-next,
  .lp-album__bar i {
    transition: none;
  }
}

/* Greek and Japanese write the big words of « Encore une partie » with the font of the site: Caveat does not have their
   letters, and the site's font, wider, takes a smaller size. */
[data-esp-lang="el"] .lp-bigb b,
[data-esp-lang="ja"] .lp-bigb b {
  font-family: inherit;
  font-size: clamp(36px, 11vw, 46px);
  font-weight: 900;
  line-height: 1.05;
}

[data-esp-lang="el"] .lp-verdict,
[data-esp-lang="ja"] .lp-verdict {
  font-family: inherit;
  font-size: clamp(28px, 8vw, 34px);
  font-weight: 900;
  line-height: 1.12;
}

[data-esp-lang="el"] .lp-tname,
[data-esp-lang="ja"] .lp-tname {
  font-family: inherit;
  font-size: calc(26px * var(--k));
  font-weight: 900;
  line-height: 1.1;
}

/* ---- La flamme du soir (docs/FLAMME_ET_CADENAS.md, lot 1): at the top of what comes next, the flame that wins its
   evening. Its first end of the evening plays it (.is-new): the flame grows, a ring, « +1 », the number, the heart of
   the day; the bar slides to its new length. ---- */
.lp-flame {
  position: relative;
  padding: 14px 16px 10px;
  border-radius: 22px;
  background: linear-gradient(160deg, #4e1a5c 0%, #702a71 55%, #b0128a 100%);
  box-shadow: 0 5px 0 rgba(51, 11, 134, .35);
  color: #ffffff;
}
.lp-flame[hidden] {
  display: none;
}
.lp-flame__top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lp-flame__fire {
  position: relative;
  flex: none;
  width: 64px;
  height: 76px;
}
.lp-flame__svg {
  position: absolute;
  inset: 0;
  width: 64px;
  height: 76px;
  overflow: visible;
  transform: scale(.92);
  transform-origin: 50% 100%;
}
.lp-flame.is-new .lp-flame__svg {
  animation: lp-flame-grow .9s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes lp-flame-grow {
  0% { transform: scale(.68); }
  55% { transform: scale(1.06); }
  100% { transform: scale(.92); }
}
.lp-flame__core {
  transform-origin: 60px 116px;
  animation: lp-flame-flicker 2.6s ease-in-out infinite;
}
@keyframes lp-flame-flicker {
  0%, 100% { transform: scaleY(1); }
  35% { transform: scaleY(1.07) scaleX(.97); }
  70% { transform: scaleY(.96) scaleX(1.02); }
}
.lp-flame__ring {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #ffd6e4;
  opacity: 0;
  pointer-events: none;
}
.lp-flame.is-new .lp-flame__ring {
  animation: lp-flame-ring 1.1s ease-out both;
}
@keyframes lp-flame-ring {
  0% { opacity: 1; transform: scale(.5); }
  100% { opacity: 0; transform: scale(1.6); }
}
.lp-flame__plus {
  position: absolute;
  top: 0;
  right: -12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fe5759;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
}
.lp-flame.is-new .lp-flame__plus {
  animation: lp-flame-plus 1.6s ease-out both;
}
@keyframes lp-flame-plus {
  0% { opacity: 0; transform: translateY(8px); }
  20% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-22px); }
}
.lp-flame__words {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
.lp-flame__kicker {
  color: #ffd6e4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lp-flame__title {
  margin-top: 2px;
  color: #fbf8ef;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}
.lp-flame.is-new .lp-flame__title {
  animation: lp-flame-pop .5s ease both;
}
@keyframes lp-flame-pop {
  0% { opacity: .4; transform: scale(.85); }
  60% { opacity: 1; transform: scale(1.06); }
  100% { transform: none; }
}
.lp-flame__line {
  margin-top: 2px;
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}
.lp-flame__bar {
  display: block;
  height: 10px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
}
.lp-flame__bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fe5759 0%, #ffd6e4 100%);
  transition: width .9s cubic-bezier(.3, .8, .3, 1);
}
.lp-flame__days {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1.5px solid rgba(255, 255, 255, .16);
  list-style: none;
}
.lp-flame__days li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  font-weight: 900;
}
.lp-flame__days svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: rgba(255, 255, 255, .4);
  stroke-width: 2;
  transition: fill .3s ease, stroke .3s ease;
}
.lp-flame__days li.is-on svg {
  fill: #fe5759;
  stroke: #fe5759;
}
.lp-flame__days li.is-today {
  color: #ffffff;
}
.lp-flame__days li.is-pop svg {
  animation: lp-flame-heart .5s ease both;
}
@keyframes lp-flame-heart {
  0% { transform: scale(1); }
  45% { transform: scale(1.45); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-flame__core {
    animation: none;
  }
  .lp-flame__bar i {
    transition: none;
  }
}
