/* v5.2: /games/ (games-page.js). Tokens, .btn-sm and .row come from common.css. */
.games-page{padding-block:40px 72px;display:grid;gap:18px}
.games-page h1{margin:0;font-size:36px;line-height:1.3}
.games-lede{margin:0;color:var(--muted);max-width:46em}
.games-grid{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:24px}
.game-card{display:grid;grid-template-rows:auto 1fr;border:24px solid transparent;border-image:url(/img/ui/panel_dark.png) 24 fill / 24px stretch;padding:2px 4px;min-width:0}
.game-cover{display:block;line-height:0;border:4px solid #0d0910;outline:2px solid #4a3426;margin-bottom:14px;overflow:hidden}
.game-cover img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#0d0910;transition:transform .5s ease,filter .5s ease}
.game-body{display:flex;flex-direction:column;gap:8px;min-width:0}
.game-body h2{margin:0;font-size:24px;line-height:1.3}
.game-body h2 a{color:var(--text);text-decoration:none}
.game-body h2 a:hover{color:var(--honey)}
.game-status{margin:0;font:14px/1.2 var(--pixel);color:var(--honey)}
.game-status[data-status="soon"]{color:var(--muted)}
.game-blurb{margin:0;font-size:15px;color:var(--muted)}
.game-acts{margin:auto 0 0;padding-top:6px}
/* v5.11: each card wears its game's colours, as on the homepage (studio/home.css): Dungeon Tavern keeps the pixel
   panel, SCP: NOCLIP the yellowed office, 《乱世君侯》 the lacquer, gold thread and brush title. */
.game-card{transition:transform .25s ease,box-shadow .25s ease}
.game-card:hover{transform:translateY(-4px)}
.game-card:hover .game-cover img{transform:scale(1.045)}
.game-card[data-game="scp-noclip"]{--scp-bg:#12110d;--scp-line:#3a3526;--scp-text:#eee6cf;--scp-muted:#b3aa8f;--scp-accent:#dcc46f;
  border:2px solid var(--scp-line);border-image:none;background:var(--scp-bg);padding:22px 22px 24px}
.game-card[data-game="scp-noclip"]:hover{box-shadow:0 10px 26px rgba(0,0,0,.45),0 0 0 1px var(--scp-accent)}
.game-card[data-game="scp-noclip"] .game-cover{border:2px solid var(--scp-line);outline:0;background:#000}
.game-card[data-game="scp-noclip"] .game-cover img{filter:sepia(.15)}
.game-card[data-game="scp-noclip"] h2{letter-spacing:.06em;text-shadow:2px 0 rgba(224,71,58,.55),-2px 0 rgba(90,170,220,.45)}
.game-card[data-game="scp-noclip"] h2 a{color:var(--scp-text)}
.game-card[data-game="scp-noclip"] h2 a:hover{color:var(--scp-accent)}
.game-card[data-game="scp-noclip"] .game-status{color:var(--scp-accent)}
.game-card[data-game="scp-noclip"] .game-blurb{color:var(--scp-muted)}
.game-card[data-game="scp-noclip"] .btn-sm{border:2px solid var(--scp-accent);border-image:none;background:transparent;color:var(--scp-accent);padding:0 14px}
.game-card[data-game="scp-noclip"] .btn-sm:hover{background:#26231a}
.game-card[data-game="scp-noclip"] :focus-visible{outline-color:var(--scp-accent)}
@font-face{font-family:"LS Brush";src:url(/fonts/mashanzheng-ls-v511.woff) format("woff");font-display:swap}
.game-card[data-game="luanshi-junhou"]{--ls-line:#4a3a28;--ls-gold:#c9a45c;--ls-text:#efe3c8;--ls-muted:#bfae90;--ls-red:#b23a26;--ls-red-2:#d0533a;
  --ls-serif:"Noto Serif SC","Source Han Serif SC","Songti SC","STSong","SimSun",serif;
  border:1px solid var(--ls-line);border-top:3px solid var(--ls-red);border-image:none;padding:22px 22px 24px;
  background:linear-gradient(180deg,rgba(22,17,13,.84),rgba(22,17,13,.97) 46%),url(/img/games/luanshi-junhou/art/hero.webp) 70% 0/cover no-repeat,#16110d}
.game-card[data-game="luanshi-junhou"]:hover{box-shadow:0 10px 26px rgba(0,0,0,.5),0 0 0 1px var(--ls-gold)}
.game-card[data-game="luanshi-junhou"] .game-cover{border:1px solid var(--ls-gold);outline:0;padding:4px;background:#0c0907}
.game-card[data-game="luanshi-junhou"] h2{font-family:"LS Brush",var(--ls-serif);font-weight:400;font-synthesis:none;font-size:32px;line-height:1.15;letter-spacing:.06em}
html[lang="en"] .game-card[data-game="luanshi-junhou"]{--ls-serif:Georgia,"Times New Roman","Noto Serif SC","Songti SC","SimSun",serif}
html[lang="en"] .game-card[data-game="luanshi-junhou"] h2{letter-spacing:.02em}
/* v5.11.1: common.css narrows the space of English headings and buttons for the pixel font; this card's brush title and
   serif button have a normal space, else they read "LuanshiJunhou" and "Gamepage" */
html[lang="en"] .game-card[data-game="luanshi-junhou"] :is(h2,h2 a,.btn){word-spacing:normal}
.game-card[data-game="luanshi-junhou"] h2 a{color:var(--ls-text)}
.game-card[data-game="luanshi-junhou"] h2 a:hover{color:var(--ls-gold)}
.game-card[data-game="luanshi-junhou"] .game-status{color:var(--ls-gold)}
.game-card[data-game="luanshi-junhou"] .game-blurb{color:var(--ls-muted)}
.game-card[data-game="luanshi-junhou"] .btn-sm{border:1px solid var(--ls-gold);border-image:none;border-radius:4px;padding:0 16px;
  background:linear-gradient(180deg,var(--ls-red-2),var(--ls-red));color:#fbeedb;font-family:var(--ls-serif);font-weight:700}
.game-card[data-game="luanshi-junhou"] .btn-sm:hover{filter:brightness(1.12);color:#fbeedb}
.game-card[data-game="luanshi-junhou"] :focus-visible{outline-color:var(--ls-gold)}
@media (prefers-reduced-motion:reduce){
  .game-card,.game-cover img{transition:none}
  .game-card:hover{transform:none}
  .game-card:hover .game-cover img{transform:none}
}
@media (max-width:640px){
  .games-page{padding-block:28px 56px}
  .games-page h1{font-size:30px}
}
