/* skejl.me — the front door.
 *
 * Deliberately quiet: the games have their own loud identities, so this page
 * is a dark room with two lit windows in it. Each card borrows its own game's
 * accent through --a / --a2, set inline, so a new game brings its colours with
 * it and nothing here needs changing.
 */

:root {
  --bg: #070b1f;
  --ink: #eef1ff;
  --muted: #9aa4cc;
  --faint: #6b76a0;
  --panel: rgba(16, 23, 52, 0.66);
  --line: rgba(255, 255, 255, 0.1);
  --radius: 18px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --display: 'Poppins', var(--font);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 50% -15%, #161d45 0%, rgba(22, 29, 69, 0) 60%),
    linear-gradient(180deg, #080d24 0%, var(--bg) 45%, #04061a 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 50% 30%, rgba(4, 6, 20, 0) 0%, rgba(4, 6, 20, 0.55) 100%);
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------------- masthead ---------------- */

.masthead { text-align: center; margin: 0 0 30px; }

.eyebrow {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: lowercase;
}

.grad {
  background: linear-gradient(100deg, #5ec8f8 0%, #a06cd5 50%, #ff5ea8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 540px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.6;
}

/* ---------------- the game cards ---------------- */

/* Two shelves: things you play with a room, and things you play alone. */
.games { display: flex; flex-direction: column; gap: 34px; }

.shelf-head { margin: 0 0 14px; }
.shelf-head h2 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
}
.shelf-head p { margin: 0; color: var(--faint); font-size: 0.88rem; line-height: 1.5; max-width: 620px; }

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 20px 55px rgba(2, 5, 18, 0.5);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:not(.card-soon):hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--a) 55%, transparent);
  box-shadow: 0 26px 60px rgba(2, 5, 18, 0.6),
              0 0 0 1px color-mix(in srgb, var(--a) 30%, transparent);
}

/* One link over the whole card, so the entire thing is the target; the
   secondary link sits above it. */
.card-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.card-art {
  position: relative;
  height: 148px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(420px 150px at 50% 120%, color-mix(in srgb, var(--a) 22%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}
.card-art canvas { display: block; }

.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }

.card-tag {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--a, var(--faint));
}

.card h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}

.card-blurb {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.58;
  flex: 1;
}
.card-blurb em { color: var(--ink); font-style: italic; }

.card-meta {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  flex-wrap: wrap;
}
.card-meta li {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.card-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-weight: 700;
  font-size: 0.95rem;
  color: #06101f;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--a), var(--a2));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--a) 28%, transparent);
  transition: filter 150ms ease, gap 150ms ease;
}
.card:hover .card-go { filter: brightness(1.08); gap: 12px; }

.card-extra {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  margin-top: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--a);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--a) 40%, transparent);
  padding-bottom: 1px;
}
.card-extra:hover { color: #fff; border-bottom-color: #fff; }

.card-soon {
  border-style: dashed;
  background: rgba(16, 23, 52, 0.3);
  box-shadow: none;
}
.card-soon .card-tag { color: var(--faint); }
.card-soon h2 { color: var(--muted); }
.card-soon .card-body { justify-content: center; min-height: 180px; }

/* ---------------- how it works ---------------- */

.how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.how-item { display: flex; gap: 12px; align-items: flex-start; }
.how-item p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.how-item strong { color: var(--ink); font-weight: 600; }

.how-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

/* ---------------- foot ---------------- */

.foot { padding-top: 26px; text-align: center; }
.foot p { margin: 0; color: var(--faint); font-size: 0.84rem; }

@media (max-width: 560px) {
  .wrap { padding: 36px 18px; justify-content: flex-start; }
  .card-art { height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card-go { transition: none; }
  .card:not(.card-soon):hover { transform: none; }
}
