/* FantasyHQ homepage — light body under the dark command center */

.hq-content.hq-content--home {
  padding: 0 0 2.5rem;
  max-width: none;
  background: var(--ff-surface, #f7f9fc);
}

.fh-home {
  display: flex;
  flex-direction: column;
}

.home-body {
  width: min(100% - 48px, 1600px);
  margin: 0 auto;
  padding: 2.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

html:not([data-theme="dark"]) .home-body {
  color: #06162d;
}

.fh-home-kicker,
.fh-home-section-head p,
.fh-home-empty,
.fh-home-news-card p,
.fh-home-game-meta {
  color: var(--ff-text-muted);
}

.fh-home-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.fh-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.fh-home-btn--primary {
  background: linear-gradient(180deg, #33b7ff 0%, #00a3ff 48%, #0088d4 100%);
  color: #fff;
  box-shadow:
    0 8px 20px rgba(0, 132, 210, 0.28),
    0 1px 2px rgba(7, 26, 53, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.fh-home-btn--primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #4ac0ff 0%, #0aadff 48%, #007fc8 100%);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 12px 26px rgba(0, 132, 210, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.fh-home-btn--primary:focus-visible {
  outline: 2px solid var(--fh-accent, #00a3ff);
  outline-offset: 3px;
}

.fh-home-btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.8125rem;
}

.fh-home-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.fh-home-btn--ghost:hover {
  transform: translateY(-1px);
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
}

.home-page .pfn-header-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.home-page .pfn-header-auth .fh-home-btn--sm {
  min-height: 40px;
}

@media (max-width: 1100px) {
  .home-page .pfn-header-signup {
    display: none;
  }

  .home-page .pfn-header-auth .fh-home-btn--sm {
    padding: 0 14px;
    min-height: 36px;
    font-size: 0.8125rem;
  }
}

.fh-home-section {
  background: var(--ff-surface-raised, #fff);
  border: 1px solid var(--ff-border, #d8e0ec);
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.25rem;
}

.fh-home-section-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.95rem;
}

.fh-home-section-head--center {
  justify-content: center;
  text-align: center;
}

.fh-home-section-head h2,
.fh-home-conferences h3,
.fh-home-news-card h3,
.fh-home-tool h3 {
  margin: 0;
  color: var(--ff-heading);
  letter-spacing: -0.02em;
}

.fh-home-section-head h2 {
  font-size: 1.35rem;
  font-weight: 800;
}

.fh-home-section-head p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
}

.fh-home-text-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fh-accent, #00a3ff);
  text-decoration: none;
  white-space: nowrap;
}

.fh-home-weeks {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px;
  margin-bottom: 1rem;
  background: var(--ff-surface-raised, rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(8px);
  border: 1px solid var(--ff-border, #dce5ef);
  border-radius: 11px;
  box-shadow:
    0 1px 2px rgba(10, 29, 58, 0.04),
    0 8px 24px rgba(10, 29, 58, 0.06);
}

.fh-home-weeks::-webkit-scrollbar {
  display: none;
}

.fh-home-week {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ff-text-muted, #52627a);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.fh-home-week:hover {
  background: var(--ff-surface-sunken, #f8fafc);
  color: var(--ff-heading, #0b1d38);
  text-decoration: none;
}

.fh-home-week.is-active {
  background: var(--fh-accent, #00a3ff);
  color: #fff;
}

.fh-home-week.is-active:hover {
  background: var(--fh-accent, #00a3ff);
  color: #fff;
}

.fh-home-week:focus-visible {
  outline: 2px solid var(--fh-accent, #00a3ff);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .fh-home-week,
  .fh-home-tool-tab,
  .fh-home-tool__cta,
  .fh-home-tool__arrow,
  .fh-home-btn,
  .fh-home-explore__card,
  .fh-home-desks__card,
  .fh-home-news-card {
    transition: none;
  }
  .fh-home-tool:hover .fh-home-tool__cta,
  .fh-home-tool:hover .fh-home-tool__arrow,
  .fh-home-btn:hover,
  .fh-home-explore__card:hover,
  .fh-home-desks__card:hover {
    transform: none;
  }
  .fh-home-news-card:hover {
    transform: none;
  }
}

.fh-home-games {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(188px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.fh-home-game {
  background: var(--ff-surface, #eef3fa);
  border: 1px solid var(--ff-border);
  border-radius: 14px;
  padding: 0.8rem;
  text-decoration: none;
  color: var(--ff-text);
  min-width: 188px;
}

.fh-home-game:hover {
  border-color: var(--fh-accent, #00a3ff);
  text-decoration: none;
}

.fh-home-game-top,
.fh-home-game-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ff-text-muted);
}

.fh-home-game-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.45rem 0;
}

.fh-home-game-row img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.fh-home-game-row small {
  margin-left: auto;
  color: var(--fh-accent, #00a3ff);
  font-weight: 700;
}

.fh-home-empty {
  margin: 0;
  font-size: 0.9rem;
}

.fh-home-news {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 860px) {
  .fh-home-news {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
    grid-template-rows: repeat(3, minmax(108px, auto));
    gap: 0.9rem;
  }
  .fh-home-news-card.is-feature {
    grid-row: 1 / span 3;
  }
}

.fh-home-news-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 16px;
  border: 1px solid var(--ff-border);
  text-decoration: none;
  color: var(--ff-text);
  background: var(--ff-surface-raised, #fff);
  box-shadow: 0 1px 2px rgba(10, 29, 58, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.fh-home-news-card.is-feature {
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 0.75rem;
}

.fh-home-news-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--fh-navy, #0b1f3a);
}

.fh-home-news-card__media > img {
  display: block;
  width: 100%;
  height: 108px;
  object-fit: cover;
  object-position: center 30%;
}

.fh-home-news-card.is-feature .fh-home-news-card__media > img {
  height: 240px;
  object-position: 72% center;
}

.fh-home-news-faces {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
}

.fh-home-news-faces img {
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  background: #102943;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
  flex: none;
}

.fh-home-news-faces img:first-child {
  margin-left: 0;
}

html[data-theme="dark"] .fh-home-news-faces img {
  border-color: #10243c;
}

.fh-home-news-card.is-feature .fh-home-news-faces img {
  width: 44px;
  height: 44px;
}

.fh-home-news-card__copy {
  min-width: 0;
  padding-right: 0.25rem;
}

.fh-home-news-card.is-feature .fh-home-news-card__copy {
  padding: 0.85rem 0.7rem 0.55rem;
}

.fh-home-news-card h3 {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.2rem 0 0.3rem;
  color: var(--ff-heading);
}

.fh-home-news-card.is-feature h3 {
  font-size: 1.28rem;
  line-height: 1.2;
}

.fh-home-news-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fh-home-news-card.is-feature p {
  -webkit-line-clamp: 3;
  font-size: 0.9rem;
}

.fh-home-news-card span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fh-accent, #00a3ff);
}

.fh-home-news-card small {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ff-heading);
}

.fh-home-news-card:hover {
  border-color: color-mix(in srgb, var(--fh-accent, #00a3ff) 55%, var(--ff-border));
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.fh-home-news-card:hover small {
  color: var(--fh-accent, #00a3ff);
}

.fh-home-desks__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.fh-home-desks__card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 76px;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(11, 31, 58, 0.1);
  background: var(--ff-surface, #f7f9fc);
  color: var(--ff-heading, #0b1d38);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(10, 29, 58, 0.04);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.fh-home-desks__card:hover,
.fh-home-desks__card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 163, 255, 0.42);
  box-shadow:
    0 10px 22px rgba(7, 26, 53, 0.08),
    0 1px 2px rgba(7, 26, 53, 0.05);
  color: var(--ff-heading, #0b1d38);
  text-decoration: none;
}

.fh-home-desks__card:focus-visible {
  outline: 2px solid var(--fh-accent, #00a3ff);
  outline-offset: 2px;
}

.fh-home-desks__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 163, 255, 0.1);
  color: var(--fh-accent, #00a3ff);
}

.fh-home-desks__icon .fhq-icon,
.fh-home-desks__icon svg {
  width: 18px;
  height: 18px;
}

.fh-home-desks__copy {
  min-width: 0;
}

.fh-home-desks__copy b {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.fh-home-desks__copy small {
  display: block;
  margin-top: 0.22rem;
  color: var(--ff-text-muted, #52627a);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 1180px) {
  .fh-home-desks__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fh-home-desks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fh-home-desks__card {
    min-height: 72px;
  }
}

.fh-home-tool-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 1rem;
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--ff-surface-raised, rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(8px);
  border: 1px solid var(--ff-border, #dce5ef);
  border-radius: 11px;
  box-shadow:
    0 1px 2px rgba(10, 29, 58, 0.04),
    0 8px 24px rgba(10, 29, 58, 0.06);
}

.fh-home-tool-tabs::-webkit-scrollbar {
  display: none;
}

.fh-home-tool-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ff-text-muted, #52627a);
  font-weight: 700;
  font-size: 0.8125rem;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.fh-home-tool-tab:hover {
  background: var(--ff-surface-sunken, #f8fafc);
  color: var(--ff-heading, #0b1d38);
}

.fh-home-tool-tab.is-active {
  background: var(--fh-accent, #00a3ff);
  color: #fff;
}

.fh-home-tool-tab.is-active:hover {
  background: var(--fh-accent, #00a3ff);
  color: #fff;
}

.fh-home-tool-tab:focus-visible {
  outline: 2px solid var(--fh-accent, #00a3ff);
  outline-offset: 2px;
}

.fh-home-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.8rem;
}

.fh-home-tool-grid.is-hidden {
  display: none;
}

.fh-home-tool {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ff-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ff-surface, #eef3fa);
  text-decoration: none;
  color: var(--ff-text);
  min-height: 100%;
}

.fh-home-tool:hover {
  border-color: var(--fh-accent, #00a3ff);
  text-decoration: none;
}

.fh-home-tool-media {
  aspect-ratio: 16 / 9;
  background: var(--fh-navy, #0b1f3a);
  overflow: hidden;
}

.fh-home-tool-media img,
.fh-home-tool-media picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fh-home-tool h3 {
  font-size: 0.95rem;
  padding: 0.7rem 0.8rem 0.2rem;
}

.fh-home-tool p {
  margin: 0;
  padding: 0 0.8rem;
  font-size: 0.8rem;
  color: var(--ff-text-muted);
  flex: 1;
}

.fh-home-tool__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 36px;
  margin: 0.75rem 0.8rem 0.9rem;
  padding: 0 14px 0 15px;
  border-radius: 8px;
  border: 1px solid rgba(11, 31, 58, 0.12);
  background: var(--ff-surface-raised, #fff);
  color: #0b1d38;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(10, 29, 58, 0.05);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.fh-home-tool__arrow {
  flex: none;
  color: var(--fh-accent, #00a3ff);
  transition: transform 0.16s ease, color 0.16s ease;
}

.fh-home-tool:hover .fh-home-tool__cta {
  transform: translateY(-1px);
  border-color: rgba(0, 163, 255, 0.42);
  box-shadow:
    0 8px 18px rgba(7, 26, 53, 0.08),
    0 1px 2px rgba(7, 26, 53, 0.06);
}

.fh-home-tool:hover .fh-home-tool__arrow {
  transform: translateX(3px);
}

.fh-home-tools-foot {
  display: flex;
  justify-content: center;
  margin-top: 1.1rem;
}

.fh-home-explore {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.fh-home-explore__card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 76px;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(11, 31, 58, 0.1);
  background: var(--ff-surface-raised, #fff);
  color: var(--ff-heading, #0b1d38);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(10, 29, 58, 0.04);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.fh-home-explore__card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 163, 255, 0.42);
  box-shadow:
    0 8px 18px rgba(7, 26, 53, 0.08),
    0 1px 2px rgba(7, 26, 53, 0.05);
  text-decoration: none;
}

.fh-home-explore__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(0, 163, 255, 0.08);
  color: var(--fh-accent, #00a3ff);
}

.fh-home-explore__icon .fhq-icon,
.fh-home-explore__icon svg {
  width: 18px;
  height: 18px;
}

.fh-home-explore__copy {
  min-width: 0;
}

.fh-home-explore__copy b {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.fh-home-explore__copy small {
  display: block;
  margin-top: 0.2rem;
  color: var(--ff-text-muted, #52627a);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 1180px) {
  .fh-home-explore {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fh-home-explore {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fh-home-conferences {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .fh-home-conferences {
    grid-template-columns: 1fr 1fr;
  }
}

.fh-home-conferences h3 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.fh-home-team-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fh-home-team-row a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 52px;
  color: var(--ff-text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
}

.fh-home-team-row img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.fh-home-league {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  background: var(--fh-navy, #0b1f3a);
  color: #fff;
}

.fh-home-league h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.fh-home-league h2 span {
  color: var(--fh-brand-blue, #00a3ff);
}

.fh-home-league p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.fh-home .fhq-newsletter {
  margin: 0;
}

@media (max-width: 860px) {
  .home-body {
    width: min(100% - 24px, 1600px);
    padding-top: 1.75rem;
  }
  .fh-home-news-card {
    grid-template-columns: 1fr;
  }
  .fh-home-news-card__media > img,
  .fh-home-news-card.is-feature .fh-home-news-card__media > img {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 220px;
    object-position: center 22%;
  }
  .fh-home-news-faces img,
  .fh-home-news-card.is-feature .fh-home-news-faces img {
    width: 40px;
    height: 40px;
  }
}
