.page-home {
  --home-hero-size: 22px 22px;
  --home-card-w: 228px;
  --home-card-gap: 14px;
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.page-home .home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

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

.page-home .breadcrumb {
  margin-bottom: 16px;
}

.page-home .breadcrumb .breadcrumb-prefix {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.page-home .hero-head {
  max-width: 760px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--coral);
  text-transform: uppercase;
  margin: 0;
}

.page-home .hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  font-weight: 900;
  color: var(--deep);
  margin: 0;
}

.page-home .hero-lead {
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 56ch;
  margin: 2px 0 0;
}

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

.page-home .hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.92fr);
  gap: 36px;
  align-items: start;
}

.page-home .hero-categories {
  position: relative;
}

.page-home .section-head.tight {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.page-home .section-head.tight .section-desc {
  margin-top: 6px;
  max-width: 44ch;
}

.page-home .section-more {
  flex-shrink: 0;
}

.page-home .btn-sm {
  padding: 6px 14px;
  font-size: 0.86rem;
  border-radius: 999px;
}

.page-home .category-deco {
  position: absolute;
  top: -18px;
  right: 0;
  width: 88px;
  height: 88px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: var(--shadow);
  z-index: 2;
}

.page-home .tile-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.page-home .mega-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 118px;
  padding: 14px 14px 12px;
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.page-home .mega-tile::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease;
}

.page-home .mega-tile:hover,
.page-home .mega-tile:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 12px 30px rgba(30, 58, 95, 0.16);
  text-decoration: none;
}

.page-home .mega-tile:hover::after,
.page-home .mega-tile:focus-visible::after {
  transform: scale(1.3);
}

.page-home .mega-tile:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.page-home .tile-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.page-home .tile-count {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 700;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.page-home .tile-count small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

.page-home .tile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.page-home .chip {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  line-height: 1.6;
  white-space: nowrap;
  color: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-home .mega-tile:hover .chip,
.page-home .mega-tile:focus-visible .chip {
  background: rgba(255, 255, 255, 0.95);
  color: var(--deep);
}

.page-home .tile-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.page-home .mega-tile:hover .tile-arrow,
.page-home .mega-tile:focus-visible .tile-arrow {
  transform: translateX(4px);
}

.page-home .tile-coral {
  background: var(--coral);
}

.page-home .tile-seaweed {
  background: var(--seaweed);
}

.page-home .tile-sand {
  background: var(--sand);
  color: #33200f;
}

.page-home .tile-sand .chip {
  background: rgba(60, 40, 20, 0.14);
}

.page-home .tile-sand:hover .chip,
.page-home .tile-sand:focus-visible .chip {
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep);
}

.page-home .tile-coral-red {
  background: var(--coral-red);
}

.page-home .hero-latest {
  min-width: 0;
}

.page-home .latest-band {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.page-home .latest-band-img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: cover;
}

.page-home .latest-scroll {
  display: flex;
  gap: var(--home-card-gap);
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x proximity;
  margin-right: -4px;
}

.page-home .latest-card {
  flex: 0 0 var(--home-card-w);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .latest-card:hover,
.page-home .latest-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.page-home .latest-visual {
  position: relative;
  height: 100px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-home .latest-visual::before {
  content: "";
  width: 26px;
  height: 34px;
  border-radius: 50% 50% 50% 8px;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(-32deg);
}

.page-home .latest-visual::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  right: -8px;
  top: -8px;
}

.page-home .vis-coral {
  background: linear-gradient(135deg, var(--coral), #ffa07a);
}

.page-home .vis-seaweed {
  background: linear-gradient(135deg, var(--seaweed), #3fa56f);
}

.page-home .vis-sand {
  background: linear-gradient(135deg, var(--sand), #f5c58a);
}

.page-home .vis-blush {
  background: linear-gradient(135deg, var(--coral-red), #ff8a8a);
}

.page-home .vis-deep {
  background: linear-gradient(135deg, var(--deep), #356a9a);
}

.page-home .latest-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.4;
}

.page-home .latest-name a {
  color: var(--ink);
  text-decoration: none;
}

.page-home .latest-name a:hover {
  color: var(--link-hover);
}

.page-home .latest-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.page-home .batch-id {
  font-family: var(--font-mono);
  color: var(--deep);
}

.page-home .latest-cat {
  opacity: 0.85;
}

.page-home .home-tags {
  background: var(--tint-sand);
}

.page-home .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  padding: 12px 0 8px;
}

.page-home .tag-cloud .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 18px;
  text-decoration: none;
  line-height: 1.4;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.page-home .tag-cloud .tag:hover,
.page-home .tag-cloud .tag:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(30, 58, 95, 0.14);
}

.page-home .tag-cloud .tag.is-active {
  outline: 3px solid var(--deep);
  outline-offset: 3px;
}

.page-home .tag-hot {
  font-size: 1.32rem;
  font-weight: 800;
  background: var(--gold);
  color: var(--deep);
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.3);
}

.page-home .tag-mid {
  font-size: 1.06rem;
  font-weight: 600;
  background: var(--coral);
  color: #fff;
}

.page-home .tag-low {
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--deep);
  color: var(--cream);
}

.page-home .current-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.page-home .home-toplist {
  background: var(--tint-blush);
}

.page-home .toplist-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.page-home .toplist-deco {
  width: 100%;
  height: 100%;
  min-height: 380px;
  max-height: 520px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.page-home .toplist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .toplist-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
}

.page-home .toplist-row:last-child {
  border-bottom: none;
}

.page-home .toplist-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.page-home .toplist-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.45;
}

.page-home .toplist-name:hover {
  color: var(--link-hover);
}

.page-home .toplist-row:nth-child(-n + 5) .toplist-name {
  font-weight: 800;
}

.page-home .metric-bar {
  height: 8px;
  background: rgba(30, 58, 95, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.page-home .metric-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.page-home .toplist-row:nth-child(1) .metric-fill {
  width: 100%;
}

.page-home .toplist-row:nth-child(2) .metric-fill {
  width: 94%;
}

.page-home .toplist-row:nth-child(3) .metric-fill {
  width: 88%;
}

.page-home .toplist-row:nth-child(4) .metric-fill {
  width: 81%;
}

.page-home .toplist-row:nth-child(5) .metric-fill {
  width: 75%;
}

.page-home .toplist-row:nth-child(6) .metric-fill {
  width: 62%;
}

.page-home .toplist-row:nth-child(7) .metric-fill {
  width: 58%;
}

.page-home .toplist-row:nth-child(8) .metric-fill {
  width: 45%;
}

.page-home .toplist-row:nth-child(1) .metric-fill,
.page-home .toplist-row:nth-child(2) .metric-fill {
  background: linear-gradient(90deg, var(--deep), #3d6c9b);
}

.page-home .toplist-row:nth-child(3) .metric-fill,
.page-home .toplist-row:nth-child(4) .metric-fill {
  background: linear-gradient(90deg, var(--seaweed), #3fa56f);
}

.page-home .toplist-row:nth-child(5) .metric-fill,
.page-home .toplist-row:nth-child(6) .metric-fill {
  background: linear-gradient(90deg, var(--sand), #f5c58a);
}

.page-home .toplist-row:nth-child(7) .metric-fill,
.page-home .toplist-row:nth-child(8) .metric-fill {
  background: linear-gradient(90deg, var(--coral), #ff9a7a);
}

.page-home .home-steps {
  background: var(--tint-seaweed);
}

.page-home .steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.page-home .step-card {
  position: relative;
  background: var(--cream);
  border-radius: 28px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  box-shadow: var(--shadow);
}

.page-home .step-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--tint-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
}

.page-home .step-icon svg {
  width: 28px;
  height: 28px;
}

.page-home .step-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 1.9rem;
  font-weight: 800;
  color: rgba(30, 58, 95, 0.12);
  line-height: 1;
}

.page-home .step-title {
  margin: 4px 0 0;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--deep);
}

.page-home .step-desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.page-home .step-card .btn {
  margin-top: 8px;
}

@media (max-width: 1200px) {
  .page-home .hero-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-home .category-deco {
    display: none;
  }

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

  .page-home .toplist-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .page-home .home-hero-inner {
    padding-top: 14px;
    padding-bottom: 40px;
  }

  .page-home .hero-title {
    font-size: 1.8rem;
  }

  .page-home .hero-lead {
    font-size: 0.98rem;
  }

  .page-home .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-home .tile-matrix {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .page-home .mega-tile {
    min-height: 104px;
    padding: 12px 10px 10px;
    border-radius: 20px;
  }

  .page-home .tile-title {
    font-size: 0.95rem;
  }

  .page-home .tile-chips .chip:nth-child(n + 4) {
    display: none;
  }

  .page-home .chip {
    font-size: 9px;
    padding: 1px 5px;
  }

  .page-home .latest-card {
    flex-basis: 210px;
  }

  .page-home .latest-band-img {
    height: 88px;
  }

  .page-home .toplist-layout {
    grid-template-columns: 1fr;
  }

  .page-home .toplist-deco {
    display: none;
  }

  .page-home .steps-row {
    grid-template-columns: 1fr;
  }

  .page-home .tag-cloud {
    gap: 8px 10px;
  }

  .page-home .tag-hot {
    font-size: 1.1rem;
  }

  .page-home .tag-mid {
    font-size: 0.95rem;
  }

  .page-home .tag-low {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .page-home .mega-tile {
    min-height: 98px;
  }

  .page-home .tile-matrix {
    gap: 8px;
  }

  .page-home .tile-chips {
    gap: 3px;
  }

  .page-home .chip {
    padding: 1px 4px;
  }
}
