/* Games uses the Home palette, navigation and buttons without changing other routes. */
.page-games-studio { min-height: 100vh; display: flex; flex-direction: column; background: var(--page); }
.page-games-studio .site-header { --header-opacity: .96; }
.page-games-studio .navigation-links [aria-current="page"] { color: white; }
.games-main { flex: 1; padding-block: 64px 85px; }
.games-heading { margin-bottom: 44px; }
.games-heading .eyebrow { color: #9aa1af; }
.games-heading h1 { font-size: clamp(3.4rem, 5.6vw, 5rem); line-height: 1.07; margin-block: 20px; font-weight: 800; letter-spacing: -.055em; }
.games-intro { max-width: 600px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.games-toolbar { display: flex; align-items: center; gap: 24px; margin-bottom: 34px; }
.search-box { display: flex; flex: 1; min-width: 190px; max-width: 440px; gap: 12px; align-items: center; padding: 0 18px; min-height: 50px; background: #101114; border: 1px solid #292c35; border-radius: 12px; transition: border-color .2s, background .2s; }
.search-box:focus-within { border-color: var(--blue); background: #11151e; }
.search-box > svg { width: 19px; height: 19px; flex: none; color: #959dad; }
.search-box input { width: 100%; min-width: 0; padding-block: 14px; border: 0; outline: none; background: transparent; color: white; font-size: 14px; line-height: 1.4; }
.search-box input::placeholder { color: #959ba8; }
.sort-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 17px; border: 1px solid #30323b; border-radius: 100px; background: transparent; color: #bdc1cb; font-size: 14px; font-weight: 550; line-height: 1.4; transition: color .2s, background .2s, border-color .2s; }
.chip svg { width: 16px; height: 16px; flex: none; }
.chip:hover { color: white; background: #151820; border-color: #60687a; }
.chip.active { color: white; background: var(--blue); border-color: var(--blue); }
.chip.active:hover { background: #3975ff; border-color: #3975ff; }
.all-games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.game-card { position: relative; isolation: isolate; container-type: inline-size; display: flex; align-items: flex-end; min-width: 0; min-height: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #101114; }
.game-thumb { position: absolute; z-index: -2; inset: 0; }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.game-card::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 8%, rgb(0 0 0 / 8%) 24%, rgb(0 0 0 / 68%) 54%, #050506 100%); }
.game-card:hover .game-thumb img { transform: scale(1.025); }
.game-info { position: absolute; inset: auto 0 0; width: 100%; padding: 14px 18px; }
.game-name { font-size: 22px; font-weight: 750; letter-spacing: -.04em; line-height: 1.15; margin-top: 8px; }
.page-games-studio .game-description { display: none; }
.game-stats { display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 10px; }
.game-stat { display: inline-flex; gap: 5px; align-items: baseline; font-size: 13px; }
.game-stat strong { color: #f2f4f9; font-weight: 650; }
.game-stat-label { color: #bdc2cd; }
.game-live-tag, .game-dev-tag, .game-private-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 100px; font-size: 12px; font-weight: 650; line-height: 1.3; background: rgb(9 13 14 / 85%); color: white; }
.game-live-tag .live-dot { width: 7px; height: 7px; background: #4ce49b; box-shadow: 0 0 0 4px rgb(76 228 155 / 12%); }
.game-dev-tag { color: #ffe59a; background: rgb(36 29 8 / 90%); }
.game-private-tag { color: #ffc8ce; background: rgb(36 14 20 / 90%); }
.dev-dot, .private-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dev-dot { background: #e5bd21; }
.private-dot { background: #ec768c; }
.no-results { padding: 65px 20px; border-radius: 18px; background: #0d0f13; text-align: center; color: #b4bbc8; font-size: 16px; }
.games-noscript { padding-block: 20px; color: var(--muted); }
.games-noscript a { color: var(--blue-light); text-decoration: underline; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Keep the status, title and stats readable on the narrowest landscape cards. */
@container (max-width: 21rem) {
  .game-info { padding: 12px 14px; }
  .game-name { font-size: 20px; }
  .game-stats { gap: 6px 12px; }
}
@media (max-width: 1100px) {
  .games-toolbar { flex-wrap: wrap; gap: 16px; }
  .search-box { flex-basis: 100%; max-width: none; }
  .all-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .all-games-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .games-main { padding-block: 40px 45px; }
  .games-heading { margin-bottom: 30px; }
  .games-heading h1 { font-size: clamp(2.8rem, 11.6vw, 4rem); margin-block: 16px; }
  .games-toolbar { margin-bottom: 28px; }
  .sort-chips { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .chip { min-width: 0; padding-inline: 11px; gap: 7px; font-size: 13px; }
  .game-card { border-radius: 16px; }
}
