/* Capybaraka only: illustrated backdrop with a portrait mobile version. */
html[data-capy-decor="boite"] body[data-game="capybaraka"] .game-hero {
  --capy-decor: url('/assets/backgrounds/capybaraka-decor-test-20261124.webp');
  --capy-sun-x: 70%;
  --capy-sun-y: 47%;
  background-color: #f79c41;
  background-image: none;
  isolation: isolate;
}
html[data-capy-decor="boite"] body[data-game="capybaraka"] .game-hero::before,
html[data-capy-decor="boite"] body[data-game="capybaraka"] .game-hero::after {
  content: "";
  position: absolute;
  inset: -18px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  pointer-events: none;
  z-index: 0;
}
html[data-capy-decor="boite"] body[data-game="capybaraka"] .game-hero::before {
  background: var(--capy-decor) 70% center / cover no-repeat;
  opacity: 1;
  transform-origin: var(--capy-sun-x) var(--capy-sun-y);
  animation: capy-decor-drift 20s ease-in-out infinite alternate;
  will-change: transform;
}
html[data-capy-decor="boite"] body[data-game="capybaraka"] .game-hero::after {
  background: radial-gradient(ellipse at var(--capy-sun-x) var(--capy-sun-y), rgba(255,242,155,.6), rgba(255,226,118,.15) 30%, transparent 64%);
  transform: none;
  opacity: .15;
  animation: capy-sun-glow 9s ease-in-out infinite alternate;
}
html[data-capy-decor="boite"] body[data-game="capybaraka"] .game-hero .lead {
  color: var(--deep);
}
html[data-capy-decor="boite"] body[data-game="capybaraka"] .game-hero h1 {
  text-shadow: 0 2px 0 var(--deep), 4px 5px 0 var(--deep);
}
@keyframes capy-decor-drift {
  from { transform: translate3d(-7px, 3px, 0) scale(1.025); }
  to { transform: translate3d(8px, -4px, 0) scale(1.055); }
}
@keyframes capy-sun-glow {
  from { opacity: .12; }
  to { opacity: .34; }
}
@media (max-width: 620px) {
  html[data-capy-decor="boite"] body[data-game="capybaraka"] .game-hero {
    --capy-decor: url('/assets/backgrounds/capybaraka-decor-mobile-20261124.webp');
    --capy-sun-x: 50%;
    --capy-sun-y: 29%;
  }
  html[data-capy-decor="boite"] body[data-game="capybaraka"] .game-hero::before {
    background-position: center;
    animation-name: capy-decor-drift-mobile;
    animation-duration: 22s;
  }
}
@keyframes capy-decor-drift-mobile {
  from { transform: translate3d(-3px, 2px, 0) scale(1.02); }
  to { transform: translate3d(4px, -4px, 0) scale(1.045); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-capy-decor="boite"] body[data-game="capybaraka"] .game-hero::before,
  html[data-capy-decor="boite"] body[data-game="capybaraka"] .game-hero::after {
    animation: none;
    transform: none;
    will-change: auto;
  }
}

/* Capybaraka only: the box title artwork replaces the typographic hero title.
   The text stays in the h1 for assistive technology and search engines. */
html[data-capy-decor="boite"] body[data-game="capybaraka"] .game-hero h1.game-name-art {
  position: relative; width: min(100%, 540px); margin: 18px 0 22px;
  padding: 0; font-size: 0; line-height: 0; letter-spacing: 0;
  text-shadow: none;
}
body[data-game="capybaraka"] .capy-title-artwork {
  display: block; width: 100%; max-width: 100%; height: auto;
  object-fit: contain; border: 0; border-radius: 0; background: transparent;
}
body[data-game="capybaraka"] .capy-title-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%);
  white-space: nowrap; border: 0; font-size: 1px;
}
@media(max-width:900px) {
  html[data-capy-decor="boite"] body[data-game="capybaraka"] .game-hero h1.game-name-art {
    width: min(100%, 540px); margin: 18px 0 20px;
  }
}
@media(max-width:620px) {
  html[data-capy-decor="boite"] body[data-game="capybaraka"] .game-hero h1.game-name-art {
    width: 100%; margin: 18px 0 20px;
  }
}
