/* ExtremePlay web - /team page: the founders stand on a block podium with in-game nametags over their heads,
   below that a tooltip card per person, and empty silhouettes for the staff spots that are still open.
   --s = CSS px per skin pixel (5 on wide screens, 4 on phones): a figure is 16x32 of them and a block 16x16,
   the same proportions as in the game. */

.intro { color: var(--muted); max-width: 60ch; margin: 10px 0 0; }

/* ---- podium ---- */
.stage-sec { --s: 5px; background:
  radial-gradient(1px 1px at 12% 18%, #D8D2E6 99%, transparent), radial-gradient(1px 1px at 27% 42%, #5E566E 99%, transparent),
  radial-gradient(2px 2px at 44% 12%, #D8D2E6 99%, transparent), radial-gradient(1px 1px at 63% 30%, #5E566E 99%, transparent),
  radial-gradient(2px 2px at 78% 16%, #D8D2E6 99%, transparent), radial-gradient(1px 1px at 91% 38%, #5E566E 99%, transparent),
  linear-gradient(180deg, #0B0A10 0%, #1A0E14 100%); }
.slots-sec { --s: 4px; }
@media (max-width: 560px) {
  .stage-sec { --s: 4px; }
  /* phones: rank and name on two lines, so three nametags fit next to each other */
  .stage .tag { font-size: 17px; text-align: center; line-height: 1.1; }
  .stage .tag b { display: block; }
  .stage { gap: 10px; }
  .spot { min-width: 0; flex: 1 1 0; }
}
.stage { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 5vw, 56px);
  margin-top: 34px; padding-top: 10px; }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(16 * var(--s)); z-index: 0;
  background-image: var(--floor); background-size: calc(16 * var(--s)) calc(16 * var(--s)); image-rendering: pixelated; border-top: 2px solid #000; }
.spot { position: relative; z-index: 1; display: grid; justify-items: center; text-decoration: none; color: inherit;
  padding-bottom: calc(16 * var(--s)); /* stands on the floor row */ }
.spot:focus-visible { outline: none; }
.spot:focus-visible .tag { outline: 2px solid var(--mc-yellow); outline-offset: 2px; }
.tag { font-family: var(--f-pixel); font-size: 20px; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; color: var(--mc-white);
  background: rgba(0, 0, 0, 0.45); padding: 4px 7px 5px; margin-bottom: 10px; text-shadow: 2px 2px 0 #3F3F3F; }
.tag b { font-weight: 400; }
.fig { width: calc(16 * var(--s)); height: calc(32 * var(--s)); filter: drop-shadow(4px 0 0 rgba(0, 0, 0, 0.35)); }
.pillar { width: calc(16 * var(--s)); height: calc(16 * var(--s) * var(--n, 1)); display: block; image-rendering: pixelated; box-shadow: 4px 0 0 rgba(0, 0, 0, 0.35); }

@media (prefers-reduced-motion: no-preference) {
  .spot .fig { animation: idle 2.4s steps(1, end) infinite; }
  .spot:nth-child(2) .fig { animation-delay: -0.8s; }
  .spot:nth-child(3) .fig { animation-delay: -1.6s; }
  .spot:hover .fig, .spot:focus-visible .fig, .spot.on .fig { animation: jump 0.5s steps(6, end); }
}
@keyframes idle { 0%, 70% { transform: translateY(0); } 72%, 100% { transform: translateY(-4px); } }
@keyframes jump { 0% { transform: translateY(0); } 40% { transform: translateY(-20px); } 100% { transform: translateY(0); } }

/* ---- cards ---- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 22px; margin-top: 28px; }
.member.tooltip { max-width: none; scroll-margin-top: 90px; transition: transform 0.15s; }
.member.on { --tip-a: #FFFF55; --tip-b: #AA8800; transform: translateY(-4px); }
.member .top { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 10px; }
.member .face { width: 40px; height: 40px; image-rendering: pixelated; box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55); }
.member .rank { font-size: 19px; line-height: 1; white-space: nowrap; }
.member .name { font-size: 27px; color: var(--mc-white); line-height: 1.1; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55); overflow-wrap: anywhere; }
.member .quote { color: #D6D0E0; }
.member .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.member .chips span { font-size: 17px; line-height: 1; padding: 4px 7px 5px; color: var(--mc-gray); background: rgba(255, 255, 255, 0.06);
  border: 2px solid #2A2238; }

/* ---- open staff spots ---- */
.slots { margin-top: 30px; }
.slots .tag { color: var(--mc-gray); }
.slots .fig { opacity: 0.9; filter: none; }
.cta { margin: 26px 0 0; display: flex; justify-content: center; }
