:root {
  color-scheme: dark;
  --ink: #111216;
  --ink-2: #191b20;
  --panel: #22252b;
  --panel-2: #2a2e35;
  --line: #3c414b;
  --paper: #e7e2d5;
  --paper-2: #c7c2b6;
  --muted: #959ba5;
  --yellow: #f0b429;
  --yellow-dark: #9e6f00;
  --teal: #1e8c7a;
  --teal-light: #58c9b5;
  --content: 1180px;
  --header: 66px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 22px); }
body {
  min-width: 320px;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  pointer-events: none;
}
a { color: inherit; }
img, svg { display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(100%, var(--content)); margin-inline: auto; padding-inline: 30px; }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  transform: translateY(-140%);
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header);
  border-bottom: 2px solid #000;
  background: #17191d;
  box-shadow: 0 4px 0 rgba(0,0,0,.25);
}
.topbar__inner {
  display: flex;
  align-items: stretch;
  width: min(100%, var(--content));
  height: 100%;
  margin-inline: auto;
  padding-inline: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-right: 30px;
  color: var(--paper);
  text-decoration: none;
}
.brand__icon {
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: transparent;
}
.brand__icon img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font-size: 21px; font-weight: 950; letter-spacing: -.03em; }
.main-nav { display: flex; align-items: stretch; }
.main-nav a {
  display: flex;
  align-items: center;
  min-width: 98px;
  padding: 0 19px;
  border-right: 1px solid #30333a;
  color: #aeb3bc;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.main-nav a:first-child { border-left: 1px solid #30333a; }
.main-nav a:hover { background: #202328; color: var(--paper); }
.main-nav a.is-active { box-shadow: inset 0 -4px var(--yellow); color: var(--paper); }
.topbar__tools { display: flex; align-items: center; gap: 18px; margin-left: auto; }

.intro {
  border-bottom: 1px solid #393c43;
  background: #15171b;
}
.intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, .72fr);
  gap: 58px;
  align-items: stretch;
  padding-top: 86px;
  padding-bottom: 84px;
}
.intro__main { align-self: center; }
.intro__eyebrow {
  margin: 0 0 23px;
  color: var(--teal-light);
  font: 900 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
}
.intro__brandline { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.intro__brandline img {
  width: 68px;
  height: 68px;
  background: transparent;
  object-fit: contain;
}
.intro__brandline span { color: #f4f0e7; font-size: clamp(34px, 4vw, 52px); font-weight: 950; letter-spacing: -.05em; line-height: 1; }
.intro h1 {
  max-width: 790px;
  margin: 0;
  color: #f4f0e7;
  font-size: clamp(43px, 5.5vw, 72px);
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: 1.08;
}
.intro__description { max-width: 760px; margin: 30px 0 0; color: #b8bdc5; font-size: 17px; line-height: 1.95; }
.intro__panel {
  align-self: center;
  border: 3px solid #08090b;
  background: #202329;
  box-shadow: 10px 10px 0 #08090b;
}
.intro__panel-head { padding: 11px 15px; border-bottom: 2px solid #08090b; background: var(--yellow); color: var(--ink); font: 950 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.intro__panel dl { margin: 0; }
.intro__panel dl > div { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 20px 19px; border-bottom: 1px solid #3b3f47; }
.intro__panel dl > div:last-child { border-bottom: 0; }
.intro__panel dt { color: var(--yellow); font: 900 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.intro__panel dd { margin: 0; }
.intro__panel strong { display: block; color: #f2eee5; font-size: 15px; }
.intro__panel span { display: block; margin-top: 5px; color: #9298a2; font-size: 12px; line-height: 1.7; }
.intro__ticker { display: flex; align-items: center; justify-content: center; gap: 18px; height: 42px; overflow: hidden; border-top: 1px solid #33363d; background: #101115; color: #646a73; font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .17em; white-space: nowrap; }
.intro__ticker i { width: 4px; height: 4px; background: var(--yellow); }

.game-library { padding-top: 94px; padding-bottom: 108px; }
.library-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.section-title { display: flex; align-items: flex-start; gap: 18px; margin: 0; }
.section-title__number { display: grid; place-items: center; width: 45px; height: 45px; border: 2px solid var(--yellow); color: var(--yellow); font: 900 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: 4px 4px 0 #000; }
.section-title p { margin: 0 0 3px; color: #737983; font: 900 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
.section-title h2 { margin: 0; font-size: clamp(34px, 4vw, 51px); font-weight: 950; letter-spacing: -.04em; line-height: 1.1; }
.library-controls { display: flex; align-items: center; gap: 8px; }
.library-count { display: flex; align-items: baseline; gap: 7px; min-width: 90px; color: #747a84; font: 850 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.library-count b { color: var(--yellow); font-size: 19px; }
.library-count i { font-style: normal; }
.library-controls button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 42px;
  border: 2px solid #4a4f58;
  background: #191b20;
  color: var(--paper);
  font: 900 20px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
}
.library-controls button:hover:not(:disabled) { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.library-controls button:disabled { opacity: .32; cursor: not-allowed; }
.library-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow) #23262c;
  outline: none;
}
.library-viewport:focus-visible { box-shadow: 0 0 0 3px var(--yellow); }
.library-viewport::-webkit-scrollbar { height: 10px; }
.library-viewport::-webkit-scrollbar-track { background: #23262c; }
.library-viewport::-webkit-scrollbar-thumb { background: var(--yellow); border: 2px solid #23262c; }
.game-track { display: flex; gap: 24px; width: max-content; min-width: 100%; padding: 0 8px 18px 0; }
.game-card {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  flex: 0 0 min(100%, 980px);
  min-height: 490px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 3px solid #060709;
  background: #1b1e23;
  box-shadow: 10px 10px 0 #060709;
}
.game-card__cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 36px 28px;
  border-right: 3px solid #060709;
  background: #12141a;
}
.game-card__cover img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.game-card__slot { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 8px 10px; border: 2px solid #000; background: var(--yellow); color: var(--ink); font: 950 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: 4px 4px 0 #000; }
.game-card__content { display: flex; flex-direction: column; min-width: 0; padding: 38px 42px 40px; }
.game-card__topline { display: flex; justify-content: space-between; gap: 20px; color: #797f89; font: 850 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.game-card__topline span:last-child { color: var(--teal-light); text-align: right; }
.game-card h3 { margin: 30px 0 0; color: #f4f0e7; font-size: clamp(35px, 4.5vw, 58px); font-weight: 950; letter-spacing: -.052em; line-height: 1.05; }
.game-card__subtitle { margin: 9px 0 0; color: var(--yellow); font: 900 16px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; }
.game-card__description { max-width: 600px; margin: 23px 0 0; color: #aeb4bd; font-size: 15px; line-height: 1.85; }
.game-card__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: auto 0 27px; padding-top: 24px; border-top: 1px solid #41454d; }
.game-card__meta div { padding-right: 24px; }
.game-card__meta div + div { padding-left: 24px; border-left: 1px solid #41454d; }
.game-card__meta dt { margin-bottom: 6px; color: #777d87; font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.game-card__meta dd { margin: 0; color: #d8d4ca; font-size: 12px; font-weight: 750; }
.launch-button { display: inline-flex; align-items: stretch; align-self: flex-start; min-width: 250px; border: 3px solid #08090b; background: var(--yellow); color: var(--ink); text-decoration: none; box-shadow: 6px 6px 0 #000; transition: transform .12s ease, box-shadow .12s ease; }
.launch-button:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 #000; }
.launch-button__key { display: grid; place-items: center; width: 58px; border-right: 3px solid #08090b; background: #d69d1e; font-size: 23px; }
.launch-button > span:last-child { display: flex; flex-direction: column; justify-content: center; padding: 10px 17px; }
.launch-button b { font-size: 15px; line-height: 1.25; }
.launch-button small { margin-top: 2px; font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .65; }
.library-loading,
.library-empty { display: grid; place-items: center; width: min(100vw - 60px, 980px); min-height: 360px; border: 2px dashed #4c515b; color: #8d939d; font: 800 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.library-hint { margin: 17px 0 0; color: #686e77; font: 700 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }

.community { padding: 91px 0 102px; border-top: 8px solid var(--yellow); background: var(--paper); color: var(--ink); }
.section-title--light p { color: #696863; }
.section-title--light .section-title__number { border-color: var(--ink); color: var(--ink); box-shadow: 4px 4px 0 #aaa59b; }
.toolbox { display: grid; grid-template-columns: 1fr 1fr; margin-top: 38px; border: 3px solid var(--ink); box-shadow: 10px 10px 0 #aaa59b; }
.toolbox-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 18px; align-items: center; min-height: 116px; padding: 22px; border-bottom: 2px solid var(--ink); color: var(--ink); text-decoration: none; }
.toolbox-item:nth-child(1) { border-right: 2px solid var(--ink); }
.toolbox-item:hover { background: #d8d2c5; }
.toolbox-logo { display: grid; place-items: center; width: 60px; height: 60px; border: 2px solid var(--ink); background: transparent; box-shadow: 4px 4px 0 #aaa59b; }
.toolbox-logo img { width: 42px; height: 42px; object-fit: contain; background: transparent; }
.toolbox-item b { display: block; font-size: 18px; }
.toolbox-item small { display: block; margin-top: 2px; color: #5f5e59; font-size: 12px; }
.toolbox-arrow { font-size: 24px; font-weight: 900; }
.toolbox-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; min-height: 86px; padding: 20px 23px; background: var(--ink); color: var(--paper); }
.achievement { padding: 7px 9px; background: var(--yellow); color: var(--ink); font: 950 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.toolbox-note strong { font-size: 17px; }

.site-footer { border-top: 1px solid #373a41; background: #101115; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 48px; align-items: center; min-height: 130px; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand strong { display: block; font-size: 17px; }
.footer-brand span:last-child { display: block; color: #777d86; font-size: 11px; }
.footer-partner { display: flex; align-items: center; gap: 8px; color: #777d86; font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.footer-partner a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.footer-partner a:hover { color: var(--yellow); }
.footer-partner a:hover b { color: var(--yellow); }
.footer-partner img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  background: transparent;
  filter: brightness(0) invert(1);
  opacity: .78;
}
.footer-partner b { color: #b9bec5; font: 900 14px/1.2 Inter, ui-sans-serif, sans-serif; letter-spacing: 0; }
.footer-meta { display: flex; gap: 17px; color: #717780; font: 700 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.footer-meta a { color: #aeb3bc; }
.footer-meta a:hover { color: var(--yellow); }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .intro__inner { grid-template-columns: 1fr; gap: 47px; }
  .intro__panel { max-width: 690px; }
  .game-card { grid-template-columns: 245px minmax(0, 1fr); }
  .game-card__content { padding: 32px 32px 35px; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-meta { grid-column: 1 / -1; padding-bottom: 26px; }
}

@media (max-width: 720px) {
  :root { --header: 59px; }
  .shell { padding-inline: 19px; }
  .topbar__inner { padding-inline: 18px; }
  .brand { padding-right: 0; }
  .brand__icon { width: 35px; height: 35px; }
  .brand__name { font-size: 18px; }
  .topbar__tools { gap: 8px; }
  .intro__inner { padding-top: 58px; padding-bottom: 61px; }
  .intro__brandline img { width: 54px; height: 54px; }
  .intro__brandline span { font-size: 34px; }
  .intro h1 { font-size: clamp(38px, 11vw, 54px); }
  .intro__description { font-size: 15px; line-height: 1.85; }
  .intro__panel { box-shadow: 6px 6px 0 #08090b; }
  .intro__ticker { justify-content: flex-start; padding-left: 18px; }
  .game-library { padding-top: 70px; padding-bottom: 78px; }
  .library-heading { align-items: flex-start; flex-direction: column; gap: 25px; }
  .section-title { gap: 13px; }
  .section-title__number { width: 39px; height: 39px; }
  .section-title h2 { font-size: 34px; }
  .library-controls { align-self: stretch; justify-content: flex-end; }
  .game-track { gap: 15px; padding-right: 6px; }
  .game-card { display: block; flex-basis: calc(100vw - 44px); min-height: 0; box-shadow: 7px 7px 0 #060709; }
  .game-card__cover { min-height: 0; height: 310px; border-right: 0; border-bottom: 3px solid #060709; }
  .game-card__content { min-height: 460px; padding: 27px 23px 29px; }
  .game-card__topline { gap: 12px; }
  .game-card h3 { margin-top: 23px; font-size: clamp(34px, 10vw, 48px); }
  .game-card__description { font-size: 14px; }
  .game-card__meta { margin-top: auto; }
  .launch-button { width: 100%; }
  .library-hint { display: none; }
  .community { padding: 70px 0 78px; }
  .toolbox { grid-template-columns: 1fr; box-shadow: 6px 6px 0 #aaa59b; }
  .toolbox-item:nth-child(1) { border-right: 0; }
  .toolbox-item { grid-template-columns: 52px 1fr auto; padding: 18px; }
  .toolbox-logo { width: 52px; height: 52px; }
  .toolbox-logo img { width: 36px; height: 36px; }
  .toolbox-note { display: block; }
  .toolbox-note strong { display: block; margin-top: 12px; }
  .footer-grid { display: flex; align-items: flex-start; flex-direction: column; gap: 24px; padding-top: 34px; padding-bottom: 34px; }
  .footer-meta { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
