.network-home {
  --home-sea: #c9e7f9;
  --home-shore: #f5e4be;
  --home-muted: #5b5145;
}

[data-theme="dark"] .network-home {
  --home-sea: #182d42;
  --home-shore: #28231e;
  --home-muted: #b8c5d5;
}

.network-home .network-hero {
  display: block;
  min-height: 0;
  padding-inline: 0;
  isolation: isolate;
}

.network-hero .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 56px);
  width: min(1140px, 90%);
  padding: clamp(44px, 6vw, 84px) 0 52px;
  text-align: left;
}

.network-hero .hero-content { position: relative; z-index: 2; }

.network-edition {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--home-muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.network-edition span {
  width: 15px;
  height: 15px;
  background: linear-gradient(#70a647 0 38%, #9a6747 38%);
  box-shadow: inset -4px -3px #392e343a;
  outline: 2px solid var(--text);
}

.network-hero .hero-title {
  font-size: clamp(3.25rem, 6.5vw, 6.25rem);
  line-height: .99;
  letter-spacing: -.065em;
  margin-bottom: 22px;
}

.network-hero .hero-title em { color: var(--pill-blue); font-style: normal; }
.network-hero .hero-tagline { color: var(--home-muted); max-width: 36ch; }
.network-hero .hero-buttons { justify-content: flex-start; }
.network-hero-art {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}
.network-hero .hero-bubbles-layer { z-index: 2; }

.blocks {
  height: clamp(20px, 3vw, 36px);
  background: var(--blocks-from, var(--bg));
  position: relative;
}

.blocks::after {
  content: '';
  position: absolute;
  inset: 0 0 -1px;
  background: var(--blocks-to);
  clip-path: polygon(0 55%, 5% 55%, 5% 22%, 12% 22%, 12% 0, 19% 0, 19% 45%, 26% 45%, 26% 72%, 33% 72%, 33% 45%, 42% 45%, 42% 20%, 50% 20%, 50% 52%, 63% 52%, 63% 78%, 70% 78%, 70% 45%, 77% 45%, 77% 0, 83% 0, 83% 27%, 91% 27%, 91% 58%, 97% 58%, 97% 28%, 100% 28%, 100% 100%, 0 100%);
}

.blocks-sea { --blocks-to: var(--home-sea); }
.blocks-shore { --blocks-from: var(--home-sea); --blocks-to: var(--home-shore); }
.blocks-paper { --blocks-from: var(--home-shore); --blocks-to: var(--bg); }
.blocks-footer { --blocks-to: var(--section-ink); }

.network-home .gamemodes-section {
  background: var(--home-sea);
  padding: clamp(46px, 6vw, 80px) 0;
}

.network-home .gamemodes-section .section-title,
.network-home .story-title {
  background: none;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  font-size: clamp(2.15rem, 4.2vw, 3.5rem);
  letter-spacing: -.046em;
  line-height: 1.02;
}

.network-home .gamemodes-section .section-subtitle,
.network-home .story-by,
.network-home .story-body { color: var(--home-muted); }

.network-home .gm-card-v2-top { height: 102px; }
.network-home .gm-card-v2-icon { border-radius: 10px; width: 56px; height: 56px; }
.network-home .gm-card-v2-locked .gm-card-v2-icon { opacity: .8; }

.network-home .story-section {
  background: var(--home-shore);
  padding: clamp(44px, 6vw, 76px) 0;
}
.network-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 72px);
}

.network-story .story-card {
  background: none;
  box-shadow: none;
  border: 0;
  padding: 0;
}
.network-story .story-header { border: 0; }

.network-map {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 13px 12px #49311430);
}

@media (max-width: 768px) {
  .network-hero .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
    padding: 88px 0 24px;
  }
  .network-edition,
  .network-hero .hero-buttons { justify-content: center; }
  .network-hero .hero-tagline { margin-inline: auto; }
  .network-hero-art { width: min(100%, 390px); justify-self: center; }
  .network-story { grid-template-columns: 1fr; }
  .network-map { width: min(100%, 540px); justify-self: center; }
  .network-home .social-text.reveal-right:not(.visible) { transform: translateY(24px); }
}

@media (max-width: 480px) {
  .network-hero .hero-buttons { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  .network-home .reveal,
  .network-home .reveal-left,
  .network-home .reveal-right { opacity: 1; transform: none; transition: none; }
}

.voxel-icon {
  width: 36px;
  height: 36px;
  background: url('voxel-icons.png') var(--sprite-x, 0) 0 / 252px 36px no-repeat;
  image-rendering: pixelated;
}
.voxel-icon-eggwars { --sprite-x: -36px; }
.voxel-icon-answer { --sprite-x: -72px; }
.voxel-icon-deathrun { --sprite-x: -108px; }
.voxel-icon-dragon { --sprite-x: -144px; }
.voxel-icon-build { --sprite-x: -180px; }
.voxel-icon-pet { --sprite-x: -216px; }
