/* Politaria layout fixes */

/* Screenshots are used only as background art on the homepage. */
.home-feature-bg,
.home-world-bg,
.home-cta-bg,
.updates-hero-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.home-feature-bg::before,
.home-world-bg::before,
.home-cta-bg::before,
.updates-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-feature-bg::after,
.home-world-bg::after,
.home-cta-bg::after,
.updates-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20,20,20,.88);
}

.home-feature-bg::before { background-image: url('../images/guide.webp'); background-position: center 42%; }
.home-world-bg::before { background-image: url('../images/storage.webp'); }
.home-cta-bg::before { background-image: url('../images/shop.webp'); }
.updates-hero-bg::before { background-image: url('../images/town.webp'); background-position: center 48%; }

.home-feature-bg { border-block: 1px solid var(--line); }
.home-world-bg { border-block: 1px solid var(--line); background: transparent !important; }
.home-world-bg::after { background: rgba(20,20,20,.91); }
.home-cta-bg::after { background: rgba(20,20,20,.90); }

.home-feature-bg .feature-card,
.home-world-bg .stat-panel > div,
.home-cta-bg .cta-panel {
  background: rgba(31,31,31,.94);
}

/* Update timeline */
.updates-hero-bg {
  padding-block: 78px 48px;
  border-bottom: 1px solid var(--line);
}
.updates-hero-bg::after {
  background: linear-gradient(90deg, rgba(20,20,20,.96), rgba(20,20,20,.82));
}

.updates-list {
  position: relative;
  display: block;
  max-width: 1040px;
  padding-left: 64px;
}

.updates-list::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: #3c3c3c;
}

.update-card {
  position: relative;
  margin: 0 0 30px 0 !important;
  padding: 28px 30px;
  border: 1px solid #393939;
  border-radius: 12px;
  background: #222;
}

.update-card:last-child { margin-bottom: 0 !important; }

.update-card::before {
  content: "";
  position: absolute;
  left: -51px;
  top: 31px;
  width: 12px;
  height: 12px;
  border: 4px solid #171717;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px #444;
}

.update-card::after {
  content: "";
  position: absolute;
  left: -35px;
  top: 37px;
  width: 35px;
  height: 1px;
  background: #444;
}

.update-card.featured {
  border-color: #4a5961;
  background: #24292c;
}

.update-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.update-tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 6px;
  background: #303030;
  color: #e5e5e5;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.update-date {
  color: #949494;
  font-size: .88rem;
}

.update-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  letter-spacing: -.02em;
}

.update-card > p {
  margin: 0 0 18px;
  color: #aaa;
}

.update-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.update-points li {
  position: relative;
  padding-left: 16px;
  color: #d0d0d0;
}

.update-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .67em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #737373;
}

@media (max-width: 720px) {
  .updates-list { padding-left: 42px; }
  .updates-list::before { left: 11px; }
  .update-card { padding: 22px 20px; }
  .update-card::before { left: -39px; }
  .update-card::after { left: -25px; width: 25px; }
  .update-top { align-items: flex-start; flex-direction: column; gap: 7px; }
  .update-points { grid-template-columns: 1fr; }
}
