:root {
  color-scheme: dark;
  --background: #101115;
  --panel: #191a20;
  --line: #30323c;
  --text: #f5f4f1;
  --muted: #b9bbc7;
  --lime: #d4ff51;
  font: 16px/1.55 "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--background); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.shell { width: min(1320px, calc(100% - 72px)); margin-inline: auto; }
.top { border-bottom: 1px solid #24252c; }
.header { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: 1.18rem; font-weight: 800; }
.brand-icon { display: grid; place-items: center; width: 36px; aspect-ratio: 1; border-radius: 9px; background: var(--lime); color: #172012; }
.subtle, .footer { color: var(--muted); font-size: .875rem; }
.subtle:hover, .footer a:hover, .post:hover { color: var(--lime); }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 430px; margin-top: 30px; border: 1px solid #3c4141; border-radius: 24px; background: #1c292b; }
.hero img, .hero-shade { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: 62% 48%; }
.hero-shade { background: linear-gradient(90deg, #101417 4%, #11151aee 24%, #11151a81 57%, #11151a12 92%), linear-gradient(0deg, #101417a0, transparent 24%); }
.hero-content { padding: 42px clamp(26px, 5vw, 80px); }
.feature-label { color: var(--lime); font-size: .8rem; font-weight: 760; letter-spacing: .08em; }
.feature-label span { margin-right: 5px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(3rem, 6.4vw, 5.8rem); letter-spacing: -.045em; line-height: 1.03; margin: 16px 0 20px; }
.hero p { color: #e1e4e8; max-width: 30ch; }
.primary { display: inline-flex; align-items: center; margin-top: 25px; padding: 11px 19px; border-radius: 9px; color: #141a10; background: var(--lime); font-weight: 800; }
.primary:hover { background: #e2ff92; }
.hero-credit { position: absolute; bottom: 15px; right: 21px; font-size: .8rem; color: white; text-shadow: 0 1px 3px #111; }
#catalog { margin-top: 48px; scroll-margin-top: 20px; }
.section-heading { display: flex; gap: 14px; align-items: end; justify-content: space-between; }
h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); letter-spacing: -.035em; line-height: 1.25; }
#count { color: var(--muted); margin-top: 5px; font-size: .875rem; }
.search { display: flex; align-items: center; gap: 10px; width: min(100%, 330px); padding: 0 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; color: var(--muted); }
.search span { font-size: 1.5rem; line-height: 1; }
.search:focus-within { border-color: var(--lime); }
.search input { width: 100%; padding: 10px 0; color: var(--text); background: none; border: 0; outline: none; }
.search input::placeholder { color: var(--muted); }
.filters { display: flex; margin: 22px 0 18px; gap: 9px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.tabs button, .filters select, .more { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); padding: 7px 13px; font-size: .875rem; }
.tabs button:hover, .more:hover { border-color: var(--lime); }
.tabs button[aria-pressed="true"] { color: #141a10; background: var(--lime); border-color: var(--lime); font-weight: 750; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr)); gap: 17px; }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; transition: border-color .15s; }
.card:hover, .card:focus-within { border-color: #9dc431; }
.game-link { display: block; flex: 1; }
.game-link:focus-visible { outline-offset: -3px; }
.cover { position: relative; aspect-ratio: 16 / 9; background: #272d38; overflow: hidden; }
.cover img, .fallback { width: 100%; height: 100%; position: absolute; inset: 0; }
.cover img { object-fit: cover; transition: transform .23s; z-index: 1; }
.card:hover img { transform: scale(1.04); }
.fallback { display: grid; place-items: center; font-size: 3rem; color: #dcedbd; background: radial-gradient(ellipse at 30% 35%, #476158, #23283c 68%); }
.badge, .play { position: absolute; z-index: 2; display: grid; place-items: center; }
.badge { top: 10px; left: 10px; background: #111218ed; color: #e8ecf2; padding: 3px 8px; border-radius: 5px; font-size: .75rem; }
.play { bottom: 10px; right: 10px; width: 34px; aspect-ratio: 1; background: var(--lime); color: #141a10; border-radius: 8px; font-size: .75rem; padding-left: 2px; }
.card-body { padding: 13px 14px 8px; }
.meta { color: #c9ceae; font-size: .78rem; margin-bottom: 4px; }
h3 { font-size: 1.08rem; line-height: 1.35; overflow-wrap: anywhere; }
.card p { color: var(--muted); font-size: .875rem; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 0 14px 13px; color: var(--muted); font-size: .78rem; }
.byline { overflow-wrap: anywhere; }
.empty { color: var(--muted); padding: 28px 0; }
.more { display: block; margin: 25px auto 0; padding: 9px 19px; }
.footer { border-top: 1px solid var(--line); margin-top: 52px; padding: 20px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer div { display: flex; gap: 16px; }
.sr-only { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
@media (max-width: 650px) {
  .shell { width: calc(100% - 28px); }
  .header { height: 59px; }
  .hero { margin-top: 15px; min-height: 350px; border-radius: 16px; }
  .hero-shade { background: linear-gradient(90deg, #101417f4, #10141768), linear-gradient(0deg, #101417a0, transparent 24%); }
  #catalog { margin-top: 32px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .filters { margin-top: 13px; }
  .grid { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
