.page-home {
  --home-deep-green: #1E5D48;
  --home-sand: #FDF3E5;
  --home-ink: #3E2723;
  --home-alpha-shadow: 0 14px 30px rgba(62, 39, 35, 0.13);
  background: var(--page-bg);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--section-green) 0%, var(--home-deep-green) 52%, var(--section-brown) 135%);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  opacity: 0.32;
  mix-blend-mode: overlay;
}

.page-home .home-hero__beat {
  position: relative;
  z-index: 1;
}

.page-home .home-hero__crumb {
  justify-content: center;
  gap: 0.5em;
  margin-bottom: 14px;
}

.page-home .home-hero .breadcrumb__item,
.page-home .home-hero .breadcrumb__sep {
  color: rgba(255, 255, 255, 0.8);
}

.page-home .home-hero__titleband {
  padding: 18px 0 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-home .home-hero__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #D8F0E3;
  text-transform: uppercase;
}

.page-home .home-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 4.6vw, 2.35rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #fff;
}

.page-home .home-hero__sub {
  margin: 0 auto;
  max-width: 48em;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.page-home .home-hero__index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin: 16px 0 10px;
}

.page-home .home-hero__index a {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-home .home-hero__index a:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.page-home .home-hotpanel {
  margin-top: 28px;
  padding: 14px 12px 12px;
  background: var(--card-warm);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

.page-home .home-hotpanel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 4px 6px 12px;
}

.page-home .home-hotpanel__head h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-dark);
}

.page-home .home-hotpanel__note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--section-brown);
}

.page-home .home-hot {
  display: grid;
  gap: 8px;
}

.page-home .home-hot .entry-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  grid-template-areas:
    "rank main status"
    "rank meter status";
  grid-template-rows: auto 12px;
  gap: 2px 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 196, 168, 0.42);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.page-home .home-hot .rank-number {
  grid-area: rank;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  color: var(--section-brown);
}

.page-home .home-hot .rank-number--top {
  color: #fff;
  background: var(--accent-orange);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  line-height: 24px;
  display: block;
}

.page-home .home-hot .entry-row__main {
  grid-area: main;
  min-width: 0;
}

.page-home .home-hot .entry-row__title {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .home-hot .entry-row__extra {
  display: block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--text-body);
  opacity: 0.68;
  margin-top: 1px;
}

.page-home .home-hot .meter {
  grid-area: meter;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.page-home .home-hot .meter__fill {
  display: block;
  width: var(--meter);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-orange), #F7B267);
}

.page-home .home-hot .status-badge {
  grid-area: status;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  white-space: nowrap;
}

.page-home .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1;
  color: #fff;
  background: var(--state-updating);
}

.page-home .status-badge.is-new {
  background: var(--state-new);
}

.page-home .status-badge.is-done {
  background: var(--state-done);
}

.page-home .status-badge.is-updating {
  background: var(--state-updating);
}

.page-home .home-latest {
  padding: 44px 0 48px;
  background: linear-gradient(155deg, var(--section-green) 0%, var(--home-deep-green) 72%, #205E48 100%);
  color: #fff;
}

.page-home .section-title h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 900;
  color: var(--text-dark);
}

.page-home .section-title__note {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-body);
  opacity: 0.68;
}

.page-home .home-latest .section-title h2,
.page-home .home-topics .section-title h2,
.page-home .home-batches .section-title h2 {
  color: #fff;
}

.page-home .home-latest .section-title__note,
.page-home .home-topics .section-title__note,
.page-home .home-batches .section-title__note {
  color: rgba(255, 255, 255, 0.75);
  opacity: 1;
}

.page-home .home-latest__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.page-home .home-latest__filters .filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-home .home-latest__filters .filter-btn.is-active,
.page-home .home-latest__filters .filter-btn:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.page-home .home-latest__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .media-card {
  display: flex;
  flex-direction: column;
  background: var(--card-cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.page-home .media-card__cover {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--card-light-green);
}

.page-home .media-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.page-home .media-card .media-card__badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  background: var(--accent-blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}

.page-home .media-card .status-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
  background: var(--state-new);
}

.page-home .media-card .status-badge.is-updating {
  background: var(--state-updating);
}

.page-home .media-card .status-badge.is-done {
  background: var(--state-done);
}

.page-home .media-card__title {
  margin: 0;
  padding: 12px 14px 2px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
}

.page-home .media-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 4px 14px 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--section-brown);
}

.page-home .media-card__tags {
  margin-top: auto;
  padding: 0 14px 14px;
}

.page-home .tag-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1;
}

.page-home .home-latest__more {
  margin-top: 26px;
  text-align: center;
}

.page-home .home-latest__more .btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
}

.page-home .home-latest__more .btn:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.page-home .home-topics {
  padding: 44px 0 48px;
  background: linear-gradient(150deg, var(--section-brown) 0%, #7C5438 78%, #6E4930 100%);
}

.page-home .home-topics__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.page-home .home-topics__group {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  color: #FFF3E0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

.page-home .home-topics__tile {
  position: relative;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .home-topics__tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.page-home .tile--green {
  background: linear-gradient(145deg, var(--card-light-green) 0%, #D3EDDD 100%);
}

.page-home .tile--brown {
  background: linear-gradient(145deg, #F2E1CC 0%, #E5CDB0 100%);
}

.page-home .tile--blue {
  background: linear-gradient(145deg, #DEEDF6 0%, #CAE1F0 100%);
}

.page-home .tile--warm {
  background: linear-gradient(145deg, var(--card-warm) 0%, #FFE0B2 100%);
}

.page-home .home-topics__tile .tile__name {
  position: relative;
  z-index: 1;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-dark);
}

.page-home .home-topics__tile .tile__count {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--section-brown);
}

.page-home .home-topics__icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  opacity: 0.7;
  color: var(--text-dark);
  z-index: 1;
}

.page-home .home-topics__icon svg,
.page-home .home-collections__disk svg,
.page-home .help-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-home .home-topics__texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  mix-blend-mode: multiply;
}

.page-home .home-collections {
  padding: 44px 0 40px;
  background: var(--page-bg);
}

.page-home .home-collections__rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 4px 14px;
  margin-top: 20px;
  scrollbar-color: var(--section-green) var(--border);
}

.page-home .home-collections__item {
  flex: 0 0 164px;
  scroll-snap-align: start;
  background: var(--card-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 12px 14px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.page-home .home-collections__disk {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFF3E0 0%, #9CC9AE 62%, #2E7D5B 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.page-home .home-collections__disk svg {
  width: 54px;
  height: 54px;
}

.page-home .home-collections__item h3 {
  margin: 0 0 4px;
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-dark);
}

.page-home .home-collections__item p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-body);
  opacity: 0.7;
}

.page-home .home-batches {
  padding: 44px 0 48px;
  background: linear-gradient(150deg, #4E3E2E 0%, var(--section-brown) 80%, #6E4930 100%);
}

.page-home .home-batches__list {
  margin-top: 22px;
}

.page-home .home-batch {
  background: var(--home-sand);
  color: var(--text-body);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.page-home .home-batch summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
}

.page-home .home-batch summary::-webkit-details-marker {
  display: none;
}

.page-home .home-batch__label {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--accent-orange);
}

.page-home .home-batch__meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--section-brown);
}

.page-home .home-batch__items {
  margin: 0;
  padding: 4px 18px 14px;
  list-style: none;
  border-top: 1px dashed var(--border);
}

.page-home .home-batch__items li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(62, 39, 35, 0.08);
  font-family: var(--font-body);
  font-size: 0.94rem;
}

.page-home .home-batch__items li:last-child {
  border-bottom: 0;
}

.page-home .home-batch__tag {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--card-light-green);
  color: var(--section-green);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.page-home .home-batch__voice {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: #E9DAC7;
  color: var(--section-brown);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.page-home .home-help {
  padding: 44px 0 48px;
  background: var(--card-cream);
}

.page-home .home-help__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 22px;
}

.page-home .help-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--card-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.page-home .help-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--section-green), var(--home-deep-green));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.page-home .help-card__icon svg {
  width: 30px;
  height: 30px;
}

.page-home .help-card h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.14rem;
  font-weight: 800;
  color: var(--text-dark);
}

.page-home .help-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-body);
}

.page-home .help-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.page-home .btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--section-green);
  border-radius: var(--radius-pill);
  font-family: var(--font-title);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--section-green);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-home .btn--outline:hover {
  background: var(--section-green);
  color: #fff;
}

@media (min-width: 640px) {
  .page-home .home-latest__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-topics__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-help__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .page-home .home-hot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-hot .entry-row {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    grid-template-rows: auto 10px;
    padding: 7px 10px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 26px 0 44px;
  }

  .page-home .home-hotpanel {
    padding: 18px 16px 14px;
  }

  .page-home .home-latest__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .home-topics__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }

  .page-home .home-topics__group {
    margin-top: 10px;
  }
}

.page-home {
  --meter: 1rem;
}
