body[data-page="home"] .layout-shell {
  max-width: 1280px;
  margin-top: 0;
}

body[data-page="home"] .main-content {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 16px;
  padding-bottom: 16px;
}

body[data-page="home"] .page-affiliate-note {
  display: none;
}

body[data-page="home"] .site-intro {
  margin-top: 0;
}

body[data-page="home"] .sonic-static-table {
  table-layout: fixed;
}

body[data-page="home"] #areas .sonic-static-table th:nth-child(1),
body[data-page="home"] #areas .sonic-static-table td:nth-child(1) { width: 28%; }
body[data-page="home"] #areas .sonic-static-table th:nth-child(2),
body[data-page="home"] #areas .sonic-static-table td:nth-child(2) { width: 12%; }
body[data-page="home"] #areas .sonic-static-table th:nth-child(3),
body[data-page="home"] #areas .sonic-static-table td:nth-child(3) { width: 25%; }
body[data-page="home"] #areas .sonic-static-table th:nth-child(4),
body[data-page="home"] #areas .sonic-static-table td:nth-child(4) { width: 35%; }

body[data-page="home"] #enemies .sonic-static-table th:nth-child(1),
body[data-page="home"] #enemies .sonic-static-table td:nth-child(1) { width: 34%; }
body[data-page="home"] #enemies .sonic-static-table th:nth-child(2),
body[data-page="home"] #enemies .sonic-static-table td:nth-child(2) { width: 66%; }

body[data-page="home"] #items-gimmicks .sonic-static-table th:nth-child(1),
body[data-page="home"] #items-gimmicks .sonic-static-table td:nth-child(1) { width: 58%; }
body[data-page="home"] #items-gimmicks .sonic-static-table th:nth-child(2),
body[data-page="home"] #items-gimmicks .sonic-static-table td:nth-child(2) { width: 42%; }

body[data-page="home"] #bgm .sonic-static-table th:nth-child(1),
body[data-page="home"] #bgm .sonic-static-table td:nth-child(1) { width: 56%; }
body[data-page="home"] #bgm .sonic-static-table th:nth-child(2),
body[data-page="home"] #bgm .sonic-static-table td:nth-child(2) { width: 26%; }
body[data-page="home"] #bgm .sonic-static-table th:nth-child(3),
body[data-page="home"] #bgm .sonic-static-table td:nth-child(3) { width: 18%; }

@media (max-width: 850px) {
  body[data-page="home"] .sonic-character-mobile-head { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-page="home"] #enemies .sonic-character-mobile-head,
  body[data-page="home"] #items-gimmicks .sonic-character-mobile-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.home-description {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  text-align: center;
}

.home-card {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border: 2px solid var(--brand-light);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff9fc 0%, #fff 100%);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 16px rgba(244, 114, 182, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-card:hover,
.home-card:focus-visible {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(244, 114, 182, 0.12);
  outline: none;
}

.home-card-title {
  margin: 0;
  color: var(--accent);
  font-size: 1.18rem;
  line-height: 1.25;
}

.home-card-text {
  margin: 0;
  color: var(--text-main);
  font-size: 0.94rem;
  line-height: 1.45;
}

@media (max-width: 850px) {
  body[data-page="home"] .page-affiliate-note {
    display: block;
  }
}

@media (max-width: 520px) {
  body[data-page="home"] .main-content {
    padding: 6px 8px 8px;
  }

  .home-card {
    padding: 14px 12px;
  }

  .home-card-title {
    font-size: 1.08rem;
  }
}
