.page-home{
  --home-rank-bar-max: 180px;
  --home-track-card-width: 220px;
  --home-topic-card-width: 200px;
  --home-tile-gap: 10px;
}

.page-home .home-hero-strip{
  position: relative;
  padding: 30px 0 22px;
  background:
    linear-gradient(135deg, rgba(46, 204, 113, 0.14) 0%, transparent 46%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-primary-deep) 100%);
  border-bottom: 3px solid var(--border-card);
  overflow: hidden;
}

.page-home .home-hero-strip::after{
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.045) 0 8px, transparent 8px 16px);
  pointer-events: none;
}

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

.page-home .home-hero-crumb{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--tag-genre);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.page-home .home-hero-strip h1{
  font-family: var(--font-head);
  font-size: clamp(24px, 5.4vw, 42px);
  font-weight: 800;
  line-height: 1.22;
  color: var(--text-main);
  margin: 0 0 12px;
  max-width: 17em;
}

.page-home .home-hero-desc{
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0;
}

.page-home .section-head{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.page-home .section-head .seq-marker{
  flex-shrink: 0;
  display: block;
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: var(--border-card);
}

.page-home .section-head h2{
  font-family: var(--font-head);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 4px;
}

.page-home .section-head .section-note{
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.page-home .section-purple .section-head .section-note{
  color: rgba(236, 240, 241, 0.78);
}

.page-home .link-more{
  margin-left: auto;
  align-self: flex-end;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.page-home .link-more:hover{
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.page-home .section-purple .link-more{
  color: #fff;
}

.page-home .section-purple .link-more:hover{
  border-bottom-color: #fff;
}

.page-home .home-picks-note{
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(236, 240, 241, 0.72);
}

.page-home .home-picks-track,
.page-home .home-topic-track{
  scroll-padding: 0 12px;
}

.page-home .home-picks-track .home-pick-card{
  flex: 0 0 var(--home-track-card-width);
  width: var(--home-track-card-width);
  border-radius: var(--radius-chamfer) var(--radius-chamfer) var(--radius-chamfer) 0;
  overflow: hidden;
}

.page-home .home-pick-cover{
  position: relative;
  height: 124px;
  overflow: hidden;
}

.page-home .image-frame img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .duration-tag{
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(44, 62, 80, 0.84);
  border: 1px solid rgba(241, 196, 15, 0.5);
  border-radius: 4px 4px 4px 0;
}

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

.page-home .home-pick-card .card-title{
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .home-pick-card .card-meta{
  font-size: 12px;
  color: var(--text-muted-on-light);
}

.page-home .subgroup-title{
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 24px 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--tag-region);
}

.page-home .subgroup-title--genre{
  border-left-color: var(--tag-genre);
}

.page-home .subgroup-title--region{
  border-left-color: var(--tag-region);
}

.page-home .subgroup-title--year{
  border-left-color: var(--tag-year);
}

.page-home .subgroup-title--topic{
  border-left-color: var(--tag-quality);
}

.page-home .home-tile-grid,
.page-home .home-region-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--home-tile-gap);
}

.page-home .tile{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-chamfer) var(--radius-chamfer) var(--radius-chamfer) 0;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}

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

.page-home .tile-glyph{
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: var(--tag-genre);
  border-radius: 6px 6px 6px 0;
}

.page-home .tile-name{
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.page-home .tile-count{
  margin-left: auto;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
}

.page-home .home-tile-type:nth-child(8n + 1) .tile-glyph{ background: var(--tag-genre); }
.page-home .home-tile-type:nth-child(8n + 2) .tile-glyph{ background: var(--tag-region); }
.page-home .home-tile-type:nth-child(8n + 3) .tile-glyph{ background: var(--tag-year); }
.page-home .home-tile-type:nth-child(8n + 4) .tile-glyph{ background: var(--tag-quality); }
.page-home .home-tile-type:nth-child(8n + 5) .tile-glyph{ background: var(--tag-subtitle); }
.page-home .home-tile-type:nth-child(8n + 6) .tile-glyph{ background: var(--status-updating); }
.page-home .home-tile-type:nth-child(8n + 7) .tile-glyph{ background: var(--bg-section-a); }
.page-home .home-tile-type:nth-child(8n + 8) .tile-glyph{ background: var(--bg-section-b); }

.page-home .home-tile-region{
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.16), transparent 60%), var(--bg-primary-deep);
  border-color: rgba(243, 156, 18, 0.55);
  color: var(--text-main);
}

.page-home .home-tile-region .tile-glyph{
  background: var(--tag-region);
}

.page-home .home-tile-region .tile-name{
  color: var(--text-main);
}

.page-home .tile-arrow{
  margin-left: auto;
  font-weight: 800;
  font-size: 18px;
  color: var(--tag-region);
}

.page-home .home-year-bar{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.page-home .home-year-link{
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px 6px 6px 0;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.page-home .home-year-link:hover{
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.page-home .home-year-link[aria-current="true"]{
  color: #fff;
  background: var(--tag-region);
  border-color: var(--tag-region);
}

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

.page-home .home-ranking-row{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-left: 4px solid var(--border-card);
  border-radius: 4px 10px 10px 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.page-home .home-ranking-row:hover{
  transform: translateX(4px);
  box-shadow: var(--shadow-lift);
}

.page-home .home-rank-num{
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--bg-section-a);
  min-width: 34px;
  text-align: center;
}

.page-home .home-rank-main{
  flex: 1 1 160px;
  min-width: 0;
}

.page-home .home-rank-main .entry-title{
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 2px;
}

.page-home .home-rank-main .entry-meta{
  font-size: 12px;
  color: var(--text-muted-on-light);
}

.page-home .home-rank-bar{
  flex: 1 1 80px;
  max-width: var(--home-rank-bar-max);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(44, 62, 80, 0.12);
}

.page-home .home-rank-bar > span{
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--bg-section-a) 0%, var(--tag-region) 100%);
  border-radius: 999px;
}

.page-home .home-ranking-row .status-badge{
  flex-shrink: 0;
}

.page-home .home-topic-track .home-topic-card{
  flex: 0 0 var(--home-topic-card-width);
  width: var(--home-topic-card-width);
  border-radius: var(--radius-chamfer) var(--radius-chamfer) var(--radius-chamfer) 0;
  overflow: hidden;
}

.page-home .home-topic-cover{
  position: relative;
  height: 128px;
  overflow: hidden;
  background: var(--tag-genre);
}

.page-home .home-topic-cover::before{
  content: "";
  position: absolute;
  inset: 12px;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.12) 0 4px, transparent 4px 9px);
  mix-blend-mode: overlay;
}

.page-home .home-topic-cover::after{
  content: "";
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 90px;
  height: 90px;
  background: rgba(44, 62, 80, 0.35);
  transform: rotate(18deg);
  border-radius: 8px;
}

.page-home .home-topic-cover--cyan{ background: linear-gradient(135deg, #16A085, #0E6655); }
.page-home .home-topic-cover--violet{ background: linear-gradient(135deg, #9B59B6, #5B2C6F); }
.page-home .home-topic-cover--green{ background: linear-gradient(135deg, #2ECC71, #1D8348); }
.page-home .home-topic-cover--amber{ background: linear-gradient(135deg, #F39C12, #9C640C); }
.page-home .home-topic-cover--blue{ background: linear-gradient(135deg, #3498DB, #1F618D); }
.page-home .home-topic-cover--red{ background: linear-gradient(135deg, #E74C3C, #922B21); }

.page-home .home-topic-seq{
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 1;
  color: #fff;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.page-home .home-topic-tag{
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  color: #fff;
  background: rgba(44, 62, 80, 0.78);
  padding: 3px 8px;
  border-radius: 4px 4px 4px 0;
  font-size: 12px;
  font-weight: 600;
}

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

.page-home .home-topic-card .card-title{
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .home-topic-card .card-meta{
  font-size: 12px;
  color: var(--text-muted-on-light);
}

.page-home .home-changelog-list{
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.page-home .home-log-entry{
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px 10px 10px 0;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.page-home .home-log-entry:hover{
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(241, 196, 15, 0.4);
}

.page-home .home-log-seq{
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--border-card);
  flex-shrink: 0;
}

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

.page-home .home-log-title{
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px;
}

.page-home .home-log-desc{
  font-size: 13px;
  line-height: 1.7;
  color: rgba(236, 240, 241, 0.8);
  margin: 0 0 10px;
}

.page-home .home-log-tags{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-home .home-log-tags .status-badge{
  flex-shrink: 0;
}

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

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

  .page-home .home-ranking-row{
    flex-wrap: nowrap;
  }

  .page-home .home-rank-bar{
    flex-basis: 120px;
  }
}

@media (min-width: 960px){
  .page-home .home-hero-strip{
    padding: 42px 0 30px;
  }

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

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

  .page-home .home-changelog-list{
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .page-home .home-log-entry{
    flex-direction: column;
  }

  .page-home .home-log-seq{
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce){
  .page-home .home-ranking-row,
  .page-home .tile,
  .page-home .link-more{
    transition: none;
  }
}
