/* Zombie Rodeo's own bands (the herd on Paper, three bosses on Night), loaded only by /games/zombie-rodeo/. They show the
   game and list nothing. They use the site's grounds and type (assets/css/site.css); the drawings are the game's own
   (tools/rodeo.mjs). */

.rz { padding: clamp(84px, 13vh, 150px) var(--pad-r) clamp(84px, 13vh, 150px) var(--pad-l); }
.rz--night { background: var(--night); color: #fff; --focus: #fff; }
.rz--night ::selection { background: var(--red); color: #fff; }
.rz__in { max-width: 1440px; margin: 0 auto; }
.rz__head { margin-bottom: clamp(40px, 7vh, 84px); }
.rz h2 { margin: 0; max-width: 18ch; font: 800 clamp(2.4rem, 5vw, 4.6rem)/0.95 var(--head); letter-spacing: -0.02em; text-wrap: balance; }
.rz__lead { margin: 18px 0 0; max-width: 40ch; font: 600 clamp(1.15rem, 1.8vw, 1.6rem)/1.3 var(--head); color: var(--soft); text-wrap: pretty; }
.rz--night .rz__lead { color: rgba(255, 255, 255, 0.78); }
.rz h3 { margin: 0; font: 800 clamp(1.35rem, 1.7vw, 1.7rem)/1.05 var(--head); letter-spacing: -0.01em; }

/* ---------- the herd: six kinds in a line-up on one rule, each at its own height ---------- */
.rz-lineup { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rz-zombie { --fig: clamp(190px, 25vw, 400px); padding-right: clamp(8px, 1.4vw, 22px); }
.rz-zombie__fig { display: flex; align-items: flex-end; justify-content: center; height: var(--fig); margin-right: calc(clamp(8px, 1.4vw, 22px) * -1); border-bottom: 3px solid var(--ink); }
.rz-zombie__fig img { width: auto; max-width: 118%; height: calc(var(--h) / 1.8 * 100%); object-fit: contain; object-position: 50% 100%; translate: 0 2.2%;
  transition: translate 380ms var(--ease-out), scale 380ms var(--ease-out); transform-origin: 50% 100%; }
.rz-zombie:hover .rz-zombie__fig img { translate: 0 0; scale: 1.05; }
.rz-zombie h3 { margin-top: 18px; }

/* ---------- the bosses: three in the same line-up, bigger, on a white rule; the bull takes the room of two ---------- */
.rz-lineup--boss { grid-template-columns: 1.75fr 1fr 1fr; }
.rz-lineup--boss .rz-zombie { --fig: clamp(240px, 33vw, 540px); }
.rz-lineup--boss .rz-zombie__fig { border-bottom-color: #fff; }
.rz-lineup--boss .rz-zombie__fig img { max-width: 100%; height: calc(var(--h) * 100%); translate: 0 1%; }

@media (max-width: 1099px) {
  .rz-lineup { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 44px; }
  .rz-zombie { --fig: clamp(220px, 38vw, 380px); }
  .rz-lineup--boss { grid-template-columns: 1.75fr 1fr 1fr; }
  .rz-lineup--boss .rz-zombie { --fig: clamp(200px, 33vw, 380px); }
}
@media (max-width: 699px) {
  .rz { padding-top: 72px; padding-bottom: 72px; }
  .rz h2 { font-size: clamp(2.2rem, 10.4vw, 3rem); }
  /* the line-up becomes a sideways shelf that runs to the screen's edges */
  .rz-lineup { display: flex; margin-right: calc(var(--pad-r) * -1); margin-left: calc(var(--pad-l) * -1); padding: 0 var(--pad-r) 6px var(--pad-l); overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none; }
  .rz-lineup::-webkit-scrollbar { display: none; }
  .rz-zombie { --fig: 300px; flex: none; width: 62vw; scroll-snap-align: start; scroll-margin-left: var(--pad-l); }
  .rz-lineup--boss .rz-zombie { --fig: 320px; width: 66vw; }
  .rz-lineup--boss .rz-zombie:first-child { width: 86vw; }
}
@media (prefers-reduced-motion: reduce) {
  .rz-zombie__fig img { transition: none; }
}
