/* games.dombi.rocks landing page. Palette follows Tiny Turret's midnight-glass look. */
:root {
  --bg: #070a14;
  --glass: rgba(14, 20, 40, 0.72);
  --glass-hi: rgba(24, 32, 62, 0.85);
  --line: rgba(160, 172, 255, 0.16);
  --text: #e6e8ff;
  --muted: #8b93c7;
  --accent: #6c7cff;
  --amber: #ffb347;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60rem 30rem at 15% -10%, rgba(108, 124, 255, 0.22), transparent 70%),
    radial-gradient(40rem 24rem at 95% 0%, rgba(255, 179, 71, 0.10), transparent 70%),
    var(--bg);
}
body::before { /* faint dot grid, like the game board */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(rgba(160, 172, 255, 0.10) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
a { color: inherit; }
.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* Hero */
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 1.25rem;
  padding: 0.35rem 0.8rem 0.35rem 0.45rem; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em;
}
.kicker img { border-radius: 6px; }
h1 {
  margin: 0; max-width: 18ch; font-size: clamp(2.4rem, 6.5vw, 4.25rem); line-height: 1.05;
  letter-spacing: -0.03em; font-weight: 800;
  background: linear-gradient(120deg, #ffffff 30%, #b9c1ff 70%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 1.25rem 0 0; max-width: 34rem; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); }

/* Games */
.section-title {
  margin: 0 0 1rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
}
/* A single game gets a wide, side-by-side card instead of a lonely tile. */
.grid:has(> .card:only-child) { grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .card:only-child { display: grid; grid-template-columns: 1.25fr 1fr; }
  .card:only-child .cover { aspect-ratio: auto; min-height: 100%; border-right: 1px solid var(--line); border-bottom: 0; }
  .card:only-child .body { padding: 2rem 2rem 1.75rem; justify-content: center; }
}

.card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 1.25rem;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}
.cover {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: #0c1324; border-bottom: 1px solid var(--line);
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.card:hover .cover img { transform: scale(1.03); }
.play-badge {
  position: absolute; left: 1rem; bottom: 1rem; padding: 0.45rem 0.9rem; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem; background: rgba(7, 10, 20, 0.75); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.card:hover .play-badge { opacity: 1; transform: none; }

.body { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.title-row { display: flex; align-items: center; gap: 0.85rem; }
.icon { flex: none; width: 3rem; height: 3rem; }
.body h2 { margin: 0; font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.01em; }
.body h2 a { text-decoration: none; }
.tagline { margin: 0.15rem 0 0; color: var(--amber); font-weight: 600; font-size: 0.95rem; }
.desc { margin: 0; color: #c3c8ee; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li {
  padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 0.25rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.4rem; border-radius: 0.8rem;
  font-weight: 700; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, #8b98ff, var(--accent));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn::after { content: "→"; transition: transform 0.15s ease; }
.btn:hover { filter: brightness(1.08); }
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.version { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 0.5rem; }

.more { margin: 1.75rem 0 0; color: var(--muted); text-align: center; font-size: 0.95rem; }
.foot {
  margin-top: 4rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line);
  font-size: 0.9rem; color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
