/* Element Arena landing page. Static, no build step (docs/website.md).
   Layout: a full-bleed art hero, then bands that alternate two grounds; the
   content sits in one centred column. Colours and type follow the game's own
   tokens (apps/client/src/ui/tokens.css): navy surfaces, gold for the main
   action, Barlow Condensed for display, DM Sans for text. */

@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 800;
  font-display: swap;
  src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/dm-sans-latin-600-normal.woff2") format("woff2");
}

/* Arena Dusk: the game's navy and gold (chosen by the owner, 25 Nov). */
:root {
  --bg: #0b1020;
  --bg-alt: #111a33;
  --surface: #18244a;
  --line: #8baee533;
  --text: #eef2ff;
  --dim: #a9b6cf;
  --accent: #ffd65b;
  --accent-hi: #ffe58f;
  --accent-ink: #2a1a00;
  --accent-text: #ffd65b;
  --hero-ink: #ffffff;
  --hero-shade: #0b1020;
  --bar: #0b1020d9;
  --display:
    "Barlow Condensed", "Arial Narrow", "Roboto Condensed",
    sans-serif-condensed, system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --el-electric: #ffd84a;
  --el-fire: #ff7a45;
  --el-water: #4fb3ff;
  --el-aura: #7fe7ff;
  --el-light: #fff1a8;
  --el-psychic: #c47dff;
  --el-earth: #c8955a;
  --el-shadow: #8a6bff;
  --el-nature: #7fcf6a;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Layout rules (display: grid/flex) must never undo the hidden attribute. */
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(64px + env(safe-area-inset-top, 0px));
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 30;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus {
  top: calc(12px + env(safe-area-inset-top, 0px));
}

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Top bar ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 21;
  background: var(--bar);
}
.bar {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bar);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar-in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 800 1.35rem/1 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand img {
  border-radius: 8px;
}
.nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  color: var(--dim);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 8px;
}
.nav a:hover {
  color: var(--text);
}
.bar .btn-play {
  margin-left: auto;
}
@media (min-width: 760px) {
  .nav {
    display: flex;
  }
  .bar .btn-play {
    margin-left: 8px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 800 1.3rem/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}
.btn-play {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-play:hover {
  background: var(--accent-hi);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--hero-ink);
  border: 2px solid color-mix(in srgb, var(--hero-ink) 55%, transparent);
}
.btn-ghost:hover {
  border-color: var(--hero-ink);
}
.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 1.1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(92svh, 860px);
  padding-top: calc(60px + env(safe-area-inset-top, 0px));
  isolation: isolate;
  overflow: hidden;
  color: var(--hero-ink);
}
.hero-art,
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  z-index: -2;
}
/* Phones held upright: the whole painting across the top (both fighters and
   the beam, no crop), the words under it. */
@media (max-width: 899px) and (orientation: portrait) {
  .hero {
    display: block;
    min-height: 0;
    padding-top: 60px;
    background: var(--hero-shade);
  }
  .hero-art {
    position: relative;
    display: block;
    height: auto;
    aspect-ratio: 1.8;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
    mask-image: linear-gradient(to bottom, #000 80%, transparent);
  }
  .hero-art img {
    object-position: 50% 38%;
  }
  .hero-in {
    padding-block: 6px 36px;
  }
  .hero::after {
    display: none;
  }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to top,
      var(--hero-shade) 0%,
      color-mix(in srgb, var(--hero-shade) 82%, transparent) 30%,
      color-mix(in srgb, var(--hero-shade) 10%, transparent) 62%,
      transparent 80%
    ),
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--hero-shade) 55%, transparent),
      transparent 22%
    );
}
.hero-in {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 max(20px, env(safe-area-inset-right, 0px)) 44px
    max(20px, env(safe-area-inset-left, 0px));
  display: grid;
  gap: 16px;
  justify-items: start;
}
.eyebrow {
  font: 700 0.95rem/1.2 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.hero .eyebrow {
  text-shadow: 0 1px 8px color-mix(in srgb, var(--hero-shade) 80%, transparent);
}
.hero h1 {
  font-size: clamp(2.9rem, 11vw, 5.6rem);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 24px color-mix(in srgb, var(--hero-shade) 60%, transparent);
}
.lede {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  max-width: 36em;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.fine {
  font-size: 0.9rem;
  opacity: 0.85;
}
/* Wide screens: the painting is a band of its own across the top, cut to
   its two fighters and the beam (14% to 72% of its height), and the words
   sit under it, centred, so no word ever covers a creature (owner, 26 Nov).
   The band is as tall as the screen leaves room for under the words; on a
   short screen it is narrower than the window, its sides fading out. */
@media (min-width: 900px) and (min-height: 501px) {
  .hero {
    display: block;
    min-height: 0;
    padding-top: 60px;
    background: var(--hero-shade);
  }
  .hero-art {
    position: relative;
    display: block;
    height: clamp(300px, calc(100svh - 60px - 300px), 38.7vw);
    overflow: hidden;
  }
  .hero-art img {
    left: 50%;
    right: auto;
    width: auto;
    max-width: none;
    aspect-ratio: 2.585;
    translate: -50% 0;
    object-position: 50% 33%;
    -webkit-mask-image:
      linear-gradient(to bottom, #000 80%, transparent),
      linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to bottom, #000 80%, transparent),
      linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
    mask-composite: intersect;
  }
  .hero::after {
    display: none;
  }
  .hero-in {
    justify-items: center;
    text-align: center;
    gap: 12px;
    padding-block: 8px 44px;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 4.3vw, 4.4rem);
  }
  .hero h1 br {
    display: none;
  }
  .lede {
    max-width: 44em;
  }
  .cta {
    justify-content: center;
  }
}
/* Phones held sideways: the painting is a band of its own across the top,
   the words under it; nothing on top of the fighters. */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    display: block;
    min-height: 0;
    padding-top: 0;
    background: var(--hero-shade);
  }
  .hero-art {
    position: relative;
    display: block;
    height: auto;
    aspect-ratio: 21 / 9;
    max-height: calc(100svh - 60px);
    margin-top: 56px;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
    mask-image: linear-gradient(to bottom, #000 78%, transparent);
  }
  .hero-art img {
    object-position: 50% 32%;
  }
  .hero::after {
    display: none;
  }
  .hero-in {
    padding-block: 4px 28px;
    gap: 10px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero h1 br {
    display: none;
  }
  .lede {
    font-size: 1rem;
  }
  .fine {
    display: none;
  }
}

/* ---------- Bands ---------- */
.band {
  padding-block: clamp(56px, 9vw, 104px);
}
.band.alt {
  background: var(--bg-alt);
}
.head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 44px);
  max-width: 720px;
}
.head h2 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  text-transform: uppercase;
}
.sub {
  color: var(--dim);
  font-size: 1.08rem;
  max-width: 40em;
}
.note {
  color: var(--dim);
  margin-top: 28px;
  max-width: 48em;
}

/* At a glance */
.facts {
  padding-block: 0;
  border-bottom: 1px solid var(--line);
}
.facts-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-block: 22px;
  gap: 18px 12px;
}
.facts-row li {
  display: grid;
  gap: 2px;
}
.facts-row b {
  font: 800 2.6rem/1 var(--display);
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.facts-row span {
  color: var(--dim);
  font-size: 0.95rem;
}
@media (min-width: 700px) {
  .facts-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Roster: two per element, so pairs stay side by side ---------- */
.roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) {
  .roster {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .roster {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.mon {
  display: grid;
}
.mon-btn {
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  gap: 2px;
  padding: 12px 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(
      circle at 50% 38%,
      color-mix(in srgb, var(--el) 30%, transparent),
      transparent 62%
    ),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--el) 30%, var(--line));
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.mon-btn:hover,
.mon-btn:focus-visible {
  transform: translateY(-3px);
  border-color: var(--el);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--el) 28%, transparent);
}
.mon img {
  width: min(140px, 100%);
  aspect-ratio: 200 / 202;
  margin-bottom: 6px;
  transition: transform 0.25s ease;
}
.mon-btn:hover img {
  transform: translateY(-6px) scale(1.06);
  animation: bob 1.6s ease-in-out 0.25s infinite;
}
@keyframes bob {
  50% {
    transform: translateY(-2px) scale(1.06);
  }
}
.mon h3 {
  font-size: 1.6rem;
  text-transform: uppercase;
}
.el {
  font: 700 0.85rem/1.4 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--el) 78%, var(--text));
}
.role {
  color: var(--dim);
  font-size: 0.92rem;
  line-height: 1.35;
}

/* The champion ticker: the roster drifting across under the facts. */
.ticker {
  margin-top: 26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.ticker-run {
  display: flex;
  gap: 10px;
  width: max-content;
}
.tick {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--el) 40%, var(--line));
  background: color-mix(in srgb, var(--el) 8%, var(--surface));
  color: var(--text);
  text-decoration: none;
  font: 700 1rem/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tick img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--el) 22%, var(--bg-alt));
}
.tick:hover,
.tick:focus-visible {
  border-color: var(--el);
  background: color-mix(in srgb, var(--el) 20%, var(--surface));
}
/* Without motion the ticker is a row to scroll by hand. */
@media (prefers-reduced-motion: reduce) {
  .ticker {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ---------- Modes ---------- */
.modes {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .modes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.modes li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 8px 12px;
  padding: 0 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
/* Each mode's picture runs edge to edge across the top of its card. */
.mode-art {
  grid-column: 1 / -1;
  display: block;
  margin: 0 -18px 6px;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
}
.mode-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modes h3 {
  font-size: 1.8rem;
  text-transform: uppercase;
}
.modes .count {
  align-self: center;
  font: 700 0.95rem/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  border: 1px solid color-mix(in srgb, var(--accent-text) 50%, transparent);
  border-radius: 999px;
  padding: 7px 10px 6px;
  white-space: nowrap;
}
.modes li > p:last-child {
  grid-column: 1 / -1;
  color: var(--dim);
}

/* ---------- Raid bosses: a stage and a picker ---------- */
/* A stage shows one boss's splash at a time (only its picture downloads);
   the seven bosses under it, in the Raid Hub's order, pick which. */
.raid-week {
  display: grid;
  gap: 12px;
}
.raid-stage {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: #05070f;
  isolation: isolate;
}
.raid {
  position: relative;
  display: grid;
  border: 1px solid color-mix(in srgb, var(--el) 45%, var(--line));
  border-radius: inherit;
  overflow: hidden;
}
.raid-art {
  position: relative;
  grid-area: 1 / 1;
  display: block;
  overflow: hidden;
}
.raid-art img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.raid-tx {
  grid-area: 2 / 1;
  display: grid;
  gap: 6px;
  align-content: end;
  padding: 16px 16px 18px;
  color: #ffffff;
  background:
    radial-gradient(
      120% 90% at 50% 0%,
      color-mix(in srgb, var(--el) 22%, transparent),
      transparent 70%
    ),
    #0a0f1f;
}
.raid h3 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.raid-when {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 0.85rem/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9e0f2;
}
.start-tag {
  display: inline-block;
  padding: 4px 8px 3px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}
.stars {
  color: var(--el);
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  line-height: 1;
}
.stars span {
  opacity: 0.3;
}
.epithet {
  font-size: 0.95rem;
  color: #d9e0f2;
  line-height: 1.3;
}
.blurb {
  display: none;
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #dfe6f7;
}
.beat {
  margin-top: 10px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  border-left: 3px solid var(--el);
  background: color-mix(in srgb, var(--el) 14%, #05070fb3);
}
.beat span {
  font: 700 0.75rem/1 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--el) 75%, #ffffff);
}
.trick {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  color: #ffffff;
}
/* Wider screens: the splash and the words side by side, never on top of each
   other, so no word covers a boss's face. The picture fades into the words'
   panel; --fx keeps the boss's face in view where the picture is cut. */
@media (min-width: 600px) {
  .raid {
    height: clamp(300px, 46vw, 540px);
    max-height: max(300px, 100svh - 110px);
    grid-template-columns: minmax(0, 1fr) minmax(250px, 38%);
    background:
      radial-gradient(
        120% 90% at 100% 50%,
        color-mix(in srgb, var(--el) 20%, transparent),
        transparent 70%
      ),
      #0a0f1f;
  }
  .raid[data-side="left"] {
    grid-template-columns: minmax(250px, 38%) minmax(0, 1fr);
    background:
      radial-gradient(
        120% 90% at 0% 50%,
        color-mix(in srgb, var(--el) 20%, transparent),
        transparent 70%
      ),
      #0a0f1f;
  }
  .raid-art {
    grid-area: 1 / 1;
  }
  .raid[data-side="left"] .raid-art {
    grid-area: 1 / 2;
  }
  .raid-art img {
    aspect-ratio: auto;
    object-position: var(--fx, 50%) 50%;
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 64px);
    mask-image: linear-gradient(to left, transparent 0, #000 64px);
  }
  .raid[data-side="left"] .raid-art img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 64px);
    mask-image: linear-gradient(to right, transparent 0, #000 64px);
  }
  .raid-tx {
    grid-area: 1 / 2;
    align-self: center;
    padding: 20px clamp(16px, 2.6vw, 36px) 20px clamp(8px, 1.4vw, 16px);
    background: none;
  }
  .raid[data-side="left"] .raid-tx {
    grid-area: 1 / 1;
    padding: 20px clamp(8px, 1.4vw, 16px) 20px clamp(16px, 2.6vw, 36px);
  }
}
@media (min-width: 1000px) {
  .blurb {
    display: block;
  }
}

.raid-picks {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.pick {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 8px 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--dim);
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    color 0.2s;
}
.pick img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 24%;
  border: 2px solid color-mix(in srgb, var(--el) 70%, transparent);
  filter: saturate(0.6) brightness(0.8);
  transition: filter 0.2s;
}
.pick .s {
  color: var(--el);
  font-size: 0.68rem;
  line-height: 1;
}
/* Read out on phones too (the tab's name), but shown from 760px. */
.pick .n {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  font-size: 0.8rem;
  line-height: 1.2;
  text-align: center;
}
.pick:hover img,
.pick[aria-selected="true"] img {
  filter: none;
}
.pick[aria-selected="true"] {
  border-color: var(--el);
  background: color-mix(in srgb, var(--el) 16%, var(--surface));
  color: var(--text);
}
.pick[aria-selected="true"] img {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--el) 35%, transparent);
}
.pick:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
@media (min-width: 760px) {
  .pick {
    padding: 10px 6px;
  }
  .pick img {
    width: 52px;
    height: 52px;
  }
  .pick .n {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
}

/* ---------- Make it yours ---------- */
.split {
  display: grid;
  gap: 8px 48px;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}
/* ---------- The Shop spotlight ---------- */
/* One piece at a time on a lit stage: the fitting room's own loop, light
   rays turning behind it in its rarity's colour, sparks rising, its price;
   six pieces to pick from under it. site.js turns it every few seconds
   until the reader picks one. */
.shop-show {
  display: grid;
  gap: 14px;
}
.spot {
  --r: #ffc94d;
  --r2: #ff8a3d;
  display: grid;
  gap: 0;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--r) 55%, transparent);
  background:
    radial-gradient(
      120% 80% at 30% 40%,
      color-mix(in srgb, var(--r) 18%, transparent),
      transparent 65%
    ),
    #0a0f1f;
  box-shadow:
    0 0 0 1px #ffffff0d inset,
    0 24px 60px -30px color-mix(in srgb, var(--r) 70%, transparent);
}
.spot.r-mythical {
  --r: #ff7ad9;
  --r2: #8a6bff;
}
@media (min-width: 640px) {
  .spot {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
  }
}
.spot-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1;
  max-height: min(78svh, 520px);
  justify-self: center;
  width: 100%;
}
.spot-stage picture,
.spot-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spot-stage img {
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
  mask-image: radial-gradient(closest-side, #000 72%, transparent);
}
/* Rays: a turning fan of the rarity's light behind the piece. */
.spot-rays {
  position: absolute;
  inset: -30%;
  z-index: -1;
  background: repeating-conic-gradient(
    from 0deg,
    color-mix(in srgb, var(--r) 38%, transparent) 0deg 9deg,
    transparent 9deg 24deg
  );
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 70%);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 70%);
  opacity: 0.55;
}
.spot.r-mythical .spot-rays {
  background: repeating-conic-gradient(
    from 0deg,
    color-mix(in srgb, var(--r) 40%, transparent) 0deg 8deg,
    transparent 8deg 16deg,
    color-mix(in srgb, var(--r2) 40%, transparent) 16deg 24deg,
    transparent 24deg 34deg
  );
}
/* Sparks rising through the stage: three layers of dots on tiles of
   unrelated sizes (so they never line up into a grid), drifting up at
   different speeds, fading out towards the stage's edge. */
.spot-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 23% 61%, #fff 0 1.2px, transparent 2px),
    radial-gradient(
      circle at 71% 18%,
      color-mix(in srgb, var(--r) 90%, #fff) 0 1.8px,
      transparent 2.8px
    ),
    radial-gradient(
      circle at 44% 83%,
      color-mix(in srgb, var(--r2) 80%, #fff) 0 1.4px,
      transparent 2.4px
    );
  background-size:
    97px 131px,
    163px 149px,
    211px 233px;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent);
  mask-image: radial-gradient(closest-side, #000 35%, transparent);
  opacity: 0.6;
}
.spot-tx {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 18px 20px 22px;
}
@media (min-width: 640px) {
  .spot-tx {
    padding: 24px clamp(18px, 3vw, 40px) 24px 8px;
  }
}
.spot-r {
  font: 700 0.85rem/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--r);
}
.spot h3 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  background: linear-gradient(
    100deg,
    #fff 30%,
    color-mix(in srgb, var(--r) 70%, #fff) 50%,
    #fff 70%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.spot-k {
  color: var(--dim);
  font-weight: 600;
}
.spot-d {
  max-width: 44ch;
}
.spot-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  margin-top: 6px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: #ffd65b1f;
  border: 1px solid #ffd65b59;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.spot-price b {
  font: 800 1.35rem/1 var(--display);
  color: var(--accent-text);
}
.spot-note {
  font-size: 0.88rem;
  color: var(--dim);
}
.spot-go {
  justify-self: start;
  margin-top: 8px;
}

.shop-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 640px) {
  .shop-picks {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.shop-pick {
  --r: #ffc94d;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 6px 4px 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--dim);
  font: 600 0.8rem/1.2 var(--body);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s,
    transform 0.2s,
    color 0.2s;
}
.shop-pick.r-mythical {
  --r: #ff7ad9;
}
.shop-pick img {
  width: 100%;
  max-width: 96px;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
}
.shop-pick[aria-selected="true"] {
  color: var(--text);
  border-color: var(--r);
  background: color-mix(in srgb, var(--r) 14%, var(--surface));
  box-shadow: 0 0 18px -4px color-mix(in srgb, var(--r) 70%, transparent);
}
.shop-pick:hover {
  color: var(--text);
  transform: translateY(-2px);
}
.shop-pick:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
/* A thin bar fills under the piece on show while the spotlight turns. */
.shop-pick[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--r);
  transform-origin: left;
  transform: scaleX(var(--turn, 1));
}

/* ---------- Mobile apps ---------- */
.app {
  background:
    radial-gradient(
      ellipse at 85% 20%,
      color-mix(in srgb, var(--accent) 16%, transparent),
      transparent 60%
    ),
    var(--bg-alt);
}
.app-side {
  display: grid;
  gap: 16px;
  align-self: center;
}
/* A phone held sideways, playing a real match (img/shots, from the game). */
.phone {
  margin: 0;
  padding: 10px 14px;
  border-radius: 28px;
  background: #05070f;
  border: 2px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  box-shadow:
    0 18px 50px #0008,
    inset 0 0 0 1px #ffffff14;
  transform: rotate(-2deg);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.stores {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-self: center;
}
.store {
  display: grid;
  gap: 2px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 2px dashed var(--line);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.store-k {
  font: 700 0.85rem/1.2 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.store-n {
  font: 800 2rem/1.1 var(--display);
  text-transform: uppercase;
}
.store-d {
  color: var(--dim);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px));
}
.foot-in {
  display: grid;
  gap: 16px;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-inline: -10px;
}
.foot-nav a {
  color: var(--dim);
  padding: 12px 10px;
  text-decoration: none;
}
.foot-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}
.copy {
  color: var(--dim);
  font-size: 0.88rem;
}
@media (min-width: 900px) {
  .foot-in {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .foot-nav {
    justify-content: flex-end;
  }
  .copy {
    grid-column: 1 / -1;
  }
}

/* ---------- Element filter ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: 700 1rem/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--el);
}
.chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.hint {
  color: var(--dim);
  font-size: 0.92rem;
  margin-top: 14px;
}
.roster > li[hidden] {
  display: none;
}

/* ---------- Motion: the hero's slow drift and entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* The champion ticker drifts; a pointer on it stops it. */
  .ticker-run {
    animation: ticker 70s linear infinite;
  }
  .ticker:hover .ticker-run,
  .ticker:focus-within .ticker-run {
    animation-play-state: paused;
  }
  @keyframes ticker {
    to {
      transform: translateX(calc(-50% - 5px));
    }
  }
  /* The hero's painting catches the light: a band of it sweeps across now
     and then. */
  .hero-art::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      105deg,
      transparent 38%,
      #ffffff1f 47%,
      #fff3 50%,
      #ffffff1f 53%,
      transparent 62%
    );
    background-size: 300% 100%;
    mix-blend-mode: screen;
    animation: hero-sweep 9s ease-in-out 1.5s infinite;
  }
  @keyframes hero-sweep {
    0% {
      background-position: 120% 0;
    }
    45%,
    100% {
      background-position: -20% 0;
    }
  }
  /* A mode's picture leans in under the pointer. */
  .mode-art img {
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .modes li:hover .mode-art img {
    transform: scale(1.07);
  }
  .spot-rays {
    animation: spot-turn 28s linear infinite;
  }
  .spot-stage::after {
    animation: spot-sparks 9s linear infinite;
  }
  .spot h3 {
    animation: spot-sheen 5s ease-in-out infinite;
  }
  .spot.enter .spot-stage img {
    animation: spot-pop 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
  }
  .spot.enter .spot-tx > * {
    animation: raid-up 0.5s ease both;
  }
  .spot.enter .spot-tx > :nth-child(2) {
    animation-delay: 60ms;
  }
  .spot.enter .spot-tx > :nth-child(n + 3) {
    animation-delay: 120ms;
  }
  .shop-show.turning .shop-pick[aria-selected="true"]::after {
    animation: spot-bar var(--turn-ms, 7000ms) linear both;
  }
  @keyframes spot-turn {
    to {
      rotate: 360deg;
    }
  }
  @keyframes spot-sparks {
    from {
      background-position:
        0 0,
        0 0,
        0 0;
    }
    to {
      background-position:
        6px -524px,
        -8px -298px,
        4px -233px;
    }
  }
  @keyframes spot-sheen {
    0%,
    40% {
      background-position: 100% 0;
    }
    70%,
    100% {
      background-position: 0 0;
    }
  }
  @keyframes spot-pop {
    from {
      opacity: 0;
      scale: 0.85;
    }
    to {
      opacity: 1;
      scale: 1;
    }
  }
  @keyframes spot-bar {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }
  .hero-art img {
    animation: drift 26s ease-in-out infinite alternate;
    transition: translate 0.6s ease-out;
  }
  @keyframes drift {
    from {
      transform: scale(1.04);
    }
    to {
      transform: scale(1.12) translate(-1.5%, -1%);
    }
  }
  .hero-in > * {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-in > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .hero-in > :nth-child(3) {
    animation-delay: 0.16s;
  }
  .hero-in > :nth-child(4) {
    animation-delay: 0.24s;
  }
  .hero-in > :nth-child(5) {
    animation-delay: 0.32s;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }
  .btn-play {
    position: relative;
    overflow: hidden;
  }
  .btn-play::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      100deg,
      transparent 30%,
      #ffffff8c 50%,
      transparent 70%
    );
    transform: translateX(-120%);
    animation: shine 4.5s ease-in-out 1.2s infinite;
  }
  @keyframes shine {
    18%,
    100% {
      transform: translateX(120%);
    }
  }
  /* Revealed on scroll (site.js marks only what starts below the fold). */
  /* Starts readable (a still frame or a full-page capture still shows it). */
  .js .reveal {
    opacity: 0.35;
    transform: translateY(26px);
    transition:
      opacity 0.6s ease var(--d, 0ms),
      transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
  /* A boss entering the stage: the splash settles, a warning ring pulses
     where the boss stands (the game's wind-up telegraph), the name wipes in. */
  .raid.enter .raid-art img {
    animation: raid-settle 1.6s cubic-bezier(0.16, 0.8, 0.24, 1) both;
  }
  .raid.enter .raid-art::after {
    content: "";
    position: absolute;
    left: var(--fx, 50%);
    top: 54%;
    width: min(40%, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid var(--el);
    box-shadow:
      0 0 24px color-mix(in srgb, var(--el) 60%, transparent),
      inset 0 0 24px color-mix(in srgb, var(--el) 40%, transparent);
    translate: -50% -50%;
    pointer-events: none;
    animation: raid-ring 1.1s ease-out 0.15s 2 both;
  }
  .raid.enter h3 {
    animation: raid-wipe 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
  }
  .raid.enter .raid-tx > :not(h3) {
    animation: raid-up 0.6s ease both;
    animation-delay: calc(0.25s + var(--i, 0) * 70ms);
  }
  .raid-tx > :nth-child(1) {
    --i: 0;
  }
  .raid-tx > :nth-child(2) {
    --i: 1;
  }
  .raid-tx > :nth-child(4) {
    --i: 3;
  }
  .raid-tx > :nth-child(5) {
    --i: 4;
  }
  .raid-tx > :nth-child(6) {
    --i: 5;
  }
  @keyframes raid-settle {
    from {
      transform: scale(1.14);
      filter: brightness(1.6) saturate(1.3);
    }
    to {
      transform: none;
      filter: none;
    }
  }
  @keyframes raid-ring {
    from {
      opacity: 0.9;
      scale: 0.25;
    }
    to {
      opacity: 0;
      scale: 1.3;
    }
  }
  @keyframes raid-wipe {
    from {
      clip-path: inset(0 100% 0 0);
      translate: -12px 0;
    }
    to {
      clip-path: inset(0 0 0 0);
      translate: 0 0;
    }
  }
  @keyframes raid-up {
    from {
      opacity: 0;
      translate: 0 12px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}

/* ---------- Champion panel ---------- */
.panel-open {
  overflow: hidden;
}
.champ {
  width: min(1040px, 100vw - 24px);
  max-height: min(92svh, 900px);
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--el) 45%, var(--line));
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg-alt);
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
}
.champ::backdrop {
  background: #04060dcc;
  backdrop-filter: blur(4px);
}
.champ-in {
  position: relative;
  display: grid;
}
@media (min-width: 820px) {
  .champ-in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  /* The art stays in view while the details scroll beside it. */
  .champ-in > .champ-stage {
    position: sticky;
    top: 0;
    align-self: start;
    height: min(92svh, 900px);
  }
}
.champ-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--text);
  cursor: pointer;
}
.champ-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 28px 20px 64px;
  background:
    radial-gradient(
      circle at 50% 45%,
      color-mix(in srgb, var(--el) 42%, transparent),
      transparent 64%
    ),
    var(--surface);
  overflow: hidden;
}
.champ-ring {
  position: absolute;
  width: min(300px, 70%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--el) 60%, transparent);
}
.champ-art {
  position: relative;
  width: min(300px, 72%);
  aspect-ratio: 200 / 202;
  filter: drop-shadow(0 18px 18px #0006);
}
@media (prefers-reduced-motion: no-preference) {
  .champ[open] .champ-ring {
    animation: spin 30s linear infinite;
  }
  .champ[open] .champ-art {
    animation: float 3.2s ease-in-out infinite;
  }
  @keyframes spin {
    to {
      transform: rotate(1turn);
    }
  }
  @keyframes float {
    50% {
      transform: translateY(-10px);
    }
  }
  .champ[open] {
    animation: open 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  @keyframes open {
    from {
      opacity: 0;
      transform: translateY(16px) scale(0.98);
    }
  }
  .move.pop {
    animation: rise 0.35s ease both;
  }
}
.champ-nav {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.champ-step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--text);
  font: 800 1.6rem/1 var(--display);
  cursor: pointer;
}
.champ-info {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px max(20px, env(safe-area-inset-right, 0px)) 28px 20px;
  min-width: 0;
}
.champ-el {
  font: 700 0.95rem/1 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--el) 78%, var(--text));
}
.champ h2 {
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  text-transform: uppercase;
}
.champ-role {
  font-weight: 600;
}
.champ-desc,
.champ-passive {
  color: var(--dim);
}
.champ-h {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 8px;
}
.stats {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
}
.stat {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 10px;
}
.stat dt {
  color: var(--dim);
  font-size: 0.9rem;
}
.stat dd {
  margin: 0;
  order: 3;
  font: 700 1.05rem/1 var(--display);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 72px;
}
.stat .meter {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.stat .meter::before {
  content: "";
  display: block;
  height: 100%;
  width: calc(var(--v) * 100%);
  border-radius: inherit;
  background: var(--el);
}
.moves {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.mv {
  display: grid;
  gap: 3px;
  justify-items: center;
  align-content: center;
  min-height: 64px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: center;
}
.mv-k {
  font: 800 1rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--el) 78%, var(--text));
}
.mv-n {
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--dim);
  overflow-wrap: anywhere;
}
.mv[aria-selected="true"] {
  border-color: var(--el);
  background: color-mix(in srgb, var(--el) 18%, var(--surface));
}
.mv.ult {
  border-style: dashed;
}
.mv.ult[aria-selected="true"] {
  border-style: solid;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--el) 40%, transparent);
}
.move {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 150px;
  align-content: start;
}
.move-slot {
  font: 700 0.85rem/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.move-name {
  margin: 0;
  font: 800 1.6rem/1.05 var(--display);
  text-transform: uppercase;
}
.move-desc {
  color: var(--text);
}
.move-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.move-facts li {
  font: 700 0.9rem/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 10px 6px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--el) 16%, transparent);
  color: color-mix(in srgb, var(--el) 70%, var(--text));
  font-variant-numeric: tabular-nums;
}
.skins {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.skin {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: center;
}
.skin img {
  width: 64px;
  height: 64px;
}
.skin-n {
  font-size: 0.78rem;
  line-height: 1.2;
}
.skin-r {
  font: 700 0.72rem/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.skin.r-mythical .skin-r {
  color: #ff9be0;
}
.skin.r-legendary .skin-r {
  color: #ffbf3c;
}
.skin[aria-pressed="true"] {
  border-color: var(--el);
  background: color-mix(in srgb, var(--el) 16%, var(--surface));
}
.champ-play {
  justify-self: start;
  margin-top: 8px;
}

/* ---------- Account page (/account/) ---------- */
.acct {
  padding-block: calc(96px + env(safe-area-inset-top, 0px)) 56px;
  display: grid;
  gap: 16px;
  max-width: 860px;
}
.acct h1 {
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  text-transform: uppercase;
}
.acct-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px 20px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.acct-card h2 {
  font-size: 1.8rem;
  text-transform: uppercase;
}
.acct-sub {
  color: var(--dim);
}
.acct-sub a,
.link {
  color: var(--accent-text);
}
.acct-on,
.acct-forms {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .acct-forms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.acct-form {
  display: grid;
  gap: 8px;
}
.acct-field {
  display: grid;
  gap: 8px;
}
.acct-form label {
  font-weight: 600;
  font-size: 0.95rem;
}
.acct-form input[type="email"],
.acct-form input[type="password"] {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1 var(--body);
}
.acct-form input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 400 !important;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.acct-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.acct-form .btn,
.acct-row .btn {
  justify-self: start;
}
.btn-ghost {
  background: transparent;
  cursor: pointer;
}
.acct .btn-ghost {
  color: var(--text);
  border-color: var(--line);
}
.link {
  background: none;
  border: 0;
  min-height: 44px;
  padding: 0 4px;
  font: 600 0.95rem/1 var(--body);
  text-decoration: underline;
  cursor: pointer;
}
.acct-msg {
  color: #ff9aa5;
  font-weight: 600;
}
.acct-msg.ok,
.acct-note {
  color: #7fe3a0;
  font-weight: 600;
}
.acct-who h2 {
  font-size: 2.2rem;
}
/* Sign in with Apple, styled as Apple asks (HIG): the white button on a dark
   background, the Apple logo, "Sign in with Apple" in the system font and
   sentence case, not our uppercase display face. Same height as Sign in. */
.acct-apple {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px 0 22px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font:
    600 1.15rem/1 -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}
.acct-apple[hidden] {
  display: none;
}
.acct-apple:hover {
  background: #e8e8ed;
}
.acct-apple svg {
  width: 17px;
  height: 20px;
  flex: none;
  margin-top: -2px;
}
/* "Signed up with Apple?" (non-Apple devices; src/account.ts): a plain
   link, not Apple's button. Its own class, so .acct-apple's white pill
   stays off it. The text lines up with the form's left edge, past the
   link's 4px padding. */
.acct-apple-reveal {
  justify-self: start;
  margin-left: -4px;
}
button.btn-play {
  border: 0;
  cursor: pointer;
}
button.btn-play:disabled {
  opacity: 0.6;
  cursor: progress;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Back to top (to-top.js) ---------- */
/* A round gold button in the bottom corner, clear of the safe areas; it
   fades in once the reader is well down the page. 48 px: an easy thumb. */
.to-top {
  position: fixed;
  right: max(16px, calc(env(safe-area-inset-right, 0px) + 12px));
  bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    0 6px 18px #0009,
    0 0 0 1px #ffffff26 inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0.2s;
}
/* Room under the footer's last line: at the very bottom of the page the
   button sits below the footer's links, never on them. */
.foot {
  padding-bottom: calc(48px + 28px + env(safe-area-inset-bottom, 0px));
}
.to-top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.to-top:hover {
  background: var(--accent-hi);
}
.to-top:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}
.to-top svg {
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .to-top,
  .to-top.is-shown {
    transform: none;
    transition: none;
  }
}
