/* The Arcade: its HUD pieces (arcadehud.js), the Arcade menu and the Play menu's box (ui/arcade.js), and the
   results podium. The score box reuses the duel score box's classes (hud-score, score-team, score-mid). */

/* ---------------------------------------------------------------- HUD */

/* The phone's prompt pill stays hidden in the Arcade: the respawn card says what the Use button does. */
#hud[data-kind="arcade"] .prompt { display: none; }

.ac-score .score-team { position: relative; min-width: 86px; }
.ac-score .score-team em { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-score .score-team b.pop { animation: ac-score-pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1); }
.ac-score .score-mid span { white-space: nowrap; }
.ac-score.is-ot .score-mid { background: var(--yellow); box-shadow: 0 4px 0 var(--yellow-dark); }
.ac-score.is-ot .score-mid span { color: var(--ink); }
/* A crown over whoever leads. */
.ac-crown {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 26px;
  height: 22px;
  margin-left: -13px;
  opacity: 0;
  transform: translateY(8px) scale(0.5);
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.ac-crown svg { display: block; width: 100%; height: 100%; fill: var(--yellow); stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.score-team.is-lead .ac-crown { opacity: 1; transform: none; }
body.touch .ac-score { pointer-events: auto; cursor: pointer; }
@keyframes ac-score-pop { 35% { transform: scale(1.4); } }

/* Gun Game: the weapon you're on, the next, and a pip a step (the leader's step ringed in red). */
.ac-ladder {
  position: absolute;
  left: 50%;
  top: 86px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 6px 14px 8px;
  border-radius: 14px;
  background: rgba(18, 32, 58, 0.55);
  white-space: nowrap;
}
.ac-ladder-now { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.ac-ladder-now b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1; color: var(--yellow); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.ac-ladder-now span { font-weight: 900; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: #cfe0ff; }
.ac-pips { display: flex; align-items: center; gap: 4px; }
.ac-pips i { width: 10px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); transition: background 0.2s ease; }
.ac-pips i.is-done { background: #fff; }
.ac-pips i.is-top { box-shadow: 0 0 0 2px var(--red); }
.ac-pips i.is-now { background: var(--yellow); transform: scale(1.4); box-shadow: 0 0 0 2px var(--ink); }
.ac-pips i.is-last { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; }
.ac-pips i.is-last svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ac-pips i.is-last.is-now svg { stroke: var(--ink); }
.ac-pips i.pop { animation: ac-pip-pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes ac-pip-pop { 30% { transform: scale(2.1); } }

/* Down: who got you and the count back in. */
.ac-dead {
  position: absolute;
  left: 50%;
  top: 25%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  width: max-content;
  min-width: 250px;
  max-width: calc(100vw - 32px);
  padding: 12px 24px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 6px 0 #b9cbe4, var(--shadow);
  animation: ac-rise 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.ac-dead-k { font-weight: 900; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ac-dead-by { --c: var(--red); display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; overflow-wrap: anywhere; }
.ac-dead-by::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 5px; background: var(--c); box-shadow: 0 0 0 2.5px var(--ink); }
.ac-dead-how { font-weight: 800; font-size: 14px; color: var(--ink-2); }
.ac-dead-demote { margin-top: 4px; padding: 3px 12px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 900; font-size: 13px; }
.ac-dead-back { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.ac-dead-back small { font-weight: 900; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ac-dead-back b { min-width: 30px; font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; color: var(--blue); }
.ac-dead-back b.tick { animation: ac-tick 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); }
.ac-dead-tip { margin-top: 2px; font-weight: 800; font-size: 13px; color: var(--muted); }
body.touch .ac-dead.is-tap { pointer-events: auto; cursor: pointer; }
/* Phones: the kill feed (top left, under the health bar) steps aside for the card while you're down. */
body.touch #hud.ac-down .killfeed { visibility: hidden; }
body.touch .ac-dead.is-tap .ac-dead-tip { color: var(--blue); }
@keyframes ac-rise { from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.92); } }
@keyframes ac-tick { 30% { transform: scale(1.35); } }

/* The opening countdown's loadout hint. */
.ac-tip {
  position: absolute;
  left: 50%;
  top: calc(50% + 64px);
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 8px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 5px 0 #b9cbe4;
}
body.touch .ac-tip { pointer-events: auto; cursor: pointer; }

/* Level up, taking the lead, the last minute: a pop that settles and floats away. */
.ac-pop {
  position: absolute;
  left: 50%;
  top: 33%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}
.ac-pop.on { animation: ac-pop 2.1s ease-out both; }
.ac-pop b { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 58px); line-height: 1; color: var(--yellow); text-shadow: var(--outline); white-space: nowrap; }
.ac-pop span { max-width: calc(100vw - 32px); padding: 3px 12px; border-radius: 999px; background: rgba(18, 32, 58, 0.72); color: #fff; font-weight: 900; font-size: 16px; }
.ac-pop.is-level b { color: #5ff08e; }
.ac-pop.is-minute b { color: #fff; }
@keyframes ac-pop {
  0% { opacity: 0; transform: translateX(-50%) scale(0.4); }
  12% { opacity: 1; transform: translateX(-50%) scale(1.14); }
  22% { transform: translateX(-50%) scale(1); }
  78% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-14px); }
}

/* Your spawn protection draining away (it ends at once when you shoot). */
.ac-shield {
  position: absolute;
  left: 50%;
  top: calc(50% + 66px);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 5px 12px 7px;
  border-radius: 12px;
  background: rgba(18, 32, 58, 0.55);
}
.ac-shield b { font-weight: 900; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #bfe6ff; }
.ac-shield i { display: block; width: 120px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.ac-shield u { display: block; height: 100%; background: #7dd3fc; transform-origin: left center; }

/* The leaderboard (Tab, or a tap on the score). */
.ac-board {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  overflow: hidden;
  padding: 14px 18px 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.ac-board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ac-board-head b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; }
.ac-board-head span { font-weight: 800; font-size: 13px; color: var(--muted); text-align: right; }
.ac-board table { width: 100%; border-collapse: collapse; font-weight: 800; font-size: 14px; }
.ac-board th { padding: 3px 6px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-align: right; text-transform: uppercase; }
.ac-board th:nth-child(2) { text-align: left; }
.ac-board td { padding: 4px 6px; text-align: right; }
.ac-board td.ac-pl { width: 38px; color: var(--muted); font-size: 12px; text-align: center; }
.ac-board td.ac-nm { max-width: 190px; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.ac-board td.ac-wp { max-width: 120px; overflow: hidden; color: var(--ink-2); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.ac-board tr.me td { background: #fff7d1; }
.ac-board tr.me td:first-child { border-radius: 10px 0 0 10px; }
.ac-board tr.me td:last-child { border-radius: 0 10px 10px 0; }
.ac-board tr.dead td { opacity: 0.5; }
.ac-board em { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10.5px; font-style: normal; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 1px; }
.ac-dot { display: inline-block; width: 11px; height: 11px; margin-right: 8px; border-radius: 4px; background: var(--c); box-shadow: 0 0 0 2px var(--ink); vertical-align: -1px; }
.ac-gold { display: inline-block; width: 20px; height: 17px; vertical-align: -3px; }
.ac-gold svg { display: block; width: 100%; height: 100%; fill: var(--yellow); stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.ac-board-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ac-board-teams h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--c); }
.ac-board-teams h3 b { min-width: 44px; padding: 2px 8px; border-radius: 10px; background: var(--c); color: #fff; font-size: 22px; text-align: center; }
.ac-board-teams td.ac-nm { max-width: 120px; }
body.touch .ac-board { pointer-events: auto; }

/* Phones: the score box fits between the pause icon and the minimap like a duel's. */
@media (max-width: 900px) {
  .ac-score .score-team { min-width: 58px; }
  .ac-score .score-team em { max-width: 70px; }
  .ac-ladder { top: 72px; padding: 5px 10px 6px; }
  .ac-ladder-now b { font-size: 17px; }
  .ac-board-teams { gap: 10px; }
  .ac-board-teams th:last-child, .ac-board-teams td:last-child { display: none; }
}
/* Upright phones: the score box must fit between the pause icon and the minimap, like a duel's (its
   middle line wraps there too). */
@media (max-width: 480px) {
  .ac-score .score-mid { min-width: 0; padding: 6px 7px; }
  .ac-score .score-mid b { font-size: 24px; }
  .ac-score .score-mid span { white-space: normal; text-align: center; line-height: 1.15; }
  .ac-score .score-team { min-width: 52px; padding: 4px 5px; }
  .ac-score .score-team em { max-width: 40px; }
}
@media (max-width: 380px) {
  .ac-pop span { font-size: 14px; }
  .ac-score .score-team { min-width: 48px; }
  .ac-score .score-team em { max-width: 46px; font-size: 10px; }
}
/* Short screens (a phone on its side): everything a little tighter. */
@media (max-height: 520px) {
  .ac-dead { top: 22%; padding: 8px 18px 10px; }
  .ac-dead-by { font-size: 24px; }
  .ac-dead-back b { font-size: 34px; }
  .ac-board { padding: 10px 14px 8px; max-height: calc(100vh - 24px); }
  .ac-board-head b { font-size: 19px; }
  .ac-board table { font-size: 12.5px; }
  .ac-board td { padding: 2px 5px; }
  .ac-ladder { top: 66px; gap: 4px; }
  .ac-ladder-now span { display: none; }
}
/* Upright phones: no room for Gun Game's ladder up top (the health bar and the ammo counter are there):
   the lines top left say the level, the weapon and the next one instead. The respawn card goes under the
   kill feed. */
@media (max-aspect-ratio: 1/1) {
  body.touch .ac-ladder { display: none; }
  body.touch .ac-dead { top: 36%; }
}
/* Narrow screens: the teams' lists one above the other. */
@media (max-width: 560px) {
  .ac-board-head { flex-direction: column; gap: 2px; }
  .ac-board-head span { text-align: left; }
  .ac-board-teams { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ac-board-teams td.ac-nm { max-width: 190px; }
  .ac-board-teams th:last-child, .ac-board-teams td:last-child { display: table-cell; }
  .ac-board td.ac-wp { max-width: 84px; }
}

/* ---------------------------------------------------------------- the Play menu's box */

.ac-art { display: block; }
.ac-art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pm-arcade {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 90% 16%, rgba(255, 255, 255, 0.26) 0 22px, rgba(255, 255, 255, 0.1) 23px 36px, transparent 37px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.07) 0 18px, transparent 18px 36px),
    linear-gradient(150deg, #ffb02e 0%, #ff6a3d 46%, #e8336f 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.22), 0 5px 0 #9c1f4c;
}
.pm-badge-arcade .m-ico { color: #ff6a3d; }
.pm-acmodes { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: auto; padding-bottom: 5px; }
.pm-acmode {
  --c: var(--orange);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 8px 4px 10px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 -5px 0 var(--c), 0 0 0 3px var(--ink), 0 5px 0 3px var(--ink);
  transition: transform 0.07s ease;
}
.pm-acmode:active { transform: translateY(3px); }
@media (hover: hover) { .pm-acmode:hover { filter: brightness(1.04); } }
.pm-acmode-art { width: 46px; height: 46px; }
.pm-acmode-name { font-family: var(--display); font-weight: 400; font-size: 16px; line-height: 1.05; text-align: center; }

/* ---------------------------------------------------------------- the Arcade menu */

.ac .pnl-head {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.09) 0 16px, transparent 16px 32px),
    linear-gradient(180deg, #ff8a4d, #ee4a6a);
  box-shadow: inset 0 -5px 0 rgba(120, 20, 50, 0.3);
}
.ac .pnl-icon { color: #ee4a6a; }
.ac .pnl-body { display: grid; grid-auto-rows: max-content; align-content: start; gap: 14px; }
.ac-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-top: 6px; }
.ac-pick {
  --c: var(--orange);
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px 14px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--c) 45%, #c3cfe0), 0 0 0 3px var(--ink), 0 6px 0 3px var(--ink);
  transition: transform 0.08s ease;
}
.ac-pick:active { transform: translateY(3px); }
@media (hover: hover) { .ac-pick:not(.is-on):hover { transform: translateY(-3px); } }
.ac-pick.is-on {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, #ffffff), color-mix(in srgb, var(--c) 62%, #ffffff));
  box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--c) 70%, #12203a), 0 0 0 3px var(--ink), 0 6px 0 3px var(--ink), 0 0 0 9px color-mix(in srgb, var(--c) 45%, transparent);
}
.ac-pick .ac-art { width: 72px; height: 72px; }
.ac-pick-text { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.ac-pick-name { font-size: 25px; line-height: 1.05; }
.ac-pick-blurb { font-size: 13.5px; font-weight: 800; line-height: 1.32; color: var(--ink-2); }
.ac-pick-rule { padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 900; }
.ac-check {
  position: absolute;
  top: -10px;
  right: -10px;
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 19px;
  box-shadow: 0 0 0 3px var(--ink);
}
.ac-pick.is-on .ac-check { display: grid; animation: m-pop 0.3s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.ac-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.ac-left, .ac-right { display: grid; gap: 14px; min-width: 0; }
.ac-box { min-width: 0; padding: 14px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 2px #e1e8f2, 0 5px 0 #d3dceb; }
.ac-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 21px; }
.ac-h .m-ico { color: var(--ac, var(--orange)); font-size: 22px; }
.ac-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; color: var(--ink-2); font-weight: 800; }
.ac-who { display: flex; gap: 4px; }
.ac-who i { width: 15px; height: 15px; border-radius: 5px; background: #ffb3a1; box-shadow: 0 0 0 2px var(--ink); }
.ac-who i.is-you { background: var(--blue); }
.ac-sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-bottom: 5px; }
.ac-size, .ac-map {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 60px;
  padding: 8px 4px;
  border: 0;
  border-radius: 16px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: inset 0 -4px 0 #d3dceb, 0 0 0 3px var(--ink), 0 5px 0 3px var(--ink);
  transition: transform 0.07s ease;
}
.ac-size:active, .ac-map:active { transform: translateY(3px); }
.ac-size b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1; }
.ac-size small { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.ac-size.is-on, .ac-map.is-on { background: linear-gradient(180deg, #ffbe5c, #ff8a1f); box-shadow: inset 0 -4px 0 var(--orange-dark), 0 0 0 3px var(--ink), 0 5px 0 3px var(--ink); }
.ac-size.is-on small { color: var(--ink); }
.ac-maps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 5px; }
.ac-map { display: flex; align-items: center; justify-content: center; min-height: 46px; gap: 6px; font-size: 14.5px; font-weight: 900; }
.ac-map .m-ico { font-size: 17px; }
.ac-map b { font-weight: 900; }
.ac-facts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ac-facts li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; font-weight: 800; line-height: 1.3; }
.ac-facts b { color: var(--ink); font-weight: 900; }
.ac-fact-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--ac, var(--orange)); color: #fff; font-size: 19px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18); }
.ac-steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ac-steps li { position: relative; display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 6px 4px 6px; border-radius: 14px; background: var(--paper-2); box-shadow: inset 0 0 0 2px #e1e8f2; }
.ac-steps li.is-last { background: #fff3c4; box-shadow: inset 0 0 0 2px var(--yellow); }
.ac-step-n { position: absolute; top: 4px; left: 6px; color: var(--muted); font-family: var(--display); font-size: 14px; }
.ac-step-art { width: 100%; max-width: 74px; }
.ac-step-name { max-width: 100%; overflow: hidden; font-size: 11.5px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.ac-foot { display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 18px max(12px, env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 0 #e1e8f2; }
.ac-foot-sum { margin: 0 auto 0 0; color: var(--ink-2); font-weight: 800; }
.ac-foot-sum b { color: var(--ink); font-weight: 900; }
.ac-go { min-width: 300px; }

@media (max-width: 860px) {
  .ac-cols { grid-template-columns: minmax(0, 1fr); }
  .ac-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ac-picks { gap: 10px; }
  .ac-pick { padding: 10px 6px 12px; }
  .ac-pick .ac-art { width: 60px; height: 60px; }
  .ac-pick-name { font-size: 18px; }
  .ac-pick-blurb, .ac-pick-rule { display: none; }
  .ac-sizes { gap: 7px; }
  .ac-size small { display: none; }
  .ac-maps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .ac-foot { padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
  .ac-foot-sum { display: none; }
  .ac-go { flex: 1; min-width: 0; padding: 10px 14px; font-size: 19px; }
}
/* Landscape phones: smaller cards, so the rest shows without much scrolling. */
@media (max-height: 520px) and (min-width: 601px) {
  .ac-pick { grid-template-columns: 60px minmax(0, 1fr); justify-items: start; align-items: center; padding: 8px 12px 10px 8px; text-align: left; }
  .ac-pick .ac-art { width: 60px; height: 60px; }
  .ac-pick-text { justify-items: start; }
  .ac-pick-name { font-size: 20px; }
  .ac-pick-blurb, .ac-pick-rule { display: none; }
  .ac-size { min-height: 50px; }
  .ac-foot { padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .ac-go { min-height: 50px; padding: 8px 20px; font-size: 19px; }
}

/* ---------------------------------------------------------------- results: the podium */

.ac-hero .rs-tw-sub { color: var(--ink-2); }
.rs.is-win .ac-hero .rs-title { color: var(--yellow); }
.ac-hero .rs-wavestats > div { background: #fff; box-shadow: inset 0 0 0 2px #e1e8f2, 0 4px 0 #d3dceb; color: var(--ink); }
.ac-teamscore { margin-bottom: 4px; }
.ac-podium { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin-top: 4px; }
.ac-step { --c: var(--blue); display: grid; justify-items: center; gap: 6px; width: 132px; min-width: 0; }
.ac-step-who { position: relative; display: grid; justify-items: center; gap: 3px; min-width: 0; max-width: 100%; }
.ac-step-who b { max-width: 100%; overflow: hidden; font-size: 14px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.ac-step-who em { padding: 0 7px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
/* A blocky face in the fighter's colour. */
.ac-step-face {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--c);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18), 0 0 0 3px var(--ink);
  animation: rs-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.ac-step-face::before, .ac-step-face::after { content: ""; position: absolute; top: 13px; width: 7px; height: 10px; border-radius: 3px; background: #fff; }
.ac-step-face::before { left: 10px; }
.ac-step-face::after { right: 10px; }
.ac-step-crown { position: absolute; top: -26px; left: 50%; width: 30px; height: 26px; margin-left: -15px; color: var(--yellow); filter: drop-shadow(0 2px 0 var(--ink)); }
.ac-step-crown .m-ico { width: 100%; height: 100%; }
.ac-step-block {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 1px;
  width: 100%;
  padding-top: 8px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 60%, #ffffff), var(--c));
  color: #fff;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.18), 0 0 0 3px var(--ink);
  transform-origin: bottom;
  animation: ac-grow 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}
.ac-step-block strong { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; text-shadow: var(--outline); }
.ac-step-block small { font-size: 12px; font-weight: 900; text-shadow: 0 1px 0 rgba(18, 32, 58, 0.5); }
.ac-step-1 .ac-step-block { height: 92px; }
.ac-step-2 .ac-step-block { height: 68px; animation-delay: 0.12s; }
.ac-step-3 .ac-step-block { height: 52px; animation-delay: 0.22s; }
.ac-step.is-me .ac-step-face { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18), 0 0 0 3px var(--ink), 0 0 0 7px var(--yellow); }
@keyframes ac-grow { from { transform: scaleY(0.2); opacity: 0; } }
@media (max-width: 760px) {
  .ac-step { width: 100px; }
  .ac-step-1 .ac-step-block { height: 70px; }
  .ac-step-2 .ac-step-block { height: 54px; }
  .ac-step-3 .ac-step-block { height: 42px; }
  .ac-step-block strong { font-size: 24px; }
}
/* Phones on their side: a shorter top, so the rewards aren't far below. */
@media (max-height: 520px) {
  .ac-hero { gap: 8px; padding-top: 14px; padding-bottom: 16px; }
  .ac-hero .rs-title { font-size: 46px; }
  .ac-step { width: 96px; }
  .ac-step-face { width: 30px; height: 30px; border-radius: 9px; }
  .ac-step-face::before, .ac-step-face::after { top: 9px; width: 6px; height: 8px; }
  .ac-step-face::before { left: 7px; }
  .ac-step-face::after { right: 7px; }
  .ac-step-block { padding-top: 5px; }
  .ac-step-1 .ac-step-block { height: 60px; }
  .ac-step-2 .ac-step-block { height: 50px; }
  .ac-step-3 .ac-step-block { height: 44px; }
  .ac-step-block strong { font-size: 22px; }
  .ac-hero .rs-wavestats > div { min-width: 90px; padding: 4px 12px; }
  .ac-hero .rs-wavestats b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-pop.on, .ac-step-block, .ac-step-face, .ac-dead { animation: none; }
  .ac-pop.on { opacity: 1; }
}
