@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --ink: #070815;
  --paper: #f2f1eb;
  --blue: #5524ff;
  --cyan: #16c8df;
  --muted: #a6aec8;
  --heading: 'Space Grotesk', Arial, sans-serif;
  --mono: 'DM Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: #090e26; color: var(--paper); font-family: var(--heading); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
h1, h2, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.site-shell { position: relative; isolation: isolate; display: flex; min-height: 100svh; flex-direction: column; background: radial-gradient(ellipse at 50% 35%, #19244b 0%, #101735 48%, #080c20 100%); }
.site-pattern { position: absolute; z-index: -1; inset: 0; pointer-events: none; background: url('assets/xetup-patterns.png') center / cover; opacity: .045; mix-blend-mode: screen; }
.site-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; padding: 24px clamp(20px, 4vw, 64px); background: transparent; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 28px; height: 28px; object-fit: contain; filter: invert(1); }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -.08em; }
.contact-link { display: flex; gap: 15px; align-items: center; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.contact-link span { color: var(--cyan); font-size: 18px; }
.contact-link:hover { color: var(--cyan); }
.catalog { display: flex; min-width: 0; width: 100%; flex: 1; flex-direction: column; justify-content: center; gap: 18px; padding: 16px clamp(20px, 4vw, 64px); }
.game-cards { display: grid; width: min(1560px, 100%); grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 24px); margin: 0 auto; }
.game-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #ffffff12; border-radius: 8px; background: #141d3c; box-shadow: 0 14px 36px #02061635; }
.game-cover { position: relative; isolation: isolate; display: grid; min-width: 0; width: 100%; aspect-ratio: 9 / 16; place-items: center; overflow: hidden; background: #080c1c; }
.game-cover > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.game-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: clamp(14px, 1.4vw, 20px); }
.game-status { margin-bottom: 10px; color: #b5bdda; font: 9px/1.5 var(--mono); letter-spacing: .07em; }
.game-status.is-available { color: #57dde5; }
.game-copy h2 { min-height: 2.25em; margin-bottom: 12px; font-size: clamp(19px, 1.7vw, 27px); line-height: 1.12; letter-spacing: -.04em; overflow-wrap: anywhere; }
.game-description { min-height: 4.5em; margin-bottom: 18px; color: #b5bfd7; font-size: clamp(12px, 1vw, 14px); line-height: 1.5; }
.game-play { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 10px 12px; border: 0; border-radius: 3px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; text-align: left; }
.game-play:hover { background: #6a40ff; }
.game-play:disabled { background: #ffffff07; color: #9aa6c7; cursor: default; }
.is-placeholder { border-style: dashed; background: #101831a6; box-shadow: none; }
.placeholder-cover { background: radial-gradient(circle at 50% 40%, #293761, #111a36 70%); }
.placeholder-cover > img { position: static; width: 28%; height: auto; object-fit: contain; filter: invert(1); opacity: .22; }
.placeholder-cover > span { position: absolute; right: 20px; bottom: 15px; color: #c4cbed38; font: 12px var(--mono); letter-spacing: .15em; }
.is-placeholder .game-status { color: #91a0c0; }
.is-placeholder .game-copy h2 { color: #c2cbe1; }
.catalog-controls { display: none; }
.site-footer { display: flex; flex-shrink: 0; justify-content: space-between; gap: 20px; padding: 16px clamp(20px, 4vw, 64px); color: #8491b2; font: 9px/1.5 var(--mono); letter-spacing: .1em; }
a:focus-visible, button:focus-visible, .game-cards:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

@media (max-width: 1050px) {
  .catalog { padding-right: 0; padding-left: 0; }
  .game-cards { display: flex; gap: 18px; padding: 0 24px 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; scrollbar-width: none; }
  .game-cards::-webkit-scrollbar { display: none; }
  .game-card { flex: 0 0 min(36vw, 300px); scroll-snap-align: start; }
  .game-copy h2 { font-size: 24px; }
  .game-description { font-size: 14px; }
  .catalog-controls { display: flex; align-items: center; justify-content: center; gap: 24px; }
  .catalog-arrow { width: 38px; height: 38px; border: 1px solid #ffffff20; border-radius: 50%; background: transparent; cursor: pointer; }
  .catalog-arrow:hover { border-color: var(--cyan); color: var(--cyan); }
  .catalog-arrow:disabled { opacity: .25; cursor: default; }
  .catalog-position { min-width: 40px; text-align: center; color: #9ba9c9; font: 11px var(--mono); }
}
@media (max-width: 600px) {
  .site-header { padding: 18px 20px; }
  .catalog { gap: 12px; padding-top: 8px; padding-bottom: 8px; }
  .game-cards { gap: 12px; padding-right: 20px; padding-left: 20px; scroll-padding-inline: 20px; }
  .game-card { flex-basis: min(64vw, 260px); }
  .game-copy { padding: 14px; }
  .game-copy h2 { min-height: 2.25em; font-size: clamp(19px, 5vw, 21px); margin-bottom: 10px; }
  .game-description { min-height: 3em; margin-bottom: 14px; font-size: 13px; }
  .contact-link { font-size: 10px; }
  .site-footer { padding-top: 10px; padding-bottom: 12px; font-size: 8px; }
}
@media (max-height: 560px) and (min-width: 601px) {
  .site-header { padding-top: 12px; padding-bottom: 12px; }
  .game-copy { padding: 12px; }
  .game-copy h2 { margin-bottom: 8px; font-size: 19px; }
  .game-description { margin-bottom: 10px; font-size: 12px; }
  .site-footer { padding-top: 8px; padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
