.page-home {
  --page-hero-bg: #15263B;
  --page-rail-bg: #122B3E;
  --page-rail-card: rgba(255, 255, 255, .08);
  --page-soft-line: rgba(44, 62, 80, .14);
}

.page-home .home-hero {
  background: var(--page-hero-bg);
  color: var(--text-inverse);
  border-bottom: 6px solid var(--accent);
  padding: 28px 0 0;
}

.page-home .home-hero__inner {
  display: grid;
  gap: 12px;
}

.page-home .home-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--accent);
  margin: 0;
}

.page-home .home-hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(24px, 5vw, 40px);
  line-height: 1.2;
  max-width: 13em;
}

.page-home .home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.page-home .home-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  background: rgba(0, 0, 0, .18);
  padding: 0 16px;
}

.page-home .home-section-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--text-inverse);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 14px;
  border-bottom: 3px solid transparent;
}

.page-home .home-section-nav a:hover,
.page-home .home-section-nav a[aria-current="true"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.page-home .section {
  padding: 36px 0;
}

.page-home .section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 20px;
  position: relative;
}

.page-home .section__head .step-index {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  opacity: .55;
}

.page-home .section__head .section__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text-primary);
}

.page-home .section__head .section__count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  opacity: .68;
  background: var(--bg-card-alt);
  padding: 3px 10px;
  border-radius: 999px;
}

.page-home .section__head .section__more {
  margin-left: auto;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 14px;
  border-bottom: 2px solid var(--accent);
}

.page-home .container {
  padding-inline: 16px;
}

.page-home .home-rank__layout {
  display: grid;
  gap: 18px;
}

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

.page-home .rank-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 14px;
  border-left: 6px solid var(--border);
}

.page-home .rank-item:nth-child(3n+1) {
  border-left-color: var(--bg-zone-1);
}

.page-home .rank-item:nth-child(3n+2) {
  border-left-color: var(--bg-zone-2);
}

.page-home .rank-item:nth-child(3n+3) {
  border-left-color: var(--bg-zone-3);
}

.page-home .rank-item--lead {
  background: linear-gradient(135deg, #FFF3E6, var(--bg-card));
  border-left-color: var(--bg-zone-1);
}

.page-home .rank-item__no {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  opacity: .45;
  min-width: 2em;
  padding-top: 2px;
}

.page-home .rank-item__body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.page-home .rank-item__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.page-home .rank-item__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.page-home .rank-item__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.page-home .rank-item__chapter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  opacity: .75;
}

.page-home .rank-item__heat {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 120px;
}

.page-home .rank-item__heat .progress {
  flex: 1;
  max-width: 160px;
}

.page-home .rank-item__heat-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--status-hot);
  font-weight: 700;
}

.page-home .rank-item__fav {
  font-size: 16px;
  color: var(--border);
  transition: transform var(--speed), color var(--speed);
  cursor: default;
}

.page-home .rank-item:hover .rank-item__fav {
  color: var(--status-hot);
  transform: scale(1.3);
}

.page-home .home-rank__aside {
  background: var(--bg-card-alt);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-home .home-rank__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.page-home .home-rank__hint {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  opacity: .85;
}

.page-home .home-rank__hint a {
  color: var(--text-primary);
  font-weight: 700;
}

.page-home .home-zones {
  background: var(--bg-page);
  border-top: 1px solid var(--page-soft-line);
  border-bottom: 1px solid var(--page-soft-line);
}

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

.page-home .zone-tile {
  border-radius: var(--radius);
  padding: 26px 22px;
  color: var(--text-inverse);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 190px;
  transition: transform var(--speed), box-shadow var(--speed);
}

.page-home .zone-tile:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow);
}

.page-home .zone-tile--warm {
  background: linear-gradient(135deg, var(--bg-zone-1), #E56B1B);
}

.page-home .zone-tile--cool {
  background: linear-gradient(135deg, var(--bg-zone-2), #23A05A);
}

.page-home .zone-tile--violet {
  background: linear-gradient(135deg, var(--bg-zone-3), #7D3C98);
}

.page-home .zone-tile__zone {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .12em;
  opacity: .8;
}

.page-home .zone-tile__name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.2;
}

.page-home .zone-tile__desc {
  font-family: var(--font-body);
  font-size: 14px;
  opacity: .88;
}

.page-home .zone-tile__count {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  background: rgba(255, 255, 255, .18);
  align-self: flex-start;
  padding: 4px 14px;
  border-radius: 999px;
  margin-top: 8px;
}

.page-home .zone-tile__latest {
  font-family: var(--font-mono);
  font-size: 13px;
  opacity: .8;
}

.page-home .zone-tile__go {
  margin-top: auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid var(--accent);
  align-self: flex-start;
  padding-bottom: 2px;
}

.page-home .home-zones__note {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px;
}

.page-home .home-zones__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.page-home .home-zones__note-body {
  display: grid;
  gap: 12px;
  align-content: center;
}

.page-home .home-zones__note-body p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
}

.page-home .home-zones__note-body a {
  color: var(--text-primary);
  font-weight: 700;
}

.page-home .home-updates {
  background: #EAEAE4;
  border-top: 6px solid var(--accent);
}

.page-home .home-updates__layout {
  display: grid;
  gap: 18px;
}

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

.page-home .update-batch {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
}

.page-home .update-batch__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 4px solid var(--accent);
}

.page-home .update-batch--batch35 .update-batch__head {
  border-bottom-color: var(--bg-zone-2);
}

.page-home .update-batch--batch34 .update-batch__head {
  border-bottom-color: var(--bg-zone-3);
}

.page-home .update-batch__no {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
  color: var(--text-primary);
}

.page-home .update-batch__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  background: var(--bg-card-alt);
  padding: 2px 10px;
  border-radius: 999px;
}

.page-home .update-batch__grid {
  display: grid;
  gap: 10px;
}

.page-home .update-card {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--border);
}

.page-home .update-card:first-child {
  border-left-color: var(--accent);
}

.page-home .update-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.page-home .update-card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  opacity: .7;
}

.page-home .update-card .badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

.page-home .home-updates__aside {
  background: var(--bg-card-alt);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.page-home .home-updates__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.page-home .home-updates__aside-title {
  margin: 4px 0 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  color: var(--text-primary);
}

.page-home .home-updates__aside p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}

.page-home .home-updates__aside a {
  color: var(--text-primary);
  font-weight: 700;
}

.page-home .home-rails {
  background: var(--page-rail-bg);
  border-top: 6px solid var(--bg-zone-2);
  border-bottom: 6px solid var(--bg-zone-3);
}

.page-home .home-rails .section__title,
.page-home .home-rails .section__count,
.page-home .home-rails .section__more,
.page-home .home-rails .step-index {
  color: var(--text-inverse);
}

.page-home .home-rails .section__count {
  background: rgba(255, 255, 255, .14);
}

.page-home .home-rails .section__more {
  border-bottom-color: var(--accent);
}

.page-home .series-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
}

.page-home .series-rail__group {
  min-width: 280px;
  max-width: 92vw;
  flex: 0 0 auto;
  background: var(--page-rail-card);
  border-radius: var(--radius);
  padding: 16px;
  scroll-snap-align: start;
}

.page-home .series-rail__title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-inverse);
}

.page-home .series-rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(128px, 136px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.page-home .series-book {
  background: rgba(255, 255, 255, .06);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.page-home .series-book .book-cover {
  width: 100%;
  height: 116px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-home .series-book .book-cover--cool {
  background: linear-gradient(150deg, #2ECC71, #1E8E4E);
}

.page-home .series-book .book-cover--violet {
  background: linear-gradient(150deg, #9B59B6, #6C2D82);
}

.page-home .series-book .book-cover--warm {
  background: linear-gradient(150deg, #FF8C42, #D9661B);
}

.page-home .series-book .book-cover__title {
  color: var(--text-inverse);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  padding: 0 6px;
}

.page-home .series-book__body {
  padding-top: 10px;
  display: grid;
  gap: 4px;
}

.page-home .series-book__name {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-inverse);
}

.page-home .series-book__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}

.page-home .series-book .badge {
  justify-self: start;
}

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

.page-home .home-tags__layout {
  display: grid;
  gap: 18px;
}

.page-home .home-tags__intro {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
}

.page-home .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.page-home .tag-cloud__item {
  text-decoration: none;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  transition: transform var(--speed), box-shadow var(--speed);
}

.page-home .tag-cloud__item:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow);
}

.page-home .tag-cloud__item--lg {
  font-size: 18px;
  padding: 8px 18px;
}

.page-home .tag-cloud__item--md {
  font-size: 15px;
  padding: 6px 14px;
}

.page-home .tag-cloud__item--sm {
  font-size: 13px;
  padding: 4px 11px;
}

.page-home .tag-cloud__item--c1 {
  background: var(--bg-zone-1);
  color: #1E1E1E;
}

.page-home .tag-cloud__item--c2 {
  background: var(--bg-zone-2);
  color: #1E1E1E;
}

.page-home .tag-cloud__item--c3 {
  background: var(--bg-zone-3);
  color: var(--text-inverse);
}

.page-home .tag-cloud__item--c4 {
  background: var(--accent);
  color: #1E1E1E;
}

.page-home .tag-cloud__item--c5 {
  background: var(--status-hot);
  color: #1E1E1E;
}

.page-home .tag-cloud__item--c6 {
  background: var(--status-finished);
  color: var(--text-inverse);
}

.page-home .home-tags__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.page-home .home-tags__index {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--page-soft-line);
  display: grid;
  gap: 12px;
}

.page-home .home-tags__index-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--text-primary);
  opacity: .7;
}

.page-home .index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-home .index-bar__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  text-decoration: none;
}

.page-home .index-bar__item:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.page-home .home-tags__index-tip {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  opacity: .65;
}

@media (min-width: 600px) {
  .page-home .home-hero__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .page-home .home-hero__meta {
    grid-column: 1 / -1;
    border-bottom: 0;
    padding-bottom: 16px;
  }

  .page-home .zone-tiles {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .home-zones__note {
    grid-template-columns: 380px 1fr;
  }

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

  .page-home .home-tags__layout {
    grid-template-columns: 1fr 320px;
    align-items: center;
  }

  .page-home .home-tags__img {
    height: 100%;
    max-height: 180px;
    object-fit: cover;
  }
}

@media (min-width: 900px) {
  .page-home .section {
    padding: 48px 0;
  }

  .page-home .container {
    padding-inline: 24px;
    max-width: 1200px;
    margin-inline: auto;
  }

  .page-home .home-rank__layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }

  .page-home .updates-layout,
  .page-home .home-updates__layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
  }

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

  .page-home .series-rail__group {
    min-width: 360px;
  }

  .page-home .series-rail__track {
    grid-auto-columns: minmax(132px, 142px);
  }

  .page-home .home-tags__layout {
    grid-template-columns: 1fr 420px;
  }
}

@media (min-width: 1180px) {
  .page-home .home-section-nav {
    padding-inline: calc((100vw - 1152px) / 2);
  }

  .page-home .home-hero__inner {
    padding-top: 32px;
  }
}
