/* vecthack.net landing — quadrascan palette (vect-hack src/render/quadrascan.json).
   Zero JavaScript; glow is layered text-shadow/box-shadow. The splash's turning
   letters are the only animation, and it stops under prefers-reduced-motion. */
:root {
  --bg: #000000;
  --primary: #1030ff;
  --alert: #ff2233;
  --accent: #80d0ff;
  --pointer: #a0e0ff;
  --white: #ffffff;
}

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

body {
  background: var(--bg);
  color: var(--accent);
  font-family: "Courier New", Courier, monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem 1.5rem;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  width: 100%;
}

/* The page's h1 is the splash below it; this keeps the name for readers and crawlers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The splash: generated into index.html by design/splash/generate.mjs. Every
   shape is a stroke; a fill has to be an inline style to beat the rule below. */
.splash {
  display: block;
  width: 100%;
  max-width: 88rem;
  height: auto;
}

.splash * {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* A turning letter is 16 pre-drawn frames, one visible at a time. */
.splash .fr {
  visibility: hidden;
  animation: splash-turn 3.2s steps(1) infinite;
}

@keyframes splash-turn {
  0% { visibility: visible; }
  6.25% { visibility: hidden; }
  100% { visibility: hidden; }
}

.splash .door { outline: none; }

.splash .door:hover,
.splash .door:focus-visible { filter: brightness(1.5); }

.splash .door:focus-visible rect { stroke: var(--accent); stroke-width: 2; }

@media (prefers-reduced-motion: reduce) {
  .splash .fr { animation: none; }
  .splash .fr:first-child { visibility: visible; }
}

.tagline {
  max-width: 34rem;
  line-height: 1.5;
}

.choose {
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.35em;
  padding-left: 0.35em;
  color: var(--pointer);
  text-shadow: 0 0 8px var(--primary);
}

/* Cards wrap into centered rows; future Modules need only another list item. */
.games {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  width: 100%;
  max-width: 88rem;
}

.games > li {
  flex: 0 1 clamp(20rem, 30vw, 28rem);
  max-width: 100%;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.75rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--primary);
  box-shadow: 0 0 18px -4px var(--primary);
}

.card:hover,
.card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 26px -2px var(--accent);
  outline: none;
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--primary);
}

.name {
  color: var(--white);
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  text-shadow: 0 0 3px var(--white), 0 0 14px var(--primary);
}

.desc {
  line-height: 1.5;
  max-width: 26rem;
  flex: 1; /* keeps both PLAY buttons on the same line when the blurbs differ */
}

.play {
  color: var(--pointer);
  font-size: 1.15rem;
  letter-spacing: 0.3em;
  padding: 0.6rem 1.8rem 0.6rem 2.1rem;
  border: 1px solid var(--accent);
  text-shadow: 0 0 6px var(--accent);
  box-shadow: 0 0 10px var(--primary), inset 0 0 10px var(--primary);
}

.card:hover .play,
.card:focus-visible .play {
  color: var(--white);
  box-shadow: 0 0 18px var(--accent), inset 0 0 14px var(--accent);
}

.support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 88rem;
  margin-top: 0.75rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--accent);
  box-shadow: 0 0 18px -4px var(--primary), inset 0 0 24px -12px var(--primary);
}

/* display: grid above would override the hidden attribute. */
.support[hidden] { display: none; }

.support-copy {
  min-width: 0;
  text-align: left;
}

.support h2 {
  color: var(--white);
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-shadow: 0 0 3px var(--white), 0 0 14px var(--primary);
}

.support-copy p {
  max-width: 68ch;
  margin-top: 1rem;
  line-height: 1.6;
}

.support-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  line-height: 1.5;
}

.support-button {
  width: 100%;
  min-height: 3.5rem;
  padding: 1rem;
  background: var(--bg);
  color: var(--pointer);
  font: inherit;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  border: 1px solid var(--accent);
  text-shadow: 0 0 6px var(--accent);
  box-shadow: 0 0 10px var(--primary), inset 0 0 10px var(--primary);
}

/* The destination is not configured yet; keep the placeholder legible. */
.support-button:disabled {
  opacity: 1;
  cursor: default;
}

.support-note { color: var(--pointer); }

@media (max-width: 56rem) {
  .support { grid-template-columns: minmax(0, 1fr); }

  .support-action {
    width: 100%;
    max-width: 22rem;
    justify-self: center;
  }
}

.blurb { color: var(--pointer); }

footer {
  margin-top: auto;
  padding-top: 2.5rem;
  font-size: 0.9rem;
}

footer a,
.blurb a {
  color: var(--pointer);
  text-underline-offset: 3px;
}

footer a:hover,
footer a:focus-visible,
.blurb a:hover,
.blurb a:focus-visible { color: var(--white); }
