/* Some brand heading fonts (Georgia) only ship old-style figures, where 3/4/5/7/9
   drop below the line. For counters, digits come from a lining serif via
   unicode-range; letters and symbols still use the brand heading font. */
@font-face {
  font-family: "hps-lining-digits";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Noto Serif"), local("NotoSerif");
  font-weight: 400;
  unicode-range: U+0030-0039, U+002C, U+002E;
}
@font-face {
  font-family: "hps-lining-digits";
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Noto Serif Bold"), local("NotoSerif-Bold");
  font-weight: 700 900;
  unicode-range: U+0030-0039, U+002C, U+002E;
}
/* ─── Home page builder: public section renderer ─────────────────────────────
 * Shared by org-home.html and league-home.html (js/home-page-sections.js).
 * Accent = --highlight-color, shapes = --brand-radius-*; never --mint/--primary
 * directly (decoy hues for brand-style tenants — see branding token contract).
 */

.hps-page { display: flex; flex-direction: column; gap: clamp(18px, 3vw, 28px); }
.hps-page[hidden] { display: none; }

.hps-page-title {
  margin: 0;
  font-family: var(--brand-font-heading, inherit);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
  text-wrap: balance;
}

/* Section shell */
.hps-section {
  --hps-pad: clamp(20px, 4vw, 40px);
  position: relative;
  width: 100%;
  margin-inline: auto;
  border-radius: var(--brand-radius-lg, 20px);
  overflow: hidden;
  color: var(--text);
}
.hps-section--spacing-compact { --hps-pad: clamp(14px, 2.6vw, 24px); }
.hps-section--spacing-roomy { --hps-pad: clamp(28px, 6vw, 64px); }
.hps-section__inner { position: relative; z-index: 1; padding: var(--hps-pad); }
.hps-section--align-center .hps-section__inner { text-align: center; }
.hps-section--align-center .hps-actions,
.hps-section--align-center .hps-cards { justify-content: center; }

.hps-bg--surface {
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  box-shadow: 0 16px 36px rgba(0,0,0,0.2);
}
.hps-bg--brand {
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--highlight-color) 16%, transparent), transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand-color, var(--highlight-color)) 55%, #0b0b12), color-mix(in srgb, var(--brand-color, var(--highlight-color)) 25%, #0b0b12));
  border: 1px solid color-mix(in srgb, var(--highlight-color) 35%, transparent);
}
.hps-bg--none { background: transparent; border-radius: 0; overflow: visible; }
.hps-bg--none > .hps-section__inner { padding-inline: 0; }

.hps-bg--image { background: #0b0b12; border: 1px solid var(--stroke); }
.hps-bg-image {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hps-bg-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(5,5,10,var(--hps-overlay-top, .35)), rgba(5,5,10,var(--hps-overlay, .55)));
}

/* Typography */
.hps-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 10px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--highlight-color);
}
.hps-heading {
  margin: 0 0 10px;
  font-family: var(--brand-font-heading, inherit);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.15; font-weight: 800; text-wrap: balance;
}
.hps-intro { margin: 0 0 18px; color: var(--muted); line-height: 1.65; white-space: pre-line; max-width: 72ch; }
.hps-section--align-center .hps-intro { margin-inline: auto; }

/* Buttons: anchors carry .btn-primary/.btn-secondary so they inherit the
 * tenant's Brand Studio button style + control shape (those rules are
 * !important by design) — we only handle layout/size here. */
.hps-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hps-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  font-size: 0.98rem; text-decoration: none; white-space: nowrap;
}
.hps-btn:focus-visible { outline: 2px solid var(--highlight-color); outline-offset: 3px; }
.hps-hero .hps-btn.btn-secondary { backdrop-filter: blur(6px); }

/* Hero */
.hps-hero .hps-section__inner {
  display: flex; flex-direction: column; justify-content: center;
  min-height: var(--hps-hero-h, 360px);
  padding-block: clamp(32px, 7vw, 80px);
}
.hps-hero--short { --hps-hero-h: 260px; }
.hps-hero--medium { --hps-hero-h: 380px; }
.hps-hero--tall { --hps-hero-h: 520px; }
.hps-section--align-center.hps-hero .hps-section__inner { align-items: center; }
.hps-hero__headline {
  margin: 0;
  font-family: var(--brand-font-heading, inherit);
  font-size: clamp(2rem, 5.6vw, 3.6rem);
  line-height: 1.05; font-weight: 900; letter-spacing: -0.01em;
  text-wrap: balance; max-width: 22ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hps-hero__sub {
  margin: 16px 0 0; max-width: 60ch;
  font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.6;
  color: rgba(255,255,255,0.86); white-space: pre-line;
}

/* Rich text (same reading styles as the legacy body) */
.hps-rich { line-height: 1.7; font-size: 1rem; }
.hps-rich > :first-child { margin-top: 0; }
.hps-rich > :last-child { margin-bottom: 0; }
.hps-rich h1, .hps-rich h2, .hps-rich h3, .hps-rich h4 { line-height: 1.2; margin-top: 1.3em; margin-bottom: 0.45em; font-family: var(--brand-font-heading, inherit); }
.hps-rich p, .hps-rich ul, .hps-rich ol, .hps-rich blockquote { margin: 0 0 0.9em; }
.hps-rich a { color: var(--highlight-color); text-decoration: underline; text-underline-offset: 2px; }
.hps-rich ul, .hps-rich ol { padding-left: 1.2em; }
.hps-section--align-center .hps-rich ul, .hps-section--align-center .hps-rich ol { display: inline-block; text-align: left; }
.hps-rich img { max-width: 100%; height: auto; border-radius: 10px; }
.hps-rich blockquote { border-left: 3px solid var(--highlight-color); padding-left: 14px; color: var(--muted); }

/* Feature grid */
.hps-grid {
  display: grid; gap: 14px; margin-top: 8px;
  grid-template-columns: repeat(var(--hps-cols, 3), minmax(0, 1fr));
}
.hps-feature {
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: var(--brand-radius-md, 16px);
  background: rgba(255,255,255,0.035);
  text-align: left;
  transition: border-color .2s ease, transform .2s ease;
}
.hps-feature:hover { border-color: color-mix(in srgb, var(--highlight-color) 45%, transparent); transform: translateY(-2px); }
.hps-section--align-center .hps-feature { text-align: center; }
.hps-feature__icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 12px;
  border-radius: var(--brand-radius-sm, 12px);
  background: color-mix(in srgb, var(--highlight-color) 16%, transparent);
  color: var(--highlight-color);
  font-size: 1.4rem;
}
.hps-feature__title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; }
.hps-feature__text { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.95rem; white-space: pre-line; }

/* CTA band */
.hps-cta .hps-section__inner { padding-block: clamp(28px, 5vw, 52px); }
.hps-cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.hps-section--align-center .hps-cta__row { flex-direction: column; justify-content: center; }
.hps-cta .hps-heading { margin-bottom: 6px; }
.hps-cta .hps-intro { margin: 0; color: rgba(255,255,255,0.82); }
.hps-cta .hps-actions { margin-top: 0; }

/* Cards (registration + announcements) */
.hps-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 6px; }
.hps-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: var(--brand-radius-md, 16px);
  background: rgba(255,255,255,0.04);
  text-align: left; color: var(--text); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
a.hps-card:hover, .hps-card:focus-within { border-color: color-mix(in srgb, var(--highlight-color) 50%, transparent); transform: translateY(-2px); }
.hps-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hps-card__title { margin: 0; font-size: 1.08rem; font-weight: 800; line-height: 1.25; }
.hps-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; color: var(--muted); font-size: 0.88rem; }
.hps-card__kind { color: var(--highlight-color); font-weight: 700; letter-spacing: 0.02em; }
.hps-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.hps-card__text { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.hps-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.hps-card .hps-btn { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
/* flex: none — beside a long title the pill was squeezed narrower than its
   nowrap text, so "OPEN" slid under the icon. :not(#_) keeps the site-wide
   [class*="-pill"] rules from resetting the spacing. */
.hps-pill:not(#_) {
  flex: none;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  line-height: 1.2;
  border-radius: var(--brand-radius-pill, 999px);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  color: var(--highlight-color);
  background: color-mix(in srgb, var(--highlight-color) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--highlight-color) 35%, transparent);
}
.hps-pill .ti { font-size: 0.95em; line-height: 1; }
.hps-pill.hps-pill--warn:not(#_) { color: #ffcf66; background: rgba(255,190,70,0.12); border-color: rgba(255,190,70,0.35); }
.hps-price { font-weight: 800; color: var(--text); white-space: nowrap; }
.hps-link { color: var(--highlight-color); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.hps-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hps-section-foot { margin-top: 16px; }

.hps-empty { padding: 18px; border: 1px dashed rgba(255,255,255,0.22); border-radius: var(--brand-radius-md, 14px); color: var(--muted); text-align: center; }
.hps-skeleton {
  height: 132px; border-radius: var(--brand-radius-md, 16px);
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: hps-shimmer 1.3s ease-in-out infinite;
}
@keyframes hps-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Loading slots */
.hps-slot { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 6px; }
.hps-slot--countdown { display: block; }

/* Weekly schedule (orgs) */
.hps-week { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-top: 6px; }
.hps-week__day {
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--brand-radius-md, 16px);
  background: rgba(255,255,255,0.035);
  text-align: left;
}
.hps-week__day.is-today { border-color: color-mix(in srgb, var(--highlight-color) 55%, transparent); }
.hps-week__label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; font-size: 0.95rem; font-weight: 800; }
.hps-week__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hps-week__list li { display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; }
.hps-week__time { font-weight: 800; color: var(--highlight-color); font-variant-numeric: tabular-nums; }
.hps-week__who { color: var(--text); display: flex; flex-direction: column; }
.hps-week__where { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 0.82rem; }
.hps-week__more { color: var(--muted); font-size: 0.82rem; }

/* Games (leagues) */
.hps-games { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 6px; }
.hps-game {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--brand-radius-md, 16px);
  background: rgba(255,255,255,0.04);
  text-align: left;
}
.hps-game__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 0.84rem; }
.hps-game__meta span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.hps-game__teams { display: flex; flex-direction: column; gap: 8px; }
.hps-game__team { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.hps-game__team.is-winner .hps-game__name, .hps-game__team.is-winner .hps-game__score { color: var(--highlight-color); }
.hps-game__logo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,0.08); flex: 0 0 30px; }
.hps-game__logo--initials { display: inline-grid; place-items: center; font-size: 0.72rem; font-weight: 800; color: var(--muted); }
.hps-game__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hps-game__score { font-size: 1.2rem; font-weight: 900; font-variant-numeric: tabular-nums; }

/* Gallery */
.hps-photo-grid { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 170px; margin-top: 6px; }
/* Grid layout: uniform tiles at the chosen shape (portrait suits posters/player cards). */
.hps-photo-grid--grid { grid-auto-rows: auto; }
.hps-photo-grid--grid .hps-photo { aspect-ratio: 4 / 3; }
.hps-photo-grid--grid.hps-photo-grid--square .hps-photo { aspect-ratio: 1 / 1; }
.hps-photo-grid--grid.hps-photo-grid--portrait .hps-photo { aspect-ratio: 4 / 5; }
/* Mosaic keeps the 2×2 feature tile; shape sets the row height. */
.hps-photo-grid--mosaic.hps-photo-grid--square { grid-auto-rows: 200px; }
.hps-photo-grid--mosaic.hps-photo-grid--portrait { grid-auto-rows: 250px; }
.hps-photo {
  position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in;
  background: rgba(255,255,255,0.05);
}
/* Photo tiles are <button>s for keyboard access; Brand Studio's pill control
 * shape targets every button with !important at (0,4,1) — out-rank it with an
 * ID-weight :not() so tiles stay rectangles. */
.hps-photo:not(#_) { border-radius: var(--brand-radius-md, 14px) !important; }
.hps-photo-grid--mosaic .hps-photo:first-child { grid-column: span 2; grid-row: span 2; }
.hps-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.hps-photo:hover img { transform: scale(1.04); }
.hps-photo:focus-visible { outline: 2px solid var(--highlight-color); outline-offset: 2px; }
/* styles.css has `body > * { position: relative }`, which beats the UA's fixed
 * positioning for modal dialogs — pin the viewer to the viewport explicitly. */
.hps-lightbox {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(5,5,10,0.94); color: #fff; display: grid; place-items: center;
}
.hps-lightbox::backdrop { background: rgba(5,5,10,0.8); }
.hps-lightbox__figure { margin: 0; max-width: min(1200px, 92vw); text-align: center; }
.hps-lightbox__figure img { max-width: 100%; max-height: 82vh; border-radius: 12px; object-fit: contain; }
.hps-lightbox__figure figcaption { margin-top: 10px; color: rgba(255,255,255,0.8); font-size: 0.92rem; }
.hps-lightbox__close, .hps-lightbox__nav {
  position: fixed; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08);
  color: #fff; font-size: 1.3rem; cursor: pointer;
}
.hps-lightbox__close { top: 16px; right: 16px; }
.hps-lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.hps-lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.hps-lightbox button:focus-visible { outline: 2px solid var(--highlight-color); outline-offset: 2px; }

/* Standings */
.hps-standings-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); width: 100%; margin-top: 6px; }
.hps-table-wrap { container-type: inline-size; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--stroke); border-radius: var(--brand-radius-md, 14px); background: rgba(255,255,255,0.02); }
.hps-table__group { margin: 0 0 8px; font-size: 0.95rem; font-weight: 800; text-align: left; }
.hps-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.hps-table th, .hps-table td { padding: 12px 8px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.06); white-space: nowrap; }
.hps-table thead th { color: var(--muted); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(255,255,255,0.03); }
.hps-table thead th:first-child, .hps-table__rank { width: 72px; }
.hps-table th[scope="row"], .hps-table thead th:nth-child(2) { width: 26%; text-align: left; font-weight: 700; }
.hps-table tbody tr:hover { background: color-mix(in srgb, var(--highlight-color) 6%, transparent); }
.hps-table tbody tr:last-child th, .hps-table tbody tr:last-child td { border-bottom: 0; }
.hps-table__team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hps-table__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.hps-table__logo { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; padding: 2px; box-sizing: border-box; background: rgba(255,255,255,0.05); border: 1px solid color-mix(in srgb, var(--highlight-color) 40%, transparent); flex: 0 0 34px; }
.hps-table__logo--initials { display: inline-grid; place-items: center; font-size: 0.72rem; font-weight: 800; color: var(--highlight-color); background: color-mix(in srgb, var(--highlight-color) 12%, transparent); }
.hps-table__rank { width: 64px; font-weight: 700; }
.hps-table__medal { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 0.8rem; font-weight: 800; color: #1a1205; }
.hps-table__medal--gold { background: linear-gradient(135deg, #ffe08a, #f5b528); }
.hps-table__medal--silver { background: linear-gradient(135deg, #e6ebf2, #aab4c4); }
.hps-table__medal--bronze { background: linear-gradient(135deg, #f0b483, #bd7842); color: #fff; }
.hps-table__win { font-weight: 700; }
.hps-table__pts { font-weight: 800; color: var(--highlight-color); }

/* Narrow home cards match the standings page: a real table that scrolls
   sideways instead of crushing every column into the phone width. */
@container (max-width: 640px) {
  .hps-table { table-layout: auto; width: max-content; min-width: 720px; }
  .hps-table thead th:first-child, .hps-table__rank { width: 64px; }
  .hps-table th[scope="row"], .hps-table thead th:nth-child(2) { width: auto; min-width: 168px; }
  .hps-table__team { min-width: 150px; }
  .hps-table__name { overflow: visible; text-overflow: clip; }
  .hps-table th, .hps-table td { padding: 12px 10px; }
}

/* Stat leaders */
.hps-leader-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 6px; }
.hps-leader { padding: 14px 14px 8px; border: 1px solid var(--stroke); border-radius: var(--brand-radius-md, 14px); background: rgba(255,255,255,0.035); text-align: left; }
.hps-leader__title { margin: 0 0 8px; font-size: 0.92rem; font-weight: 800; }
.hps-leader__list { list-style: none; margin: 0; padding: 0; }
.hps-leader__list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.hps-leader__rank { width: 1.1rem; color: var(--muted); font-weight: 800; font-variant-numeric: tabular-nums; }
.hps-leader__list li:first-child .hps-leader__rank { color: var(--highlight-color); }
.hps-leader__photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,0.08); flex: 0 0 32px; }
.hps-leader__photo--initials { display: inline-grid; place-items: center; font-size: 0.68rem; font-weight: 800; color: var(--muted); }
.hps-leader__who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.hps-leader__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hps-leader__team { color: var(--muted); font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hps-leader__value { font-weight: 900; font-variant-numeric: tabular-nums; }

/* Stat counters */
.hps-stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 6px; }
.hps-stat { padding: 20px 16px; text-align: center; border-radius: var(--brand-radius-md, 16px); background: rgba(255,255,255,0.04); border: 1px solid var(--stroke); }
.hps-stat__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 50%; color: var(--highlight-color); background: color-mix(in srgb, var(--highlight-color) 14%, transparent); font-size: 1.25rem; }
.hps-stat__number { margin: 0; font-family: "hps-lining-digits", var(--brand-font-heading, inherit); font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 900; line-height: 1; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.hps-stat__suffix { color: var(--highlight-color); margin-left: 2px; }
.hps-stat__label { margin: 8px 0 0; color: var(--muted); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* Countdown */
.hps-countdown .hps-section__inner { text-align: center; }
.hps-countdown .hps-intro { margin-inline: auto; }
.hps-countdown .hps-actions { justify-content: center; }
.hps-count { display: flex; justify-content: center; gap: clamp(8px, 2vw, 18px); margin-top: 8px; }
.hps-count__unit {
  min-width: clamp(64px, 14vw, 104px); padding: 14px 10px;
  border-radius: var(--brand-radius-md, 14px);
  background: rgba(0,0,0,0.28); border: 1px solid color-mix(in srgb, var(--highlight-color) 30%, transparent);
}
.hps-count__num { display: block; font-family: "hps-lining-digits", var(--brand-font-heading, inherit); font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900; line-height: 1; color: var(--text); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.hps-count__label { display: block; margin-top: 6px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--highlight-color); }

/* Sponsors wall */
.hps-sponsor-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 6px; }
.hps-sponsor {
  display: grid; place-items: center; flex: 0 1 200px; height: 96px; padding: 8px;
  background: transparent; border: 0; transition: transform .2s ease;
}
a.hps-sponsor:hover { transform: translateY(-2px); }
.hps-sponsor img { max-width: 100%; max-height: 80px; object-fit: contain; background: transparent; }
.hps-sponsor-grid--mono .hps-sponsor img { filter: grayscale(1); opacity: .8; transition: filter .2s ease, opacity .2s ease; }
.hps-sponsor-grid--mono .hps-sponsor:hover img { filter: none; opacity: 1; }

/* Staff */
.hps-person {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 22px 18px; border: 1px solid var(--stroke); border-radius: var(--brand-radius-md, 16px);
  background: rgba(255,255,255,0.035);
}
.hps-person__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 2px solid color-mix(in srgb, var(--highlight-color) 55%, transparent); }
.hps-person__photo--initials { display: grid; place-items: center; font-size: 1.8rem; font-weight: 900; color: var(--highlight-color); background: color-mix(in srgb, var(--highlight-color) 12%, transparent); }
.hps-person__name { margin: 0; font-size: 1.05rem; font-weight: 800; }
.hps-person__role { margin: 0; color: var(--highlight-color); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.hps-person__bio { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; white-space: pre-line; }

/* Device targeting (section visibility) — matches the 720px layout breakpoint. */
@media (max-width: 720px) { .hps-vis--desktop { display: none; } }
@media (min-width: 721px) { .hps-vis--mobile { display: none; } }

/* Builder preview only: sections outside their date window. */
.hps-section--preview-hidden { opacity: 0.45; outline: 2px dashed color-mix(in srgb, var(--highlight-color) 60%, transparent); outline-offset: -2px; }
.hps-section--preview-hidden::before {
  content: attr(data-hps-preview-note);
  position: absolute; top: 10px; right: 10px; z-index: 3;
  padding: 3px 10px; border-radius: 999px;
  background: var(--highlight-color); color: #0b0b12; font-size: 0.72rem; font-weight: 800;
}

/* Contact card inside the builder keeps its own component styles. */
.hps-contact-slot .tenant-contact-card { margin: 0; }

@media (max-width: 900px) {
  .hps-grid { grid-template-columns: repeat(min(var(--hps-cols, 3), 2), minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hps-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hps-photo-grid--mosaic { grid-auto-rows: 140px; }
  .hps-photo-grid--mosaic.hps-photo-grid--portrait { grid-auto-rows: 200px; }
}
@media (max-width: 560px) {
  .hps-grid { grid-template-columns: 1fr; }
  .hps-count__unit { min-width: 0; flex: 1 1 0; }
  .hps-standings-grid { grid-template-columns: 1fr; }
  .hps-actions { flex-direction: column; align-items: stretch; }
  .hps-btn { width: 100%; }
  /* Card buttons keep their size on phones: full width they crowded the price
     ("From $15") and turned every card into a big purple bar. */
  .hps-card .hps-btn { width: auto; flex: none; min-width: 112px; }
  .hps-cta__row { flex-direction: column; align-items: stretch; }
  .hps-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hps-btn, .hps-feature, .hps-card { transition: none; }
  .hps-btn:hover, .hps-feature:hover, a.hps-card:hover { transform: none; }
  .hps-skeleton { animation: none; }
  .hps-photo img, a.hps-sponsor { transition: none; }
  .hps-photo:hover img, a.hps-sponsor:hover { transform: none; }
}

/* ─── Motion ─────────────────────────────────────────────────────────────────
 * Every hidden/initial state is scoped to .hps-motion, which js/home-page-
 * sections.js adds only when motion is allowed (Brand Studio level subtle or
 * lively, no prefers-reduced-motion, IntersectionObserver available). Without
 * it the page renders fully static and fully visible.
 */
@property --hps-zoom { syntax: '<number>'; inherits: false; initial-value: 1; }

.hps-motion {
  --hps-rise: 16px;
  --hps-dur: 0.65s;
  --hps-step: 55ms;
  --hps-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.hps-motion--lively {
  --hps-rise: 28px;
  --hps-dur: 0.85s;
  --hps-step: 80ms;
}

@keyframes hps-section-in { from { opacity: 0; transform: translateY(var(--hps-rise)); } to { opacity: 1; transform: none; } }
@keyframes hps-item-in { from { opacity: 0; transform: translateY(calc(var(--hps-rise) * 0.75)) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes hps-photo-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes hps-hero-in { from { opacity: 0; transform: translateY(calc(var(--hps-rise) * 1.2)); filter: blur(var(--hps-blur, 0)); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hps-kenburns { from { --hps-zoom: 1.12; } to { --hps-zoom: 1; } }
@keyframes hps-tick { from { opacity: 0; transform: translateY(-45%); } to { opacity: 1; transform: none; } }
@keyframes hps-breathe { from { box-shadow: 0 0 0 0 rgba(255,190,70,0.0); } to { box-shadow: 0 0 0 5px rgba(255,190,70,0.16); } }
@keyframes hps-shine { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(220%) skewX(-18deg); } }

/* Sections rise in as they enter the viewport. Fill mode is `backwards` so the
 * hidden start state applies during the stagger delay, then normal styles
 * (incl. hover transforms) take over once the entrance ends. */
.hps-motion .hps-section:not(.hps-in) { opacity: 0; transform: translateY(var(--hps-rise)); }
.hps-motion .hps-section.hps-in { animation: hps-section-in var(--hps-dur) var(--hps-ease) backwards; }

/* Their contents cascade in, one after another. */
.hps-motion .hps-section:not(.hps-in) :is(.hps-heading, .hps-intro),
.hps-motion .hps-section:not(.hps-in) :is(.hps-card, .hps-feature, .hps-stat, .hps-person, .hps-game, .hps-week__day, .hps-sponsor, .hps-leader, .hps-table-wrap, .hps-table tbody tr, .hps-slot--countdown, .hps-cta__row > *, .hps-rich > *, .hps-empty, .hps-section-foot),
.hps-motion .hps-section:not(.hps-in) .hps-photo { opacity: 0; }
.hps-motion .hps-section.hps-in :is(.hps-heading, .hps-intro) { animation: hps-item-in var(--hps-dur) var(--hps-ease) 60ms backwards; }
.hps-motion .hps-section.hps-in :is(.hps-card, .hps-feature, .hps-stat, .hps-person, .hps-game, .hps-week__day, .hps-sponsor, .hps-leader, .hps-table-wrap, .hps-table tbody tr, .hps-slot--countdown, .hps-cta__row > *, .hps-rich > *, .hps-empty, .hps-section-foot) {
  animation: hps-item-in var(--hps-dur) var(--hps-ease) backwards;
  animation-delay: calc(140ms + var(--hps-i, 0) * var(--hps-step));
}
.hps-motion .hps-section.hps-in .hps-photo {
  animation: hps-photo-in var(--hps-dur) var(--hps-ease) backwards;
  animation-delay: calc(120ms + var(--hps-i, 0) * var(--hps-step));
}

/* Hero: staged entrance (label → headline → text → buttons). */
.hps-motion .hps-hero:not(.hps-in) :is(.hps-eyebrow, .hps-hero__headline, .hps-hero__sub, .hps-actions) { opacity: 0; }
.hps-motion .hps-hero.hps-in :is(.hps-eyebrow, .hps-hero__headline, .hps-hero__sub, .hps-actions) { animation: hps-hero-in calc(var(--hps-dur) * 1.15) var(--hps-ease) backwards; }
.hps-motion .hps-hero.hps-in .hps-eyebrow { animation-delay: 80ms; }
.hps-motion .hps-hero.hps-in .hps-hero__headline { animation-delay: 180ms; }
.hps-motion .hps-hero.hps-in .hps-hero__sub { animation-delay: 300ms; }
.hps-motion .hps-hero.hps-in .hps-actions { animation-delay: 420ms; }
.hps-motion--lively .hps-hero { --hps-blur: 6px; }

/* Lively: slow Ken Burns zoom + scroll parallax on background photos. */
.hps-motion--lively .hps-bg-image {
  inset: -10% 0;
  translate: 0 var(--hps-parallax, 0px);
  transform: scale(var(--hps-zoom));
  will-change: translate, transform;
}
.hps-motion--lively .hps-section.hps-in .hps-bg-image { animation: hps-kenburns 14s ease-out both; }

/* Countdown digits flip as they change. */
.hps-motion .hps-count__num[data-changed] { animation: hps-tick 0.45s var(--hps-ease) backwards; }

/* Richer hover: accent glow on interactive cards. */
.hps-motion :is(a.hps-card, .hps-feature, .hps-person, .hps-game, .hps-stat) {
  transition: transform 0.25s var(--hps-ease), border-color 0.25s ease, box-shadow 0.3s ease;
}
.hps-motion :is(a.hps-card, .hps-feature, .hps-person, .hps-game, .hps-stat):hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--highlight-color) 45%, transparent);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--highlight-color) 16%, rgba(0,0,0,0.3));
}
.hps-motion .hps-photo img { transition: transform 0.6s var(--hps-ease); }
.hps-motion .hps-photo:hover img { transform: scale(1.06); }
.hps-motion .hps-person:hover .hps-person__photo { transform: scale(1.04); }
.hps-motion .hps-person__photo { transition: transform 0.35s var(--hps-ease); }

/* Lively: light sweep across primary buttons, and deadline pills breathe. */
.hps-motion--lively .hps-btn.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.hps-motion--lively .hps-btn.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: translateX(-120%) skewX(-18deg);
}
.hps-motion--lively .hps-btn.btn-primary:hover::after { animation: hps-shine 0.9s ease; }
.hps-motion--lively .hps-pill--warn { animation: hps-breathe 1.6s ease-in-out infinite alternate; }

@media print {
  .hps-motion *, .hps-motion .hps-section { opacity: 1 !important; transform: none !important; animation: none !important; filter: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hps-motion *, .hps-motion .hps-section { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ------------------------------------------------------------------
 * Page loader: the shared .loading-spinner (styles.css), centered, until the
 * config arrives; it fades out as the page renders. On failure it becomes a
 * friendly error with a retry. No -card/-panel/-pill suffixes (styles.css
 * themes those).
 * ------------------------------------------------------------------ */
.hps-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hps-loader {
  --hps-ld-accent: var(--highlight-color, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  min-height: 50vh;
  transition: opacity 0.25s ease;
}
/* Brand highlight on a faint track: the shared purple spinner vanishes on
   purple tenant backgrounds. */
.hps-loader .loading-spinner { margin: 0; border-color: rgba(255,255,255,.14); border-top-color: var(--hps-ld-accent); }
.hps-loader.is-leaving { opacity: 0; pointer-events: none; }

/* Error state (replaces the spinner when the page can't load). */
.hps-loader--error { display: block; min-height: 0; animation: hps-loader-in 0.4s ease backwards; }
@keyframes hps-loader-in { from { opacity: 0; transform: translateY(10px); } }
.hps-loader__error {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: clamp(40px, 8vw, 72px) 24px; border-radius: var(--brand-radius-lg, 24px);
  border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(18, 18, 26, 0.86);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.hps-loader__error-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font-size: 1.6rem; color: var(--hps-ld-accent);
  background: color-mix(in srgb, var(--hps-ld-accent) 16%, transparent);
}
.hps-loader__error h2 { margin: 4px 0 0; font-size: 1.25rem; color: var(--text); }
.hps-loader__error p { margin: 0; max-width: 420px; color: var(--muted); }
.hps-loader__retry:not(#_) {
  margin-top: 8px; padding: 10px 22px !important; border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--hps-ld-accent) 60%, transparent) !important;
  background: color-mix(in srgb, var(--hps-ld-accent) 18%, transparent) !important;
  color: var(--text) !important; font-weight: 700; cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .hps-loader, .hps-loader--error { animation: none; transition: none; }
}

/* Registration Open grouped by program type (only when 2+ types are open). */
.hps-slot.hps-program-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.hps-subheading {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: 1rem; font-weight: 800; letter-spacing: 0.01em; color: var(--text);
}
.hps-subheading .ti { color: var(--highlight-color); font-size: 1.1rem; }
.hps-subheading__count {
  margin-left: 2px; min-width: 22px; padding: 1px 8px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; text-align: center; color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
}
.hps-program-group .hps-cards { margin-top: 0; }
