/* L'onglet Défis (docs/DEFIS.md, the mockup v6 validated on 2026-11-30; template/espace/defis.php,
   static/js/espace/defis.js): Action ou Vérité as a thermostat, its ambiences and its flames, the flat dice played here,
   and the other packs of cards as little scenes. In the theme of the space (espace.css: the band, the tab bar, the
   names line, the ticket of the Pass); everything here is prefixed df-. */

.lc-defis__waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: max(100%, 1180px);
}

.lc-defis__shell {
  position: relative;
  flex: 1;
  width: min(430px, calc(100% - 32px));
  margin: 0 auto;
  padding: calc(34px + env(safe-area-inset-top, 0px)) 0 26px;
}

.lc-defis__shell .lc-us__title {
  margin-bottom: 0;
  padding-left: 4px;
}

.lc-defis .esp-album__since {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 19px;
  margin: 8px 0 0;
  padding-left: 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.lc-defis .esp-album__since svg {
  flex: none;
  color: var(--lc-blush);
}

/* ---- The small labels, as in the space: NOUVEAU in pale gold, OFFERTE in coral, the heat in cream ---- */
.df-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  padding: 0 9px;
  border-radius: 12px;
  box-shadow: 0 3px 0 rgba(40, 6, 30, .22);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.df-pill--free {
  background: #fe5759;
  color: #ffffff;
}

.df-pill--heat {
  background: var(--lc-cream);
  color: var(--lc-rose);
}

.df-pill--new {
  background: #ffe08a;
  color: #3b1438;
}

/* ---- The spotlight: Action ou Vérité and its thermostat ---- */
.df-thermo-wrap {
  position: relative;
  margin-top: 30px;
}

.df-thermo {
  position: relative;
  height: 476px;
  overflow: hidden;
  border-radius: 30px;
  isolation: isolate;
  box-shadow: 0 7px 0 rgba(74, 14, 46, .38), 0 22px 34px -18px rgba(40, 6, 30, .75);
  color: #ffffff;
}

.df-thermo__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0;
  transition: opacity .7s ease;
}

.df-thermo__bg.is-on {
  opacity: 1;
}

.df-bg--douce {
  background: radial-gradient(70% 60% at 80% 18%, #ffffff 0%, rgba(255, 255, 255, 0) 70%), radial-gradient(60% 50% at 10% 95%, #ff9cc2 0%, rgba(255, 156, 194, 0) 70%), linear-gradient(165deg, #ffe4ee 0%, #ffc6da 55%, #ffa8c8 100%);
}

.df-bg--romantique {
  background: radial-gradient(70% 60% at 80% 18%, #ffb3cf 0%, rgba(255, 179, 207, 0) 70%), radial-gradient(60% 50% at 15% 95%, #7c0a33 0%, rgba(124, 10, 51, 0) 70%), linear-gradient(165deg, #d43a6c 0%, #b0103f 55%, #6a0a2e 100%);
}

.df-bg--coquine {
  background: radial-gradient(70% 60% at 85% 15%, #ff8ab4 0%, rgba(255, 138, 180, 0) 70%), radial-gradient(60% 50% at 10% 95%, #a3115a 0%, rgba(163, 17, 90, 0) 70%), linear-gradient(165deg, #e0337a 0%, #b51a62 55%, #7a1350 100%);
}

.df-bg--brulant {
  background: radial-gradient(70% 60% at 78% 92%, #ffa24a 0%, rgba(255, 162, 74, 0) 70%), radial-gradient(60% 55% at 12% 8%, #e0337a 0%, rgba(224, 51, 122, 0) 70%), linear-gradient(160deg, #b0103f 0%, #7c0a33 55%, #4a0626 100%);
}

/* A light that crosses the card now and then; at Brûlant, a golden edge and its warmth. */
.df-thermo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, 0) 60%) 0 0 / 260% 100% no-repeat;
  animation: df-sheen 7s ease-in-out infinite;
}

.df-thermo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2.5px #ffcf7a, inset 0 0 26px rgba(255, 140, 50, .55);
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}

.df-thermo.is-burn::after {
  opacity: 1;
}

@keyframes df-sheen {
  0%, 70% { background-position: 130% 0; }
  100% { background-position: -30% 0; }
}

.df-thermo__top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.df-thermo__kick {
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color .5s ease;
}

.df-thermo__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.df-thermo__lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lc-cream);
  box-shadow: 0 3px 0 rgba(40, 6, 30, .25);
  color: var(--lc-plum);
  transition: transform .35s cubic-bezier(.2, 1.6, .4, 1), opacity .25s ease;
}

.df-thermo__lock.is-off {
  opacity: 0;
  transform: scale(.4);
}

.df-thermo__stage {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  height: 172px;
}

.df-thermo__obj {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 158px;
  height: 158px;
  margin-left: -79px;
  opacity: 0;
  filter: drop-shadow(0 18px 18px rgba(40, 6, 30, .35));
  transform: scale(.55) rotate(-14deg);
  transition: opacity .35s ease, transform .6s cubic-bezier(.2, 1.5, .4, 1);
}

.df-thermo__obj.is-on {
  opacity: 1;
  transform: none;
  animation: df-bob 4.6s ease-in-out .6s infinite;
}

@keyframes df-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.df-thermo__words {
  position: absolute;
  left: 0;
  right: 0;
  top: 214px;
  z-index: 1;
  padding: 0 20px;
  text-align: center;
}

.df-thermo__name {
  display: block;
  margin: 0;
  font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  font-size: 58px;
  font-weight: 700;
  line-height: .9;
  /* On one line: static/js/espace/defis.js makes a long name a little smaller (fit). */
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(40, 6, 30, .35);
  transition: color .5s ease;
}

.df-thermo__name.is-in {
  animation: df-name-in .5s cubic-bezier(.2, 1.4, .4, 1) both;
}

@keyframes df-name-in {
  from { opacity: 0; transform: translateY(12px) scale(.94); }
  to { opacity: 1; transform: none; }
}

.df-thermo__line {
  min-height: 20px;
  margin: 6px 0 0;
  color: #fff4f8;
  font-size: 14.5px;
  font-weight: 800;
  transition: color .5s ease;
}

.df-thermo__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 132px;
  height: 48px;
  margin-top: 14px;
  padding: 0 28px;
  border-radius: 24px;
  background: var(--lc-cream);
  box-shadow: 0 5px 0 rgba(40, 6, 30, .35);
  color: var(--lc-raspberry);
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
}

.df-thermo__go:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgba(40, 6, 30, .35);
}

.df-thermo__golock {
  display: inline-flex;
}

.df-thermo__golock[hidden] {
  display: none;
}

/* Douce, on its pale pink: the words in plum and framboise, its button framboise. */
.df-thermo.is-soft .df-thermo__kick,
.df-thermo.is-soft .df-thermo__line,
.df-thermo.is-soft .df-dial__hint {
  color: var(--lc-plum);
}

.df-thermo.is-soft .df-thermo__name {
  color: var(--lc-rose);
  text-shadow: none;
}

.df-thermo.is-soft .df-thermo__go {
  background: var(--lc-rose);
  box-shadow: 0 5px 0 #8d1b45;
  color: #ffffff;
}

/* The thermostat itself: a slider, the names of the levels under it. */
.df-dial {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
}

.df-dial__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .04em;
  opacity: .92;
  transition: color .5s ease;
}

.df-dial__track {
  position: relative;
  height: 34px;
}

.df-dial__rail,
.df-dial__fill {
  position: absolute;
  top: 14px;
  left: 0;
  height: 6px;
  border-radius: 3px;
}

.df-dial__rail {
  right: 0;
  background: rgba(255, 255, 255, .35);
}

.df-thermo.is-soft .df-dial__rail {
  background: rgba(112, 42, 113, .18);
}

.df-dial__fill {
  width: var(--fill, 0%);
  background: linear-gradient(90deg, #ff9cc2, #ff5a8a, #ff7a3d, #ffc65c);
  transition: width .45s cubic-bezier(.2, 1, .3, 1);
}

.df-dial input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 34px;
  margin: 0;
  background: none;
  cursor: grab;
  -webkit-appearance: none;
  appearance: none;
}

.df-dial input::-webkit-slider-runnable-track {
  height: 34px;
  background: none;
}

.df-dial input::-moz-range-track {
  height: 34px;
  background: none;
}

.df-dial input::-webkit-slider-thumb {
  width: 34px;
  height: 34px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 18%, #ff8ab4 20%, #e0245e 70%, #a50c3a 100%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .25), 0 4px 10px rgba(40, 6, 30, .45);
  -webkit-appearance: none;
}

.df-dial input::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 18%, #ff8ab4 20%, #e0245e 70%, #a50c3a 100%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .25), 0 4px 10px rgba(40, 6, 30, .45);
}

.df-dial input:focus-visible {
  outline: none;
}

.df-dial input:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px var(--lc-blush), 0 4px 10px rgba(40, 6, 30, .45);
}

.df-dial__stops {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
}

.df-dial__stops button {
  padding: 4px 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .7);
  font: inherit;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
  transition: color .3s ease;
}

.df-dial__stops button.is-on {
  color: #ffffff;
}

.df-thermo.is-soft .df-dial__stops button {
  color: rgba(112, 42, 113, .55);
}

.df-thermo.is-soft .df-dial__stops button.is-on {
  color: var(--lc-rose);
}

.df-dial__stops button:focus {
  outline: none;
}

.df-dial__stops button:focus-visible {
  border-radius: 6px;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* A nudge of the knob once, so that one sees it moves. */
.df-dial.is-nudge input {
  animation: df-nudge 1.4s ease-in-out 2;
}

@keyframes df-nudge {
  0%, 100% { transform: translateX(0); }
  40% { transform: translateX(14px); }
  60% { transform: translateX(10px); }
}

/* ---- The ambience of each level; only the lit one moves ---- */
.df-amb {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}

.df-amb.is-on {
  opacity: 1;
}

.df-amb:not(.is-on) i,
.df-amb:not(.is-on) b,
.df-amb:not(.is-on)::before {
  animation-play-state: paused !important;
}

.df-amb svg {
  display: block;
}

/* Douce: hearts that rise. */
.df-rise {
  position: absolute;
  bottom: -20px;
  opacity: 0;
  animation: df-rise linear infinite;
}

@keyframes df-rise {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-300px); }
}

/* Romantique: champagne bubbles, rose petals, slow twinkles. */
.df-bub {
  position: absolute;
  bottom: -18px;
  opacity: 0;
  animation: df-bubble linear infinite;
}

.df-bub b {
  display: block;
  width: var(--s, 10px);
  height: var(--s, 10px);
  border: 1.5px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95) 0 15%, rgba(255, 255, 255, .2) 32%, rgba(255, 233, 180, .12) 100%);
  animation: df-wobble 1.8s ease-in-out infinite alternate;
}

@keyframes df-bubble {
  0% { opacity: 0; transform: translateY(0); }
  12% { opacity: .95; }
  80% { opacity: .85; }
  100% { opacity: 0; transform: translateY(-480px); }
}

@keyframes df-wobble {
  from { transform: translateX(-5px); }
  to { transform: translateX(5px); }
}

.df-pet {
  position: absolute;
  top: -26px;
  opacity: 0;
  animation: df-petal linear infinite;
}

.df-pet b {
  display: block;
  animation: df-petal-sway 2.6s ease-in-out infinite alternate;
}

@keyframes df-petal {
  0% { opacity: 0; transform: translateY(0); }
  10% { opacity: .95; }
  85% { opacity: .9; }
  100% { opacity: 0; transform: translateY(520px); }
}

@keyframes df-petal-sway {
  from { transform: translateX(-12px) rotate(-25deg); }
  to { transform: translateX(12px) rotate(35deg); }
}

.df-spk {
  position: absolute;
  width: var(--s, 12px);
  height: var(--s, 12px);
  opacity: 0;
  animation: df-twinkle 3.6s ease-in-out infinite;
}

.df-spk svg {
  width: 100%;
  height: 100%;
}

@keyframes df-twinkle {
  0%, 100% { opacity: .1; transform: scale(.45) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}

/* Coquine: kisses pressed onto the card, hearts that rise. */
.df-kiss {
  position: absolute;
  width: 46px;
  height: 46px;
  opacity: 0;
  animation: df-kiss 6.4s ease-out infinite;
}

@keyframes df-kiss {
  0% { opacity: 0; transform: rotate(var(--r, 0deg)) scale(1.4); }
  5% { opacity: .92; transform: rotate(var(--r, 0deg)) scale(.95); }
  8% { transform: rotate(var(--r, 0deg)) scale(1); }
  38% { opacity: .85; }
  56%, 100% { opacity: 0; transform: rotate(var(--r, 0deg)) scale(1); }
}

.df-hrt {
  position: absolute;
  bottom: -20px;
  opacity: 0;
  animation: df-heart linear infinite;
}

.df-hrt b {
  display: block;
  animation: df-wobble 1.6s ease-in-out infinite alternate;
}

@keyframes df-heart {
  0% { opacity: 0; transform: translateY(0) scale(.8); }
  15% { opacity: .95; }
  100% { opacity: 0; transform: translateY(-380px) scale(1.1); }
}

/* Brûlant: embers, a breathing heat, and the flames around the card. */
.df-amb--brulant::before {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -40px;
  height: 260px;
  background: radial-gradient(50% 55% at 50% 100%, rgba(255, 150, 60, .6), rgba(255, 150, 60, 0));
  transform-origin: 50% 100%;
  animation: df-heat 3.4s ease-in-out infinite;
}

@keyframes df-heat {
  0%, 100% { opacity: .65; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.14); }
}

.df-emb {
  position: absolute;
  bottom: -10px;
  width: var(--s, 5px);
  height: var(--s, 5px);
  border-radius: 50%;
  background: #ffd27a;
  box-shadow: 0 0 8px 3px rgba(255, 150, 50, .75);
  opacity: 0;
  animation: df-ember linear infinite;
}

@keyframes df-ember {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  12% { opacity: 1; }
  70% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--dx, 10px), -360px) scale(.4); }
}

/* At Brûlant the card burns as a light, not as drawings (his remark of 2026-11-30, « plus premium, plus immersif »): a
   warm halo breathing behind it, a light of fire running round its edge, sparks leaving its top into the band. */
@property --df-turn {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.df-thermo-wrap {
  isolation: isolate;
}

.df-halo,
.df-ring,
.df-sparks {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity .7s ease;
}

.df-halo {
  inset: -7px;
  z-index: -1;
  border-radius: 36px;
  background: conic-gradient(from 210deg, #ff5a3d, #ffb347, #ffd98a, #ff7a3d, #e0245e, #ff5a3d);
  filter: blur(22px);
  animation: df-halo 3.4s ease-in-out infinite;
}

@keyframes df-halo {
  0%, 100% { transform: scale(.97); }
  50% { transform: scale(1.02); }
}

.df-ring {
  inset: -2px;
  z-index: 2;
  padding: 3px;
  border-radius: 32px;
  background: conic-gradient(from var(--df-turn), rgba(255, 122, 61, 0) 0deg, #ffd98a 34deg, #ff7a3d 76deg, rgba(255, 90, 61, 0) 132deg, rgba(255, 90, 61, 0) 180deg, #ffd98a 214deg, #ff7a3d 256deg, rgba(255, 90, 61, 0) 312deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: df-turn 4.6s linear infinite;
}

@keyframes df-turn {
  to { --df-turn: 360deg; }
}

.df-sparks {
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 0;
}

.df-sparks i {
  position: absolute;
  top: 0;
  width: var(--s, 3px);
  height: var(--s, 3px);
  border-radius: 50%;
  background: #ffe6a8;
  box-shadow: 0 0 6px 2px rgba(255, 150, 60, .8);
  opacity: 0;
  animation: df-spark var(--t, 2.2s) ease-out var(--d, 0s) infinite;
}

@keyframes df-spark {
  0% { opacity: 0; transform: translate(0, 6px) scale(1); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 6px), -72px) scale(.3); }
}

.df-thermo-wrap.is-burn .df-halo {
  opacity: .9;
}

.df-thermo-wrap.is-burn .df-ring,
.df-thermo-wrap.is-burn .df-sparks {
  opacity: 1;
}

.df-thermo-wrap:not(.is-burn) .df-halo,
.df-thermo-wrap:not(.is-burn) .df-ring,
.df-thermo-wrap:not(.is-burn) .df-sparks i {
  animation-play-state: paused;
}

/* The flame of Brûlant glows warm. */
.df-thermo.is-burn .df-thermo__obj.is-on {
  filter: drop-shadow(0 0 22px rgba(255, 150, 60, .55)) drop-shadow(0 18px 18px rgba(40, 6, 30, .35));
}

/* ---- The dice, flat and lively ---- */
.df-dice {
  position: relative;
  margin-top: 16px;
  scroll-margin-top: 20px;
  padding: 18px 16px;
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(120% 80% at 50% 0%, #c4285b 0%, #8d1b45 55%, #5a0f33 100%);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7), inset 0 0 0 1.5px rgba(255, 200, 225, .3);
}

.df-dice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .08) 0 2px, transparent 3px) 0 0 / 22px 22px;
  pointer-events: none;
}

.df-dice__title,
.df-sec__title {
  font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(255, 255, 255, .9), 0 0 14px #f460b7, 0 0 28px #f460b7;
}

.df-dice__title {
  position: relative;
  margin: 0;
  color: #ffffff;
  font-size: 38px;
  line-height: .95;
}

/* The chips of the dice: the lock a little cream round on their corner, as the locks of the lobby. */
.df-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 5px;
  margin-top: 12px;
}

.df-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 clamp(7px, calc((100vw - 300px) / 9), 10px);
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 16px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: clamp(12px, 3.2vw, 12.5px);
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.df-chip.is-on {
  border-color: var(--lc-cream);
  background: var(--lc-cream);
  color: var(--lc-raspberry);
}

.df-chip__lock {
  position: absolute;
  top: -7px;
  right: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--lc-cream);
  box-shadow: 0 2px 0 rgba(40, 6, 30, .3);
  color: var(--lc-plum);
}

.df-chip__lock[hidden] {
  display: none;
}

.df-chip:focus {
  outline: none;
}

.df-chip:focus-visible,
.df-table:focus-visible,
.df-roll:focus-visible,
.df-tile:focus-visible,
.df-thermo__go:focus-visible {
  outline: 3px solid var(--lc-blush);
  outline-offset: 3px;
}

.df-table {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 26px;
  height: 156px;
  margin-top: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.df-table:focus {
  outline: none;
}

.df-die {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 28px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.df-die--a {
  background: linear-gradient(150deg, #ffffff 0%, var(--lc-cream) 55%, #efdfd0 100%);
  box-shadow: inset 0 -7px 0 rgba(112, 42, 113, .14), 0 10px 0 rgba(60, 8, 35, .35);
  color: var(--lc-plum);
  animation: df-idle-a 3.2s ease-in-out infinite;
}

.df-die--b {
  background: linear-gradient(150deg, #ff8ab4 0%, var(--lc-rose) 55%, var(--lc-raspberry) 100%);
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .18), 0 10px 0 rgba(60, 8, 35, .35);
  color: #ffffff;
  animation: df-idle-b 3.6s ease-in-out infinite;
}

/* The third die of Brûlant, the die of how: prune. */
.df-die--c {
  display: none;
  background: linear-gradient(150deg, #b07ad8 0%, var(--lc-plum) 55%, #4a1660 100%);
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .2), 0 10px 0 rgba(40, 8, 35, .35);
  color: #ffffff;
  animation: df-idle-a 3.4s ease-in-out infinite;
}

.df-dice.is-three .df-die--c {
  display: flex;
}

/* The die of objects of « Avec accessoire »: gold, apart from the prune die of how of Brûlant. */
.df-dice[data-level="accessoire"] .df-die--c {
  background: linear-gradient(150deg, #fff1c2 0%, #ffd98a 55%, #f2b84b 100%);
  box-shadow: inset 0 -7px 0 rgba(112, 42, 113, .16), 0 10px 0 rgba(40, 8, 35, .35);
  color: var(--lc-plum);
}

.df-dice.is-three .df-table {
  gap: 12px;
}

.df-dice.is-three .df-die {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  font-size: 16.5px;
}

.df-dice.is-three .df-shadow {
  display: none;
}

@keyframes df-idle-a {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-6px); }
}

@keyframes df-idle-b {
  0%, 100% { transform: rotate(7deg) translateY(-4px); }
  50% { transform: rotate(3deg) translateY(2px); }
}

.df-die__word {
  display: block;
  padding: 0 10px;
}

.df-die__word.is-long {
  font-size: .84em;
}

.df-die__pips {
  position: absolute;
  right: 12px;
  bottom: 11px;
  display: flex;
  gap: 3px;
  opacity: .4;
}

.df-die__pips i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.df-die.is-roll {
  animation: df-toss .9s cubic-bezier(.3, .7, .35, 1) both;
}

.df-die--b.is-roll {
  animation: df-toss-b 1s cubic-bezier(.3, .7, .35, 1) both;
}

.df-die--c.is-roll {
  animation: df-toss .95s cubic-bezier(.3, .7, .35, 1) both;
}

@keyframes df-toss {
  0% { transform: rotate(-6deg); }
  12% { transform: rotate(8deg) scale(1.05); }
  40% { transform: translateY(-74px) rotate(200deg) scale(1.08); }
  66% { transform: translateY(0) rotate(352deg) scale(1.18, .82); }
  78% { transform: translateY(-14px) rotate(358deg) scale(.96, 1.06); }
  100% { transform: translateY(0) rotate(354deg); }
}

@keyframes df-toss-b {
  0% { transform: rotate(7deg); }
  14% { transform: rotate(-8deg) scale(1.05); }
  42% { transform: translateY(-84px) rotate(-210deg) scale(1.08); }
  68% { transform: translateY(0) rotate(-354deg) scale(1.18, .82); }
  80% { transform: translateY(-12px) rotate(-360deg) scale(.96, 1.06); }
  100% { transform: translateY(0) rotate(-353deg); }
}

.df-die__word.is-spin {
  animation: df-spin .09s linear infinite;
}

@keyframes df-spin {
  from { opacity: .3; transform: translateY(-40%); }
  to { opacity: .3; transform: translateY(40%); }
}

.df-die__word.is-pop {
  animation: df-pop .45s cubic-bezier(.2, 1.6, .4, 1) both;
}

@keyframes df-pop {
  from { transform: scale(.6); }
  to { transform: scale(1); }
}

.df-shadow {
  position: absolute;
  bottom: 4px;
  width: 100px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30, 4, 20, .55), rgba(30, 4, 20, 0));
}

.df-shadow--a {
  left: calc(50% - 132px);
}

.df-shadow--b {
  left: calc(50% + 32px);
}

.df-burst {
  position: absolute;
  left: 50%;
  top: 70px;
  width: 0;
  height: 0;
  pointer-events: none;
}

.df-burst i {
  position: absolute;
  left: 0;
  top: 0;
  animation: df-fly .9s cubic-bezier(.15, .7, .3, 1) both;
}

@keyframes df-fly {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1); }
}

.df-said {
  position: relative;
  min-height: 34px;
  margin: 6px 0 0;
  color: #ffe29a;
  font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.df-said em,
.df-turn em {
  font-style: normal;
}

.df-turn {
  position: relative;
  min-height: 18px;
  margin: 2px 0 0;
  color: var(--lc-blush);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.df-roll {
  position: relative;
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 12px;
  border: 0;
  border-radius: 26px;
  background: var(--lc-cream);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .35);
  color: var(--lc-raspberry);
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .2s ease;
}

.df-roll:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}

.df-roll:disabled {
  opacity: .6;
  cursor: default;
}

/* ---- The sections, titled as in the lobby of the stories: a pale gold kicker, a neon title ---- */
.df-sec {
  margin: 32px 0 0;
  padding: 0 4px;
}

.df-sec__kick {
  margin: 0;
  color: #ffd98a;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.df-sec__title {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 38px;
  line-height: 1;
}

/* ---- The tiles: little scenes drawn flat, as the cards of the space ---- */
.df-three,
.df-two {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.df-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

/* Out of the season of Noël à deux, Vos cartes alone on its row. */
.df-two--one {
  grid-template-columns: minmax(0, 1fr);
}

.df-tile {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 0 rgba(62, 10, 52, .5), 0 18px 26px -16px rgba(40, 6, 30, .7);
  color: #ffffff;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.2, 1.4, .4, 1);
  -webkit-tap-highlight-color: transparent;
}

.df-tile:active {
  transform: scale(.97);
}

.df-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, 0) 60%) 0 0 / 260% 100% no-repeat;
  animation: df-sheen 7s ease-in-out infinite;
}

.df-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px rgba(255, 214, 236, .24);
  pointer-events: none;
}

.df-tile__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.df-tile__shade {
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: 58%;
  background: linear-gradient(180deg, rgba(42, 8, 50, 0), rgba(42, 8, 50, .62));
}

.df-tile .df-pill {
  position: absolute;
  top: 12px;
  left: 12px;
}

.df-tile__lock {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lc-cream);
  box-shadow: 0 3px 0 rgba(40, 6, 30, .25);
  color: var(--lc-plum);
}

.df-tile__lock[hidden] {
  display: none;
}

.df-tile__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 14px 14px;
}

.df-tile__name {
  display: block;
  font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  font-weight: 700;
  line-height: .9;
  text-shadow: 0 2px 8px rgba(40, 6, 30, .5), 0 0 12px rgba(244, 96, 183, .55);
}

.df-tile__line {
  display: block;
  margin-top: 4px;
  color: #fff4f8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

/* Three small: the name on one line, sized by the tile; the label short enough to leave the lock its room. */
.df-three .df-tile {
  height: 168px;
  border-radius: 24px;
  container-type: inline-size;
}

.df-three .df-tile__body {
  padding: 0 8px 11px;
}

.df-three .df-tile__name {
  font-size: min(27px, 22.5cqi);
  white-space: nowrap;
}

.df-three .df-pill {
  top: min(9px, 7cqi);
  left: min(9px, 7cqi);
  height: 21px;
  padding: 0 min(6px, 5cqi);
  font-size: min(9.5px, 8.8cqi);
  letter-spacing: .03em;
}

.df-three .df-tile__lock {
  top: min(9px, 7cqi);
  right: min(9px, 7cqi);
  width: min(26px, 23cqi);
  height: min(26px, 23cqi);
}

.df-two .df-tile {
  height: 200px;
  border-radius: 26px;
}

.df-two .df-tile__name {
  font-size: 31px;
  white-space: nowrap;
}

/* ---- What moves in the scenes ---- */
.df-sc-tw {
  transform-box: fill-box;
  transform-origin: center;
  animation: df-sc-tw 3.2s ease-in-out infinite;
}

@keyframes df-sc-tw {
  0%, 100% { opacity: .35; transform: scale(.6); }
  50% { opacity: 1; transform: scale(1); }
}

.df-sc-bulb {
  animation: df-sc-bulb 2.4s ease-in-out infinite;
}

@keyframes df-sc-bulb {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

.df-sc-beam,
.df-sc-glow {
  animation: df-sc-beam 4.6s ease-in-out infinite;
}

@keyframes df-sc-beam {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}

.df-sc-sway {
  transform-box: fill-box;
  transform-origin: 50% 40%;
  animation: df-sc-sway 5.2s ease-in-out infinite;
}

@keyframes df-sc-sway {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-5px); }
}

.df-sc-rays {
  transform-box: view-box;
  transform-origin: 57px 80px;
  animation: df-sc-spin 40s linear infinite;
}

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

.df-sc-hop {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: df-sc-hop 1.4s ease-in-out infinite;
}

.df-sc-hop2 {
  animation-delay: -.7s;
}

@keyframes df-sc-hop {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-5px) rotate(-3deg); }
  60% { transform: translateY(0) rotate(2deg); }
}

.df-sc-ha {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: df-sc-ha 3.4s ease-out infinite;
}

@keyframes df-sc-ha {
  0% { opacity: 0; transform: translateY(6px) scale(.7); }
  20% { opacity: 1; transform: translateY(0) scale(1); }
  70% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-12px) scale(1.05); }
}

.df-sc-swing {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: df-sc-swing 4.6s ease-in-out infinite;
}

@keyframes df-sc-swing {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.df-sc-snow {
  opacity: .85;
  animation: df-sc-snow linear infinite;
}

@keyframes df-sc-snow {
  from { transform: translate(0, 0); }
  to { transform: translate(-12px, 214px); }
}

.df-sc-smoke {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: df-sc-smoke 4.2s ease-out infinite;
}

@keyframes df-sc-smoke {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  20% { opacity: .9; }
  100% { opacity: 0; transform: translate(-7px, -34px) scale(1.7); }
}

.df-sc-star {
  transform-box: fill-box;
  transform-origin: center;
  animation: df-sc-star 3s ease-in-out infinite;
}

@keyframes df-sc-star {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

.df-sc-pen {
  animation: df-sc-pen 5s ease-in-out infinite;
}

@keyframes df-sc-pen {
  0% { transform: translate(-18px, -8px); }
  30% { transform: translate(19px, -9px); }
  34% { transform: translate(-18px, 4px); }
  62% { transform: translate(9px, 5px); }
  80% { transform: translate(18px, 18px); }
  100% { transform: translate(-18px, -8px); }
}

.df-sc-write,
.df-sc-write2 {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.df-sc-write {
  animation: df-sc-write 5s linear infinite;
}

.df-sc-write2 {
  animation: df-sc-write2 5s linear infinite;
}

@keyframes df-sc-write {
  0% { opacity: 1; stroke-dashoffset: 1; }
  30% { stroke-dashoffset: 0; }
  88% { opacity: 1; stroke-dashoffset: 0; }
  96%, 100% { opacity: 0; stroke-dashoffset: 0; }
}

@keyframes df-sc-write2 {
  0%, 34% { opacity: 1; stroke-dashoffset: 1; }
  62% { stroke-dashoffset: 0; }
  88% { opacity: 1; stroke-dashoffset: 0; }
  96%, 100% { opacity: 0; stroke-dashoffset: 0; }
}

.df-sc-d2 {
  animation-delay: -1.1s;
}

.df-sc-d3 {
  animation-delay: -2.2s;
}

/* Less motion asked for: the scenes and the card stand still, the ambiences and the flames go; the level changes all
   the same, and the dice land at once. */
@media (prefers-reduced-motion: reduce) {
  .df-amb,
  .df-sparks,
  .df-burst {
    display: none;
  }

  .df-halo,
  .df-ring {
    animation: none !important;
  }

  .df-thermo::before,
  .df-tile::before,
  .df-thermo__obj.is-on,
  .df-die,
  .df-dial.is-nudge input,
  .df-tile *,
  .df-thermo__name.is-in {
    animation: none !important;
  }

  .df-sc-write,
  .df-sc-write2 {
    stroke-dashoffset: 0;
  }

  .df-sc-ha {
    opacity: .9;
  }

  .df-sc-smoke,
  .df-sc-snow {
    display: none;
  }
}
