.page-home {
  --bubble-orange-border: #ca6f1e;
  --bubble-orange-text: #a45a15;
  --bubble-yellow-border: #d4ac0d;
  --bubble-yellow-text: #7d6608;
  --bubble-green-border: #1e8449;
  --bubble-green-text: #1e8449;
  --bubble-blue-border: #2471a3;
  --bubble-blue-text: #2471a3;
  background-color: var(--bg-page);
}

.page-home .rank-panel {
  color: var(--text-light);
  padding: 32px 0 64px;
}

.page-home .rank-panel .breadcrumbs {
  margin: 0 0 24px;
}

.page-home .rank-panel .breadcrumbs a {
  color: rgba(236, 240, 241, 0.62);
  text-decoration: none;
}

.page-home .rank-panel .breadcrumbs a:hover,
.page-home .rank-panel .breadcrumbs a:focus-visible {
  color: #fff;
}

.page-home .rank-panel .breadcrumbs [aria-current="page"] {
  color: rgba(236, 240, 241, 0.88);
}

.page-home .rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.page-home .rank-head .eyebrow {
  color: rgba(236, 240, 241, 0.55);
}

.page-home .rank-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.2;
  transform: skewX(-2deg);
  color: #fff;
  margin: 8px 0 0;
}

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

.page-home .rank-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .rank-item {
  border-bottom: 1px solid rgba(236, 240, 241, 0.1);
}

.page-home .rank-item-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.2s ease, background 0.2s ease;
}

.page-home .rank-item-link:hover,
.page-home .rank-item-link:focus-visible {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.04);
}

.page-home .rank-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  width: 40px;
  flex: 0 0 40px;
  text-align: center;
  color: rgba(236, 240, 241, 0.4);
}

.page-home .rank-item--top .rank-num,
.page-home .rank-item--top .rank-value {
  color: var(--accent-new);
}

.page-home .rank-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .rank-item-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .rank-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  transform: skewX(-2deg);
  color: var(--text-light);
}

.page-home .rank-item-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-home .rank-item-tags .tag {
  border: 1px solid rgba(236, 240, 241, 0.24);
  background: rgba(236, 240, 241, 0.06);
  color: rgba(236, 240, 241, 0.86);
}

.page-home .rank-item-tags .tag--orange {
  border-color: rgba(230, 126, 34, 0.75);
  color: #f5b041;
}

.page-home .rank-item-tags .tag--yellow {
  border-color: rgba(241, 196, 15, 0.75);
  color: #f4d03f;
}

.page-home .rank-item-tags .tag--green {
  border-color: rgba(46, 204, 113, 0.75);
  color: #58d68d;
}

.page-home .rank-item-tags .tag--blue {
  border-color: rgba(52, 152, 219, 0.75);
  color: #5dade2;
}

.page-home .rank-heat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-home .rank-heat .meter-bar {
  flex: 1;
  max-width: 420px;
  background: rgba(236, 240, 241, 0.12);
  height: 6px;
}

.page-home .rank-heat .meter-fill {
  height: 6px;
  transition: transform 0.2s ease, filter 0.2s ease;
  transform-origin: left center;
}

.page-home .rank-item:hover .meter-fill,
.page-home .rank-item:focus-within .meter-fill {
  filter: brightness(1.2);
  transform: scaleX(1.04);
}

.page-home .rank-value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(236, 240, 241, 0.72);
}

.page-home .rank-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .rank-aside-visual {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(236, 240, 241, 0.16);
}

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

.page-home .rank-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.page-home .mini-stat {
  background: rgba(236, 240, 241, 0.06);
  border: 1px solid rgba(236, 240, 241, 0.1);
  padding: 10px 6px;
  text-align: center;
}

.page-home .mini-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.page-home .mini-stat-label {
  display: block;
  font-size: 11px;
  color: rgba(236, 240, 241, 0.55);
  margin-top: 4px;
}

.page-home .rank-quicklink {
  margin: 4px 0 0;
}

.page-home .rank-quicklink .btn {
  display: block;
  text-align: center;
}

.page-home .home-latest,
.page-home .home-zones,
.page-home .home-tags,
.page-home .home-batches {
  padding-top: 48px;
  padding-bottom: 56px;
}

.page-home .section-head {
  margin-bottom: 28px;
}

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

.page-home .latest-banner {
  aspect-ratio: 4 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.page-home .masonry-wall {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.page-home .new-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.page-home .new-card-body {
  padding: 14px;
  flex: 1;
}

.page-home .new-card .card-title {
  margin: 0 0 6px;
  font-size: 16px;
}

.page-home .new-card .card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.page-home .new-card-visual {
  position: relative;
  height: 130px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-home .new-card--tall .new-card-visual {
  height: 190px;
}

.page-home .new-card--short .new-card-visual {
  height: 112px;
}

.page-home .new-card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 12px);
}

.page-home .new-card-visual--orange {
  background: linear-gradient(135deg, var(--card-orange), #f39c12);
}

.page-home .new-card-visual--yellow {
  background: linear-gradient(135deg, var(--card-yellow), #f7dc6f);
}

.page-home .new-card-visual--green {
  background: linear-gradient(135deg, var(--card-green), #58d68d);
}

.page-home .new-card-visual--blue {
  background: linear-gradient(135deg, var(--card-blue), #5dade2);
}

.page-home .new-card-visual .status-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.page-home .zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-home .zone-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 128px;
  padding: 18px;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .zone-tile:hover,
.page-home .zone-tile:focus-visible {
  transform: translateY(2px);
  box-shadow: inset 0 4px 0 rgba(44, 62, 80, 0.12);
}

.page-home .zone-tile--orange {
  background: var(--card-orange);
  color: var(--text-dark);
}

.page-home .zone-tile--yellow {
  background: var(--card-yellow);
  color: var(--text-dark);
}

.page-home .zone-tile--green {
  background: var(--card-green);
  color: var(--text-dark);
}

.page-home .zone-tile--blue {
  background: var(--card-blue);
  color: var(--text-dark);
}

.page-home .zone-icon {
  width: 36px;
  height: 36px;
  display: block;
  margin-bottom: 6px;
}

.page-home .zone-tile .tile-label {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-head);
}

.page-home .zone-tile .tile-count {
  font-family: var(--font-mono);
  font-size: 13px;
  opacity: 0.78;
}

.page-home .zone-deco {
  margin-top: 24px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.page-home .tag-cloud-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.page-home .tag-bubbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 30px 16px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.page-home .tag-bubble {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  border-radius: 999px;
  border: 2px solid var(--text-dark);
  font-family: var(--font-mono);
  text-decoration: none;
  color: var(--text-dark);
  background: transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  line-height: 1.3;
}

.page-home .tag-bubble:hover,
.page-home .tag-bubble:focus-visible {
  transform: scale(1.06);
}

.page-home .bubble--xl {
  font-size: 20px;
  padding: 10px 22px;
}

.page-home .bubble--lg {
  font-size: 15px;
  padding: 8px 18px;
}

.page-home .bubble--md {
  font-size: 13px;
  padding: 6px 14px;
}

.page-home .bubble--sm {
  font-size: 11px;
  padding: 4px 10px;
}

.page-home .bubble-tier {
  font-size: 0.7em;
  opacity: 0.7;
  font-weight: 400;
}

.page-home .bubble--orange {
  border-color: var(--bubble-orange-border);
  color: var(--bubble-orange-text);
  background: rgba(230, 126, 34, 0.1);
}

.page-home .bubble--orange:hover,
.page-home .bubble--orange:focus-visible {
  background: var(--card-orange);
  color: #fff;
}

.page-home .bubble--yellow {
  border-color: var(--bubble-yellow-border);
  color: var(--bubble-yellow-text);
  background: rgba(241, 196, 15, 0.12);
}

.page-home .bubble--yellow:hover,
.page-home .bubble--yellow:focus-visible {
  background: var(--card-yellow);
  color: var(--text-dark);
}

.page-home .bubble--green {
  border-color: var(--bubble-green-border);
  color: var(--bubble-green-text);
  background: rgba(46, 204, 113, 0.12);
}

.page-home .bubble--green:hover,
.page-home .bubble--green:focus-visible {
  background: var(--card-green);
  color: var(--text-dark);
}

.page-home .bubble--blue {
  border-color: var(--bubble-blue-border);
  color: var(--bubble-blue-text);
  background: rgba(52, 152, 219, 0.12);
}

.page-home .bubble--blue:hover,
.page-home .bubble--blue:focus-visible {
  background: var(--card-blue);
  color: #fff;
}

.page-home .tag-cloud-aside {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.page-home .batch-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 28px;
}

.page-home .batch-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.page-home .batch-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.page-home .batch-summary::-webkit-details-marker {
  display: none;
}

.page-home .batch-id {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 76px;
}

.page-home .batch-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .batch-count {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.page-home .batch-main .tag-block {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-home .batch-detail {
  padding: 0 14px 14px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px dashed var(--line);
  margin-top: 4px;
}

.page-home .batch-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.page-home .side-rail {
  display: none;
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  background: rgba(44, 62, 80, 0.92);
  border: 1px solid rgba(236, 240, 241, 0.22);
  border-radius: 999px;
  padding: 8px 6px;
  flex-direction: column;
  gap: 2px;
}

.page-home .side-rail-label {
  font-size: 10px;
  color: rgba(236, 240, 241, 0.55);
  text-align: center;
  padding: 2px 6px 6px;
  border-bottom: 1px solid rgba(236, 240, 241, 0.15);
  margin-bottom: 4px;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.page-home .side-rail a {
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  text-align: center;
  line-height: 1.4;
}

.page-home .side-rail a:hover,
.page-home .side-rail a:focus-visible {
  background: rgba(236, 240, 241, 0.16);
  color: #fff;
}

@media (min-width: 700px) {
  .page-home .masonry-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .page-home .masonry-wall .new-card:nth-child(3n+2) {
    margin-top: 40px;
  }

  .page-home .masonry-wall .new-card:nth-child(3n) {
    margin-top: 12px;
  }
}

@media (min-width: 768px) {
  .page-home .latest-banner {
    aspect-ratio: 8 / 1;
  }
}

@media (min-width: 1024px) {
  .page-home .rank-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

  .page-home .tag-cloud-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
  }
}

@media (min-width: 1280px) {
  .page-home .side-rail {
    display: flex;
  }
}
