/* Game catalogue and reusable tag-backed game pages. */
body.games-page {
    --gp-surface: #151a25;
    --gp-soft: #1d2433;
    --gp-ink: #f3f5fb;
    --gp-muted: #a6afc3;
    --gp-line: rgba(255,255,255,.095);
    --gp-accent: #b4ff47;
    --gp-accent-ink: #11220b;
    --gp-purple: #ae98ff;
    --gp-accent-soft: rgba(180,255,71,.10);
    --gp-shadow: 0 15px 35px rgba(0,0,0,.10);
}
body.games-page.light-theme {
    --gp-surface: #fff;
    --gp-soft: #f2efff;
    --gp-ink: #191b29;
    --gp-muted: #737b91;
    --gp-line: #e9e9f2;
    --gp-accent: #7047ff;
    --gp-accent-ink: #fff;
    --gp-purple: #7047ff;
    --gp-accent-soft: #f0ebff;
    --gp-shadow: 0 15px 35px rgba(47,33,91,.045);
    background: #f5f5fb;
}
.games-shell { width: min(1360px,calc(100% - 48px)); min-width: 0; margin: 20px auto 80px; color: var(--gp-ink); }
.games-shell *, .games-shell *::before, .games-shell *::after { box-sizing: border-box; }
.games-shell a { text-decoration: none; }
.games-shell a:focus-visible, .games-shell button:focus-visible, .games-shell input:focus-visible { outline: 3px solid var(--gp-purple); outline-offset: 4px; }
.games-shell h1, .games-shell h2, .games-shell h3 { color: var(--gp-ink); overflow-wrap: anywhere; }
.games-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 23px; font-size: 12px; line-height: 1.7; color: var(--gp-muted); }
.games-breadcrumbs a { color: var(--gp-muted); }
.games-breadcrumbs [aria-current] { color: var(--gp-ink); }
.games-breadcrumbs > span:not([aria-current]) { opacity: .5; }
.games-kicker { display: flex; gap: 9px; align-items: center; color: var(--gp-purple); font-size: 11px; letter-spacing: .09em; font-weight: 800; text-transform: uppercase; }
.games-kicker > span { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #f53589; }
.games-button { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 45px; padding: 11px 20px; border: 0; border-radius: 11px; background: var(--gp-accent); color: var(--gp-accent-ink); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; text-align: center; }
.games-button > span { font-size: 18px; line-height: 1; }
.games-button-bright { background: #baff52; color: #17210e; }
.games-text-link { display: inline-flex; gap: 17px; align-items: center; color: var(--gp-purple); font-size: 13px; font-weight: 750; }
.games-preview { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; padding: 17px 22px; background: var(--gp-accent-soft); border: 1px solid var(--gp-line); border-radius: 16px; }
.games-preview strong { font-size: 14px; }
.games-preview p { margin: 4px 0 0; font-size: 12px; color: var(--gp-muted); }
.games-preview > a { color: var(--gp-purple); font-size: 12px; font-weight: 750; white-space: nowrap; }
.games-media { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(125deg,#29283f,#5b2460 55%,#243b52); }
.games-media-image { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.games-media-image.is-missing { display: none; }
.games-image-placeholder { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; color: #c3b5e8; background: radial-gradient(ellipse at 85% 15%,rgba(239,75,166,.25),transparent 60%); }
.games-image-placeholder svg { width: 76px; height: 64px; opacity: .65; }
.game-hero { min-height: 440px; display: flex; align-items: flex-end; border-radius: 25px; padding: 49px; color: #fff; }
.game-hero::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg,rgba(10,10,22,.83),rgba(10,10,22,.27) 78%),linear-gradient(0deg,rgba(10,10,22,.8),transparent 78%); pointer-events: none; }
.game-hero-art { position: absolute; inset: 0; }
.game-hero-monogram { position: absolute; top: -116px; right: 5%; color: rgba(255,255,255,.08); font-size: 470px; line-height: 1.1; letter-spacing: -.12em; font-weight: 900; }
.game-hero-content { position: relative; z-index: 3; min-width: 0; max-width: 950px; }
.game-hero-kicker { display: inline-flex; gap: 8px; align-items: center; color: #dad4e9; font-size: 10px; letter-spacing: .14em; font-weight: 750; text-transform: uppercase; }
.game-hero-kicker > span { width: 6px; height: 6px; border-radius: 50%; background: #ff4e9f; box-shadow: 0 0 14px rgba(255,78,159,.6); }
.games-shell .game-hero h1 { max-width: 960px; margin: 15px 0 22px; color: #fff; font-size: clamp(32px,4.6vw,66px); line-height: 1.1; letter-spacing: -.045em; font-weight: 850; text-wrap: balance; }
.game-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.game-hero-meta > span { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 10px; border-radius: 7px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: #edeaf6; font-size: 10px; font-weight: 650; }
.game-hero-meta > .game-release-pill { background: rgba(214,194,255,.15); color: #f2e7ff; }
.game-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; margin-top: 29px; }
.game-official { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; color: #fff; font-size: 12px; font-weight: 750; }
.game-official > span { color: #e6d8ff; font-size: 21px; }
.game-dossier { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(350px,1fr); gap: 20px; margin-top: 23px; align-items: start; }
.games-panel { background: var(--gp-surface); border: 1px solid var(--gp-line); border-radius: 21px; padding: 28px; box-shadow: var(--gp-shadow); min-width: 0; }
.games-panel h2 { margin: 8px 0 18px; font-size: 25px; letter-spacing: -.035em; line-height: 1.25; font-weight: 800; }
.game-description { color: var(--gp-muted); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.game-description p { margin: 0 0 15px; }
.game-description p:last-child { margin-bottom: 0; }
.game-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 25px 0 0; padding-top: 20px; border-top: 1px solid var(--gp-line); }
.game-facts dt { color: var(--gp-muted); font-size: 10px; margin-bottom: 5px; }
.game-facts dd { margin: 0; font-size: 12px; color: var(--gp-ink); font-weight: 750; overflow-wrap: anywhere; }
.game-ratings-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 16px; }
.game-ratings-heading h2 { margin: 0; font-size: 21px; }
.game-ratings-heading > span { color: #e94596; font-size: 24px; line-height: 1; }
.game-score-list { display: grid; gap: 1px; border: 1px solid var(--gp-line); border-radius: 14px; overflow: hidden; background: var(--gp-line); }
.game-score { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-width: 0; padding: 16px; min-height: 67px; background: var(--gp-surface); }
.game-score-label { display: block; color: var(--gp-ink); font-size: 12px; font-weight: 750; }
.game-score > div > small { display: block; margin-top: 4px; font-size: 9px; color: var(--gp-muted); }
.game-score-own { background: var(--gp-accent-soft); min-height: 83px; }
.game-score-own .game-score-label { color: var(--gp-purple); }
.game-score strong { color: var(--gp-ink); font-size: 29px; line-height: 1.2; font-weight: 850; white-space: nowrap; }
.game-score-own > strong { color: var(--gp-purple); font-size: 38px; }
.game-score strong > small { display: inline; margin-left: 3px; color: var(--gp-muted); font-size: 11px; font-weight: 550; }
.game-score > a { display: inline-flex; align-items: center; gap: 14px; color: var(--gp-purple); }
.game-score > a > span { font-size: 20px; }
.game-score-empty { color: var(--gp-muted); font-size: 11px; text-align: right; }
.game-scores-checked { margin: 14px 0 0; color: var(--gp-muted); font-size: 10px; }
.game-scores-checked time { margin-left: 4px; color: var(--gp-ink); }
.game-score-note { color: var(--gp-muted); font-size: 10px; line-height: 1.7; margin: 14px 0 0; }
.game-news-section { padding-top: 44px; scroll-margin-top: 110px; }
.games-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 22px; }
.games-section-heading h2 { margin: 4px 0 0; font-size: 30px; line-height: 1.2; letter-spacing: -.04em; font-weight: 850; }
.games-section-heading p { margin: 10px 0 0; color: var(--gp-muted); font-size: 13px; }
.games-count { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 34px; padding: 4px 10px; border: 1px solid var(--gp-line); border-radius: 10px; background: var(--gp-surface); color: var(--gp-purple); font-size: 13px; font-weight: 800; }
.game-news-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.game-news-filters a { display: inline-flex; min-height: 37px; align-items: center; justify-content: center; padding: 7px 17px; border: 1px solid var(--gp-line); border-radius: 9px; background: var(--gp-surface); color: var(--gp-muted); font-size: 11px; font-weight: 750; }
.game-news-filters a[aria-current] { background: var(--gp-accent); color: var(--gp-accent-ink); border-color: transparent; }
.game-news-grid, .games-catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 21px; }
.game-news-card, .games-catalog-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--gp-line); border-radius: 18px; overflow: hidden; background: var(--gp-surface); box-shadow: var(--gp-shadow); }
.game-news-cover, .games-catalog-cover { display: block; aspect-ratio: 16/9; flex: 0 0 auto; }
.game-news-cover img, .games-catalog-cover img { transition: transform .25s ease; }
.game-short-label { position: absolute; left: 14px; bottom: 13px; z-index: 3; padding: 5px 9px; border-radius: 6px; color: #fff; background: #853bb0; font-size: 9px; font-weight: 750; }
.game-news-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.game-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 9px; color: var(--gp-muted); font-size: 10px; }
.game-news-meta > span { color: var(--gp-purple); font-weight: 750; }
.games-shell .game-news-body h3 { margin: 0; font-size: 18px; line-height: 1.42; letter-spacing: -.02em; font-weight: 800; }
.game-news-body h3 a, .games-catalog-card h3 a { color: inherit; }
.game-news-body > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--gp-muted); font-size: 12px; line-height: 1.8; margin: 11px 0 18px; overflow-wrap: anywhere; }
.game-news-read { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--gp-line); color: var(--gp-purple); font-size: 11px; font-weight: 750; }
.game-news-read > span { font-size: 18px; }
.games-catalog-hero { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(270px,1fr); gap: 25px; align-items: center; padding: 24px 0 42px; }
.games-shell .games-catalog-hero h1 { margin: 17px 0 15px; max-width: 680px; font-size: clamp(31px,4.2vw,55px); line-height: 1.12; font-weight: 850; letter-spacing: -.05em; text-wrap: balance; }
.games-catalog-hero p { max-width: 560px; margin: 0 0 24px; color: var(--gp-muted); font-size: 14px; line-height: 1.9; }
.games-catalog-art { position: relative; display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 240px; border: 1px solid var(--gp-line); border-radius: 22px; background: linear-gradient(135deg,var(--gp-surface),var(--gp-soft)); overflow: hidden; isolation: isolate; }
.games-catalog-art > span { position: absolute; right: 1%; bottom: -42%; font-size: 330px; line-height: 1; font-weight: 900; letter-spacing: -.14em; color: var(--gp-purple); opacity: .08; }
.games-catalog-art > svg { position: relative; width: 140px; height: 116px; transform: rotate(-13deg); color: var(--gp-purple); }
.games-catalog-art small { position: absolute; left: 24px; bottom: 20px; font-size: 8px; color: var(--gp-muted); letter-spacing: .14em; font-weight: 650; }
#game-catalog { padding-top: 26px; border-top: 1px solid var(--gp-line); scroll-margin-top: 110px; }
.games-search { margin-bottom: 24px; }
.games-search > label { display: block; font-size: 11px; font-weight: 750; color: var(--gp-muted); margin-bottom: 9px; }
.games-search > div { display: flex; align-items: center; gap: 13px; padding: 8px 9px 8px 17px; border: 1px solid var(--gp-line); border-radius: 14px; background: var(--gp-surface); }
.games-search svg { flex: 0 0 18px; color: var(--gp-muted); }
.games-search input[type=search] { display: block; width: 100%; min-width: 0; border: 0; background: transparent; color: var(--gp-ink); font: inherit; font-size: 13px; padding: 7px 0; }
.games-search input::placeholder { color: var(--gp-muted); }
.games-search button { flex-shrink: 0; }
.games-reset { display: inline-flex; margin: -7px 0 23px; color: var(--gp-purple); font-size: 12px; font-weight: 650; }
.games-cover-wordmark { position: absolute; left: 16px; bottom: 10px; z-index: 3; font-size: 33px; font-weight: 900; letter-spacing: -.12em; color: #fff; opacity: .85; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.games-cover-score { position: absolute; right: 13px; top: 13px; z-index: 3; padding: 6px 9px; border-radius: 8px; color: #fff; background: rgba(19,17,34,.84); font-size: 19px; line-height: 1.3; font-weight: 850; }
.games-cover-score > small { font-size: 9px; font-weight: 550; margin-left: 2px; color: #c2bed5; }
.games-catalog-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.games-shell .games-catalog-card h3 { margin: 0 0 12px; font-size: 21px; letter-spacing: -.025em; line-height: 1.3; font-weight: 800; }
.games-platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.games-platforms > span { padding: 4px 7px; border: 1px solid var(--gp-line); border-radius: 5px; color: var(--gp-purple); background: var(--gp-accent-soft); font-size: 8px; font-weight: 650; }
.games-catalog-card-body > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--gp-muted); font-size: 12px; line-height: 1.8; margin: 14px 0 20px; overflow-wrap: anywhere; }
.games-catalog-open { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: var(--gp-purple); margin-top: auto; padding-top: 15px; border-top: 1px solid var(--gp-line); font-size: 12px; font-weight: 750; }
.games-catalog-open > span { font-size: 20px; }
.games-empty { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; margin: 10px 0 0; padding: 55px 25px; border: 1px solid var(--gp-line); border-radius: 20px; background: var(--gp-surface); }
.games-empty-icon { display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; margin-bottom: 16px; border-radius: 20px; color: var(--gp-purple); background: var(--gp-accent-soft); }
.games-empty-icon > svg { width: 45px; height: 39px; }
.games-empty h1, .games-empty h3 { font-size: 23px; line-height: 1.35; margin: 0 0 10px; letter-spacing: -.03em; }
.games-empty p { color: var(--gp-muted); font-size: 13px; line-height: 1.9; margin: 0; max-width: 430px; }
.games-empty .games-button { margin-top: 22px; }
.games-not-found { padding-block: 80px; }
.games-not-found .games-kicker { margin-bottom: 9px; }
.games-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 25px; margin-top: 30px; }
.games-pagination > span { font-size: 11px; color: var(--gp-muted); }
.games-pagination strong { color: var(--gp-ink); margin-inline: 3px; }
.games-page-back { color: var(--gp-purple); font-size: 12px; font-weight: 700; }
@media (hover:hover) {
    .games-breadcrumbs a:hover, .games-text-link:hover, .game-news-body h3 a:hover, .games-catalog-card h3 a:hover { color: var(--gp-purple); }
    .games-catalog-card:hover .games-media-image, .game-news-card:hover .games-media-image { transform: scale(1.035); }
    .games-button:hover { filter: brightness(1.08); }
    .game-news-filters a:not([aria-current]):hover { background: var(--gp-accent-soft); color: var(--gp-purple); }
}
@media (max-width: 1000px) {
    .game-dossier { grid-template-columns: minmax(0,1.15fr) minmax(310px,1fr); }
    .games-panel { padding: 23px; }
    .game-hero { padding: 38px; min-height: 390px; }
    .game-news-grid, .games-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .games-shell { width: calc(100% - 32px); margin-top: 14px; margin-bottom: 55px; }
    .games-breadcrumbs { font-size: 10px; margin-bottom: 15px; gap: 8px; }
    .game-hero { min-height: 370px; padding: 28px; border-radius: 20px; }
    .game-hero::after { background: linear-gradient(0deg,rgba(10,10,22,.9),rgba(10,10,22,.28)); }
    .games-shell .game-hero h1 { font-size: 39px; }
    .game-dossier { grid-template-columns: minmax(0,1fr); gap: 16px; margin-top: 16px; }
    .game-ratings { padding: 23px; }
    .game-score-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .game-score-own { grid-column: 1/-1; }
    .game-score:not(.game-score-own) { align-items: flex-start; flex-direction: column; gap: 11px; }
    .game-score:not(.game-score-own) > a { width: 100%; justify-content: space-between; }
    .game-score-empty { text-align: left; }
    .game-news-section { padding-top: 32px; }
    .games-section-heading h2 { font-size: 25px; }
    .games-section-heading p { font-size: 12px; }
    .games-catalog-hero { grid-template-columns: minmax(0,1fr); gap: 18px; padding: 15px 0 31px; }
    .games-catalog-hero p { max-width: 100%; }
    .games-catalog-art { display: none; }
    .games-search > div { gap: 10px; padding-left: 13px; }
    .games-search button { padding-inline: 15px; gap: 12px; }
    .games-search input[type=search] { font-size: 12px; }
    .games-preview { align-items: flex-start; flex-direction: column; gap: 8px; padding: 15px; }
}
@media (max-width: 540px) {
    .games-shell { width: calc(100% - 28px); }
    .game-hero { min-height: 365px; padding: 25px 21px; }
    .games-shell .game-hero h1 { font-size: 32px; margin: 13px 0 18px; }
    .game-hero-meta { gap: 6px; }
    .game-hero-meta > span { padding: 4px 7px; font-size: 9px; min-height: 26px; }
    .game-hero-actions { gap: 8px 19px; margin-top: 21px; }
    .game-hero-actions .games-button { min-height: 43px; padding: 10px 15px; font-size: 11px; gap: 17px; }
    .game-official { font-size: 11px; gap: 10px; }
    .games-panel { padding: 22px; border-radius: 17px; }
    .games-panel h2 { font-size: 23px; }
    .game-description { font-size: 13px; }
    .game-facts { gap: 15px; }
    .game-facts dd { font-size: 11px; }
    .game-ratings-heading h2 { font-size: 20px; }
    .game-score { padding: 15px; }
    .game-score-label { font-size: 11px; }
    .game-score-own > strong { font-size: 35px; }
    .game-news-grid, .games-catalog-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .game-news-body { padding: 20px; }
    .game-news-body h3 { font-size: 19px; }
    .games-catalog-card-body { padding: 21px; }
    .games-shell .games-catalog-hero h1 { font-size: 36px; }
    .games-search button > span { display: none; }
    .games-search button { font-size: 11px; padding-inline: 12px; min-height: 40px; }
    .games-search svg { width: 17px; height: 17px; }
    .games-section-heading { gap: 14px; }
    .games-empty { padding: 37px 22px; }
    .games-empty h3 { font-size: 21px; }
    .games-not-found { padding-block: 55px; }
    .games-pagination { gap: 16px; }
    .games-pagination > span { width: 100%; text-align: center; order: -1; }
}
@media (prefers-reduced-motion: reduce) {
    .game-news-cover img, .games-catalog-cover img { transition: none; }
}
