:root {
  color-scheme: dark;
  --background: #0b0f11;
  --card: #141b1e;
  --line: #303b40;
  --ink: #f4f7f1;
  --muted: #bac4c4;
  --accent: #bbff1f;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 88% 0%, #12333a 0, transparent 44rem),
    radial-gradient(ellipse at 14% 35%, #152416 0, transparent 38rem),
    var(--background);
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.shell { width: min(70rem, calc(100% - 3rem)); margin-inline: auto; }
.masthead { border-bottom: 1px solid #455a4780; background: #0b0f11eb; }
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  white-space: nowrap;
}
.wordmark { font: 800 1.85rem/.95 var(--display); letter-spacing: .035em; }
.wordmark b { color: var(--accent); padding-inline: .04em; }
.brand-section {
  padding-left: .8rem;
  border-left: 1px solid #526263;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 600;
}
.fitness-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding-inline: .85rem;
  border: 1px solid #ffffff24;
  border-radius: .55rem;
  color: var(--muted);
  font-size: .875rem;
  white-space: nowrap;
}
.fitness-link span { color: var(--accent); }
.fitness-link:hover { color: var(--ink); }
main { padding-block: clamp(2rem, 4.6vw, 3.5rem) 3.5rem; }
.intro { position: relative; margin-bottom: clamp(1.55rem, 3vw, 2.15rem); }
.intro::after {
  position: absolute;
  inset: 0 0 0 45%;
  background: radial-gradient(circle, #a1d75f 1px, transparent 1.5px) 0 0 / 13px 13px;
  mask-image: linear-gradient(90deg, transparent, #000);
  opacity: .25;
  pointer-events: none;
  content: "";
}
h1 { margin: 0 0 .5rem; font: 800 clamp(3.85rem, 8vw, 6.45rem)/.85 var(--display); letter-spacing: -.03em; }
.intro p { margin: .85rem 0 0; font-size: clamp(.94rem, 2.1vw, 1.12rem); color: var(--muted); }
.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  gap: clamp(.95rem, 2.1vw, 1.35rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.game-card { min-width: 0; }
.game-featured { grid-column: 1 / -1; }
.game-link {
  display: grid;
  align-content: start;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: linear-gradient(120deg, #1a2728, var(--card));
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.game-link:hover { border-color: #82ad46; box-shadow: 0 12px 40px #030808b0; }
.game-featured .game-link {
  border-color: #496452;
  background: linear-gradient(135deg, #193024, #111c1c 52%, #0d1719);
  box-shadow: 0 1.25rem 4rem #0005;
}
.game-featured .game-link:hover { border-color: var(--accent); }
.game-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0d1515; }
.game-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}
.game-link:hover img { transform: scale(1.03); }
.game-info { padding: 1.2rem; }
.game-featured .game-info { padding: clamp(1.35rem, 4.5vw, 3.4rem); }
.genre { margin: 0 0 .45rem; color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .115em; text-transform: uppercase; }
.game-info h2 { margin: 0; font: 800 clamp(1.9rem, 3.2vw, 2.7rem)/.96 var(--display); letter-spacing: -.012em; overflow-wrap: anywhere; }
.game-featured h2 { font-size: clamp(2.9rem, 6.2vw, 5rem); line-height: .88; text-wrap: balance; }
.summary { margin: .85rem 0 1.35rem; max-width: 32ch; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.game-featured .summary { max-width: 34ch; font-size: 1rem; }
.play {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .72rem 1.05rem;
  min-height: 2.85rem;
  border-radius: .5rem;
  color: #131c07;
  background: var(--accent);
  font-size: .92rem;
  font-weight: 700;
}
.play span { font-size: 1.25em; line-height: 1; }
@media (min-width: 49rem) {
  .game-featured .game-link {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.38fr);
    grid-template-areas: "info cover";
    align-items: center;
  }
  .game-featured .game-cover {
    grid-area: cover;
    align-self: stretch;
    min-height: 23rem;
    aspect-ratio: auto;
  }
  .game-featured .game-cover::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #152720 0, #15272000 25%);
    pointer-events: none;
    content: "";
  }
  .game-featured .game-info { grid-area: info; }
}
@media (max-width: 27rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead-inner { min-height: 3.7rem; }
  .wordmark { font-size: 1.6rem; }
  .brand { gap: .5rem; }
  .brand-section { padding-left: .5rem; font-size: .75rem; }
  .fitness-link { padding-inline: .55rem; font-size: .79rem; }
  .intro::after { inset-inline-start: 57%; }
}
@media (prefers-reduced-motion: reduce) {
  .game-link, .game-cover img { transition: none; }
  .game-link:hover img { transform: none; }
}
