/* Billionaires Digest v3: front door (index.html), sports-network homepage. Needs tokens.css + ui.css. Prefix: hm-.
   Below the hero, the strip and How it works: two columns from 1024px (main about 2/3 · side about 1/3).
   Side (.hm-right) = Your team (roster), Share your team (team of 5), Play with friends; it is sticky under the top bar
   (--v2-chrome-h from chrome.js) and scrolls on its own when taller than the screen, so the roster follows the scroll.
   Main (.hm-center) = Today's Digest, From the Digest. Under 1024px the side column dissolves (display: contents) and
   the cards take the phone order: Your team -> Today's Digest -> Play with friends -> Share. All cards: 14px radius
   (same as the Players to watch cards), 24px gaps. */

.hm-main { padding-top: var(--s2); }
.hm-layout { --hm-r: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.hm-layout > * { min-width: 0; }
.hm-center { display: flex; flex-direction: column; gap: var(--s2); }
.hm-side-card { position: relative; background: var(--card); color: var(--text); border-radius: var(--hm-r); box-shadow: var(--shadow); padding: var(--s2); }
@media (max-width: 1023px) {
  .hm-right { display: contents; }
  .hm-roster { order: 1; }
  .hm-center { order: 2; }
  .hm-friends { order: 3; }
  #hmsharecard { order: 4; }
  .hm-odds { order: 5; }
}
@media (min-width: 1024px) {
  .hm-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
  .hm-center { grid-column: 1; grid-row: 1; }
  .hm-right {
    grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: var(--s2);
    position: sticky; top: calc(var(--v2-chrome-h, 104px) + var(--s1));
    max-height: calc(100vh - var(--v2-chrome-h, 104px) - 2 * var(--s1));
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
    /* room for the cards' shadows and focus rings inside the scroll box; the negative margin keeps the edges aligned */
    padding: 4px; margin: -4px;
  }
}
@media (max-width: 767px) { .hm-side-card { padding: var(--s1); } }

/* side headings */
.hm-rail__h { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; line-height: 1.2; padding: 4px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.hm-rail__ico { width: 16px; height: 12px; flex: none; background: linear-gradient(currentColor 0 0) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor 0 0) 0 5px / 100% 2px no-repeat, linear-gradient(currentColor 0 0) 0 10px / 70% 2px no-repeat; }

/* ---------- Your team: the roster card ----------
   From 1024px a vertical list (40px faces, name, points); under 1024px one row of five (56px, 44px on phones). */
.hm-roster__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s1); }
.hm-roster__h { margin: 0; font-family: var(--font-display); font-weight: var(--fw-display); font-size: 28px; line-height: 1; text-transform: uppercase; letter-spacing: .005em; }
.hm-roster__more, .hm-sec__more { display: inline-flex; align-items: center; white-space: nowrap; flex: none; min-height: var(--tap); color: var(--link); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }
.hm-roster__more:hover, .hm-sec__more:hover { text-decoration: underline; text-underline-offset: 2px; }
.hm-roster__meta { margin: 0 0 var(--s0); font-size: var(--fs-sm); color: var(--text-muted); }
.hm-roster__meta.is-live { color: var(--brand-ink); font-weight: 700; }
.hm-roster__loading { margin: var(--s0) 0; }
.hm-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hm-slot { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--line); min-width: 0; }
.hm-slot:first-child { border-top: 0; }
.hm-slot__pic { position: relative; flex: none; width: var(--slot, 40px); height: var(--slot, 40px); }
.hm-slot__av { --av: var(--slot, 40px); }
.hm-slot__add { display: flex; align-items: center; justify-content: center; box-sizing: border-box; border: 2px dashed var(--line-2); border-radius: 50%; color: var(--text-muted); }
.hm-slot__c {
  position: absolute; right: -4px; bottom: -3px; display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 0 0 2px var(--card);
  font-size: 11px; font-weight: 800; line-height: 1;
}
.hm-slot__who { flex: 1 1 auto; min-width: 0; }
.hm-slot__name { display: block; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-slot__short { display: none; }
.hm-slot.is-empty .hm-slot__name, .hm-slot.is-empty .hm-slot__short { color: var(--text-muted); font-weight: 400; }
.hm-slot__pts { flex: none; font-weight: 700; font-size: var(--fs-md); }
.hm-roster__sum { margin-top: var(--s0); padding-top: var(--s1); border-top: 1px solid var(--line); }
.hm-roster__prog { margin: 0; font-weight: 600; }
.hm-score { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.hm-score__side { display: inline-flex; align-items: baseline; gap: 6px; }
.hm-score__lab { font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); }
.hm-score__n { font-family: var(--font-display); font-weight: var(--fw-display); font-size: 30px; line-height: 1; }
.hm-score__dot { color: var(--text-muted); }
.hm-roster__res { margin: 6px 0 0; font-weight: 700; }
.hm-roster__res.is-win { color: var(--positive); }
.hm-roster__res.is-loss { color: var(--negative); }
.hm-roster__btns { display: flex; flex-direction: column; gap: 8px; margin-top: var(--s1); }
.hm-roster__btns .v2-btn, .hm-friends__btns .v2-btn { width: 100%; justify-content: center; }
@media (max-width: 1023px) {
  .hm-layout { --slot: 56px; }
  .hm-slots { flex-direction: row; justify-content: space-between; gap: 8px; margin-top: 4px; }
  .hm-slot { flex: 1 1 0; flex-direction: column; gap: 6px; min-height: 0; padding: 0; border-top: 0; text-align: center; }
  .hm-slot__who { width: 100%; }
  .hm-slot__name { display: none; }
  .hm-slot__short { display: block; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hm-slot__pts { font-size: var(--fs-sm); }
  .hm-roster__btns { flex-direction: row; flex-wrap: wrap; }
  .hm-roster__btns .v2-btn { width: auto; flex: 1 1 160px; }
}
@media (max-width: 767px) {
  .hm-layout { --slot: 44px; }
  .hm-roster__h { font-size: 24px; }
  .hm-slot__short { font-size: var(--fs-xs); }
}

/* ---------- Play with friends ---------- */
.hm-friends__p { margin: 10px 0 var(--s1); color: var(--text-muted); }
.hm-friends__btns { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1023px) {
  .hm-friends__btns { flex-direction: row; flex-wrap: wrap; }
  .hm-friends__btns .v2-btn { width: auto; flex: 1 1 160px; }
}

/* ---------- Today's Digest: top story + the next 4 headlines in one card ---------- */
.hm-lede { position: relative; border-radius: var(--hm-r); background: var(--card); color: var(--text); box-shadow: var(--shadow); padding: var(--s2); }
.hm-dg__kick { margin: 0 0 12px; font-size: var(--fs-sm); color: var(--text-muted); }
.hm-dg__brand { display: inline-block; background: var(--brand); color: #fff; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 3px; margin-right: 2px; }
.hm-lede__h {
  font-family: var(--font-display); font-weight: var(--fw-display); font-size: 34px; line-height: 1.08; text-transform: none; letter-spacing: 0;
  margin: 0 0 12px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; max-height: 3.3em; overflow-wrap: break-word; text-wrap: balance;
}
.hm-lede__h a { color: var(--text); text-decoration: none; }
.hm-lede__h a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hm-lede__dek { font-size: var(--fs-lg); line-height: 1.5; color: var(--text); max-width: 70ch; margin: 0 0 var(--s0); }
.hm-lede__src { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.hm-lede__src a { color: var(--link); }
.hm-dg__list { list-style: none; margin: var(--s2) 0 0; padding: 0; border-top: 1px solid var(--line); }
.hm-dg__i { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hm-dg__meta { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-ink); }
.hm-dg__h { color: var(--text); font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; text-decoration: none; max-width: 70ch; }
.hm-dg__h:hover { text-decoration: underline; text-underline-offset: 3px; }
.hm-dg__all { display: inline-flex; align-items: center; gap: 2px; min-height: var(--tap); margin-top: 8px; color: var(--link); font-size: var(--fs-md); font-weight: 700; text-decoration: none; }
.hm-dg__all:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .hm-lede { padding: var(--s1); }
  .hm-lede__h { font-size: 26px; }
  .hm-lede__dek { font-size: var(--fs-md); }
  .hm-dg__h { font-size: var(--fs-md); }
  .hm-dg__list { margin-top: var(--s1); }
}

/* ---------- story grid ---------- */
.hm-sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s1); border-bottom: 2px solid var(--text); padding-bottom: 4px; margin-bottom: 12px; }
.hm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s2); }
.hm-story { background: var(--card); border-radius: var(--hm-r, 14px); box-shadow: var(--shadow); padding: var(--s1); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hm-story__kick { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-ink); }
.hm-story__h { font-size: 18px; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.hm-story__h a { color: var(--text); text-decoration: none; }
.hm-story__h a:hover { text-decoration: underline; text-underline-offset: 2px; }
.hm-story__p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.hm-story__src { margin-top: auto; font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- story player chips (Today's Digest + From the Digest): player, then their last scored move ---------- */
.hm-chips-slot { margin: 2px 0 6px; min-width: 0; }
.hm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.hm-chips__pre { font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; }
.hm-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 30px; padding: 3px 10px 3px 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--text);
  font-size: var(--fs-xs); line-height: 1.2; text-decoration: none;
}
.hm-chip:hover { border-color: var(--line-2); }
.hm-chip:hover .hm-chip__name { text-decoration: underline; text-underline-offset: 2px; }
.hm-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hm-chip__av.v2-av { --av: 20px; }
.hm-chip__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hm-chip__mv { font-weight: 700; white-space: nowrap; color: var(--text-muted); }
.hm-chip__mv.v2-pos { color: var(--positive); }
.hm-chip__mv.v2-neg { color: var(--negative); }
.hm-chip__mv.v2-zero, .hm-chip__mv--none { color: var(--text-muted); font-weight: 400; }
.hm-story .hm-chips-slot { margin: 0; }

/* ---------- side: Next Moves (hidden card) ---------- */
.hm-odds__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.hm-odds__top .hm-rail__h { border-bottom: 0; margin-bottom: 0; }
.hm-mv { list-style: none; margin: 0; padding: 0; }
.hm-mv__i { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hm-mv__q { display: block; color: var(--text); font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; text-decoration: none; margin-bottom: 8px; }
.hm-mv__q:hover { text-decoration: underline; }
.hm-mv__odds { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hm-mv__opt { display: flex; justify-content: space-between; align-items: center; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: var(--fs-sm); }
.hm-mv__opt strong { font-size: var(--fs-md); }
.hm-mv__close { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--text-muted); }
.hm-mv__fine { font-size: var(--fs-xs); color: var(--text-muted); margin: 10px 0 12px; }
.hm-odds__btn { margin-top: 4px; }

/* ---------- front-page hero: what the site is, in one look (stays dark in both themes) ---------- */
.hm-hero {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-card); background: #0B0B0C; color: #fff;
  min-height: 360px; display: flex; align-items: flex-end; margin-bottom: var(--s2); box-shadow: var(--shadow);
}
.hm-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hm-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8, 9, 10, .94) 0%, rgba(8, 9, 10, .76) 45%, rgba(8, 9, 10, .25) 80%, rgba(8, 9, 10, .08) 100%),
              linear-gradient(to right, rgba(8, 9, 10, .75) 0%, rgba(8, 9, 10, 0) 65%);
}
.hm-hero__in { padding: var(--s3); max-width: 760px; min-width: 0; }
.hm-hero__kick { display: inline-block; background: var(--brand); color: #fff; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.35; padding: 3px 8px; border-radius: 3px; margin: 0 0 12px; }
.hm-hero__h { font-family: var(--font-display); font-weight: var(--fw-display); text-transform: uppercase; font-size: 64px; line-height: .95; margin: 0 0 12px; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); overflow-wrap: break-word; }
.hm-hero__sub { font-size: var(--fs-lg); line-height: 1.45; color: #E1E4E8; margin: 0 0 var(--s2); max-width: 54ch; }
.hm-hero__acts { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-hero__btn--ghost { background: transparent; color: #fff; border-color: #9AA1AA; }
.hm-hero__btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.hm-hero :focus-visible { outline-color: #8AB4FF; }
@media (max-width: 767px) {
  .hm-hero { min-height: 0; }
  .hm-hero__img { object-position: 50% 30%; }
  .hm-hero__in { padding: 120px var(--s1) var(--s2); }
  .hm-hero__h { font-size: 40px; }
  .hm-hero__sub { font-size: var(--fs-md); }
  .hm-hero__btn { flex: 1 1 100%; }
}

/* hero with the "How it works" video (assets/v2/hero-video.js), framed as a card. Under 1024px: stacked, the card
   centred under the buttons, at most 360px wide, with the same side padding as the text. 1024px and up: two columns
   (text, then the card), vertically centred, 48px padding all round and a 48px gap. If the video can't load, the
   script removes .hm-hero--video and hides the card, so the hero is the one-column layout above. */
.hm-hero--video { flex-direction: column; align-items: stretch; justify-content: flex-end; }
.hm-hero--video .hm-hero__in { padding-bottom: var(--s2); }
.hm-hero__media {
  position: relative; box-sizing: border-box; width: calc(100% - 2 * var(--s3)); max-width: 360px; margin: 0 auto var(--s3); padding: 12px;
  background: rgba(11, 11, 12, .88); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hm-hero__media { background: rgba(11, 11, 12, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.hm-hero__media[hidden] { display: none; }
.hm-hero__vlabel { display: flex; align-items: center; gap: 6px; margin: 0 2px 10px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; color: #B9BFC7; }
.hm-hero__vlabel-ico { flex: none; color: var(--brand); }
.hm-hero__vbox { position: relative; }
.hm-hero__video { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #0B0B0C; border-radius: 10px; }
/* round icon-only Pause/Play, bottom-right inside the video (the progress dashes are at the top) */
.hm-vbtn {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer;
}
.hm-vbtn:hover { background: rgba(0, 0, 0, .75); }
.hm-vbtn:focus-visible { outline: 3px solid #8AB4FF; outline-offset: 2px; }
.hm-vbtn[hidden] { display: none; }
.hm-vbtn__ico { display: block; }
.hm-vbtn__ico--play, .hm-vbtn.is-paused .hm-vbtn__ico--pause, .hm-vbtn__txt { display: none; }
.hm-vbtn.is-paused .hm-vbtn__ico--play { display: block; }
/* before the first play (reduced motion / autoplay blocked) the same button is the large centred "Play video" */
.hm-hero__vbox .hw__vbtn--play .hm-vbtn__ico { display: none; }
.hm-hero__vbox .hw__vbtn--play .hm-vbtn__txt { display: inline; }
@media (max-width: 767px) {
  .hm-hero__media { width: calc(100% - 2 * var(--s1)); margin-bottom: var(--s2); padding: 10px; }
}
@media (min-width: 1024px) {
  .hm-hero--video { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: 48px; padding: 48px; }
  .hm-hero--video .hm-hero__in { align-self: center; max-width: none; padding: 0; }
  .hm-hero--video .hm-hero__h { font-size: clamp(44px, 2.4vw + 22px, 60px); line-height: .98; }
  .hm-hero--video .hm-hero__media { width: 100%; max-width: none; margin: 0; }
}
@media (min-width: 1280px) {
  .hm-hero--video { grid-template-columns: minmax(0, 1fr) 400px; }
}

/* how it works: three numbered steps, side by side from 768px, stacked on phones */
.hm-steps { background: var(--card); color: var(--text); border-radius: 14px; box-shadow: var(--shadow); padding: var(--s2); margin-bottom: var(--s2); scroll-margin-top: var(--s1); }
.hm-steps:focus { outline: none; }
.hm-steps__h { font-family: var(--font-display); font-weight: var(--fw-display); text-transform: uppercase; font-size: var(--fs-xl); line-height: 1.05; margin: 0 0 var(--s1); }
.hm-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
@media (min-width: 768px) { .hm-steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); } }
.hm-steps__i { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.hm-steps__n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: var(--fw-display); font-size: 22px; line-height: 1; }
.hm-steps__t { font-size: var(--fs-md); font-weight: 700; line-height: 1.25; margin: 6px 0 4px; }
.hm-steps__p { margin: 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--text-muted); }
.hm-steps__brief { margin: var(--s2) 0 0; padding-top: var(--s1); border-top: 1px solid var(--line); font-size: var(--fs-md); }
.hm-steps__brief a { font-weight: 700; color: var(--link); white-space: nowrap; }
.hm-steps__note { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 767px) { .hm-steps { padding: var(--s1); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- your franchise (scoreboard card additions) ---------- */

/* ---------- card section heads ---------- */
.hm-sec__head--card { border-bottom-width: 1px; border-bottom-color: var(--line); align-items: flex-start; }

/* ---------- From the Digest ---------- */
.hm-stories__foot { margin: 12px 0 0; font-size: var(--fs-sm); }
.hm-stories__foot a { color: var(--link); font-weight: 600; }

/* ---------- players to watch: five flip cards under the hero ----------
   Dark cards (both themes). One row of five from 1024px; below that a horizontal swipe row (scroll-snap, the next card
   peeks, no visible scrollbar) that bleeds to the screen edges so only the row scrolls, never the page.
   Each card flips in place (rotateY, 450ms); with reduced motion the faces swap instantly (ui.css drops transitions). */
.hm-ptw { margin-bottom: var(--s2); }
.hm-ptw__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px var(--s1); margin-bottom: 10px; }
.hm-ptw__titles { display: flex; flex-direction: column-reverse; min-width: 0; }
.hm-ptw__h { margin: 0; font-family: var(--font-display); font-weight: var(--fw-display); font-size: 40px; line-height: 1; text-transform: uppercase; letter-spacing: .005em; color: var(--text); }
.hm-ptw__k { margin: 0 0 4px; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.hm-ptw__more { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: var(--tap); color: var(--link); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; white-space: nowrap; }
.hm-ptw__more:hover { text-decoration: underline; text-underline-offset: 2px; }

.hm-ptw__row { list-style: none; margin: 0; padding: 4px 0 6px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.hm-ptw__card {
  --text: #FFFFFF; --text-muted: #B9BFC7; --line: #33373C; --positive: #3CC985; --negative: #FF6B64; --brand-ink: #FF6B64; --link: #8AB4FF;
  position: relative; min-width: 0; perspective: 1100px; color: #fff;
  transition: transform var(--t-base) var(--ease);
}
.hm-ptw__card:hover, .hm-ptw__card:focus-within { transform: translateY(-3px); }
.hm-ptw__inner { position: relative; display: grid; height: 100%; transform-style: preserve-3d; transition: transform 450ms var(--ease); }
.hm-ptw__card.is-flipped .hm-ptw__inner { transform: rotateY(180deg); }
.hm-ptw__face {
  grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; box-shadow: var(--shadow);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.hm-ptw__card:hover .hm-ptw__face, .hm-ptw__card:focus-within .hm-ptw__face { border-color: rgba(255, 255, 255, .22); }
.hm-ptw__card.is-top .hm-ptw__face { box-shadow: inset 0 3px 0 var(--brand), var(--shadow); }
.hm-ptw__back { transform: rotateY(180deg); padding: 10px; gap: 5px; }
.hm-ptw__card :focus-visible { outline-color: #8AB4FF; }
/* reduced motion: no 3D turn, the faces swap */
@media (prefers-reduced-motion: reduce) {
  .hm-ptw__card:hover, .hm-ptw__card:focus-within { transform: none; }
  .hm-ptw__card.is-flipped .hm-ptw__inner, .hm-ptw__back { transform: none; }
  .hm-ptw__back { visibility: hidden; }
  .hm-ptw__card.is-flipped .hm-ptw__back { visibility: visible; }
  .hm-ptw__card.is-flipped .hm-ptw__front { visibility: hidden; }
}

/* front */
.hm-ptw__front { align-items: stretch; }
.hm-ptw__flip {
  flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%;
  padding: 12px 10px 6px; background: none; border: 0; border-radius: 13px 13px 0 0; color: inherit; font: inherit; text-align: center; cursor: pointer;
}
.hm-ptw__flip:focus-visible { outline: 3px solid #8AB4FF; outline-offset: -3px; }
.hm-ptw__pic { position: relative; flex: none; display: inline-block; }
.hm-ptw__av { --av: 64px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.hm-ptw__rank {
  position: absolute; left: -8px; top: -4px; min-width: 28px; height: 22px; padding: 0 5px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #16181B; font-family: var(--font-display); font-weight: var(--fw-display); font-size: 15px; line-height: 1;
  box-shadow: 0 0 0 2px var(--ink-2);
}
.hm-ptw__card.is-top .hm-ptw__rank { background: var(--brand); color: #fff; }
.hm-ptw__who { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; max-width: 100%; }
.hm-ptw__name { font-size: var(--fs-md); font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.hm-ptw__flip:hover .hm-ptw__name { text-decoration: underline; text-underline-offset: 2px; }
.hm-ptw__card .v2-ceo { background: #fff; color: #16181B; border-color: #fff; margin-left: 4px; vertical-align: 1px; }
.hm-ptw__nick { margin: 0; }
.hm-ptw__tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #2A2D31; color: #E1E4E8; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.hm-ptw__ico { font-size: 12px; line-height: 1; }
.hm-ptw__nums { display: flex; align-items: center; justify-content: center; gap: 4px 10px; flex-wrap: wrap; }
.hm-ptw__pts { font-family: var(--font-display); font-weight: var(--fw-display); font-size: 36px; line-height: .95; }
.hm-ptw__unit { font-size: 15px; letter-spacing: .02em; color: var(--text-muted); }
.hm-ptw__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 0; font-size: var(--fs-xs); line-height: 1.3; color: var(--text-muted); text-align: left; }
.hm-ptw__m strong { font-weight: 700; color: var(--text); }
.hm-ptw__m strong.v2-pos { color: var(--positive); }
.hm-ptw__m strong.v2-neg { color: var(--negative); }
.hm-ptw__front .hm-ptw__draft { margin: 0 10px 10px; min-height: 34px; padding: 4px 12px; font-size: 13px; }

/* back */
.hm-ptw__bhd { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.hm-ptw__bh { min-width: 0; margin: 0; font-size: var(--fs-sm); font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-ptw__bbody { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.hm-ptw__load { margin: 0; font-size: var(--fs-xs); }
.hm-ptw__chart { margin: 0; }
.hm-ptw__svg { display: block; width: 100%; height: 36px; overflow: visible; }
.hm-ptw__bar.is-pos { fill: var(--positive); }
.hm-ptw__bar.is-neg { fill: var(--negative); }
.hm-ptw__base { stroke: #7C848E; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hm-ptw__cap { margin-top: 1px; font-size: 10px; color: var(--text-muted); letter-spacing: .02em; }
.hm-ptw__wh { margin: 0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.hm-ptw__mv { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hm-ptw__mvh { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; }
.hm-ptw__mvsrc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8AB4FF; font-size: 11px; font-weight: 700; }
.hm-ptw__mvt { margin: 0; font-size: 11.5px; line-height: 1.25; color: #E1E4E8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-ptw__why { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.hm-ptw__r { display: flex; gap: 5px; align-items: flex-start; font-size: 11.5px; line-height: 1.25; }
.hm-ptw__r .hm-ptw__ico { flex: none; margin-top: 1px; }
.hm-ptw__rt { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #E1E4E8; }
.hm-ptw__rt strong { color: #fff; }
.hm-ptw__rt a { color: #8AB4FF; }
.hm-ptw__acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; margin-top: auto; padding-top: 2px; }
.hm-ptw__acts .hm-ptw__draft { min-height: 30px; padding: 4px 12px; font-size: 13px; }
.hm-ptw__prof { display: inline-flex; align-items: center; min-height: 32px; color: #8AB4FF; font-size: 12px; font-weight: 700; text-decoration: none; }
.hm-ptw__prof:hover { text-decoration: underline; }
.hm-ptw__back-btn { flex: none; min-height: 28px; padding: 2px 10px; border-radius: 999px; border: 1px solid #7C848E; background: transparent; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.hm-ptw__back-btn:hover { border-color: #fff; }

/* tablet and phone: swipe row */
@media (max-width: 1023px) {
  .hm-ptw__row {
    display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden;
    margin: 0 calc(-1 * var(--margin)); padding: 6px var(--margin) 8px; scroll-padding-inline: var(--margin);
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .hm-ptw__row::-webkit-scrollbar { display: none; }
  .hm-ptw__card { flex: 0 0 32%; scroll-snap-align: start; }
}
@media (max-width: 767px) {
  .hm-ptw__h { font-size: 32px; }
  .hm-ptw__card { flex-basis: 62%; }
}

/* ---------- "How it works" popup (assets/howto.js) ---------- */
.hw { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: var(--s1); background: rgba(8, 9, 10, .72); }
.hw[hidden] { display: none; }
.hw__panel {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 2 * var(--s1)); max-height: calc(100dvh - 2 * var(--s1));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--card); color: var(--text); border-radius: var(--radius-card); box-shadow: 0 12px 40px rgba(0, 0, 0, .35), var(--shadow); padding: var(--s2);
}
.hw__h { font-family: var(--font-display); font-weight: var(--fw-display); text-transform: uppercase; font-size: var(--fs-xl); line-height: 1.05; margin: 0 0 var(--s1); }
.hw__h:focus { outline: none; }
.hw__h:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hw__media { position: relative; margin: 0 0 var(--s1); border-radius: 8px; overflow: hidden; background: #0B0B0C; }
.hw__video { display: block; width: 100%; aspect-ratio: 1 / 1; max-height: 340px; object-fit: contain; background: #0B0B0C; }
.hw__vbtn {
  position: absolute; right: 8px; top: 8px; min-height: 32px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(8, 9, 10, .7); color: #fff; font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer;
}
.hw__vbtn--play { right: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); min-height: 48px; padding: 10px 22px; font-size: var(--fs-md); background: var(--brand); border-color: var(--brand); }
.hw__vbtn:focus-visible { outline: 3px solid #8AB4FF; outline-offset: 2px; }
.hw__steps.hm-steps__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hw__steps .hm-steps__n { width: 28px; height: 28px; font-size: 18px; }
.hw__steps .hm-steps__t { margin: 3px 0 2px; }
.hw__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s2); }
.hw__btn { flex: 1 1 160px; }
@media (max-width: 767px) { .hw { padding: 12px; align-items: flex-start; } .hw__panel { padding: var(--s1); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); } }
.hw__media[hidden] { display: none; }

/* ---------- Share your team: compact side card under Your team (assets/v2/team-share.js) ---------- */
.hm-sh__top { display: flex; gap: 12px; align-items: flex-start; padding-top: 8px; }
.hm-sh__thumb { flex: none; width: 120px; height: auto; aspect-ratio: 1080 / 1350; border-radius: 6px; background: #0B0B0C; box-shadow: var(--shadow); }
.hm-sh__sum { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hm-sh__line { margin: 0; font-size: var(--fs-md); font-weight: 700; line-height: 1.3; }
.hm-sh__week { margin: 0 0 6px; font-size: var(--fs-xs); color: var(--text-muted); }
.hm-sh__native { align-self: flex-start; }
.hm-sh__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hm-sh__round {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--text); cursor: pointer; text-decoration: none;
}
.hm-sh__round:hover { border-color: var(--text); }
.hm-sh__ico, .hm-sh__ico svg { display: block; }
.hm-sh__more { margin-top: 12px; font-size: var(--fs-sm); }
.hm-sh__more summary { cursor: pointer; color: var(--link); font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.hm-sh__seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; margin-top: 6px; }
.hm-sh__segopt { position: relative; cursor: pointer; }
.hm-sh__segopt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hm-sh__segopt span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; }
.hm-sh__segopt input:checked + span { background: var(--text); color: var(--card); }
.hm-sh__segopt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.hm-sh__fine { margin: 6px 0 0; font-size: var(--fs-xs); color: var(--text-muted); }
.hm-sh__note { margin: 10px 0 0; font-size: var(--fs-xs); color: var(--text-muted); }
.hm-sh__msg { margin: 4px 0 0; font-size: var(--fs-sm); font-weight: 600; }
.hm-sh__msg:empty { display: none; }

/* ---------- phones (< 1024px): mini roster bar ----------
   Fixed just above the bottom tabs (bottom: 0 + safe area where there are no tabs, 768-1023px). Shown by home.js
   (.is-on) only after the roster card has scrolled out above the screen; the page gets extra bottom padding while it
   shows (body.hm-mini-on), so it never covers the last content. Slides up; with reduced motion it just appears. */
.hm-mini {
  position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px;
  background: #16181B; color: #fff; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .18);
  transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden;
  transition: transform 260ms cubic-bezier(.16, 1, .3, 1), opacity 200ms ease-out, visibility 0s linear 260ms;
}
.hm-mini.is-on { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
@media (max-width: 767px) { .hm-mini { bottom: calc(var(--tabs-h) + 8px + env(safe-area-inset-bottom)); } }
@media (min-width: 1024px) { .hm-mini { display: none; } }
@media (prefers-reduced-motion: reduce) { .hm-mini, .hm-mini.is-on { transition: none; transform: none; } }
.hm-mini__go { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 44px; color: #fff; text-decoration: none; border-radius: 10px; }
.hm-mini__faces { display: flex; flex: none; padding-left: 6px; }
.hm-mini__av { --av: 24px; width: 24px; height: 24px; margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px #16181B; flex: none; }
.hm-mini__av.is-empty { box-sizing: border-box; border: 1.5px dashed #7C848E; background: #16181B; }
.hm-mini__av.is-cap { box-shadow: 0 0 0 2px #D62D27; z-index: 1; }
.hm-mini__lab { font-weight: 700; font-size: var(--fs-md); white-space: nowrap; }
.hm-mini__go-txt { margin-left: auto; color: #B9BFC7; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.hm-mini__chev { display: flex; color: #B9BFC7; }
.hm-mini__go:hover .hm-mini__go-txt, .hm-mini__go:hover .hm-mini__chev { color: #fff; }
.hm-mini__x { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-left: 1px solid rgba(255, 255, 255, .12); border-radius: 0 10px 10px 0; background: transparent; color: #B9BFC7; cursor: pointer; }
.hm-mini__x:hover { color: #fff; }
.hm-mini :focus-visible { outline: 3px solid #8AB4FF; outline-offset: -3px; }
body.hm-mini-on .hm-main { padding-bottom: calc(var(--s5) + 64px); }

.hm-ptw__mvs { margin: 2px 0 0; font-size: 11px; color: var(--text-muted, #A9AFB8); }
