/* Hand of GOD — download site */

:root {
  --bg: #08040a;
  --panel: rgba(19, 8, 14, 0.82);
  --panel-line: rgba(255, 210, 87, 0.14);
  --gold: #ffd257;
  --gold-soft: #fff4b8;
  --ember: #ff6a3d;
  --crimson: #b3122c;
  --ink: #f6e6d2;
  --body: #d9c8bd;
  --muted: #b08f92;
  --radius: 6px;
  --shell: 1040px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: 'Press Start 2P', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.95;
  overflow-x: hidden;
  -webkit-font-smoothing: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold);
  text-decoration-color: rgba(255, 210, 87, 0.4);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--gold);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  padding: 12px 16px;
  background: var(--gold);
  color: #2b0a06;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------------------------------------------------------------- */
/* the pixel sky                                                     */
/* ---------------------------------------------------------------- */

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

body::before {
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0 2px,
    rgba(0, 0, 0, 0.2) 2px 3px
  );
  opacity: 0.55;
}

body::after {
  background: radial-gradient(
    ellipse at 50% 30%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.45) 72%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

/* ---------------------------------------------------------------- */
/* header                                                            */
/* ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 4, 10, 0.88);
  border-bottom: 2px solid rgba(255, 210, 87, 0.16);
  backdrop-filter: blur(6px);
}

.bar {
  width: min(var(--shell), 100%);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 10px rgba(255, 150, 60, 0.45));
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--gold);
}

.site-header .nav-cta {
  color: #2b0a06;
  background: var(--gold);
  padding: 9px 12px;
  border: 2px solid #2a0a14;
}

.site-header .nav-cta:hover {
  color: #2b0a06;
  filter: brightness(1.1);
}

/* ---------------------------------------------------------------- */
/* layout                                                            */
/* ---------------------------------------------------------------- */

main {
  position: relative;
  z-index: 2;
  width: min(var(--shell), 100%);
  margin: 0 auto;
  padding: 0 20px 40px;
}

.hero {
  padding: 84px 0 64px;
  text-align: center;
}

.kicker {
  font-size: clamp(8px, 1.6vw, 11px);
  letter-spacing: 1px;
  color: var(--ember);
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 106, 61, 0.6);
  animation: flicker 4.5s steps(1, end) infinite;
}

.title {
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px 18px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 2px;
}

.title .l1 {
  font-size: clamp(22px, 4.6vw, 42px);
  color: var(--ink);
  text-shadow: 4px 4px 0 #2a0a14, 0 0 22px rgba(179, 18, 44, 0.8);
}

.title .l2 {
  font-size: clamp(12px, 2.4vw, 20px);
  color: var(--muted);
}

.title .l3 {
  display: block;
  width: 100%;
  font-size: clamp(48px, 12.5vw, 118px);
  letter-spacing: 10px;
  margin-left: 10px;
  color: var(--gold);
  text-shadow:
    5px 5px 0 #3a1503,
    0 0 18px rgba(255, 210, 87, 0.75),
    0 0 56px rgba(255, 106, 61, 0.55);
  animation: breathe 5s ease-in-out infinite;
}

.lede {
  margin: 26px auto 0;
  max-width: 46ch;
  font-size: clamp(9px, 1.9vw, 12px);
  line-height: 2.1;
  color: #f0dcc9;
  text-shadow: 0 2px 0 #160208, 0 0 14px rgba(10, 2, 6, 0.95), 0 0 28px rgba(10, 2, 6, 0.8);
}

.cta {
  margin-top: 40px;
  scroll-margin-top: 90px;
}

/* the button */
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 26px;
  font-family: inherit;
  font-size: clamp(10px, 2.1vw, 14px);
  letter-spacing: 2px;
  color: #2b0a06;
  text-decoration: none;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 45%, #e8a52c);
  border: 4px solid #2a0a14;
  box-shadow:
    0 0 0 4px rgba(255, 210, 87, 0.28),
    0 8px 0 4px #6b0715,
    0 12px 26px rgba(255, 90, 40, 0.35);
  transition: transform 90ms steps(2, end), box-shadow 90ms steps(2, end), filter 160ms;
}

.download .arrow {
  color: #b3122c;
  font-size: 0.9em;
}

.download:hover,
.download:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 4px rgba(255, 210, 87, 0.45),
    0 10px 0 4px #6b0715,
    0 16px 34px rgba(255, 120, 40, 0.45);
  outline: none;
}

.download:active {
  transform: translateY(6px);
  box-shadow:
    0 0 0 4px rgba(255, 210, 87, 0.3),
    0 2px 0 4px #4d0510,
    0 6px 16px rgba(255, 90, 40, 0.3);
}

.meta {
  margin-top: 22px;
  font-size: clamp(7px, 1.4vw, 9px);
  letter-spacing: 1px;
  color: #a4868a;
}

/* ---------------------------------------------------------------- */
/* content sections                                                  */
/* ---------------------------------------------------------------- */

.panel {
  margin: 0 0 26px;
  padding: 38px clamp(20px, 4vw, 44px);
  background: var(--panel);
  border: 2px solid var(--panel-line);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  scroll-margin-top: 86px;
}

.panel h2 {
  font-size: clamp(13px, 2.4vw, 18px);
  line-height: 1.7;
  color: var(--gold);
  margin-bottom: 22px;
  text-shadow: 0 0 18px rgba(255, 210, 87, 0.28);
}

.panel h3 {
  font-size: clamp(9px, 1.7vw, 11px);
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: 10px;
}

.panel p {
  font-size: clamp(8px, 1.6vw, 11px);
  line-height: 2.15;
  margin-bottom: 18px;
}

.panel p:last-child {
  margin-bottom: 0;
}

#about p {
  max-width: 74ch;
}

.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.cards li {
  padding: 20px 18px;
  background: rgba(255, 210, 87, 0.04);
  border: 1px solid rgba(255, 210, 87, 0.12);
  border-radius: var(--radius);
}

.cards p {
  margin-bottom: 0;
  color: var(--body);
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  font-size: clamp(8px, 1.6vw, 11px);
  line-height: 2.15;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #2b0a06;
  background: var(--gold);
  border: 2px solid #2a0a14;
}

.steps p {
  margin: 0;
}

code {
  font-family: inherit;
  font-size: 0.92em;
  padding: 2px 6px;
  color: var(--gold-soft);
  background: rgba(255, 210, 87, 0.1);
  border-radius: 3px;
  word-break: break-word;
}

.sub {
  margin: 34px 0 16px;
  color: var(--ember);
}

.reqs {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(8px, 1.5vw, 10px);
}

.reqs th,
.reqs td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 210, 87, 0.12);
  vertical-align: top;
  font-weight: 400;
}

.reqs th {
  width: 38%;
  color: var(--muted);
}

/* FAQ */
details {
  border-bottom: 1px solid rgba(255, 210, 87, 0.12);
  padding: 14px 0;
}

details summary {
  cursor: pointer;
  font-size: clamp(9px, 1.7vw, 11px);
  line-height: 1.9;
  color: var(--ink);
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: '+';
  color: var(--gold);
  font-size: 1.1em;
}

details[open] summary::before {
  content: '–';
}

details[open] summary {
  color: var(--gold);
}

details p {
  margin: 14px 0 4px;
  padding-left: 26px;
  color: var(--body);
}

.closer {
  text-align: center;
}

.closer p {
  margin-bottom: 30px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- */
/* footer                                                            */
/* ---------------------------------------------------------------- */

footer {
  position: relative;
  z-index: 2;
  width: min(var(--shell), 100%);
  margin: 0 auto;
  padding: 30px 20px 44px;
  text-align: center;
  font-size: clamp(8px, 1.4vw, 10px);
  line-height: 2.2;
  color: #9c7f83;
  border-top: 2px solid rgba(255, 210, 87, 0.12);
}

footer strong {
  color: var(--gold);
  font-weight: 400;
  text-shadow: 0 0 14px rgba(255, 210, 87, 0.45);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.copyright {
  font-size: 0.85em;
  color: #7a6165;
  margin-top: 12px;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  48% { opacity: 1; }
  50% { opacity: 0.35; }
  52% { opacity: 1; }
  78% { opacity: 0.6; }
}

@keyframes breathe {
  0%, 100% { text-shadow: 5px 5px 0 #3a1503, 0 0 18px rgba(255, 210, 87, 0.7), 0 0 52px rgba(255, 106, 61, 0.5); }
  50% { text-shadow: 5px 5px 0 #3a1503, 0 0 26px rgba(255, 228, 140, 0.9), 0 0 82px rgba(255, 106, 61, 0.7); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kicker,
  .title .l3 { animation: none; }
}

@media (max-width: 640px) {
  .bar { padding: 10px 14px; }
  .brand span { display: none; }
  .site-header nav { gap: 10px; font-size: 8px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero { padding: 52px 0 44px; }
  .panel { padding: 26px 18px; }
  .reqs th { width: 45%; }
  .download { width: 100%; padding: 18px 12px; gap: 10px; letter-spacing: 1px; }
}
