/* Games page: full width, gutter to gutter */
.gx-wide { padding: 0 clamp(16px, 3.2vw, 48px); }
.gx-top { padding: 130px 0 26px; }
.gx-kicker { font: 500 .78rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin: 0 0 10px; }
.gx-top h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: .98; margin: 0 0 16px; }
.gx-top .sub { max-width: 640px; margin: 0; }
.gx-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 34px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gx-sorts { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.gx-sorts::-webkit-scrollbar { display: none; }
.gx-sorts button { flex: none; font: 500 .82rem var(--mono); color: var(--dim); background: none; border: 1px solid transparent; border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.gx-sorts button:hover { color: var(--bone); }
.gx-sorts button.on { color: var(--ink); background: var(--amber); border-color: var(--amber); }
.gx-tools { display: flex; gap: 8px; align-items: center; }
.gx-search { height: 36px; width: 220px; max-width: 100%; background: var(--ink2); border: 1px solid var(--line); border-radius: 999px; color: var(--bone); padding: 0 14px; font: .9rem var(--body); }
.gx-search:focus { outline: none; border-color: var(--amber); }
.gx-shuffle { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ink2); border: 1px solid var(--line); color: var(--bone2); font: 500 .82rem var(--mono); cursor: pointer; }
.gx-shuffle svg { width: 15px; height: 15px; }
.gx-shuffle:hover { border-color: var(--amber); color: var(--bone); }
.gx-shuffle[hidden] { display: none; }
.gx-count { font: .78rem var(--mono); color: var(--faint); margin: 12px 0 0; min-height: 1.2em; }

.gx-list { padding: 8px 0 70px; }
.gx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.gx-card { position: relative; display: block; text-decoration: none; color: var(--bone); opacity: 0; transform: translateY(14px); animation: gxIn .5s var(--ease) forwards; }
@keyframes gxIn { to { opacity: 1; transform: none; } }
.gx-art { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--ink3); border: 1px solid var(--line); }
.gx-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.gx-art .gx-play { position: absolute; inset: auto 10px 10px 10px; display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 10px; background: var(--amber); color: var(--ink); font: 600 .85rem var(--body); opacity: 0; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.gx-art .gx-play svg { width: 14px; height: 14px; }
.gx-card:hover .gx-art img, .gx-card:focus-visible .gx-art img { transform: scale(1.06); }
.gx-card:hover .gx-play, .gx-card:focus-visible .gx-play { opacity: 1; transform: none; }
.gx-card:focus-visible { outline: none; }
.gx-card:focus-visible .gx-art { border-color: var(--amber); }
.gx-name { display: block; margin: 11px 2px 4px; font-weight: 600; font-size: .98rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-meta { display: flex; align-items: center; gap: 10px; margin: 0 2px; font: .76rem var(--mono); color: var(--dim); }
.gx-meta .v { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.gx-meta .v i { font-style: normal; }
.gx-meta svg { width: 13px; height: 13px; }
.gx-meta .x { white-space: nowrap; padding: 1px 7px; border-radius: 999px; border: 1px solid #4a3a1c; color: var(--amber); background: #1f1b12; }

.gx-skel .gx-art { animation: gxPulse 1.4s ease-in-out infinite; }
.gx-skel .gx-name { width: 70%; height: 14px; border-radius: 6px; background: var(--ink3); }
@keyframes gxPulse { 50% { opacity: .5; } }
.gx-empty { padding: 60px 0; }
.gx-empty h2 { margin: 0 0 8px; }
.gx-empty p { color: var(--dim); margin: 0 0 18px; max-width: 520px; }

@media (max-width: 640px) {
  .gx-top { padding-top: 104px; }
  .gx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-tools { width: 100%; }
  .gx-search { flex: 1; width: auto; }
  .gx-art .gx-play { display: none; }
  .gx-meta { gap: 8px; }
  .gx-meta .lbl { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-card { animation: none; opacity: 1; transform: none; }
  .gx-art img, .gx-art .gx-play { transition: none; }
}
