/* Címlapok: the "Játék" hub (assets/js/jatek.js) and the shared frame of the game pages (/jatek/<id>/). */
.jt-grid{list-style:none; margin:18px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:18px}
.jt-card{display:flex; flex-direction:column; height:100%; color:var(--ink); text-decoration:none; background:var(--surface);
  border:1px solid var(--line); border-radius:14px; overflow:hidden; transition:transform .15s, box-shadow .15s}
.jt-card:hover{transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,.08)}
.jt-art{display:flex; align-items:center; justify-content:center; aspect-ratio:16/9; font-size:64px;
  background:linear-gradient(135deg, var(--jt-color), color-mix(in srgb, var(--jt-color) 55%, #000))}
.jt-art.pic{background:#1b0d33}
.jt-art img{display:block; width:100%; height:100%; object-fit:cover}
.jt-body{display:flex; flex-direction:column; gap:6px; padding:14px 16px 16px; flex:1}
.jt-body h2{margin:0; font:600 20px/1.2 var(--serif)}
.jt-body p{margin:0; color:var(--muted); font-size:14px}
.jt-play{margin-top:auto; padding-top:6px; font-weight:600; font-size:14px; color:var(--accent)}
.jt-empty{margin:24px 0 0; padding:40px 20px; text-align:center; background:var(--surface); border:1px dashed var(--line); border-radius:14px}
.jt-empty-art{margin:0; font-size:56px}
.jt-empty h2{margin:8px 0 6px; font:600 24px/1.2 var(--serif)}
.jt-empty p{margin:0 auto; max-width:46ch; color:var(--muted)}
/* game pages: the back link above the game and the game's own area */
.jt-back{display:inline-block; margin:16px 0 0; font-size:14px; color:var(--accent); text-decoration:none}
.jt-back:hover{text-decoration:underline}
.jt-stage{margin:14px 0 0; padding:16px; background:var(--surface); border:1px solid var(--line); border-radius:14px}
@media (prefers-reduced-motion: reduce){ .jt-card{transition:none} .jt-card:hover{transform:none} }
