/* Static, crawlable related-game navigation for standalone games. */
.seo-related-games {
  box-sizing:border-box; width:min(100%,1100px); margin:28px auto 20px;
  padding:clamp(18px,3vw,26px); border:1px solid #55736c;
  border-radius:18px; background:linear-gradient(145deg,#203a40,#172b35);
  color:#ebf5ee; font-family:system-ui,-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
}
.seo-related-games * { box-sizing:border-box; }
.seo-related-copy h2 { margin:0 0 9px; font-size:clamp(17px,2.6vw,21px);line-height:1.4;color:#f7fff0;letter-spacing:-.02em }
.seo-related-copy p { max-width:900px;margin:0 0 20px;font-size:13px;line-height:1.8;color:#bed3cb;overflow-wrap:anywhere;word-break:keep-all }
.seo-related-links { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px }
.seo-related-links a {
  min-width:0;display:flex;align-items:center;gap:10px;padding:13px;
  border:1px solid #5e7976;border-radius:12px;text-decoration:none !important;
  background:#254048;color:#eff7e8 !important;transition:background .16s ease,border-color .16s ease;
}
.seo-related-links a:hover { background:#33585a;border-color:#c8e7a2; }
.seo-related-links a:focus-visible { outline:3px solid #d7f497;outline-offset:3px }
.seo-related-icon { flex:0 0 36px;display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:#3a575b;font-size:22px;line-height:1 }
.seo-related-links a>span:last-child { min-width:0;display:block }
.seo-related-links strong { display:block;color:#f0ffe6;font-size:13px;line-height:1.45;font-weight:800;word-break:keep-all;overflow-wrap:anywhere }
.seo-related-links small { display:block;margin-top:3px;color:#b7cdc6;font-size:11px;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere }
/* Shared light appearance for related-game navigation on every standalone page.
   Restrict these colors to light mode; the original dark game panel stays intact. */
html[data-theme="light"] .seo-related-games {
  background:linear-gradient(145deg,#ffffff,#eef6f0);
  border-color:#bad2c3;
  color:#244736;
  box-shadow:0 10px 24px rgb(31 70 45 / 8%);
}
html[data-theme="light"] .seo-related-copy h2 { color:#1f4936!important; }
html[data-theme="light"] .seo-related-copy p { color:#4e6b59; }
html[data-theme="light"] .seo-related-links a {
  background:#ffffff!important;
  border-color:#c4d8cb;
  color:#234637!important;
  box-shadow:0 2px 8px rgb(32 75 50 / 5%);
}
html[data-theme="light"] .seo-related-links a:hover {
  background:#e6f3e9!important;
  border-color:#75a486;
}
html[data-theme="light"] .seo-related-links a:focus-visible {
  outline-color:#256b49;
}
html[data-theme="light"] .seo-related-icon { background:#e3efe7; }
html[data-theme="light"] .seo-related-links strong { color:#244735; }
html[data-theme="light"] .seo-related-links small { color:#526e5e; }

/* Reinstate the original dark card palette when the global theme switches back. */
html[data-theme="dark"] .seo-related-links a {
  background:#254048!important;
  color:#eff7e8!important;
}
html[data-theme="dark"] .seo-related-links a:hover {
  background:#33585a!important;
  border-color:#c8e7a2;
}

@media (max-width:800px) { .seo-related-links { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:460px) {
  .seo-related-games { margin:20px auto 12px;padding:15px;border-radius:14px; }
  .seo-related-links { gap:7px; }
  .seo-related-links a { gap:7px;padding:9px 8px; }
  .seo-related-icon { flex-basis:29px;width:29px;height:29px;font-size:18px; }
}
@media (max-width:350px) { .seo-related-links { grid-template-columns:minmax(0,1fr); } }
@media (prefers-reduced-motion:reduce) { .seo-related-links a { transition:none } }
