.page-home {
  --page-soft-line: rgba(255, 255, 255, 0.18);
  --page-dark-line: rgba(29, 29, 29, 0.24);
  --page-ink-soft: rgba(255, 255, 255, 0.92);
  --page-muted: rgba(255, 255, 255, 0.62);
  --page-top-glow: linear-gradient(90deg, #FFD60A, #00A8E8, #00FF87);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home h1,
.page-home h2,
.page-home h3,
.page-home .section-title,
.page-home .brand-h1 {
  font-family: var(--font-display);
}

.page-home .progress-track {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 5px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
}

.page-home .progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--page-top-glow);
  transition: width 0.2s ease;
}

.page-home .home-hero {
  background: var(--deep);
  color: var(--white);
  padding: 2rem 0 3rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.page-home .hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.page-home .brand-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  background: rgba(0, 168, 232, 0.22);
  color: var(--electric);
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 168, 232, 0.45);
}

.page-home .brand-h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 1rem 0 0.6rem;
}

.page-home .brand-lead {
  font-size: 0.95rem;
  color: var(--page-ink-soft);
  line-height: 1.7;
  max-width: 46em;
}

.page-home .status-stack {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.page-home .status-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--page-soft-line);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.8rem;
  flex-wrap: wrap;
}

.page-home .status-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-home .status-pill[data-state="new"] {
  background: var(--new);
  color: var(--ink);
}

.page-home .status-pill[data-state="updating"] {
  background: var(--updating);
  color: var(--ink);
}

.page-home .status-pill[data-state="done"] {
  background: var(--done);
  color: var(--white);
}

.page-home .status-pill[data-state="maintenance"] {
  background: var(--maintenance);
  color: var(--white);
}

.page-home .status-text {
  font-size: 0.85rem;
  color: var(--page-ink-soft);
  line-height: 1.4;
}

.page-home .metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.page-home .metric {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1rem 0.5rem;
  text-align: center;
  border-top: 4px solid var(--electric);
  box-shadow: var(--shadow-hard);
}

.page-home .metric[data-accent="teal"] {
  border-top-color: var(--teal);
}

.page-home .metric[data-accent="orange"] {
  border-top-color: var(--orange);
}

.page-home .metric[data-accent="crimson"] {
  border-top-color: var(--crimson);
}

.page-home .metric[data-accent="purple"] {
  border-top-color: var(--purple);
}

.page-home .metric[data-accent="yellow"] {
  border-top-color: var(--yellow);
}

.page-home .metric-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.7;
}

.page-home .metric-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
}

.page-home .metric-suffix {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.6;
  margin-left: 0.2rem;
}

.page-home .spec-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.page-home .spec-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.28rem 0.65rem;
  background: rgba(0, 168, 232, 0.12);
  border: 1px solid rgba(0, 168, 232, 0.38);
  color: var(--white);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.page-home .hero-frame {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(0, 168, 232, 0.35);
  box-shadow: var(--shadow-hard);
}

.page-home .hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 280px;
}

.page-home .hero-shelf {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.page-home .hero-shelf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.page-home .hero-shelf-head .section-title {
  color: var(--white);
  margin: 0;
}

.page-home .hero-shelf-head .section-note {
  color: var(--page-muted);
  font-size: 0.8rem;
  margin: 0;
  flex-basis: 100%;
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--bright-orange);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  font-family: var(--font-body);
  border: 2px solid var(--bright-orange);
}

.page-home .ghost-btn {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.page-home .inverse-btn {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.page-home .new-raid {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 0.6rem;
}

.page-home .newrail {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.page-home .new-card {
  min-width: 210px;
  max-width: 220px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-hard);
  scroll-snap-align: start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page-home .new-card:hover,
.page-home .new-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.25);
  outline: none;
}

.page-home .new-cover {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--deep);
}

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

.page-home .quality-tag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
}

.page-home .new-cover .status-badge {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-home .status-badge[data-state="new"] {
  background: var(--new);
  color: var(--ink);
}

.page-home .status-badge[data-state="updating"] {
  background: var(--updating);
  color: var(--ink);
}

.page-home .status-badge[data-state="done"] {
  background: var(--done);
  color: var(--white);
}

.page-home .status-badge[data-state="maintenance"] {
  background: var(--maintenance);
  color: var(--white);
}

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

.page-home .new-title {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.4;
}

.page-home .new-meta {
  display: block;
  font-size: 0.75rem;
  color: rgba(29, 29, 29, 0.65);
  margin-top: 0.25rem;
  font-family: var(--font-mono);
}

.page-home .home-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}

.page-home .home-breadcrumb li {
  font-size: 0.78rem;
  color: var(--page-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-home .home-breadcrumb li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.35);
}

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

.page-home .home-breadcrumb a:hover {
  text-decoration: underline;
}

.page-home .home-cats {
  padding: 3rem 0;
}

.page-home .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

.page-home .section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  margin: 0;
  line-height: 1.3;
}

.page-home .section-note {
  font-size: 0.85rem;
  color: rgba(29, 29, 29, 0.7);
  margin: 0 0 0.2rem;
  flex-basis: 100%;
  max-width: 58em;
}

.page-home .cat-group {
  margin-top: 1.8rem;
}

.page-home .cat-group-title {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--ink);
  color: var(--white);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin: 0 0 0.8rem;
  box-shadow: var(--shadow-hard);
}

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

.page-home .tile {
  border-radius: var(--radius-lg);
  padding: 1.3rem 1rem;
  text-decoration: none;
  color: var(--white);
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-hard);
}

.page-home .tile:hover,
.page-home .tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.22);
  outline: none;
}

.page-home .tile[data-accent="orange"] {
  background: var(--orange);
}

.page-home .tile[data-accent="crimson"] {
  background: var(--crimson);
}

.page-home .tile[data-accent="yellow"] {
  background: var(--yellow);
  color: var(--ink);
}

.page-home .tile[data-accent="purple"] {
  background: var(--purple);
}

.page-home .tile[data-accent="teal"] {
  background: var(--teal);
}

.page-home .tile-title {
  font-size: 1.1rem;
  font-weight: 900;
  font-family: var(--font-display);
}

.page-home .tile-count {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  display: block;
  line-height: 1.4;
}

.page-home .tile-sub {
  font-size: 0.75rem;
  opacity: 0.88;
  font-weight: 600;
}

.page-home .home-top {
  background: var(--purple);
  color: var(--white);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.page-home .home-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(95, 15, 64, 0.96) 0%, rgba(95, 15, 64, 0.82) 60%, rgba(0, 168, 232, 0.35) 100%);
  pointer-events: none;
}

.page-home .top-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.page-home .home-top .site-container {
  position: relative;
  z-index: 2;
}

.page-home .home-top .section-title {
  color: var(--white);
}

.page-home .home-top .section-note {
  color: var(--page-muted);
}

.page-home .top-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.6rem;
}

.page-home .entry-row {
  display: grid;
  grid-template-columns: 40px 1fr minmax(140px, 38%);
  gap: 0.7rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.6rem 0.9rem;
  transition: background 0.15s ease;
}

.page-home .entry-row:hover {
  background: rgba(255, 255, 255, 0.13);
}

.page-home .entry-index {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--updating);
  text-align: center;
}

.page-home .entry-main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.page-home .entry-title {
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .entry-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.page-home .tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.page-home .entry-meta {
  display: grid;
  gap: 0.3rem;
  justify-items: end;
  min-width: 0;
}

.page-home .topbar {
  display: block;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  overflow: hidden;
  min-width: 70px;
}

.page-home .topbar i {
  display: block;
  height: 100%;
  background: var(--page-top-glow);
  border-radius: var(--radius-pill);
}

.page-home .home-top .status-badge {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-home .home-topics {
  background: var(--teal);
  color: var(--white);
  padding: 3rem 0;
}

.page-home .home-topics .section-title {
  color: var(--white);
}

.page-home .home-topics .section-note {
  color: rgba(255, 255, 255, 0.8);
}

.page-home .topic-block {
  margin-top: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
}

.page-home .topic-poster {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.page-home .topic-poster img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 220px;
}

.page-home .topic-flag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--new);
  color: var(--ink);
  box-shadow: var(--shadow-hard);
}

.page-home .topic-title {
  font-size: 1.2rem;
  font-weight: 900;
  margin: 0 0 0.8rem;
}

.page-home .topic-row {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  width: 100%;
}

.page-home .topic-row::-webkit-scrollbar,
.page-home .new-raid::-webkit-scrollbar {
  height: 6px;
}

.page-home .topic-row::-webkit-scrollbar-thumb,
.page-home .new-raid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
}

.page-home .topic-card {
  min-width: 165px;
  max-width: 180px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-decoration: none;
  box-shadow: var(--shadow-hard);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.15s ease;
}

.page-home .topic-card:hover,
.page-home .topic-card:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.page-home .tc-name {
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.4;
}

.page-home .tc-meta {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.7);
}

.page-home .home-index {
  background: var(--yellow);
  color: var(--ink);
  padding: 3rem 0;
}

.page-home .home-index .section-note {
  color: rgba(29, 29, 29, 0.72);
}

.page-home .index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.page-home .index-item {
  min-width: 42px;
  height: 42px;
  padding: 0 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 29, 29, 0.08);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.page-home .index-item:hover,
.page-home .index-item:focus-visible {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
  outline: none;
}

.page-home .index-item[aria-current="true"] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.page-home .year-bar .index-item {
  min-width: auto;
  height: 44px;
  padding: 0 1.3rem;
  font-size: 0.82rem;
  background: rgba(29, 29, 29, 0.1);
}

.page-home .top-button {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--bright-orange);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-hard);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-home .top-button[data-visible] {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .page-home .topic-poster img {
    max-height: 280px;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-grid {
    grid-template-columns: clamp(340px, 36vw, 440px) 1fr;
    gap: 2.4rem;
  }

  .page-home .hero-img {
    max-height: 320px;
  }

  .page-home .new-card {
    min-width: 218px;
    max-width: 230px;
  }

  .page-home .entry-row {
    grid-template-columns: 48px 1fr minmax(180px, 36%);
    gap: 1rem;
    padding: 0.7rem 1.2rem;
  }

  .page-home .section-head {
    flex-wrap: nowrap;
    align-items: center;
  }

  .page-home .section-note {
    flex-basis: auto;
    flex: 1;
  }

  .page-home .topic-block {
    display: grid;
    grid-template-columns: minmax(260px, 300px) 1fr;
    grid-template-rows: auto 1fr;
    gap: 0 1.4rem;
    align-items: start;
  }

  .page-home .topic-poster {
    grid-row: 1 / 4;
    margin-bottom: 0;
  }

  .page-home .topic-poster img {
    max-height: none;
    height: 100%;
    min-height: 220px;
  }

  .page-home .topic-title {
    margin-bottom: 0.7rem;
  }

  .page-home .topic-row {
    grid-column: 2;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
