.page-home {
  --home-brand-red: var(--ms-red);
  --home-brand-wine: var(--ms-wine);
  --home-brand-black: var(--ms-black-deep);
  --home-brand-gold: var(--ms-gold);
  --home-brand-parchment: var(--ms-parchment);
  --home-card-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  --home-gold-line: rgba(201, 160, 99, 0.32);
}

.page-home .page-container {
  max-width: 96rem;
  width: 100%;
  padding: 0;
}

.page-home .home-shell {
  display: flex;
  flex-direction: column;
  background: var(--home-brand-black);
  color: var(--ms-white);
  min-height: 100vh;
}

.page-home .home-brand {
  background:
    linear-gradient(150deg, rgba(139, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.98) 62%, rgba(26, 26, 26, 1) 100%);
  border-bottom: 1px solid var(--home-gold-line);
  padding: 2rem 1.25rem;
}

.page-home .home-brand__inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.page-home .home-brand__tag {
  font-family: var(--ms-sans-font);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--home-brand-gold);
  border-left: 2px solid var(--home-brand-gold);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.page-home .home-brand__title {
  font-family: var(--ms-heading-font);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 0 0 0.8rem;
  background: linear-gradient(135deg, var(--ms-white) 0%, var(--home-brand-parchment) 48%, var(--home-brand-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .home-brand__lead {
  font-family: var(--ms-body-font);
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(245, 240, 230, 0.88);
  margin: 0 0 1.2rem;
  max-width: 34em;
}

.page-home .home-brand__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  border-top: 1px solid var(--home-gold-line);
  padding-top: 1rem;
}

.page-home .home-brand__meta-item {
  font-family: var(--ms-sans-font);
  font-size: 0.78rem;
  color: rgba(201, 160, 99, 0.9);
  letter-spacing: 0.03em;
}

.page-home .home-brand__media {
  display: block;
  border: 1px solid var(--home-gold-line);
  border-radius: 0.35rem;
  overflow: hidden;
  margin: 0;
  box-shadow: var(--home-card-shadow);
}

.page-home .home-brand__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 160px;
}

.page-home .home-brand__media figcaption {
  background: rgba(26, 26, 26, 0.85);
  border-top: 1px solid var(--home-gold-line);
  padding: 0.6rem 0.9rem;
  font-family: var(--ms-sans-font);
  font-size: 0.75rem;
  color: var(--home-brand-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .home-brand__entry {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}

.page-home .home-brand__entry-label {
  font-family: var(--ms-sans-font);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ms-gray);
}

.page-home .home-brand__story {
  font-size: 0.9rem;
}

.page-home .home-main {
  position: relative;
  flex: 1;
  min-width: 0;
}

.page-home .home-match-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
  overflow: hidden;
  pointer-events: none;
}

.page-home .home-match-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 320px;
}

.page-home .home-main__content {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.25rem 3rem;
}

.page-home .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--ms-sans-font);
  font-size: 0.8rem;
  color: var(--ms-gray);
  margin-bottom: 1.5rem;
}

.page-home .breadcrumb a {
  color: var(--home-brand-gold);
  text-decoration: none;
}

.page-home .breadcrumb a:hover {
  color: var(--ms-white);
}

.page-home .home-ticker,
.page-home .home-features,
.page-home .home-news {
  scroll-margin-top: 1.5rem;
}

.page-home .section-head--home {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-bottom: 1px solid var(--home-gold-line);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.page-home .section-head--home .section-head__number {
  font-family: var(--ms-heading-font);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 0.9;
  background: linear-gradient(135deg, var(--home-brand-gold), var(--ms-white));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .section-head--home .section-head__title {
  font-family: var(--ms-heading-font);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 0.2rem;
  color: var(--ms-white);
}

.page-home .section-head--home .section-head__desc {
  font-family: var(--ms-body-font);
  font-size: 0.88rem;
  margin: 0;
  color: rgba(245, 240, 230, 0.7);
  line-height: 1.5;
}

.page-home .section-head--home .section-head__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-home .tab-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--home-gold-line);
  color: var(--ms-gray);
  font-family: var(--ms-sans-font);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--ms-ease);
}

.page-home .tab-btn:hover {
  color: var(--home-brand-parchment);
  border-color: var(--home-brand-gold);
}

.page-home .tab-btn--active {
  background: rgba(212, 0, 0, 0.85);
  border-color: var(--home-brand-red);
  color: var(--ms-white);
  font-weight: 600;
}

.page-home .match-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-home .match-list--hidden {
  display: none;
}

.page-home .match-card {
  background: rgba(245, 240, 230, 0.05);
  border: 1px solid var(--home-gold-line);
  border-left: 3px solid var(--home-brand-gold);
  border-radius: 0.4rem;
  padding: 1rem 1rem 0.85rem;
  transition: transform 0.3s var(--ms-ease), box-shadow 0.3s var(--ms-ease), opacity 0.3s ease;
  animation: homeCardIn 0.45s var(--ms-ease) both;
}

.page-home .match-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-card-shadow);
  border-left-color: var(--home-brand-red);
}

.page-home .match-card__league {
  font-family: var(--ms-sans-font);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-brand-gold);
}

.page-home .match-card__status {
  font-family: var(--ms-sans-font);
  font-size: 0.74rem;
  color: var(--home-brand-parchment);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.page-home .match-card__live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ms-success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
  animation: homePulse 1.6s ease-in-out infinite;
}

.page-home .match-card__status--upcoming {
  color: rgba(156, 163, 175, 0.9);
}

.page-home .match-card__teams {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  margin: 0.75rem 0 0.6rem;
}

.page-home .match-card__team {
  font-family: var(--ms-heading-font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.page-home .match-card__team--away {
  text-align: right;
  color: rgba(245, 240, 230, 0.9);
}

.page-home .match-card__score {
  text-align: center;
  font-family: var(--ms-sans-font);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ms-white);
  background: rgba(212, 0, 0, 0.32);
  border-radius: 0.3rem;
  padding: 0.1rem 0.5rem;
  width: max-content;
  margin: 0 auto;
  transform: skewX(-6deg);
  transition: background 0.3s ease;
}

.page-home .match-card__score--upcoming {
  background: rgba(201, 160, 99, 0.12);
  color: var(--home-brand-gold);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
}

.page-home .match-card__penalty {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: center;
  border-top: 1px solid rgba(201, 160, 99, 0.15);
  padding-top: 0.65rem;
  margin-top: 0.55rem;
}

.page-home .match-card__penalty--empty {
  color: var(--ms-gray);
  font-family: var(--ms-sans-font);
  font-size: 0.74rem;
  border-top-style: dashed;
}

.page-home .penalty-card {
  font-family: var(--ms-sans-font);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.page-home .penalty-card--yellow {
  background: rgba(245, 240, 230, 0.08);
  border-color: rgba(201, 160, 99, 0.45);
  color: var(--home-brand-parchment);
}

.page-home .penalty-card--yellow::before {
  content: "■";
  color: #d9a514;
  margin-right: 0.3rem;
  font-size: 0.6rem;
  vertical-align: 1px;
}

.page-home .penalty-card--red::before {
  content: "■";
  color: var(--home-brand-red);
  margin-right: 0.3rem;
  font-size: 0.6rem;
  vertical-align: 1px;
}

.page-home .penalty-card--home,
.page-home .penalty-card--away {
  color: var(--ms-gray);
}

.page-home .match-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.page-home .match-card__hint {
  font-family: var(--ms-sans-font);
  font-size: 0.72rem;
  color: var(--ms-gray);
}

.page-home .collect-btn {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(201, 160, 99, 0.4);
  border-radius: 0.3rem;
  color: var(--home-brand-parchment);
  font-family: var(--ms-sans-font);
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.page-home .collect-btn:hover,
.page-home .collect-btn:focus-visible {
  border-color: var(--home-brand-gold);
  color: var(--home-brand-gold);
  background: rgba(201, 160, 99, 0.08);
  outline: none;
}

.page-home .collect-btn:active {
  animation: homePulse 0.35s ease;
}

.page-home .home-ticker__foot {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 160, 99, 0.18);
}

.page-home .home-ticker__update {
  font-family: var(--ms-sans-font);
  font-size: 0.76rem;
  color: var(--ms-gray);
  letter-spacing: 0.04em;
}

.page-home .home-features {
  margin-top: 3rem;
}

.page-home .feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.page-home .feature-card {
  position: relative;
  border-radius: 0.45rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.3s var(--ms-ease), box-shadow 0.3s var(--ms-ease);
}

.page-home .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-card-shadow);
}

.page-home .feature-card--wine {
  background: linear-gradient(145deg, rgba(139, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.92) 72%);
  border-left: 3px solid var(--home-brand-red);
}

.page-home .feature-card--emerald {
  background: linear-gradient(145deg, rgba(0, 92, 83, 0.8) 0%, rgba(26, 26, 26, 0.92) 72%);
  border-left: 3px solid var(--ms-emerald);
}

.page-home .feature-card--indigo {
  background: linear-gradient(145deg, rgba(46, 16, 101, 0.8) 0%, rgba(26, 26, 26, 0.92) 72%);
  border-left: 3px solid var(--ms-indigo);
}

.page-home .feature-card--black {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.92) 0%, rgba(17, 17, 17, 0.95) 72%);
  border-left: 3px solid var(--home-brand-gold);
}

.page-home .feature-card__num {
  font-family: var(--ms-heading-font);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  line-height: 0.85;
  margin-bottom: 0.5rem;
}

.page-home .feature-card__title {
  font-family: var(--ms-heading-font);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: var(--ms-white);
}

.page-home .feature-card__text {
  font-family: var(--ms-body-font);
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(245, 240, 230, 0.75);
  margin: 0;
  max-width: 28em;
}

.page-home .feature-card--wine .feature-card__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 220px;
  border-radius: 0.3rem;
  margin-top: 0.9rem;
  border: 1px solid rgba(201, 160, 99, 0.2);
  object-fit: cover;
}

.page-home .home-features__cta {
  margin-top: 1.4rem;
}

.page-home .home-news {
  margin-top: 3rem;
}

.page-home .news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-home .news-item {
  background: rgba(245, 240, 230, 0.04);
  border: 1px solid rgba(201, 160, 99, 0.18);
  border-radius: 0.4rem;
  padding: 1rem;
}

.page-home .news-item__tag {
  display: inline-block;
  font-family: var(--ms-sans-font);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-brand-gold);
  border: 1px solid rgba(201, 160, 99, 0.4);
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
  margin-bottom: 0.55rem;
}

.page-home .news-item__title {
  font-family: var(--ms-heading-font);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.45rem;
  color: var(--ms-white);
}

.page-home .news-item__summary {
  font-family: var(--ms-body-font);
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(245, 240, 230, 0.7);
  margin: 0 0 0.7rem;
}

.page-home .news-item .link-arrow {
  font-size: 0.8rem;
}

.page-home .home-news__chart {
  margin: 1.5rem 0 0;
}

.page-home .home-news__chart img {
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
  display: block;
  object-fit: cover;
  border: 1px solid var(--home-gold-line);
  background: rgba(245, 240, 230, 0.06);
}

.page-home .home-news__chart figcaption {
  font-family: var(--ms-sans-font);
  font-size: 0.74rem;
  color: var(--home-brand-gold);
  letter-spacing: 0.06em;
  padding: 0.7rem 0 0;
}

.page-home .home-news__more {
  margin-top: 1.4rem;
}

@media (min-width: 768px) {
  .page-home .home-shell {
    flex-direction: row;
    align-items: stretch;
  }

  .page-home .home-brand {
    width: 280px;
    flex: 0 0 280px;
    padding: 2.25rem 1.6rem;
    border-right: 1px solid var(--home-gold-line);
    border-bottom: none;
  }

  .page-home .home-main {
    flex: 1;
  }

  .page-home .home-main__content {
    padding: 2rem 2.5rem 4rem;
  }

  .page-home .section-head--home {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .page-home .section-head--home .section-head__number {
    font-size: 3rem;
  }

  .page-home .feature-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .page-home .news-list {
    gap: 1.1rem;
  }

  .page-home .home-news__chart {
    max-width: 480px;
  }

  .page-home .home-ticker__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1100px) {
  .page-home .home-brand {
    width: 320px;
    flex-basis: 320px;
    padding: 3rem 2rem;
  }

  .page-home .home-brand__title {
    font-size: 3rem;
  }

  .page-home .home-main__content {
    padding: 2.5rem 3.5rem 4.5rem;
  }

  .page-home .section-head--home .section-head__title {
    font-size: 1.8rem;
  }

  .page-home .match-card {
    padding: 1.15rem 1.3rem 0.95rem;
  }

  .page-home .match-card__teams {
    grid-template-columns: 1.2fr 1.6fr 1.2fr;
  }

  .page-home .home-news {
    display: grid;
    grid-template-columns: 1fr 320px;
    grid-template-areas: "head head" "list chart" "more chart";
    gap: 1.25rem 2rem;
    align-items: start;
  }

  .page-home .home-news > .section-head {
    grid-area: head;
  }

  .page-home .news-list {
    grid-area: list;
  }

  .page-home .home-news__chart {
    grid-area: chart;
    margin: 0;
    max-width: none;
  }

  .page-home .home-news__more {
    grid-area: more;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .match-card,
  .page-home .match-card__live-dot,
  .page-home .collect-btn:active {
    animation: none;
    transition: none;
  }

  .page-home .match-card:hover {
    transform: none;
  }
}

@keyframes homeCardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}
