/* Anthem World Cup — tournament components.
 *
 * Loaded AFTER https://www.inkgamestudio.com/styles.css, which owns the design
 * tokens (--ink #07142b, --gold #ffc835, --blue, --coral, --display/--body/
 * --mono) and the page background. Nothing here redefines a token; this file
 * only adds the components the marketing pages do not have.
 *
 * Colour grammar, one rule: GOLD = advanced / champion / your pick,
 * BLUE = poll open, CORAL = eliminated.
 *
 * Mobile-first: single column, 2 columns from 720px, wider grids from 1000px.
 */

.ac-page {
  --ac-card: rgba(255, 255, 255, .045);
  --ac-line: rgba(255, 255, 255, .12);
  --ac-radius: 16px;
}

.ac-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- masthead ---------- */
.ac-mast {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: min(100% - 32px, 1100px);
  margin: 0 auto;
  padding: 14px 0;
  border-bottom: 1px solid var(--ac-line);
}
.ac-mast-brand { display: inline-flex; gap: 10px; align-items: center; }
.ac-mast-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.ac-mast-nav { display: flex; gap: 14px; align-items: center; font-size: .92rem; }
.ac-mast-nav a { color: var(--muted); padding: 6px 2px; }
.ac-mast-nav a:hover, .ac-mast-nav a[aria-current="page"] { color: var(--text); }
.ac-lang select {
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid var(--ac-line);
  border-radius: 9px;
  background: rgba(7, 20, 43, .9);
  color: var(--text);
  font-size: .88rem;
}

/* ---------- layout ---------- */
.ac-page main { width: min(100% - 32px, 1100px); margin: 0 auto; padding: 22px 0 40px; }
.ac-section { margin: 34px 0; }
.ac-page h1 {
  margin: 6px 0 4px;
  font-family: var(--display);
  font-size: clamp(1.85rem, 6.5vw, 2.9rem);
  line-height: 1.03;
}
.ac-page h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.ac-page h3 { margin: 18px 0 8px; font-size: 1rem; color: var(--muted); }
.ac-muted, .ac-sub { color: var(--muted); }
.ac-sub { font-size: .95rem; }

/* ---------- hero + week banner ---------- */
.ac-hero { padding: 18px 0 4px; }
.ac-hero-sub { max-width: 46ch; margin-top: 6px; color: var(--muted); }
.ac-hero-links { margin-top: 10px; font-size: .9rem; }
.ac-hero-links a { border-bottom: 1px solid var(--ac-line); }
.ac-banner {
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
  align-items: center;
  margin: 18px 0 10px;
  padding: 14px 16px;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  background: linear-gradient(120deg, rgba(47, 124, 255, .16), rgba(255, 200, 53, .08));
}
.ac-banner-week { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ac-banner-week b { font-family: var(--display); font-size: 1.1rem; }

.ac-chip {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--ac-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.ac-chip.is-open { border-color: rgba(47, 124, 255, .6); background: rgba(47, 124, 255, .2); }
.ac-chip.is-closed { border-color: rgba(255, 77, 72, .5); background: rgba(255, 77, 72, .16); }
.ac-countdown { margin-top: 8px; font-family: var(--mono); font-size: .9rem; color: var(--muted); }
.ac-countdown b { color: var(--gold); }

.ac-turnout { margin-top: 10px; color: var(--muted); font-size: .92rem; }
.ac-turnout b { color: var(--text); font-family: var(--mono); font-size: 1.05rem; }
.ac-strip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--ac-line);
  border-radius: 999px;
  background: var(--ac-card);
}

/* ---------- group / matchup cards ---------- */
.ac-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.ac-card {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  background: var(--ac-card);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.ac-card:hover { border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.ac-card.is-live { border-color: rgba(47, 124, 255, .55); }
.ac-card.is-decided { border-color: rgba(255, 200, 53, .4); }
.ac-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ac-card-top b { font-family: var(--display); font-size: 1rem; }
.ac-card-turnout { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.ac-card-flags {
  display: grid;
  gap: 6px 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.ac-card-flags li { display: flex; gap: 8px; align-items: center; min-width: 0; }
.ac-card-flags img {
  width: 26px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16);
}
.ac-card-name {
  overflow: hidden;
  font-size: .82rem;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ac-card-flags li.is-advanced .ac-card-name { color: var(--gold); font-weight: 600; }
.ac-slot-empty { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; }

/* ---------- bracket ---------- */
.ac-bracket-scroll { overflow-x: auto; padding-bottom: 8px; }
.ac-bracket { max-width: none; }
.ac-blinks path { stroke: rgba(255, 255, 255, .18); stroke-width: 1.5; }
.ac-bnode rect { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .14); }
.ac-bnode text { fill: #a6b5d3; font-family: var(--body); font-size: 12px; }
.ac-bnode text.won { fill: var(--gold); font-weight: 700; }
.ac-bnode.is-live rect { stroke: rgba(47, 124, 255, .65); }
.ac-bnode.is-decided rect { stroke: rgba(255, 200, 53, .5); }
.ac-bnode:hover rect { fill: rgba(255, 255, 255, .12); }

/* ---------- matchup page ---------- */
.ac-mhead { margin-bottom: 18px; }
.ac-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.ac-player { margin: 18px 0 26px; }
.ac-facade {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  background: linear-gradient(140deg, #10264a, #07142b 70%);
}
.ac-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(140deg, #10264a, #07142b 70%);
}
.ac-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.ac-play-tri {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 21px solid #07142b;
}
.ac-iframe { width: 100%; height: 100%; border: 0; }
.ac-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7, 20, 43, .82);
  font-family: var(--mono);
  font-size: .76rem;
  text-transform: uppercase;
}
.ac-player-meta { margin-top: 8px; font-size: .88rem; }
.ac-player-meta a { border-bottom: 1px solid var(--ac-line); }

/* ---------- ballot ---------- */
.ac-rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ac-row {
  position: relative;
  display: grid;
  gap: 12px;
  align-items: center;
  grid-template-columns: 56px 1fr auto;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  background: var(--ac-card);
}
.ac-row.is-picked { border-color: var(--gold); background: rgba(255, 200, 53, .1); }
.ac-row.is-advanced { border-color: rgba(255, 200, 53, .5); }
.ac-row.is-out { opacity: .62; border-color: rgba(255, 77, 72, .34); }
.ac-flag {
  width: 56px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}
.ac-row-main { min-width: 0; }
.ac-row-name { font-family: var(--display); font-size: 1.05rem; font-weight: 700; }
.ac-tag {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .66rem;
  text-transform: uppercase;
  vertical-align: middle;
}
.ac-tag.is-gold { background: rgba(255, 200, 53, .2); color: var(--gold); }
.ac-audio { width: 100%; max-width: 320px; height: 34px; margin-top: 8px; }
.ac-row-side { display: grid; gap: 6px; justify-items: end; }
.ac-vote {
  min-width: 88px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.ac-vote:hover { background: rgba(255, 200, 53, .16); }
.ac-vote[aria-pressed="true"] { background: var(--gold); color: #07142b; }
.ac-vote[disabled] { opacity: .45; cursor: not-allowed; }

/* Manual "refresh results" control next to the turnout line. */
.ac-turnout { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ac-refresh {
  font: inherit; font-size: .82rem; font-weight: 600;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .2rem .7rem .2rem .55rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .3rem;
}
.ac-refresh:hover { color: var(--text); border-color: var(--gold); }
.ac-refresh:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ac-refresh[aria-busy="true"] { opacity: .6; cursor: progress; }
.ac-refresh[aria-busy="true"] .ac-refresh-icon { animation: ac-spin .8s linear infinite; }
.ac-refresh-icon { display: inline-block; font-size: 1rem; line-height: 1; }
@keyframes ac-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ac-refresh[aria-busy="true"] .ac-refresh-icon { animation: none; } }
.ac-count { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.ac-count b { color: var(--text); }
.ac-hide-counts .ac-count { display: none; }
.ac-hide-counts .ac-bar { display: none; }
.ac-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, .07);
}
.ac-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width .35s var(--ease);
}
.ac-row.is-picked .ac-bar-fill { background: var(--gold); }
.ac-pending {
  padding: 18px;
  border: 1px dashed var(--ac-line);
  border-radius: var(--ac-radius);
  color: var(--muted);
}

/* ---------- honors ---------- */
.ac-champion {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 24px 0;
  padding: 26px 18px;
  border: 1px solid rgba(255, 200, 53, .42);
  border-radius: var(--ac-radius);
  background: radial-gradient(600px 300px at 50% 0, rgba(255, 200, 53, .18), transparent 70%);
  text-align: center;
}
.ac-champion-flag { width: 132px; height: auto; border-radius: 8px; box-shadow: 0 12px 34px rgba(0, 0, 0, .45); }
.ac-champion-kicker { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; color: var(--gold); }
.ac-champion-name { font-family: var(--display); font-size: clamp(1.6rem, 7vw, 2.6rem); }
.ac-champion-link { border-bottom: 1px solid var(--ac-line); font-size: .9rem; }
.ac-podium, .ac-results { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ac-podium-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  background: var(--ac-card);
}
.ac-rank { min-width: 24px; font-family: var(--mono); color: var(--gold); }
.ac-podium-row img { width: 40px; height: auto; border-radius: 3px; }
.ac-results li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--ac-line); font-size: .92rem; }
.ac-result { color: var(--gold); }

/* ---------- credits, footnote, footer ---------- */
.ac-credits, .ac-how {
  margin: 30px 0;
  padding: 18px;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  background: rgba(255, 255, 255, .03);
}
.ac-credits p, .ac-how li { color: var(--muted); font-size: .9rem; }
.ac-how ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.ac-sources { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; font-size: .82rem; color: var(--muted); }
.ac-sources a { border-bottom: 1px solid var(--ac-line); }
.ac-lic { font-family: var(--mono); font-size: .72rem; opacity: .75; }

.ac-neighbours {
  display: grid;
  gap: 10px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  margin: 28px 0 0;
  font-size: .86rem;
}
.ac-neighbours a { color: var(--muted); }
.ac-neighbours a:hover { color: var(--text); }
.ac-neighbours b { display: block; color: var(--text); font-family: var(--display); font-size: .95rem; }
.ac-next { text-align: end; }
.ac-back { padding: 8px 14px; border: 1px solid var(--ac-line); border-radius: 999px; white-space: nowrap; }

.ac-foot {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100% - 32px, 1100px);
  margin: 0 auto;
  padding: 30px 0 46px;
  border-top: 1px solid var(--ac-line);
  text-align: center;
}
.ac-cta {
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--gold);
  color: #07142b;
  font-family: var(--display);
  font-weight: 800;
}
.ac-foot-meta { color: var(--muted); font-size: .85rem; }
.ac-foot-meta a { border-bottom: 1px solid var(--ac-line); }

/* ---------- toast ---------- */
.ac-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 50;
  max-width: 460px;
  margin: 0 auto;
  padding: 13px 16px;
  border: 1px solid rgba(255, 77, 72, .5);
  border-radius: 12px;
  background: rgba(20, 8, 12, .96);
  font-size: .9rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
}

/* ---------- archive (a finished season, frozen) ---------- */
.ac-banner.is-archived { border-color: rgba(255, 200, 53, .38); }
.ac-archive-note { margin-top: 8px; color: var(--muted); font-size: .88rem; }
.ac-ballot.is-final h2 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
/* The share sits under the count in the same right-hand column, so a row reads
   "412 votes / 38%" top-to-bottom on a phone and never wraps into the flag. */
.ac-share {
  display: block;
  font-family: var(--mono);
  font-size: .95rem;
  color: var(--gold);
}
.ac-place { font-family: var(--mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- past seasons + hall of fame ---------- */
.ac-past-list, .ac-hof-seasons { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ac-past-list a, .ac-hof-seasons a {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 13px 15px;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  background: var(--ac-card);
}
.ac-past-list a:hover, .ac-hof-seasons a:hover { border-color: rgba(255, 255, 255, .3); }
.ac-past-list b, .ac-hof-seasons b { font-family: var(--display); font-size: 1rem; }
.ac-past-champ, .ac-hof-champ { display: inline-flex; gap: 8px; align-items: center; color: var(--gold); font-size: .9rem; }
.ac-past-champ img, .ac-hof-champ img { border-radius: 3px; }
.ac-hof-seasonrow.is-complete a { border-color: rgba(255, 200, 53, .35); }

.ac-hof-hero {
  position: relative;
  overflow: hidden;
  margin: 18px 0 6px;
  padding: 26px 20px;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  /* No artwork: a gold-into-ink wash so the page never looks unfinished. */
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(255, 200, 53, .28), transparent 62%),
    linear-gradient(160deg, rgba(47, 124, 255, .22), rgba(7, 20, 43, .9));
}
.ac-hof-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}
.ac-hof-heroText { position: relative; display: grid; gap: 8px; }

.ac-hof-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ac-hof-row {
  display: grid;
  grid-template-columns: 34px 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  background: var(--ac-card);
}
.ac-hof-row img { width: 48px; height: auto; border-radius: 3px; }

.ac-hof-runs { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ac-hof-run {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 7px 2px;
  border-bottom: 1px solid var(--ac-line);
  font-size: .9rem;
}
.ac-hof-run img { width: 40px; height: auto; border-radius: 3px; }
.ac-hof-best { color: var(--gold); font-size: .85rem; text-align: end; }
.ac-hof-season { grid-column: 2 / -1; color: var(--muted); font-size: .78rem; }
.ac-hof-season:hover { color: var(--text); }

/* ---------- rtl ---------- */
[dir="rtl"] .ac-next { text-align: start; }
[dir="rtl"] .ac-tag { margin-right: 6px; margin-left: 0; }
[dir="rtl"] .ac-play-tri { margin-right: 5px; margin-left: 0; transform: scaleX(-1); }
/* The bracket is a left-to-right diagram of a fixed binary tree; mirroring it
   would put the final on the left and reverse every connector, so it stays LTR
   even in Arabic. */
[dir="rtl"] .ac-bracket-scroll { direction: ltr; }

@media (min-width: 720px) {
  .ac-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-card-flags { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ac-row { grid-template-columns: 76px 1fr auto; }
  .ac-flag { width: 76px; }
  .ac-hof-run { grid-template-columns: 40px 1fr 160px 200px; }
  .ac-hof-season { grid-column: auto; text-align: end; }
}

@media (min-width: 1000px) {
  .ac-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .ac-card, .ac-bar-fill, .ac-vote { transition: none; }
  .ac-card:hover { transform: none; }
}

/* ---------- share (masthead button, chip rows, in-content block) ---------- */
.ac-mast-share {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--ac-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}
.ac-mast-share:hover, .ac-mast-share[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
.ac-mast-share:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ac-shr-pop { flex-basis: 100%; padding: 4px 0 6px; }
.ac-shr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ac-shr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--ac-line);
  border-radius: 999px;
  background: var(--ac-card);
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.ac-shr-chip:hover { border-color: var(--gold); color: var(--gold); }
.ac-shr-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ac-shr-chip.is-native { border-color: var(--gold); background: var(--gold); color: #07142b; }
.ac-shr-chip.is-native:hover { color: #07142b; filter: brightness(1.05); }
.ac-sharing {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid rgba(47, 124, 255, .45);
  border-radius: var(--ac-radius);
  background: linear-gradient(120deg, rgba(47, 124, 255, .16), rgba(255, 255, 255, .03));
}
.ac-page .ac-sharing-title { margin: 0 0 4px; font-size: clamp(1.05rem, 3.6vw, 1.3rem); }
.ac-sharing-sub { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }

/* ---------- the app card ---------- */
.ac-app {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px 14px;
  align-items: center;
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 200, 53, .42);
  border-radius: var(--ac-radius);
  background: radial-gradient(420px 170px at 0% 0%, rgba(255, 200, 53, .15), transparent 70%), var(--ac-card);
}
.ac-app-iconlink { display: block; line-height: 0; }
.ac-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 22.5%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
}
.ac-app-text { min-width: 0; }
.ac-app-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.ac-app-sub { margin: 3px 0 0; color: var(--muted); font-size: .88rem; }
/* Apple's badge: never resized below 40px tall, never restyled, with room around it. */
.ac-app-badge { grid-column: 1 / -1; justify-self: start; display: inline-block; padding: 2px 0; line-height: 0; }
.ac-app-badge img { display: block; height: 40px; width: auto; }
.ac-app.is-footer {
  width: min(100%, 560px);
  margin: 0;
  border-color: var(--ac-line);
  background: var(--ac-card);
  text-align: start;
}
[dir="rtl"] .ac-app-badge { justify-self: start; }

/* ---------- toast: a success variant for "Link copied" ---------- */
.ac-toast.is-ok { border-color: rgba(255, 200, 53, .6); background: rgba(7, 20, 43, .96); }

/* The nav may wrap onto a second line on a phone; the language picker keeps
   the end of whichever line it lands on. */
.ac-mast-nav { flex-wrap: wrap; row-gap: 8px; }
.ac-lang { margin-inline-start: auto; }
@media (max-width: 560px) {
  .ac-mast { gap: 8px 10px; }
  .ac-mast-nav { gap: 8px 10px; font-size: .86rem; }
  /* The masthead is tight on a phone: the share button keeps its glyph only. */
  .ac-mast-share { padding: 4px 10px; }
  .ac-mast-share-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 720px) {
  .ac-app { grid-template-columns: 64px 1fr auto; }
  .ac-app-badge { grid-column: auto; }
}

/* ---------- live standings on the hub cards (painted by vote.js) ---------- */
.ac-card-flags li { position: relative; }
.ac-card-flags li.is-first img,
.ac-card-flags li.is-second img { margin-inline-start: 6px; }
.ac-card-flags li.is-first::before,
.ac-card-flags li.is-second::before {
  position: absolute;
  top: -5px;
  inset-inline-start: -2px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.ac-card-flags li.is-first::before { content: "1"; background: var(--gold); color: #07142b; }
.ac-card-flags li.is-second::before { content: "2"; background: #b9c6dd; color: #101f3c; }
.ac-card-flags li.is-first .ac-card-name { color: var(--gold); font-weight: 700; }
.ac-card-flags li.is-second .ac-card-name { color: #d6e0f2; font-weight: 600; }
