/* L'album, le livre à 12 paliers (template/espace/album.php, static/js/espace/album.js, docs/ALBUM_LIVRE.md, lot 2 of
   2026-11-29), as the validated mockup draws it (« Galerie à paliers · Lovely Couple »): the band of framboise and its
   wave over the magenta of the space; the book in a card of night plum, its tier and the bar of the tier under way; the
   photos as cream polaroids, month by month, their captions in Caveat; the button of framboise above the tab bar; the
   twelve tiers on their own screen; the book finished in full screen; the sheet of the gallery full. The band, the
   title, the names, the fan and the sheet come from the space (espace.css, space-nous-album.css). */

.al {
  background: linear-gradient(180deg, #c8099a 0%, #b60f8e 32%, #a2197f 64%, #8d346a 100%);
}

.al-waves {
  height: max(100%, 1180px);
}

.al-shell {
  gap: 0;
}

.al .al-title {
  margin: 0 0 8px;
}

.al-names {
  font-size: 16px;
  font-weight: 800;
}

.al-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 26px;
  animation: al-in .35s ease both;
}

@keyframes al-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- The card of the book ---- */
.al-card {
  position: relative;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  min-height: 224px;
  border-radius: 30px;
  background: linear-gradient(180deg, #4a1d6e 0%, #702a71 100%);
  box-shadow: 0 6px 0 rgba(46, 16, 56, .45);
}

.al-card__stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 30px;
  pointer-events: none;
}

.al-card__stars i {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  animation: al-twinkle 2s ease-in-out infinite;
}

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

.al-card__book {
  position: relative;
  z-index: 1;
  align-self: start;
  width: 170px;
  height: 200px;
  margin: 10px 0 0 2px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: 50% 90%;
}

.al-card__book:focus-visible {
  outline: 3px solid #ffd6e4;
  outline-offset: 2px;
  border-radius: 16px;
}

.al-card__book.is-jump {
  animation: al-jump .9s cubic-bezier(.3, 1.4, .5, 1);
}

.al-card__book.is-squash {
  animation: al-squash .6s cubic-bezier(.3, 1.5, .5, 1);
}

@keyframes al-jump {
  0% { transform: translateY(0) scale(1, 1); }
  25% { transform: translateY(-18px) scale(.94, 1.06); }
  55% { transform: translateY(0) scale(1.1, .9); }
  75% { transform: translateY(-4px) scale(.98, 1.02); }
  100% { transform: translateY(0) scale(1, 1); }
}

@keyframes al-squash {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.08, .93); }
  60% { transform: scale(.97, 1.03); }
  100% { transform: scale(1, 1); }
}

.al-card__art {
  display: block;
  pointer-events: none;
}

.al-card__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 16px 18px 4px;
}

.al-card__kicker {
  color: #ffd6e4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.al-card__stage {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.al-card__progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.al-card__bar {
  flex: 1;
  height: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, .22);
}

.al-card__bar i {
  display: block;
  width: 0;
  height: 12px;
  border-radius: 6px;
  background: #fe5759;
  transition: width .8s cubic-bezier(.2, .8, .2, 1);
}

.al-card__bar.is-still i {
  transition: none;
}

.al-card__bar.is-flash {
  animation: al-flash .9s ease;
}

@keyframes al-flash {
  0% { filter: none; }
  30% { filter: brightness(1.5); }
  100% { filter: none; }
}

.al-card__frac {
  color: #ffd6e4;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.al-card__next {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.al-card__tiers {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  min-height: 44px;
  margin: -8px 0 -12px -6px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #ffd6e4;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.al-card__see {
  align-self: flex-start;
  min-height: 40px;
  padding: 6px 14px;
  border: 0;
  border-radius: 20px;
  background: #fbf8ef;
  color: #c4285b;
  font: inherit;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.15;
  text-align: left;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(46, 16, 56, .45);
  cursor: pointer;
}

/* The book ready: its seal over the corner, the words under it. */
.al-card.is-ready .al-card__text {
  padding-top: 48px;
}

.al-card__see[hidden],
.al-card__tiers[hidden] {
  display: none;
}

/* « +1 photo » over the book when a photo comes in (a tier reached has its own stage, lot 7c). */
@keyframes al-burst {
  0% { transform: translateY(-30px) scale(.3) rotate(0deg); opacity: 0; }
  15% { transform: translateY(-60px) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-150px) scale(.8) rotate(160deg); opacity: 0; }
}

.al-card__plus {
  position: absolute;
  left: 100px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.al-card__plus {
  top: 70px;
  padding: 4px 10px;
  background: #c4285b;
  color: #ffffff;
  font-size: 12px;
  box-shadow: 0 3px 0 #8d1b45;
}

.al-card__plus.is-on {
  animation: al-plus 1.1s ease-out both;
}

@keyframes al-plus {
  0% { transform: translate(-50%, 8px) scale(.5); opacity: 0; }
  20% { transform: translate(-50%, -4px) scale(1.12); opacity: 1; }
  70% { transform: translate(-50%, -16px) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -26px) scale(1); opacity: 0; }
}

/* A narrow phone: the book a little smaller, the words their room, the buttons on one line. */
@media (max-width: 359px) {
  .al-card {
    grid-template-columns: 142px minmax(0, 1fr);
  }

  .al-card__tiers {
    letter-spacing: .06em;
  }

  .al .al-add {
    padding: 0 22px;
    font-size: 14px;
    letter-spacing: .06em;
  }

  .al-card__book {
    margin-left: -12px;
    transform: scale(.84);
    transform-origin: 50% 20%;
  }

  .al-card__plus {
    left: 86px;
  }
}

/* ---- The book (album.js, drawBook): 170 × 200, what each tier adds ---- */
.al-bk {
  position: relative;
  width: 170px;
  height: 200px;
  font-family: "Nunito", "Helvetica Neue", Arial, sans-serif;
}

.al-bk > * {
  position: absolute;
}

.al-bk__shadow {
  top: 178px;
  left: 24px;
  width: 134px;
  height: 16px;
  border-radius: 50%;
  background: rgba(46, 16, 56, .32);
}

.al-bk__empty {
  top: 22px;
  left: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 104px;
  height: 156px;
  border: 2px dashed rgba(255, 255, 255, .55);
  border-radius: 6px;
}

.al-bk__back {
  top: 28px;
  left: 38px;
  width: 104px;
  height: 150px;
  border-radius: 3px;
  background: #f3eadc;
  transform: rotate(-5deg);
  box-shadow: 0 3px 0 rgba(46, 16, 56, .16);
}

.al-bk__edge {
  top: 0;
  left: 0;
}

.al-bk__front {
  top: 22px;
  left: 46px;
  box-sizing: border-box;
  width: 104px;
  height: 156px;
  overflow: hidden;
}

.al-bk__front > * {
  position: absolute;
}

.al-bk__page {
  top: 14px;
  left: 12px;
  width: 80px;
}

.al-bk__page img {
  display: block;
  width: 80px;
  height: 80px;
  background: #e9dfd0;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(46, 16, 56, .28);
}

/* Lot 7d (his remark of 2026-11-29: « on ne voit pas trop la différence entre l'image dans la couverture et l'image dans
   la galerie »): the photo of the page held by four photo corners, the page numbered. */
.al-bk__mount {
  position: relative;
}

.al-bk__corners {
  position: absolute;
  inset: -3px;
  background:
    linear-gradient(135deg, #8d346a 0 50%, transparent 50%) top left / 15px 15px no-repeat,
    linear-gradient(225deg, #8d346a 0 50%, transparent 50%) top right / 15px 15px no-repeat,
    linear-gradient(45deg, #8d346a 0 50%, transparent 50%) bottom left / 15px 15px no-repeat,
    linear-gradient(315deg, #8d346a 0 50%, transparent 50%) bottom right / 15px 15px no-repeat;
  filter: drop-shadow(0 1px 0 rgba(46, 16, 56, .3));
}

.al-bk__folio {
  right: 9px;
  bottom: 7px;
  color: #b9a184;
  font-size: 8px;
  font-weight: 800;
}

.al-bk__page span {
  display: block;
  height: 4px;
  margin-top: 10px;
  border-radius: 2px;
  background: #e6d9c6;
}

.al-bk__page span + span {
  width: 44px;
  margin-top: 6px;
}

.al-bk__page span:first-of-type {
  width: 64px;
}

.al-bk__gold {
  top: 8px;
  right: 0;
  left: 0;
  background-image: linear-gradient(100deg, #e9b23a 0%, #f5c962 40%, #fff4cc 50%, #f5c962 60%, #e9b23a 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .19em;
  text-align: center;
  text-transform: uppercase;
  animation: al-shimmer 3s linear infinite;
}

@keyframes al-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* The photo of the cover, in a window of the cover (lot 7d): a cream rim, the photo set in, its edge in shadow. */
.al-bk__photo {
  top: 19px;
  left: 12px;
  box-sizing: border-box;
  width: 80px;
  height: 80px;
  padding: 3px;
  border-radius: 5px;
  background: #fbf8ef;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35), 0 2px 5px rgba(46, 16, 56, .3);
}

.al-bk__photo img {
  display: block;
  width: 74px;
  height: 74px;
  border-radius: 3px;
  background: #e9dfd0;
  object-fit: cover;
}

.al-bk__photo::after {
  position: absolute;
  inset: 3px;
  border-radius: 3px;
  box-shadow: inset 0 2px 5px rgba(26, 8, 32, .45), inset 0 0 0 1px rgba(26, 8, 32, .12);
  content: "";
}

.al-bk__names {
  top: 104px;
  right: 0;
  left: 0;
  overflow: hidden;
  padding: 0 4px;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.al-bk__heart {
  top: 125px;
  left: 46px;
}

.al-bk__band {
  top: 139px;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 14px;
  background: #fbf8ef;
  color: #c4285b;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.al-bk__clip {
  top: 12px;
  left: 112px;
  width: 16px;
  height: 26px;
  border-radius: 4px;
  background: #fe5759;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15);
}

.al-bk__clip::after {
  position: absolute;
  top: 4px;
  left: 5px;
  width: 6px;
  height: 10px;
  border-radius: 3px;
  background: #fbf8ef;
  content: "";
}

.al-bk__seal {
  top: -8px;
  left: 134px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fbf8ef;
  color: #c4285b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 3px 0 rgba(112, 42, 113, .45);
  transform: rotate(-10deg);
}

.al-bk__seal.is-long {
  font-size: 7.5px;
  letter-spacing: .04em;
}

.al-bk__spark {
  animation: al-spark 1.8s ease-in-out infinite;
}

@keyframes al-spark {
  0%, 100% { opacity: .2; transform: scale(.6); }
  50% { opacity: 1; transform: scale(1); }
}

/* What a tier just reached adds comes in; what was there stays still. */
.al-bk .is-in.al-bk__back,
.al-bk .is-in.al-bk__page { animation: al-bk-fade .5s both; }
.al-bk .is-in.al-bk__gold { animation: al-bk-fade .6s both, al-shimmer 3s linear infinite; }
.al-bk .is-in.al-bk__photo { animation: al-bk-drop .6s both; }
.al-bk .is-in.al-bk__names { animation: al-bk-write .8s ease-out both; }
.al-bk .is-in.al-bk__heart,
.al-bk .is-in.al-bk__clip { animation: al-bk-in .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.al-bk .is-in.al-bk__band { animation: al-bk-slide .6s both; }
.al-bk .is-in.al-bk__seal { animation: al-bk-seal .7s cubic-bezier(.3, 1.5, .5, 1) both; }
.al-bk .is-in.al-bk__front,
.al-bk .is-in.al-bk__edge { animation: al-bk-fade .5s both; }

@keyframes al-bk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes al-bk-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes al-bk-drop {
  0% { opacity: 0; transform: translateY(-16px) rotate(-6deg); }
  60% { opacity: 1; transform: translateY(2px) rotate(0deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes al-bk-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes al-bk-slide { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes al-bk-seal {
  0% { opacity: 0; transform: scale(2) rotate(-30deg); }
  60% { opacity: 1; transform: scale(.9) rotate(-6deg); }
  100% { opacity: 1; transform: scale(1) rotate(-10deg); }
}

/* ---- A couple without an account: three examples ---- */
.al-guest[hidden] {
  display: none;
}

.al-guest__text {
  margin: 18px 8px 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.al-fan {
  position: relative;
  width: 280px;
  height: 214px;
  margin: 12px auto 0;
}

.al-fan__polaroid {
  position: absolute;
  box-sizing: border-box;
  width: 124px;
  padding: 6px 6px 0;
  border-radius: 4px;
  background: #fbf8ef;
  box-shadow: 0 10px 20px -10px rgba(74, 14, 46, .6);
}

.al-fan__polaroid img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: cover;
}

.al-fan__polaroid--left {
  top: 30px;
  left: 0;
  transform: rotate(-9deg);
}

.al-fan__polaroid--right {
  top: 34px;
  right: 0;
  transform: rotate(8deg);
}

.al-fan__polaroid--front {
  top: 0;
  left: 65px;
  z-index: 1;
  width: 150px;
  padding: 7px 7px 0;
  box-shadow: 0 14px 26px -12px rgba(74, 14, 46, .7);
  transform: rotate(-2deg);
}

.al-fan__polaroid--front img {
  width: 136px;
  height: 136px;
  object-position: 45% 40%;
}

.al-fan__caption {
  display: block;
  overflow: hidden;
  height: 28px;
  color: #702a71;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.al-fan__polaroid--front .al-fan__caption {
  height: 32px;
  font-size: 18px;
  line-height: 32px;
}

/* ---- The gallery, month by month ---- */
.al-gallery:empty {
  display: none;
}

.al-month {
  padding-top: 16px;
}

.al-month__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 10px;
  padding: 0 2px;
}

.al-month__name {
  margin: 0;
  color: #ffffff;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.al-month__count {
  color: #ffd6e4;
  font-size: 13px;
  font-weight: 800;
}

.al-month__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* An empty album (lot 7b, his remark of 2026-11-29): the month of today and two polaroids still to fill, a « + » in a
   dashed frame where the photo will be, the caption's height kept so that a real photo takes their exact place. */
.al-pola--slot {
  border: 0;
  font: inherit;
  cursor: pointer;
  transition: transform .15s ease;
}

.al-pola--slot:active {
  transform: translateY(2px) scale(.99);
}

.al-pola__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px dashed rgba(112, 42, 113, .28);
  border-radius: 2px;
  background: #f3ebdd;
  color: #c4285b;
}

.al-pola__empty svg {
  animation: al-slot-breath 2.8s ease-in-out infinite;
}

.al-month--empty li + li .al-pola__empty svg {
  animation-delay: 1.4s;
}

@keyframes al-slot-breath {
  0%, 100% { opacity: .75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .al-pola__empty svg {
    animation: none;
  }

  .al-pola--slot {
    transition: none;
  }
}

.al-pola {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 7px 7px 0;
  border-radius: 4px;
  background: #fbf8ef;
  box-shadow: 0 10px 20px -10px rgba(74, 14, 46, .6);
}

.al-pola img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background: #e9dfd0;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
}

.al-pola img.is-shown {
  opacity: 1;
}

.al-pola__caption {
  display: block;
  overflow: hidden;
  height: 30px;
  padding: 0 4px;
  color: #702a71;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 19px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.al-pola.is-land {
  animation: al-land .75s cubic-bezier(.3, 1.6, .5, 1);
}

@keyframes al-land {
  0% { transform: scale(1.12) rotate(-3deg); }
  55% { transform: scale(.96) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* A photo on its way to the site (lot 7d): its picture at once, a small ring turning in its corner until it is received;
   a photo the site did not take fades, and leaves at the end of the send. */
.al-pola.is-pending::after {
  position: absolute;
  top: 13px;
  right: 13px;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  border: 3px solid #ffd6e4;
  border-top-color: #c4285b;
  border-radius: 50%;
  background: rgba(251, 248, 239, .92);
  box-shadow: 0 2px 6px rgba(46, 16, 56, .3);
  content: "";
  animation: al-wait .9s linear infinite;
}

@keyframes al-wait {
  to { transform: rotate(360deg); }
}

button.al-pola.is-pending {
  cursor: default;
}

.al-pola.is-gone {
  opacity: 0;
  transform: scale(.9);
  transition: opacity .4s ease, transform .4s ease;
}

/* ---- The button, in sight above the tab bar ---- */
.al-foot {
  position: sticky;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-bottom: 4px;
  pointer-events: none;
}

.al-foot > * {
  pointer-events: auto;
}

.al-add {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 58px;
  padding: 0 34px;
  border: 0;
  border-radius: 29px;
  background: #c4285b;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 0 #8d1b45;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}

.al-add:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #8d1b45;
}

.al-add[hidden] {
  display: none;
}

.al-add input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.al-add:has(input:focus-visible),
.al-add:focus-visible {
  outline: 3px solid #ffd6e4;
  outline-offset: 3px;
}

.al-add.is-busy {
  pointer-events: none;
  background: #a33f63;
  box-shadow: 0 6px 0 #6f1838;
  /* While the photos go (« Vos photos arrivent… 12/30 »), in plain letters: it holds on a phone in every language. */
  letter-spacing: .02em;
  text-transform: none;
}

/* Never wider than the phone (lot 6, the eleven languages): a word too long ends in « … » rather than past the edge. */
.al-add {
  max-width: calc(100vw - 32px);
}

.al-add > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-note {
  max-width: 320px;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 6px rgba(46, 16, 56, .5);
}

.al-note:empty {
  display: none;
}

.al-note a,
.al-note button {
  padding: 0;
  border: 0;
  background: none;
  color: #ffd6e4;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ---- The twelve tiers ---- */
.al-tiers {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  background: linear-gradient(180deg, #c8099a 0%, #b60f8e 32%, #a2197f 64%, #8d346a 100%);
  overscroll-behavior: contain;
  animation: al-in .25s ease both;
}

.al-tiers[hidden] {
  display: none;
}

.al-tiers:focus {
  outline: none;
}

.al-tiers__band {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 176px;
}

.al-tiers__band svg {
  display: block;
  width: 100%;
  height: 100%;
}

.al-tiers__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(400px, calc(100% - 40px));
  min-height: 126px;
  margin: 0 auto;
  padding: calc(44px + env(safe-area-inset-top, 0px)) 0 0;
  box-sizing: border-box;
}

.al-tiers__back {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, .2);
  color: #ffffff;
  cursor: pointer;
}

.al-tiers__titles {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.al-tiers__title {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.04;
}

.al-tiers__sub {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.al-tiers__count {
  position: absolute;
  top: calc(118px + env(safe-area-inset-top, 0px));
  right: 0;
  color: #ffd6e4;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

/* The hearts that rise slowly behind the cards (v4), as on the stage of a tier crossed. */
.al-tiers__air {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.al-tiers__air i {
  position: absolute;
  bottom: -30px;
  opacity: 0;
  animation: al-sc-air linear infinite;
}

.al-tiers__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 10px;
  width: min(420px, calc(100% - 28px));
  margin: 46px auto 0;
  padding: 0 0 40px;
  list-style: none;
}

.al-tiers__grid > li {
  display: flex;
  min-width: 0;
}

/* ---- A card (v4, his GO of 2026-11-29 on the prototype: the same screen, more alive and more premium) ----
   Matter: paper lit from above, a soft drop, a thin inner frame as on a collector's card, a shelf under each book (its
   shadow where it stands). Life: the way lit up again at each opening (the cards reached wait as those to come, then
   light up one by one), the book of today that turns gently and shines, the next card that breathes and fills its bar. A
   touch: the card opens its book in large (al-zoom). */
.al-tier {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 176px;
  margin: 0;
  padding: 6px 6px 10px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .06) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 14px 24px -18px rgba(46, 16, 56, .7);
  color: #ffffff;
  font: inherit;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: al-rise .45s both;
  transition: border-color .35s ease, box-shadow .35s ease, transform .18s ease;
}

.al-tier:active {
  transform: scale(.96);
}

.al-tier:focus-visible {
  outline: 3px solid #ffd6e4;
  outline-offset: 3px;
}

.al-tier::after {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  content: "";
  pointer-events: none;
}

.al-tier.is-done,
.al-tier.is-here {
  background: linear-gradient(180deg, #fffefa 0%, #fbf8ef 50%, #f3e7da 100%);
}

.al-tier.is-done {
  box-shadow: inset 0 0 0 1px rgba(196, 40, 91, .07), 0 4px 0 rgba(112, 42, 113, .4), 0 20px 26px -18px rgba(46, 16, 56, .75);
}

.al-tier.is-here {
  border: 3px solid #c4285b;
  box-shadow: 0 5px 0 #a50c3a, 0 22px 30px -18px rgba(46, 16, 56, .8);
}

.al-tier.is-done::after,
.al-tier.is-here::after {
  border-color: rgba(196, 40, 91, .13);
}

.al-tier.is-here::after {
  inset: 3px;
  border-radius: 14px;
}

.al-tier.is-next {
  border-color: rgba(255, 255, 255, .55);
  background: linear-gradient(180deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .11) 100%);
  animation: al-rise .45s both, al-tier-breath 2.8s ease-in-out 1.2s infinite;
}

@keyframes al-tier-breath {
  0%, 100% { border-color: rgba(255, 255, 255, .5); }
  50% { border-color: rgba(255, 255, 255, .95); }
}

.al-tier__here {
  position: absolute;
  top: -11px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  background: #c4285b;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 3px 0 #8d1b45;
  transform: translateX(-50%);
  transition: opacity .25s ease, transform .55s cubic-bezier(.2, 1.7, .4, 1);
}

.al-tier__book {
  position: relative;
  display: block;
  flex: none;
  width: 98px;
  height: 108px;
  perspective: 520px;
  transition: opacity .35s ease, filter .35s ease;
}

.al-tier__lift {
  position: absolute;
  inset: 0;
  transform-origin: 50px 96px;
}

.al-tier.is-later .al-tier__book {
  opacity: .55;
  filter: saturate(.35);
}

.al-tier__book .al-bk {
  position: absolute;
  top: -46px;
  left: -36px;
  transform: scale(.52);
}

.al-tier__book .al-bk__shadow {
  display: none;
}

.al-tier__book::before {
  position: absolute;
  right: 10px;
  bottom: 6px;
  left: 14px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(74, 14, 46, .36), rgba(74, 14, 46, 0));
  content: "";
}

.al-tier.is-later .al-tier__book::before {
  background: radial-gradient(closest-side, rgba(46, 10, 40, .4), rgba(46, 10, 40, 0));
}

/* The book of today: it turns gently on its shelf, a light runs over its cover, small stars twinkle around it. */
.al-tier.is-here:not(.is-dim) .al-tier__book .al-bk {
  animation: al-tier-sway 5.2s ease-in-out infinite;
}

@keyframes al-tier-sway {
  0%, 100% { transform: scale(.52) rotateY(-11deg) translateY(0); }
  50% { transform: scale(.52) rotateY(11deg) translateY(-6px); }
}

.al-tier.is-here:not(.is-dim) .al-bk__front::after {
  position: absolute;
  inset: -10% -70%;
  background: linear-gradient(104deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, 0) 58%);
  content: "";
  transform: translateX(-62%);
  animation: al-tier-gloss 5s ease-in-out 1.4s infinite;
  pointer-events: none;
}

@keyframes al-tier-gloss {
  0% { transform: translateX(-62%); }
  28%, 100% { transform: translateX(62%); }
}

.al-tier__stars {
  display: none;
}

.al-tier.is-here:not(.is-dim) .al-tier__stars {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.al-tier__stars svg {
  position: absolute;
  animation: al-spark 2.2s ease-in-out infinite;
}

.al-tier.is-pop .al-tier__lift {
  animation: al-tier-pop .6s cubic-bezier(.2, 1.6, .4, 1) both;
}

@keyframes al-tier-pop {
  0% { transform: none; }
  38% { transform: scale(1.14) translateY(-7px); }
  100% { transform: none; }
}

.al-tier.is-lifted .al-tier__book {
  opacity: 0;
  transition: none;
}

/* The way lit up again: a card reached waits as one to come, then lights up with a note and its hearts. */
.al-tier.is-dim {
  border-color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .06) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24);
}

.al-tier.is-dim::after {
  border-color: rgba(255, 255, 255, .12);
}

.al-tier.is-dim .al-tier__book {
  opacity: .55;
  filter: saturate(.35);
}

.al-tier.is-dim .al-tier__kicker {
  color: #ffd6e4;
}

.al-tier.is-dim .al-tier__name {
  color: #ffffff;
}

.al-tier.is-dim .al-tier__here {
  opacity: 0;
  transform: translate(-50%, -10px) scale(.5);
}

.al-tier__burst {
  position: absolute;
  top: 52px;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.al-tier__burst > * {
  position: absolute;
  top: 0;
  left: 0;
  animation: al-sc-fly var(--t, 1s) cubic-bezier(.15, .7, .3, 1) both;
}

/* What is to come: under the book of the next card, a bar that fills as far as the photos go; the others, a small lock. */
.al-tier.is-next .al-tier__book::after {
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 66px;
  height: 6px;
  margin-left: -33px;
  border-radius: 3px;
  background: linear-gradient(90deg, #fe5759, #ff8fb8) 0 0 / var(--al-fill, 0%) 100% no-repeat, rgba(255, 255, 255, .24);
  content: "";
  transition: background-size 1.1s cubic-bezier(.3, 0, .2, 1);
}

.al-tier.is-next .al-tier__book::before {
  bottom: 9px;
}

.al-tier__lock {
  position: absolute;
  top: 9px;
  right: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: #ffffff;
}

.al-tier__kicker {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  color: #ffd6e4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.al-tier__name {
  margin-top: 2px;
  padding: 0 4px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}

.al-tier.is-done .al-tier__kicker,
.al-tier.is-here .al-tier__kicker {
  color: #c4285b;
}

.al-tier.is-done .al-tier__name,
.al-tier.is-here .al-tier__name {
  color: #702a71;
}

@keyframes al-rise {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Under the cards: what is left, and the button (the photos of the phone; « Voir notre livre » once it is finished). */
.al-tiers__foot {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -26px;
  padding: 30px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(141, 52, 106, 0) 0%, rgba(141, 52, 106, .94) 40%, #8d346a 100%);
}

.al-tiers__hint {
  min-height: 19px;
  margin: 0;
  color: #ffd6e4;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.al-tiers__go {
  height: 54px;
  margin-top: 10px;
  padding: 0 36px;
  border: 0;
  border-radius: 27px;
  background: #fbf8ef;
  box-shadow: 0 6px 0 rgba(74, 14, 46, .45);
  color: #a50c3a;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.al-tiers__go:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgba(74, 14, 46, .45);
}

/* ---- A card touched: its book in large, its piece built again, what it adds, where the couple is ---- */
.al-zoom {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 16px calc(18px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.al-zoom__veil {
  position: absolute;
  inset: 0;
  background: rgba(58, 16, 52, .66);
  opacity: 0;
  transition: opacity .35s ease;
}

.al-zoom.is-open .al-zoom__veil {
  opacity: 1;
}

.al-zoom__book {
  position: absolute;
  top: 33%;
  left: 50%;
  width: 170px;
  height: 200px;
  margin: -100px 0 0 -85px;
  perspective: 900px;
  pointer-events: none;
}

.al-zoom__spin {
  width: 170px;
  height: 200px;
  transform-style: preserve-3d;
}

.al-zoom .al-bk {
  perspective: 700px;
}

.al-zoom__soon {
  position: absolute;
  top: 12px;
  left: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fbf8ef;
  color: #702a71;
  box-shadow: 0 3px 0 rgba(74, 14, 46, .35);
}

.al-zoom__card {
  position: relative;
  box-sizing: border-box;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 22px 20px 20px;
  border-radius: 28px;
  background: #fbf8ef;
  color: #702a71;
  box-shadow: 0 8px 0 rgba(58, 16, 52, .35);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .3s ease, transform .45s cubic-bezier(.2, 1.2, .4, 1);
}

.al-zoom.is-open .al-zoom__card {
  opacity: 1;
  transform: none;
  transition-delay: .2s;
}

.al-zoom__kicker {
  margin: 0;
  color: #c4285b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.al-zoom__name {
  margin: 5px 0 0;
  padding: 0 30px;
  color: #3b1438;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  text-wrap: balance;
}

.al-zoom__line {
  margin: 8px 0 0;
  color: #6f4a6a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.al-zoom__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f6e3ec;
  color: #a50c3a;
  font-size: 13px;
  font-weight: 900;
}

.al-zoom__state.is-here {
  background: #c4285b;
  color: #ffffff;
}

.al-zoom__go {
  display: block;
  width: 100%;
  height: 54px;
  margin-top: 14px;
  border: 0;
  border-radius: 27px;
  background: #c4285b;
  box-shadow: 0 5px 0 #8d1b45;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.al-zoom__go:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #8d1b45;
}

.al-zoom__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 18px;
  background: #f6e3ec;
  color: #702a71;
  cursor: pointer;
}

.al-tiers__go:focus-visible,
.al-zoom__go:focus-visible,
.al-zoom__close:focus-visible {
  outline: 3px solid #ffd6e4;
  outline-offset: 3px;
}

@media (max-height: 720px) {
  .al-zoom__name {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .al-tiers__air {
    display: none;
  }
}

/* ---- The photos that come in ---- */
.al-fly {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.al-fly:empty {
  display: none;
}

.al-fly__veil {
  position: absolute;
  inset: 0;
  background: rgba(74, 14, 46, .42);
  animation: al-veil var(--al-veil, .8s) ease both;
}

@keyframes al-veil {
  0% { opacity: 0; }
  18% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

.al-fly__photo {
  position: absolute;
  top: 45%;
  left: 50%;
  box-sizing: border-box;
  width: 200px;
  padding: 10px 10px 36px;
  border-radius: 4px;
  background: #fbf8ef;
  box-shadow: 0 24px 50px -16px rgba(26, 8, 32, .8);
  animation: al-fly .8s cubic-bezier(.5, 0, .3, 1) both;
}

.al-fly__photo img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
}

@keyframes al-fly {
  0% { transform: translate(-50%, -50%) scale(1.2) rotate(-12deg); opacity: 0; }
  24% { transform: translate(-50%, -50%) scale(1) rotate(-5deg); opacity: 1; }
  46% { transform: translate(-50%, -53%) scale(1.03) rotate(-4deg); }
  88% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--al-to-x, -79px)), calc(-50% + var(--al-to-y, -100px))) scale(.34) rotate(-3deg); opacity: 0; }
}

/* ---- A tier crossed, on a stage of its own (lot 7c, his GO of 2026-11-29 on the prototype « Le palier franchi ») ----
   The album steps back, the stage comes in framboise to prune with its waves and its hearts in the air; the book flies
   to the middle, the piece of each tier crossed is built with its own gesture; the counter, the twelve tiers, the hearts,
   then what comes next and « Continuer ». The book finished: its rain of hearts. */
@keyframes al-pop {
  0% { transform: scale(.5); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.al-shell {
  transform-origin: 50% 30%;
  transition: transform .5s cubic-bezier(.3, 0, .2, 1), filter .5s ease;
}

.al-shell.is-back {
  filter: saturate(.7) brightness(.85);
  transform: scale(.94) translateY(10px);
}

.al-scene {
  position: fixed;
  inset: 0;
  z-index: 85;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

.al-scene__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 42%, rgba(255, 143, 184, .55) 0%, rgba(255, 143, 184, 0) 60%),
    linear-gradient(180deg, #a50c3a 0%, #c4285b 30%, #b1236f 62%, #702a71 100%);
  opacity: 0;
  transition: opacity .45s ease;
}

.al-scene.is-open .al-scene__bg {
  opacity: 1;
}

.al-scene__waves {
  position: absolute;
  inset: auto -20% 0 -20%;
  height: 260px;
  opacity: 0;
  transition: opacity .6s ease .1s;
}

.al-scene.is-open .al-scene__waves {
  opacity: 1;
}

.al-scene__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 140%;
  height: 100%;
  animation: al-sc-drift 9s ease-in-out infinite alternate;
}

.al-scene__wave--two {
  animation-duration: 12s;
  animation-direction: alternate-reverse;
}

@keyframes al-sc-drift {
  from { transform: translateX(-6%); }
  to { transform: translateX(6%); }
}

.al-scene__air {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.al-scene__air i {
  position: absolute;
  bottom: -30px;
  opacity: 0;
  animation: al-sc-air linear infinite;
}

@keyframes al-sc-air {
  0% { opacity: 0; transform: translateY(0) rotate(0); }
  12% { opacity: .35; }
  100% { opacity: 0; transform: translateY(-110vh) rotate(40deg); }
}

.al-scene__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: calc(44px + env(safe-area-inset-top, 0px)) 24px calc(30px + env(safe-area-inset-bottom, 0px));
}

.al-scene__count {
  flex: none;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2, 1.3, .4, 1);
}

.al-scene.is-open .al-scene__count {
  opacity: 1;
  transform: none;
  transition-delay: .35s;
}

.al-scene__kicker,
.al-scene__of {
  margin: 0;
  color: #ffd6e4;
  font-weight: 900;
  text-transform: uppercase;
}

.al-scene__kicker {
  font-size: 13px;
  letter-spacing: .3em;
}

.al-scene__of {
  margin-top: -4px;
  font-size: 14px;
  letter-spacing: .24em;
}

.al-scene__odo {
  --al-odo: 84px;
  display: inline-flex;
  height: var(--al-odo);
  overflow: hidden;
  font-size: 78px;
  font-weight: 900;
  line-height: var(--al-odo);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.al-scene__odo span {
  display: block;
  height: var(--al-odo);
}

.al-scene__odo.is-roll > span {
  animation: al-sc-roll .55s cubic-bezier(.3, 1.5, .4, 1) both;
}

@keyframes al-sc-roll {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-1 * var(--al-odo))); }
}

.al-scene__mid {
  position: relative;
  flex: 1;
  min-height: 0;
}

.al-scene__book {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  height: 200px;
  margin: -100px 0 0 -85px;
  perspective: 900px;
}

.al-scene__spin {
  width: 170px;
  height: 200px;
  transform-style: preserve-3d;
}

.al-scene .al-bk {
  perspective: 700px;
}

.al-scene.is-built .al-scene__spin {
  animation: al-sc-punch .55s cubic-bezier(.3, 1.6, .5, 1) both;
}

@keyframes al-sc-punch {
  0% { transform: scale(1); }
  35% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

.al-scene__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 228, .5) 0%, rgba(255, 214, 228, 0) 62%);
  opacity: 0;
  pointer-events: none;
}

.al-scene.is-built .al-scene__glow {
  animation: al-sc-glow 1.4s ease-out both;
}

@keyframes al-sc-glow {
  0% { opacity: 0; transform: scale(.6); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.35); }
}

.al-scene__burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.al-scene__burst > * {
  position: absolute;
  top: 0;
  left: 0;
  animation: al-sc-fly var(--t, 1.4s) cubic-bezier(.15, .7, .3, 1) both;
  animation-delay: var(--d, 0s);
}

@keyframes al-sc-fly {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); }
}

.al-scene__ring {
  position: absolute;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid #fbf8ef;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: al-sc-ring .9s ease-out both;
}

@keyframes al-sc-ring {
  from { opacity: .9; transform: scale(.3); }
  to { opacity: 0; transform: scale(3.4); }
}

.al-scene__pen {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  pointer-events: none;
}

.al-scene__low {
  flex: none;
}

.al-scene__name {
  min-height: 74px;
  margin: 0;
  font-size: 33px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.al-scene__name .w {
  display: inline-block;
  white-space: nowrap;
}

.al-scene__name .l {
  display: inline-block;
  opacity: 0;
  animation: al-sc-up .5s cubic-bezier(.2, 1.3, .4, 1) both;
  animation-delay: calc(var(--i) * 24ms + .1s);
}

@keyframes al-sc-up {
  from { opacity: 0; transform: translateY(18px) scale(.9); }
  to { opacity: 1; transform: none; }
}

.al-scene__balls {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.al-scene__balls li {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35);
}

.al-scene__balls li.is-on {
  background: radial-gradient(circle at 35% 30%, #ffffff 0 14%, #ffc2d8 16%, #ff6f9e 55%, #a50c3a 100%);
  box-shadow: 0 2px 0 rgba(74, 14, 46, .35);
}

.al-scene__balls li.is-pop {
  animation: al-sc-ball .6s cubic-bezier(.2, 1.6, .4, 1) both;
}

@keyframes al-sc-ball {
  0% { transform: scale(0); }
  60% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.al-scene__next {
  min-height: 22px;
  margin: 18px 0 0;
  color: #ffd6e4;
  font-size: 16px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}

.al-scene__go {
  height: 56px;
  margin-top: 18px;
  padding: 0 46px;
  border: 0;
  border-radius: 28px;
  background: #fbf8ef;
  box-shadow: 0 6px 0 rgba(74, 14, 46, .45);
  color: #a50c3a;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2, 1.3, .4, 1);
  pointer-events: none;
}

.al-scene__go:active {
  box-shadow: 0 2px 0 rgba(74, 14, 46, .45);
  transform: translateY(4px);
}

.al-scene__later {
  display: block;
  margin: 10px auto 0;
  padding: 8px 14px;
  border: 0;
  background: none;
  color: #ffd6e4;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.al-scene.is-done .al-scene__next,
.al-scene.is-done .al-scene__go,
.al-scene.is-done .al-scene__later {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.al-scene__go:focus-visible,
.al-scene__later:focus-visible {
  outline: 3px solid #ffd6e4;
  outline-offset: 3px;
}

.al-scene.is-shake .al-scene__book {
  animation: al-sc-shake .4s ease-out;
}

@keyframes al-sc-shake {
  0%, 100% { translate: 0 0; }
  20% { translate: -5px 0; }
  40% { translate: 4px 0; }
  60% { translate: -3px 0; }
  80% { translate: 2px 0; }
}

/* Each tier its own gesture (the class of a piece just come is « is-in », as on the card). */
.al-scene .al-bk .is-in.al-bk__page,
.al-zoom .al-bk .is-in.al-bk__page { animation: al-sc-page .8s cubic-bezier(.2, 1.1, .3, 1) both; }
@keyframes al-sc-page { from { opacity: 0; transform: translateX(70px) rotate(14deg); } to { opacity: 1; transform: none; } }
.al-scene .al-bk .is-in.al-bk__back,
.al-zoom .al-bk .is-in.al-bk__back { animation: al-sc-fan .8s cubic-bezier(.2, 1.3, .3, 1) both; }
@keyframes al-sc-fan { from { opacity: 0; transform: rotate(14deg) translateX(30px); } to { opacity: 1; transform: rotate(-5deg); } }
.al-scene .al-bk .is-in.al-bk__clip,
.al-zoom .al-bk .is-in.al-bk__clip { animation: al-sc-clip .6s cubic-bezier(.3, 1.6, .5, 1) .45s both; }
@keyframes al-sc-clip { from { opacity: 0; transform: translateY(-46px); } to { opacity: 1; transform: none; } }
.al-scene[data-tier="3"] .al-bk .is-in.al-bk__front,
.al-zoom[data-tier="3"] .al-bk .is-in.al-bk__front,
.al-scene[data-tier="8"] .al-bk .is-in.al-bk__front,
.al-zoom[data-tier="8"] .al-bk .is-in.al-bk__front { transform-origin: 0 50%; animation: al-sc-hinge 1s cubic-bezier(.25, .85, .25, 1) both; }
@keyframes al-sc-hinge { 0% { opacity: 0; transform: rotateY(-115deg); } 25% { opacity: 1; } 78% { transform: rotateY(7deg); } 100% { transform: rotateY(0); } }
.al-scene .al-bk .is-in.al-bk__edge,
.al-zoom .al-bk .is-in.al-bk__edge,
.al-scene[data-tier="7"] .al-bk .is-in.al-bk__front,
.al-zoom[data-tier="7"] .al-bk .is-in.al-bk__front { animation: al-sc-fade .5s ease .2s both; }
@keyframes al-sc-fade { from { opacity: 0; } to { opacity: 1; } }
.al-scene .al-bk .is-in.al-bk__photo,
.al-zoom .al-bk .is-in.al-bk__photo { animation: al-sc-photo 1s cubic-bezier(.2, 1.15, .3, 1) both; }
@keyframes al-sc-photo { 0% { opacity: 0; transform: translate(-30px, 240px) rotate(-38deg) scale(1.9); } 30% { opacity: 1; } 70% { transform: translate(0, -8px) rotate(3deg) scale(1.04); } 100% { transform: none; } }
.al-scene .al-bk .is-in.al-bk__names,
.al-zoom .al-bk .is-in.al-bk__names { animation: al-sc-write 1.35s cubic-bezier(.55, 0, .35, 1) .15s both; }
@keyframes al-sc-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.al-scene[data-tier="6"] .al-bk .is-in.al-bk__front,
.al-zoom[data-tier="6"] .al-bk .is-in.al-bk__front { animation: al-sc-flood 1.1s cubic-bezier(.3, .1, .2, 1) .1s both; }
@keyframes al-sc-flood { from { clip-path: circle(0% at 50% 62%); } to { clip-path: circle(130% at 50% 62%); } }
.al-scene[data-tier="7"] .al-scene__spin,
.al-zoom[data-tier="7"] .al-zoom__spin { animation: al-sc-turn 1.5s cubic-bezier(.45, 0, .2, 1) both; }
@keyframes al-sc-turn { 0% { transform: rotateY(0); } 45% { transform: rotateY(52deg); } 75% { transform: rotateY(-8deg); } 100% { transform: rotateY(0); } }
.al-scene[data-tier="8"] .al-scene__spin,
.al-zoom[data-tier="8"] .al-zoom__spin { animation: al-sc-thud 1s cubic-bezier(.3, 0, .2, 1) both; }
@keyframes al-sc-thud { 0% { transform: translateY(-70px) scale(1.12); } 52% { transform: translateY(0) scale(1); } 62% { transform: scale(1.05, .93); } 80% { transform: scale(.99, 1.02); } 100% { transform: none; } }
.al-scene .al-bk .is-in.al-bk__heart,
.al-zoom .al-bk .is-in.al-bk__heart { animation: al-sc-stamp .75s cubic-bezier(.3, 1.45, .5, 1) .1s both; }
@keyframes al-sc-stamp { 0% { opacity: 0; transform: scale(5) rotate(-35deg); } 55% { opacity: 1; transform: scale(.75) rotate(4deg); } 100% { transform: none; } }
.al-scene .al-bk .is-in.al-bk__band,
.al-zoom .al-bk .is-in.al-bk__band { animation: al-sc-band .9s cubic-bezier(.2, 1.2, .3, 1) .1s both; }
@keyframes al-sc-band { from { opacity: 0; transform: translateX(-140px); } to { opacity: 1; transform: none; } }
.al-scene .al-bk .is-in.al-bk__gold,
.al-zoom .al-bk .is-in.al-bk__gold { animation: al-sc-fade .6s ease both, al-shimmer 1.1s linear .3s 3; }
.al-scene .al-bk .is-in.al-bk__seal,
.al-zoom .al-bk .is-in.al-bk__seal { animation: al-sc-seal .8s cubic-bezier(.3, 1.5, .5, 1) .1s both; }
@keyframes al-sc-seal { 0% { opacity: 0; transform: scale(3) rotate(-60deg); } 60% { opacity: 1; transform: scale(.85) rotate(-4deg); } 100% { transform: rotate(-10deg); } }

/* The book finished: its own words, a rain of hearts. */
.al-scene.is-final .al-scene__name {
  font-size: 36px;
}

.al-scene__rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.al-scene__rain > * {
  position: absolute;
  top: -30px;
  animation: al-sc-fall linear both;
}

@keyframes al-sc-fall {
  from { opacity: 1; transform: translateY(0) rotate(0); }
  to { opacity: .9; transform: translateY(110vh) rotate(var(--r)); }
}

/* A short phone: the counter and the name a little smaller, so that « Continuer » stays in sight. */
@media (max-height: 720px) {
  .al-scene__odo {
    --al-odo: 62px;
    font-size: 58px;
  }

  .al-scene__name {
    min-height: 64px;
    font-size: 28px;
  }

  .al-scene__go {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .al-scene,
  .al-scene * {
    animation-duration: .01s !important;
    animation-delay: 0s !important;
    transition-duration: .2s !important;
  }

  .al-scene__air,
  .al-scene__burst,
  .al-scene__rain {
    display: none;
  }

  .al-shell.is-back {
    transform: none;
  }
}

/* ---- The gallery full ---- */
.al-full__body {
  gap: 12px;
  color: #702a71;
}

.al-full__body:focus {
  outline: none;
}

.al-full__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.al-full__book {
  position: relative;
  flex: 0 0 82px;
  width: 82px;
  height: 96px;
}

.al-full__book .al-bk {
  position: absolute;
  top: -52px;
  left: -44px;
  transform: scale(.48);
}

.al-full__words {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.al-full__words[hidden] {
  display: none;
}

.al-full__kicker {
  color: #c4285b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.al-full__title {
  margin: 0;
  color: #702a71;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.al-full__text {
  margin: 0;
  color: #8d346a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.al-full__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 28px;
  background: #c4285b;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 5px 0 #8d1b45;
}

.al-full__cta[hidden] {
  display: none;
}

.al-full__games {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f4ebe0;
  color: #702a71;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.al-full__die {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #c4285b;
  box-shadow: 0 3px 0 #8d1b45;
  transform: rotate(-8deg);
}

.al-full__later {
  align-self: center;
  height: 44px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: #8d346a;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.al-full__replace {
  min-height: 52px;
  border: 3px solid #c4285b;
  border-radius: 26px;
  background: transparent;
  color: #c4285b;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---- The photos of the gallery open on a touch ---- */
button.al-pola {
  margin: 0;
  border: 0;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

button.al-pola:focus-visible {
  outline: 3px solid #ffd6e4;
  outline-offset: 3px;
}

.al-gallery.is-picking button.al-pola {
  box-shadow: 0 0 0 3px #ffd6e4, 0 10px 20px -10px rgba(74, 14, 46, .6);
}

/* ---- A photo opened ---- */
.al-photo {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: linear-gradient(180deg, #4a1d6e 0%, #702a71 55%, #8d346a 100%);
  perspective: 1000px;
  overscroll-behavior: contain;
  animation: al-in .25s ease both;
}

.al-photo[hidden] {
  display: none;
}

.al-photo:focus {
  outline: none;
}

.al-photo__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.al-photo__stars i {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  animation: al-twinkle 2s ease-in-out infinite;
}

.al-photo__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(400px, calc(100% - 36px));
  margin: 0 auto;
  padding: calc(44px + env(safe-area-inset-top, 0px)) 0 0;
}

.al-photo__close,
.al-photo__spacer {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.al-photo__close {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, .18);
  color: #ffffff;
  cursor: pointer;
}

.al-photo__where {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.al-photo__month {
  margin: 0;
  color: #ffffff;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.al-photo__position {
  color: #ffd6e4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.al-photo__stage {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  width: min(400px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 calc(28px + env(safe-area-inset-bottom, 0px));
}

.al-photo__stage[hidden] {
  display: none;
}

.al-photo__pola {
  box-sizing: border-box;
  width: min(312px, 100%);
  margin: 0;
  padding: 12px 12px 0;
  border-radius: 6px;
  background: #fbf8ef;
  box-shadow: 0 24px 50px -20px rgba(26, 8, 32, .8);
  transform: rotate(-1.5deg);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.al-photo__pola img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 10;
  border-radius: 2px;
  background: #e9dfd0;
  object-fit: cover;
}

.al-photo__caption {
  display: block;
  overflow: hidden;
  height: 56px;
  padding: 0 8px;
  color: #702a71;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 29px;
  font-weight: 700;
  line-height: 56px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.al-photo__caption.is-empty {
  color: #c9b6c4;
}

/* Another photo in its place: the polaroid turns on its edge while the new one comes, then turns back. */
.al-photo__pola.is-edge {
  transform: rotate(-1.5deg) rotateY(90deg);
}

/* None: it falls away. */
.al-photo__pola.is-gone {
  animation: al-gone .6s cubic-bezier(.5, 0, .7, .4) forwards;
}

@keyframes al-gone {
  0% { transform: rotate(-1.5deg); opacity: 1; }
  100% { transform: translateY(160px) rotate(14deg) scale(.6); opacity: 0; }
}

.al-photo__page {
  margin: 22px 0 0;
  color: #ffd6e4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.al-photo__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 22px;
}

.al-photo__act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.al-photo__act:disabled {
  opacity: .5;
  cursor: default;
}

.al-photo__round {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fbf8ef;
  color: #c4285b;
  box-shadow: 0 5px 0 rgba(46, 16, 56, .45);
}

.al-photo__act:focus-visible .al-photo__round {
  outline: 3px solid #ffd6e4;
  outline-offset: 3px;
}

.al-photo__note {
  min-height: 20px;
  max-width: 320px;
  margin: 18px 0 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.al-photo__gone {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 30px 120px;
  text-align: center;
  animation: al-rise .5s .3s both;
}

.al-photo__gone[hidden] {
  display: none;
}

.al-photo__gone-title {
  margin: 0;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.al-photo__gone-text {
  margin: 0;
  color: #ffd6e4;
  font-size: 15px;
  font-weight: 800;
}

.al-photo__back {
  height: 54px;
  margin-top: 14px;
  padding: 0 26px;
  border: 0;
  border-radius: 27px;
  background: #fbf8ef;
  color: #c4285b;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: 0 5px 0 rgba(46, 16, 56, .45);
  cursor: pointer;
}

.al-photo__undo {
  height: 44px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
}

.al-photo__undo[hidden] {
  display: none;
}

/* ---- What a photo asks, in a sheet ---- */
.al-act__body {
  gap: 12px;
  color: #702a71;
}

.al-act__title {
  margin: 0;
  color: #702a71;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.al-act__part {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.al-act__part[hidden] {
  display: none;
}

.al-act__label {
  color: #8d346a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.al-act__input {
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  margin-top: -6px;
  padding: 0 16px;
  border: 3px solid #c4285b;
  border-radius: 16px;
  background: #ffffff;
  color: #702a71;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 28px;
  font-weight: 700;
  outline: none;
}

.al-act__input::placeholder {
  color: #c9b6c4;
}

.al-act__text {
  margin: 0;
  color: #8d346a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.al-act__go {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 0;
  border-radius: 28px;
  background: #c4285b;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 5px 0 #8d1b45;
  cursor: pointer;
}

.al-act__go input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The ring of the keyboard only, never on a touch. */
.al-act__go:has(input:focus-visible),
.al-act__go:focus-visible {
  outline: 3px solid #f2a7c3;
  outline-offset: 3px;
}

.al-act__body:focus {
  outline: none;
}

.al-act__go--delete {
  background: #a50c3a;
  box-shadow: 0 5px 0 #6e0727;
}

.al-act__error {
  margin: 0;
  color: #a50c3a;
  font-size: 14px;
  font-weight: 800;
}

.al-act__error:empty {
  display: none;
}

.al-act__cancel {
  height: 44px;
  border: 0;
  background: transparent;
  color: #8d346a;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---- The lock (lot 4) ---- */
.al-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.al-head .al-title {
  min-width: 0;
}

/* The ticket of the Pass at the top right while the lock waits for the app (lot 7): the title keeps clear of it. */
.al-head--ticket .al-title {
  padding-right: 84px;
}

/* In Nous (lot 8a): the round back to Nous, then the title, a little smaller as on the collection's page. */
.al-head__lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.al-head__lead .al-title {
  font-size: 26px;
  line-height: 30px;
}

.al-head--ticket .al-head__lead {
  padding-right: 84px;
}

.al-head--ticket .al-head__lead .al-title {
  padding-right: 0;
}

.al-lock {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 44px;
  margin-top: -2px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 22px;
  background: #fbf8ef;
  color: #c4285b;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(112, 42, 113, .35);
  cursor: pointer;
}

/* Waiting for the state of the album, or while its code is asked: invisible, its room kept (lot 6). */
.al-lock.is-waiting {
  visibility: hidden;
}

/* Its word, over the room of the longer of « Protéger » and « Protégée » in the language. */
.al-lock__words {
  display: grid;
}

.al-lock__words > * {
  grid-area: 1 / 1;
}

.al-lock__words > [aria-hidden] {
  visibility: hidden;
}

.al-lock .al-lock__shut,
.al-lock.is-on .al-lock__open {
  display: none;
}

.al-lock.is-on .al-lock__shut {
  display: block;
}

.al-lock.is-on {
  background: #702a71;
  color: #fbf8ef;
  box-shadow: 0 4px 0 rgba(46, 16, 56, .5);
}

/* The glossy ball of the lock. */
.al-ball {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ff8fb4 0%, #c4285b 55%, #8d1b45 100%);
  box-shadow: inset 0 -7px 0 rgba(110, 7, 39, .45), 0 6px 0 rgba(46, 16, 56, .25);
}

.al-ball--big {
  width: 80px;
  height: 80px;
}

.al-ball--small {
  align-self: center;
  width: 56px;
  height: 56px;
}

.al-ball__shine {
  position: absolute;
  top: 6px;
  left: 10px;
  width: 24px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transform: rotate(-24deg);
}

.al-ball svg {
  position: relative;
}

.al-ball.is-pop {
  animation: al-ball-pop .6s cubic-bezier(.3, 1.5, .5, 1) both;
}

.al-ball__shackle.is-close {
  animation: al-shackle-close .6s cubic-bezier(.3, 1.6, .5, 1) both;
}

.al-ball__shackle.is-open {
  animation: al-shackle-open .6s cubic-bezier(.3, 1.6, .5, 1) both;
}

@keyframes al-ball-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18, .86); }
  70% { transform: scale(.95, 1.05); }
  100% { transform: scale(1); }
}

@keyframes al-shackle-close {
  0% { transform: translateY(-6px); }
  60% { transform: translateY(2px); }
  100% { transform: none; }
}

@keyframes al-shackle-open {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(-2px); }
}

/* The keypad (album.js, keypad): the dots, then twelve round keys. */
.al-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.al-pad__dots {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 20px;
}

.al-pad__dots span {
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 3px solid #fbf8ef;
  border-radius: 50%;
}

.al-pad__dots span.is-on {
  background: #fbf8ef;
  animation: al-pad-pop .25s cubic-bezier(.3, 1.6, .5, 1);
}

.al-pad__dots.is-shake {
  animation: al-pad-shake .45s cubic-bezier(.36, .07, .19, .97);
}

@keyframes al-pad-pop {
  from { transform: scale(.4); }
  to { transform: none; }
}

@keyframes al-pad-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}

.al-pad__keys {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 14px 22px;
}

.al-pad__keys button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fbf8ef;
  color: #702a71;
  font: inherit;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 4px 0 rgba(46, 16, 56, .45);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.al-pad__keys button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(46, 16, 56, .45);
}

.al-pad__keys button.is-erase {
  background: transparent;
  color: #fbf8ef;
  box-shadow: none;
}

.al-pad__keys span {
  width: 72px;
  height: 72px;
}

.al-pad.is-off {
  opacity: .45;
  pointer-events: none;
}

/* The light keypad of a sheet. */
.al-pad--light .al-pad__dots span {
  border-color: #702a71;
}

.al-pad--light .al-pad__dots span.is-on {
  background: #702a71;
}

.al-pad--light .al-pad__keys button {
  background: #ffffff;
  box-shadow: 0 4px 0 rgba(112, 42, 113, .28);
}

.al-pad--light .al-pad__keys button.is-erase {
  background: transparent;
  color: #702a71;
  box-shadow: none;
}

@media (max-width: 359px) {
  .al-pad__keys {
    grid-template-columns: repeat(3, 64px);
    gap: 12px 18px;
  }

  .al-pad__keys button,
  .al-pad__keys span {
    width: 64px;
    height: 64px;
  }
}

/* The album protected: its code, in place of the book and the photos. */
.al-shut {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 26px;
  padding-bottom: 24px;
  text-align: center;
  animation: al-in .3s ease both;
}

.al-shut[hidden] {
  display: none;
}

.al-shut__title {
  margin: 12px 0 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.al-shut__line {
  min-height: 19px;
  max-width: 320px;
  margin: 6px 0 0;
  color: #ffd6e4;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.al-shut__pad {
  margin-top: 18px;
}

.al-shut__open {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  animation: al-rise .45s .25s both;
}

.al-shut__open[hidden] {
  display: none;
}

.al-shut__go,
.al-code__go {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 29px;
  background: #fbf8ef;
  color: #c4285b;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 6px 0 rgba(112, 42, 113, .45);
  cursor: pointer;
}

.al-shut__more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  margin-top: 14px;
}

.al-shut__link {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.al-shut__link[hidden] {
  display: none;
}

/* The code chosen, on its own screen of night. */
.al-code {
  position: fixed;
  inset: 0;
  z-index: 66;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 0 22px calc(30px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #4a1d6e 0%, #702a71 55%, #b0128a 100%);
  text-align: center;
  overscroll-behavior: contain;
  animation: al-in .25s ease both;
}

.al-code[hidden] {
  display: none;
}

.al-code:focus {
  outline: none;
}

.al-code__top {
  position: relative;
  display: flex;
  width: min(400px, 100%);
  padding: calc(44px + env(safe-area-inset-top, 0px)) 0 0;
}

.al-code > .al-ball {
  margin-top: 4px;
}

.al-code__title {
  margin: 18px 0 0;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
}

.al-code__sub {
  max-width: 320px;
  margin: 6px 0 0;
  color: #ffd6e4;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.al-code__pad {
  margin-top: 26px;
}

.al-code__done {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(400px, 100%);
  margin-top: 26px;
  text-align: left;
  animation: al-rise .5s .5s both;
}

.al-code__done[hidden] {
  display: none;
}

.al-code__info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.al-code__icon {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fbf8ef;
  color: #c4285b;
}

.al-code__done .al-code__go {
  margin-top: 12px;
}

.al-code__hearts {
  position: absolute;
  top: calc(44px + env(safe-area-inset-top, 0px) + 84px);
  left: 50%;
  width: 0;
  height: 0;
}

.al-code__hearts span {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.al-code__hearts svg {
  position: absolute;
  animation: al-burst 1.2s cubic-bezier(.15, .7, .3, 1) both;
}

/* Protéger: the sheet. */
.al-protect__body {
  gap: 12px;
  color: #702a71;
  text-align: left;
}

.al-protect__body:focus,
.al-guard__body:focus {
  outline: none;
}

.al-protect__info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f4ebe0;
  color: #702a71;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.al-protect__icon {
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #c4285b;
  color: #ffffff;
  box-shadow: 0 3px 0 #8d1b45;
}

/* La protection: the sheet of its settings. */
.al-guard__body {
  gap: 12px;
  color: #702a71;
}

.al-guard__part {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.al-guard__part[hidden] {
  display: none;
}

.al-guard__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 3px 0 rgba(112, 42, 113, .12);
}

.al-guard__words {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #8d346a;
}

.al-guard__words strong {
  color: #702a71;
  font-size: 15px;
  font-weight: 900;
}

.al-switch {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: #d9c9d3;
  cursor: pointer;
  transition: background .2s ease;
}

.al-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(46, 16, 56, .25);
  transition: transform .2s ease;
}

.al-switch[aria-checked="true"] {
  background: #c4285b;
}

.al-switch[aria-checked="true"] span {
  transform: translateX(26px);
}

.al-guard__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: #f4ebe0;
  color: #702a71;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.al-guard__pad {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

.al-guard__note {
  margin: 0;
  color: #8d346a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.al-guard__note:empty {
  display: none;
}

/* ---- The book in beta (lot 5) ---- */
.al-beta {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-left: 6px;
  padding: 0 9px;
  border-radius: 7px;
  background: #fbf8ef;
  color: #c4285b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  vertical-align: middle;
  box-shadow: 0 3px 0 rgba(112, 42, 113, .4);
  transform: rotate(-4deg);
}

.al-bookview__names {
  display: flex;
  align-items: center;
  gap: 7px;
}

.al-bookview__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(400px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
}

.al-bookview__tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .16);
}

.al-bookview__tabs button {
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.al-bookview__tabs button[aria-pressed="true"] {
  background: #fbf8ef;
  color: #c4285b;
  box-shadow: 0 3px 0 rgba(112, 42, 113, .45);
}

.al-bookview__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 246px;
}

.al-bookview__cover {
  display: block;
  width: 170px;
  height: 200px;
  transform-origin: 50% 60%;
  animation: al-bob 6s 1s ease-in-out infinite;
}

.al-bookview__cover[hidden] {
  display: none;
}

@keyframes al-bob {
  0%, 100% { transform: translateY(0) scale(1.12); }
  50% { transform: translateY(-6px) scale(1.12); }
}

.al-bookview__pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.al-bookview__pages[hidden] {
  display: none;
}

.al-spread {
  display: flex;
  width: min(330px, 100%);
  height: 176px;
  border-radius: 6px;
  box-shadow: 0 8px 0 rgba(74, 14, 46, .3);
  animation: al-page .55s cubic-bezier(.2, .9, .3, 1) both;
}

@keyframes al-page {
  0% { transform: perspective(900px) rotateY(-30deg) scale(.94); opacity: 0; }
  100% { transform: perspective(900px) rotateY(0deg) scale(1); opacity: 1; }
}

.al-spread__left,
.al-spread__right {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  min-width: 0;
  height: 176px;
}

.al-spread__left {
  padding: 12px 10px 10px 12px;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(90deg, #fbf8ef 0%, #fbf8ef 84%, #e9dfd0 100%);
}

.al-spread__right {
  padding: 12px 12px 10px 10px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(90deg, #e9dfd0 0%, #fbf8ef 16%, #fbf8ef 100%);
}

.al-spread img,
.al-spread__blank {
  display: block;
  width: 100%;
  border-radius: 3px;
  background: #e9dfd0;
  object-fit: cover;
}

.al-spread__left img,
.al-spread__left .al-spread__blank {
  flex: 1;
  min-height: 0;
}

.al-spread__right img,
.al-spread__right .al-spread__blank {
  height: 72px;
}

.al-spread__cap {
  min-height: 17px;
  overflow: hidden;
  color: #702a71;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.al-spread--empty {
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: #fbf8ef;
  color: #702a71;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.al-bookview__turn {
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, .2);
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.al-bookview__turn[hidden] {
  display: none;
}

.al-bookview__info {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.al-bookview__colours {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.al-bookview__label {
  color: #ffd6e4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.al-bookview__chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.al-bookview__chips button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.al-bookview__chips button[aria-pressed="true"] {
  border: 3px solid #c4285b;
  background: #fbf8ef;
  color: #702a71;
  box-shadow: 0 4px 0 #a50c3a;
}

.al-bookview__swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), 0 0 0 1px rgba(112, 42, 113, .25);
}

.al-bookview__order {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.al-bookview__soon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .14);
}

.al-bookview__soon strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.al-bookview__soon small {
  display: block;
  color: #ffd6e4;
  font-size: 13px;
  font-weight: 700;
}

.al-bookview__truck {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fbf8ef;
  color: #c4285b;
}

.al-bookview__notify {
  height: 58px;
  border: 0;
  border-radius: 29px;
  background: #c4285b;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 6px 0 #8d1b45;
  cursor: pointer;
}

.al-bookview__notify[hidden],
.al-bookview__noted[hidden] {
  display: none;
}

.al-bookview__noted {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: al-rise .4s both;
}

.al-bookview__done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 58px;
  border-radius: 29px;
  background: #fbf8ef;
  color: #c4285b;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 6px 0 rgba(112, 42, 113, .45);
  animation: al-pop .45s cubic-bezier(.3, 1.5, .5, 1) both;
}

.al-bookview__noted small {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.al-bookview__error {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.al-bookview__error:empty {
  display: none;
}

/* No motion wanted: everything in place at once. */
@media (prefers-reduced-motion: reduce) {
  .al *,
  .al *::before,
  .al *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
