:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background: #101a16;
  color: #f5efe1;
  --muted: #b8c4b9;
  --gold: #f0d499;
  --line: #35473d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0, #20382a 0, transparent 38rem);
}
a { color: var(--gold); text-underline-offset: .23em; }
a:hover { color: #fff1ca; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
p, h1, h2 { margin: 0; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.1; }
.container { width: min(100% - 3rem, 920px); margin-inline: auto; }

.topbar { display: flex; justify-content: flex-end; padding-top: 1rem; }
.masthead { padding: .65rem 1rem 1.9rem; text-align: center; }
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .875rem;
}
.language-switcher[hidden] { display: none; }
.language-switcher select {
  color: inherit;
  background: #17251e;
  border: 1px solid var(--line);
  border-radius: .45rem;
  padding: .38rem .65rem;
  font: inherit;
}
.language-switcher select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wordmark { display: flex; align-items: center; justify-content: center; gap: .75rem; }
.wordmark h1 { font-size: clamp(2.35rem, 6vw, 4rem); font-weight: 500; }
.masthead p { color: var(--muted); margin-top: .45rem; }
.brand-icon {
  width: 1.45rem;
  height: 1.75rem;
  border: 1px solid #f6e4b3;
  border-radius: .3rem;
  box-shadow: .17rem .18rem #75613a;
  background: radial-gradient(circle, #b45552 0 21%, #f0d6a6 23% 65%, #b6a179);
  transform: rotate(-11deg);
}

.game-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #17251e;
  box-shadow: 0 1.25rem 3rem #0004;
}
.cover {
  display: block;
  position: relative;
  border-radius: .95rem .95rem 0 0;
  overflow: hidden;
  background: #0c2920;
}
.cover img { display: block; width: 100%; height: auto; transition: filter .2s ease; }
.cover:hover img { filter: brightness(1.1); }
.play, .button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid #f7e1ae;
  border-radius: .45rem;
  padding: .54rem .9rem;
  background: #f0d499;
  color: #21231a;
  font-weight: 700;
  text-decoration: none;
}
.play { position: absolute; right: 1.3rem; top: 1.3rem; box-shadow: 0 .2rem .75rem #0005; }
.button:hover { background: #fff1ca; color: #21231a; }
.game-info { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem 2rem; padding: 1.35rem 1.55rem 1.5rem; align-items: center; }
.eyebrow { color: var(--gold); font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem; }
.game-info h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 500; }
.description { color: var(--muted); margin-top: .45rem; max-width: 58ch; }
.game-links { display: grid; gap: .4rem; justify-items: start; }
.game-links a { display: inline-block; padding-block: .2rem; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .45rem 1rem; border-top: 1px solid var(--line); padding-block: 1.2rem 1.6rem; margin-top: 1.6rem; color: var(--muted); font-size: .9rem; }

.document { max-width: 740px; padding-top: 2.1rem; }
.document-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1.7rem; }
.document header { padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.document h1 { font-size: clamp(2.15rem, 7vw, 3.7rem); font-weight: 500; overflow-wrap: anywhere; }
.document header > p:not(.eyebrow) { margin-top: .8rem; color: var(--muted); }
.document section { margin: 1.65rem 0; }
.document h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); font-weight: 500; margin-bottom: .55rem; }
.document section p + p { margin-top: .6rem; }
.document a { overflow-wrap: anywhere; }
.document-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.15rem; margin-top: 1rem; }

@media (max-width: 600px) {
  .container { width: calc(100% - 1.5rem); }
  .masthead { padding-block: .8rem 1.4rem; }
  .play { top: .65rem; right: .65rem; font-size: .78rem; padding: .35rem .55rem; }
  .game-info { grid-template-columns: 1fr; padding: 1rem; gap: .75rem; }
  .game-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cover img { transition: none; }
}

.game-card + .game-card { margin-top: 1.5rem; }
.cover img { aspect-ratio: 1024 / 500; object-fit: cover; }
