/* CoreGames landing and 404 pages. Same palette and type as gufinov.com (dark navy, teal accent, system fonts);
   no web fonts, no images except the mark. The file name carries its content hash (npm run rehash). */
:root {
  color-scheme: dark;
  --bg: #09111f;
  --bg-glow: #11273d;
  --panel: #14263b;
  --panel-end: #101e30;
  --line: #294058;
  --line-strong: #42617b;
  --text: #eef3ff;
  --muted: #a4b7ca;
  --soft: #8198b0;
  --accent: #48dfca;
  --kicker: #70dbcf;
  --link: #8ce8db;
  --focus: #ffd27a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: radial-gradient(ellipse at 95% 2%, var(--bg-glow) 0, transparent 40%), var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  padding: 10px 14px;
  background: #fff;
  color: #111;
  font-weight: 700;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  min-height: 92px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  font-size: 17px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
}

.accent {
  color: var(--accent);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
}

.top-nav a {
  color: #b9c9dc;
  text-decoration: none;
}

.top-nav a:hover {
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 56px 60px;
  border-radius: 26px;
  border: 1px solid #2c4661;
  background: linear-gradient(115deg, #14233b 2%, #101d32 55%, #0b1d2c 100%);
  box-shadow: 0 32px 100px #01070f30;
}

.eyebrow,
.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--kicker);
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
}

.spark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62e8ce;
  box-shadow: 0 0 18px #62e8ce;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 22px 0 18px;
}

.lead {
  max-width: 640px;
  margin: 0;
  font-size: clamp(17px, 2vw, 20px);
  color: #c3d2e3;
}

.games {
  padding-top: 64px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.04em;
  margin: 8px 0 0;
}

.count {
  margin: 0;
  border: 1px solid #34465b;
  border-radius: 30px;
  padding: 8px 14px;
  font-size: 12px;
  color: #aebed1;
  white-space: nowrap;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 17px;
}

.game-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 232px;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel), var(--panel-end));
  border-radius: 18px;
  transition: transform 0.15s, border-color 0.15s;
}

.game-card:hover,
.game-card:focus-within {
  transform: translateY(-2px);
  border-color: #4c7892;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.game-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #234658;
  color: #92e8dc;
  font-size: 17px;
  font-weight: 850;
}

.status {
  font-size: 11px;
  color: #a9c7d7;
  border: 1px solid #3c6071;
  border-radius: 50px;
  padding: 6px 10px;
  text-align: center;
}

.game-card h3 {
  font-size: 20px;
  letter-spacing: -0.025em;
  margin: 18px 0 8px;
}

.game-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 22px;
  flex: 1;
}

.game-link {
  align-self: start;
  font-size: 14px;
  font-weight: 800;
  color: var(--link);
  text-decoration: none;
}

.game-link:hover {
  text-decoration: underline;
}

.notes {
  margin-top: 56px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-size: 14px;
}

.notes h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text);
}

.notes ul {
  margin: 0;
  padding-left: 20px;
}

.notes a {
  color: var(--link);
}

.not-found {
  padding: 56px;
}

.not-found .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #062521;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: #7ff0df;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 40px 0 48px;
  color: var(--soft);
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .shell {
    padding: 0 16px;
  }

  .hero,
  .not-found {
    padding: 36px 22px 40px;
    border-radius: 20px;
  }

  .games {
    padding-top: 44px;
  }

  .section-head {
    align-items: start;
  }

  .notes {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card {
    transition: none;
  }

  .game-card:hover,
  .game-card:focus-within {
    transform: none;
  }
}
