:root {
  --bg: #0d0a12;
  --panel: #16111d;
  --text: #f3ecdc;
  --muted: #a99fb5;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #2b1838 0%, transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.hero {
  text-align: center;
  padding: clamp(1.75rem, 5vw, 2.75rem) 1.25rem clamp(1.25rem, 3vw, 2rem);
}

h1, h2 {
  font-family: Cinzel, Georgia, serif;
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  font-weight: 800;
  text-shadow: 0 0 40px rgba(239, 90, 98, .35);
}

h1 span { color: #ef5a62; }

.tagline {
  max-width: 36rem;
  margin: .6rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.1rem);
}

.games {
  display: grid;
  gap: 1.25rem;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

.game {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--accent) 70%, transparent);
}

.media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.media:hover video { transform: scale(1.04); }

.badge {
  position: absolute;
  top: .6rem;
  left: .6rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(13, 10, 18, .72);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
}

.badge::before {
  content: "";
  display: inline-block;
  width: .45rem;
  height: .45rem;
  margin-right: .4rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: .05rem;
}

.info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.25rem 1.25rem;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem .75rem;
}

h2 { font-size: 1.6rem; }

.chip {
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent);
  white-space: nowrap;
}

.genre {
  margin: .3rem 0 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.desc {
  flex: 1;
  margin: .55rem 0 1.1rem;
  color: var(--muted);
  font-size: .95rem;
}

.play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 56px;
  border-radius: 12px;
  background: var(--accent);
  color: #120c16;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  transition: transform .15s, filter .15s;
}

.play::after { content: "▶"; font-size: .85em; }

.play:hover { filter: brightness(1.1); transform: translateY(-2px); }

.play:focus-visible, .media:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

/* Tablets: each game is a row, video on the left. */
@media (min-width: 640px) and (max-width: 999px) {
  .game { display: grid; grid-template-columns: 1.35fr 1fr; }
  .media { aspect-ratio: auto; min-height: 100%; }
  .media video { position: absolute; inset: 0; }
  .desc { font-size: .9rem; }
}

/* Desktop: all three side by side, so every clip plays at once. */
@media (min-width: 1000px) {
  .games { grid-template-columns: repeat(3, 1fr); }
}

footer {
  text-align: center;
  padding: 0 1rem calc(2rem + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: .85rem;
}

@media (prefers-reduced-motion: reduce) {
  .media video, .play { transition: none; }
  .media:hover video { transform: none; }
}
