.page-home {
  --hero-ink: #fff8ec;
  --hero-dim: rgba(255, 248, 236, 0.62);
  --hero-line: rgba(255, 248, 236, 0.16);
  --batch-shadow: 4px 6px 0 rgba(30, 20, 10, 0.08);
}

.page-home .home-hero {
  position: relative;
  background:
    linear-gradient(180deg, #34231a 0%, var(--section-brown) 42%, #4a3222 100%);
  color: var(--hero-ink);
  overflow: hidden;
}

.page-home .hero-bg-texture {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 300px;
  object-fit: cover;
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
}

.page-home .hero-topline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--hero-line);
  padding-bottom: 28px;
}

.page-home .coord-label {
  display: inline-block;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--hero-dim);
  border: 1px solid var(--hero-line);
  padding: 4px 10px;
  border-radius: 999px;
}

.page-home .hero-title {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 3.1rem);
  line-height: 1.28;
  margin: 16px 0 14px;
  color: var(--hero-ink);
  letter-spacing: 0.01em;
  max-width: 16em;
}

.page-home .hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.page-home .hero-keyword {
  display: inline-block;
  background: var(--accent-orange);
  color: #1e1e1e;
  font-family: var(--mono-font);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.22);
}

.page-home .hero-total {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  background: rgba(30, 20, 10, 0.38);
  border: 1px solid var(--hero-line);
  border-radius: 10px;
  padding: 16px 22px;
  justify-content: center;
}

.page-home .hero-total-num {
  font-family: var(--mono-font);
  font-size: 44px;
  font-weight: 700;
  color: var(--tag-yellow);
  line-height: 1;
}

.page-home .hero-total-unit {
  font-size: 13px;
  color: var(--hero-dim);
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.page-home .mosaic-group {
  margin-top: 28px;
}

.page-home .mosaic-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hero-line);
  padding-bottom: 8px;
}

.page-home .mosaic-group-title {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.page-home .mosaic-group-note {
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--hero-dim);
  letter-spacing: 0.06em;
}

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

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

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

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

.page-home .mosaic-tile {
  text-decoration: none;
  color: #fff;
  border-radius: 6px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-height: 72px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.page-home .mosaic-tile:hover,
.page-home .mosaic-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
}

.page-home .mosaic-label {
  font-family: var(--mono-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-home .mosaic-count {
  font-family: var(--mono-font);
  font-size: 12px;
  opacity: 0.9;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.page-home .mosaic-tile:hover .mosaic-count {
  opacity: 1;
  transform: translateX(2px);
}

.page-home .hero-tags {
  margin-top: 16px;
}

.page-home .hero-tags .tag-chip {
  font-family: var(--mono-font);
  font-size: 12px;
}

.page-home .home-index-strip {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--index-bar-bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .index-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.page-home .index-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-orange) transparent;
}

.page-home .index-bar-label {
  font-family: var(--mono-font);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.14em;
  padding-right: 8px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  margin-right: 6px;
}

.page-home .index-bar-item {
  font-family: var(--mono-font);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 5px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1;
  transition: background 0.16s ease, color 0.16s ease;
}

.page-home .index-bar-item:hover,
.page-home .index-bar-item:focus-visible {
  background: var(--accent-orange);
  color: #1e1e1e;
}

.page-home .index-bar-item em {
  font-style: normal;
  font-size: 10px;
  color: var(--tag-yellow);
  margin-left: 2px;
}

.page-home .index-bar-item:hover em {
  color: #1e1e1e;
}

.page-home .index-bar-total {
  font-family: var(--mono-font);
  font-size: 11px;
  color: var(--tag-yellow);
  background: rgba(0, 0, 0, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 8px;
  flex-shrink: 0;
}

.page-home .home-hot {
  background:
    linear-gradient(rgba(245, 240, 232, 0.94), rgba(245, 240, 232, 0.94)),
    repeating-linear-gradient(0deg, transparent, transparent 23px, #e3d8c4 23px, #e3d8c4 24px);
}

.page-home .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 26px;
}

.page-home .section-title {
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  line-height: 1.25;
  margin: 10px 0 0;
}

.page-home .section-meta {
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  margin: 0;
}

.page-home .hot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-home .hot-tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 4px 12px rgba(30, 20, 10, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.page-home .hot-tile:hover,
.page-home .hot-tile:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(30, 20, 10, 0.18);
}

.page-home .tile-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.page-home .cover-slot--card {
  position: relative;
  background:
    linear-gradient(135deg, #d9c6a7 0%, #b6a07a 60%, #8c7450 100%);
}

.page-home .cover-slot--card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 12px, rgba(255, 255, 255, 0.08) 12px, rgba(255, 255, 255, 0.08) 13px),
    linear-gradient(160deg, rgba(62, 42, 30, 0.25) 0%, transparent 55%);
  pointer-events: none;
}

.page-home .cover-slot--card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .card-body {
  padding: 12px;
}

.page-home .card-title {
  font-family: var(--heading-font);
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.page-home .card-meta {
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.page-home .card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-home .hot-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: rgba(30, 20, 10, 0.82);
  color: var(--hero-ink);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.page-home .hot-tile:hover .hot-hint,
.page-home .hot-tile:focus-within .hot-hint {
  opacity: 1;
  transform: translateY(0);
}

.page-home .home-rails {
  background:
    radial-gradient(circle at 10% 20%, rgba(107, 45, 45, 0.55) 0%, transparent 45%),
    linear-gradient(180deg, #5e2727 0%, var(--section-red) 50%, #5e2727 100%);
  color: var(--hero-ink);
}

.page-home .home-rails .section-meta {
  color: rgba(255, 248, 236, 0.62);
}

.page-home .rail-block {
  margin-bottom: 44px;
}

.page-home .rail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.page-home .rail-head img {
  width: 96px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .rail-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .rail-title {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.page-home .rail-count {
  font-family: var(--mono-font);
  font-size: 12px;
  color: rgba(255, 248, 236, 0.6);
  letter-spacing: 0.06em;
}

.page-home .h-rail {
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-orange) rgba(255, 255, 255, 0.12);
}

.page-home .h-rail-track {
  display: flex;
  gap: 12px;
  width: max-content;
}

.page-home .h-rail-card {
  width: 190px;
  flex-shrink: 0;
  display: block;
  scroll-snap-align: start;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .h-rail-card:hover,
.page-home .h-rail-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.32);
}

.page-home .cover-slot--rail {
  position: relative;
  background:
    linear-gradient(145deg, #3e2a1e 0%, #6b2d2d 70%, #a84128 100%);
}

.page-home .cover-slot--rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 11px);
  pointer-events: none;
}

.page-home .rail-card-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  font-family: var(--mono-font);
  font-size: 11px;
  color: #fff;
  background: rgba(30, 20, 10, 0.68);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.page-home .rail-card-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-home .rail-card-title {
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 700;
}

.page-home .rail-card-meta {
  font-family: var(--mono-font);
  font-size: 11px;
  color: var(--text-secondary);
}

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

.page-home .batch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 26px;
}

.page-home .batch-group {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 18px;
  box-shadow: var(--batch-shadow);
  border: 1px solid var(--border);
}

.page-home .batch-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.page-home .batch-head img {
  width: 44px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.page-home .batch-title {
  font-family: var(--mono-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-home .batch-state {
  font-size: 12px;
  font-weight: 700;
  color: #1e1e1e;
  background: var(--status-new);
  padding: 3px 10px;
  border-radius: 999px;
}

.page-home .batch-count {
  margin-left: auto;
  font-family: var(--mono-font);
  font-size: 14px;
  color: var(--accent-green);
  background: rgba(45, 106, 79, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
}

.page-home .batch-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, padding 0.15s ease;
}

.page-home .batch-row:first-of-type {
  border-top: 0;
}

.page-home .batch-row:hover,
.page-home .batch-row:focus-visible {
  background: rgba(45, 106, 79, 0.08);
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 6px;
}

.page-home .batch-row-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.page-home .batch-row-detail {
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.page-home .batch-version {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 8px;
}

.page-home .version-chip {
  font-family: var(--mono-font);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-green);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.page-home .version-note {
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
  min-width: 220px;
}

.page-home .btn-outline {
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.page-home .btn-outline:hover,
.page-home .btn-outline:focus-visible {
  background: var(--accent-green);
  color: #fff;
}

.page-home .home-access {
  background:
    linear-gradient(180deg, #3a281c 0%, var(--section-brown) 70%, #2a1c12 100%);
  color: var(--hero-ink);
}

.page-home .home-access .section-meta {
  color: var(--hero-dim);
}

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

.page-home .access-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(250, 243, 224, 0.06);
  border: 1px solid var(--hero-line);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--hero-ink);
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.page-home .access-card:hover,
.page-home .access-card:focus-visible {
  background: rgba(250, 243, 224, 0.14);
  border-color: var(--accent-orange);
  transform: translateX(4px);
}

.page-home .access-num {
  font-family: var(--mono-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-orange);
  flex-shrink: 0;
  width: 34px;
  text-align: center;
}

.page-home .access-title {
  font-family: var(--heading-font);
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}

.page-home .access-line {
  font-size: 13px;
  color: var(--hero-dim);
  line-height: 1.5;
  min-width: 0;
}

@media (min-width: 640px) {
  .page-home .hero-topline {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .page-home .hero-total {
    flex-shrink: 0;
  }

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

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

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

  .page-home .hero-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: start;
  }

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

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

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

@media (min-width: 960px) {
  .page-home .home-index-strip {
    top: 0;
  }

  .page-home .index-bars {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .page-home .index-bar {
    flex: 1;
  }

  .page-home .index-bar--alpha {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    padding-right: 24px;
  }

  .page-home .season-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }

  .page-home .year-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .page-home .type-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .page-home .mosaic-tile {
    min-height: 80px;
    padding: 16px 14px;
  }

  .page-home .hero-title {
    font-size: clamp(2rem, 4.6vw, 3.3rem);
  }

  .page-home .hot-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .page-home .rail-head img {
    width: 220px;
    height: 72px;
  }

  .page-home .rail-title {
    font-size: 24px;
  }

  .page-home .h-rail-card {
    width: 220px;
  }

  .page-home .batch-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-home .batch-group {
    padding: 22px;
  }

  .page-home .access-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }

  .page-home .access-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 16px;
  }

  .page-home .access-card:hover {
    transform: translateY(-4px);
  }

  .page-home .access-line {
    font-size: 12px;
  }
}
