.home-sections .home-dashboard-section {
  margin-bottom: clamp(1.5rem, 3vw, 2.75rem) !important;
}

[data-home-dashboard] [hidden] {
  display: none !important;
}

.home-dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.home-dashboard-kicker {
  color: #687389;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Shared match cards presented as a swipeable current-match window. */
html.home-has-live-match .home-hero {
  display: none !important;
}

.home-live-carousel-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-bottom: .9rem;
}

.home-live-carousel-current {
  display: grid;
  min-width: 8rem;
  justify-items: center;
  gap: .25rem;
  text-align: center;
}

.home-live-carousel-context {
  margin: 0;
  color: #111827;
  font-family: 'World Condensed', 'Causten', system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.home-live-carousel-controls {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.home-live-carousel-button {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: .5rem;
  padding: .65rem .8rem;
  color: #111827;
  background: #fff;
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.home-live-carousel-button-previous {
  justify-self: start;
}

.home-live-carousel-button-next {
  justify-self: end;
}

.home-live-carousel-button i {
  font-size: 1rem;
}

.home-live-carousel-button:hover:not(:disabled) {
  color: var(--evi-brand);
}

.home-live-carousel-button:focus-visible {
  outline: 3px solid rgba(var(--evi-brand-rgb), .22);
  outline-offset: 2px;
}

.home-live-carousel-button:disabled {
  cursor: default;
  opacity: .35;
}

.home-live-carousel-position {
  min-width: 3.1rem;
  color: #687389;
  font-size: .74rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: center;
}

.home-live-feature-panel {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.home-live-feature .match-feed {
  margin-top: 0;
}

.home-live-feature .match-feed-list {
  --home-carousel-card-width: min(94%, 1080px);
  display: grid;
  grid-auto-columns: var(--home-carousel-card-width);
  grid-auto-flow: column;
  gap: .85rem;
  overflow-x: auto;
  padding: .25rem max(.15rem, calc((100% - var(--home-carousel-card-width)) / 2)) .5rem;
  scroll-padding-inline: max(.15rem, calc((100% - var(--home-carousel-card-width)) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.home-live-feature .match-feed-list:empty {
  display: none;
}

.home-live-feature .match-feed-list::-webkit-scrollbar {
  display: none;
}

.home-live-feature .match-feed-list:focus-visible {
  outline: 3px solid rgba(var(--evi-brand-rgb), .2);
  outline-offset: -3px;
  border-radius: 20px;
}

.home-live-feature .match-card-link {
  display: grid;
  min-height: 232px;
  align-items: center;
  margin: 0;
  padding: 1.35rem 1.75rem;
  background: #fff;
  border-radius: 20px;
  opacity: .68;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transform: scale(.965);
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}

.home-live-feature .match-card-link.is-carousel-active,
.home-live-feature .match-card-link:focus-visible,
.home-live-feature .match-card-link:hover {
  background: #fff;
  opacity: 1;
  transform: scale(1);
}

.home-live-feature .match-card-board {
  grid-template-columns: minmax(100px, 1fr) 88px minmax(130px, .85fr) 88px minmax(100px, 1fr);
  gap: clamp(1rem, 3.6vw, 3.5rem);
}

.home-live-feature .match-card-logo,
.home-live-feature .match-card-logo-fallback {
  width: 84px;
  height: 84px;
}

.home-live-feature .match-card-favorite,
.home-live-feature .match-card-away .match-card-favorite {
  top: -4px;
  right: -12px;
  left: auto;
  transform: none;
}

.home-live-feature .match-card-team-name {
  max-width: 260px;
  font-size: 1.12rem;
}

.home-live-feature .match-card-score {
  min-width: 64px;
  font-size: clamp(3.35rem, 7vw, 5rem);
}

.home-live-feature .match-card-score-home,
.home-live-feature .match-card-score-away {
  transform: none;
}

.home-live-feature .match-card-group {
  font-size: .9rem;
}

.home-live-feature .match-card-meta {
  font-size: 1.3rem;
}

.home-live-feature .match-card-phase {
  font-size: .78rem;
}

.home-live-feature .match-feed-message {
  width: min(94%, 1080px);
  margin: .25rem auto .5rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border-radius: 20px;
}

.home-live-feature .match-feed-loading {
  display: flex;
  width: 100%;
  align-items: stretch;
  justify-content: center;
  gap: .85rem;
  margin: 0;
  padding: .25rem 0 .5rem;
  overflow: hidden;
  box-sizing: border-box;
  background: transparent;
}

.home-live-feature .match-feed-loading .match-card-skeleton-row {
  display: grid;
  min-height: 232px;
  /* The real grid track is 94% of the width left after its 3% side paddings. */
  flex: 0 0 min(88.36%, 1015.2px);
  align-content: center;
  box-sizing: border-box;
  padding: 1.35rem 1.75rem;
  background: #fff;
  border-radius: 20px;
  opacity: .68;
  transform: scale(.965);
  transform-origin: center;
}

.home-live-feature .match-feed-loading .match-card-skeleton-row:nth-child(2) {
  opacity: 1;
  transform: scale(1);
}

.home-live-feature .match-card-skeleton-board {
  grid-template-columns: minmax(100px, 1fr) 88px minmax(130px, .85fr) 88px minmax(100px, 1fr);
  gap: clamp(1rem, 3.6vw, 3.5rem);
}

.home-live-feature .match-card-skeleton-logo {
  width: 84px;
  height: 84px;
  border-radius: 16px;
}

.home-live-feature .match-card-skeleton-name {
  width: min(180px, 85%);
  height: 15px;
}

.home-live-feature .match-card-skeleton-score {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}

.home-live-feature .match-card-skeleton-meta {
  width: 86px;
  height: 18px;
}

/* Favorite team summaries */
.home-favorites-grid,
.home-favorites-skeleton {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-favorites-grid[hidden],
.home-favorites-skeleton[hidden] {
  display: none;
}

.home-favorite-card {
  display: grid;
  min-width: 0;
  min-height: 214px;
  padding: 1.1rem;
  color: #111827;
  background: #fff;
  border-radius: 20px;
  text-decoration: none;
}

.home-favorite-card:hover,
.home-favorite-card:focus-visible {
  color: #111827;
  background: #fdfefe;
}

.home-favorite-card:focus-visible {
  outline: 3px solid rgba(var(--evi-brand-rgb), .3);
  outline-offset: 2px;
}

.home-favorite-header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  padding-bottom: .9rem;
}

.home-favorite-logo-wrap {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  color: #687389;
  background: #f2f4f7;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
}

.home-favorite-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.home-favorite-name {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-favorite-facts {
  display: grid;
  align-content: start;
  gap: 0;
  margin: 0;
}

.home-favorite-fact {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: .75rem;
  padding: .62rem 0;
  border-top: 1px solid #edf0f3;
}

.home-favorite-fact dt,
.home-favorite-fact dd {
  min-width: 0;
  margin: 0;
}

.home-favorite-fact dt {
  color: #7b8497;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.home-favorite-fact dd {
  overflow: hidden;
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-favorite-skeleton-card {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  min-height: 214px;
  padding: 1.1rem;
  background: #fff;
  border-radius: 20px;
}

.home-favorite-skeleton-logo,
.home-favorite-skeleton-copy > span {
  display: block;
  background: linear-gradient(90deg, #eceff3 0%, #f8fafc 46%, #eceff3 100%);
  background-size: 220% 100%;
  animation: home-dashboard-shimmer 1.15s ease-in-out infinite;
}

.home-favorite-skeleton-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.home-favorite-skeleton-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 1.35rem;
  padding-top: .2rem;
}

.home-favorite-skeleton-copy > span {
  width: 100%;
  height: 15px;
  border-radius: 7px;
}

.home-favorite-skeleton-copy > span:first-child {
  width: 68%;
  height: 19px;
}

.home-dashboard-empty {
  display: block;
  min-height: 68px;
  padding: 1rem 1.1rem;
  color: #111827;
  background: #fff;
  border-radius: 20px;
}

.home-dashboard-empty[hidden] {
  display: none;
}

.home-dashboard-empty p {
  margin: 0;
  color: #687389;
  font-size: .82rem;
  line-height: 1.35;
}

.home-dashboard-error {
  margin: 0;
  padding: 1rem 1.1rem;
  color: #9d1c27;
  background: #fff;
  border-radius: 20px;
  font-size: .9rem;
  font-weight: 700;
}

/* Compact next-match tip area */
.home-tip-area {
  display: grid;
  gap: .75rem;
  margin-bottom: 1rem;
}

.home-tip-area-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.home-tip-area-head > div {
  display: grid;
  gap: .12rem;
  min-width: 0;
}

.home-tip-area-head h3 {
  margin: 0;
  color: #111827;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.15;
}

.home-tip-area-link {
  flex: 0 0 auto;
  color: var(--evi-brand);
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
}

.home-tip-area-link:hover,
.home-tip-area-link:focus-visible {
  color: var(--evi-brand);
  text-decoration: underline;
}

.home-tip-match-list,
.home-tip-match-skeleton,
.home-tip-login-cta,
.home-tip-area-state {
  color: #111827;
  background: #fff;
  border-radius: 20px;
}

.home-tip-match-list,
.home-tip-match-skeleton {
  overflow: hidden;
}

.home-tip-match-list[hidden],
.home-tip-match-skeleton[hidden],
.home-tip-area-state[hidden] {
  display: none;
}

.home-tip-match-row {
  display: grid;
  grid-template-columns: minmax(124px, .52fr) minmax(310px, 1.5fr) minmax(150px, .58fr);
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.4rem);
  min-width: 0;
  margin: 0;
  padding: .85rem 1rem;
  border: 0;
  border-top: 1px solid #edf0f3;
  background: transparent;
}

.home-tip-match-row:first-child {
  border-top: 0;
}

.home-tip-match-row.is-readonly {
  grid-template-columns: minmax(124px, .52fr) minmax(310px, 1.5fr);
}

.home-tip-match-meta {
  display: grid;
  gap: .12rem;
  min-width: 0;
  color: #687389;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.25;
}

.home-tip-match-meta > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-tip-match-meta > span:first-child {
  color: #111827;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.home-tip-match-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(.55rem, 1.5vw, 1rem);
  min-width: 0;
}

.home-tip-team {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}

.home-tip-team.is-away {
  justify-content: flex-end;
  text-align: right;
}

.home-tip-team-logo-wrap {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  flex: 0 0 36px;
  color: #687389;
  background: #f3f5f8;
  border-radius: 10px;
  font-size: .75rem;
  font-weight: 850;
}

.home-tip-team-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.home-tip-team-name {
  overflow: hidden;
  min-width: 0;
  color: #111827;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-tip-score-edit {
  display: grid;
  grid-template-columns: 42px 10px 42px;
  align-items: center;
  gap: .22rem;
}

.home-tip-score-input,
.home-tip-score-placeholder {
  display: grid;
  place-items: center;
  width: 42px;
  height: 40px;
  padding: 0;
  color: #111827;
  background: #f3f5f8;
  border: 1px solid #e2e6ec;
  border-radius: 11px;
  font: inherit;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.home-tip-score-input {
  appearance: textfield;
}

.home-tip-score-input::-webkit-inner-spin-button,
.home-tip-score-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.home-tip-score-input:focus-visible {
  border-color: var(--evi-brand);
  outline: 3px solid rgba(var(--evi-brand-rgb), .2);
  outline-offset: 1px;
}

.home-tip-score-input:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.home-tip-score-separator {
  color: #687389;
  font-size: 1rem;
  font-weight: 850;
  text-align: center;
}

.home-tip-score-edit.is-readonly .home-tip-score-placeholder {
  color: #687389;
}

.home-tip-match-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  min-width: 0;
}

.home-tip-match-feedback {
  min-width: 0;
  color: #687389;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.home-tip-match-feedback[data-state="success"] {
  color: #087a55;
}

.home-tip-match-feedback[data-state="error"] {
  color: #ad2230;
}

.home-tip-save-button {
  min-width: 82px;
  min-height: 36px;
  padding: .45rem .7rem;
  color: #fff;
  background: var(--evi-brand-strong);
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
}

.home-tip-save-button:hover:not(:disabled),
.home-tip-save-button:focus-visible:not(:disabled) {
  background: var(--evi-brand-strong);
}

.home-tip-save-button:focus-visible {
  outline: 3px solid rgba(var(--evi-brand-rgb), .25);
  outline-offset: 2px;
}

.home-tip-save-button:disabled {
  cursor: wait;
  opacity: .68;
}

.home-tip-login-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
}

.home-tip-login-cta > div {
  display: grid;
  gap: .12rem;
  min-width: 0;
}

.home-tip-login-cta strong {
  font-size: .88rem;
  line-height: 1.2;
}

.home-tip-login-cta span {
  color: #687389;
  font-size: .76rem;
  line-height: 1.3;
}

.home-tip-login-cta .btn {
  flex: 0 0 auto;
  border-radius: 11px;
  font-size: .78rem;
  font-weight: 800;
}

.home-tip-area-state {
  padding: 1rem;
  color: #687389;
  font-size: .82rem;
  font-weight: 650;
}

.home-tip-area-state.is-error {
  color: #ad2230;
}

.home-tip-match-skeleton-row {
  display: grid;
  grid-template-columns: minmax(124px, .52fr) minmax(310px, 1.5fr) minmax(150px, .58fr);
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.4rem);
  min-height: 80px;
  padding: .85rem 1rem;
  border-top: 1px solid #edf0f3;
}

.home-tip-match-skeleton-row:first-child {
  border-top: 0;
}

.home-tip-area[data-authenticated="0"] .home-tip-match-skeleton-row {
  grid-template-columns: minmax(124px, .52fr) minmax(310px, 1.5fr);
}

.home-tip-area[data-authenticated="0"] .home-tip-skeleton-action {
  display: none;
}

.home-tip-skeleton-meta,
.home-tip-skeleton-team,
.home-tip-skeleton-score,
.home-tip-skeleton-action {
  display: block;
  height: 14px;
  background: linear-gradient(90deg, #eceff3 0%, #f8fafc 46%, #eceff3 100%);
  background-size: 220% 100%;
  border-radius: 7px;
  animation: home-dashboard-shimmer 1.15s ease-in-out infinite;
}

.home-tip-skeleton-meta {
  width: 76%;
}

.home-tip-skeleton-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.home-tip-skeleton-team:last-child {
  justify-self: end;
}

.home-tip-skeleton-team {
  width: 72%;
}

.home-tip-skeleton-score {
  width: 92px;
  height: 40px;
  border-radius: 11px;
}

.home-tip-skeleton-action {
  justify-self: end;
  width: 82px;
  height: 36px;
  border-radius: 11px;
}

/* Signed-in tips summary and public fallback leaderboard */
.home-personal-tips {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 142px;
  padding: 1.25rem 1.4rem;
  color: #111827;
  background: #fff;
  border-radius: 20px;
}

.home-personal-tips[hidden] {
  display: none;
}

.home-personal-tips-copy {
  display: grid;
  gap: .2rem;
  min-width: 0;
}

.home-personal-tips-copy > strong {
  font-size: 1.1rem;
  line-height: 1.25;
}

.home-personal-tips-copy > span:last-child {
  overflow: hidden;
  color: #687389;
  font-size: .88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-personal-tips-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: .65rem;
  margin: 0;
}

.home-personal-tips-stats > div {
  min-width: 76px;
  padding: .7rem .8rem;
  background: #f3f5f8;
  border-radius: 14px;
  text-align: center;
}

.home-personal-tips-stats dt {
  color: #7b8497;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.15;
  text-transform: uppercase;
}

.home-personal-tips-stats dd {
  margin: .22rem 0 0;
  font-size: 1.3rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.home-personal-tips-action {
  min-width: 118px;
}

.home-leaderboard-card {
  height: 100%;
  padding: 1rem;
  color: #111827;
  background: #fff;
  border-radius: 20px;
}

.home-leaderboard-link {
  color: inherit;
  text-decoration: none;
}

.home-leaderboard-row {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.home-leaderboard-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.home-leaderboard-rank {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: #111827;
  background: #eef1f5;
  border-radius: 12px;
  font-weight: 850;
}

.home-leaderboard-card.is-leader .home-leaderboard-rank {
  background: #ffca2c;
}

.home-leaderboard-name {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-leaderboard-card.is-leader .home-leaderboard-name {
  font-size: 1.05rem;
}

.home-leaderboard-meta {
  color: #687389;
  font-size: .83rem;
}

.tippspiel[data-mode="personal"] .tippspiel-skeleton-leader {
  display: flex;
  align-items: center;
  min-height: 142px;
}

.tippspiel[data-mode="personal"] .tippspiel-skeleton-row {
  width: 100%;
}

@keyframes home-dashboard-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

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

  .home-favorites-skeleton > :last-child {
    display: none;
  }

  .home-personal-tips {
    grid-template-columns: minmax(180px, 1fr) auto;
  }

  .home-personal-tips-action {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 767.98px) {
  .home-sections .home-dashboard-section {
    margin-bottom: 1.75rem !important;
  }

  .home-dashboard-heading {
    margin-bottom: .8rem;
  }

  .home-tip-area {
    gap: .62rem;
    margin-bottom: .85rem;
  }

  .home-tip-area-head {
    align-items: end;
  }

  .home-tip-area-head h3 {
    font-size: 1rem;
  }

  .home-tip-area-link {
    font-size: .76rem;
  }

  .home-tip-match-row,
  .home-tip-match-row.is-readonly,
  .home-tip-match-skeleton-row,
  .home-tip-area[data-authenticated="0"] .home-tip-match-skeleton-row {
    grid-template-columns: minmax(0, 1fr);
    gap: .58rem;
    min-height: 0;
    padding: .78rem .85rem;
  }

  .home-tip-match-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    font-size: .67rem;
  }

  .home-tip-match-meta > span:first-child {
    font-size: .72rem;
  }

  .home-tip-match-meta > span:last-child {
    text-align: right;
  }

  .home-tip-match-line {
    gap: .36rem;
  }

  .home-tip-team {
    gap: .34rem;
  }

  .home-tip-team-logo-wrap {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 9px;
  }

  .home-tip-team-logo {
    width: 27px;
    height: 27px;
  }

  .home-tip-team-name {
    font-size: .72rem;
  }

  .home-tip-score-edit {
    grid-template-columns: 38px 8px 38px;
    gap: .15rem;
  }

  .home-tip-score-input,
  .home-tip-score-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: .95rem;
  }

  .home-tip-match-foot {
    justify-content: space-between;
    gap: .8rem;
  }

  .home-tip-match-feedback {
    font-size: .68rem;
    text-align: left;
  }

  .home-tip-save-button {
    min-width: 78px;
    min-height: 34px;
    padding: .4rem .65rem;
    font-size: .72rem;
  }

  .home-tip-login-cta {
    padding: .8rem .85rem;
  }

  .home-tip-login-cta strong {
    font-size: .82rem;
  }

  .home-tip-login-cta span {
    font-size: .7rem;
  }

  .home-tip-login-cta .btn {
    padding: .48rem .65rem;
    font-size: .72rem;
  }

  .home-tip-skeleton-main {
    grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
    gap: .55rem;
  }

  .home-tip-skeleton-score {
    width: 84px;
    height: 38px;
  }

  .home-tip-skeleton-action {
    justify-self: end;
    width: 78px;
    height: 34px;
  }

  .home-sections > .page-section h2:not(.accordion-header),
  .home-dashboard-heading h2 {
    font-family: 'World Condensed', 'Causten', system-ui, sans-serif;
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .home-live-feature-panel {
    width: calc(100% + 1.5rem);
    max-width: 100vw;
    margin-inline: -.75rem;
    padding: 0;
  }

  .home-live-carousel-toolbar {
    gap: .4rem;
    margin-bottom: .7rem;
  }

  .home-live-carousel-button {
    width: auto;
    min-height: 46px;
    padding: .55rem .6rem;
    border-radius: 12px;
    font-size: .66rem;
    white-space: normal;
  }

  .home-live-carousel-button-previous {
    text-align: left;
  }

  .home-live-carousel-button-next {
    text-align: right;
  }

  .home-live-carousel-current {
    min-width: 5.9rem;
  }

  .home-live-carousel-context {
    font-size: .98rem;
  }

  .home-live-carousel-position {
    font-size: .7rem;
  }

  .home-live-feature .match-feed-list {
    --home-carousel-card-width: 88%;
    gap: .65rem;
    padding-bottom: .35rem;
  }

  .home-live-feature .match-card-link {
    min-height: 184px;
    padding: 1rem .9rem;
  }

  .home-live-feature .match-feed-message {
    width: 88%;
    padding: 1rem .9rem;
  }

  .home-live-feature .match-feed-loading {
    gap: .65rem;
    padding: .25rem 0 .35rem;
  }

  .home-live-feature .match-feed-loading .match-card-skeleton-row {
    min-height: 184px;
    /* 88% card track inside the real carousel's remaining 88% content width. */
    flex-basis: 77.44%;
    padding: 1rem .9rem;
  }

  .home-live-feature .match-card-board,
  .home-live-feature .match-card-skeleton-board {
    grid-template-columns: 56px 40px minmax(62px, 1fr) 40px 56px;
    gap: .25rem;
  }

  .home-live-feature .match-card-logo,
  .home-live-feature .match-card-logo-fallback,
  .home-live-feature .match-card-skeleton-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .home-live-feature .match-card-home,
  .home-live-feature .match-card-away {
    gap: .38rem;
  }

  .home-live-feature .match-card-team-name {
    display: block;
    width: 56px;
    max-width: 56px;
    font-size: .66rem;
  }

  .home-live-feature .match-card-skeleton-name {
    display: block;
    width: 52px;
    height: 9px;
  }

  .home-live-feature .match-card-score {
    min-width: 40px;
    font-size: clamp(2.45rem, 11vw, 3rem);
  }

  .home-live-feature .match-card-skeleton-score {
    width: 40px;
    height: 46px;
    border-radius: 10px;
  }

  .home-live-feature .match-card-skeleton-group {
    width: 58px;
    height: 9px;
  }

  .home-live-feature .match-card-skeleton-meta {
    width: 54px;
    height: 14px;
  }

  .home-live-feature .match-card-skeleton-phase {
    width: 48px;
    height: 7px;
  }

  .home-live-feature .match-card-group {
    font-size: .68rem;
  }

  .home-live-feature .match-card-meta {
    font-size: .94rem;
  }

  .home-live-feature .match-card-phase {
    font-size: .6rem;
  }

  .home-favorites-grid,
  .home-favorites-skeleton {
    --home-favorite-card-width: min(84vw, 318px);
    --home-favorite-side-space: 1rem;
    display: flex;
    width: calc(100% + 1.5rem);
    gap: .8rem;
    max-width: 100vw;
    margin-inline: -.75rem;
    overflow-x: auto;
    padding: 0 var(--home-favorite-side-space) .35rem;
    scroll-padding-inline: var(--home-favorite-side-space);
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .home-favorites-grid::-webkit-scrollbar,
  .home-favorites-skeleton::-webkit-scrollbar {
    display: none;
  }

  .home-favorite-card,
  .home-favorite-skeleton-card {
    box-sizing: border-box;
    width: var(--home-favorite-card-width);
    min-height: 214px;
    flex: 0 0 var(--home-favorite-card-width);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .home-favorite-name,
  .home-favorite-fact dd {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-favorites-skeleton > :last-child {
    display: flex;
  }

  .home-dashboard-empty {
    min-height: 64px;
    padding: 1rem;
  }

  .home-personal-tips {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .home-personal-tips-copy > span:last-child {
    white-space: normal;
  }

  .home-personal-tips-stats {
    width: 100%;
    gap: .45rem;
  }

  .home-personal-tips-stats > div {
    min-width: 0;
    padding: .65rem .35rem;
  }

  .home-personal-tips-stats dt {
    min-height: 1.55rem;
  }

  .home-personal-tips-action {
    grid-column: auto;
    justify-self: stretch;
  }
}

@media (max-width: 399.98px) {
  .home-live-feature .match-card-link,
  .home-live-feature .match-feed-loading .match-card-skeleton-row,
  .home-live-feature .match-feed-message {
    padding-inline: .72rem;
  }

  .home-live-feature .match-card-board,
  .home-live-feature .match-card-skeleton-board {
    grid-template-columns: 52px minmax(30px, 36px) minmax(54px, 1fr) minmax(30px, 36px) 52px;
    gap: .1rem;
  }

  .home-live-feature .match-card-logo,
  .home-live-feature .match-card-logo-fallback,
  .home-live-feature .match-card-skeleton-logo {
    width: 46px;
    height: 46px;
  }

  .home-live-feature .match-card-team-name {
    width: 52px;
    max-width: 52px;
    font-size: .61rem;
  }

  .home-live-feature .match-card-skeleton-name {
    width: 46px;
  }

  .home-live-feature .match-card-score {
    min-width: 30px;
    font-size: 2.35rem;
  }

  .home-live-feature .match-card-skeleton-score {
    width: 30px;
    height: 42px;
  }

  .home-tip-login-cta {
    align-items: stretch;
    flex-direction: column;
    gap: .65rem;
  }

  .home-tip-login-cta .btn {
    width: 100%;
  }
}

/* Neutral black/gray dark mode for every new surface and loading state. */
html[data-theme="dark"] .home-favorite-card,
html[data-theme="dark"] .home-favorite-skeleton-card,
html[data-theme="dark"] .home-dashboard-empty,
html[data-theme="dark"] .home-dashboard-error,
html[data-theme="dark"] .home-tip-match-list,
html[data-theme="dark"] .home-tip-match-skeleton,
html[data-theme="dark"] .home-tip-login-cta,
html[data-theme="dark"] .home-tip-area-state,
html[data-theme="dark"] .home-personal-tips,
html[data-theme="dark"] .home-leaderboard-card,
html[data-theme="dark"] .tippspiel-skeleton-leader,
html[data-theme="dark"] .tippspiel-skeleton-card {
  color: var(--evi-text, #f5f5f5);
  background: var(--evi-surface, #181818);
}

html[data-theme="dark"] .home-live-feature-panel {
  background: transparent;
}

html[data-theme="dark"] .home-live-carousel-context {
  color: var(--evi-text, #f5f5f5);
}

html[data-theme="dark"] .home-live-carousel-position {
  color: var(--evi-text-muted, #b5b5b5);
}

html[data-theme="dark"] .home-live-carousel-button,
html[data-theme="dark"] .home-live-feature .match-card-link,
html[data-theme="dark"] .home-live-feature .match-card-link.is-carousel-active,
html[data-theme="dark"] .home-live-feature .match-card-link:hover,
html[data-theme="dark"] .home-live-feature .match-card-link:focus-visible,
html[data-theme="dark"] .home-live-feature .match-feed-loading .match-card-skeleton-row,
html[data-theme="dark"] .home-live-feature .match-feed-message {
  color: var(--evi-text, #f5f5f5);
  background: var(--evi-surface, #181818);
}

html[data-theme="dark"] .home-live-feature .match-feed-loading {
  background: transparent;
}

html[data-theme="dark"] .home-live-carousel-button:hover:not(:disabled) {
  color: var(--evi-brand);
}

html[data-theme="dark"] .home-favorite-card:hover,
html[data-theme="dark"] .home-favorite-card:focus-visible {
  color: var(--evi-text, #f5f5f5);
  background: var(--evi-surface-raised, #202020);
}

html[data-theme="dark"] .home-dashboard-kicker,
html[data-theme="dark"] .home-tip-match-meta,
html[data-theme="dark"] .home-tip-score-separator,
html[data-theme="dark"] .home-tip-score-edit.is-readonly .home-tip-score-placeholder,
html[data-theme="dark"] .home-tip-match-feedback,
html[data-theme="dark"] .home-tip-login-cta span,
html[data-theme="dark"] .home-favorite-fact dt,
html[data-theme="dark"] .home-dashboard-empty p,
html[data-theme="dark"] .home-personal-tips-copy > span:last-child,
html[data-theme="dark"] .home-personal-tips-stats dt,
html[data-theme="dark"] .home-leaderboard-meta {
  color: var(--evi-text-muted, #b5b5b5);
}

html[data-theme="dark"] .home-tip-area-head h3,
html[data-theme="dark"] .home-tip-match-meta > span:first-child,
html[data-theme="dark"] .home-tip-team-name,
html[data-theme="dark"] .home-tip-score-input,
html[data-theme="dark"] .home-tip-score-placeholder {
  color: var(--evi-text, #f5f5f5);
}

html[data-theme="dark"] .home-tip-match-row,
html[data-theme="dark"] .home-tip-match-skeleton-row {
  border-color: var(--evi-border, rgba(255, 255, 255, .11));
}

html[data-theme="dark"] .home-tip-team-logo-wrap {
  color: #555;
  background: #f4f4f4;
}

html[data-theme="dark"] .home-tip-score-input,
html[data-theme="dark"] .home-tip-score-placeholder {
  background: var(--evi-surface-soft, #282828);
  border-color: var(--evi-border, rgba(255, 255, 255, .12));
}

html[data-theme="dark"] .home-tip-match-feedback[data-state="success"] {
  color: #55d6a8;
}

html[data-theme="dark"] .home-tip-match-feedback[data-state="error"],
html[data-theme="dark"] .home-tip-area-state.is-error {
  color: #fda4af;
}

html[data-theme="dark"] .home-favorite-logo-wrap {
  color: #555;
  background: #f4f4f4;
}

html[data-theme="dark"] .home-favorite-fact {
  border-color: var(--evi-border, rgba(255, 255, 255, .11));
}

html[data-theme="dark"] .home-personal-tips-stats > div,
html[data-theme="dark"] .home-leaderboard-rank {
  color: var(--evi-text, #f5f5f5);
  background: var(--evi-surface-soft, #282828);
}

html[data-theme="dark"] .home-leaderboard-card.is-leader .home-leaderboard-rank {
  color: #151515;
  background: #f2bf27;
}

html[data-theme="dark"] .home-dashboard-error {
  color: #fda4af;
}

html[data-theme="dark"] .home-live-feature .match-card-meta.is-live {
  color: var(--evi-text, #f5f5f5);
}

html[data-theme="dark"] .home-favorite-skeleton-logo,
html[data-theme="dark"] .home-favorite-skeleton-copy > span,
html[data-theme="dark"] .tippspiel-skeleton-badge,
html[data-theme="dark"] .tippspiel-skeleton-name,
html[data-theme="dark"] .tippspiel-skeleton-meta,
html[data-theme="dark"] .home-tip-skeleton-meta,
html[data-theme="dark"] .home-tip-skeleton-team,
html[data-theme="dark"] .home-tip-skeleton-score,
html[data-theme="dark"] .home-tip-skeleton-action {
  background: linear-gradient(
    90deg,
    var(--evi-skeleton-a, #242424) 0%,
    var(--evi-skeleton-b, #343434) 46%,
    var(--evi-skeleton-a, #242424) 100%
  );
  background-size: 220% 100%;
}

@media (max-width: 370px) {
  .home-live-carousel-toolbar {
    gap: .2rem;
  }

  .home-live-carousel-button {
    gap: .25rem;
    padding-inline: .4rem;
    font-size: .6rem;
  }

  .home-live-carousel-current {
    min-width: 5.2rem;
  }

  .home-live-carousel-context {
    font-size: .88rem;
  }

  .home-live-feature .match-card-board {
    grid-template-columns: 46px 34px minmax(50px, 1fr) 34px 46px;
    gap: .16rem;
  }

  .home-live-feature .match-card-logo,
  .home-live-feature .match-card-logo-fallback {
    width: 42px;
    height: 42px;
  }

  .home-live-feature .match-card-team-name {
    width: 46px;
    max-width: 46px;
    font-size: .58rem;
  }

  .home-live-feature .match-card-score {
    min-width: 34px;
    font-size: 2.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-live-feature .match-card-link {
    transition: none;
  }

  .home-favorite-skeleton-logo,
  .home-favorite-skeleton-copy > span,
  .home-tip-skeleton-meta,
  .home-tip-skeleton-team,
  .home-tip-skeleton-score,
  .home-tip-skeleton-action {
    animation: none;
  }
}
