/* RivetSoft game catalog. Shared by the homepage and game landing pages. */
/* Contain the existing decorative ribbon and keep cards off the phone edges. */
html, body { overflow-x: clip; }
#games { scroll-margin-top: 90px; padding-inline: 22px; }
.game-collection-head {
  display: flex; justify-content: space-between; align-items: center; gap: 28px;
  padding: 36px; border-radius: 24px; color: #f5f8ff;
  background: radial-gradient(ellipse at top right, #213b61, transparent 70%), #0a1a30;
}
.game-collection-head .game-eyebrow { color: #f5b93f; }
.game-collection-head h2 { font-size: clamp(30px, 3.5vw, 43px); margin: 10px 0 12px; }
.game-collection-head p:not(.game-eyebrow) { color: #c3d2e5; max-width: 600px; font-size: 16px; }
.game-eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.game-profile-link {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 18px; border: 1px solid #6d829d; border-radius: 12px;
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.game-profile-link:hover { background: #213b61; border-color: #f5b93f; }
.game-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 26px; }
.game-tile {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line);
  border-radius: 20px; background: var(--surface); transition: box-shadow .2s ease, transform .2s ease;
}
.game-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.game-art { position: relative; background: #0a1a30; overflow: hidden; aspect-ratio: 512 / 250; }
.game-art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-tile-body { padding: 22px; display: flex; flex-direction: column; flex: 1; gap: 15px; }
.game-title-row { display: flex; align-items: center; gap: 12px; min-height: 54px; }
.game-title-row img { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; flex: none; }
.game-title-row h3 { font-size: 23px; line-height: 1.1; font-weight: 800; }
.game-title-row .game-eyebrow { font-size: 10px; margin-bottom: 7px; color: var(--muted); letter-spacing: .08em; }
.game-store-title { color: var(--muted); font-size: 12px; line-height: 1.45; min-height: 2.9em; margin: 0; }
.game-description { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; flex: 1; }
.game-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 4px; }
.game-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  color: var(--ink); background: var(--surface); text-decoration: none; font-size: 13px;
  line-height: 1.3; font-weight: 750; text-align: center;
}
.game-link svg { width: 14px; height: 16px; flex: none; }
.game-link-play { background: #f5b93f; color: #231600; border-color: #f5b93f; }
.game-link:hover { border-color: var(--accent); box-shadow: 0 3px 12px #0d1b2e12; }
.game-host { color: var(--muted); font-size: 11px; line-height: 1.5; margin: -3px 0 0; overflow-wrap: anywhere; }
.game-collection-note { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.game-suite-links { display: flex; gap: 10px 16px; flex-wrap: wrap; margin-top: auto; }
.game-suite-links a { font-size: 14px; font-weight: 700; color: var(--accent-strong); text-underline-offset: 4px; }
.game-link:focus-visible, .game-profile-link:focus-visible, .game-suite-links a:focus-visible { outline: 3px solid var(--cyan, #0284c7); outline-offset: 4px; }
@media (max-width: 1000px) {
  .game-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-collection-head { align-items: flex-start; flex-direction: column; gap: 22px; }
}
@media (max-width: 600px) {
  .game-catalog { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .game-collection-head { padding: 26px 23px; border-radius: 20px; }
  .game-collection-head h2 { font-size: 32px; }
  .game-title-row h3 { font-size: 24px; }
  .game-tile-body { padding: 22px; }
  .game-store-title { min-height: 0; }
  .game-link { font-size: 14px; }
}
@media (max-width: 360px) { .games-collection .game-links { grid-template-columns: 1fr; } }
/* Standalone pages use the same typography, colors and controls. */
.game-page {
  --bg: #f4f6f9; --surface: #fff; --surface-2: #e9eef5; --ink: #0d1b2e;
  --muted: #52667e; --line: #d9e2ee; --accent: #dd7d06; --accent-strong: #9c4c07;
  --shadow: 0 18px 40px -18px #0d1b2e47; --cyan: #0284c7;
  margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 'Public Sans', system-ui, sans-serif;
}
.game-page *, .game-page *::before, .game-page *::after { box-sizing: border-box; }
.game-page img { max-width: 100%; display: block; }
.game-page h1, .game-page h2, .game-page h3 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; line-height: 1.1; letter-spacing: -.02em; }
.game-page a { color: inherit; }
.game-page .game-link-play { color: #231600; }
.game-page .page-wrap { max-width: 1120px; margin: auto; padding: 0 24px; }
.game-page-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.game-page-header nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.game-page-brand { font-size: 19px; font-weight: 800; text-decoration: none; }
.game-page-back { font-size: 14px; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.game-page-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; padding: 64px 0 48px; }
.game-page-hero h1 { font-size: clamp(38px, 5vw, 62px); margin: 20px 0 22px; }
.game-page-hero .game-description { font-size: 18px; }
.game-page-art img { width: 100%; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.game-page-hero .game-title-row img { width: 60px; height: 60px; border-radius: 16px; }
.game-page-hero .game-title-row strong { display: block; font-size: 19px; }
.game-page-hero .game-title-row span { display: block; color: var(--muted); font-size: 13px; }
.game-page-hero .game-links { margin: 26px 0 12px; grid-template-columns: 1fr; max-width: 280px; }
.game-page-hero .game-link { min-height: 52px; font-size: 16px; }
.game-page-note { color: var(--muted); font-size: 13px; }
.game-page-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 50px; }
.game-page-features article { padding: 24px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; }
.game-page-features span { color: var(--accent-strong); font-weight: 800; font-size: 13px; }
.game-page-features p { margin: 10px 0 0; }
.game-page-gallery { padding: 36px 0 54px; border-top: 1px solid var(--line); }
.game-page-gallery h2 { font-size: 32px; margin: 0 0 10px; }
.game-page-gallery > p { color: var(--muted); margin: 0 0 26px; }
.game-page-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 650px; }
.game-page-shots figure { margin: 0; }
.game-page-shots img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.game-page-shots figcaption { color: var(--muted); font-size: 12px; margin-top: 10px; }
.game-page-footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 13px; }
.game-page-footer .page-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.game-page-footer a { text-underline-offset: 4px; }
.game-page .skip-link { position: absolute; top: -80px; left: 16px; padding: 12px 20px; background: #f5b93f; color: #231600; z-index: 99; }
.game-page .skip-link:focus { top: 10px; }
@media (prefers-color-scheme: dark) {
  .game-page { color-scheme: dark; --bg: #060f1d; --surface: #0c1e36; --surface-2: #0a182c; --ink: #edf3fb; --muted: #9db1c9; --line: #1e3a5c; --accent: #f5a623; --accent-strong: #fbbf24; --cyan: #38bdf8; }
}
@media (max-width: 760px) {
  .game-page-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 38px; }
  .game-page-features { grid-template-columns: 1fr; gap: 12px; }
  .game-page-header nav { gap: 12px; min-height: 72px; }
}
@media (prefers-reduced-motion: reduce) { .game-tile { transition: none; } .game-tile:hover { transform: none; } }
