:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #12151c;
  color: #f4f3fa;
  font-synthesis: none;
  line-height: 1.5;
  --base: #12151c;
  --text-muted: #b9bfcc;
  --border: #333a49;
}

* { box-sizing: border-box; }
body { min-width: 0; margin: 0; background: radial-gradient(ellipse at 65% -22rem, #2a2b3e 0, transparent 57rem), var(--base); }
h1, h2, p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: .18rem solid #ffd374; outline-offset: .25rem; }
.wrap { width: min(75rem, calc(100% - 4rem)); margin-inline: auto; }

.skip { position: absolute; z-index: 2; top: .75rem; left: .75rem; transform: translateY(-180%); padding: .6rem .8rem; background: #f4f3fa; color: #13171e; }
.skip:focus { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; border-bottom: 1px solid var(--border); }
.wordmark, .profile { text-decoration: none; }
.wordmark { display: inline-flex; gap: .55rem; align-items: center; font-weight: 850; letter-spacing: -.025em; font-size: 1.25rem; }
.wordmark-detail { color: var(--text-muted); font-size: 1rem; font-weight: 550; }
.mark { display: inline-block; width: 1.05rem; height: 1.05rem; border-radius: .23rem; background: linear-gradient(135deg, #90ece3 0 47%, #1c2230 47% 56%, #e9f68d 56%); }
.profile { color: #d0d5e0; font-size: .9rem; text-underline-offset: .25em; }
.profile:hover, .secondary:hover { text-decoration: underline; }
.intro { padding: clamp(2.1rem, 5vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.intro h1 { font-size: clamp(2.6rem, 7.1vw, 6.1rem); line-height: .97; letter-spacing: -.075em; font-weight: 820; }
.intro p { margin-top: .85rem; color: var(--text-muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }

.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.game { min-width: 0; display: flex; flex-direction: column; overflow: clip; border: 1px solid var(--border); border-radius: 1.1rem; }
.cold { --accent: #9be9e2; --accent-hover: #c1fffa; background: #19222d; }
.crates { --accent: #e1f58b; --accent-hover: #efffae; background: #23202d; }
.art { height: clamp(11.25rem, 21vw, 16.15rem); position: relative; overflow: hidden; isolation: isolate; display: grid; align-content: start; padding: 1.25rem clamp(1rem, 3.3vw, 2rem); }
.art::before { position: absolute; z-index: -1; inset: 0; content: ""; }
.art-copy { z-index: 1; justify-self: start; position: relative; }
.art-copy span { display: block; color: var(--accent); font: 750 .88rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.art-copy strong { display: block; margin-top: .3rem; color: #f8f7fd; font-weight: 770; font-size: clamp(1.35rem, 2.15vw, 2.1rem); line-height: 1.1; letter-spacing: -.035em; }
.art img { position: absolute; display: block; height: auto; object-fit: contain; }
.cold-art { background: radial-gradient(ellipse at 75% 63%, #316177 0, #1c3b51 45%, #102336 85%); }
.cold-art::before { top: 69%; opacity: .47; background: repeating-linear-gradient(0deg, transparent 0 17px, #81a3c6 18px, transparent 19px 31px), repeating-linear-gradient(112deg, transparent 0 70px, #627f9e 71px, transparent 72px 105px); }
.cold-art img { width: min(76%, 28rem); right: 2.6%; bottom: 3%; filter: drop-shadow(0 .75rem .6rem #0a101ba0); }
.crates-art { background: radial-gradient(ellipse at 77% 70%, #4b3b56 0, #332e45 47%, #251f34 82%); }
.crates-art::before { inset: 61% -2rem 11%; transform: rotate(-5deg); opacity: .8; background: repeating-linear-gradient(90deg, #4b435b 0 2px, transparent 2px 18px), linear-gradient(0deg, #6e6079 0 2px, #2a2336 2px calc(100% - 2px), #6e6079 calc(100% - 2px)); }
.crates-art img { width: min(72%, 26rem); right: 2%; bottom: 5%; filter: drop-shadow(0 .65rem .55rem #100f1ba0); }

.game-content { display: flex; flex: 1; flex-direction: column; padding: 1.38rem clamp(1rem, 3.3vw, 2rem) 1.65rem; }
.genre { color: var(--accent); font-size: .88rem; font-weight: 720; }
.game h2 { margin-top: .15rem; font-size: clamp(1.9rem, 3.65vw, 3.35rem); letter-spacing: -.06em; line-height: 1.08; }
.description { max-width: 37ch; color: #d2d7e2; margin-top: .6rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.05rem; margin-top: auto; padding-top: 1.2rem; }
.play, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; font-weight: 750; }
.play { border-radius: .45rem; padding: .45rem 1rem; background: var(--accent); color: #13171e; text-decoration: none; }
.play:hover { background: var(--accent-hover); }
.secondary { color: #e1e4ee; text-decoration: none; text-underline-offset: .25em; }

.site-footer { margin-top: 2.1rem; padding-block: 1.1rem 1.7rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .9rem; }
.site-footer a { text-underline-offset: .24em; }

@media (max-width: 51rem) {
  .wrap { width: min(75rem, calc(100% - 2.6rem)); }
  .actions { gap: .35rem .7rem; }
}

@media (max-width: 42rem) {
  .wrap { width: min(34rem, calc(100% - 2rem)); }
  .site-header { min-height: 3.7rem; }
  .shelf { grid-template-columns: minmax(0, 1fr); }
  .art { height: clamp(10.45rem, 36vw, 13.6rem); }
  .intro { padding-top: 2rem; }
}

@media (max-width: 24rem) {
  .wrap { width: calc(100% - 1.25rem); }
  .site-header { gap: .4rem; }
  .wordmark { gap: .32rem; font-size: 1.1rem; }
  .wordmark-detail, .profile { font-size: .875rem; }
  .actions { align-items: stretch; flex-direction: column; }
  .secondary { justify-content: start; }
}
