/* Le cadenas du jour in the space (docs/FLAMME_ET_CADENAS.md, lot 3; template/espace/cadenas.php): the night of the
   space, a padlock of framboise and its four cream wheels, the notebook of the tries, then the dare of the evening and
   the image of the week. The mockup « La flamme et le cadenas du jour » (board 2), laid for every phone from 320 px. */

.cad {
  --lock: min(330px, calc(100vw - 32px));
  --wheel: calc((var(--lock) - 82px) / 4);
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: linear-gradient(180deg, #4E1A5C 0%, #702A71 38%, #A0346E 72%, #C4285B 100%);
  color: #FBF8EF;
}
.cad-shell { position: relative; z-index: 1; max-width: 430px; margin: 0 auto; padding-bottom: 28px; }
.cad-date {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(112, 42, 113, .35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
}
.cad-date:empty { display: none; }

.cad-stars { position: absolute; inset: 0 0 auto; height: 420px; pointer-events: none; }
.cad-stars span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #FBF8EF;
  animation: cad-twinkle 3.4s ease-in-out var(--d) infinite;
}

/* ---- The lock ---- */
.cad-play[hidden], .cad-done[hidden] { display: none; }
.cad-play { display: flex; flex-direction: column; align-items: center; padding: 0 16px; }
.cad-rules { margin: 4px 0 6px; text-align: center; font-size: 13.5px; font-weight: 800; color: #FFD6E4; }
.cad-lock { position: relative; width: var(--lock); padding-top: calc(var(--lock) * .297); }
.cad-shackle {
  position: absolute;
  left: 15.15%;
  top: 0;
  width: 69.7%;
  height: auto;
  transform-origin: 82.6% 90.8%;
  transition: transform .75s cubic-bezier(.2, 1.5, .4, 1);
}
.cad-lock.is-open .cad-shackle { transform: translateY(-7%) rotate(-26deg); }
.cad-lock.is-open { animation: cad-jump .7s ease .55s; }
.cad-lock.is-shaking .cad-body { animation: cad-shake .5s ease; }
.cad-body {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 12px 0 14px;
  border-radius: 34px;
  background: linear-gradient(160deg, #D4276F 0%, #C4285B 46%, #A50C3A 100%);
  box-shadow: 0 8px 0 rgba(51, 11, 134, .45), 0 24px 40px rgba(51, 11, 134, .3), inset 0 0 0 3px rgba(251, 248, 239, .28);
}
.cad-wheels { display: flex; gap: 14px; }
.cad-col { display: flex; flex-direction: column; align-items: center; width: var(--wheel); }
.cad-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: #FBF8EF;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cad-arrow:disabled, .cad-wheel:disabled { cursor: default; }
.cad-wheel {
  position: relative;
  display: block;
  width: var(--wheel);
  height: calc(var(--wheel) * 1.39);
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(180deg, #8D346A 0%, #E9C8D8 17%, #FBF8EF 33%, #FBF8EF 67%, #E9C8D8 83%, #8D346A 100%);
  box-shadow: inset 0 0 0 2px rgba(74, 14, 46, .25), 0 3px 0 rgba(74, 14, 46, .35);
  -webkit-tap-highlight-color: transparent;
}
.cad-wheel:focus-visible, .cad-arrow:focus-visible { outline: 3px solid #FFD6E4; outline-offset: 2px; }
.cad-roll { position: absolute; inset: 0; }
.cad-roll.is-up { animation: cad-from-above .22s ease-out; }
.cad-roll.is-down { animation: cad-from-below .22s ease-out; }
.cad-main { position: absolute; left: 22.5%; top: 30%; width: 55%; height: auto; }
.cad-ghost { position: absolute; left: 32%; width: 36%; height: auto; opacity: .4; }
.cad-ghost--t { top: -10%; }
.cad-ghost--b { bottom: -10%; }
.cad-led {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 6px;
  border-radius: 50%;
  background: rgba(51, 11, 134, .32);
  box-shadow: inset 0 0 0 1.5px rgba(251, 248, 239, .35);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.cad-led.is-ok { background: #FBF8EF; color: #C4285B; animation: cad-pop .35s ease; }
.cad-led.is-ok::after { content: "✓"; }
.cad-led.is-near { background: #FE5759; color: #FBF8EF; animation: cad-pop .35s ease; }
.cad-led.is-near::after { content: "•"; font-size: 16px; }
.cad-led.is-off { background: rgba(51, 11, 134, .6); animation: cad-pop .35s ease; }

.cad-hint { min-height: 20px; margin: 14px 0 0; text-align: center; font-size: 13px; font-weight: 800; color: #FFD6E4; }
.cad-try {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--lock);
  min-height: 60px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 5px 0 rgba(165, 12, 58, .35);
  color: #C4285B;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .12s ease, opacity .2s ease;
}
.cad-try:active { transform: translateY(3px); }
.cad-try:disabled { opacity: .55; cursor: default; }

/* ---- The notebook of the tries ---- */
.cad-carnet {
  width: 100%;
  max-width: var(--lock);
  margin-top: 18px;
  box-sizing: border-box;
  padding: 14px 16px 12px;
  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;
}
.cad-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cad-k { font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #C4285B; }
.cad-count { font-size: 13px; font-weight: 900; color: #8D346A; white-space: nowrap; }
.cad-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: 0 12px; margin-top: 10px; }
.cad-row { display: flex; gap: 5px; margin-bottom: 7px; }
.cad-row.is-new .cad-cell { animation: cad-pop .35s ease; }
.cad-cell { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; box-sizing: border-box; border-radius: 9px; }
.cad-cell svg { width: 18px; height: 18px; }
.cad-cell--empty { border: 2px dashed rgba(112, 42, 113, .18); }
.cad-cell--ok { background: #C4285B; }
.cad-cell--ok path { stroke: #FBF8EF; }
.cad-cell--near { background: #FFFFFF; box-shadow: inset 0 0 0 2.5px #FE5759; }
.cad-cell--near path { stroke: #E23F49; }
.cad-cell--off { background: rgba(112, 42, 113, .08); }
.cad-cell--off path { stroke: rgba(112, 42, 113, .38); }
.cad-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: 12px; font-weight: 800; color: #8D346A; }
.cad-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cad-sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; box-sizing: border-box; }
.cad-sw--ok { background: #C4285B; }
.cad-sw--near { background: #FFFFFF; box-shadow: inset 0 0 0 2.5px #FE5759; }
.cad-sw--off { background: rgba(112, 42, 113, .14); }
.cad-foot { margin: 16px 0 0; text-align: center; font-size: 12.5px; font-weight: 800; color: rgba(255, 255, 255, .72); }

/* ---- Once the lock has ended ---- */
.cad-done { display: flex; flex-direction: column; padding: 0 20px; animation: cad-in .45s ease both; }
.cad-kicker { margin: 2px 0 0; text-align: center; font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #FFD6E4; }
.cad-art { position: relative; align-self: center; width: 132px; height: 108px; margin-top: 6px; }
.cad-art[hidden] { display: none; }
.cad-art .cad-sp { transform-box: fill-box; transform-origin: center; animation: cad-spark 2.4s ease-in-out infinite; }
.cad-ring { position: absolute; left: 50%; top: 58%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255, 214, 228, .8); animation: cad-ring 1.4s ease-out both; }
.cad-code { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 12px; }
.cad-code[hidden] { display: none; }
.cad-code p { margin: 0; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .85); }
.cad-code-row { display: flex; gap: 8px; }
.cad-code-row span { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #FBF8EF; box-shadow: 0 3px 0 rgba(74, 14, 46, .35); }
.cad-code-row svg { width: 26px; height: 26px; }
.cad-defi {
  position: relative;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: #FBF8EF;
  color: #702A71;
  box-shadow: 0 6px 0 rgba(112, 42, 113, .45), 0 22px 40px rgba(51, 11, 134, .22);
  transform: rotate(-1.2deg);
}
.cad-defi__text { margin: 8px 0 0; font-size: 18px; font-weight: 900; line-height: 1.3; }
.cad-defi__text em { font-style: normal; color: #C4285B; }
.cad-gage { margin: 8px 0 0; font-size: 14px; font-weight: 800; color: #8D346A; }
.cad-gage[hidden] { display: none; }
.cad-stamp {
  position: absolute;
  right: 12px;
  top: -12px;
  padding: 5px 10px;
  border: 2.5px solid #C4285B;
  border-radius: 10px;
  background: #FBF8EF;
  color: #C4285B;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: rotate(8deg);
  animation: cad-pop .35s ease;
}
.cad-stamp[hidden] { display: none; }
.cad-week { margin-top: 20px; }
.cad-week .cad-k { color: #FFD6E4; }
.cad-week .cad-count { color: #FFFFFF; }
.cad-frame { position: relative; aspect-ratio: 330 / 172; margin-top: 8px; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 0 rgba(51, 11, 134, .45); }
.cad-picture { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cad-tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.cad-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #F2DFF2 0%, #DCC2E6 100%);
  box-shadow: inset 0 0 0 1px rgba(112, 42, 113, .25);
  color: #702A71;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .12em;
  transition: opacity .9s ease, transform .9s ease;
}
.cad-tile.is-shown { opacity: 0; }
.cad-tile.is-peeling { animation: cad-peel .9s ease .5s both; }
.cad-caption { margin: 8px 2px 0; font-size: 13px; font-weight: 800; line-height: 1.35; color: #FFD6E4; }
.cad-caption strong { display: block; font-size: 17px; font-weight: 900; color: #FFFFFF; }
.cad-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.cad-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.cad-btn--white { background: #FFFFFF; box-shadow: 0 5px 0 rgba(165, 12, 58, .35); color: #C4285B; }
.cad-btn--white[aria-pressed="true"] { background: #FFD6E4; }
.cad-btn--ghost { min-height: 46px; background: transparent; box-shadow: inset 0 0 0 2px rgba(251, 248, 239, .45); color: #FBF8EF; }
.cad-next { margin: 14px 0 0; text-align: center; font-size: 12.5px; font-weight: 800; color: rgba(255, 255, 255, .72); }
.cad-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 30;
  max-width: calc(100vw - 40px);
  margin: 0;
  padding: 12px 18px;
  border-radius: 16px;
  background: #FBF8EF;
  color: #702A71;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(51, 11, 134, .35);
  transform: translateX(-50%);
}
.cad-toast[hidden] { display: none; }

@keyframes cad-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes cad-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes cad-from-above { from { transform: translateY(-14px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes cad-from-below { from { transform: translateY(14px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes cad-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@keyframes cad-jump { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-14px); } 60% { transform: translateY(2px); } }
@keyframes cad-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cad-peel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: perspective(300px) rotateY(88deg); } }
@keyframes cad-spark { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
@keyframes cad-ring { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.6); } }

@media (prefers-reduced-motion: reduce) {
  .cad-stars span, .cad-art .cad-sp, .cad-ring { animation: none; }
  .cad-lock.is-open, .cad-lock.is-shaking .cad-body, .cad-roll.is-up, .cad-roll.is-down, .cad-done, .cad-led, .cad-row.is-new .cad-cell, .cad-stamp { animation: none; }
  .cad-tile.is-peeling { animation: none; opacity: 0; }
  .cad-shackle { transition: none; }
}

/* ---- Its card at the top of the lobby, in place of the card of the evening (template/espace/lobby.php) ---- */
.lc-cad {
  position: relative;
  margin: 0 16px;
  padding: 18px 18px 16px;
  border-radius: 26px;
  background: linear-gradient(160deg, #702A71 0%, #8D346A 100%);
  box-shadow: 0 6px 0 rgba(51, 11, 134, .35), 0 20px 40px rgba(51, 11, 134, .25), inset 0 0 0 2px rgba(251, 248, 239, .16);
  color: #FBF8EF;
}
.lc-cad__top { display: flex; align-items: center; gap: 14px; }
.lc-cad__lock { flex: none; width: 74px; height: 84px; }
.lc-cad__words { min-width: 0; }
.lc-cad__tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px; background: #FE5759; color: #FBF8EF; font-size: 10.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.lc-cad__tag--soft { background: rgba(251, 248, 239, .16); }
.lc-cad__title { margin: 6px 0 0; font-size: 22px; font-weight: 900; line-height: 1.1; }
.lc-cad__title em { font-family: "Caveat", cursive; font-style: normal; font-weight: 700; font-size: 1.25em; color: #FFD6E4; white-space: nowrap; }
.lc-cad__line { margin: 6px 0 0; font-size: 13.5px; font-weight: 700; line-height: 1.35; color: rgba(251, 248, 239, .85); }
.lc-cad__go {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 14px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 5px 0 rgba(165, 12, 58, .35);
  color: #C4285B;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.lc-cad__state[hidden] { display: none; }
.lc-cad__result { display: block; margin-top: 4px; font-size: 13px; font-weight: 800; color: #FFD6E4; }
.lc-cad__dare { position: relative; margin: 12px 0 0; padding: 14px 16px; border-radius: 18px; background: #FBF8EF; color: #702A71; font-size: 16px; font-weight: 900; line-height: 1.3; transform: rotate(-1deg); }
.lc-cad__dare small { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #C4285B; }
.lc-cad__dare em { font-style: normal; color: #C4285B; }
.lc-cad__did {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 5px 0 rgba(165, 12, 58, .35);
  color: #C4285B;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.lc-cad__did[aria-pressed="true"] { background: #FFD6E4; }
.lc-cad__stamp { position: absolute; right: 10px; top: -12px; padding: 4px 9px; border: 2.5px solid #C4285B; border-radius: 10px; background: #FBF8EF; color: #C4285B; font-size: 12px; font-weight: 900; text-transform: uppercase; transform: rotate(8deg); }
.lc-cad__stamp[hidden] { display: none; }
.lc-cad__week { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(251, 248, 239, .18); color: inherit; text-decoration: none; }
.lc-cad__thumb { position: relative; flex: none; width: 92px; aspect-ratio: 330 / 172; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 0 rgba(51, 11, 134, .45); }
.lc-cad__thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lc-cad__thumb .cad-tiles span { font-size: 0; }
.lc-cad__week-words { min-width: 0; font-size: 12.5px; font-weight: 800; line-height: 1.35; color: rgba(251, 248, 239, .85); }
.lc-cad__week-words b { display: block; font-size: 13px; font-weight: 900; color: #FFFFFF; }

/* ---- Le cadenas sous la lune (lot 6, his « GO, on le code » of 2026-11-16; template/espace/lobby.php), in place of the
   card on the phones of its test link: a small cream tag hanging from the moon of the sky by a thread, in a still
   moonlight. Calm, after his trial of the version that came down from the moon, rolled and turned over (« ça attire
   trop l'oeil », « trop bougeant », « le flip est très rapide »; of three mockups he chose « la C », 2026-11-16): it
   swings by 1.5° only. New, its lock shivers once every six seconds, « Nouveau ! » on coral, a dot that beats slowly.
   Played, nothing turns over: in a ten-second loop the shackle lifts (when it was opened), then the lock fades away
   on the image of the week lying under it, and comes back. The moon of the sky is drawn 123 px right of the middle of
   the page, its foot 122 px below the top: the thread hangs from there. ---- */
.lc-lune {
  position: absolute;
  z-index: 2;
  top: calc(env(safe-area-inset-top, 0px) + 118px);
  left: min(calc(50% + 85px), calc(100% - 84px));
  width: 76px;
  height: 92px;
  opacity: 0;
  color: inherit;
  text-decoration: none;
  transition: opacity .6s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.lc-lune[data-state] { opacity: 1; }
/* While the flame of the evening takes the place of their first names, the tag steps back. */
.lc-hello.is-moment ~ .lc-lune[data-state] { opacity: 0; pointer-events: none; }
/* The moonlight around it, still: a little warmer while the lock waits. */
.lc-lune__glow {
  position: absolute;
  top: -50px;
  left: -44px;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 228, .4) 0%, rgba(255, 214, 228, .15) 36%, rgba(255, 214, 228, 0) 68%);
  pointer-events: none;
}
.lc-lune[data-state="new"] .lc-lune__glow { background: radial-gradient(circle, rgba(255, 178, 200, .45) 0%, rgba(254, 87, 89, .16) 36%, rgba(254, 87, 89, 0) 68%); }
.lc-lune__swing { position: absolute; inset: 0; transform-origin: 38px 0; animation: lc-lune-swing 5.6s ease-in-out infinite; }
.lc-lune[data-state="new"] .lc-lune__swing { animation-name: lc-lune-swing-new; animation-duration: 4.2s; }
.lc-lune__thread { position: absolute; top: 0; left: 37px; width: 2px; height: 16px; border-radius: 1px; background: linear-gradient(180deg, rgba(251, 248, 239, .25), rgba(251, 248, 239, .9)); }
.lc-lune__ring { position: absolute; top: 13px; left: 33px; width: 10px; height: 10px; box-sizing: border-box; border: 2px solid #FBF8EF; border-radius: 50%; }
.lc-lune__card {
  position: absolute;
  top: 20px;
  left: 0;
  display: block;
  width: 76px;
  height: 64px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(165deg, #FFFFFF 0%, #FBF8EF 55%, #F6E6EE 100%);
  box-shadow: 0 4px 0 rgba(112, 42, 113, .45), 0 10px 22px rgba(51, 11, 134, .3);
  transition: transform .12s ease;
}
/* Its light edge, above the three layers. */
.lc-lune__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8); pointer-events: none; }
.lc-lune:active .lc-lune__card { transform: scale(.93); }
/* Three layers: the image of the week with its pieces, a cream veil over it, the lock and its words on top. */
.lc-lune__image, .lc-lune__veil, .lc-lune__front { position: absolute; inset: 0; display: block; }
.lc-lune__veil { background: linear-gradient(165deg, rgba(255, 255, 255, .94) 0%, rgba(251, 248, 239, .92) 55%, rgba(246, 230, 238, .92) 100%); }
.lc-lune__thumb { position: absolute; top: 4px; right: 4px; left: 4px; height: 41px; overflow: hidden; border-radius: 9px; }
.lc-lune__thumb svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lc-lune__thumb .cad-tiles span { font-size: 0; }
.lc-lune__lock { position: absolute; top: 5px; left: 21.5px; display: block; width: 33px; height: 38px; overflow: visible; transform-origin: 50% 100%; }
/* The shackle turns on its left foot, the right one coming out of the lock. */
.lc-lune__shackle { transform-box: fill-box; transform-origin: 0 100%; }
.lc-lune__checks { display: none; }
.lc-lune[data-state="open"] .lc-lune__checks { display: inline; }
.lc-lune[data-state="open"] .lc-lune__heart { display: none; }
.lc-lune[data-state="new"] .lc-lune__lock { animation: lc-lune-shiver 6s ease-in-out 1s infinite; }
.lc-lune[data-state="open"] .lc-lune__shackle { animation: lc-lune-shackle 10s ease-in-out infinite; }
.lc-lune:is([data-state="open"], [data-state="fail"]) .lc-lune__front { animation: lc-lune-front 10s ease-in-out infinite; }
.lc-lune:is([data-state="open"], [data-state="fail"]) .lc-lune__veil { animation: lc-lune-veil 10s ease-in-out infinite; }
.lc-lune__strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  padding: 0 3px;
  overflow: hidden;
  color: #702A71;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
/* The words of the lock hide those of the image under them. */
.lc-lune__front .lc-lune__strip { background: #FBF8EF; }
.lc-lune[data-state="new"] .lc-lune__strip--front { background: #FE5759; color: #FBF8EF; }
.lc-lune__stamp {
  position: absolute;
  top: 5px;
  left: 3px;
  display: none;
  padding: 2px 3px;
  border-radius: 4px;
  background: #FBF8EF;
  box-shadow: inset 0 0 0 1.5px #C4285B;
  color: #C4285B;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-12deg);
}
.lc-lune.is-done .lc-lune__stamp { display: block; }
.lc-lune__badge { position: absolute; top: 15px; right: -4px; display: none; width: 13px; height: 13px; border-radius: 50%; background: #FE5759; box-shadow: 0 0 0 2.5px #FBF8EF; animation: lc-lune-pulse 2.6s ease-in-out infinite; }
.lc-lune[data-state="new"] .lc-lune__badge { display: block; }
/* What lies beside it leaves it room: their first names, above it but whose second line may reach it, stop at its
   edge (85 px right of the middle); their days and their chips a little before. */
.lc-hello--lune > .lc-hello__names { max-width: calc(50% + 85px); }
.lc-hello--lune > :is(.lc-hello__days, .lc-hello__next, .lc-hello__ask, .lc-hello__chips) { max-width: calc(50% + 76px); }

@keyframes lc-lune-swing { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes lc-lune-swing-new { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes lc-lune-shiver {
  0%, 88%, 100% { transform: rotate(0); }
  91% { transform: rotate(-6deg); }
  94% { transform: rotate(5deg); }
  97% { transform: rotate(-2deg); }
}
/* Ten seconds: the lock rests 3 s, its shackle lifts, it stays open 1 s, then fades away on the image (3 s), comes
   back open and closes. */
@keyframes lc-lune-shackle {
  0%, 30% { transform: translateY(0) rotate(0); }
  36%, 92% { transform: translateY(-3px) rotate(-26deg); }
  98%, 100% { transform: translateY(0) rotate(0); }
}
@keyframes lc-lune-front {
  0%, 46% { opacity: 1; transform: translateY(0) scale(1); }
  54%, 86% { opacity: 0; transform: translateY(6px) scale(.92); }
  94%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes lc-lune-veil { 0%, 46% { opacity: 1; } 54%, 86% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes lc-lune-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

@media (prefers-reduced-motion: reduce) {
  .lc-lune__swing, .lc-lune__lock, .lc-lune__shackle, .lc-lune__front, .lc-lune__veil, .lc-lune__badge { animation: none !important; }
  .lc-lune[data-state="open"] .lc-lune__shackle { transform: translateY(-3px) rotate(-26deg); }
}
