/* Game catalogue and game detail pages (standalone; no JavaScript framework). */
:root {
  --games-ink: #18212c;
  --games-subtle: #536273;
  --games-muted: #788696;
  --games-paper: #fff;
  --games-background: #f4f6f9;
  --games-line: #e1e6eb;
  --games-accent: #155bca;
  --games-accent-hover: #0f499f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.games-body { font-family: 'Didact Gothic', 'Segoe UI', Arial, sans-serif; color: var(--games-ink); background: var(--games-background); line-height: 1.55; margin: 0; }
body.games-body a { color: inherit; }
body.games-body img { max-width: 100%; }
.site-container { width: min(1152px, calc(100% - 48px)); margin-inline: auto; }
.site-header { background: #030405; color: #fff; }
.site-nav { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.site-brand { display: inline-flex; align-items: center; width: 184px; flex-shrink: 0; }
.site-brand img { display: block; width: 100%; height: auto; }
.site-nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 34px; }
.site-header .site-nav-links a { font-family: 'Didact Gothic', 'Segoe UI', Arial, sans-serif; font-size: 17px; font-weight: 400; line-height: 1.4; text-decoration: none; color: #e7e7e7; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; padding: 8px 0; }
.site-header .site-nav-links a:hover, .site-header .site-nav-links a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.site-header a:focus-visible, .site-footer a:focus-visible { outline: 3px solid #8db6ff; outline-offset: 5px; border-radius: 2px; }
.games-hero { font-family: 'Didact Gothic', 'Segoe UI', Arial, sans-serif; background: radial-gradient(ellipse at 90% 0%, rgba(61,91,132,.36), transparent 46%), linear-gradient(120deg, #142131, #0b121b); padding: 68px 0 75px; color: #fff; }
.games-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; color: #92b6ef; margin: 0 0 13px; }
.games-hero h1 { margin: 0; font-size: clamp(43px, 6.2vw, 70px); font-weight: 400; line-height: 1.08; }
.games-main { padding: 46px 0 92px; }
.games-list { display: grid; gap: 30px; }
.game-card { min-width: 0; display: grid; grid-template-columns: 1.03fr 1fr; background: var(--games-paper); border: 1px solid var(--games-line); border-radius: 22px; overflow: hidden; box-shadow: 0 12px 42px rgba(15,30,46,.055); }
.game-card:nth-child(even) .game-card-copy { order: 2; }
.game-card:nth-child(even) .game-card-media { order: 1; }
.game-card-copy { padding: clamp(25px, 3.5vw, 42px); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.game-card-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.game-icon { display: block; width: 82px; aspect-ratio: 1; border-radius: 19px; object-fit: cover; height: auto; flex: none; background: #0d1015; box-shadow: 0 2px 9px rgba(0,0,0,.12); }
.game-card h2 { margin: 0; font-size: clamp(24px, 2.65vw, 31px); line-height: 1.18; font-weight: 400; }
.game-card-description { color: var(--games-subtle); font-size: 17px; line-height: 1.7; margin: 0 0 26px; }
.game-card-media { display: flex; background: #15202c; padding: 19px; align-items: center; min-width: 0; }
.game-card-media a { display: block; width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 26px rgba(0,0,0,.23); }
.game-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.store-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.store-actions .store-link { width: 153px; height: 49px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; transition: transform .2s, opacity .2s; }
.store-link:hover { opacity: .88; transform: translateY(-2px); }
.store-link img { display: block; width: 100%; max-width: 153px; max-height: 49px; object-fit: contain; }
.store-actions .more-link { display: inline-flex; min-width: 144px; min-height: 49px; align-items: center; justify-content: center; gap: 10px; background: var(--games-accent); color: #fff; text-decoration: none; font-size: 16px; font-weight: 700; border-radius: 9px; padding: 10px 17px; transition: background .2s, transform .2s; }
.store-actions .more-link:hover { background: var(--games-accent-hover); transform: translateY(-2px); }
.store-actions a:focus-visible, .game-card-media a:focus-visible { outline: 3px solid #5e9fff; outline-offset: 4px; }
.breadcrumbs { padding: 22px 0; font-size: 15px; color: #607287; }
.breadcrumbs a { color: var(--games-accent) !important; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { padding-inline: 9px; color: #a9b1bb; }
.detail-hero { border-bottom: 1px solid var(--games-line); padding-bottom: 54px; }
.detail-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(34px, 5vw, 66px); align-items: center; }
.detail-identity { display: flex; align-items: center; gap: 15px; margin-bottom: 23px; }
.detail-identity .game-icon { width: 87px; border-radius: 19px; }
.detail-identity .studio-label { color: #7d8795; margin: 0; font-size: 15px; }
.detail-hero h1 { margin: 0 0 17px; font-size: clamp(36px, 3.9vw, 56px); font-weight: 400; line-height: 1.12; }
.detail-hero .detail-intro { margin: 0 0 27px; color: var(--games-subtle); font-size: 19px; line-height: 1.66; }
.detail-cover { background: #14202b; padding: 15px; border-radius: 21px; box-shadow: 0 15px 42px rgba(30, 55, 87, .12); }
.detail-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 11px; }
.detail-section { padding-top: 66px; }
.detail-section h2 { font-size: clamp(29px, 3vw, 38px); font-weight: 400; line-height: 1.2; margin: 0 0 21px; }
.detail-prose { max-width: 920px; font-size: 18px; line-height: 1.88; color: #425165; }
.detail-prose p { margin: 0 0 18px; }
/* Google Play full descriptions are rendered as accessible paragraphs and headings. */
.detail-prose h3 { font-size: 22px; font-weight: 400; line-height: 1.35; color: #253a55; margin: 32px 0 9px; }
.detail-prose h3:first-child { margin-top: 0; }
.detail-prose ul { margin: 12px 0 22px; padding-left: 26px; }
.detail-prose li { margin-bottom: 5px; }
.gallery-note { color: #718092; font-size: 16px; margin: -7px 0 22px; }
/* Without JS the screenshots remain fully visible and crawlable in a grid. */
.game-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.gallery-slide { min-width: 0; margin: 0; background: #fff; border: 1px solid var(--games-line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s; }
.gallery-slide:hover { box-shadow: 0 9px 24px rgba(13,31,53,.11); }
.gallery-item { min-width: 0; display: block; text-decoration: none; }
.gallery-item:focus-visible { outline: 3px solid #5e9fff; outline-offset: -3px; }
/* A single full-resolution screenshot is scaled by the browser without cropping. */
.gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; }
.gallery-slide figcaption { color: #516173; font-size: 15px; padding: 12px 15px; }
/* Progressive enhancement: two screenshots on desktop, one on mobile. */
.gallery-carousel.is-enhanced { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 13px; align-items: center; }
.gallery-carousel.is-enhanced .gallery-viewport { overflow: hidden; min-width: 0; }
.gallery-carousel.is-enhanced .game-gallery { display: flex; gap: 20px; transition: transform .38s ease; will-change: transform; }
.gallery-carousel.is-enhanced .gallery-slide { flex: 0 0 calc((100% - 20px) / 2); min-width: 0; }
.gallery-control { display: grid; place-items: center; width: 46px; height: 46px; padding: 0 0 4px; border: 1px solid #cbd7e5; border-radius: 50%; background: #fff; color: #1e4679; font-size: 39px; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s; }
.gallery-control:hover { border-color: #8cb5ea; background: #e7f0ff; }
.gallery-control:focus-visible { outline: 3px solid #5e9fff; outline-offset: 2px; }
.gallery-control[hidden] { display: none !important; }
.gallery-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.identity-panel .identity-links { margin: 20px 0 0; }
.identity-panel { background: #e7edf5; border: 1px solid #d4dfec; border-radius: 17px; padding: clamp(22px, 3vw, 33px); margin-top: 74px; }
.identity-panel h2 { font-size: 27px; font-weight: 400; margin: 0 0 8px; }
.identity-panel p { color: #44576b; font-size: 16px; margin: 0 0 15px; }
.identity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.identity-grid > div { min-width: 0; border-top: 1px solid #c6d3e3; padding-top: 11px; }
.identity-grid dt { color: #657b90; font-size: 13px; margin-bottom: 6px; }
.identity-grid dd { margin: 0; color: #1c344e; font-size: 16px; overflow-wrap: anywhere; }
.detail-bottom-cta { background: #fff; border: 1px solid var(--games-line); border-radius: 18px; padding: 30px; margin-top: 34px; display: flex; gap: 22px; justify-content: space-between; align-items: center; }
.detail-bottom-cta h2 { font-size: 27px; font-weight: 400; margin: 0 0 4px; }
.detail-bottom-cta p { font-size: 16px; color: #647488; margin: 0; }
.return-games { display: inline-block; margin-top: 32px; color: var(--games-accent) !important; text-decoration: none; font-size: 17px; }
.return-games:hover { text-decoration: underline; }
.site-footer { background: #050505; color: #fff; padding: 52px 0 25px; margin-top: 15px; }
.site-footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; padding-bottom: 53px; }
.site-footer-brand img { display: block; width: 196px; }
.site-footer-nav { display: flex; gap: 80px; }
.site-footer-col { display: flex; flex-direction: column; gap: 13px; }
.site-footer-col strong { color: #9fa8b0; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.site-footer-col a { color: #e5e5e5 !important; text-decoration: none; font-size: 15px; }
.site-footer-col a:hover { color: #fff !important; text-decoration: underline; }
.site-footer-bottom { border-top: 1px solid #404448; padding-top: 18px; color: #b2bac2; font-size: 14px; text-align: center; }
.screenshot-dialog { border: none; padding: 15px; background: #111921; color: #fff; border-radius: 17px; width: min(94vw, 1140px); max-height: 94vh; box-shadow: 0 18px 70px rgba(0,0,0,.4); }
.screenshot-dialog::backdrop { background: rgba(6,11,17,.87); }
.screenshot-dialog img { display: block; max-width: 100%; max-height: calc(94vh - 98px); margin: auto; object-fit: contain; border-radius: 5px; }
.screenshot-dialog p { padding: 7px 8px 0; margin: 0; text-align: center; color: #dae3ed; }
.screenshot-dialog .dialog-close { position: absolute; right: 13px; top: 13px; cursor: pointer; z-index: 2; border: 0; border-radius: 50%; background: #fff; color: #000; width: 39px; height: 39px; font-size: 24px; line-height: 1; }
/* Shared main page headers: keep Webflow-based content intact below the hero. */
.site-main-page .main { background-color: #fff; }
.site-main-page .main .header { background-attachment: scroll; }
.site-main-page .main .heading-2 { font-size: 32px; }
/* Keep the original Webflow footer links readable on the dark background. */
.site-main-page .footer-dark a.footer-link { color: #e5e5e5; }
.site-main-page .footer-dark a.footer-link:hover { color: #fff; text-decoration: underline; }
/* Homepage: light-touch additions within the existing Webflow layout. */
.games-home-promo { background: #f0f3f7; padding: 58px 22px 66px; text-align: center; font-family: 'Didact Gothic', sans-serif; }
.games-home-promo .games-home-inner { max-width: 1100px; margin: 0 auto; }
.games-home-promo h2 { font-family: inherit; font-weight: 400; font-size: 35px; margin: 0 0 10px; }
.games-home-promo p { font-size: 17px; color: #526174; margin: 0 auto 28px; max-width: 620px; }
.games-home-list { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 25px; }
.games-home-list a { color: #18212c; text-decoration: none; background: #fff; border: 1px solid #dde4eb; border-radius: 12px; display: flex; align-items: center; gap: 12px; width: 280px; min-height: 86px; padding: 12px; text-align: left; transition: transform .2s, box-shadow .2s; }
.games-home-list a:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(25,45,70,.11); }
.games-home-list img { width: 55px; height: 55px; border-radius: 12px; flex-shrink: 0; object-fit: cover; }
.games-home-list span { font-size: 16px; line-height: 1.3; }
.games-home-link { display: inline-block; background: #155bca; color: #fff !important; text-decoration: none; font-size: 17px; border-radius: 8px; padding: 11px 24px; }
.games-home-link:hover { background: #0f499f; }
@media (max-width: 970px) {
  .game-card { grid-template-columns: 1fr; }
  .game-card .game-card-media, .game-card:nth-child(even) .game-card-media { order: 0; }
  .game-card .game-card-copy, .game-card:nth-child(even) .game-card-copy { order: 1; }
  .game-card-media { padding: 16px; }
  .game-card-copy { padding: 30px; }
  .detail-hero-grid { grid-template-columns: 1fr; }
  .detail-cover { order: -1; }
  .detail-identity { margin-bottom: 15px; }
}
@media (max-width: 720px) {
  .site-container { width: min(100% - 32px, 1152px); }
  .site-nav { min-height: 94px; gap: 6px 16px; padding: 13px 0; flex-wrap: wrap; }
  .site-brand { width: 160px; }
  .site-nav-links { gap: 10px 18px; }
  .site-nav-links a { font-size: 16px; }
  .games-hero { padding: 52px 0 54px; }
  .games-main { padding-top: 28px; padding-bottom: 64px; }
  .games-list { gap: 22px; }
  .game-card-heading { gap: 13px; margin-bottom: 15px; }
  .game-icon { width: 66px; border-radius: 13px; }
  .game-card-copy { padding: 23px; }
  .game-card-description { font-size: 16px; }
  .store-actions .store-link { width: 143px; height: 45px; }
  .store-link img { max-width: 143px; max-height: 45px; }
  .store-actions .more-link { min-height: 45px; }
  .detail-hero { padding-bottom: 42px; }
  .detail-section { padding-top: 47px; }
  .game-gallery { grid-template-columns: 1fr; }
  .gallery-carousel.is-enhanced { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 6px; }
  .gallery-carousel.is-enhanced .gallery-slide { flex-basis: 100%; }
  .gallery-control { width: 34px; height: 43px; border-radius: 9px; font-size: 31px; }
  .detail-prose h3 { font-size: 21px; }
  .detail-hero .detail-intro { font-size: 17px; }
  .detail-prose { font-size: 17px; line-height: 1.72; }
  .identity-grid { grid-template-columns: 1fr; }
  .detail-bottom-cta { flex-direction: column; align-items: flex-start; padding: 23px; }
  .site-footer-top { flex-direction: column; }
  .site-footer-nav { gap: 40px; flex-wrap: wrap; }
  .site-footer-brand img { width: 180px; }
}
@media (max-width: 410px) {
  .game-card h2 { font-size: 24px; }
  .game-card-heading { align-items: flex-start; }
  .site-nav { justify-content: center; }
  .site-nav-links { justify-content: center; }
  .store-actions { gap: 8px; }
  .store-actions .store-link { width: calc(50% - 4px); max-width: 145px; }
  .store-actions .more-link { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
