:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1d2433;
  --muted: #5d6679;
  --ring: #3b6cff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11141b; --card: #1b2030; --text: #e9ecf4; --muted: #a2aabd; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header { text-align: center; padding: 3rem 1rem 1.5rem; }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -0.02em; }
.tagline { margin: 0.5rem 0 0; color: var(--muted); }

.cards {
  flex: 1;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  align-content: start;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08), 0 4px 16px rgb(0 0 0 / 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgb(0 0 0 / 0.14); }
.card:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.emoji { font-size: 2.75rem; line-height: 1; }
.title { font-size: 1.3rem; font-weight: 700; }
.desc { color: var(--muted); line-height: 1.4; }

/* Caleb's Arcade: a neon arcade-cabinet marquee. */
.card.arcade {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgb(255 0 200 / 0.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgb(0 220 255 / 0.35), transparent 45%),
    #120a2a;
  border: 3px solid #ff2bd6;
  box-shadow: 0 0 12px #ff2bd6, inset 0 0 18px rgb(0 220 255 / 0.4);
}
.card.arcade:hover { box-shadow: 0 0 24px #ff2bd6, 0 0 48px rgb(0 220 255 / 0.5), inset 0 0 18px rgb(0 220 255 / 0.5); }
.arcade-logo { display: flex; flex-direction: column; line-height: 1; font-family: "Courier New", ui-monospace, monospace; font-weight: 900; }
.arcade-top { font-size: 1.1rem; letter-spacing: 0.5em; color: #00e5ff; text-shadow: 0 0 6px #00e5ff; }
.arcade-main {
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  letter-spacing: 0.08em;
  color: #ffe600;
  text-shadow: 3px 3px 0 #ff2bd6, 6px 6px 0 #00e5ff, 0 0 18px rgb(255 230 0 / 0.7);
}
.card.arcade .desc { color: #d9d2ff; max-width: 32rem; }
.insert-coin {
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 700;
  color: #00e5ff;
  letter-spacing: 0.2em;
  animation: blink 1.2s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .insert-coin { animation: none; } .card { transition: none; } }

footer { text-align: center; padding: 1.5rem; color: var(--muted); font-size: 0.85rem; min-height: 1rem; }
.ai-note { max-width: 36rem; margin: 0 auto 0.5rem; line-height: 1.5; }
.ai-note a { color: inherit; }
