.page-home {
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --tile-border: rgba(255, 255, 255, 0.16);
  --tile-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  --hot-text-dark: #2b1408;
  --hot-text-mid: #6b442a;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .home-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 1rem 0 0.75rem;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--accent-yellow);
}

.page-home .home-topbar h1 {
  flex-basis: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  margin: 0;
}

.page-home .breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--accent-silver);
}

.page-home .breadcrumb a {
  color: var(--accent-silver);
  text-decoration: none;
}

.page-home .breadcrumb a:hover {
  color: var(--accent-yellow);
}

.page-home .top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--text-sub);
}

.page-home .top-meta a {
  color: var(--accent-gold);
  text-decoration: none;
}

.page-home .top-meta span {
  border: 1px solid var(--accent-silver);
  padding: 0.15rem 0.4rem;
  color: var(--text-main);
}

.page-home .top-meta-dot {
  border: 0 !important;
  padding: 0 !important;
  color: var(--accent-silver) !important;
}

.page-home .home-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.page-home .feature-cover {
  position: relative;
  min-height: 340px;
  background: var(--bg-version);
  border: 1px solid rgba(59, 130, 246, 0.45);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.page-home .feature-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-home .feature-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(10, 31, 61, 0.96) 0%,
    rgba(10, 31, 61, 0.78) 48%,
    rgba(10, 31, 61, 0.25) 100%
  );
}

.page-home .feature-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.65rem;
  min-height: 340px;
  padding: clamp(1.2rem, 3vw, 2.5rem);
}

.page-home .feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.page-home .feature-lead {
  font-size: var(--fs-body);
  color: var(--text-sub);
  max-width: 44ch;
  margin: 0;
}

.page-home .btn {
  text-decoration: none;
  display: inline-block;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  border: 1px solid var(--accent-yellow);
  color: var(--accent-yellow);
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}

.page-home .btn-primary {
  background: var(--accent-yellow);
  color: #141414;
  font-weight: 600;
}

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

.page-home .btn-ghost:hover {
  background: rgba(242, 209, 11, 0.14);
}

.page-home .batch-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-theater);
  border: 1px solid rgba(255, 105, 180, 0.3);
  padding: 1.2rem;
}

.page-home .batch-side-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.page-home .batch-side-title strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent-gold);
}

.page-home .batch-side-title span {
  font-size: var(--fs-meta);
  color: var(--text-sub);
}

.page-home .batch-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 14px var(--accent-green);
  flex: 0 0 auto;
}

.page-home .batch-nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0;
}

.page-home .batch-nums div {
  text-align: center;
  padding: 0.7rem 0.4rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .batch-nums dt {
  font-size: var(--fs-meta);
  color: var(--text-sub);
}

.page-home .batch-nums dd {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--accent-green);
  margin: 0;
}

.page-home .batch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.page-home .batch-chips span {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 0.2rem 0.5rem;
}

.page-home .new-in-section {
  margin-inline: calc(-1 * var(--gutter));
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter) 2rem;
  background:
    linear-gradient(rgba(74, 18, 48, 0.97), rgba(74, 18, 48, 0.97)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 3px
    );
}

.page-home .section {
  margin-top: 2rem;
}

.page-home .section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.page-home .section-title {
  font-family: var(--font-display);
  font-size: var(--fs-section);
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.page-home .section-more {
  margin-left: auto;
  color: var(--accent-yellow);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  text-decoration: none;
  border: 1px solid var(--accent-yellow);
  padding: 0.25rem 0.6rem;
  transition: background 0.18s ease;
}

.page-home .section-more:hover {
  background: rgba(242, 209, 11, 0.15);
}

.page-home .badge {
  font-size: 0.7rem;
  line-height: 1;
  padding: 0.3rem 0.45rem;
  letter-spacing: 0.06em;
  display: inline-block;
  border: 1px solid transparent;
}

.page-home .badge-progress {
  background: var(--accent-green);
  color: #052d1c;
}

.page-home .new-in-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-card);
}

.page-home .new-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card-warm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.page-home .new-card:nth-child(even) {
  background: var(--bg-card-cream);
}

.page-home .new-card:nth-child(3n) {
  background: var(--bg-card-brown);
}

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

.page-home .new-card-lg {
  grid-column: span 2;
}

.page-home .cover-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}

.page-home .cover-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.page-home .cover-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.page-home .new-card:hover .cover-link img {
  transform: scale(1.04);
}

.page-home .cover-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.62);
  color: var(--accent-yellow);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.page-home .new-card:hover .cover-hint {
  opacity: 1;
}

.page-home .res-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
}

.page-home .status-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.page-home .card-body {
  padding: 0.7rem 0.75rem 0.8rem;
}

.page-home .card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-card);
  font-weight: 700;
}

.page-home .card-title a {
  color: var(--hot-text-dark);
  text-decoration: none;
}

.page-home .card-meta {
  margin-top: 0.25rem;
  font-size: var(--fs-meta);
  color: #4a2a18;
}

.page-home .new-card:nth-child(3n) .card-title a,
.page-home .new-card:nth-child(3n) .card-meta {
  color: var(--text-main);
}

.page-home .category-section {
  margin-inline: calc(-1 * var(--gutter));
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter) 2rem;
  background:
    linear-gradient(rgba(61, 10, 20, 0.96), rgba(61, 10, 20, 0.96)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 4px
    );
  border-top: 1px solid var(--accent-gold);
  border-bottom: 1px solid var(--accent-gold);
}

.page-home .category-tabs .tab-list {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.4);
}

.page-home .category-tabs .tab-trigger {
  appearance: none;
  background: transparent;
  border: 1px solid var(--accent-silver);
  color: var(--accent-silver);
  padding: 0.45rem 1.3rem;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.page-home .category-tabs .tab-trigger[aria-selected="true"] {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #141414;
  font-weight: 700;
}

.page-home .tab-panel[hidden] {
  display: none;
}

.page-home .tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.page-home .magnetic-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 84px;
  padding: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--tile-border);
  box-shadow: var(--tile-shadow);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.page-home .magnetic-tile:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.page-home .tile-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: inherit;
}

.page-home .tile-count {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: inherit;
  opacity: 0.85;
}

.page-home .tile-t1 { background: linear-gradient(135deg, #e6a17a, #c96a4a); color: #2b1408; }
.page-home .tile-t2 { background: linear-gradient(135deg, #ffb6c1, #e05c93); color: #2b0814; }
.page-home .tile-t3 { background: linear-gradient(135deg, #9d5c8e, #5e3a6e); color: var(--text-main); }
.page-home .tile-t4 { background: linear-gradient(135deg, #4ccf7d, #1e9e63); color: #06281a; }
.page-home .tile-t5 { background: linear-gradient(135deg, #3b82f6, #1e40af); color: var(--text-main); }
.page-home .tile-t6 { background: linear-gradient(135deg, #fbe67a, #f2c14e); color: #33220b; }
.page-home .tile-t7 { background: linear-gradient(135deg, #f0b84e, #b3742a); color: #331d0a; }
.page-home .tile-t8 { background: linear-gradient(135deg, #8a5a3b, #5c3a2e); color: var(--text-main); }
.page-home .tile-t9 { background: linear-gradient(135deg, #e04b5a, #8e2732); color: var(--text-main); }
.page-home .tile-t10 { background: linear-gradient(135deg, #ac8cf0, #6d4fd8); color: var(--text-main); }
.page-home .tile-t11 { background: linear-gradient(135deg, #2fd6c0, #0e8f7f); color: #062821; }
.page-home .tile-t12 { background: linear-gradient(135deg, #9aa7c0, #64748b); color: var(--text-main); }

.page-home .tile-r1 { background: #e6a17a; color: #2b1408; }
.page-home .tile-r2 { background: #ffd700; color: #3a2c00; }
.page-home .tile-r3 { background: #8a9bb5; color: #182030; }
.page-home .tile-r4 { background: #ffb3c1; color: #3d0820; }
.page-home .tile-r5 { background: #18d17e; color: #003a20; }
.page-home .tile-r6 { background: #3b82f6; color: #eaf0ff; }
.page-home .tile-r7 { background: #c0c0c0; color: #222222; }
.page-home .tile-r8 { background: #f0a0ff; color: #3b0a3d; }

.page-home .tile-e1 { background: #5c3a2e; color: var(--text-main); }
.page-home .tile-e2 { background: #7d5a3b; color: var(--text-main); }
.page-home .tile-e3 { background: #e6a17a; color: #311a08; }
.page-home .tile-e4 { background: #f3e0c0; color: #33220b; }
.page-home .tile-e5 { background: #ffd700; color: #3a2c00; }
.page-home .tile-e6 { background: #ff8c5a; color: #3a1000; }
.page-home .tile-e7 { background: #8a9bb5; color: #131c2b; }
.page-home .tile-e8 { background: #3b82f6; color: #eaf0ff; }
.page-home .tile-e9 { background: #c0c0c0; color: #222222; }
.page-home .tile-e10 { background: #18d17e; color: #003a20; }

.page-home .hot-section {
  background: var(--bg-void);
}

.page-home .hot-count {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--text-sub);
}

.page-home .hot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.page-home .hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bg-card-cream);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .hot-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  transition: background 0.15s ease;
}

.page-home .hot-row:last-child {
  border-bottom: 0;
}

.page-home .hot-row:hover {
  background: var(--bg-card-warm);
}

.page-home .hot-row .row-index {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--bg-card-brown);
}

.page-home .hot-row .row-main {
  min-width: 0;
  flex: 1;
}

.page-home .row-title {
  font-family: var(--font-display);
  font-size: var(--fs-card);
  font-weight: 700;
  color: var(--hot-text-dark);
  text-decoration: none;
}

.page-home .row-title:hover {
  color: var(--status-new);
}

.page-home .row-sub {
  display: block;
  font-size: var(--fs-meta);
  color: var(--hot-text-mid);
  margin-top: 0.15rem;
}

.page-home .hot-bar {
  display: block;
  height: 6px;
  background: rgba(0, 0, 0, 0.12);
  margin-top: 0.4rem;
  overflow: hidden;
}

.page-home .hot-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--status-new), var(--accent-gold));
}

.page-home .row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.page-home .hot-aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-version);
  border: 1px solid rgba(59, 130, 246, 0.45);
  padding: 0.75rem;
}

.page-home .hot-aside img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .timeline-section {
  margin-inline: calc(-1 * var(--gutter));
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter) 2rem;
  background:
    linear-gradient(rgba(10, 31, 61, 0.95), rgba(10, 31, 61, 0.95)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 3px
    );
}

.page-home .timeline-cycle {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--accent-silver);
}

.page-home .home-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.page-home .home-timeline .timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-left: 3px solid var(--accent-gold);
  text-decoration: none;
  transition: background 0.18s ease;
}

.page-home .home-timeline .timeline-item:hover {
  background: rgba(0, 0, 0, 0.52);
}

.page-home .timeline-date {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--accent-silver);
}

.page-home .timeline-content {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--text-main);
}

.page-home .timeline-content strong {
  font-size: 1rem;
  color: var(--accent-gold);
  margin-right: 0.4rem;
}

.page-home .timeline-content em {
  font-style: normal;
  color: var(--accent-green);
}

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

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

  .page-home .hot-row {
    flex-direction: row;
    align-items: center;
  }

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

@media (min-width: 900px) {
  .page-home .new-in-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .new-card-lg {
    grid-column: span 2;
  }

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

  .page-home .tile-grid-era {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .page-home .hot-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: stretch;
  }

  .page-home .home-timeline {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    position: relative;
    padding: 2rem 0 0.5rem;
    gap: 0.75rem;
  }

  .page-home .home-timeline::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 1rem;
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      var(--accent-gold) 0,
      var(--accent-gold) 8px,
      transparent 8px,
      transparent 13px
    );
  }

  .page-home .home-timeline .timeline-item {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border-left: 0;
    border-top: 3px solid var(--accent-gold);
    min-height: 0;
  }
}

@media (min-width: 1100px) {
  .page-home .home-bento {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    align-items: stretch;
  }
}
