/* Extend the shared monochrome studio without external decorative assets. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.games-studio .key-intro { gap: 24px; }
.games-studio .key-intro h1 { font-size: clamp(38px, 4.5vw, 60px); }
.games-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.games-actions .btn { font-size: 12px; padding: 14px 20px; gap: 22px; }
.games-catalog { border-top: 1px solid #ffffff24; padding-top: 30px; }
.games-catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.games-catalog h2, .games-help h2 { margin: 12px 0 0; font-size: 28px; letter-spacing: -.045em; }
.games-studio .games-summary { justify-content: flex-end; gap: 8px; margin: 0; }
.games-studio .games-summary .pill { font: 10px var(--mono); padding: 8px 12px; color: #ddd; background: #ffffff09; border: 1px solid #ffffff26; }
.games-studio .games-summary .warn { color: #aaa; border-style: dashed; }
.games-browser { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: -4px 0 22px; }
.games-browser[hidden], .games-no-results[hidden] { display: none; }
.games-search { min-height: 52px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid #ffffff30; background: #080808; transition: border-color .2s, background .2s; }
.games-search:focus-within { border-color: #f4f4f0; background: #0d0d0d; }
.games-search-mark { width: 22px; color: #f4f4f0; font: 20px/1 var(--mono); transform: rotate(-18deg); }
.games-search input { min-width: 0; width: 100%; border: 0; outline: 0; padding: 15px 0; background: transparent; color: #f4f4f0; font: 600 12px var(--mono); letter-spacing: .02em; }
.games-search input::placeholder { color: #737370; }
.games-search input::-webkit-search-cancel-button { display: none; }
.games-search button { border: 0; border-left: 1px solid #ffffff20; padding: 5px 0 5px 12px; background: transparent; color: #aaa; font: 700 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.games-search button:hover { color: #fff; }
.games-browser-meta { min-width: 180px; display: grid; gap: 5px; justify-items: end; color: #6f6f6c; font: 650 8px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.games-browser-meta span:first-child { color: #d8d8d4; }
.games-studio .games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.games-studio .game-card { min-width: 0; padding: 26px 20px 22px; align-items: flex-start; text-align: left; gap: 18px; border-radius: 16px; background: linear-gradient(135deg, #202020, #111 75%); box-shadow: inset 0 1px #ffffff08, 0 12px 28px #0004; animation: none; transition: transform .3s var(--studio-ease), border-color .3s; }
.games-studio .game-icon { width: 84px; height: 84px; border-radius: 18px; background: #282828; box-shadow: 0 8px 20px #0005; }
.games-studio .game-name { flex: 1; font-size: 16px; line-height: 1.45; letter-spacing: -.025em; }
.games-studio .game-status { font: 8px var(--mono); letter-spacing: .08em; padding: 7px 9px; max-width: 100%; }
.games-studio .is-working .game-status { background: #e6e6e6; border-color: #eee; color: #111; }
.games-studio .is-maintenance { opacity: 1; background: linear-gradient(135deg, #161616, #0e0e0e); }
.games-studio .is-maintenance .game-name { color: #aaa; }
.games-studio .is-maintenance .game-status { color: #aaa; }
.games-studio .game-card:hover, .games-studio .game-card:active { transform: none; }
.games-no-results { padding: 54px 22px; border: 1px dashed #ffffff2b; background: #080808; text-align: center; }
.games-no-results h3 { margin: 14px 0 6px; font-size: 24px; letter-spacing: -.035em; }
.games-no-results p { margin: 0 0 20px; color: #888; font-size: 12px; }
.games-no-results .btn { display: inline-flex; }
.games-pagination { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 0 19px; border-top: 1px solid #ffffff22; }
.games-pagination[hidden] { display: none; }
.games-page-arrow, .games-page-numbers button { min-height: 38px; border: 1px solid #ffffff26; border-radius: 0; background: #090909; color: #cfcfcb; font: 700 9px var(--mono); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.games-page-arrow { padding: 0 13px; }
.games-page-arrow:hover:not(:disabled), .games-page-numbers button:hover { border-color: #f4f4f0; color: #fff; }
.games-page-arrow:disabled { opacity: .3; cursor: not-allowed; }
.games-page-numbers { display: flex; flex-wrap: wrap; gap: 6px; }
.games-page-numbers button { min-width: 38px; padding: 0 10px; }
.games-page-numbers button[aria-current="page"] { background: #f4f4f0; border-color: #f4f4f0; color: #050505; }
.games-page-status { color: #777; font: 650 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.games-page-progress { position: absolute; inset: auto 0 0; width: 100%; height: 3px; border: 0; background: #171717; color: #f4f4f0; appearance: none; }
.games-page-progress::-webkit-progress-bar { background: #171717; }
.games-page-progress::-webkit-progress-value { background: #f4f4f0; transition: width .22s ease; }
.games-page-progress::-moz-progress-bar { background: #f4f4f0; }
.games-studio .games-help { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 44px; padding: 28px 0 0; border-top: 1px solid #ffffff24; }
.games-help p { max-width: 550px; margin: 12px 0 0; font-size: 12px; line-height: 1.8; color: #aaa; }
.games-help .btn { flex-shrink: 0; font-size: 12px; gap: 20px; }
.games-studio .cmhub-ads { max-width: min(1040px, 92vw); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .games-studio .game-card:hover { transform: perspective(700px) translateY(-4px) rotateX(2deg); border-color: #ffffff55; }
}
@media (max-width: 900px) { .games-studio .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 650px) {
  .games-studio .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .games-catalog-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .games-studio .games-summary { justify-content: flex-start; }
  .games-studio .games-help { flex-direction: column; align-items: flex-start; }
  .games-studio .game-card { padding: 20px 14px; gap: 15px; }
  .games-studio .game-icon { width: 68px; height: 68px; border-radius: 14px; }
  .games-studio .game-name { font-size: 14px; }
  .games-browser { grid-template-columns: 1fr; }
  .games-browser-meta { min-width: 0; grid-template-columns: auto auto; justify-content: space-between; justify-items: start; }
  .games-pagination { grid-template-columns: auto 1fr auto; gap: 8px; }
  .games-page-numbers { justify-content: center; }
  .games-page-status { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
@media (max-width: 560px) {
  .games-actions { justify-content: center; }
  .games-actions .btn { font-size: 11px; padding: 12px 14px; gap: 12px; }
  .games-studio .key-intro h1 { font-size: 42px; }
  .games-studio .studio-label { font-size: 9px; }
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .games-studio .game-card:hover .game-icon { transform: none; }
}
@media (max-width: 390px) {
  .games-page-arrow span { display: none; }
  .games-page-arrow { min-width: 40px; padding: 0 10px; }
  .games-page-numbers button { min-width: 34px; padding: 0 8px; }
}
