/* ==========================================================================
   GameBuddy prototype - STORE module styles (owner: store)
   Prefixes: st- (catalog, shared helpers) and gm- (game page, second half of this file).
   Tokens only (var(--...)); platform components (pd-*) are composed, never restyled.
   ========================================================================== */

/* ---------- shared bits ---------- */
.st-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); flex: none; }
.st-mark { background: var(--accent-soft-2); color: inherit; border-radius: 3px; padding: 0 1px; box-shadow: 0 0 0 1px var(--accent-soft-2); }

/* ---------- page head with the in-page search ---------- */
.st-head .pd-page-head__side { flex: 1 1 280px; justify-content: flex-end; }
.st-search { width: min(100%, 340px); }

/* ==========================================================================
   Hero: featured banner + thumbnails
   ========================================================================== */
.st-hero { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 16px; }
.st-hero__stage { position: relative; min-height: 400px; overflow: hidden; isolation: isolate; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--bg-surface); }
.st-slide {
  position: absolute; inset: 0; display: flex; align-items: stretch; opacity: 0; visibility: hidden;
  transition: opacity var(--dur-3) var(--ease), visibility 0s linear var(--dur-3);
}
.st-slide.is-active { opacity: 1; visibility: visible; transition: opacity var(--dur-3) var(--ease), visibility 0s; }
.st-slide__art {
  position: absolute; top: 0; right: 0; bottom: 0; width: 62%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, black 62%); mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, black 62%);
}
.st-slide__art svg { width: 100%; height: 100%; }
.st-slide__body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; width: min(100%, 540px); padding: 36px 40px; }
.st-slide__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-slide__title { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; }
.st-slide__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--fs-md); color: var(--text-3); }
.st-slide__plays { display: inline-flex; align-items: center; gap: 5px; }
.st-slide__lead { max-width: 46ch; font-size: var(--fs-lg); line-height: 1.45; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st-slide__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.st-hero__pause { position: absolute; top: 12px; right: 12px; z-index: 3; }

.st-thumbs { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-thumbs > li { flex: 1 1 0; min-height: 0; display: flex; }
.st-thumb {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--r-inner); border: 1px solid transparent; text-align: left; color: var(--text-2);
  transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1);
}
.st-thumb:hover { background: var(--bg-hover); color: var(--text); }
.st-thumb:active { background: var(--bg-active); }
.st-thumb.is-active { background: var(--bg-raised); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-sm); }
.st-thumb__cover { flex: none; width: 52px; border-radius: 10px; overflow: hidden; }
.st-thumb__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-thumb__title { font-size: var(--fs-base); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-thumb__sub { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-thumb.is-ad .st-thumb__sub { color: var(--amber-text); }
.st-thumb__bar { position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--bg-track); opacity: 0; transition: opacity var(--dur-2); }
.st-thumb.is-active .st-thumb__bar { opacity: 1; }
.st-hero:not(.is-rotating) .st-thumb__bar { display: none; }
.st-thumb__fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left center; transform: scaleX(var(--st-p, 0)); transition: transform var(--dur-1) linear; }
.st-hero.is-paused .st-thumb__fill { background: var(--text-4); }

/* ==========================================================================
   Rows with arrow buttons
   ========================================================================== */
.st-row { margin-top: 40px; min-width: 0; }
.st-row__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.st-row__titles { min-width: 0; }
.st-row__title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-title); font-weight: 600; letter-spacing: -.01em; }
.st-row__sub { margin-top: 3px; font-size: var(--fs-md); color: var(--text-3); }
.st-row__ctrl { display: flex; align-items: center; gap: 6px; flex: none; }
.st-row__arrows { display: flex; gap: 4px; }
.st-row:not(.has-overflow) .st-row__arrows { display: none; }
.st-scroller { margin: 0 -6px; padding: 6px 6px 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 6px; scrollbar-width: none; }
.st-scroller::-webkit-scrollbar { display: none; }
.st-track { display: flex; gap: 16px; }
.st-track__item { flex: 0 0 var(--st-card-w, 248px); min-width: 0; scroll-snap-align: start; display: flex; }
.st-track__item > * { flex: 1; min-width: 0; }

/* quick actions on a catalog card */
.st-qa { display: flex; align-items: center; gap: 6px; width: 100%; }
.st-qa__play { flex: 1; min-width: 0; }
.st-qa--inline { width: auto; }
.st-qa--inline .st-qa__play { flex: none; }
.st-heart.is-on { color: var(--red-text); }
.st-heart.is-on:hover { color: var(--red-text); }

/* "Continue playing" card */
.st-resume {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-card);
  transition: border-color var(--dur-2), transform var(--dur-2) var(--ease), box-shadow var(--dur-2);
}
.st-resume:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.st-resume:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.st-resume__media { position: relative; }
.st-resume__cover { border-radius: 0; }
.st-resume__play {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow-md); transition: transform var(--dur-2) var(--ease);
}
.st-resume:hover .st-resume__play { transform: scale(1.08); }
.st-resume__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.st-resume__link { min-width: 0; color: var(--text); font-size: var(--fs-base); font-weight: 600; }
.st-resume__link:hover { text-decoration: none; }
.st-resume__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.st-resume__link:focus-visible { outline: none; }
.st-resume__title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-resume__meta { font-size: var(--fs-sm); color: var(--text-3); }
.st-resume__prog { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.st-resume__stat { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-xs); color: var(--text-3); }
.st-resume__actions { position: relative; z-index: 2; display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }

/* "Your game here" card at the end of the sponsored row */
.st-promo { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; min-width: 0; padding: 20px; border: 1px dashed var(--border-strong); border-radius: var(--r-card); background: var(--bg-sunken); }
.st-promo__title { font-size: var(--fs-lg); font-weight: 600; }
.st-promo__text { font-size: var(--fs-md); color: var(--text-3); line-height: 1.5; }

/* "About sponsored games" popover */
.st-why { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; font-size: var(--fs-md); color: var(--text-2); line-height: 1.5; }
.st-why__title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }

/* ==========================================================================
   Filter bar + catalog grid
   ========================================================================== */
.st-all { margin-top: 44px; scroll-margin-top: 12px; }
.st-results .st-all { margin-top: -12px; }
.st-all__title { display: inline-flex; align-items: center; gap: 10px; }
.st-tabs { min-width: 0; max-width: 100%; }
.st-facets { display: flex; flex-direction: column; gap: 12px; padding: 16px 0 2px; }
.st-facet { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-facet__label { flex: none; width: 80px; font-size: var(--fs-sm); font-weight: 500; color: var(--text-3); }
.st-facet__chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.st-facet-line { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.st-facet-line .st-facet__label { width: auto; }
.st-fchip {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 30px; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid var(--border); background: var(--bg-raised);
  color: var(--text-2); font-size: var(--fs-md); font-weight: 500; white-space: nowrap; transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1);
}
.st-fchip svg { color: var(--text-3); transition: color var(--dur-1); }
.st-fchip:hover { background: var(--bg-hover); border-color: var(--border-strong); color: var(--text); }
.st-fchip:active { background: var(--bg-active); }
.st-fchip[aria-pressed="true"] { background: var(--accent-soft-2); border-color: var(--accent-ring); color: var(--accent-text); }
.st-fchip[aria-pressed="true"] svg { color: var(--accent-text); }
.st-gridhost { margin-top: 18px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); gap: 16px; }
.st-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.st-more { margin-top: 20px; }
.st-suggest { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.st-suggest__label { font-size: var(--fs-md); color: var(--text-3); }

/* skeleton shown for a moment on the first render */
.st-skel { display: flex; flex-direction: column; gap: 36px; }
.st-skel__hero { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 16px; }
.st-skel__thumbs { display: flex; flex-direction: column; gap: 6px; }
.st-skel__row { display: flex; flex-direction: column; gap: 16px; }
.st-skel__cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.st-skel__cards--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); }

/* ==========================================================================
   Responsive (store)
   ========================================================================== */
@media (max-width: 1099px) {
  .st-hero { grid-template-columns: minmax(0, 1fr); }
  .st-hero__stage { min-height: 360px; }
  .st-thumbs { flex-direction: row; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: none; }
  .st-thumbs > li { flex: 0 0 232px; scroll-snap-align: start; }
  .st-track__item { flex-basis: var(--st-card-w, 228px); }
  .st-skel__hero { grid-template-columns: minmax(0, 1fr); }
  .st-skel__thumbs { display: none; }
  .st-skel__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .st-head .pd-page-head__side { flex-basis: 100%; justify-content: stretch; }
  .st-search { width: 100%; }
}
@media (max-width: 719px) {
  .st-hero__stage { min-height: 490px; }
  .st-slide { flex-direction: column; justify-content: flex-end; }
  .st-slide__art { inset: 0 0 auto 0; width: 100%; height: 52%; -webkit-mask-image: linear-gradient(180deg, black 38%, transparent 100%); mask-image: linear-gradient(180deg, black 38%, transparent 100%); }
  .st-slide__body { width: 100%; margin-top: auto; padding: 20px 18px; gap: 12px; }
  .st-slide__title { font-size: 28px; }
  .st-slide__lead { font-size: var(--fs-base); -webkit-line-clamp: 2; }
  .st-row { margin-top: 32px; }
  .st-row__arrows { display: none !important; }
  .st-scroller { margin: 0 calc(var(--page-pad) * -1); padding: 6px var(--page-pad) 16px; scroll-padding-inline: var(--page-pad); }
  .st-track { gap: 12px; }
  .st-track__item { flex-basis: var(--st-card-w-m, min(72vw, 260px)); }
  .st-facet { flex-direction: column; align-items: flex-start; gap: 6px; }
  .st-facet__label { width: auto; }
  .st-facet__chips { align-self: stretch; flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--page-pad) * -1); padding: 0 var(--page-pad) 2px; scrollbar-width: none; }
  .st-facet__chips::-webkit-scrollbar { display: none; }
  .st-facet-line { flex-direction: column; flex-wrap: nowrap; gap: 12px; }
  .st-skel__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-skel__cards > :nth-child(n+5) { display: none; }
}

/* ==========================================================================
   GAME PAGE (gm-)
   ========================================================================== */
.gm-content { position: relative; }
.gm-notice { margin-bottom: 16px; }

/* ---------- sticky action bar (appears when the header scrolls away) ---------- */
.gm-sticky { position: sticky; top: 0; z-index: var(--z-sticky); height: 0; }
.gm-sticky__bar {
  position: absolute; top: 6px; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px 8px 12px;
  background: var(--bg-popover); border: 1px solid var(--border-strong); border-radius: var(--r-card); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s linear var(--dur-2);
}
.gm-sticky.is-visible .gm-sticky__bar { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s; }
.gm-sticky__game { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gm-sticky__cover { flex: none; width: 40px; border-radius: 10px; overflow: hidden; }
.gm-sticky__text { min-width: 0; }
.gm-sticky__title { font-size: var(--fs-base); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-sticky__sub { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-3); white-space: nowrap; }
.gm-sticky__actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* ---------- header ---------- */
.gm-head { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-surface); }
.gm-head__banner { height: 220px; -webkit-mask-image: linear-gradient(180deg, black 60%, transparent 100%); mask-image: linear-gradient(180deg, black 60%, transparent 100%); }
.gm-head__banner svg { width: 100%; height: 100%; }
.gm-head__body {
  position: relative; display: grid; grid-template-columns: 156px minmax(0, 1fr) 288px; grid-template-areas: "icon info rate" "more more rate"; column-gap: 28px; padding: 0 28px 26px;
}
.gm-head__icon { grid-area: icon; align-self: start; width: 156px; margin-top: -80px; overflow: hidden; border-radius: 24px; border: 4px solid var(--bg-surface); background: var(--bg-surface); box-shadow: var(--shadow-lg); }
.gm-head__icon .pd-cover { border-radius: 0; }
.gm-head__info { grid-area: info; min-width: 0; padding-top: 16px; }
.gm-head__more { grid-area: more; min-width: 0; padding-top: 14px; }
.gm-head__rate { grid-area: rate; min-width: 0; padding-top: 16px; }
.gm-head__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.gm-head__title { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.gm-head__by { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--fs-base); color: var(--text-3); }
.gm-dev { color: var(--text-2); font-weight: 500; }
.gm-dev:hover { color: var(--text); }
.gm-verified { display: inline-flex; color: var(--accent-text); }
.gm-head__tagline { max-width: 62ch; font-size: var(--fs-lg); line-height: 1.45; color: var(--text-2); }
.gm-head__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gm-taglink { transition: filter var(--dur-1); }
.gm-taglink:hover { text-decoration: none; filter: brightness(1.15); }
.gm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.gm-lib.is-on { color: var(--green-text); }

/* rating panel with the clickable histogram */
.gm-rate { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--bg-canvas); }
.gm-rate--empty { align-items: flex-start; color: var(--text-3); }
.gm-rate__top { display: flex; align-items: center; gap: 14px; }
.gm-rate__value { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.gm-rate__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gm-rate__count { font-size: var(--fs-sm); color: var(--text-3); }
.gm-bars { display: flex; flex-direction: column; gap: 2px; }
.gm-bar { display: grid; grid-template-columns: 28px minmax(0, 1fr) 40px; align-items: center; gap: 8px; width: 100%; height: 24px; padding: 0 6px; border-radius: 6px; font-size: var(--fs-xs); color: var(--text-3); transition: background var(--dur-1), color var(--dur-1); }
.gm-bar:hover { background: var(--bg-hover); color: var(--text); }
.gm-bar[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }
.gm-bar__label { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: var(--text-2); }
.gm-bar__label svg { color: var(--amber-solid); }
.gm-bar__pct { text-align: right; }

/* facts strip */
.gm-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--border); background: var(--bg-sunken); }
.gm-fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 5px; min-width: 0; padding: 14px 18px; border-right: 1px solid var(--border-subtle); }
.gm-fact:last-child { border-right: 0; }
.gm-fact dt { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-xs); font-weight: 500; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.gm-fact dt svg { margin-top: 1px; }
.gm-fact dd { font-size: var(--fs-base); font-weight: 600; color: var(--text); overflow-wrap: anywhere; }

/* ---------- body ---------- */
.gm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px 32px; align-items: start; margin-top: 28px; }
.gm-main { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.gm-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gm-section { min-width: 0; }
.gm-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gm-section__title { display: flex; align-items: center; gap: 10px; font-size: var(--fs-title); font-weight: 600; letter-spacing: -.01em; }
.gm-about > .gm-section__title { margin-bottom: 12px; }
.gm-shots.st-row { margin-top: 0; }

/* screenshots */
.gm-shot { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; border-radius: var(--r-inner); }
.gm-shot__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-inner); border: 1px solid var(--border); transition: transform var(--dur-2) var(--ease), border-color var(--dur-2), box-shadow var(--dur-2); }
.gm-shot__img svg { width: 100%; height: 100%; }
.gm-shot:hover .gm-shot__img { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.gm-shot__cap { font-size: var(--fs-sm); color: var(--text-3); }
.gm-lb { display: flex; flex-direction: column; gap: 12px; }
.gm-lb__main { position: relative; display: flex; align-items: center; justify-content: center; }
.gm-lb__stage { width: min(100%, calc((100dvh - 340px) * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--bg-sunken); }
.gm-lb__stage svg { width: 100%; height: 100%; }
.gm-lb__nav { position: absolute; top: 50%; z-index: 2; margin-top: -20px; }
.gm-lb__nav:first-child { left: 10px; }
.gm-lb__nav:last-child { right: 10px; }
.gm-lb__cap { text-align: center; font-size: var(--fs-md); color: var(--text-3); }
.gm-lb__thumbs { display: flex; justify-content: center; gap: 8px; padding: 4px; overflow-x: auto; }
.gm-lb__thumb { flex: none; width: 96px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; border: 2px solid transparent; opacity: .72; transition: opacity var(--dur-1), border-color var(--dur-1); }
.gm-lb__thumb svg { width: 100%; height: 100%; }
.gm-lb__thumb:hover { opacity: 1; }
.gm-lb__thumb.is-active { opacity: 1; border-color: var(--accent); }

/* about */
.gm-about__text { max-width: 72ch; font-size: var(--fs-nav); line-height: 1.6; color: var(--text-2); }
.gm-about__more { margin-top: 16px; }
.gm-about__sub { margin-bottom: 10px; font-size: var(--fs-base); font-weight: 600; }
.gm-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.gm-highlights li { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-md); color: var(--text-2); }
.gm-highlights svg { flex: none; margin-top: 3px; color: var(--green-text); }
.gm-about__toggle { margin: 8px 0 0 -10px; }

/* safety and ads */
.gm-safety__list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.gm-safety__list li { display: flex; align-items: flex-start; gap: 10px; }
.gm-safety__list li > svg { flex: none; margin-top: 2px; color: var(--blue-text); }
.gm-safety__list strong { color: var(--text); }
.gm-safety__formats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gm-safety__note { margin-top: 6px; font-size: var(--fs-sm); color: var(--text-3); }

/* reviews */
.gm-revfilter { margin-bottom: 12px; }
.gm-revfilter__row { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); }
.gm-formhost { margin-bottom: 8px; }
.gm-form { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--bg-raised); }
.gm-form--done { flex-direction: row; align-items: center; gap: 12px; color: var(--green-text); border-color: var(--green-border); background: var(--green-bg); }
.gm-form--done .pd-strong { color: var(--text); }
.gm-form--note { flex-direction: row; align-items: center; gap: 12px; color: var(--text-3); }
.gm-form--note .pd-strong { color: var(--text); }
.gm-form__title { font-size: var(--fs-base); font-weight: 600; }
.gm-form__as { margin-top: -8px; font-size: var(--fs-sm); color: var(--text-3); }
.gm-form__row { display: flex; align-items: center; gap: 12px; }
.gm-form__row--col { flex-direction: column; align-items: stretch; gap: 6px; }
.gm-form__label { font-size: var(--fs-md); font-weight: 500; color: var(--text-2); }
.gm-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); }
.gm-revs { display: flex; flex-direction: column; }
.gm-rev { padding: 18px 0; border-top: 1px solid var(--border-subtle); }
.gm-rev__head { display: flex; align-items: center; gap: 12px; }
.gm-rev__who { min-width: 0; }
.gm-rev__name { display: flex; align-items: center; gap: 8px; font-size: var(--fs-base); font-weight: 600; }
.gm-rev__sub { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: var(--fs-sm); color: var(--text-3); }
.gm-rev__text { margin-top: 10px; font-size: var(--fs-base); line-height: 1.6; color: var(--text-2); }
.gm-rev__reply { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--border-subtle); border-radius: var(--r-inner); background: var(--bg-sunken); font-size: var(--fs-md); color: var(--text-2); }
.gm-rev__replyhead { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-weight: 600; color: var(--text); }
.gm-rev__foot { margin: 8px 0 0 -10px; }
.gm-helpful.is-on { color: var(--accent-text); }

/* aside cards */
.gm-aside__card { padding: 18px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-surface); }
.gm-aside__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.gm-aside__title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-nav); font-weight: 600; letter-spacing: -.01em; }
.gm-aside__card > .gm-aside__title { margin-bottom: 12px; }
.gm-aside__title svg { color: var(--text-3); }
.gm-try__note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: var(--fs-sm); line-height: 1.45; color: var(--text-3); }
.gm-try__note svg { flex: none; margin-top: 1px; color: var(--green-text); }
.gm-devcard { display: flex; align-items: center; gap: 12px; }
.gm-devcard__text { min-width: 0; }
.gm-devcard__name { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.gm-devcard__name svg { color: var(--accent-text); }
.gm-devcard__sub { font-size: var(--fs-sm); color: var(--text-3); }
.gm-devcard__bio { margin: 12px 0 14px; font-size: var(--fs-md); line-height: 1.5; color: var(--text-2); }
.gm-controls { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.gm-controls__item { display: inline-flex; align-items: center; gap: 5px; }
.gm-rows { margin-top: 8px; }
.gm-report { display: flex; flex-direction: column; gap: 16px; }

/* skeleton */
.gm-skel { display: flex; flex-direction: column; gap: 24px; }
.gm-skel__row { display: flex; align-items: flex-start; gap: 24px; }
.gm-skel__lines { display: flex; flex: 1; flex-direction: column; gap: 12px; }
.gm-skel__cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }

/* ---------- responsive (game page) ---------- */
@media (max-width: 1099px) {
  .gm-head__body { grid-template-columns: 132px minmax(0, 1fr); grid-template-areas: "icon info" "more more" "rate rate"; column-gap: 20px; }
  .gm-head__icon { width: 132px; margin-top: -66px; border-radius: 20px; }
  .gm-head__rate { padding-top: 18px; }
  .gm-rate { max-width: 440px; }
  .gm-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gm-fact:nth-child(3n) { border-right: 0; }
  .gm-fact:nth-child(n+4) { border-top: 1px solid var(--border-subtle); }
  .gm-layout { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
  .gm-main, .gm-aside { display: contents; }
  .gm-shots { order: 1; }
  .gm-about { order: 2; }
  .gm-try { order: 3; }
  .gm-safety { order: 4; }
  .gm-reviews { order: 5; }
  .gm-devc { order: 6; }
  .gm-det { order: 7; }
  .gm-skel__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .gm-head__banner { height: 150px; }
  .gm-head__body { grid-template-columns: 92px minmax(0, 1fr); column-gap: 14px; padding: 0 16px 18px; }
  .gm-head__icon { width: 92px; margin-top: -46px; border-radius: 16px; border-width: 3px; }
  .gm-head__info { padding-top: 12px; }
  .gm-head__title { font-size: 24px; }
  .gm-head__tagline { font-size: var(--fs-base); }
  .gm-actions .gm-play { flex: 1 1 100%; }
  .gm-rate { max-width: none; }
  .gm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-fact { padding: 12px 14px; }
  .gm-fact:nth-child(3n) { border-right: 1px solid var(--border-subtle); }
  .gm-fact:nth-child(2n) { border-right: 0; }
  .gm-fact:nth-child(n+3) { border-top: 1px solid var(--border-subtle); }
  .gm-highlights { grid-template-columns: minmax(0, 1fr); }
  .gm-sticky__sub { display: none; }
  .gm-sticky__bar { gap: 8px; padding: 6px 8px; }
  .gm-sticky__actions .gm-lib .pd-btn__label { display: none; }
  .gm-sticky__actions .gm-lib { width: var(--control-h); padding: 0; }
  .gm-lb__thumb { width: 72px; }
  .gm-lb__nav { margin-top: -20px; }
  .gm-form__foot { flex-direction: column; align-items: stretch; }
}
