/* "Similar games" block of the game page (pages/partials/similar_games.php).
   It sits inside .gp-wrap: the section frame and the colour variables come from
   css/games.css. tw.css sets system-ui on div, p, span and a, so each serif
   element names Fraunces itself. */
.sg-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; padding:16px 24px; border-bottom:1px solid var(--line-soft, #f1eff5); }
.sg-eyebrow{ margin:0; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--accent, #7E3AF2); }
.sg-title{ margin:2px 0 0; font-family:'Fraunces', Georgia, serif; font-size:18px; font-weight:600; line-height:1.3; color:var(--ink, #14121a); }
.sg-all{ flex:none; font-family:'Fraunces', Georgia, serif; font-size:13px; font-weight:500; white-space:nowrap; text-decoration:none; color:var(--accent, #7E3AF2); }
.sg-all:hover{ color:var(--accent-deep, #5b21b6); }

.sg-grid{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; padding:20px 24px 24px; }
.sg-card{ display:flex; flex-direction:column; min-width:0; border:1px solid var(--line, #e7e4ef); border-radius:2px; background:#fff; color:var(--ink, #14121a); text-decoration:none; transition:border-color .15s ease, transform .15s ease; }
.sg-card:hover{ border-color:var(--accent, #7E3AF2); transform:translateY(-1px); }
.sg-card:focus-visible{ outline:2px solid var(--accent, #7E3AF2); outline-offset:2px; }
.sg-img{ display:block; aspect-ratio:12 / 5; overflow:hidden; background:var(--line-soft, #f1eff5); }
.sg-img img{ display:block; width:100%; height:100%; object-fit:cover; }
.sg-name{ display:block; padding:10px 12px 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:'Fraunces', Georgia, serif; font-size:15px; font-weight:500; line-height:1.3; color:var(--ink, #14121a); }
.sg-flav{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin-top:4px; padding:0 12px; font-size:12.5px; line-height:1.45; color:var(--ink-soft, #4a4757); }
.sg-votes{ display:block; margin-top:auto; padding:8px 12px 10px; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted, #8a8797); }

@media (max-width: 899px){
    .sg-head{ padding:14px 16px; }
    .sg-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; padding:16px; }
}
@media (max-width: 479px){
    .sg-head{ flex-direction:column; align-items:flex-start; gap:6px; }
}
@media (prefers-reduced-motion: reduce){
    .sg-card{ transition:none; }
    .sg-card:hover{ transform:none; }
}
