/* ==========================================================================
   L'Avent à deux in the space (template/espace/avent.php, docs/CALENDRIER_AVENT.md, lot 3): the stage of the calendar's
   Google page (css/calendrier-avent.css: the chalet, the dock, the card that opens in full) in a page of its own, as
   high as the screen, under the bar of the games; what changes here: the race that moves on with the cases opened, the
   states of the panes (opened: the glass goes and the room shows; tonight's glows; forgotten: dark, with a padlock),
   and the face of the card for each kind of case (the board « Les 24 cases »).
   ========================================================================== */

.lc-avent {
  min-height: 100vh;
  min-height: 100svh;
  background: #4e1a5c;
}

.lc-avent .avt-stage--space {
  min-height: 100vh;
  min-height: 100svh;
}

/* While a case is open, the page under it stays still. */
html.avt-lock,
html.avt-lock body {
  overflow: hidden;
}

/* The bar of the games on top (its shell is as high as the screen in the other games: not here, the chalet follows). */
.lc-avent .avt-space__top {
  position: relative;
  z-index: 3;
  gap: 0;
  width: 100%;
  max-width: 560px;
  min-height: 0;
  margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 0;
}

.lc-avent .avt-head--space {
  padding-top: 4px;
}

/* The race of the month: the two pawns move on together, case after case, towards the gift. */
.lc-avent .avt-course__done {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--p, 0) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe29a, #fe5759);
  transition: width .8s cubic-bezier(.2, .8, .2, 1);
}

.lc-avent .avt-course__pawn--one,
.lc-avent .avt-course__pawn--two {
  transition: left .8s cubic-bezier(.2, .8, .2, 1);
}

.lc-avent .avt-course__pawn--one {
  left: calc(var(--p, 0) * (100% - 48px));
}

.lc-avent .avt-course__pawn--two {
  left: calc(var(--p, 0) * (100% - 48px) + 14px);
}

/* The panes. Opened: the glass goes and the room of the couple shows through (the validated chalet). Tonight's glows
   as the first one of the Google page (avt-pane--first, set by the script). Forgotten: the glass dark, its number dim,
   a small padlock. To come: plum, as on the Google page. The glass fades only once the chalet is drawn (is-live): the
   panes opened before come as they are. */
.lc-avent .avt-chalet.is-live .avt-pane polygon,
.lc-avent .avt-chalet.is-live .avt-pane text {
  transition: opacity .9s ease;
}

.lc-avent .avt-pane.is-opened polygon,
.lc-avent .avt-pane.is-opened text {
  opacity: 0;
}

.lc-avent .avt-pane.is-missed polygon {
  fill: #3f1449;
}

.lc-avent .avt-pane.is-missed text {
  fill: rgba(251, 248, 239, .5);
}

.avt-pane__lock {
  fill: rgba(251, 248, 239, .78);
  pointer-events: none;
}

.lc-avent .avt-pane.is-landing {
  animation: avtBounce .6s ease-out 1;
}

/* The chalet takes the height left between the bar and the dock, so that the page holds on one screen: drawn from its
   foot (xMidYMax), its snow on the dock. */
.lc-avent .avt-scene {
  flex: 1 1 auto;
  height: auto;
  min-height: 300px;
  margin-top: 0;
}

.lc-avent .avt-scene .avt-chalet {
  position: absolute;
  inset: 0;
}

/* The dock of the space: under the chalet, at the foot of the screen. */
.lc-avent .avt-dock--space {
  margin-top: -6px;
}

.lc-avent .avt-dock--space .avt-btn {
  margin-top: 10px;
}

/* Once tonight's case is opened, its button only shows it again. */
.lc-avent .avt-dock--space .avt-btn.is-soft {
  background: rgba(112, 42, 113, .1);
  box-shadow: none;
  color: var(--avt-mauve);
}

/* Before the 1st, the days left (a touch plays the fanfare) and the reminder under them. */
.lc-avent .avt-dock--space .avt-remind {
  margin-top: 4px;
  min-height: 40px;
}

/* ---- The face of the card ---- */
.lc-avent .avt-card--front {
  padding: 58px 18px 10px;
}

/* Its pill (the kind and the day) a little tighter than on the Google page, so that the longest ones hold on one line
   on a phone of 360 px (« Questions de fond · 23 décembre », « Would You Rather · December 18 »). */
.lc-avent .avt-layer .avt-pill {
  max-width: 100%;
  padding: 7px 12px;
  overflow: hidden;
  letter-spacing: .1em;
}

.avt-card__token {
  position: absolute;
  left: 50%;
  top: -50px;
  width: 88px;
  height: 97px;
  margin-left: -44px;
  pointer-events: none;
}

.avt-card__token svg {
  display: block;
}

/* What the case says and asks: scrolled within the card when the screen is short, the token, the pill and the buttons
   staying in place. */
.avt-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.avt-card__body::-webkit-scrollbar {
  display: none;
}

.lc-avent .avt-card__title {
  flex: none;
  margin: 14px 0 0;
  font-size: 23px;
  line-height: 1.12;
}

.lc-avent .avt-card__title.is-question {
  font-size: 20px;
  line-height: 1.22;
}

.lc-avent .avt-card__title.is-deep {
  margin-top: 4px;
  font-size: 21px;
  line-height: 1.25;
}

.lc-avent .avt-card__title span {
  color: var(--avt-rose);
}

.avt-card__play {
  flex: none;
  width: 100%;
  margin-top: 12px;
}

.avt-card__play p {
  margin: 0;
}

.lc-avent .avt-card__text {
  margin: 0;
  color: var(--avt-plum);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.45;
}

.lc-avent .avt-card__note {
  margin: 12px 0 0;
  color: var(--avt-mauve);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
}

.avt-card__actions {
  display: flex;
  flex: none;
  flex-direction: column;
  width: 100%;
}

.avt-card__actions:empty {
  display: none;
}

.avt-card__actions .avt-btn {
  min-height: 52px;
  margin-top: 12px;
  text-decoration: none;
}

.avt-btn.is-plain {
  background: var(--avt-plum);
  box-shadow: 0 4px 0 var(--avt-shadow);
}

.avt-btn[aria-busy="true"] {
  opacity: .7;
  cursor: progress;
}

/* Tu préfères: two sides, then the share of the couples who chose each. */
.avt-sides {
  position: relative;
  display: grid;
  grid-auto-rows: 1fr;
  gap: 8px;
  text-align: left;
}

.avt-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: 12px 16px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: opacity .3s ease, transform .3s ease;
  -webkit-tap-highlight-color: transparent;
}

.avt-side--a {
  padding-bottom: 22px;
  background: #ffe3ec;
  box-shadow: 0 4px 0 rgba(112, 42, 113, .22);
  color: var(--avt-plum);
}

.avt-side--b {
  padding-top: 22px;
  background: var(--avt-plum);
  box-shadow: 0 4px 0 rgba(51, 11, 134, .4);
  color: var(--avt-cream);
}

.avt-side[disabled] {
  cursor: default;
}

.is-answered .avt-side:not(.is-mine) {
  opacity: .62;
}

.avt-side.is-mine {
  transform: scale(1.02);
}

.avt-side__words {
  position: relative;
  z-index: 1;
}

.avt-side__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(196, 40, 91, .16);
  transition: width .9s cubic-bezier(.2, .8, .2, 1);
}

.avt-side--b .avt-side__fill {
  background: rgba(251, 248, 239, .16);
}

.avt-side__pct {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transition: opacity .4s ease .3s;
}

.avt-side__pct:empty {
  display: none;
}

.is-answered .avt-side__pct {
  opacity: 1;
}

/* « Votre choix », on the line of the share, at the right. */
.avt-side__mine {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--avt-rose);
  color: var(--avt-cream);
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.avt-side--b .avt-side__mine {
  bottom: 12px;
  background: var(--avt-cream);
  color: var(--avt-plum);
}

.avt-or {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 0 rgba(112, 42, 113, .4);
  color: var(--avt-rose);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.lc-avent .avt-others {
  margin: 12px 0 0;
  color: var(--avt-mauve);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
}

/* Qui de nous deux: Moi or Toi, a heart between them, then the shares. */
.avt-who {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.avt-who .avt-side {
  align-items: center;
  min-height: 86px;
  padding: 10px;
  border-radius: 20px;
  font-size: 22px;
  text-align: center;
}

.avt-who .avt-side--a {
  background: var(--avt-cream);
  box-shadow: inset 0 0 0 3px var(--avt-rose), 0 5px 0 rgba(112, 42, 113, .3);
  color: var(--avt-rose);
}

.avt-who .avt-side--b {
  box-shadow: 0 5px 0 rgba(51, 11, 134, .4);
}

.avt-who .avt-side__mine {
  right: 50%;
  bottom: 7px;
  transform: translateX(50%);
}

.avt-who .avt-side.is-mine {
  padding-bottom: 26px;
}

.avt-who__heart {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  pointer-events: none;
}

/* Action ou Vérité: the two cards, their words in view; one is chosen. */
.avt-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 2px 6px;
}

.avt-pick__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 196px;
  padding: 14px 10px;
  border: 0;
  border-radius: 18px;
  background: #ffe3ec;
  box-shadow: 0 4px 0 rgba(112, 42, 113, .22);
  color: var(--avt-plum);
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transform: rotate(-3deg);
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), opacity .3s ease, box-shadow .3s ease;
  -webkit-tap-highlight-color: transparent;
}

.avt-pick__card--action {
  background: var(--avt-plum);
  box-shadow: 0 4px 0 rgba(51, 11, 134, .4);
  color: var(--avt-cream);
  transform: rotate(3deg);
}

.avt-pick__card b {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.avt-pick__card i {
  color: var(--avt-rose);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.avt-pick__card--action b,
.avt-pick__card--action i {
  color: var(--avt-pink);
}

.avt-pick__card span {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.avt-pick__card[aria-pressed="true"] {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 0 0 3px var(--avt-gold), 0 5px 0 rgba(112, 42, 113, .3);
}

.avt-pick.is-answered .avt-pick__card[aria-pressed="false"] {
  opacity: .45;
}

/* A memory: the polaroid to fill (smaller than on the board, so that the longest words of a case hold beside it). */
.avt-photo {
  position: relative;
  display: block;
  width: 112px;
  height: 124px;
  margin: 2px auto 14px;
  padding: 8px 8px 24px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(51, 11, 134, .22);
  transform: rotate(-4deg);
}

.avt-photo span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #ffc46e 0%, #f28a55 55%, #c4285b 100%);
  color: var(--avt-cream);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.avt-photo + .avt-card__text {
  font-size: 15px;
}

/* A question of depth: its quotation mark. */
.avt-quote {
  flex: none;
  margin-top: 18px;
  color: var(--avt-pink);
  font-size: 54px;
  font-weight: 900;
  line-height: .6;
}

/* A forgotten case, before it opens: the padlock in gold. */
.avt-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 54px;
  height: 54px;
  margin: 16px auto 0;
  border-radius: 50%;
  background: #ffe29a;
  box-shadow: 0 4px 0 #f2c46b;
  color: #8e1747;
}

/* ---- The two special cards, the 1st and the 24th: in gold (their back, a gold frame, a gold pill) ---- */
.avt-layer.is-special .avt-card--back {
  background: radial-gradient(circle at 50% 42%, #fff1c4 0%, #f2c46b 50%, #c99a3c 100%);
  box-shadow: 0 8px 0 #9c7428, 0 30px 60px rgba(26, 6, 40, .5);
}

.avt-layer.is-special .avt-card__dash {
  border-color: rgba(112, 42, 113, .35);
}

.avt-layer.is-special .avt-card__hearts {
  display: none;
}

.avt-layer.is-special .avt-card__star path {
  fill: #fbf8ef;
  stroke: #ffffff;
}

.lc-avent .avt-layer.is-special .avt-card__n {
  fill: var(--avt-rose);
}

/* The number of the case on the back of the card, in the middle of its star (2026-11-05: it had no style, and showed
   black and off centre during the flight). */
.lc-avent .avt-card__n {
  fill: var(--avt-rose);
  font-family: "Nunito", "Helvetica Neue", Arial, sans-serif;
  font-size: 44px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
}

.avt-layer.is-special .avt-card__brand {
  color: var(--avt-plum);
}

.avt-layer.is-special .avt-card__who {
  color: var(--avt-mauve);
}

.lc-avent .avt-layer.is-special .avt-card--front {
  box-shadow: inset 0 0 0 3px #f2c46b, 0 8px 0 rgba(112, 42, 113, .45), 0 30px 60px rgba(26, 6, 40, .5);
}

.avt-layer.is-special .avt-pill {
  background: #f2c46b;
  box-shadow: 0 3px 0 #b8862e;
  color: var(--avt-plum);
}

.lc-avent .avt-layer.is-special .avt-card__title {
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.lc-avent .avt-card__lead {
  margin: 6px 0 0;
  color: var(--avt-mauve);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
}

.avt-btn[disabled] {
  opacity: .45;
  box-shadow: none;
  cursor: default;
}

/* The lantern of the 1st: the wish written or touched among ideas. */
.lc-avent .avt-wish-field {
  display: block;
  width: 100%;
  height: 72px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 2px dashed #f2c46b;
  border-radius: 16px;
  background: #ffffff;
  color: var(--avt-plum);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  resize: none;
  outline-color: var(--avt-rose);
}

.lc-avent .avt-wish-field::placeholder {
  color: rgba(141, 52, 106, .6);
}

.avt-ideas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.avt-idea {
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(196, 40, 91, .08);
  color: var(--avt-plum);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.avt-idea[aria-pressed="true"] {
  background: var(--avt-rose);
  color: var(--avt-cream);
}

/* The wish kept, in handwriting. */
.avt-wish-kept {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff7e0;
  box-shadow: inset 0 0 0 2px #f2c46b;
  color: var(--avt-plum);
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

/* Over the chalet, the lantern of the wish: it sways, glows, and says the wish at a touch. */
.avt-lantern {
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.avt-lantern__sway {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: avtSway 4.2s ease-in-out infinite;
}

.avt-lantern.is-rising .avt-lantern__rise {
  animation: avtLanternRise 1.6s cubic-bezier(.2, .8, .2, 1) both;
}

.avt-lantern:focus-visible .avt-lantern__sway {
  outline: 3px solid rgba(255, 185, 56, .95);
}

@keyframes avtSway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

@keyframes avtLanternRise {
  from { opacity: 0; transform: translateY(160px) scale(.6); }
  to { opacity: 1; transform: none; }
}

.avt .avt-wish {
  position: absolute;
  z-index: 5;
  width: 200px;
  margin: 0;
  padding: 10px 14px 12px;
  border-radius: 18px 18px 4px 18px;
  background: var(--avt-cream);
  box-shadow: 0 4px 0 rgba(112, 42, 113, .35);
  color: var(--avt-plum);
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .3s ease, transform .35s ease-out;
}

.avt .avt-wish.is-on {
  opacity: 1;
  transform: none;
}

.avt-wish b {
  display: block;
  color: var(--avt-rose);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.avt-wish span {
  display: block;
  margin-top: 2px;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

/* The wheel of Christmas (the 12th, the 20th): six soft gages, the wheel chooses. */
.avt-wheel {
  display: block;
  width: 126px;
  height: auto;
  margin: 0 auto;
}

.avt-wheel__turn {
  transform-box: view-box;
  transform-origin: 79px 80px;
}

.avt-wheel text {
  fill: var(--avt-cream);
  font-family: "Nunito", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
}

.avt-chosen {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #ffe3ec;
  animation: avtRise .45s ease-out both;
}

.avt-chosen__tag {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--avt-rose);
  color: var(--avt-cream);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lc-avent .avt-chosen p {
  margin: 0;
  color: var(--avt-plum);
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1.35;
}

/* The summary of the 24th: the title under its medal, four numbers. */
.avt-medal-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  text-align: left;
}

.avt-medal {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--avt-rose);
  box-shadow: 0 3px 0 rgba(112, 42, 113, .35);
  color: var(--avt-cream);
}

.avt-medal-row small {
  display: block;
  color: var(--avt-mauve);
  font-size: 12.5px;
  font-weight: 800;
}

.avt-medal-row strong {
  display: block;
  color: var(--avt-plum);
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.avt-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  text-align: left;
}

.avt-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 13px;
  border-radius: 16px;
  background: rgba(196, 40, 91, .07);
}

.avt-stat b {
  color: var(--avt-plum);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.1;
}

.avt-stat span {
  color: var(--avt-mauve);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.25;
}

/* Greek and Japanese: the wish and the title in the font of the site (Caveat has neither their letters). */
[data-esp-lang="el"] .avt-wish-kept,
[data-esp-lang="ja"] .avt-wish-kept {
  font-family: inherit;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
}

[data-esp-lang="el"] .avt-wish span,
[data-esp-lang="ja"] .avt-wish span {
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
}

[data-esp-lang="el"] .avt-medal-row strong,
[data-esp-lang="ja"] .avt-medal-row strong {
  font-family: inherit;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.2;
}

/* The star of the top, lit once the 24th is opened: it comes with the confetti. */
.avt-topstar {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.avt-topstar.is-new {
  animation: avtTopStar 1.2s cubic-bezier(.3, 1.5, .5, 1) both;
}

@keyframes avtTopStar {
  from { opacity: 0; transform: scale(.2) rotate(-60deg); }
  to { opacity: 1; transform: none; }
}

.avt-toast {
  position: fixed;
  z-index: 1100;
  left: 50%;
  top: calc(84px + env(safe-area-inset-top, 0px));
  max-width: min(360px, calc(100% - 40px));
  margin: 0;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--avt-cream);
  box-shadow: 0 6px 0 rgba(51, 11, 134, .3), 0 14px 30px rgba(51, 11, 134, .3);
  color: var(--avt-plum);
  font-family: "Nunito", "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.avt-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* The narrowest phones (320 to 359 px): the card a little tighter, its pill on one line, the numbers of the summary
   smaller, so that the longest faces hold without scrolling. */
@media (max-width: 359px) {
  .lc-avent .avt-card--front {
    padding-right: 14px;
    padding-left: 14px;
  }

  .lc-avent .avt-layer .avt-pill {
    padding: 6px 11px;
    font-size: 10px;
    letter-spacing: .06em;
  }

  .lc-avent .avt-card__title {
    font-size: 21px;
  }

  .lc-avent .avt-card__title.is-question {
    font-size: 18px;
  }

  .avt-medal-row {
    gap: 10px;
  }

  .avt-medal-row strong {
    font-size: 29px;
  }

  .avt-stats {
    gap: 8px;
    margin-top: 10px;
  }

  .avt-stat {
    padding: 8px 10px;
  }

  .avt-stat b {
    font-size: 20px;
  }

  .avt-stat span {
    font-size: 11.5px;
  }

  .avt-side {
    font-size: 15.5px;
  }

  .avt-pick {
    gap: 8px;
  }

  .avt-pick__card {
    min-height: 0;
    gap: 4px;
    padding: 11px 8px;
  }

  .avt-pick__card b {
    font-size: 28px;
  }

  .avt-pick__card span {
    font-size: 12.5px;
    line-height: 1.32;
  }
}

/* A face whose words would run past the card on this screen (fitCard in static/js/espace/espace.js): a size
   smaller. */
.lc-avent .avt-card--front.is-tight .avt-card__title {
  font-size: 19px;
}

.lc-avent .avt-card--front.is-tight .avt-card__title.is-question,
.lc-avent .avt-card--front.is-tight .avt-card__title.is-deep {
  font-size: 17.5px;
}

.lc-avent .avt-card--front.is-tight .avt-card__text {
  font-size: 14px;
  line-height: 1.4;
}

.avt-card--front.is-tight .avt-side {
  min-height: 78px;
  font-size: 15px;
}

.avt-card--front.is-tight .avt-who .avt-side {
  min-height: 72px;
  font-size: 19px;
}

.avt-card--front.is-tight .avt-pick__card {
  min-height: 0;
  gap: 4px;
  padding: 10px 8px;
}

.avt-card--front.is-tight .avt-pick__card b {
  font-size: 26px;
}

.avt-card--front.is-tight .avt-pick__card span {
  font-size: 12.5px;
  line-height: 1.3;
}

.avt-card--front.is-tight .avt-photo {
  width: 92px;
  height: 102px;
  margin-bottom: 10px;
  padding: 7px 7px 20px;
}

.avt-card--front.is-tight .avt-wheel {
  width: 108px;
}

.avt-card--front.is-tight .avt-stats {
  gap: 7px;
  margin-top: 8px;
}

.avt-card--front.is-tight .avt-stat {
  padding: 7px 10px;
}

/* The shortest screens (a phone held sideways): no token over the card, the words scroll inside it. */
@media (max-height: 560px) {
  .lc-avent .avt-card--front {
    padding-top: 22px;
  }

  .avt-card__token {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lc-avent .avt-course__done,
  .lc-avent .avt-course__pawn--one,
  .lc-avent .avt-course__pawn--two,
  .lc-avent .avt-chalet.is-live .avt-pane polygon,
  .lc-avent .avt-chalet.is-live .avt-pane text,
  .avt-side__fill,
  .avt-side__pct,
  .avt-pick__card,
  .avt-toast {
    transition: none;
  }

  .lc-avent .avt-pane.is-landing,
  .avt-lantern__sway,
  .avt-lantern.is-rising .avt-lantern__rise,
  .avt-topstar.is-new,
  .avt-chosen {
    animation: none;
  }

  .avt .avt-wish {
    transition: none;
  }
}

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