/* Le lobby des histoires (docs/LOBBY_HISTOIRES.md, the canvas « La 2, revue », his GO of 2026-11-17): in place of the
   shelf of posters, a page that goes down and warms up: its background goes from plum to coral (the thermometer on its
   left left on 2026-11-17, « trop de superposition avec le décor »). On top the story of the evening, its scene
   large (the windscreen that mists up, the hot tub that steams), its lines in turn; then « Les plus jouées », a block per
   category (a story wide, two side by side, or one « à la une » and tickets), the « Frissons » in gold at the bottom;
   « Jouer » on every story, and its stars. Loaded with it only (template/espace/histoires.php); its script:
   static/js/espace/histoires.js, « The new lobby ». What moves in a scene moves only while it is on screen
   (« st-decor__layer », as on the stage); nothing moves with reduced motion. */

.st--mag[data-story-view="shelf"] {
  background: linear-gradient(180deg, #4e1a5c 0%, #702a71 16%, #8d346a 30%, #a0346e 45%, #b0128a 58%, #c4285b 72%, #d4276f 84%, #fe5759 100%);
}

.st-mag {
  padding: 0 0 28px;
}

.st-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.st-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--st-coral);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* ---- The story of the evening ---- */
.st-hero {
  position: relative;
}

.st-hero__pic {
  position: relative;
  aspect-ratio: 390 / 370;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000000 72%, transparent 100%);
}

.st-hero__scene {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

/* The ticket of the Pass, at the top right of the scene, as on every tab (static/css/espace.css, .lc-ticket--tab). */
.st-hero .lc-ticket--tab {
  top: calc(26px + env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 6;
}

.st-hero__top {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 34px;
  background: linear-gradient(180deg, rgba(46, 16, 56, .74), rgba(46, 16, 56, 0));
  pointer-events: none;
}

.st-hero__top .st-pill {
  pointer-events: auto;
}

.st-mag__title {
  margin: 8px 0 0;
  color: #fff3f8;
  font-family: var(--st-hand);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 4px #ffffff, 0 0 12px var(--st-neon), 0 0 28px var(--st-neon);
}

.st-mag__tagline {
  margin: 4px 0 0;
  color: #ffd6e4;
  font-size: 14px;
  font-weight: 800;
}

/* Its lines, in turn, one on each side, as the two of the story say them. */
.st-hero__line {
  position: absolute;
  top: 45.4%;
  max-width: 34%;
  margin: 0;
  padding: 8px 11px;
  color: #4e1a5c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 6px 16px rgba(46, 16, 56, .35);
  pointer-events: none;
}

.st-hero__line.is-left {
  left: 6%;
  border-radius: 16px 16px 16px 4px;
  background: #fbf8ef;
}

.st-hero__line.is-right {
  right: 5%;
  border-radius: 16px 16px 4px 16px;
  background: #ffd6e4;
}

.st-hero__line.is-a { animation: st-line-a 3.6s ease-in-out both; }
.st-hero__line.is-b { animation: st-line-b 3.6s ease-in-out both; }

@keyframes st-line-a {
  0% { opacity: 0; transform: translateY(6px); }
  12%, 86% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes st-line-b {
  0% { opacity: 0; transform: translateY(6px); }
  12%, 86% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-4px); }
}

.st-hero__text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: -34px 16px 0;
}

.st-hero__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #ffe29a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.st-hero__title {
  margin: 0;
  color: #fff3f8;
  font-family: var(--st-hand);
  font-size: 50px;
  font-weight: 700;
  line-height: .95;
  text-shadow: 0 0 4px #ffffff, 0 0 12px var(--st-neon), 0 0 28px var(--st-neon);
}

.st-hero__title.is-long {
  font-size: 40px;
}

.st-hero__hook {
  margin: 0;
  color: #ffe1ec;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.38;
}

.st-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 8px;
}

.st-hero__row .st-go {
  margin-left: auto;
}

.st-hero__restart {
  align-self: flex-end;
  margin-top: 2px;
  color: #ffd6e4;
}

/* The windscreen mists up once (st-run-a; a touch on the scene plays it again, st-run-b), the heart is drawn, the two
   first names come, a drop runs down; the charm under the mirror swings. */
.st-fog { opacity: 0; }
.st-run-a .st-fog { animation: st-fog-a 3.4s ease-out .4s both; }
.st-run-b .st-fog { animation: st-fog-b 3.4s ease-out .4s both; }

@keyframes st-fog-a { from { opacity: 0; } to { opacity: 1; } }
@keyframes st-fog-b { from { opacity: 0; } to { opacity: 1; } }

.st-fog__heart,
.st-fog__drip {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.st-run-a .st-fog__heart { animation: st-draw-a 2.4s cubic-bezier(.45, .05, .35, 1) 3s both; }
.st-run-b .st-fog__heart { animation: st-draw-b 2.4s cubic-bezier(.45, .05, .35, 1) 3s both; }
.st-run-a .st-fog__drip { animation: st-draw-a 1.8s ease-in 6.6s both; }
.st-run-b .st-fog__drip { animation: st-draw-b 1.8s ease-in 6.6s both; }

@keyframes st-draw-a { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes st-draw-b { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.st-fog__names { opacity: 0; }
.st-run-a .st-fog__names { animation: st-fog-a 1.4s ease-out 5.3s both; }
.st-run-b .st-fog__names { animation: st-fog-b 1.4s ease-out 5.3s both; }

.st-decor__layer .st-fog__charm {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: st-sway 3.4s ease-in-out infinite alternate;
}

@keyframes st-sway {
  from { transform: rotate(-9deg); }
  to { transform: rotate(9deg); }
}

/* The hot tub: its steam rises, a heart of steam now and then, the snow falls. */
.st-steam,
.st-steam-heart {
  opacity: 0;
}

.st-decor__layer .st-steam {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: st-steam 5.6s ease-out infinite;
}

@keyframes st-steam {
  0% { transform: translateY(0) scale(.8); opacity: 0; }
  20% { opacity: .9; }
  100% { transform: translateY(-72px) scale(1.9); opacity: 0; }
}

.st-decor__layer .st-steam-heart {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: st-steam-heart 9s ease-in-out infinite;
}

@keyframes st-steam-heart {
  0%, 14% { transform: translateY(0) scale(.6); opacity: 0; }
  26% { opacity: .85; }
  70% { transform: translateY(-80px) scale(1.25); opacity: .7; }
  86%, 100% { transform: translateY(-98px) scale(1.4); opacity: 0; }
}

.st-decor__layer .st-flake {
  animation: st-flake 10s linear infinite;
}

@keyframes st-flake {
  from { transform: translate(0, -100px); }
  to { transform: translate(16px, 400px); }
}

/* ---- Jouer, the stars, the time ---- */
.st-go {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: #fbf8ef;
  color: #c4285b;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(165, 12, 58, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}

.st-go::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  border-left: 7px solid currentColor;
}

.st-go:active {
  transform: translateY(2px);
  box-shadow: none;
}

.st .st-go:focus-visible,
.st .st-mag__go:focus-visible,
.st .st-pick__star:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* « Jouer » on the story of the evening: larger, and it breathes, a pink halo coming and going around it (2026-11-17, his
   capture: « animé ou légèrement plus grand »); then lower and longer (his remark of the same evening: « trop gros en
   hauteur et pas assez en longueur »). */
.st-go--big {
  min-width: 178px;
  height: 46px;
  padding: 0 34px;
  gap: 10px;
  font-size: 18px;
  box-shadow: 0 5px 0 rgba(165, 12, 58, .45);
  animation: st-go-breathe 2.6s ease-in-out infinite;
}

.st-go--big::before {
  border-top-width: 6px;
  border-bottom-width: 6px;
  border-left-width: 9px;
}

@keyframes st-go-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 5px 0 rgba(165, 12, 58, .45), 0 0 0 0 rgba(255, 214, 228, 0); }
  50% { transform: scale(1.045); box-shadow: 0 5px 0 rgba(165, 12, 58, .45), 0 0 26px 4px rgba(255, 214, 228, .55); }
}

.st-go--big:active {
  animation: none;
}

.st-go--red {
  background: #c4285b;
  color: #ffffff;
  box-shadow: 0 3px 0 rgba(120, 10, 50, .3);
}

.st-go--gold {
  background: linear-gradient(180deg, #ffe7b0, #f2c86a);
  color: #3f1745;
  box-shadow: 0 3px 0 rgba(150, 100, 20, .35);
}

.st-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffe1ec;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.st-stars {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffe1ec;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.st-stars__row {
  position: relative;
  display: inline-block;
  color: rgba(255, 243, 248, .3);
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
}

.st-stars__row i {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: #ffc94d;
  font-style: normal;
  white-space: nowrap;
}

/* The stars of the story of the evening, on their own line under its hook. */
.st-hero__rating {
  margin: 6px 0 0;
}

.st-hero__rating .st-stars { font-size: 14px; }
.st-hero__rating .st-stars__row { font-size: 18px; }

/* Its length, how hot it is, its stars, in a row that goes to the line when it must. */
.st-facts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-width: 0;
}

.st-spice {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.st-spice svg {
  display: block;
}

.st-spice__body { fill: rgba(255, 243, 248, .24); }
.st-spice__stem { stroke: rgba(255, 243, 248, .24); stroke-width: 1.9; stroke-linecap: round; }
/* In white (his wish of 2026-11-17: the red was too much), the ones not lit faint. */
.st-spice .is-on .st-spice__body { fill: #fff3f8; filter: drop-shadow(0 0 3px rgba(255, 243, 248, .55)); }
.st-spice .is-on .st-spice__stem { stroke: #fff3f8; }
.st-spice--dark .st-spice__body { fill: rgba(141, 52, 106, .18); }
.st-spice--dark .st-spice__stem { stroke: rgba(141, 52, 106, .18); }
/* On the cream of a ticket, white would not show: framboise. */
.st-spice--dark .is-on .st-spice__body { fill: #c4285b; filter: none; }
.st-spice--dark .is-on .st-spice__stem { stroke: #c4285b; }

.st-hero__row .st-spice svg { width: 19px; height: 19px; }

/* The words a card may wear: offered (coral), new (gold), not played yet here (cream). */
.st-badge--new {
  background: linear-gradient(180deg, #ffe7b0, #f2c86a);
  color: #3f1745;
}

.st-badge--unseen {
  background: #fbf8ef;
  color: #c4285b;
}

/* Between the story of the evening and the rest: a wave on each side of a heart that beats. */
.st-mag__sep {
  display: flex;
  justify-content: center;
  margin: 34px 16px -4px;
}

.st-mag__sep svg {
  display: block;
  overflow: visible;
}

.st-mag__sep path {
  fill: none;
  stroke: rgba(255, 214, 228, .55);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.st-mag__sep .st-mag__heart {
  fill: #f460b7;
  stroke: none;
  transform-box: fill-box;
  transform-origin: 50% 60%;
  filter: drop-shadow(0 0 6px rgba(244, 96, 183, .8));
  animation: st-beat 2.4s ease-in-out infinite;
}

@keyframes st-beat {
  0%, 60%, 100% { transform: scale(1); }
  20% { transform: scale(1.18); }
  35% { transform: scale(1.04); }
  45% { transform: scale(1.12); }
}

.st-stars--dark { color: #8d346a; }
.st-stars--dark .st-stars__row { color: rgba(141, 52, 106, .22); }
.st-stars--dark .st-stars__row i { color: #f0a530; }

/* Five stars to give, in the lobby and at the end of a story. */
.st-pick {
  display: inline-flex;
  flex: 0 0 auto;
}

.st-pick__star {
  width: 30px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: #e9d7e0;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease;
}

.st-pick__star.is-on { color: #f0a530; }
.st-pick__star:hover { transform: scale(1.12); }
.st-pick__star[aria-disabled="true"] { cursor: default; transform: none; }

.st-end__ratings--stars {
  display: flex;
  justify-content: center;
}

.st-end__ratings--stars .st-pick__star {
  width: 46px;
  height: 52px;
  color: rgba(255, 255, 255, .35);
  font-size: 40px;
}

.st-end__ratings--stars .st-pick__star.is-on { color: #ffc94d; }

/* « Alors, cette histoire ? » */
.st-rate-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 16px 0;
  padding: 10px 12px;
  border-radius: 20px;
  background: #fbf8ef;
  color: var(--st-ink);
  box-shadow: 0 10px 24px rgba(46, 16, 56, .35);
  transition: opacity .5s ease, transform .5s ease;
}

.st-rate-card.is-done {
  opacity: 0;
  transform: translateY(-6px);
}

.st-rate-card__pic {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 13px;
  background: #5a2160;
}

.st-rate-card__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.st-rate-card__text b {
  color: #4e1a5c;
  font-family: var(--st-hand);
  font-size: 22px;
  line-height: 1;
}

.st-rate-card__text span {
  color: #8d346a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.st-rate-card .st-pick__star {
  width: 25px;
  height: 32px;
  font-size: 23px;
}

/* ---- The blocks ---- */
.st-block {
  margin-top: 38px;
}

.st-block__title {
  margin: 0 16px;
  color: #fff3f8;
  font-family: var(--st-hand);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 4px #ffffff, 0 0 12px var(--st-neon), 0 0 26px var(--st-neon);
}

.st-block--gold .st-block__title {
  color: #fff3cf;
  text-shadow: 0 0 4px #ffffff, 0 0 12px #f2c86a, 0 0 26px #e5b75c;
}

.st-block__tag {
  margin: 4px 16px 12px;
  color: #ffd6e4;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
}

.st-rail {
  display: flex;
  gap: 12px;
  padding: 0 16px 10px;
  overflow-x: auto;
  /* Sideways only: what stands out of a card (its rank, a card turned a little) never makes the row scroll up and down
     (2026-11-17, his capture). */
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.st-rail::-webkit-scrollbar { display: none; }

/* A card: its scene and its veil in their frame, which keeps the round corners; what escapes from the card (the snow of
   the chalet, the leak of the plumber, the flames of the « Frissons ») goes over its edges (2026-11-17). How far the
   snow falls depends on its height (--st-fall). */
.st-card {
  --st-fall: 240px;
  position: relative;
  overflow: visible;
  border-radius: 20px;
  background: #5a2160;
  box-shadow: 0 10px 22px rgba(46, 16, 56, .35);
}

.st-card__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.st-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2);
  pointer-events: none;
}

.st-card.is-gold { box-shadow: 0 0 16px rgba(242, 196, 107, .45), 0 10px 22px rgba(46, 16, 56, .35); }
.st-card.is-gold::after { box-shadow: inset 0 0 0 3px #e5b75c; }

.st-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 16, 56, 0) 30%, rgba(46, 16, 56, .92) 100%);
}

.st-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.st-card__text {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.st-card__title {
  margin: 0;
  color: #fff3f8;
  font-family: var(--st-hand);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(46, 16, 56, .6);
}

.st-card__hook {
  margin: 0;
  color: #ffe1ec;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
}

.st-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  width: 100%;
}

.st-card__row .st-go {
  margin-left: auto;
}

/* « Les plus jouées »: their rank large behind each card. */
.st-top {
  position: relative;
  flex: 0 0 190px;
  height: 214px;
  scroll-snap-align: start;
}

/* Its rank, large, in the round letters of the space (in the handwriting, a « 1 » looked like a stroke of chalk). Inside
   its box, so that nothing stands out of the row. */
.st-top__n {
  position: absolute;
  bottom: 0;
  left: 0;
  color: rgba(251, 248, 239, .1);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 128px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .78;
  -webkit-text-stroke: 2.5px rgba(251, 248, 239, .9);
}

.st-card--top {
  --st-fall: 232px;
  position: absolute;
  top: 0;
  right: 0;
  width: 136px;
  height: 212px;
}

/* Room above the row for the flame of a card of the « Frissons », below it for what falls out of the cards. */
.st-rail--top {
  padding-top: 26px;
  padding-bottom: 46px;
}

/* The flame of a card of the « Frissons » in the row, a little smaller, as its card. */
.st-card--top > .st-gold__flame {
  top: -22px;
  right: -9px;
  width: 30px;
  height: 42px;
}

.st-card--top .st-card__title { font-size: 21px; }

/* A story « à la une ». */
.st-card--une {
  --st-fall: 242px;
  height: 220px;
  margin: 0 16px;
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(46, 16, 56, .4);
}

.st-card--une .st-card__text {
  right: 14px;
  bottom: 12px;
  left: 14px;
}

.st-card--une .st-card__title { font-size: 36px; }

/* The tickets: the format of a cinema ticket, « Jouer » on its stub. */
.st-tickets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 16px 0;
}

.st-ticket {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 82px;
  border-radius: 14px;
  background: #fbf8ef;
  color: var(--st-ink);
  -webkit-mask: radial-gradient(circle at 71% 0, transparent 8px, #000000 8.5px) top / 100% 51% no-repeat, radial-gradient(circle at 71% 100%, transparent 8px, #000000 8.5px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 71% 0, transparent 8px, #000000 8.5px) top / 100% 51% no-repeat, radial-gradient(circle at 71% 100%, transparent 8px, #000000 8.5px) bottom / 100% 51% no-repeat;
}

.st-ticket__pic {
  position: relative;
  flex: 0 0 82px;
  overflow: hidden;
  border-radius: 14px 0 0 14px;
  background: #5a2160;
}

.st-ticket__mid {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 0 8px 0 12px;
}

.st-ticket__title {
  margin: 0;
  overflow: hidden;
  color: #4e1a5c;
  font-family: var(--st-hand);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.st-ticket .st-time { color: #8d346a; }

.st-ticket__perf {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 71%;
  border-left: 2px dashed rgba(196, 40, 91, .35);
}

.st-ticket__stub {
  display: flex;
  flex: 0 0 29%;
  align-items: center;
  justify-content: center;
}

.st-ticket .st-go {
  padding: 0 12px;
}

.st-ticket .st-card__badge {
  top: 6px;
  left: 6px;
  font-size: 9px;
}

/* Two stories side by side, the second a little lower. */
.st-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}

.st-card--duo { --st-fall: 278px; height: 256px; }
.st-card--duo.is-low { margin-top: 34px; }
.st-card--duo .st-card__title { font-size: 28px; }

/* ---- The « Frissons » in gold: cards a little turned, as cards thrown on the table, a flame burning on their corner,
   its sparks rising (the flame the thermometer of the page had, his wish of 2026-11-17). ---- */
.st-gold {
  position: relative;
  flex: 0 0 152px;
  height: 234px;
  transform: rotate(-3deg);
  transition: transform .35s ease;
}

.st-gold.is-right { transform: rotate(3deg); }
.st-gold:hover { transform: rotate(0) translateY(-4px); }

.st-gold__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #5a2160;
  box-shadow: 0 0 0 3px #e5b75c, 0 0 18px rgba(242, 196, 107, .5), 0 12px 24px rgba(46, 16, 56, .4);
}

.st-gold__band {
  position: absolute;
  top: 12px;
  right: 0;
  left: 0;
  z-index: 1;
  padding: 3px 0;
  background: linear-gradient(90deg, #e5b75c, #ffe7b0 50%, #e5b75c);
  color: #3f1745;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .24em;
  text-align: center;
  text-transform: uppercase;
}

.st-gold__face .st-card__badge { top: 36px; }

.st-gold__flame {
  position: absolute;
  top: -30px;
  right: -11px;
  z-index: 2;
  width: 36px;
  height: 51px;
  pointer-events: none;
}

.st-gold__flame svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 6px rgba(254, 87, 89, .9));
  animation: st-flicker 1.2s ease-in-out infinite alternate;
}

.st-gold__outer { fill: #fe5759; }
.st-gold__inner { fill: #ffe29a; }

@keyframes st-flicker {
  0% { transform: scale(1, 1) skewX(0deg); }
  50% { transform: scale(.95, 1.07) skewX(-2deg); }
  100% { transform: scale(1.04, .96) skewX(2deg); }
}

.st-gold__flame i {
  --st-x: 6px;
  position: absolute;
  bottom: 70%;
  left: 50%;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #ffe29a;
  box-shadow: 0 0 6px #fe5759;
  opacity: 0;
  animation: st-spark 1.9s ease-out infinite;
}

.st-gold__flame i:nth-of-type(2) { --st-x: -8px; animation-delay: -.35s; }
.st-gold__flame i:nth-of-type(3) { --st-x: 3px; animation-delay: -.7s; animation-duration: 2.3s; }
.st-gold__flame i:nth-of-type(4) { --st-x: -4px; animation-delay: -1.05s; }
.st-gold__flame i:nth-of-type(5) { --st-x: 9px; animation-delay: -1.4s; animation-duration: 2.1s; }
.st-gold__flame i:nth-of-type(6) { --st-x: -10px; animation-delay: -1.7s; animation-duration: 2.5s; }

@keyframes st-spark {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--st-x), -44px) scale(.4); }
}

/* Small flames along the border of a card of the « Frissons » (his capture of 2026-11-17: « plus de flamme sur le
   contour »): on its top and its two sides, their foot on the border, leaning out, each at its own pace; the border
   glows warm. They move only while the card is on screen (st-decor__layer). */
.st-blaze {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 18px;
  pointer-events: none;
}

.st-card .st-blaze {
  border-radius: inherit;
}

.st-blaze::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  box-shadow: 0 0 14px 2px rgba(254, 87, 89, .45), 0 0 26px 6px rgba(255, 170, 90, .18);
  opacity: .7;
}

.st-blaze.st-decor__layer::before {
  animation: st-blaze-glow 2.6s ease-in-out infinite alternate;
}

@keyframes st-blaze-glow {
  from { opacity: .55; }
  to { opacity: 1; }
}

.st-blaze__f {
  position: absolute;
  width: calc(var(--st-h) * .72);
  height: var(--st-h);
  transform: rotate(var(--st-lean));
  transform-origin: 50% 100%;
}

.st-blaze__f svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 4px rgba(254, 87, 89, .85));
}

.st-blaze.st-decor__layer .st-blaze__f {
  animation: st-blaze 1.15s ease-in-out infinite alternate;
}

.st-blaze__f--top {
  top: calc(var(--st-h) * -1 + 3px);
  left: calc(var(--st-at) - var(--st-h) * .36);
}

.st-blaze__f--left {
  top: calc(var(--st-at) - var(--st-h));
  left: calc(var(--st-h) * -.36 - 1px);
}

.st-blaze__f--right {
  top: calc(var(--st-at) - var(--st-h));
  right: calc(var(--st-h) * -.36 - 1px);
}

@keyframes st-blaze {
  0% { transform: rotate(var(--st-lean)) scale(1, .88); }
  50% { transform: rotate(calc(var(--st-lean) - 5deg)) scale(.9, 1.08); }
  100% { transform: rotate(calc(var(--st-lean) + 4deg)) scale(1.06, .96); }
}

/* What escapes from a card (his capture of 2026-11-17): the snow of the chalet falls out of it, past its edges; the
   leak of the plumber drips from its bottom edge into a little puddle under it. Only while the card is on screen. */
.st-fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.st-fx__flake {
  position: absolute;
  top: 8%;
  left: var(--st-x);
  width: var(--st-size);
  height: var(--st-size);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 5px rgba(255, 255, 255, .9);
  opacity: 0;
}

.st-fx.st-decor__layer .st-fx__flake {
  animation: st-fx-snow 6s linear infinite;
}

@keyframes st-fx-snow {
  0% { opacity: 0; transform: translate(0, 0); }
  8% { opacity: .95; }
  45% { transform: translate(calc(var(--st-drift) * -.5), calc(var(--st-fall) * .45)); }
  85% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--st-drift), var(--st-fall)); }
}

/* The snow piled on the top of the card of the chalet, lumps hanging over its edge. */
.st-fx__cap {
  position: absolute;
  top: -7px;
  right: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: 16px;
  overflow: visible;
  fill: #fbf8ef;
  filter: drop-shadow(0 2px 2px rgba(46, 16, 56, .3));
}

/* The leak of the plumber: a trickle down the card from its washing machine, shining as the water runs. */
.st-fx__trickle {
  position: absolute;
  top: 64%;
  bottom: 0;
  left: 79%;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(196, 233, 255, 0), rgba(196, 233, 255, .85) 30%, rgba(255, 255, 255, .95) 50%, rgba(196, 233, 255, .85) 70%, rgba(124, 196, 239, .9));
  background-size: 100% 200%;
  box-shadow: 0 0 6px rgba(124, 196, 239, .7);
}

.st-fx.st-decor__layer .st-fx__trickle {
  animation: st-fx-run 1.4s linear infinite;
}

@keyframes st-fx-run {
  from { background-position: 0 100%; }
  to { background-position: 0 -100%; }
}

.st-fx__drop {
  position: absolute;
  top: calc(100% - 5px);
  left: var(--st-x);
  width: 10px;
  height: 13px;
  margin-left: -5px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 35% 32%, #ffffff 0 18%, #d8f1ff 26%, #8fd0f5 70%, #5fb3e6);
  box-shadow: 0 0 8px rgba(143, 208, 245, .85);
  opacity: 0;
  transform-origin: 50% 0;
}

.st-fx.st-decor__layer .st-fx__drop {
  animation: st-fx-drip 2.8s ease-in infinite;
}

@keyframes st-fx-drip {
  0% { opacity: 0; transform: translateY(0) scale(.3); }
  18% { opacity: 1; transform: translateY(0) scale(.75, .8); }
  48% { opacity: 1; transform: translateY(1px) scale(.95, 1.25); }
  74% { opacity: 1; transform: translateY(30px) scale(.8, 1.15); }
  77%, 100% { opacity: 0; transform: translateY(33px) scale(.5); }
}

.st-fx__splash {
  position: absolute;
  top: calc(100% + 31px);
  left: var(--st-x);
  width: 20px;
  height: 6px;
  margin-left: -10px;
  border: 2px solid rgba(216, 241, 255, .9);
  border-radius: 50%;
  opacity: 0;
}

.st-fx.st-decor__layer .st-fx__splash {
  animation: st-fx-splash 2.8s ease-out infinite;
}

@keyframes st-fx-splash {
  0%, 75% { opacity: 0; transform: scale(.3); }
  79% { opacity: .9; transform: scale(.7); }
  100% { opacity: 0; transform: scale(1.7); }
}

.st-fx__puddle {
  position: absolute;
  top: calc(100% + 27px);
  right: 8%;
  left: 12%;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 55% 45%, rgba(255, 255, 255, .7), rgba(143, 208, 245, .55) 30%, rgba(95, 179, 230, .3) 58%, rgba(95, 179, 230, 0) 72%);
}

.st-fx.st-decor__layer .st-fx__puddle {
  animation: st-fx-puddle 2.8s ease-in-out infinite;
}

@keyframes st-fx-puddle {
  0%, 100% { opacity: .8; transform: scaleX(.94); }
  50% { opacity: 1; transform: scaleX(1.04); }
}

/* Room above and beside the turned cards and their flames. */
.st-rail--gold {
  gap: 22px;
  padding: 36px 22px 22px;
}

.st-fr1 {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 36px 22px 0;
}

.st-fr1__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.st-fr1__title {
  margin: 0;
  color: #fff3cf;
  font-family: var(--st-hand);
  font-size: 32px;
  font-weight: 700;
  line-height: .95;
  text-shadow: 0 0 4px #ffffff, 0 0 12px #f2c86a, 0 0 24px #e5b75c;
}

.st-fr1__hook {
  margin: 0;
  color: #fff3f8;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.38;
}

.st-fr1__text .st-go { margin-top: 4px; }

/* A touch on the picture of a story plays it. */
.is-touchable {
  cursor: pointer;
}

/* What the Pass opens, under it all, for a couple without it. */
.st-mag__pass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 44px 16px 0;
  padding: 22px 18px;
  border-radius: 24px;
  background: rgba(251, 248, 239, .14);
  box-shadow: inset 0 0 0 1.5px rgba(251, 248, 239, .35);
  text-align: center;
}

.st-mag__pass[hidden] { display: none; }

.st-mag__pass p {
  margin: 0;
  color: #fff3f8;
  font-family: var(--st-hand);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
}

.st-mag__go {
  height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: #fbf8ef;
  color: #c4285b;
  font-size: 15.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(165, 12, 58, .45);
}

@media (prefers-reduced-motion: reduce) {
  .st-fog,
  .st-fog__names {
    opacity: 1;
    animation: none !important;
  }

  .st-fog__heart,
  .st-fog__drip {
    stroke-dashoffset: 0;
    animation: none !important;
  }

  .st-hero__line,
  .st-go--big,
  .st-mag__sep .st-mag__heart,
  .st-gold__flame svg,
  .st-decor__layer .st-fog__charm,
  .st-decor__layer .st-steam,
  .st-decor__layer .st-steam-heart,
  .st-decor__layer .st-flake {
    animation: none !important;
  }

  .st-gold__flame i,
  .st-fx {
    display: none;
  }

  .st-blaze__f,
  .st-blaze::before {
    animation: none !important;
  }

  .st-rate-card,
  .st-gold {
    transition: none;
  }
}
