/* =========================================================================
   PITCH — the game page's stickers and league chips (#561, #1162)
   Loaded after /style.css and /site.css by /game/ only (build/
   content-pages.js renderGame): real kit stickers in their rarity finishes
   and the leagues from Rookie to Elite. No inline styles anywhere:
   _headers sets style-src 'self'.
   ========================================================================= */

:root {
  --silver: #A9AFB5;
  --bronze: #B0723A;
  --platinum: #7FA7B5;
  --emerald: #2E9E72;
  --gold-deep: #C98F12;
  --epic: #7B4BA8;
}

/* ---------- The leagues, Rookie to Elite ---------- */
.tier-chips {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.tier-chips li {
  --t: var(--ink-muted);
  margin: 0 6px 6px 0;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--t);
  color: var(--paper-white);
  font-family: var(--display);
  font-size: .82rem;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}
.tier-chips .tier-rookie { --t: var(--green); }
.tier-chips .tier-bronze { --t: var(--bronze); }
.tier-chips .tier-silver { --t: var(--silver); }
.tier-chips .tier-gold { --t: var(--gold-deep); }
.tier-chips .tier-platinum { --t: var(--platinum); }
.tier-chips .tier-emerald { --t: var(--emerald); }
.tier-chips .tier-elite { --t: var(--red); }

/* ---------- Kit: real stickers from the game ---------- */
.cromo-grid {
  list-style: none;
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 26px 16px;
}
@media (min-width: 760px) {
  .cromo-grid { grid-template-columns: repeat(3, 1fr); grid-gap: 36px 28px; }
}
.cromo {
  --r: var(--ink-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cromo img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .2s ease, box-shadow .2s ease;
}
.cromo:nth-child(3n + 1) { --tilt: -2deg; }
.cromo:nth-child(3n + 2) { --tilt: 1.4deg; }
.cromo:nth-child(3n) { --tilt: -.8deg; }
.cromo:hover img { transform: rotate(0deg) translateY(-4px) scale(1.02); box-shadow: 0 8px 14px rgba(60, 38, 16, .25), 0 18px 30px rgba(60, 38, 16, .2); }

.cromo-common { --r: #8C7D66; }
.cromo-rare { --r: #5B7F9A; }
.cromo-epic { --r: var(--epic); }
/* by tier id; since #636 `legendary` is shown as Mythic (dark purple) and `mythic` as Legend (gold) */
.cromo-legendary { --r: #5A2E8C; }
.cromo-mythic { --r: var(--gold-deep); }
.cromo-rarity {
  margin: 14px 0 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--r);
  color: var(--paper-white);
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .05em;
}
/* Real Legend is the top of the ladder: the only holographic ribbon. */
.cromo-real-legend .cromo-rarity {
  background: linear-gradient(100deg, #D6402E, #F0B429 25%, #2E9E72 50%, #3E7CC0 75%, #7B4BA8);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
}
.cromo h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.15;
  color: var(--ink);
}
.cromo-meta { margin: 3px 0 0; font-size: .8rem; font-weight: 800; color: var(--ink-muted); }
.cromo-story { margin: 6px 0 0; max-width: 30ch; font-size: .86rem; font-style: italic; color: var(--ink-muted); }

@media (prefers-reduced-motion: reduce) {
  .cromo img, .cromo:hover img { transition: none; }
  .cromo:hover img { transform: rotate(var(--tilt, 0deg)); }
}
