:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --ink: #121826;
  --muted: #5b6577;
  --accent: #0b6dff;
  --accent-2: #0ca678;
  --ring: #d8e1f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 10%, #e8f0ff, var(--bg));
  line-height: 1.6;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(18, 24, 38, 0.04);
}

.hero {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.game-shell {
  min-height: 420px;
  position: relative;
}

.embed-placeholder {
  width: 100%;
  min-height: 420px;
  border: 1px dashed var(--ring);
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
}

button.play-now {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

a.tile {
  display: block;
  position: relative;
  border: 0;
  padding: 2px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  overflow: hidden;
}

a.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--ring);
  border-radius: 12px;
  pointer-events: none;
  z-index: 2;
}

a.tile:hover::before {
  border-color: var(--accent);
}

.tile-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #eef3fb;
  border-radius: 10px 10px 0 0;
}

.tile-body {
  display: block;
  padding: 11px 12px 12px;
}

small.kbd {
  color: var(--muted);
}

footer {
  margin-top: 24px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    padding: 14px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .game-shell,
  .embed-placeholder {
    min-height: 320px;
  }
}
