/* FGC – "Tardisneon": tardisblå bakgrund, neonkanter, arkadtitel. */
:root {
  --bg: #061a33;
  --card: #0b2a52;
  --card-top: #0f3d73;
  --text: #e6f2ff;
  --muted: #a9c6e8;
  --line: #1d4f8a;
  --magenta: #ff2bd6;
  --cyan: #00e5ff;
  --yellow: #ffe14d;
  --green: #39ff88;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(0, 229, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 16px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

/* Titel (från neonarkaden) */
.title { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.title h1 {
  margin: 0;
  font-family: Audiowide, sans-serif;
  font-weight: 400;
  font-size: clamp(64px, 14vw, 96px);
  line-height: 1;
  letter-spacing: 8px;
  color: #fff;
  text-shadow: 0 0 6px var(--magenta), 0 0 20px var(--magenta), 0 0 42px var(--magenta);
}
.subtitle {
  margin: 0;
  font-family: Audiowide, sans-serif;
  font-size: clamp(13px, 3.4vw, 18px);
  letter-spacing: 6px;
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, .8);
}

/* Spelkorten */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 26px; }

.card {
  --c: var(--cyan);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 2px solid var(--c);
  border-radius: 10px;
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 40%, transparent), inset 0 0 16px color-mix(in srgb, var(--c) 10%, transparent);
  overflow: hidden;
  transition: transform .15s;
}
a.card:hover, a.card:focus-visible { transform: translateY(-4px); }
a.card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.card .art {
  height: 160px;
  background: var(--card-top);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--c);
}
.card .art.text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 62px;
  color: var(--yellow);
  text-shadow: 0 0 14px rgba(255, 225, 77, .6);
}
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h2 {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 1px;
  color: #fff;
}
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Knappen: alltid längst ner i mitten */
.pill {
  margin-top: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--c);
  color: var(--c);
  font-weight: 700;
  font-size: 14px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.pill.online { --c: var(--green); text-shadow: 0 0 8px rgba(57, 255, 136, .7); }

/* Offline / kontrollerar */
.card.offline { border-style: dashed; border-color: #3a5a85; box-shadow: none; background: #0a2240; }
.card.offline .art { border-bottom: 2px dashed #3a5a85; opacity: .5; }
.card.offline h2 { color: var(--muted); }
.card.offline .pill { --c: #c3d0e2; border-color: #8fa3bf; }
.card.checking .pill { --c: var(--muted); }

.footer {
  display: flex;
  justify-content: center;
  color: #8fb0d8;
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.noscript { text-align: center; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  a.card:hover, a.card:focus-visible { transform: none; }
}
