/* Wasted Realms — games portal (wastedrealms.com)
   Hand-written, no build step. Brand art reused from the WR game
   (apps/web/src/index.css "Phosphor Command"): void black + a top amber glow +
   a faint 28px grid, JetBrains Mono display / Hanken Grotesk body, amber accent. */

:root {
  --accent: #ffb000;
  --accent-dim: #b87d00;
  --void: #0a0e14;     /* page background */
  --panel: #11161f;    /* card background */
  --edge: #1e2733;     /* borders */
  --text: #d6dde6;     /* body text */
  --muted: #8a93a0;    /* secondary text */

  /* resource hues (used sparingly as accents) */
  --steel: #8fb3d9;
  --fuel: #38e1d6;

  --font-display: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  --maxw: 64rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* The signature WR background: void black + top amber glow + 28px grid. */
  background-color: var(--void);
  background-image:
    radial-gradient(ellipse at top, rgba(255, 176, 0, 0.06), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  background-attachment: fixed;
}

::selection { background: var(--accent); color: #000; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #ffc63d; }

/* height:auto so width/height attrs (set for aspect-ratio/CLS) never pin a
   fixed pixel height and distort the image. */
img { display: block; max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ── Header / nav ───────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(10, 14, 20, 0.72);
  border-bottom: 1px solid var(--edge);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 32px; width: auto; }
.brand .name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  font-size: 0.95rem;
}
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--muted); font-size: 0.9rem; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  border: 1px solid var(--edge);
  padding: 0.4rem 0.9rem;
  border-radius: 0.4rem;
  color: var(--text) !important;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { border-color: var(--accent); color: #fff !important; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4.5rem 1.25rem 3rem;
}
.hero-wordmark {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 1.25rem;
  /* Transparent PNG (black background removed) so the full-colour emblem +
     wordmark sit on the void/grid — no glow. */
}
.hero .tagline {
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.6rem;
}
.hero .sub {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
}
.hero .sub strong { color: var(--text); font-weight: 600; }

/* ── Proof strip ────────────────────────────────────────────────────────── */
.strip {
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  background: rgba(17, 22, 31, 0.5);
}
.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip .dot { color: var(--edge); }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.rule {
  height: 1px;
  width: 7rem;
  margin: 0 0 1.75rem;
  background: linear-gradient(to right, var(--accent), transparent);
}
.section .intro {
  max-width: 44rem;
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 2.5rem;
}
.section .intro strong { color: #fff; }

/* ── Games grid ─────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
}

/* card art block — CSS-treated brand art (drop in a real screenshot later) */
.art {
  position: relative;
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.art-live {
  background-color: #0c1118;
  background-image:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 176, 0, 0.18), transparent 60%),
    radial-gradient(100% 120% at 80% 110%, rgba(184, 125, 0, 0.22), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, #12100a, #0a0e14);
  background-size: 100% 100%, 100% 100%, 22px 22px, 22px 22px, 100% 100%;
}
.art-live img { height: 110px; width: auto; }
.art-dev {
  background-color: #0b0f16;
  background-image:
    radial-gradient(120% 100% at 50% 0%, rgba(143, 179, 217, 0.12), transparent 62%),
    radial-gradient(110% 120% at 82% 110%, rgba(56, 70, 92, 0.30), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #131822, #0a0e14);
}
.art-dev .glyph {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(143, 179, 217, 0.55);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.art .reveal {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-body { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.card-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.card-body p { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.92rem; flex: 1; }

/* badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.badge-live { background: rgba(255, 176, 0, 0.15); color: var(--accent); }
.badge-live .pulse {
  width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 176, 0, 0.6);
  animation: pulse 2s infinite;
}
.badge-dev { background: rgba(143, 179, 217, 0.12); color: var(--steel); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 176, 0, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(255, 176, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 0, 0); }
}

/* card link / cta */
.play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: #000;
  background: var(--accent);
  padding: 0.55rem 1.1rem;
  border-radius: 0.4rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.play:hover { background: #ffc63d; color: #000; transform: translateX(2px); }
.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.55rem 0;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--edge);
  padding: 2rem 0;
  margin-top: 1rem;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer a { color: var(--muted); }
.footer a:hover { color: #fff; }
.footer-links { display: inline-flex; align-items: center; gap: 0.85rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-links .sep { color: var(--edge); }
.footer .icon { width: 18px; height: 18px; }

/* ── Motion / reveal ────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.fade-up { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { animation: none; }
  .card:hover { transform: none; }
  .badge-live .pulse { animation: none; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .hero .tagline { font-size: 1.15rem; }
}
