/*
 * After Party (docs/AFTER_PARTY.md, template/espace/after-party.php and its band in template/espace/lobby.php): the spicy
 * board of Lovely Party, in the look of the app. Its drawings: template/espace/partials/after-art.php. This sheet comes after
 * space-party.css on its page.
 */

/* ---- The disco ball sways a little ---- */
.lc-after-ball {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: lc-after-sway 5s ease-in-out infinite;
}

@keyframes lc-after-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* ---- The ribbon « Coquin »: it comes out of the left edge of the screen, its end cut like a swallow's tail ---- */
.lc-after__ribbon {
  position: absolute;
  left: -20px;
  top: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  box-sizing: border-box;
  padding: 0 28px 0 18px;
  background: #fe5759;
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 50%, 100% 100%, 0 100%);
  filter: drop-shadow(0 3px 0 rgba(112, 42, 113, .4));
  color: #4a0e2e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .146em;
  text-transform: uppercase;
}

/* Wider than a phone, it still starts at the edge of the screen. */
.lc-after__ribbon::before {
  position: absolute;
  top: 0;
  right: 100%;
  bottom: 0;
  width: 100vw;
  background: #fe5759;
  content: "";
}

/* ---- The band of the lobby, the whole width under Lovely Party ---- */
.lc-after {
  position: relative;
  display: block;
  width: 100vw;
  height: 300px;
  margin: 16px calc(50% - 50vw) 0;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  transition: transform .12s ease;
}

.lc-after:active {
  transform: translateY(2px);
}

.lc-after:focus-visible {
  outline: 3px solid #ffd6e4;
  outline-offset: -3px;
}

.lc-after__stretch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.lc-after__inner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(430px, calc(100vw - 40px));
  transform: translateX(-50%);
}

/* The drawings keep their proportions and stay on the right. */
.lc-after__art {
  position: absolute;
  top: 0;
  right: -20px;
  width: min(390px, calc(100% + 40px));
  height: 300px;
  overflow: visible;
}

.lc-after__pass {
  position: absolute;
  top: 52px;
  left: 116px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  background: #fbf8ef;
  box-shadow: 0 3px 0 rgba(112, 42, 113, .35);
  color: #a50c3a;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lc-after__pass[hidden] {
  display: none;
}

.lc-after__name {
  position: absolute;
  top: 88px;
  left: 0;
  color: #fbf8ef;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 34px;
}

.lc-after__name span {
  color: #ffd6e4;
}

.lc-after__line {
  position: absolute;
  top: 126px;
  left: 0;
  width: min(168px, 46%);
  color: rgba(255, 255, 255, .95);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 18.5px;
}

.lc-after__go {
  position: absolute;
  top: 196px;
  left: 0;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fbf8ef;
  box-shadow: 0 4px 0 rgba(112, 42, 113, .4);
  color: #c4285b;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---- The start ---- */
.lc-game.lc-party.lc-after-game {
  background: linear-gradient(180deg, #b0128a 0%, #b0128a 60%, #d70298 100%);
}

/* The bed, under the bar on top, from one edge of the screen to the other; it gives way on a small phone. */
.ap-hero {
  position: relative;
  flex: none;
  height: clamp(220px, calc(100svh - 420px), 424px);
  margin: calc(-72px - env(safe-area-inset-top, 0px)) calc(50% - 50vw) -1px;
  overflow: hidden;
  background: linear-gradient(180deg, #a50c3a 0%, #d4276f 70%);
}

/* A game waits: « Reprendre la partie » takes room, the bed gives way. */
.ap-start:has(.lp-resume:not([hidden])) .ap-hero {
  height: clamp(170px, calc(100svh - 610px), 424px);
}

.ap-hero__art {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  max-width: none;
  height: 100%;
  overflow: visible;
  aspect-ratio: 390 / 424;
  transform: translateX(-50%);
}

.ap-hero__sheets {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 36.8%;
}

.ap-hero__ribbon {
  top: calc(70px + env(safe-area-inset-top, 0px));
  left: 0;
}

.ap-start__title {
  position: relative;
  margin: -4px 8px 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 27px;
  text-align: center;
}

.ap-start__actions {
  margin-top: auto;
}

.ap-start .lp-new {
  margin-top: 16px;
}

.ap-joker {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  box-sizing: border-box;
  margin: 12px 0 0;
  padding: 8px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28);
}

.ap-joker__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fe5759;
}

.ap-joker__words {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 18px;
}

.ap-joker__words strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  line-height: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .lc-after-ball {
    animation: none;
  }
}

/* ---- The board « Les draps »: the whole board is the bed ---- */
.lc-game.lc-party.lc-after-game[data-party-view="board"] {
  background: linear-gradient(180deg, #a50c3a 0%, #d4276f 26%, #d4276f 100%);
}

.ap-satin {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ap-satin[hidden] {
  display: none;
}

/* Under the header and the race, the satin melts into the top of the page: their words stay easy to read. */
.ap-satin::after {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(104px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, #a50c3a 0%, #a50c3a 52%, rgba(165, 12, 58, 0) 100%);
  content: "";
}

/* The satin moves with the camera, as the pieces do (.lp-layer of space-party.css). */
.ap-satin__sheet {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: transform .6s cubic-bezier(.22, .8, .3, 1);
  will-change: transform;
}

.ap-satin__sheet.is-still {
  transition: none;
}

.ap-satin__sheet.is-tour {
  transition: transform 2.5s cubic-bezier(.45, .05, .3, 1) .45s;
}

.ap-satin__sheet > svg {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  overflow: visible;
}

/* The reflections of the disco ball, three sets that take turns. */
.ap-flakes,
.ap-flakes__set {
  position: absolute;
  inset: 0;
}

.ap-flakes__set {
  opacity: .15;
  animation: ap-flakes 3.6s ease-in-out infinite;
}

.ap-flakes__set:nth-child(2) {
  animation-delay: -1.2s;
}

.ap-flakes__set:nth-child(3) {
  animation-delay: -2.4s;
}

@keyframes ap-flakes {
  0%, 100% { opacity: .12; }
  50% { opacity: .7; }
}

.ap-flakes i {
  position: absolute;
  display: block;
  background: #ffffff;
}

/* The bed is drawn with the satin: the arrival itself shows nothing. */
.lc-after-game .lp-piece--arrivee svg {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .ap-flakes__set {
    opacity: .35;
    animation: none;
  }
}

/* ---- « Tire le drap » (Action and Vérité): the card waits under the satin; over the board, under the bar and the race ---- */
.lc-after-game .lp-race {
  z-index: 2;
}

/* The board comes in as on any table, then lets the race go over the satin (an animation that stays filled would keep it
   in a layer of its own, under the satin). */
.lc-after-game[data-state="ready"] .esp-game__shell > .lp-board {
  animation-fill-mode: backwards;
}

.ap-drap {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(180deg, #a50c3a 0%, #d4276f 46%, #b0128a 100%);
  opacity: 0;
  transition: opacity .25s ease;
}

.ap-drap[hidden] {
  display: none;
}

.ap-drap.is-open {
  opacity: 1;
}

/* Not the entrance of the table each time it opens. */
.lc-game[data-state="ready"] .esp-game__shell > .ap-drap {
  animation: none;
}

.ap-drap__bed {
  position: absolute;
  top: 0;
  left: 50%;
  width: 390px;
  height: 460px;
  margin-left: -195px;
  overflow: visible;
}

.ap-drap__card {
  position: absolute;
  top: calc(var(--ap-drap-top, 100px) + clamp(18px, 6svh, 52px));
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(322px, calc(100vw - 68px));
  height: min(396px, calc(100svh - var(--ap-drap-top, 100px) - 230px));
  box-sizing: border-box;
  padding: 24px 24px 22px;
  overflow: hidden;
  border-radius: 24px;
  background: #fbf8ef;
  box-shadow: 0 6px 0 rgba(74, 14, 46, .4);
  color: #702a71;
  text-align: center;
  transform: translateX(-50%) rotate(-2deg);
}

/* The smallest phones: a long card scrolls rather than lose its end. */
.ap-drap__card.is-tall {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ap-drap__tag {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffd6e4;
  color: #a50c3a;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ap-drap__body {
  width: 100%;
  margin: auto 0;
  padding-top: 12px;
}

.ap-drap__words {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 30px;
}

.ap-drap__words em,
.ap-drap__end em {
  color: #c4285b;
  font-style: normal;
}

.ap-drap__end {
  margin: 12px 0 0;
  color: #c4285b;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 42px;
  font-weight: 700;
  line-height: 42px;
}

.ap-drap__end.is-long {
  font-size: 33px;
  line-height: 35px;
}

.ap-drap__end[hidden] {
  display: none;
}

/* The satin: everything on it goes with it, under the finger. */
.ap-drap__cover {
  position: absolute;
  top: var(--ap-drap-top, 100px);
  right: 0;
  left: 0;
  height: calc(100svh + 120px);
  color: #ffffff;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.ap-drap__cover.is-held {
  cursor: grabbing;
  transition: none;
}

.ap-drap__cover.is-still {
  transition: none;
}

.ap-drap__satin {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  overflow: visible;
}

.ap-drap__call,
.ap-drap__hint,
.ap-drap__pull {
  position: relative;
  transition: opacity .25s ease .22s, visibility 0s linear .22s;
}

.ap-drap__call {
  margin: 0 16px;
  padding-top: clamp(66px, 17.8svh, 150px);
  color: #fbf8ef;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 62px;
  font-weight: 700;
  line-height: 62px;
  text-align: center;
  transform: rotate(-3deg);
}

.ap-drap__call.is-long {
  font-size: 46px;
}

.ap-drap__hint {
  margin: 16px 40px 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 23px;
  text-align: center;
}

.ap-drap__pull {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 240px;
  height: 58px;
  margin: clamp(18px, 5.8svh, 49px) auto 0;
  border: 0;
  border-radius: 999px;
  background: #fbf8ef;
  box-shadow: 0 5px 0 rgba(74, 14, 46, .4);
  color: #c4285b;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.ap-drap__pull svg {
  animation: ap-appel 1.5s ease-in-out infinite;
}

@keyframes ap-appel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.ap-drap.is-pulled .ap-drap__call,
.ap-drap.is-pulled .ap-drap__hint,
.ap-drap.is-pulled .ap-drap__pull {
  visibility: hidden;
  opacity: 0;
  transition: opacity .16s ease, visibility 0s linear .16s;
}

.ap-drap__actions {
  position: absolute;
  /* Above the note under them, however many lines it takes in the language (--ap-note-extra, espace.js). */
  bottom: calc(max(58px, calc(env(safe-area-inset-bottom, 0px) + 30px)) + var(--ap-note-extra, 0px));
  left: 50%;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 12px;
  width: min(350px, calc(100vw - 40px));
  visibility: hidden;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity .16s ease, visibility 0s linear .16s;
}

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

.ap-drap__note {
  position: absolute;
  right: 20px;
  bottom: max(26px, env(safe-area-inset-bottom, 0px));
  left: 20px;
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .16s ease, visibility 0s linear .16s;
}

.ap-drap.is-pulled .ap-drap__actions,
.ap-drap.is-pulled .ap-drap__note {
  visibility: visible;
  opacity: 1;
  transition: opacity .35s ease .32s, visibility 0s linear .32s;
}

@media (prefers-reduced-motion: reduce) {
  .ap-drap,
  .ap-drap__cover,
  .ap-drap__call,
  .ap-drap__hint,
  .ap-drap__pull,
  .ap-drap__actions,
  .ap-drap__note {
    transition: none !important;
  }

  .ap-drap__pull svg {
    animation: none;
  }
}

/* ---- Le vestiaire: the clothes on their line; the dock of the game stays, over the scene, and says what to do ---- */
.ap-closet {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(180deg, #a50c3a 0%, #d4276f 60%, #d4276f 100%);
  opacity: 0;
  transition: opacity .25s ease;
}

.ap-closet[hidden] {
  display: none;
}

.ap-closet.is-open {
  opacity: 1;
}

.lc-game[data-state="ready"] .esp-game__shell > .ap-closet {
  animation: none;
}

.ap-closet__satin,
.ap-closet__line {
  position: absolute;
  left: 0;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.ap-closet__line {
  top: 0;
}

.ap-closet__head {
  position: absolute;
  top: var(--ap-closet-top, 68px);
  right: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ap-closet__title {
  margin: 6px 0 0;
  color: #fbf8ef;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 44px;
  font-weight: 700;
  line-height: 44px;
  text-align: center;
  transform: rotate(-2deg);
}

.ap-closet__title.is-long {
  font-size: 36px;
  line-height: 38px;
}

.ap-closet__rack {
  position: absolute;
  inset: 0;
}

.ap-hung {
  position: absolute;
  width: 92px;
  height: 110px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: none;
  cursor: pointer;
  transition: transform .95s cubic-bezier(.45, .05, .55, .95);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ap-hung:disabled {
  cursor: default;
}

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

.ap-closet.is-still .ap-hung {
  transition: none;
}

.ap-hung svg {
  display: block;
  overflow: visible;
  transform-origin: 50% 0;
  animation: ap-pendu 3.4s ease-in-out infinite;
}

.ap-hung.is-down svg {
  animation: none;
}

@keyframes ap-pendu {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* The peg stays on the line when the garment falls. */
.ap-peg {
  position: absolute;
  display: block;
  width: 10px;
  height: 24px;
  box-sizing: border-box;
  border: 1.6px solid #c4285b;
  border-radius: 3px;
  background: #fbf8ef;
  pointer-events: none;
}

.lc-after-game.is-closet .lp-dock {
  position: relative;
  z-index: 2;
}

.lc-after-game.is-closet .lp-race {
  visibility: hidden;
}

.lc-after-game.is-closet .lp-dock__row,
.lc-after-game.is-closet .lp-score__hearts {
  display: none;
}

.lc-after-game.is-closet .lp-score {
  gap: 6px;
  padding-right: 10px;
}

.ap-score__left {
  display: none;
  flex: none;
  margin-left: auto;
  color: #c4285b;
  font-size: 12.5px;
  font-weight: 900;
  white-space: nowrap;
}

.lc-after-game.is-closet .ap-score__left {
  display: inline;
}

.lp-score.is-turn .ap-score__left {
  color: #fbf8ef;
}

.lc-after-game.is-closet .lp-score.is-stack {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: center;
  column-gap: 6px;
}

.lc-after-game.is-closet .lp-score.is-stack .lp-score__pawn {
  grid-row: 1 / span 2;
}

.lc-after-game.is-closet .lp-score.is-stack .lp-score__name {
  font-size: 13.5px;
  line-height: 16px;
}

.lc-after-game.is-closet .lp-score.is-stack .ap-score__left {
  margin-left: 0;
  font-size: 11.5px;
  line-height: 14px;
}

.ap-closet-bar {
  display: none;
  flex-direction: column;
  justify-content: center;
  min-height: 80px;
  margin-top: 12px;
}

.lc-after-game.is-closet .ap-closet-bar {
  display: flex;
}

.ap-closet-bar__ask {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 24px;
  text-align: center;
}

.ap-closet-bar__note {
  margin: 4px 0 0;
  color: #8d346a;
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.ap-closet-bar__actions {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 12px;
}

.ap-closet-bar__actions[hidden],
.ap-closet-bar [hidden] {
  display: none;
}

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

/* ---- The end: who finishes in socks, the two heaps, the reward, the rematch ---- */
.lc-game.lc-party.lc-after-game[data-party-view="end"] {
  background: linear-gradient(180deg, #a50c3a 0%, #d4276f 46%, #b0128a 100%);
}

.ap-end {
  color: #ffffff;
}

.ap-end__socks {
  margin: 0;
  color: #fbf8ef;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: clamp(46px, 7svh, 58px);
  font-weight: 700;
  line-height: .93;
  text-align: center;
  transform: rotate(-2deg);
}

.ap-end__socks.is-long {
  font-size: clamp(36px, 5.5svh, 46px);
}

.ap-end__socks span {
  display: block;
}

.ap-end__win {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
}

.ap-heaps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.ap-heap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ap-heap svg {
  width: 100%;
  max-width: 190px;
  height: clamp(100px, calc(100svh - 706px), 190px);
  overflow: visible;
}

.ap-heap__item {
  animation: ap-tas .5s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes ap-tas {
  from { transform: translateY(-46px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.ap-heap__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-heap__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 128px;
  max-width: 100%;
  height: 34px;
  box-sizing: border-box;
  padding: 0 12px;
  border-radius: 999px;
  background: #fbf8ef;
  box-shadow: 0 3px 0 rgba(74, 14, 46, .35);
  color: #c4285b;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.ap-heap--1 .ap-heap__chip {
  background: #702a71;
  color: #fbf8ef;
}

.ap-end__reward {
  position: relative;
  margin: 26px 6px 0;
  padding: 26px 22px 14px;
  border-radius: 22px;
  background: #fbf8ef;
  box-shadow: 0 5px 0 rgba(74, 14, 46, .4);
  color: #702a71;
  text-align: center;
}

.ap-end__tag {
  position: absolute;
  top: -13px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 14px;
  border-radius: 999px;
  background: #c4285b;
  color: #fbf8ef;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.ap-end__text {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 26px;
}

.ap-end__text.is-long {
  font-size: 18px;
  line-height: 23px;
}

.ap-end__text em {
  color: #c4285b;
  font-style: normal;
}

.ap-again {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 16px 16px;
  border-radius: 24px;
  background: #fbf8ef;
  box-shadow: 0 6px 0 rgba(51, 11, 134, .3);
  color: #702a71;
}

.ap-again__score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 900;
}

.ap-again .lp-tonight__k {
  white-space: nowrap;
}

.ap-again__score span {
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-again__score b {
  color: #c4285b;
  font-size: 21px;
}

.ap-again__score b + b,
.ap-again__score i + b {
  color: #702a71;
}

.ap-again__score i {
  font-style: normal;
}

.ap-again .lp-btn {
  width: 100%;
  box-sizing: border-box;
}

.ap-again .lp-btn--big {
  min-height: 54px;
  font-size: 17px;
}

.ap-again .lp-rate {
  min-height: 44px;
}

.ap-again .lp-rate__star.is-on {
  color: #c4285b;
}

/* A small phone: everything that matters above the fold, « Au salon » may scroll. */
@media (max-height: 720px) {
  .ap-end__win {
    margin-top: 8px;
  }

  .ap-heaps {
    margin-top: 2px;
  }

  .ap-heap__chip {
    height: 30px;
    font-size: 13px;
  }

  .ap-end__reward {
    margin-top: 20px;
    padding: 20px 16px 10px;
  }

  .ap-end__text {
    font-size: 17px;
    line-height: 22px;
  }

  .ap-again {
    margin-top: 12px;
    padding: 10px 14px 12px;
  }
}

.ap-again .lp-btn--ghost {
  min-height: 46px;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .ap-closet,
  .ap-hung {
    transition: none !important;
  }

  .ap-hung svg,
  .ap-heap__item {
    animation: none;
  }
}

/* ---- Qui de nous deux: the question on the headboard, a pillow for each first name; not the same pillow, the pillow fight ---- */
.ap-qui {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(180deg, #a50c3a 0%, #d4276f 46%, #b0128a 100%);
  color: #ffffff;
  opacity: 0;
  transition: opacity .25s ease;
}

.ap-qui[hidden] {
  display: none;
}

.ap-qui.is-open {
  opacity: 1;
}

.lc-game[data-state="ready"] .esp-game__shell > .ap-qui {
  animation: none;
}

.ap-qui__stage {
  position: absolute;
  top: var(--ap-qui-shift, 0px);
  left: 50%;
  width: 390px;
  height: 470px;
  margin-left: -195px;
  transform-origin: 50% 0;
}

.ap-qui__head {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 470px;
  overflow: visible;
}

.ap-qui__tag {
  position: absolute;
  top: 110px;
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
}

.ap-qui__who {
  position: absolute;
  top: 150px;
  right: 20px;
  left: 20px;
  margin: 0;
  color: #fbf8ef;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 46px;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
  transform: rotate(-2deg);
}

.ap-qui__q {
  position: absolute;
  top: 204px;
  right: 66px;
  left: 66px;
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 30px;
  text-align: center;
}

.ap-qui__q.is-new {
  animation: ap-nouveau .35s ease-out both;
}

@keyframes ap-nouveau {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.ap-pillow {
  position: absolute;
  top: 330px;
  width: 168px;
  height: 112px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: none;
  transition: top .5s cubic-bezier(.2, .8, .2, 1), left .5s cubic-bezier(.2, .8, .2, 1);
  -webkit-tap-highlight-color: transparent;
}

.ap-pillow:disabled {
  cursor: default;
}

.ap-pillow:focus-visible {
  outline: 3px solid #ffd6e4;
  outline-offset: 2px;
  border-radius: 42px;
}

.ap-pillow--0 {
  left: 18px;
  transform: rotate(-5deg);
}

.ap-pillow--1 {
  left: 204px;
  transform: rotate(5deg);
}

.ap-qui.is-still .ap-pillow {
  transition: none;
}

.ap-pillow__in {
  position: absolute;
  inset: 0;
  display: block;
}

.ap-pillow__in svg {
  display: block;
  filter: drop-shadow(0 6px 0 rgba(74, 14, 46, .3));
}

.ap-pillow.is-puff .ap-pillow__in {
  animation: ap-gonfle .7s ease-out both;
}

@keyframes ap-gonfle {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.09); }
}

.ap-pillow__name {
  position: absolute;
  top: 34px;
  right: 14px;
  left: 14px;
  overflow: hidden;
  color: #702a71;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 46px;
  font-weight: 700;
  line-height: 46px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-pillow__name.is-long {
  top: 40px;
  font-size: 34px;
  line-height: 36px;
}

.ap-pillow__name.is-xlong {
  top: 44px;
  font-size: 26px;
  line-height: 28px;
}

/* The trace of a finger on the pillow. */
.ap-pillow__marks {
  position: absolute;
  top: 74px;
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.ap-pillow__marks i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #c4285b;
  box-shadow: 0 2px 0 rgba(74, 14, 46, .35);
  animation: ap-marque .3s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes ap-marque {
  from { opacity: 0; transform: scale(1.7); }
  to { opacity: 1; transform: scale(1); }
}

.ap-feathers {
  display: none;
}

.ap-feather {
  position: absolute;
  overflow: visible;
  animation: ap-plume 3.2s ease-in infinite;
}

@keyframes ap-plume {
  0% { transform: translate(0, -30px) rotate(-30deg); opacity: 0; }
  14% { opacity: 1; }
  86% { opacity: 1; }
  100% { transform: translate(26px, 210px) rotate(110deg); opacity: 0; }
}

.ap-qui__satin {
  position: absolute;
  left: 0;
  display: block;
  overflow: visible;
  pointer-events: none;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.ap-qui__foot {
  position: absolute;
  top: var(--ap-qui-foot, 490px);
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 24px max(12px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  text-align: center;
}

.ap-qui__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: 100%;
}

.ap-qui__block[hidden] {
  display: none;
}

.ap-qui__lead {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  line-height: 27px;
}

.ap-qui__rule {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 20px;
}

/* The cushion to throw (2026-11-10): it goes with the finger, to the left or to the right, then flies to a pillow. */
.ap-qui__throw {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 70px;
}

.ap-qui__arrows {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 300px;
  height: 40px;
  opacity: .8;
  transform: translateX(-50%);
  pointer-events: none;
}

.ap-cushion {
  position: relative;
  z-index: 3;
  width: 72px;
  height: 66px;
  padding: 0;
  border: 0;
  background: none;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}

.ap-cushion.is-held {
  cursor: grabbing;
  transition: none;
}

.ap-cushion.is-flying {
  transition: transform .48s cubic-bezier(.3, .7, .3, 1);
}

.ap-cushion svg {
  display: block;
  width: 72px;
  height: 66px;
  overflow: visible;
  filter: drop-shadow(0 4px 0 rgba(74, 14, 46, .3));
}

.ap-cushion:focus-visible {
  border-radius: 18px;
  outline: 3px solid #fbf8ef;
  outline-offset: 4px;
}

.ap-pillow__cushion {
  position: absolute;
  top: -16px;
  right: 4px;
  width: 46px;
  height: 42px;
  overflow: visible;
  filter: drop-shadow(0 3px 0 rgba(74, 14, 46, .3));
  animation: ap-marque .3s cubic-bezier(.2, .8, .2, 1) both;
}

.ap-pillow__cushion[hidden],
.ap-qui.is-fight .ap-pillow__cushion {
  display: none;
}

.ap-pillow.is-hit .ap-pillow__in {
  animation: ap-gonfle .6s ease-out both;
}

.ap-qui__yesno {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(350px, 100%);
}

.ap-qui__yesno .lp-btn {
  min-height: 54px;
  padding: 0 12px;
  font-size: 14.5px;
}

.ap-qui__joker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ap-qui__joker .lp-btn {
  width: 150px;
  min-height: 46px;
  font-size: 14px;
}

.ap-qui__joker p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
}

.ap-qui__big {
  margin: 0;
  color: #fbf8ef;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 60px;
  font-weight: 700;
  line-height: 62px;
  transform: rotate(-3deg);
}

.ap-qui__go {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  max-width: 100%;
  min-height: 58px;
  box-sizing: border-box;
  padding: 8px 22px;
  border: 0;
  border-radius: 999px;
  background: #fbf8ef;
  box-shadow: 0 5px 0 rgba(74, 14, 46, .4);
  color: #c4285b;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* The pillow fight. */
.ap-qui.is-fight .ap-qui__tag {
  visibility: hidden;
}

.ap-qui.is-fight .ap-qui__who {
  top: 108px;
  right: 10px;
  left: 10px;
  font-size: 50px;
  line-height: 54px;
}

.ap-qui.is-fight .ap-qui__q {
  top: 176px;
  right: 64px;
  left: 64px;
  color: #ffd6e4;
  font-size: 15.5px;
  line-height: 21px;
}

.ap-qui.is-fight .ap-pillow {
  top: 288px;
}

.ap-qui.is-fight .ap-pillow--0 {
  left: 26px;
  transform: none;
}

.ap-qui.is-fight .ap-pillow--1 {
  left: 196px;
  transform: none;
}

.ap-qui.is-fight .ap-pillow--0 .ap-pillow__in {
  transform-origin: 100% 100%;
  animation: ap-choc-g 1.1s ease-in-out infinite;
}

.ap-qui.is-fight .ap-pillow--1 .ap-pillow__in {
  transform-origin: 0 100%;
  animation: ap-choc-d 1.1s ease-in-out infinite;
}

@keyframes ap-choc-g {
  0%, 100% { transform: rotate(-15deg) translateX(0); }
  50% { transform: rotate(-6deg) translateX(12px); }
}

@keyframes ap-choc-d {
  0%, 100% { transform: rotate(15deg) translateX(0); }
  50% { transform: rotate(6deg) translateX(-12px); }
}

.ap-qui.is-fight .ap-feathers {
  display: block;
}

.ap-qui.is-fight .ap-pillow__marks {
  display: none;
}

.ap-qui.is-fight .ap-qui__satin {
  transform: translateY(-20px);
}

.ap-qui__panel {
  position: absolute;
  top: calc(var(--ap-qui-shift, 0px) + 480px);
  left: 50%;
  width: min(358px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 16px;
  border-radius: 24px;
  background: #fbf8ef;
  box-shadow: 0 6px 0 rgba(74, 14, 46, .4);
  color: #702a71;
  transform: translateX(-50%);
}

.ap-qui__panel[hidden] {
  display: none;
}

.ap-qui__panel-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ap-qui__panel .lp-chrono-row {
  flex: none;
  margin: 0;
}

.ap-qui__fight-line {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 22px;
}

.ap-qui__fight-line em {
  color: #c4285b;
  font-style: normal;
}

.ap-qui__ask {
  margin: 18px 0 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 23px;
  text-align: center;
}

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

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

.ap-qui__verdict .lp-btn--ghost {
  min-height: 46px;
  font-size: 14px;
}

.ap-qui__tagline {
  position: absolute;
  right: 24px;
  bottom: max(30px, env(safe-area-inset-bottom));
  left: 24px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.ap-qui__tagline[hidden] {
  display: none;
}

@media (max-height: 760px) {
  .ap-qui__lead {
    font-size: 19px;
    line-height: 24px;
  }

  .ap-qui__rule {
    font-size: 13.5px;
    line-height: 18px;
  }

  .ap-qui__tagline {
    display: none;
  }

  /* The answer of the cushion keeps to the foot of the shorter phones. */
  [data-after-qui-answer] .ap-qui__big {
    font-size: 46px;
    line-height: 48px;
  }

  .ap-qui__yesno .lp-btn {
    min-height: 48px;
  }

  .ap-qui.is-fight .ap-pillow {
    top: 250px;
  }

  .ap-qui.is-fight .ap-qui__satin {
    transform: translateY(-58px);
  }

  .ap-qui__panel {
    top: auto;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-qui,
  .ap-pillow {
    transition: none !important;
  }

  .ap-feather,
  .ap-pillow.is-puff .ap-pillow__in,
  .ap-pillow__marks i,
  .ap-qui__q.is-new {
    animation: none;
  }

  .ap-qui.is-fight .ap-pillow--0 .ap-pillow__in {
    animation: none;
    transform: rotate(-12deg);
  }

  .ap-qui.is-fight .ap-pillow--1 .ap-pillow__in {
    animation: none;
    transform: rotate(12deg);
  }
}

/* ---- Tu préfères: a sheet cut in two along a wave, white above, satin below; the answer gets the mark of a kiss ---- */
.ap-tu {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(180deg, #a50c3a 0%, #d4276f 46%, #b0128a 100%);
  color: #ffffff;
  opacity: 0;
  transition: opacity .25s ease;
}

.ap-tu[hidden] {
  display: none;
}

.ap-tu.is-open {
  opacity: 1;
}

.lc-game[data-state="ready"] .esp-game__shell > .ap-tu {
  animation: none;
}

.ap-tu__title {
  position: absolute;
  top: calc(var(--ap-tu-shift, 0px) + 104px);
  right: 20px;
  left: 20px;
  margin: 0;
  color: #fbf8ef;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 56px;
  font-weight: 700;
  line-height: 58px;
  text-align: center;
  transform: rotate(-2deg);
}

.ap-tu__line,
.ap-tu__sub {
  position: absolute;
  right: 20px;
  left: 20px;
  margin: 0;
  text-align: center;
}

.ap-tu__line {
  top: calc(var(--ap-tu-shift, 0px) + 168px);
  font-size: 18px;
  font-weight: 900;
  line-height: 24px;
}

.ap-tu.is-chosen-1 .ap-tu__line,
.ap-tu.is-chosen-2 .ap-tu__line {
  top: calc(var(--ap-tu-shift, 0px) + 172px);
}

.ap-tu__sub {
  top: calc(var(--ap-tu-shift, 0px) + 194px);
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}

.ap-tu__sub[hidden] {
  display: none;
}

.ap-tu__line em,
.ap-tu__sub em {
  color: #ffd6e4;
  font-style: normal;
}

.ap-tu__card {
  position: absolute;
  top: calc(var(--ap-tu-shift, 0px) + var(--tu-top, 236px));
  left: 50%;
  width: var(--tu-w, 350px);
  height: var(--tu-h, 430px);
  margin-left: calc(var(--tu-w, 350px) / -2);
  filter: drop-shadow(0 6px 0 rgba(74, 14, 46, .4));
}

.ap-tu__sheet {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

.ap-tu__half {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ap-tu__half:focus-visible {
  outline: 3px solid #ffd6e4;
  outline-offset: -6px;
  border-radius: 22px;
}

.ap-tu__half--1 {
  top: 0;
  height: var(--tu-mid, 214px);
}

.ap-tu__half--2 {
  top: var(--tu-mid, 214px);
  height: calc(var(--tu-h, 430px) - var(--tu-mid, 214px));
}

.ap-tu__words {
  position: absolute;
  right: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 900;
  line-height: 29px;
  text-align: center;
}

.ap-tu__words > span {
  display: block;
}

.ap-tu__words > span.is-new {
  animation: ap-nouveau .35s ease-out both;
}

.ap-tu__half--1 .ap-tu__words {
  top: 22px;
  bottom: 70px;
  color: #702a71;
}

.ap-tu__half--2 .ap-tu__words {
  top: 70px;
  bottom: 18px;
  color: #ffffff;
}

/* The other half gives way. */
.ap-tu__dim {
  position: absolute;
  right: 0;
  left: 0;
  background: rgba(74, 14, 46, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.ap-tu__dim--1 {
  top: 0;
  height: calc(var(--tu-mid, 214px) + 2px);
  border-radius: 26px 26px 0 0;
}

.ap-tu__dim--2 {
  top: calc(var(--tu-mid, 214px) - 2px);
  bottom: 0;
  border-radius: 0 0 26px 26px;
}

.ap-tu.is-chosen-2 .ap-tu__dim--1,
.ap-tu.is-chosen-1 .ap-tu__dim--2 {
  opacity: 1;
}

/* The mark of a kiss, stamped near the fold: the words stay clear of it. */
.ap-tu__lips {
  position: absolute;
  right: 14px;
  display: block;
  width: 112px;
  height: 80px;
  pointer-events: none;
  visibility: hidden;
}

.ap-tu__lips svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ap-tu__lips--1 {
  top: calc(var(--tu-mid, 214px) - 88px);
  transform: rotate(-10deg);
}

.ap-tu__lips--2 {
  top: calc(var(--tu-mid, 214px) + 2px);
  transform: rotate(8deg);
}

.ap-tu.is-chosen-1 .ap-tu__lips--1,
.ap-tu.is-chosen-2 .ap-tu__lips--2 {
  visibility: visible;
}

.ap-tu.is-chosen-1 .ap-tu__lips--1 svg,
.ap-tu.is-chosen-2 .ap-tu__lips--2 svg {
  animation: ap-baiser .45s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes ap-baiser {
  0% { opacity: 0; transform: scale(1.8); }
  60% { opacity: 1; transform: scale(.93); }
  100% { opacity: 1; transform: scale(1); }
}

.ap-tu__pill {
  position: absolute;
  left: 18px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
}

.ap-tu__pill em {
  font-style: normal;
}

.ap-tu__pill--1 {
  top: calc(var(--tu-mid, 214px) - 66px);
  background: #c4285b;
  color: #fbf8ef;
}

.ap-tu__pill--2 {
  top: calc(var(--tu-mid, 214px) + 38px);
  background: #fbf8ef;
  color: #a50c3a;
}

.ap-tu.is-chosen-1 .ap-tu__pill--1,
.ap-tu.is-chosen-2 .ap-tu__pill--2 {
  visibility: visible;
}

.ap-tu__or {
  position: absolute;
  top: calc(var(--tu-mid, 214px) - 32px);
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-left: -31px;
  border-radius: 50%;
  background: #fbf8ef;
  box-shadow: 0 4px 0 rgba(74, 14, 46, .4), inset 0 0 0 2.5px #c4285b;
  color: #c4285b;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 34px;
  font-weight: 700;
  line-height: 34px;
  pointer-events: none;
}

.ap-tu__tag {
  position: absolute;
  top: -14px;
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.ap-tu__tag .ap-drap__tag {
  box-shadow: 0 3px 0 rgba(74, 14, 46, .3);
}

.ap-tu__foot {
  position: absolute;
  top: calc(var(--ap-tu-shift, 0px) + var(--tu-top, 236px) + var(--tu-h, 430px) + 8px);
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 20px max(10px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  text-align: center;
}

.ap-tu__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: 100%;
}

.ap-tu__block[hidden] {
  display: none;
}

.ap-tu__hand {
  margin: 0;
  color: #fbf8ef;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 38px;
  font-weight: 700;
  line-height: 40px;
  transform: rotate(-1deg);
}

.ap-tu__hand em {
  font-style: normal;
}

.ap-tu__actions {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 12px;
  width: min(350px, 100%);
}

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

@media (max-height: 740px) {
  .ap-tu__title {
    top: calc(var(--ap-tu-shift, 0px) + 100px);
    font-size: 46px;
    line-height: 48px;
  }

  .ap-tu__line,
  .ap-tu.is-chosen-1 .ap-tu__line,
  .ap-tu.is-chosen-2 .ap-tu__line {
    top: calc(var(--ap-tu-shift, 0px) + 150px);
    font-size: 16.5px;
    line-height: 22px;
  }

  .ap-tu__sub {
    top: calc(var(--ap-tu-shift, 0px) + 172px);
    font-size: 13px;
    line-height: 18px;
  }

  .ap-tu__lips {
    width: 88px;
    height: 63px;
  }

  .ap-tu__lips--1 {
    top: calc(var(--tu-mid, 214px) - 68px);
  }

  .ap-tu__hand {
    font-size: 32px;
    line-height: 34px;
  }

  .ap-tu__half--1 .ap-tu__words {
    bottom: 62px;
  }

  .ap-tu__half--2 .ap-tu__words {
    top: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-tu,
  .ap-tu__dim {
    transition: none !important;
  }

  .ap-tu__lips svg,
  .ap-tu__words > span.is-new {
    animation: none !important;
  }
}

/* ---- La roue à facettes: five slices, a rim of little mirrors; the gage comes on the cream card, the wheel behind it ---- */
.ap-roue {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(180deg, #a50c3a 0%, #d4276f 46%, #b0128a 100%);
  color: #ffffff;
  opacity: 0;
  transition: opacity .25s ease;
}

.ap-roue[hidden] {
  display: none;
}

.ap-roue.is-open {
  opacity: 1;
}

.lc-game[data-state="ready"] .esp-game__shell > .ap-roue {
  animation: none;
}

.ap-roue .ap-flakes {
  transition: opacity .3s ease;
}

.ap-roue.is-gage .ap-flakes {
  opacity: 0;
}

.ap-roue__stage {
  position: absolute;
  top: var(--ap-roue-shift, 0px);
  left: 50%;
  width: 390px;
  height: 520px;
  margin-left: -195px;
  transform-origin: 50% 0;
}

.ap-roue__head,
.ap-roue__ball,
.ap-roue__call {
  transition: opacity .3s ease;
}

.ap-roue__head {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 470px;
  overflow: visible;
}

.ap-roue__ball {
  position: absolute;
  top: 0;
  left: 272px;
  overflow: visible;
}

.ap-roue__call {
  position: absolute;
  top: 108px;
  right: 110px;
  left: 24px;
  margin: 0;
  color: #fbf8ef;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 54px;
  font-weight: 700;
  line-height: 56px;
  white-space: nowrap;
  transform: rotate(-3deg);
  transform-origin: 0 50%;
}

.ap-roue__call.is-long {
  font-size: 44px;
}

.ap-roue__call.is-xlong {
  font-size: 34px;
}

.ap-roue.is-gage .ap-roue__head,
.ap-roue.is-gage .ap-roue__ball,
.ap-roue.is-gage .ap-roue__call {
  opacity: 0;
}

.ap-roue__wheel {
  position: absolute;
  top: 192px;
  left: 42px;
  width: 306px;
  height: 306px;
  transition: top .6s cubic-bezier(.2, .8, .2, 1);
}

.ap-roue.is-gage .ap-roue__wheel {
  top: 112px;
}

.ap-roue.is-still .ap-roue__wheel,
.ap-roue.is-still .ap-roue__satin {
  transition: none;
}

.ap-roue__disc {
  display: block;
  width: 306px;
  height: 306px;
  overflow: visible;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 3.4s cubic-bezier(.12, .8, .2, 1);
  -webkit-tap-highlight-color: transparent;
}

.ap-roue__disc.is-held {
  cursor: grabbing;
  transition: none;
}

.ap-roue__pointer {
  position: absolute;
  top: -12px;
  left: 137px;
  pointer-events: none;
}

.ap-roue__satin {
  position: absolute;
  left: 0;
  display: block;
  overflow: visible;
  pointer-events: none;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}

.ap-roue.is-gage .ap-roue__satin {
  transform: translateY(var(--ap-roue-drop, 134px));
}

.ap-roue__foot {
  position: absolute;
  top: var(--ap-roue-foot, 530px);
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px 24px max(12px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  text-align: center;
}

.ap-roue__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.ap-roue__block[hidden] {
  display: none;
}

.ap-roue__lead {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  line-height: 25px;
}

.ap-roue__flick {
  margin: 0;
  color: #fbf8ef;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 34px;
  font-weight: 700;
  line-height: 36px;
  transform: rotate(-1deg);
}

.ap-roue__block .ap-qui__big {
  font-size: 56px;
  line-height: 58px;
}

.ap-roue__card {
  top: calc(var(--ap-roue-shift, 0px) + 216px);
  height: min(372px, calc(100svh - var(--ap-roue-shift, 0px) - 216px - 170px));
  animation: ap-roue-carte .45s ease-out both;
}

.ap-roue__card[hidden] {
  display: none;
}

@keyframes ap-roue-carte {
  from { opacity: 0; transform: translateX(-50%) translateY(14px) rotate(-2deg); }
  to { opacity: 1; transform: translateX(-50%) rotate(-2deg); }
}

.ap-roue__actions {
  position: absolute;
  bottom: calc(max(58px, calc(env(safe-area-inset-bottom, 0px) + 30px)) + var(--ap-note-extra, 0px));
  left: 50%;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 12px;
  width: min(350px, calc(100vw - 40px));
  transform: translateX(-50%);
}

.ap-roue__actions[hidden],
.ap-roue__note[hidden] {
  display: none;
}

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

.ap-roue__note {
  position: absolute;
  right: 20px;
  bottom: max(26px, env(safe-area-inset-bottom, 0px));
  left: 20px;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

@media (max-height: 760px) {
  .ap-roue__wheel {
    top: 168px;
  }

  .ap-roue.is-gage .ap-roue__wheel {
    top: 92px;
  }

  .ap-roue__foot {
    padding-top: 12px;
  }

  .ap-roue__block {
    gap: 12px;
  }

  .ap-roue__flick {
    display: none;
  }

  .ap-roue__card {
    top: calc(var(--ap-roue-shift, 0px) + 170px);
    height: calc(100svh - var(--ap-roue-shift, 0px) - 170px - 168px);
  }

  .ap-roue__block .ap-qui__big {
    font-size: 46px;
    line-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-roue,
  .ap-roue__wheel,
  .ap-roue__disc,
  .ap-roue__satin,
  .ap-roue__head,
  .ap-roue__ball,
  .ap-roue__call,
  .ap-roue .ap-flakes {
    transition: none !important;
  }

  .ap-roue__card {
    animation: none;
  }
}

/* ---- The smallest phones: what can go, goes ---- */
@media (max-height: 600px) {
  .ap-qui__rule,
  .ap-qui__joker p {
    display: none;
  }

  [data-after-qui-answer] .ap-qui__big {
    font-size: 36px;
    line-height: 38px;
  }

  [data-after-qui-answer] .ap-qui__lead {
    font-size: 16px;
    line-height: 20px;
  }

  .ap-qui__throw {
    height: 60px;
  }

  .ap-tu__hand {
    font-size: 26px;
    line-height: 28px;
  }
}

/* The same languages take more room under the sheet of Tu préfères: on the shortest phones its note gives way. */
@media (max-height: 600px) {
  [data-esp-lang="el"] .ap-tu__foot .ap-qui__joker p,
  [data-esp-lang="ja"] .ap-tu__foot .ap-qui__joker p {
    display: none;
  }
}

/* Greek and Japanese have no Caveat: what is written by hand takes the font of the site, wider, at a smaller size. */
[data-esp-lang="el"] .ap-drap__end,
[data-esp-lang="ja"] .ap-drap__end {
  font-family: inherit;
  font-weight: 900;
  font-size: 27px;
  line-height: 34px;
}

[data-esp-lang="el"] .ap-drap__end.is-long,
[data-esp-lang="ja"] .ap-drap__end.is-long {
  font-family: inherit;
  font-weight: 900;
  font-size: 22px;
  line-height: 28px;
}

[data-esp-lang="el"] .ap-drap__call,
[data-esp-lang="ja"] .ap-drap__call {
  font-family: inherit;
  font-weight: 900;
  font-size: 40px;
}

[data-esp-lang="el"] .ap-drap__call.is-long,
[data-esp-lang="ja"] .ap-drap__call.is-long {
  font-family: inherit;
  font-weight: 900;
  font-size: 30px;
}

[data-esp-lang="el"] .ap-closet__title,
[data-esp-lang="ja"] .ap-closet__title {
  font-family: inherit;
  font-weight: 900;
  font-size: 29px;
  line-height: 35px;
}

[data-esp-lang="el"] .ap-closet__title.is-long,
[data-esp-lang="ja"] .ap-closet__title.is-long {
  font-family: inherit;
  font-weight: 900;
  font-size: 24px;
  line-height: 30px;
}

[data-esp-lang="el"] .ap-end__socks,
[data-esp-lang="ja"] .ap-end__socks {
  font-family: inherit;
  font-weight: 900;
  font-size: clamp(30px, 4.6svh, 38px);
  line-height: 1.14;
}

[data-esp-lang="el"] .ap-end__socks.is-long,
[data-esp-lang="ja"] .ap-end__socks.is-long {
  font-family: inherit;
  font-weight: 900;
  font-size: clamp(25px, 3.8svh, 31px);
}

[data-esp-lang="el"] .ap-qui__who,
[data-esp-lang="ja"] .ap-qui__who {
  font-family: inherit;
  font-weight: 900;
  font-size: 30px;
}

[data-esp-lang="el"] .ap-pillow__name,
[data-esp-lang="ja"] .ap-pillow__name {
  font-family: inherit;
  font-weight: 900;
  font-size: 30px;
}

[data-esp-lang="el"] .ap-pillow__name.is-long,
[data-esp-lang="ja"] .ap-pillow__name.is-long {
  font-family: inherit;
  font-weight: 900;
  font-size: 24px;
}

[data-esp-lang="el"] .ap-pillow__name.is-xlong,
[data-esp-lang="ja"] .ap-pillow__name.is-xlong {
  font-family: inherit;
  font-weight: 900;
  font-size: 19px;
}

[data-esp-lang="el"] .ap-qui__big,
[data-esp-lang="ja"] .ap-qui__big {
  font-family: inherit;
  font-weight: 900;
  font-size: 38px;
}

[data-esp-lang="el"] .ap-tu__title,
[data-esp-lang="ja"] .ap-tu__title {
  font-family: inherit;
  font-weight: 900;
  font-size: 36px;
}

[data-esp-lang="el"] .ap-tu__or,
[data-esp-lang="ja"] .ap-tu__or {
  font-family: inherit;
  font-weight: 900;
  font-size: 20px;
}

[data-esp-lang="el"] .ap-tu__hand,
[data-esp-lang="ja"] .ap-tu__hand {
  font-family: inherit;
  font-weight: 900;
  font-size: 26px;
}

[data-esp-lang="el"] .ap-roue__call,
[data-esp-lang="ja"] .ap-roue__call {
  font-family: inherit;
  font-weight: 900;
  font-size: 34px;
}

[data-esp-lang="el"] .ap-roue__call.is-long,
[data-esp-lang="ja"] .ap-roue__call.is-long {
  font-family: inherit;
  font-weight: 900;
  font-size: 28px;
}

[data-esp-lang="el"] .ap-roue__call.is-xlong,
[data-esp-lang="ja"] .ap-roue__call.is-xlong {
  font-family: inherit;
  font-weight: 900;
  font-size: 22px;
}

[data-esp-lang="el"] .ap-roue__flick,
[data-esp-lang="ja"] .ap-roue__flick {
  font-family: inherit;
  font-weight: 900;
  font-size: 22px;
}

@media (prefers-reduced-motion: reduce) {
  .ap-cushion,
  .ap-cushion.is-flying {
    transition: none;
  }

  .ap-pillow__cushion,
  .ap-pillow.is-hit .ap-pillow__in {
    animation: none;
  }
}
