/* Stránky her /hry a /hry/{slug} - základ z graphic-category.css (--gc-*), budget-build.css (bb-*), best-under.css (bu-*) */

.gm-hero .gc-lead { max-width: 640px; }

/* Kompaktní hero listingu: jeden řádek nadpisu, krátký perex, hned hledání */
.gc-hero.gm-hero-list { padding: 18px 0 24px; }
.gm-hero-list .gc-crumb { margin-bottom: 12px; }
.gc-hero.gm-hero-list h1 { font-size: 32px; margin-bottom: 6px; }
.gc-hero.gm-hero-list h1 em { display: inline; margin-left: 6px; }
.gm-hero-list .gc-lead { font-size: 15.5px; line-height: 1.5; margin-bottom: 14px !important; }
.gm-meta { margin: 10px 0 0 !important; font-size: 13px; color: var(--gc-muted); }
@media (max-width: 640px) {
    .gc-hero.gm-hero-list h1 { font-size: 26px; }
    .gc-hero.gm-hero-list h1 em { display: block; margin-left: 0; }
}

.gm-search-wrap { position: relative; max-width: 560px; }
.gm-search { position: relative; display: flex; align-items: center; max-width: 560px; margin-top: 0; }
/* Našeptávač - výsledky přímo pod polem, bez skákání po stránce */
.gm-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--gc-line); border-radius: 14px; box-shadow: 0 16px 36px rgba(28, 36, 41, .16); max-height: 380px; overflow-y: auto; padding: 6px; }
.gm-suggest[hidden] { display: none; }
.gm-suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--gc-ink); text-decoration: none; }
.gm-suggest a:hover, .gm-suggest a.is-active { background: var(--gc-bg); color: var(--gc-ink); text-decoration: none; }
.gm-suggest-img { flex: none; width: 36px; height: 48px; border-radius: 6px; overflow: hidden; background: var(--gc-bg); display: grid; place-items: center; color: #b7c4cc; }
.gm-suggest-img img { width: 100%; height: 100%; object-fit: cover; }
.gm-suggest-t { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gm-suggest-t b { font-size: 14.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-suggest-none { padding: 14px 12px; color: var(--gc-muted); font-size: 14px; }
.gm-search .gc-i { position: absolute; left: 16px; color: var(--gc-muted); }
.gm-search input { width: 100%; height: 52px; padding: 0 16px 0 46px; border: 2px solid var(--gc-navy); border-radius: 14px; font: inherit; font-size: 16px; background: #fff; color: var(--gc-ink); }
.gm-search input:focus { outline: 0; border-color: var(--gc-orange); }

/* Karty her */
.gm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gm-grid-all { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gc-s a.gm-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gc-line); border-radius: 14px; overflow: hidden; color: var(--gc-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.gc-s a.gm-card:hover { border-color: var(--gc-orange); box-shadow: 0 8px 22px rgba(28, 36, 41, .1); transform: translateY(-2px); color: var(--gc-ink); text-decoration: none; }
.gm-card[hidden] { display: none !important; }
.gm-card-img { position: relative; aspect-ratio: 2 / 3; background: var(--gc-bg); display: grid; place-items: center; color: #b7c4cc; }
.gm-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gm-card-img .gc-i { width: 40px; height: 40px; }
.gm-badge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 99px; background: var(--gc-orange); color: #fff; font-size: 12px; font-weight: 700; }
.gm-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.gm-card-body b { font-size: 15px; line-height: 1.3; }
.gm-card-body small { font-size: 12.5px; color: var(--gc-muted); }
.gm-rec { font-size: 12.5px; color: var(--gc-ink-2); }
.gm-grid-all .gm-card-body b { font-size: 14px; }
.gm-grid-all .gm-rec { display: none; }

/* Náročnost */
.gm-demand { align-self: flex-start; display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.gm-demand-low { background: #e7f5ec; color: #1f8a4c; }
.gm-demand-mid { background: #e8eff3; color: #1f3f50; }
.gm-demand-high { background: #fff3ea; color: #c95604; }
.gm-demand-extreme { background: #fde8e8; color: #b42318; }
.bb-tag.gm-demand { border-color: transparent; padding: 5px 11px; font-size: 13px; }

.gm-all-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.gm-all-head .gc-sh { margin: 0; }
.gm-none { margin-top: 12px !important; color: var(--gc-muted); }

/* Zdarma na Epicu */
.gm-free { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gm-free-i { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gc-line); border-radius: 14px; overflow: hidden; }
.gm-free-img { position: relative; aspect-ratio: 16 / 9; background: var(--gc-bg); }
.gm-free-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gm-free-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.gm-free-body b { font-size: 16px; }
.gm-free-body small { color: var(--gc-muted); font-size: 13px; }
.gm-free-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* Detail */
.gm-detail-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 34px; align-items: start; }
.gm-cover { position: relative; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--gc-line); box-shadow: 0 16px 36px rgba(28, 36, 41, .14); display: grid; place-items: center; color: #b7c4cc; }
.gm-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gm-detail-hero h1 em { font-size: .62em; }
.gm-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.gm-req { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gm-req-col { padding: 20px 22px; }
.gm-req-col h3 { font-family: inherit; font-size: 17px; font-weight: 800; margin: 0 0 8px; color: var(--gc-ink); }
.gm-req-recommended { border-color: var(--gc-orange); }
.gm-req-col dl { margin: 0; }
.gm-req-col dl div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--gc-line); font-size: 14px; }
.gm-req-col dl div:first-child { border-top: 0; }
.gm-req-col dt { color: var(--gc-muted); }
.gm-req-col dd { margin: 0; font-weight: 600; color: var(--gc-ink); }
.gm-req-none { color: var(--gc-muted); }
.gm-today { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--gc-line); }
.gm-today small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gc-muted); }
.gc-s a.gm-today-i { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--gc-bg); color: var(--gc-ink); text-decoration: none; font-size: 14px; }
.gc-s a.gm-today-i:hover { background: var(--gc-orange-50); color: var(--gc-ink); text-decoration: none; }
.gm-today-i .gc-i { color: var(--gc-orange); }
.gm-today-i b { flex: 1; }
.gm-today-i span { font-weight: 800; white-space: nowrap; }

/* Rozjede to? */
.gm-check { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 22px 24px; align-items: start; }
.gm-check-fields { display: flex; flex-direction: column; gap: 14px; }
.gm-check-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--gc-muted); text-transform: uppercase; letter-spacing: .05em; }
.gm-check-fields input { height: 48px; padding: 0 14px; border: 1px solid var(--gc-line); border-radius: 12px; font: inherit; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--gc-ink); background: #fff; }
.gm-check-fields input:focus { outline: 0; border-color: var(--gc-orange); }
.gm-verdict { min-height: 120px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.gm-verdict-hint { color: var(--gc-muted); font-size: 14.5px; }
.gm-verdict-main { padding: 16px 18px; border-radius: 12px; display: flex; flex-direction: column; gap: 2px; }
.gm-verdict-main b { font-size: 20px; font-weight: 900; }
.gm-verdict-parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gm-verdict-parts li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--gc-line); }
.gm-verdict-parts li span { font-weight: 700; }
.gm-v-bad.gm-verdict-main { background: #fde8e8; color: #b42318; }
.gm-v-mid.gm-verdict-main { background: #fff3ea; color: #c95604; }
.gm-v-good.gm-verdict-main { background: #e7f5ec; color: #1f8a4c; }
.gm-v-top.gm-verdict-main { background: #e3f1ff; color: #1d5fa8; }
li.gm-v-bad span { color: #b42318; } li.gm-v-mid span { color: #c95604; } li.gm-v-good span { color: #1f8a4c; } li.gm-v-top span { color: #1d5fa8; }

/* FPS tabulka */
.gm-fps-tr { grid-template-columns: minmax(0, 2fr) 90px 90px 90px 130px; }
.gm-fps-v { font-weight: 800; font-size: 15px; }

@media (max-width: 1100px) {
    .gm-grid-all { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .gm-grid, .gm-free { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gm-grid-all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gm-detail-hero { grid-template-columns: 120px minmax(0, 1fr); gap: 18px; }
    .gm-req, .gm-check { grid-template-columns: minmax(0, 1fr); }
    .gm-fps-tr { grid-template-columns: minmax(0, 1fr) 56px 56px 56px; grid-template-areas: none; }
    .gm-fps-tr > :last-child { display: none; }
    .gm-fps-tr > span { grid-area: auto !important; text-align: right; }
    .gm-fps-tr > .bu-nm { text-align: left; }
}
@media (max-width: 560px) {
    .gm-detail-hero { grid-template-columns: minmax(0, 1fr); }
    .gm-cover { width: 150px; }
    .gm-hero-btns .gc-btn { white-space: normal; }
    .gm-grid-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gm-free { grid-template-columns: minmax(0, 1fr); }
    .gm-req-col dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
