/* The card of the games on the pillar pages (lc-qc: the question card): the draw of the naughty questions
   (template/seo/questions-coquines-couple.php, static/js/questions-coquines.js). The night card of the wheel teaser
   (static/css/wheel-teaser.css) with the white card of the online game, the levels, the buttons and the app window of
   the wheel of gages (static/css/roue-des-gages.css). The rest of these pages is the pillar page
   (static/css/seo-pillar.css). */

/* ---- The draw: the evening of the online games, stars of the homepage night ---- */
.lc-qcDraw {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(247, 37, 133, .34), transparent 70%),
    radial-gradient(60% 80% at 100% 100%, rgba(139, 44, 246, .36), transparent 70%),
    linear-gradient(160deg, #2a0f33 0%, #3b163f 52%, #4a1d6e 100%);
  box-shadow: 0 22px 60px rgba(59, 22, 63, .3);
  scroll-margin-top: 16px;
}

.lc-qcDraw::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .7;
  background:
    radial-gradient(1.4px 1.4px at 12% 20%, rgba(255, 255, 255, .8), transparent 70%),
    radial-gradient(1.2px 1.2px at 46% 8%, rgba(255, 217, 138, .7), transparent 70%),
    radial-gradient(1.4px 1.4px at 82% 14%, rgba(255, 255, 255, .7), transparent 70%),
    radial-gradient(1.2px 1.2px at 92% 70%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(1.2px 1.2px at 6% 88%, rgba(255, 217, 138, .6), transparent 70%);
}

.lc-pillar .lc-qcDraw__kicker {
  margin: 0;
  color: #ffd98a;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lc-pillar .lc-qcDraw h2 {
  margin: 6px 0 14px;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -.03em;
}

/* The lists that can be drawn, as the levels of the wheel; the last one is played in the app. */
.lc-qcDraw__levels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.lc-qcDraw__level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .84);
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.lc-qcDraw__level:hover {
  background: rgba(255, 255, 255, .13);
}

.lc-qcDraw__level[aria-pressed="true"] {
  border-color: #fff;
  background: #fff;
  color: #2a0f33;
  box-shadow: 0 8px 22px rgba(247, 37, 133, .38);
}

.lc-qcDraw__level--app {
  border-style: dashed;
  border-color: rgba(255, 217, 138, .55);
  background: rgba(255, 217, 138, .08);
  color: #ffd98a;
}

.lc-qcDraw__level--app:hover {
  background: rgba(255, 217, 138, .16);
}

.lc-qcDraw__level:focus-visible,
.lc-qcBtn:focus-visible,
.lc-qcWall__stay:focus-visible {
  outline: 3px solid rgba(255, 185, 56, .9);
  outline-offset: 2px;
}

/* ---- The card: the white face of the online game, tinted by its list ---- */
.lc-qcCard {
  --tint: 106, 75, 255;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 14px;
  border-radius: 26px;
  background: #fff;
  color: #2a142d;
  box-shadow: 0 24px 56px rgba(10, 2, 18, .45);
}

.lc-qcCard[data-tint="hot"] {
  --tint: 247, 37, 133;
}

.lc-qcCard[data-tint="gold"] {
  --tint: 255, 150, 60;
}

.lc-qcCard::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -30%;
  bottom: -40%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--tint), .17), transparent 68%);
}

.lc-qcCard__top {
  display: flex;
}

.lc-qcCard__tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: #efebff;
  color: #5132d8;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lc-qcCard[data-tint="hot"] .lc-qcCard__tag {
  background: #ffe8f1;
  color: #c8105a;
}

.lc-qcCard[data-tint="gold"] .lc-qcCard__tag {
  background: #fff1d6;
  color: #8a4b00;
}

/* The question and the end of the deck share one cell: the card keeps the height of its longest question
   (--qc-h, set by the script), so that changing question never moves the page. */
.lc-qcCard__body {
  position: relative;
  display: grid;
}

.lc-qcCard__q,
.lc-qcCard__done {
  grid-area: 1 / 1;
}

.lc-pillar .lc-qcCard__q {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--qc-h, 5.2em);
  margin: 0;
  color: #2a142d;
  font-size: clamp(1.2rem, 4.4vw, 1.45rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.015em;
  text-align: center;
  text-wrap: balance;
  transition: opacity .16s ease, transform .16s ease;
}

.lc-qcCard.is-swapping .lc-qcCard__q {
  opacity: 0;
  transform: translateY(6px);
}

.lc-qcCard__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  visibility: hidden;
}

.lc-qcCard.is-done .lc-qcCard__done {
  visibility: visible;
}

.lc-qcCard.is-done .lc-qcCard__q {
  visibility: hidden;
}

.lc-pillar .lc-qcCard__doneTitle {
  margin: 0;
  color: #2a142d;
  font-size: 1.25rem;
  font-weight: 900;
}

.lc-pillar .lc-qcCard__doneText {
  max-width: 30ch;
  margin: 0;
  color: #6f5a71;
  font-size: .95rem;
  line-height: 1.45;
}

.lc-qcCard__doneActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.lc-pillar .lc-qcCard__brand {
  margin: 0;
  color: #b79db6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .9rem;
  font-style: italic;
  text-align: center;
}

.lc-qcCard__brand::before {
  content: "\2665\FE0E\00A0";
  color: rgba(var(--tint), .45);
  font-style: normal;
}

/* ---- Buttons of the game ---- */
.lc-qcDraw__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.lc-qcBtn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), background .2s ease;
}

.lc-qcBtn:active {
  transform: scale(.96);
}

.lc-qcBtn--primary {
  background: linear-gradient(135deg, #e0156f, #f0503a);
  color: #fff;
  box-shadow: 0 10px 22px rgba(240, 40, 100, .32), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.lc-qcDraw__actions .lc-qcBtn--primary {
  flex: 1;
  white-space: nowrap;
}

/* The light sweep of the kit page. */
.lc-qcDraw__actions .lc-qcBtn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg);
  animation: lc-qc-shine 7s ease-in-out 2s infinite;
  pointer-events: none;
}

@keyframes lc-qc-shine {
  0%, 72% { left: -60%; }
  100% { left: 130%; }
}

.lc-qcBtn--ghost {
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.lc-qcBtn--ghost:hover {
  background: rgba(255, 255, 255, .16);
}

.lc-qcBtn--light {
  background: #f6e8f0;
  color: #5b1d48;
}

/* "Send" and "Copied" take the same room. */
.lc-qcShare__labels {
  display: grid;
}

.lc-qcShare__labels > span {
  grid-area: 1 / 1;
}

.lc-qcShare__labels > span + span,
.lc-qcBtn.is-copied .lc-qcShare__labels > span:first-child {
  visibility: hidden;
}

.lc-qcBtn.is-copied .lc-qcShare__labels > span + span {
  visibility: visible;
}

.lc-pillar .lc-qcDraw__rules {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: .88rem;
  line-height: 1.45;
}

/* ---- The page: air between the lists, and the three rules under the definition ---- */
.lc-qc .lc-main > section + section {
  margin-top: 44px;
}

.lc-qcRules {
  margin-top: 18px;
}

/* ---- The level played in the app: the window of the wheel of gages ---- */
.lc-qcWall {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: rgba(24, 5, 29, .66);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .35s ease;
}

.lc-qcWall[hidden] {
  display: none;
}

.lc-qcWall.is-on {
  opacity: 1;
}

.lc-qcWall__card {
  position: relative;
  width: min(440px, 100%);
  padding: 30px 24px 22px;
  border-radius: 28px;
  background: radial-gradient(120% 55% at 50% 0%, #ffe9f3 0%, #fff 62%);
  box-shadow: 0 30px 90px rgba(20, 0, 35, .45);
  color: #2a142d;
  text-align: center;
  transform: translateY(18px) scale(.97);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.lc-qcWall.is-on .lc-qcWall__card {
  transform: none;
}

.lc-qcWall__logo {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(233, 30, 117, .3);
}

.lc-pillar .lc-qcWall__rating {
  margin: 14px 0 6px;
  color: #d81d7e;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.lc-pillar .lc-qcWall__level {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffe8f1;
  color: #c8105a;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lc-pillar .lc-qcWall__title {
  margin: 0 0 10px;
  color: #2a142d;
  font-size: clamp(1.7rem, 6.5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.lc-pillar .lc-qcWall__text {
  max-width: 34ch;
  margin: 0 auto 18px;
  color: #6f5a71;
  font-weight: 500;
  line-height: 1.55;
}

.lc-qcWall__stores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.lc-qcWall__stores a {
  display: block;
  border-radius: 12px;
  transition: transform .2s ease;
}

.lc-qcWall__stores a:hover {
  transform: translateY(-2px);
}

.lc-qcWall__stores img {
  display: block;
  width: auto;
  height: 48px;
}

.lc-qcWall__kit {
  margin-top: 18px;
}

.lc-pillar .lc-qcWall__or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: #9a7f97;
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lc-qcWall__or::before,
.lc-qcWall__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #f0e3ef;
}

.lc-qcWall__stay {
  margin-top: 16px;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: #7b416f;
  font: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

@media (max-width: 880px) {
  .lc-qcDraw {
    border-radius: 26px;
  }
}

@media (max-width: 560px) {
  .lc-qcDraw {
    padding: 20px 16px 18px;
  }

  .lc-qc .lc-main > section + section {
    margin-top: 34px;
  }

  /* On a phone, "send" is the icon alone (the share sheet of the phone says the rest), so the call to draw keeps
     its line. */
  .lc-qcShare {
    width: 48px;
    padding: 0;
  }

  .lc-qcShare .lc-qcShare__labels {
    display: none;
  }

  .lc-qcCard {
    padding: 16px 16px 12px;
  }

  .lc-qcDraw__level {
    min-height: 34px;
    padding: 0 10px;
    font-size: .8rem;
  }
}

/* Japanese breaks lines between phrases where the browser knows how. */
.lc-qc:lang(ja) .lc-qcDraw,
.lc-qc:lang(ja) .lc-qcWall__card {
  word-break: auto-phrase;
}

@media (prefers-reduced-motion: reduce) {
  .lc-pillar .lc-qcCard__q,
  .lc-qcWall,
  .lc-qcWall__card,
  .lc-qcBtn {
    transition: none;
  }

  .lc-qcDraw__actions .lc-qcBtn--primary::after {
    animation: none;
  }
}
