:root {
  --bg: #1b1534;
  --panel: #261e48;
  --panel-2: #312760;
  --text: #f6f3ff;
  --muted: #b9b1d9;
  --accent: #ff5c8a;
  --accent-2: #ffd166;
  --play: #4fd18b;
  --radius: 16px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #3b2a7a 0%, transparent 60%), var(--bg);
  color: var(--text);
  font:
    16px/1.55 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  min-height: 100vh;
}
a {
  color: var(--accent-2);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.top,
main,
.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
}
.logo {
  width: 36px;
  height: 36px;
}
.top nav {
  display: flex;
  gap: 18px;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.top nav a:hover {
  color: var(--text);
}
.hero {
  padding: 40px 0 24px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 12px;
  max-width: 22ch;
}
.hero p {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 20px;
}
h2 {
  font-size: 1.35rem;
  margin: 36px 0 14px;
}
.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn.ghost {
  background: var(--panel-2);
  font-weight: 600;
  padding: 8px 16px;
}
.btn.big {
  font-size: 1.3rem;
  padding: 16px 40px;
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.4);
}
.btn.soon {
  background: var(--panel-2);
  cursor: default;
}
.grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 18px;
}
.card a {
  display: block;
  height: 100%;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.card a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
}
.card img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}
.card.soon img {
  filter: saturate(0.6) brightness(0.85);
}
.card-body {
  padding: 12px 14px 14px;
}
.card h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}
.card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.93rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag,
.badge {
  font-size: 0.75rem;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 600;
}
.badge.play {
  background: var(--play);
  color: #0b2a19;
}
.badge.kids {
  background: #ffd84d;
  color: #3a2a00;
  vertical-align: middle;
}
.badge.ext {
  background: var(--accent-2);
  color: #3a2a00;
}
.game h1 {
  margin: 16px 0 4px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}
.lede {
  color: var(--muted);
  margin: 0 0 18px;
}
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  width: 100%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.player > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.player > .btn {
  position: relative;
}
.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player:fullscreen {
  border-radius: 0;
  max-height: none;
}
.player-bar {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}
.about-game,
.text {
  max-width: 70ch;
}
.text {
  padding-bottom: 24px;
}
.text .updated {
  color: var(--muted);
  font-size: 0.9rem;
}
.foot {
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 40px;
  padding-bottom: 40px;
}
.foot p {
  margin: 4px 0;
}
.foot a {
  color: var(--muted);
}
@media (max-width: 700px) {
  .player {
    aspect-ratio: 4 / 3;
  }
  .player-bar {
    justify-content: flex-start;
  }
}
[hidden] {
  display: none !important;
}
.chips {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chip {
  flex: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.chip:hover {
  color: var(--text);
}
.chip.on {
  background: var(--accent);
  color: #fff;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
  align-items: center;
  margin: 20px 0 8px;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.feature-body {
  padding: 20px 24px 24px 0;
}
.feature-body h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
}
.feature-body p {
  color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-2) !important;
  margin-bottom: 6px !important;
}
.grid.row {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.grid.row .card p,
.grid.row .card .tags {
  display: none;
}
.games-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 36px 0 14px;
}
.games-head h2 {
  margin: 0;
}
#search {
  font: inherit;
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--panel-2);
  background: var(--panel);
  color: var(--text);
  width: min(100%, 280px);
}
#search:focus {
  outline: none;
  border-color: var(--accent);
}
.empty {
  color: var(--muted);
}
.cat-head {
  padding: 20px 0 8px;
}
.cat-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.cat-head p,
.intro p {
  color: var(--muted);
  max-width: 65ch;
  margin: 0 0 20px;
}
a.tag {
  text-decoration: none;
  color: var(--text);
}
a.tag:hover {
  background: var(--accent);
}
.fav[aria-pressed='true'] {
  color: #ff8fb0;
}
@media (max-width: 700px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .feature-body {
    padding: 16px;
  }
}

/* Ads: banners sit well away from the game so nobody taps one by mistake. */
.ad {
  margin: 28px 0;
  text-align: center;
  min-height: 100px;
}
.ad-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.ad-rail {
  display: none;
}
@media (min-width: 1100px) {
  .game-cols.with-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
  }
  .ad-rail {
    display: block;
    position: sticky;
    top: 16px;
    margin: 0;
    min-height: 600px;
  }
}
