/* Download page (download.php). Dark, matches the Spirit Beasts site. */

.download-page {
  --dl-bg: #070913;
  --dl-panel: #111731;
  --dl-line: #26305a;
  --dl-text: #e8ecff;
  --dl-muted: #97a3cc;
  --dl-gold: #f2c94c;
  --dl-glow: #7ab8ff;
  color: var(--dl-text);
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: grid;
  gap: 40px;
}

.dl-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dl-gold);
}

.dl-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--dl-line);
  padding: 36px;
  background: var(--dl-panel);
  isolation: isolate;
}

.dl-hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
}

.dl-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.dl-hero-copy {
  display: grid;
  gap: 14px;
}

.dl-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  color: #ffe9a6;
  text-shadow: 0 0 22px rgba(242, 201, 76, 0.35);
}

.dl-hero p {
  margin: 0;
  color: var(--dl-text);
  line-height: 1.55;
}

.dl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--dl-gold);
  color: #0b0f1f;
  transition: transform 0.15s, box-shadow 0.15s;
}

.dl-primary {
  background: linear-gradient(180deg, #ffe08a, #f2c94c);
  box-shadow: 0 0 22px rgba(242, 201, 76, 0.35);
  font-size: 1.05rem;
}

.dl-primary:hover,
.dl-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(242, 201, 76, 0.55);
}

.dl-ghost {
  background: transparent;
  color: var(--dl-text);
  border-color: var(--dl-line);
}

.dl-ghost:hover,
.dl-ghost:focus-visible {
  border-color: var(--dl-glow);
}

.dl-secondary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dl-meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--dl-muted);
}

.dl-hash {
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--dl-text);
}

.dl-notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(242, 201, 76, 0.1);
  border: 1px solid rgba(242, 201, 76, 0.4);
  color: var(--dl-gold);
}

.dl-section {
  display: grid;
  gap: 18px;
}

.dl-heading h2 {
  margin: 4px 0 0;
  font-size: 1.6rem;
}

.dl-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dl-shots figure {
  margin: 0;
  display: grid;
  gap: 8px;
}

.dl-shots img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--dl-line);
  background: #050714;
}

.dl-shots figcaption {
  font-size: 0.82rem;
  color: var(--dl-muted);
}

.dl-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.dl-requirements {
  margin: 0;
  display: grid;
  gap: 8px;
}

.dl-requirements div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--dl-panel);
  border: 1px solid var(--dl-line);
}

.dl-requirements dt {
  font-weight: 800;
  color: var(--dl-gold);
}

.dl-requirements dd {
  margin: 0;
  color: var(--dl-text);
  line-height: 1.45;
}

.dl-notes {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--dl-panel);
  border: 1px solid var(--dl-line);
}

.dl-notes h3 {
  margin: 0 0 10px;
}

.dl-notes ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--dl-text);
  line-height: 1.5;
}

.dl-notes kbd {
  font: 700 0.8rem ui-monospace, Consolas, monospace;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--dl-line);
  background: #050714;
}

@media (max-width: 900px) {
  .dl-hero,
  .dl-split {
    grid-template-columns: 1fr;
  }

  .dl-shots {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .dl-hero {
    padding: 22px 18px;
  }

  .dl-requirements div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .dl-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dl-button {
    transition: none;
  }
}
