:root {
  color-scheme: dark;
  --background: #191a17;
  --surface: #22241e;
  --text: #f6f3e9;
  --secondary: #c1c1b4;
  --line: #45483a;
  --accent: #d8f47e;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 78% 0%, #282d1d 0%, transparent 38rem), var(--background);
  color: var(--text);
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.shell { width: min(76rem, calc(100% - 3rem)); margin-inline: auto; }
.site-header {
  min-height: 4.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 820;
  letter-spacing: -.045em;
}
.brand > span:last-child { color: var(--accent); }
.brand-icon {
  margin-inline-end: .65rem;
  display: grid;
  grid-template: repeat(3, .27rem) / repeat(3, .27rem);
  gap: .11rem;
  transform: rotate(-10deg);
}
.brand-icon i { background: var(--accent); border-radius: .04rem; }
.brand-icon i:nth-child(1) { grid-area: 1 / 2; }
.brand-icon i:nth-child(2) { grid-area: 2 / 1; }
.brand-icon i:nth-child(3) { grid-area: 2 / 2; }
.brand-icon i:nth-child(4) { grid-area: 2 / 3; }
.brand-icon i:nth-child(5) { grid-area: 3 / 2; }
.nav-link { padding: .65rem 0 .65rem .65rem; text-underline-offset: .25em; }
.intro { padding-block: clamp(2.2rem, 4.2vw, 3.7rem) clamp(1.5rem, 3.1vw, 2.7rem); }
.intro h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 820;
  letter-spacing: -.072em;
  line-height: 1.02;
}
.intro h1 span { color: var(--accent); }
.intro p { color: var(--secondary); margin: .9rem 0 0; font-size: clamp(1rem, 2vw, 1.3rem); }
.library { scroll-margin-top: 1rem; }
.section-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.section-heading h2 { margin: 0; font-size: 1.125rem; }
.rule { flex: 1; height: 1px; background: var(--line); }
.game-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--surface);
}
.game-card--featured { display: grid; grid-template-columns: minmax(0, 41%) minmax(0, 59%); grid-template-rows: minmax(23rem, auto); }
.game-art { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.game-card--featured .game-art { grid-area: 1 / 2; height: 100%; min-height: 0; aspect-ratio: auto; }
.game-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.2rem, 3vw, 2rem);
}
.game-card--featured .game-details { grid-area: 1 / 1; padding: clamp(1.5rem, 3.2vw, 2.7rem); }
.game-genre { margin: 0 0 .65rem; color: var(--accent); font-size: .875rem; font-weight: 680; }
.game-title { margin: 0; font-size: clamp(1.45rem, 2.7vw, 2rem); letter-spacing: -.045em; line-height: 1.08; }
.game-card--featured .game-title { font-size: clamp(2.2rem, 4.2vw, 4rem); }
.game-description { color: var(--secondary); margin: .85rem 0 1.5rem; line-height: 1.6; max-width: 36ch; }
.play {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.5rem;
  border-radius: .55rem;
  background: var(--accent);
  color: #202414;
  font-weight: 760;
  text-decoration: none;
  margin-top: auto;
}
.game-card--featured .play { margin-top: 0; }
.play:hover { background: #edffb0; }
.game-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}
.site-footer { margin-top: 3.5rem; border-top: 1px solid var(--line); padding: 1.4rem 0 2rem; color: var(--secondary); }
.site-footer p { margin: .6rem 0; line-height: 1.6; }
.site-footer a { text-underline-offset: .2em; }
.legal-links { display: flex; flex-wrap: wrap; column-gap: 1.4rem; row-gap: .8rem; margin-block: 1rem; }
.legal-document { max-width: 52rem; margin-inline: auto; padding-block: 2.5rem 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.legal-document h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.12; letter-spacing: -.04em; }
.legal-document h2 { margin-top: 2rem; font-size: 1.3rem; line-height: 1.35; }
.legal-document a { color: var(--accent); text-underline-offset: .2em; }
.legal-document .updated { color: var(--secondary); }
.legal-document li { margin-block: .4rem; }
@media (max-width: 48rem) {
  .shell { width: min(76rem, calc(100% - 2rem)); }
  .site-header { min-height: 4rem; }
  .intro { padding-block: 1.9rem 1.3rem; }
  .game-card--featured { display: flex; }
  .game-card--featured .game-art { height: auto; aspect-ratio: 16 / 10; object-position: center 58%; }
  .game-card--featured .game-details { padding: 1.25rem; }
  .play { width: 100%; }
}
