/* La salle de jeux (template/seo/jeux-de-couple.php, French for now): the games of the site as the night card of
   the wheel (static/css/wheel-teaser.css), each with a small drawing of its game; then the page without its summary,
   and ideas in the hearts of the hero card (.lc-miniList, static/css/seo-pillar.css). */

.lc-room {
  padding-top: 10px;
}

.lc-room .lc-sectionHeader .lc-kicker {
  margin-bottom: 16px;
}

.lc-roomGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* One game: the evening of the online games, stars of the homepage night. */
.lc-pillar a.lc-game {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 212px;
  padding: 24px;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  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 20px 52px rgba(59, 22, 63, .28);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
}

.lc-pillar a.lc-game:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(59, 22, 63, .34);
}

.lc-pillar a.lc-game:focus-visible {
  outline: 3px solid rgba(255, 185, 56, .9);
  outline-offset: 3px;
}

.lc-game::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% 12%, rgba(255, 217, 138, .7), transparent 70%),
    radial-gradient(1.4px 1.4px at 78% 30%, rgba(255, 255, 255, .7), transparent 70%),
    radial-gradient(1.2px 1.2px at 90% 76%, rgba(255, 255, 255, .55), transparent 70%);
}

.lc-game__art {
  position: relative;
  flex: none;
  width: 128px;
  height: 110px;
}

.lc-game__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

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

.lc-pillar .lc-game h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.lc-game__text {
  color: rgba(255, 255, 255, .86);
  font-size: 1rem;
  line-height: 1.5;
}

.lc-game__cta {
  display: inline-flex;
  margin-top: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0156f, #f0503a);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(240, 40, 100, .38), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* Action ou Vérité: a card to say (violet) and a card to do (pink), as in the game. */
.lc-art-card {
  position: absolute;
  top: 12px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 88px;
  border-radius: 12px;
  color: #fff;
  font-size: 2rem;
  font-weight: 950;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 12px 22px rgba(10, 2, 18, .5);
}

.lc-art-card--truth {
  left: 10px;
  background: linear-gradient(155deg, #9b8cff, #5132d8);
  transform: rotate(-12deg);
}

.lc-art-card--dare {
  left: 54px;
  background: linear-gradient(155deg, #ff7eb3, #c8105a);
  transform: rotate(9deg);
}

/* The wheel of gages: lying on the table and turning slowly, the flame of the logo at its heart. */
.lc-art-disc {
  position: absolute;
  left: 0;
  top: 10px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  transform: scaleY(.58);
  transform-origin: 50% 0;
  background: #2a0b31;
  box-shadow: 0 8px 0 #5a1d6e, 0 18px 24px rgba(10, 2, 18, .55);
}

.lc-art-disc span {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .85);
  background:
    radial-gradient(circle, #fff 0 17%, rgba(247, 37, 133, .55) 17.5% 19%, transparent 19.5%),
    conic-gradient(#e0156f 0 54deg, #ffb070 54deg 84deg, #6c4dff 84deg 138deg, #b5179e 138deg 192deg, #ffd98a 192deg 222deg,
      #f72585 222deg 276deg, #9b3dff 276deg 330deg, #ffb070 330deg 360deg);
  animation: lc-game-spin 18s linear infinite;
}

.lc-game--wheel img {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 32px;
  height: 32px;
  translate: -50% 0;
  border-radius: 9px;
  box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(10, 2, 18, .5), 0 0 18px rgba(247, 37, 133, .5);
}

@keyframes lc-game-spin {
  to { transform: rotate(360deg); }
}

/* The quiz: three answers, one chosen. */
.lc-art-chip {
  position: absolute;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  height: 26px;
  padding-left: 10px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .8rem;
}

.lc-art-chip:nth-child(1) { top: 10px; right: 26px; }
.lc-art-chip:nth-child(2) { top: 42px; }
.lc-art-chip:nth-child(3) { top: 74px; right: 40px; }

.lc-art-chip.is-on {
  border-color: transparent;
  background: linear-gradient(135deg, #e0156f, #9b3dff);
  box-shadow: 0 8px 18px rgba(240, 40, 100, .35);
}

/* The challenge of the evening: the moon, and a few stars. */
.lc-art-moon {
  position: absolute;
  left: 26px;
  top: 14px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  box-shadow: inset -18px -6px 0 0 #ffd98a;
  transform: rotate(-20deg);
  filter: drop-shadow(0 0 16px rgba(255, 217, 138, .45));
}

.lc-art-star {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.lc-art-star:nth-child(2) { left: 102px; top: 18px; }
.lc-art-star:nth-child(3) { left: 14px; top: 78px; width: 7px; height: 7px; opacity: .8; }
.lc-art-star:nth-child(4) { left: 110px; top: 70px; width: 6px; height: 6px; opacity: .7; }

/* Tu préfères: two choices, violet and pink as the cards of the game, and the question between them. */
.lc-art-pick {
  position: absolute;
  top: 16px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 76px;
  border-radius: 14px;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 950;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 12px 22px rgba(10, 2, 18, .5);
}

.lc-art-pick--a {
  left: 6px;
  background: linear-gradient(155deg, #9b8cff, #5132d8);
  transform: rotate(-8deg);
}

.lc-art-pick--b {
  right: 6px;
  background: linear-gradient(155deg, #ff7eb3, #c8105a);
  transform: rotate(8deg);
}

.lc-art-or {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 40px;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffd98a;
  color: #3b163f;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 6px 14px rgba(10, 2, 18, .45);
}

/* Qui de nous deux: the two of you face to face, violet and pink as in the game, joined by a heart. */
.lc-art-duo {
  position: absolute;
  top: 24px;
  overflow: hidden;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 12px 22px rgba(10, 2, 18, .5);
}

.lc-art-duo--me {
  left: 2px;
  background: linear-gradient(155deg, #9b8cff, #5132d8);
}

.lc-art-duo--you {
  right: 2px;
  background: linear-gradient(155deg, #ff7eb3, #c8105a);
}

/* A head and shoulders in each. */
.lc-art-duo::before,
.lc-art-duo::after {
  content: "";
  position: absolute;
  left: 50%;
  background: rgba(255, 255, 255, .92);
}

.lc-art-duo::before {
  top: 13px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-radius: 50%;
}

.lc-art-duo::after {
  bottom: -12px;
  width: 40px;
  height: 26px;
  margin-left: -20px;
  border-radius: 50% 50% 0 0;
}

.lc-art-heart {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 38px;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffd98a;
  color: #e0156f;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(10, 2, 18, .45);
}

/* An odd number of games: the last one takes the whole row. */
.lc-roomGrid > .lc-game:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* The page without its summary: one reading column, with air between its sections. */
.lc-content.lc-content--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
}

.lc-content--single .lc-main > section + section {
  margin-top: 46px;
}

.lc-content--single .lc-storeButtons {
  margin-top: 16px;
}

/* Ideas: the hearts of the hero card, with a title and a line. */
.lc-ideaList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 8px;
  padding: 0;
  list-style: none;
}

.lc-pillar .lc-ideaList li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--lc-border);
  border-radius: 18px;
  background: var(--lc-soft);
}

.lc-ideaList li::before {
  content: '♥';
  color: var(--lc-hot);
  line-height: 1.5;
}

.lc-ideaList strong {
  display: block;
  color: var(--lc-plum);
  font-weight: 900;
  line-height: 1.5;
}

.lc-pillar .lc-ideaList p {
  margin: 2px 0 0;
  color: var(--lc-muted);
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 880px) {
  .lc-roomGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .lc-ideaList {
    grid-template-columns: 1fr;
  }

  .lc-content--single .lc-main > section + section {
    margin-top: 36px;
  }
}

@media (max-width: 560px) {
  .lc-room {
    padding-top: 0;
  }

  .lc-pillar a.lc-game {
    align-items: flex-start;
    gap: 14px;
    min-height: 0;
    padding: 18px;
    border-radius: 26px;
  }

  /* The drawings shrink and stay beside the words. */
  .lc-game__art {
    zoom: .7;
    margin-top: 10px;
  }

  .lc-game__cta {
    padding: 10px 16px;
  }
}

/* Japanese breaks lines between phrases where the browser knows how, never inside a game's name. */
.lc-room:lang(ja) {
  word-break: auto-phrase;
}

@media (prefers-reduced-motion: reduce) {
  .lc-art-disc span {
    animation: none;
  }

  .lc-pillar a.lc-game {
    transition: none;
  }
}
