
.all-games { width:calc(100% - 32px); max-width:1152px; margin:32px auto 48px; color:#123968; }
.all-games-intro { margin-bottom:22px; }
.all-games-intro h1 { font:800 clamp(1.8rem,4vw,2.6rem)/1.15 system-ui,sans-serif; letter-spacing:-.04em; margin:0; }
.all-games-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.all-game-card { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid #c5d9f5; border-radius:18px; color:#123968; background:#fff; text-decoration:none; box-shadow:0 5px 16px #0d6efd12; transition:transform .18s,box-shadow .18s; }
.all-game-art { aspect-ratio:16/10; overflow:hidden; background:#eaf3ff; }
.all-game-art img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .2s; }
.all-game-caption { display:flex; flex:1; align-items:center; justify-content:space-between; gap:8px; padding:14px; background:linear-gradient(120deg,#fff,#f3f8ff); }
.all-game-caption h2 { margin:0; font:700 1rem/1.3 system-ui,sans-serif; overflow-wrap:anywhere; }
.all-game-caption>span { display:grid; place-items:center; flex:none; width:28px; height:28px; border-radius:50%; background:#e4efff; color:#0d6efd; }
.all-game-card:focus-visible { outline:3px solid #0d6efd; outline-offset:4px; }
@media(hover:hover) { .all-game-card:hover { transform:translateY(-4px); box-shadow:0 12px 26px #0d6efd24; }.all-game-card:hover img { transform:scale(1.035); } }
@media(max-width:767px) { .all-games { width:calc(100% - 20px); margin:20px auto 30px; }.all-games-intro { margin-bottom:14px; }.all-games-grid { gap:8px; }.all-game-card { border-radius:11px; }.all-game-caption { padding:7px 5px; min-height:39px; }.all-game-caption h2 { font-size:11px; }.all-game-caption>span { display:none; } }
@media(prefers-reduced-motion:reduce) { .all-game-card,.all-game-art img { transition:none; } }

/* Compact, aligned captions retain room for two-line names. */
.all-game-caption { padding:8px 10px; min-height:42px; gap:6px; }
.all-game-caption h2 { min-width:0; font-size:.9rem; line-height:1.25; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; text-overflow:ellipsis; overflow-wrap:normal; }
.all-game-caption>span { width:24px; height:24px; }
@media(max-width:767px) { .all-game-caption { padding:4px 5px; min-height:32px; }.all-game-caption h2 { font-size:11px; line-height:1.2; } }
