/* ==========================================================================
   EPSTEEN ISLAND ARCADE — landing page
   Palette is lifted from the game itself so the two pages read as one product.
   No inline styles anywhere: the CSP is style-src 'self' plus a single hash
   pinning the game's own inline <style>.
   ========================================================================== */

@font-face {
  font-family: "Press Start 2P";
  src: url("/assets/fonts/pressstart2p.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #05060b;
  --panel: #0c0f1a;
  --line: #1d2740;
  --neon: #2f6bff;
  --neon-dim: #16307a;
  --gold: #f0b429;
  --red: #e03131;
  --paper: #d9b271;
  --text: #e8ecf5;
  --muted: #7b8aa6;

  --pixel: "Press Start 2P", ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 50% -8%, #101832 0%, transparent 62%),
    var(--ink);
  color: var(--text);
  font-family: var(--mono);
  display: flex;
  flex-direction: column;
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  background: #07091200;
  background-color: #070912;
  padding: 7px 0;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
  flex: 0 0 auto;
}
.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-scroll 64s linear infinite;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(14px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.mark {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--text);
}
.mark-pip { width: 8px; height: 12px; display: inline-block; }
.mark-pip--gold { background: var(--gold); }
.mark-pip--blue { background: var(--neon); }
.mark-pip--red  { background: var(--red); }
.mark-text {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: .06em;
  margin-left: 6px;
}
.masthead-note {
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: .1em;
  animation: blink 1.6s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Hero ---------- */

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 7vw, 72px) clamp(14px, 4vw, 40px) 60px;
  text-align: center;
}

.eyebrow {
  font-family: var(--pixel);
  font-size: clamp(8px, 1.6vw, 10px);
  letter-spacing: .34em;
  color: var(--neon);
  margin: 0 0 22px;
}
.eyebrow-star { color: var(--red); }

.wordmark {
  font-family: var(--pixel);
  font-size: clamp(30px, 8.5vw, 74px);
  line-height: 1;
  letter-spacing: .06em;
  margin: 0;
  color: var(--text);
  text-shadow:
    0 0 18px rgba(47, 107, 255, .5),
    0 4px 0 var(--neon-dim);
}

.subtitle {
  font-family: var(--pixel);
  font-size: clamp(9px, 2vw, 13px);
  letter-spacing: .2em;
  color: var(--muted);
  margin: 26px 0 0;
}

/* ---------- Card grid ---------- */

.grid {
  list-style: none;
  margin: clamp(36px, 6vw, 60px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 22px);
}
@media (max-width: 940px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

.card { display: flex; }

.card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 0 16px;
  position: relative;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.card--live .card-link:hover,
.card--live .card-link:focus-visible {
  border-color: var(--neon);
  transform: translateY(-3px);
  box-shadow: 0 10px 34px -18px rgba(47, 107, 255, .9);
  outline: none;
}
.card--live .card-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  font-family: var(--pixel);
  font-size: 7px;
  letter-spacing: .12em;
  padding: 4px 6px;
  background: var(--neon-dim);
  color: var(--text);
  border-radius: 2px;
}
.card--soon .card-badge { background: #141a2b; color: var(--muted); }

.card-art { display: block; line-height: 0; border-bottom: 1px solid var(--line); }
.card-art svg { display: block; width: 100%; height: auto; image-rendering: pixelated; }

.soon-glyph {
  font-family: var(--pixel);
  font-size: 7px;
  fill: #1d2740;
}

.card-title {
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.5;
  margin: 16px 14px 0;
  color: var(--gold);
}
.card-blurb {
  font-family: var(--pixel);
  font-size: 8px;
  line-height: 1.9;
  margin: 10px 14px 0;
  color: var(--muted);
}

.card--soon { opacity: .42; }
.card--soon .card-link { cursor: default; }
.card--soon .card-title { color: var(--muted); }

/* ---------- Footer ---------- */

.footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  padding: 20px clamp(14px, 4vw, 40px);
  text-align: center;
}
.footer p {
  margin: 0;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; padding-left: 0; }
  .masthead-note { animation: none; }
  .card-link { transition: none; }
  .card--live .card-link:hover { transform: none; }
}
