.page-home {
  --home-radius-xl: 36px;
  --home-radius-lg: 28px;
  --home-radius-md: 20px;
}

.page-home .home-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  overflow: hidden;
  border-radius: 0 0 var(--home-radius-xl) var(--home-radius-xl);
  background: var(--color-primary);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  max-width: 100%;
}

.page-home .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(10, 92, 138, 0.88) 0%, rgba(26, 127, 181, 0.62) 45%, rgba(255, 122, 69, 0.3) 100%);
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 52px;
}

.page-home .home-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-home .crumb-sep {
  opacity: 0.7;
}

.page-home .crumb-tag {
  font-weight: 600;
}

.page-home .hero-kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 201, 107, 0.4);
  background: rgba(245, 201, 107, 0.14);
  color: var(--color-accent);
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.page-home .home-hero h1 {
  margin: 0 0 16px;
  max-width: 760px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(10, 92, 138, 0.3);
  text-wrap: balance;
}

.page-home .hero-lead {
  max-width: 620px;
  margin: 0 0 24px;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .hero-actions .btn {
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(10, 92, 138, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
}

.page-home .hero-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 92, 138, 0.4);
}

.page-home .hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.page-home .hero-gull {
  position: absolute;
  right: 3%;
  top: 15%;
  z-index: 2;
  width: min(440px, 44vw);
  pointer-events: none;
  opacity: 0.9;
}

.page-home .gull-svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-bento {
  margin-top: 44px;
}

.page-home .bento-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 122, 69, 0.12);
  color: var(--color-secondary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.page-home .bento-title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.3;
  color: var(--color-text);
}

.page-home .bento-desc {
  max-width: 520px;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-muted);
}

.page-home .bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-home .bento-cell {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--home-radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.page-home .results-hero {
  position: relative;
  min-height: 170px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-primary);
}

.page-home .results-hero .cell-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
}

.page-home .hero-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 92, 138, 0.12) 0%, rgba(10, 92, 138, 0.78) 100%),
    linear-gradient(115deg, rgba(255, 122, 69, 0.22) 0%, transparent 42%);
}

.page-home .results-headline {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 20px;
}

.page-home .results-headline h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 12px rgba(10, 92, 138, 0.35);
}

.page-home .results-headline .filter-btn {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.page-home .results-headline .filter-btn.is-active {
  background: #fff;
  border-color: #fff;
  color: var(--color-primary);
}

.page-home .results-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 16px 16px;
}

.page-home .result-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 10px 2px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 92, 138, 0.3) transparent;
}

.page-home .result-card {
  flex: 0 0 230px;
  scroll-snap-align: start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(10, 92, 138, 0.08);
  background: linear-gradient(160deg, #fff 0%, rgba(10, 92, 138, 0.04) 100%);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.page-home .result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.page-home .result-league {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.page-home .result-game {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.page-home .team-label {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.page-home .team-label:last-of-type {
  text-align: right;
}

.page-home .score-line {
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(10, 92, 138, 0.07);
  font-family: var(--font-data);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--color-primary);
}

.page-home .score-colon {
  padding: 0 2px;
  color: var(--color-secondary);
}

.page-home .result-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--color-muted);
}

.page-home .result-time {
  font-family: var(--font-data);
  font-weight: 600;
  color: var(--color-primary);
}

.page-home .result-empty {
  width: 100%;
  padding: 20px;
  border-radius: 16px;
  background: rgba(10, 92, 138, 0.04);
  text-align: center;
  font-size: 14px;
  color: var(--color-muted);
}

.page-home .results-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(10, 92, 138, 0.08);
}

.page-home .cell-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.page-home .cell-link:hover {
  color: var(--color-secondary);
}

.page-home .cell-note {
  font-size: 13px;
  color: var(--color-muted);
}

.page-home .photo-block {
  position: relative;
  height: 110px;
  overflow: hidden;
}

.page-home .photo-block .cell-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
}

.page-home .photo-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 92, 138, 0.15), rgba(255, 122, 69, 0.06));
}

.page-home .standings-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.page-home .cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .cell-head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-text);
}

.page-home .league-badge {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 92, 138, 0.12);
  background: rgba(10, 92, 138, 0.08);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.page-home .standings-table {
  display: grid;
  gap: 6px;
}

.page-home .standing-head-row,
.page-home .standing-row {
  display: grid;
  grid-template-columns: 32px 1fr 48px 48px;
  align-items: center;
  gap: 8px;
}

.page-home .standing-head-row {
  padding: 0 12px;
  font-size: 12px;
  color: var(--color-muted);
}

.page-home .standing-row {
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(10, 92, 138, 0.05);
  font-size: 14px;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.page-home .standing-row:hover {
  transform: translateX(2px);
  background: rgba(10, 92, 138, 0.1);
}

.page-home .standing-rank {
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--color-primary);
}

.page-home .standing-team {
  overflow: hidden;
  font-weight: 600;
  color: var(--color-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .standing-num {
  font-family: var(--font-data);
  text-align: right;
  color: var(--color-muted);
}

.page-home .standing-pts {
  font-family: var(--font-data);
  font-weight: 800;
  text-align: right;
  color: var(--color-secondary);
}

.page-home .btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.page-home .calendar-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.page-home .cal-desc {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}

.page-home .month-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 6px 0 12px;
}

.page-home .strip-dot {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(10, 92, 138, 0.07);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  transition: transform var(--transition-fast);
}

.page-home .strip-dot.is-mid {
  background: rgba(10, 92, 138, 0.18);
}

.page-home .strip-dot.is-high {
  background: rgba(255, 122, 69, 0.2);
}

.page-home .strip-dot.is-yesterday {
  background: var(--color-primary);
  color: #fff;
}

.page-home .strip-dot.is-today {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 122, 69, 0.35);
}

.page-home .calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--color-muted);
}

.page-home .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-home .legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 4px;
}

.page-home .legend-dot.is-low {
  background: rgba(10, 92, 138, 0.07);
}

.page-home .legend-dot.is-mid {
  background: rgba(10, 92, 138, 0.18);
}

.page-home .legend-dot.is-high {
  background: rgba(255, 122, 69, 0.35);
}

.page-home .legend-dot.is-yesterday {
  background: var(--color-primary);
}

.page-home .legend-dot.is-today {
  background: var(--color-secondary);
}

.page-home .calendar-body .cell-link {
  margin-top: auto;
  padding-top: 8px;
}

.page-home .cell-actions {
  border: 1px solid rgba(10, 92, 138, 0.1);
  background: linear-gradient(120deg, rgba(10, 92, 138, 0.06), rgba(255, 122, 69, 0.07));
}

.page-home .actions-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
}

.page-home .actions-desc {
  max-width: 640px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
}

.page-home .action-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 6px 0 4px;
}

.page-home .hero-search-box {
  display: flex;
  flex: 1 1 280px;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  padding: 4px 16px;
  border-radius: 999px;
  border: 1px solid rgba(10, 92, 138, 0.12);
  background: #fff;
}

.page-home .hero-search-box .search-symbol {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.page-home .hero-search-box .search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.page-home .action-search-row .btn {
  border-radius: 999px;
}

.page-home .hero-version-switcher {
  margin: 8px 0;
}

.page-home .actions-keylist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .actions-keylist li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 92, 138, 0.07);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
}

.page-home .actions-foot {
  margin-top: 4px;
}

.page-home .home-stats-wrap {
  margin-top: 48px;
}

.page-home .home-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 30px 20px;
  border-radius: var(--home-radius-xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 60%, var(--color-secondary));
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.page-home .stat-item {
  padding: 18px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-data);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.page-home .stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.page-home .home-rhythm {
  margin-top: 48px;
}

.page-home .rhythm-card {
  padding: 32px 20px;
  border-radius: var(--home-radius-xl);
  border: 1px solid rgba(10, 92, 138, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(243, 249, 252, 0.7) 50%, rgba(255, 244, 232, 0.55));
}

.page-home .rhythm-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.3;
  color: var(--color-text);
}

.page-home .rhythm-lead {
  max-width: 560px;
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-muted);
}

.page-home .rhythm-steps {
  display: grid;
  gap: 16px;
}

.page-home .rhythm-step {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(10, 92, 138, 0.06);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.page-home .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  margin-bottom: 10px;
  padding: 0 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.page-home .rhythm-step:nth-child(2) .step-index {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.page-home .rhythm-step:last-child .step-index {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
}

.page-home .rhythm-step h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
}

.page-home .rhythm-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
}

.page-home .home-trust-wrap {
  margin-top: 48px;
}

.page-home .home-trust {
  display: grid;
  gap: 18px;
  padding: 28px 20px;
  border-radius: var(--home-radius-lg);
  border: 1px solid rgba(10, 92, 138, 0.08);
  border-left: 5px solid var(--color-secondary);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.page-home .home-trust h2 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-text);
}

.page-home .trust-badges {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .trust-badges li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
}

.page-home .trust-badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.page-home .trust-tip {
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(10, 92, 138, 0.05);
  font-size: 13px;
  color: var(--color-muted);
}

.page-home .home-links-wrap {
  margin: 48px 0 16px;
}

.page-home .home-links {
  display: grid;
  gap: 16px;
}

.page-home .link-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 20px 22px;
  border-radius: var(--home-radius-md);
  border: 1px solid rgba(10, 92, 138, 0.06);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.page-home .link-card:hover,
.page-home .link-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.page-home .link-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
}

.page-home .link-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
}

.page-home .link-arrow {
  margin-top: 12px;
  font-size: 18px;
  color: var(--color-secondary);
  transition: transform var(--transition-fast);
}

.page-home .link-card:hover .link-arrow {
  transform: translateX(6px);
}

@media (max-width: 767px) {
  .page-home .hero-gull {
    display: none;
  }
}

@media (min-width: 768px) {
  .page-home .home-hero {
    min-height: 600px;
    align-items: center;
  }

  .page-home .home-hero h1 {
    font-size: 38px;
  }

  .page-home .hero-lead {
    font-size: 16px;
  }

  .page-home .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "results results"
      "standings calendar"
      "actions actions";
  }

  .page-home .cell-results {
    grid-area: results;
  }

  .page-home .cell-standings {
    grid-area: standings;
  }

  .page-home .cell-calendar {
    grid-area: calendar;
  }

  .page-home .cell-actions {
    grid-area: actions;
  }

  .page-home .home-stats {
    grid-template-columns: repeat(4, 1fr);
    padding: 36px 28px;
  }

  .page-home .rhythm-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
  }

  .page-home .rhythm-card {
    padding: 40px 32px;
  }

  .page-home .rhythm-step:nth-child(2) {
    transform: translateY(12px);
  }

  .page-home .rhythm-step:last-child {
    transform: translateY(24px);
  }

  .page-home .home-trust {
    grid-template-columns: 2fr 1fr;
    align-items: center;
    padding: 32px 28px;
  }

  .page-home .trust-tip {
    margin: 0;
  }

  .page-home .home-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .page-home .home-hero {
    min-height: 640px;
  }

  .page-home .home-hero h1 {
    font-size: 48px;
  }

  .page-home .hero-lead {
    font-size: 17px;
  }

  .page-home .bento-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
    grid-template-areas:
      "results standings"
      "results calendar"
      "actions actions";
    gap: 24px;
  }

  .page-home .bento-title {
    font-size: 28px;
  }

  .page-home .home-links {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .home-links .link-card:nth-child(even) {
    transform: translateY(18px);
  }

  .page-home .home-links .link-card:nth-child(even):hover,
  .page-home .home-links .link-card:nth-child(even):focus {
    transform: translateY(14px);
  }
}
