.page-home {
  --home-shadow: 4px 4px 0 #222222;
  --home-shadow-hover: 6px 6px 0 #222222;
  --home-transition: 0.15s ease;
  background: var(--bg-cream);
}

.page-home .breadcrumb {
  padding-top: 18px;
  border-bottom: 2px solid var(--line);
}

.page-home .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.page-home .breadcrumb a {
  color: var(--accent-blue);
  text-underline-offset: 3px;
  font-weight: 700;
}

.page-home .home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 36px 0 44px;
}

.page-home .hero-main {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-home .hero-kicker {
  display: inline-block;
  width: fit-content;
  background: var(--bg-orange);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  font-size: 0.86rem;
  border: 2px solid var(--line);
  box-shadow: var(--home-shadow);
}

.page-home .hero-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.2;
  font-weight: 900;
  margin: 0;
  max-width: 16ch;
  border-bottom: 6px solid var(--line);
  padding-bottom: 12px;
}

.page-home .hero-sub {
  font-size: 0.95rem;
  max-width: 56ch;
  line-height: 1.6;
  margin: 0;
}

.page-home .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .btn {
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  padding: 8px 14px;
  transition: transform var(--home-transition), box-shadow var(--home-transition);
}

.page-home .btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--home-shadow-hover);
}

.page-home .btn--primary {
  background: var(--accent-red);
  border: 2px solid var(--line);
  color: var(--white);
  box-shadow: var(--home-shadow);
}

.page-home .btn--outline {
  background: var(--white);
  border: 2px solid var(--line);
  color: var(--ink);
  box-shadow: var(--home-shadow);
}

.page-home .hero-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.page-home .hero-geo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 3px solid var(--line);
  box-shadow: 8px 8px 0 var(--bg-orange);
}

.page-home .hero-stats {
  display: grid;
  gap: 2px;
  border: 3px solid var(--line);
  background: var(--white);
}

.page-home .hero-stats .metric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.page-home .hero-stats .metric-row:last-child {
  border-bottom: 0;
}

.page-home .hero-stats .metric-label {
  font-size: 0.82rem;
  color: #444444;
}

.page-home .hero-stats .metric-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--bg-yellow);
  border: 1px solid var(--line);
  padding: 2px 8px;
}

.page-home .hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .section {
  padding: 46px 0;
  position: relative;
}

.page-home .split-grid {
  display: grid;
  gap: 28px;
  align-items: start;
  min-width: 0;
}

.page-home .split-grid__note,
.page-home .split-grid__main {
  min-width: 0;
}

.page-home .section-title {
  margin-bottom: 12px;
}

.page-home .note-txt {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 12px;
}

.page-home .note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.page-home .batch-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 #222222;
  margin-top: 14px;
}

.page-home .home-batch {
  border-block: 4px solid var(--line);
}

.page-home .home-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.page-home .btn-filter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 10px;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  border-radius: 0;
  transition: background var(--home-transition), color var(--home-transition);
}

.page-home .btn-filter:hover {
  background: var(--accent-blue);
  color: var(--white);
}

.page-home .btn-filter.is-active {
  background: var(--accent-red);
  color: var(--white);
  border-color: var(--line);
}

.page-home .batch-panel {
  background: var(--bg-cream);
  border: 3px solid var(--line);
  box-shadow: var(--home-shadow);
}

.page-home .batch-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 3px solid var(--line);
  padding: 10px 14px;
  background: var(--bg-yellow);
}

.page-home .batch-no {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--accent-red);
}

.page-home .batch-total {
  font-family: var(--font-mono);
  font-weight: 700;
  background: var(--card-mint);
  border: 2px solid var(--line);
  padding: 2px 8px;
  font-size: 0.85rem;
}

.page-home .batch-date {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.page-home .update-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .update-row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "no title"
    "cat time";
  gap: 4px 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  transition: background var(--home-transition), transform var(--home-transition);
}

.page-home .update-row:nth-child(odd) {
  background: var(--card-mint);
}

.page-home .update-row:nth-child(even) {
  background: var(--white);
}

.page-home .update-row:hover {
  background: var(--card-blue);
  transform: translateX(4px);
}

.page-home .update-no {
  grid-area: no;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-red);
  min-width: 5ch;
}

.page-home .update-title {
  grid-area: title;
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.page-home .update-title:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.page-home .update-cat {
  grid-area: cat;
  font-size: 0.76rem;
  justify-self: start;
}

.page-home .update-time {
  grid-area: time;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #555555;
}

.page-home .home-hot {
  border-block: 4px solid var(--line);
}

.page-home .hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .hot-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--line);
  padding: 10px 12px;
  box-shadow: var(--home-shadow);
  transition: transform var(--home-transition), box-shadow var(--home-transition);
}

.page-home .hot-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--home-shadow-hover);
}

.page-home .hot-rank-no {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--accent-red);
  display: block;
  min-width: 2ch;
}

.page-home .hot-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.page-home .hot-title {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
}

.page-home .hot-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #555555;
}

.page-home .hot-gauge {
  height: 8px;
  background: var(--white);
  border: 1px solid var(--line);
}

.page-home .hot-gauge .gauge-fill {
  display: block;
  height: 100%;
}

.page-home .hot-score {
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: right;
  font-size: 1.1rem;
  min-width: 2ch;
}

.page-home .home-cats {
  border-block: 4px solid var(--line);
}

.page-home .cat-head {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.page-home .tile-board {
  margin: 0;
  padding: 0;
}

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

.page-home .cat-tile {
  position: relative;
  border: 3px solid var(--line);
  display: grid;
  gap: 8px;
  min-height: 130px;
  padding: 12px;
  text-decoration: none;
  color: var(--ink);
  align-content: space-between;
  transition: transform var(--home-transition), box-shadow var(--home-transition);
}

.page-home .cat-tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--home-shadow-hover);
}

.page-home .cat-tile img,
.page-home .cat-tile-shape {
  width: 48px;
  height: 48px;
  border: 2px solid var(--line);
  object-fit: cover;
  background: var(--bg-cream);
}

.page-home .cat-tile-name {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.3;
}

.page-home .cat-tile-count {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-block;
  width: fit-content;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2px 8px;
}

.page-home .cat-tile-code {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--accent-blue);
  border: 1px solid var(--line);
  padding: 2px 6px;
  color: var(--ink);
}

.page-home .cat-shape--dots {
  background: radial-gradient(var(--line) 2px, transparent 2.5px);
  background-size: 12px 12px;
}

.page-home .cat-shape--diag {
  background: repeating-linear-gradient(
    45deg,
    var(--line) 0 2px,
    transparent 2px 8px
  );
}

.page-home .cat-shape--grid {
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 10px 10px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 10px 10px;
}

.page-home .cat-shape--tri {
  background: conic-gradient(
    from 0deg,
    var(--line) 0 25%,
    transparent 25% 50%,
    var(--line) 50% 75%,
    transparent 75%
  );
}

.page-home .home-versions {
  border-block: 4px solid var(--line);
}

.page-home .ver-note-link {
  margin-top: 14px;
}

.page-home .version-list {
  display: grid;
  gap: 16px;
}

.page-home .version-node {
  border: 3px solid var(--line);
  background: var(--white);
  padding: 18px;
  position: relative;
}

.page-home .version-node.is-current {
  border-color: var(--accent-red);
  box-shadow: 6px 6px 0 var(--accent-red);
}

.page-home .version-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.page-home .version-num {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--ink);
}

.page-home .version-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.page-home .version-stat {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 8px;
  border: 2px solid var(--line);
  background: var(--card-mint);
}

.page-home .version-node.is-current .version-stat {
  background: var(--card-blue);
}

.page-home .version-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 12px 0 0;
  color: #333333;
}

.page-home .version-tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}

.page-home .version-texture {
  width: 100%;
  max-width: 400px;
  height: auto;
  border: 3px solid var(--line);
  object-fit: cover;
  margin-top: 28px;
  box-shadow: var(--home-shadow);
}

@media (min-width: 640px) {
  .page-home .update-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: none;
    gap: 10px 14px;
    align-items: center;
  }

  .page-home .update-no {
    grid-area: auto;
  }

  .page-home .update-title {
    grid-area: auto;
  }

  .page-home .update-cat {
    grid-area: auto;
    justify-self: auto;
  }

  .page-home .update-time {
    grid-area: auto;
    justify-self: auto;
  }
}

@media (min-width: 768px) {
  .page-home .home-hero {
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
  }

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

@media (min-width: 900px) {
  .page-home .split-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 44px;
  }
}

@media (min-width: 1024px) {
  .page-home .cat-board {
    grid-template-columns: repeat(4, 1fr);
  }
}

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