/*
Theme Name: GameHub
Theme URI: https://github.com/naresh1290/Gamehub
Description: Fast, accessible browser-game discovery theme powered by GameHub Engine.
Version: 1.6.1
Author: GameHub
License: GPL-2.0-or-later
Text Domain: gamehub
Requires at least: 6.2
Requires PHP: 7.4
*/

:root {
	--gh-bg: #f2f6ff;
	--gh-surface: #ffffff;
	--gh-surface-2: #e9efff;
	--gh-text: #12203d;
	--gh-muted: #5b6883;
	--gh-border: #d7dff0;
	--gh-accent: #5b45f5;
	--gh-accent-dark: #3e2dcc;
	--gh-mint: #26d7a1;
	--gh-coral: #ff7262;
	--gh-like: #119b68;
	--gh-dislike: #d84255;
	--gh-radius: 20px;
	--gh-radius-sm: 14px;
	--gh-shadow: 0 10px 30px rgba(31, 49, 91, .1);
	--gh-maxw: 1480px;
	color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--gh-bg); color: var(--gh-text); font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(circle at 8% 8%, rgba(38,215,161,.16), transparent 24rem), radial-gradient(circle at 92% 18%, rgba(91,69,245,.14), transparent 28rem), linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,.5) 48% 52%, transparent 52%) 0 0 / 90px 90px; opacity: .8; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gh-coral); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.gh-skip-link { position: fixed; left: 16px; top: -60px; z-index: 10000; padding: 10px 16px; border-radius: 10px; background: var(--gh-text); color: #fff; }
.gh-skip-link:focus { top: 12px; }
.gh-app { min-height: 100vh; display: flex; flex-direction: column; }
.gh-main { flex: 1; }
.gh-container { width: min(100%, var(--gh-maxw)); margin-inline: auto; padding-inline: clamp(14px, 3vw, 34px); }

/* Header */
.gh-site-header { position: sticky; top: 0; z-index: 80; padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left)); }
.gh-header-inner { width: min(100%, 1120px); min-height: 68px; margin: 0 auto; padding: 8px 10px 8px 16px; display: flex; align-items: center; gap: 22px; border: 1px solid rgba(92, 105, 145, .18); border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: 0 12px 34px rgba(31,49,91,.13); backdrop-filter: blur(14px) saturate(150%); }
.gh-logo { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
.gh-logo-icon { width: 42px; height: 42px; border-radius: 13px; object-fit: contain; background: var(--gh-surface-2); }
.gh-logo-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--gh-accent); }
.gh-header-nav { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; flex: 1; }
.gh-header-nav a { padding: 9px 12px; border-radius: 999px; color: var(--gh-muted); font-size: 14px; font-weight: 750; white-space: nowrap; }
.gh-header-nav a:hover { background: var(--gh-surface-2); color: var(--gh-accent-dark); }
.gh-header-actions { display: flex; align-items: center; gap: 7px; }
.gh-icon-button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: var(--gh-surface-2); color: var(--gh-text); cursor: pointer; font-weight: 800; }
.gh-icon-button:hover { background: #dfe6ff; color: var(--gh-accent-dark); }
.gh-icon-button.gh-search-open { padding-inline: 15px; background: var(--gh-accent); color: #fff; }
.gh-icon-button.gh-search-open:hover { background: var(--gh-accent-dark); color: #fff; }
.gh-menu-btn { display: none; }

/* Drawer */
.gh-sidebar { position: fixed; top: 0; right: 0; bottom: 0; z-index: 102; width: min(360px, 90vw); padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); transform: translateX(105%); transition: transform .22s ease; background: var(--gh-surface); box-shadow: -20px 0 50px rgba(18,32,61,.18); overflow-y: auto; }
.gh-app.gh-sidebar-open .gh-sidebar { transform: translateX(0); }
.gh-sidebar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 20px; }
.gh-drawer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gh-drawer-nav a { padding: 12px; border-radius: 12px; background: var(--gh-surface-2); font-weight: 750; }
.gh-drawer-label { margin: 22px 0 10px; color: var(--gh-muted); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gh-drawer-categories { display: grid; gap: 6px; }
.gh-drawer-categories a { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 8px 10px; border-radius: 12px; font-weight: 700; }
.gh-drawer-categories a:hover { background: var(--gh-surface-2); }
.gh-drawer-categories span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--gh-accent); color: #fff; }
.gh-drawer-categories svg { width: 17px; height: 17px; }
.gh-sidebar-overlay { position: fixed; inset: 0; z-index: 101; display: none; border: 0; background: rgba(9,17,36,.55); backdrop-filter: blur(3px); }
.gh-app.gh-sidebar-open .gh-sidebar-overlay { display: block; }

/* Search drawer */
.gh-search-overlay { position: fixed; inset: 0; z-index: 200; }
.gh-search-overlay[hidden] { display: none; }
.gh-search-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(9,17,36,.58); backdrop-filter: blur(5px); cursor: default; }
.gh-search-drawer { position: relative; width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: 12px; padding: clamp(18px, 4vw, 34px); border-radius: 28px; background: var(--gh-surface); box-shadow: 0 30px 80px rgba(9,17,36,.28); overflow-y: auto; animation: gh-drawer-in .2s ease-out; }
@keyframes gh-drawer-in { from { transform: translateX(-22px); opacity: 0; } }
.gh-search-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 22px; }
.gh-search-heading h2 { margin: 2px 0 0; font-size: clamp(23px, 4vw, 34px); line-height: 1.15; letter-spacing: -.04em; }
.gh-search { position: relative; }
.gh-search-ico { position: absolute; left: 17px; top: 16px; color: var(--gh-muted); }
.gh-search-input { width: 100%; height: 54px; padding: 0 18px 0 50px; border: 2px solid var(--gh-border); border-radius: 16px; background: #f8faff; color: var(--gh-text); outline: none; }
.gh-search-input:focus { border-color: var(--gh-accent); box-shadow: 0 0 0 4px rgba(91,69,245,.12); }
.gh-search-panel { margin-top: 12px; max-height: 55vh; overflow-y: auto; }
.gh-search-panel:empty { display: none; }
.gh-search-group-label { padding: 12px 6px 6px; color: var(--gh-muted); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.gh-search-row { display: flex; align-items: center; gap: 12px; padding: 9px; border-radius: 13px; }
.gh-search-row:hover, .gh-search-row.is-active { background: var(--gh-surface-2); }
.gh-search-row img, .gh-search-thumb { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 12px; object-fit: contain; background: #edf1fb; }
.gh-search-thumb { display: grid; place-items: center; color: var(--gh-accent); font-weight: 900; }
.gh-search-row-name { display: block; font-weight: 800; }
.gh-search-row-sub { display: block; color: var(--gh-muted); font-size: 12px; }
.gh-search-empty { padding: 28px 10px; color: var(--gh-muted); text-align: center; }
.gh-search-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.gh-search-suggestions > span { width: 100%; color: var(--gh-muted); font-size: 13px; font-weight: 750; }
.gh-search-suggestions a { padding: 7px 11px; border-radius: 999px; background: var(--gh-surface-2); font-size: 13px; font-weight: 700; }
body.gh-search-open, body.gh-noscroll { overflow: hidden; }

/* Home and headings */
.gh-home-seo-intro { padding: clamp(10px, 2vw, 20px) 0 0; }
.gh-home-seo-intro h1 { margin: 0 0 5px; font-size: clamp(27px, 4vw, 43px); line-height: 1.08; letter-spacing: -.045em; }
.gh-home-seo-intro p { max-width: 860px; margin: 0; color: var(--gh-muted); font-size: clamp(14px, 1.7vw, 17px); }
.gh-home-intro { margin-top: 10px; padding: clamp(18px, 3vw, 32px) 0; }
.gh-home-intro-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: clamp(20px, 4vw, 44px); padding-bottom: clamp(20px, 4vw, 44px); border-radius: 28px; color: #fff; background: linear-gradient(120deg, #4d36dc, #745bf8 54%, #14b98d); box-shadow: var(--gh-shadow); }
.gh-display-copy { max-width: 760px; margin: 2px 0 0; font-size: clamp(25px, 4vw, 48px); font-weight: 900; line-height: 1.06; letter-spacing: -.045em; }
.gh-eyebrow { display: block; color: var(--gh-accent); font-size: 12px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.gh-home-intro .gh-eyebrow { color: #c9ffec; }
.gh-primary-button, .gh-secondary-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border: 0; border-radius: 14px; cursor: pointer; font-weight: 850; }
.gh-primary-button { background: #fff; color: var(--gh-accent-dark); box-shadow: 0 8px 20px rgba(18,32,61,.16); }
.gh-secondary-button { border: 1px solid var(--gh-border); background: var(--gh-surface); color: var(--gh-text); }
.gh-category-chips { display: flex; gap: 9px; overflow-x: auto; padding-top: 4px; padding-bottom: 14px; scrollbar-width: none; }
.gh-category-chips::-webkit-scrollbar { display: none; }
.gh-category-chips a { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; flex: 0 0 auto; border: 1px solid var(--gh-border); border-radius: 999px; background: rgba(255,255,255,.82); font-size: 13px; font-weight: 800; }
.gh-category-chips svg { width: 17px; height: 17px; color: var(--gh-accent); }
.gh-category-chips a:hover { border-color: var(--gh-accent); transform: translateY(-1px); }
.gh-section { padding: clamp(18px, 3.5vw, 36px) 0; }
.gh-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.gh-section-head h1, .gh-section-head h2 { margin: 2px 0 0; font-size: clamp(22px, 3vw, 31px); line-height: 1.15; letter-spacing: -.035em; }
.gh-section-head > a { color: var(--gh-accent-dark); font-size: 14px; font-weight: 850; white-space: nowrap; }
.gh-page-heading { max-width: 820px; margin: 10px 0 24px; }
.gh-page-heading h1 { margin: 4px 0 8px; font-size: clamp(31px, 5vw, 52px); line-height: 1.06; letter-spacing: -.05em; }
.gh-page-heading p { margin: 0; color: var(--gh-muted); font-size: clamp(15px, 2vw, 18px); }

/* Game grid and cards */
.gh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.gh-game-count { padding: 7px 11px; border-radius: 999px; background: var(--gh-surface-2); color: var(--gh-muted); font-size: 13px; font-weight: 800; white-space: nowrap; }
.gh-home-library .gh-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.gh-home-library .gh-card-category { display: none; }
.gh-home-library .gh-card-body { padding: 8px 9px 10px; }
.gh-home-library .gh-card-title { min-height: 2.55em; font-size: 13px; }
.gh-card { min-width: 0; overflow: hidden; border: 1px solid rgba(77,96,140,.16); border-radius: var(--gh-radius); background: var(--gh-surface); box-shadow: 0 6px 18px rgba(31,49,91,.08); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.gh-card:hover { transform: translateY(-4px); border-color: rgba(91,69,245,.45); box-shadow: 0 15px 32px rgba(31,49,91,.16); }
.gh-card-thumb { position: relative; aspect-ratio: 1; overflow: hidden; background: linear-gradient(145deg, #e6ecf9, #f8faff); }
.gh-card-thumb img { width: 100%; height: 100%; padding: 3px; border-radius: inherit; object-fit: contain; object-position: center; transition: transform .2s ease, filter .2s ease; }
.gh-card:hover .gh-card-thumb img { transform: scale(1.025); filter: saturate(1.05); }
.gh-image-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-size: 34px; }
.gh-card-play { position: absolute; right: 9px; bottom: 9px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--gh-accent); color: #fff; font-size: 13px; opacity: 0; transform: scale(.8); transition: opacity .18s, transform .18s; box-shadow: 0 6px 16px rgba(42,28,142,.3); }
.gh-card:hover .gh-card-play, .gh-card:focus-visible .gh-card-play { opacity: 1; transform: scale(1); }
.gh-card-body { padding: 10px 11px 12px; }
.gh-card-title { min-height: 2.65em; margin: 0; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; font-weight: 850; line-height: 1.32; }
.gh-card-category { display: block; margin-top: 4px; overflow: hidden; color: var(--gh-muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.gh-hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
.gh-hscroll .gh-card { flex: 0 0 126px; scroll-snap-align: start; }
.gh-hscroll .gh-card-category { display: none; }

/* Categories */
.gh-category-section { padding-block: clamp(28px, 5vw, 58px); background: rgba(255,255,255,.42); }
.gh-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gh-category-grid-all { grid-template-columns: repeat(5, 1fr); }
.gh-category-card { min-width: 0; min-height: 88px; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--gh-border); border-radius: 18px; background: var(--gh-surface); box-shadow: 0 6px 16px rgba(31,49,91,.06); transition: transform .16s, border-color .16s; }
.gh-category-card:hover { transform: translateY(-3px); border-color: var(--gh-accent); }
.gh-category-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; color: #fff; background: linear-gradient(135deg, var(--gh-accent), #8b74ff); }
.gh-category-icon svg { width: 24px; height: 24px; }
.gh-category-copy { min-width: 0; display: grid; }
.gh-category-copy strong { overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.gh-category-copy small { color: var(--gh-muted); }
.gh-category-arrow { margin-left: auto; color: var(--gh-accent); font-weight: 900; }
.gh-related-categories { margin-top: 44px; }

/* Breadcrumbs */
.gh-crumbs { margin: 12px 0 18px; }
.gh-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 0; margin: 0; list-style: none; color: var(--gh-muted); font-size: 13px; }
.gh-crumbs li { display: flex; align-items: center; gap: 7px; }
.gh-crumbs li:not(:first-child)::before { content: "/"; opacity: .45; }
.gh-crumbs a:hover { color: var(--gh-accent); }
.gh-crumbs [aria-current="page"] { color: var(--gh-text); font-weight: 700; }

/* Player */
.gh-game-page { padding: 8px 0 40px; }
.gh-game-heading { display: flex; align-items: center; gap: 15px; margin: 0 0 18px; }
.gh-game-heading > img { width: 72px; height: 72px; padding: 2px; flex: 0 0 auto; border-radius: 18px; object-fit: contain; background: var(--gh-surface); box-shadow: var(--gh-shadow); }
.gh-game-heading h1 { margin: 0; font-size: clamp(27px, 4vw, 44px); line-height: 1.08; letter-spacing: -.045em; }
.gh-game-heading p { margin: 3px 0 0; color: var(--gh-muted); }
.gh-play-layout { display: grid; grid-template-columns: minmax(0, 900px) minmax(270px, 340px); align-items: start; justify-content: center; gap: clamp(14px, 2vw, 24px); }
.gh-play-main { min-width: 0; }
.gh-play-layout .gh-player { width: 100%; max-width: 900px; }
.gh-player-recommendations { min-width: 0; padding: 15px; border: 1px solid var(--gh-border); border-radius: 20px; background: rgba(255,255,255,.72); box-shadow: 0 8px 24px rgba(31,49,91,.07); }
.gh-player-recommendations-head { margin-bottom: 11px; }
.gh-player-recommendations-head h2 { margin: 2px 0 0; font-size: 21px; line-height: 1.15; }
.gh-player-recommendations .gh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gh-player-recommendations .gh-card { border-radius: 14px; }
.gh-player-recommendations .gh-card-body { padding: 7px 7px 8px; }
.gh-player-recommendations .gh-card-title { min-height: 2.5em; font-size: 12px; }
.gh-player-recommendations .gh-card-category, .gh-player-recommendations .gh-card-play { display: none; }
.gh-player { position: relative; display: flex; flex-direction: column; width: min(100%, 1180px); margin: 0 auto; overflow: hidden; aspect-ratio: 16/9; border-radius: 24px; background: #080b13; box-shadow: 0 22px 50px rgba(10,18,39,.22); }
.gh-player-stage { position: relative; flex: 1; min-height: 0; }
.gh-player-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gh-player-launch { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; background: radial-gradient(circle at 50% 35%, #263052, #090d19 70%); }
.gh-launch-icon { grid-area: 1/1; width: min(42%, 280px); height: auto; aspect-ratio: 1; padding: 3px; object-fit: contain; border-radius: 26px; background: #11182a; box-shadow: 0 20px 48px rgba(0,0,0,.4); }
.gh-play-btn { grid-area: 1/1; position: relative; z-index: 2; width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: var(--gh-mint); color: #09251c; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .18s; }
.gh-player-launch:hover .gh-play-btn { transform: scale(1.07); }
.gh-player-bar { height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 12px 0 15px; color: #fff; background: #111727; }
.gh-pb-left, .gh-pb-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gh-pb-left img { border-radius: 8px; object-fit: contain; }
.gh-pb-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gh-pb-btn { min-width: 40px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 10px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.gh-pb-btn:hover { background: rgba(255,255,255,.2); }
.gh-pb-btn.is-active.gh-like { color: #6ef0b9; }
.gh-pb-btn.is-active.gh-dislike { color: #ff8a96; }
.gh-player-loader { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: #090d19; }
.gh-loader-inner { display: grid; justify-items: center; gap: 18px; }
.gh-loader-icon { width: 88px; height: 88px; border-radius: 20px; object-fit: contain; }
.gh-spinner { width: 40px; height: 40px; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--gh-mint); border-radius: 50%; animation: gh-spin .8s linear infinite; }
@keyframes gh-spin { to { transform: rotate(360deg); } }
.gh-fs-bar { display: none; height: 44px; align-items: center; gap: 12px; padding: 0 12px; color: #fff; background: #000; }
.gh-fs-close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }
.gh-fs-title { font-weight: 800; }
.gh-player.is-immersive { position: fixed; inset: 0; z-index: 10000; width: 100vw; height: 100dvh; max-width: none; aspect-ratio: auto; border-radius: 0; }
.gh-player.is-immersive .gh-fs-bar { display: flex; }
.gh-player.is-immersive .gh-player-bar, .gh-player.is-immersive .gh-player-launch { display: none; }
.gh-confirm { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.72); }
.gh-confirm-box { width: min(100%, 350px); padding: 24px; border-radius: 18px; background: #fff; color: var(--gh-text); text-align: center; }
.gh-confirm-title { margin: 0; font-size: 20px; font-weight: 900; }
.gh-confirm-sub { margin: 5px 0 18px; color: var(--gh-muted); }
.gh-confirm-actions { display: flex; justify-content: center; gap: 9px; }
.gh-confirm-actions button { min-height: 44px; padding: 8px 15px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 800; }
.gh-confirm-close { background: var(--gh-dislike); color: #fff; }
.gh-mobile-actions { display: none; justify-content: center; gap: 9px; padding: 12px 0; }
.gh-mb-btn { min-height: 44px; padding: 8px 14px; border: 1px solid var(--gh-border); border-radius: 999px; background: var(--gh-surface); color: var(--gh-text); font-weight: 800; }
.gh-similar { padding-top: 42px; }

/* Content, pagination and footer */
.gh-content { margin-top: clamp(24px, 5vw, 58px); padding: 0 0 24px; }
.gh-content-inner { max-width: 920px; padding: clamp(20px, 4vw, 42px); border: 1px solid var(--gh-border); border-radius: 24px; background: rgba(255,255,255,.88); color: #34415d; box-shadow: 0 8px 24px rgba(31,49,91,.07); }
.gh-home-content .gh-content-inner { max-width: 100%; margin-inline: auto; }
.gh-content-inner h1, .gh-content-inner h2, .gh-content-inner h3 { color: var(--gh-text); line-height: 1.2; letter-spacing: -.025em; }
.gh-content-inner h1 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 42px); }
.gh-content-inner h2 { margin: 28px 0 9px; font-size: clamp(21px, 3vw, 28px); }
.gh-content-inner h3 { margin: 22px 0 7px; font-size: 19px; }
.gh-content-inner p { margin: 0 0 13px; }
.gh-content-inner a { color: var(--gh-accent-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.gh-content-inner ul, .gh-content-inner ol { margin: 0 0 16px; padding-left: 22px; }
.gh-content-inner li { margin: 5px 0; }
.gh-game-information .gh-content-inner { max-width: 920px; margin-inline: auto; }
.gh-pagination, .navigation.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 28px 0; }
.page-numbers { min-width: 42px; min-height: 42px; display: inline-grid; place-items: center; padding: 7px 10px; border: 1px solid var(--gh-border); border-radius: 11px; background: var(--gh-surface); font-weight: 800; }
.page-numbers.current { background: var(--gh-accent); color: #fff; }
.gh-loadmore-wrap { display: flex; justify-content: center; margin: 26px 0 8px; }
.gh-loadmore { min-height: 46px; padding: 9px 22px; border: 1px solid var(--gh-border); border-radius: 13px; background: var(--gh-surface); color: var(--gh-text); cursor: pointer; font-weight: 850; }
.gh-loadmore.is-loading { opacity: .55; pointer-events: none; }
.gh-empty { padding: 50px 20px; color: var(--gh-muted); text-align: center; }
.gh-error-code { color: var(--gh-accent); font-size: clamp(54px, 10vw, 100px); font-weight: 950; line-height: 1; }
.gh-empty h1 { margin: 5px 0; color: var(--gh-text); font-size: clamp(30px, 5vw, 48px); }
.gh-error-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.gh-footer { margin-top: 50px; border-top: 1px solid var(--gh-border); background: #101b35; color: #d9e2f6; }
.gh-footer-inner { width: min(100%, var(--gh-maxw)); margin-inline: auto; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; padding: 48px clamp(18px, 3vw, 34px); }
.gh-footer .gh-logo { color: #fff; }
.gh-footer-brand p { max-width: 300px; color: #aebbd5; }
.gh-footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.gh-footer-column strong { margin-bottom: 5px; color: #fff; }
.gh-footer-column a { color: #b9c5dc; }
.gh-footer-column a:hover { color: #fff; }
.gh-footer-bottom { padding: 16px max(18px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.1); color: #9eabc3; text-align: center; font-size: 13px; }

@media (max-width: 1100px) {
	.gh-header-cat { display: none; }
	.gh-category-grid-all { grid-template-columns: repeat(4, 1fr); }
	.gh-home-library .gh-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.gh-play-layout { grid-template-columns: minmax(0, 1fr) 270px; }
}
@media (max-width: 820px) {
	.gh-header-nav { display: none; }
	.gh-menu-btn { display: inline-flex; }
	.gh-icon-button.gh-search-open span { display: none; }
	.gh-icon-button.gh-search-open { width: 44px; padding: 0; }
	.gh-home-intro-inner { align-items: flex-start; flex-direction: column; }
	.gh-category-grid, .gh-category-grid-all { grid-template-columns: repeat(2, 1fr); }
	.gh-grid { grid-template-columns: repeat(4, 1fr); }
	.gh-home-library .gh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gh-play-layout { grid-template-columns: 1fr; }
	.gh-player-recommendations .gh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gh-footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.gh-site-header { padding-inline: 8px; }
	.gh-header-inner { min-height: 60px; padding: 6px 7px 6px 11px; gap: 8px; }
	.gh-logo-icon, .gh-logo-mark { width: 38px; height: 38px; }
	.gh-logo-text { font-size: 19px; }
	.gh-home-intro { padding-top: 4px; }
	.gh-home-intro-inner { border-radius: 22px; }
	.gh-display-copy { font-size: 29px; }
	.gh-primary-button { min-height: 44px; }
	.gh-section { padding-block: 20px; }
	.gh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.gh-home-library .gh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.gh-home-library .gh-card-body { padding: 6px 7px 8px; }
	.gh-home-library .gh-card-title { font-size: 11.5px; }
	.gh-card { border-radius: 15px; }
	.gh-card-body { padding: 8px 9px 10px; }
	.gh-card-title { font-size: 13px; }
	.gh-card-play { display: none; }
	.gh-category-grid, .gh-category-grid-all { gap: 9px; }
	.gh-category-card { min-height: 76px; padding: 10px; border-radius: 15px; }
	.gh-category-icon { width: 42px; height: 42px; }
	.gh-category-arrow { display: none; }
	.gh-search-drawer { width: 100%; max-height: 100dvh; min-height: 100dvh; margin: 0; border-radius: 0; padding-top: max(20px, env(safe-area-inset-top)); }
	.gh-game-heading > img { width: 58px; height: 58px; }
	.gh-game-heading p { font-size: 13px; }
	.gh-player { aspect-ratio: 4/3; border-radius: 18px; }
	.gh-player-recommendations { padding: 11px; border-radius: 17px; }
	.gh-player-recommendations .gh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.gh-player-bar { display: none; }
	.gh-mobile-actions { display: flex; }
	.gh-launch-icon { width: min(55%, 210px); }
	.gh-content-inner { padding: 20px 17px; border-radius: 18px; }
	.gh-footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 370px) {
	.gh-logo-text { display: none; }
	.gh-category-card { display: grid; justify-items: center; text-align: center; }
	.gh-category-copy strong { white-space: normal; }
	.gh-category-copy small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Poki.uk.com homepage: fitted artwork with names revealed on interaction. */
.gh-home-library .gh-card { position: relative; display: block; }
.gh-home-library .gh-card-thumb { aspect-ratio: 1; border-radius: inherit; }
.gh-home-library .gh-card-thumb img,
.gh-home-library .gh-card:hover .gh-card-thumb img {
 display: block; width: 100%; height: 100%; padding: 0;
 object-fit: contain; object-position: center; transform: none; filter: none;
}
.gh-home-library .gh-card-body {
 position: absolute; inset: auto 0 0; z-index: 1;
 padding: 25px 8px 9px;
 background: linear-gradient(transparent, rgba(7, 16, 35, .92) 45%);
 color: #fff; opacity: 0; transform: translateY(5px); pointer-events: none;
 transition: opacity .16s ease, transform .16s ease;
}
.gh-home-library .gh-card-title {
 display: block; min-height: 0; margin: 0; color: #fff;
 font-size: 12px; line-height: 1.3; text-align: center;
 overflow-wrap: anywhere; -webkit-line-clamp: unset;
}
.gh-home-library .gh-card-play { display: none; }
.gh-home-library .gh-card:focus-visible .gh-card-body,
.gh-home-library .gh-card.is-name-preview .gh-card-body { opacity: 1; transform: none; }
.gh-home-library .gh-card:focus-visible { outline: 3px solid var(--gh-accent); outline-offset: 3px; }
@media (hover: hover) {
 .gh-home-library .gh-card:hover .gh-card-body { opacity: 1; transform: none; }
}
.gh-home-card-hint { margin: 0 0 14px; color: var(--gh-muted); font-size: 13px; }
.gh-hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
 .gh-hint-pointer { display: none; }
 .gh-hint-touch { display: inline; }
}

/* Homepage mosaic: game artwork begins immediately below the header. */
.gh-home-library { padding-top: 4px; }
.gh-home-library > .gh-container { container-type: inline-size; }
.gh-home-library .gh-mosaic {
 --gh-mosaic-cols: 12; --gh-mosaic-gap: 10px;
 display: grid; gap: var(--gh-mosaic-gap);
 grid-template-columns: repeat(var(--gh-mosaic-cols), minmax(0, 1fr));
 grid-auto-rows: calc((100cqw - (var(--gh-mosaic-cols) - 1) * var(--gh-mosaic-gap)) / var(--gh-mosaic-cols));
 grid-auto-flow: row dense;
}
.gh-home-tile { min-width: 0; min-height: 0; }
.gh-home-tile--large { grid-column: span 3; grid-row: span 3; }
.gh-home-tile--medium { grid-column: span 2; grid-row: span 2; }
.gh-home-library .gh-home-tile .gh-card { width: 100%; height: 100%; }
.gh-home-library .gh-home-tile .gh-card-thumb { width: 100%; height: 100%; aspect-ratio: auto; }
.gh-home-library .gh-home-tile--large .gh-card-title { font-size: clamp(14px, 1.4vw, 19px); }
.gh-home-library .gh-home-tile--medium .gh-card-title { font-size: clamp(12px, 1.1vw, 15px); }
.gh-home-library .gh-home-tile--small .gh-card-title { font-size: 11px; line-height: 1.2; }
.gh-home-library .gh-home-tile--small .gh-card-body { padding: 14px 4px 5px; }
.gh-home-content .gh-home-seo-intro { padding: 0 0 24px; }
@media (max-width: 1100px) { .gh-home-library .gh-mosaic { --gh-mosaic-cols: 10; } }
@media (max-width: 800px) { .gh-home-library .gh-mosaic { --gh-mosaic-cols: 8; --gh-mosaic-gap: 8px; } }
@media (max-width: 600px) {
 .gh-home-library .gh-mosaic { --gh-mosaic-cols: 6; --gh-mosaic-gap: 6px; }
 .gh-home-library .gh-home-tile--small .gh-card { border-radius: 10px; }
 .gh-home-library .gh-home-tile--small .gh-card-title { font-size: 9px; }
}
@media (max-width: 370px) { .gh-home-library .gh-mosaic { --gh-mosaic-cols: 5; } }

/* Illustrated category cards with dimensional artwork and readable names. */
.gh-category-grid { gap: 14px; }
.gh-category-card {
 position: relative; min-height: 118px; gap: 12px; padding: 12px;
 border: 1px solid rgba(123, 142, 190, .25); border-radius: 22px;
 background: linear-gradient(145deg, #fff, #f1f4ff);
 box-shadow: 0 3px 0 rgba(99, 117, 161, .12), 0 10px 24px rgba(35, 55, 107, .08), inset 0 1px 0 #fff;
 transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gh-category-card:hover {
 transform: translateY(-4px); border-color: #b6a7f3;
 box-shadow: 0 4px 0 rgba(108, 84, 195, .15), 0 16px 28px rgba(54, 46, 114, .15);
}
.gh-category-card:focus-visible { outline: 3px solid var(--gh-accent); outline-offset: 4px; }
.gh-category-card .gh-category-art {
 width: 86px; height: 86px; border-radius: 0; background: transparent;
 overflow: visible;
}
.gh-category-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gh-category-card .gh-category-copy strong {
 color: #172b4a; white-space: normal; overflow: visible; text-overflow: clip;
 font-size: 14px; line-height: 1.3;
}
.gh-category-card .gh-category-copy small { display: block; margin-top: 5px; color: #586985; font-size: 12px; }
.gh-category-card .gh-category-arrow { font-size: 18px; }
.gh-category-card--all { background: linear-gradient(135deg, #273f87, #7653dc); border-color: #8d80e4; box-shadow: 0 3px 0 #373776, 0 12px 24px rgba(83, 59, 166, .23); }
.gh-category-card--all .gh-category-copy strong, .gh-category-card--all .gh-category-arrow { color: #fff; }
.gh-category-card--all .gh-category-copy small { color: #e0e5ff; }
@media (max-width: 1100px) and (min-width: 741px) {
 .gh-category-grid, .gh-category-grid-all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .gh-category-card .gh-category-art { width: 74px; height: 74px; }
}
@media (max-width: 740px) {
 .gh-category-grid, .gh-category-grid-all { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
 .gh-category-card { flex-direction: column; justify-content: flex-start; text-align: center; gap: 7px; min-height: 174px; padding: 12px 9px 15px; border-radius: 20px; }
 .gh-category-card .gh-category-art { width: 88px; height: 88px; }
 .gh-category-card .gh-category-copy strong { font-size: 13px; }
 .gh-category-card .gh-category-arrow { display: none; }
}
@media (max-width: 370px) {
 .gh-category-card { display: flex; }
 .gh-category-card .gh-category-copy small { display: block; }
}

/* Compact pill header, with a brand divider and navy search icon. */
.gh-site-header {
 width: fit-content; max-width: calc(100% - 24px); margin-inline: auto;
 padding: max(12px, env(safe-area-inset-top)) 0 12px; background: transparent;
}
.gh-site-header .gh-header-inner {
 width: max-content; max-width: 100%; min-height: 76px;
 gap: 24px; padding: 12px 24px; border: 0; border-radius: 999px;
 background: #fff; box-shadow: 0 14px 28px rgba(5,47,79,.17);
 backdrop-filter: none; -webkit-backdrop-filter: none;
}
.gh-site-header .gh-logo-icon, .gh-site-header .gh-logo-mark { width: 44px; height: 44px; }
.gh-site-header .gh-logo-text { display: inline; font-size: 28px; }
.gh-site-header .gh-logo { gap: 9px; color: #052f50; }
.gh-site-header .gh-header-actions { border-left: 1px solid #dbe4ed; padding-left: 20px; }
.gh-site-header .gh-search-open {
 width: 48px; height: 48px; min-height: 48px; padding: 0;
 flex: 0 0 auto; background: transparent; color: #052f50;
 border: 0; border-radius: 50%; box-shadow: none;
}
.gh-site-header .gh-search-open:hover { background: #eaf8fc; }
.gh-site-header .gh-search-open:focus-visible { outline: 3px solid #008dd2; outline-offset: 3px; }
.gh-site-header .gh-search-open svg { width: 30px; height: 30px; flex: 0 0 auto; }
.gh-site-header .gh-search-open span { display: none; }
@media (max-width: 600px) {
 .gh-site-header .gh-header-inner { min-height: 68px; gap: 18px; padding: 10px 20px; }
 .gh-site-header .gh-logo-text { font-size: 25px; }
 .gh-site-header .gh-logo-icon, .gh-site-header .gh-logo-mark { width: 40px; height: 40px; }
 .gh-site-header .gh-header-actions { padding-left: 16px; }
 .gh-site-header .gh-search-open { width: 44px; height: 44px; min-height: 44px; }
}

/* Readable typography and responsive player — September 2026. */
:root { --gh-reading-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { font-family: var(--gh-reading-font); line-height: 1.65; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, .gh-card-title, .gh-category-copy strong { letter-spacing: -.02em; }
.gh-game-heading > div { min-width: 0; }
.gh-game-heading h1 { line-height: 1.2; overflow-wrap: anywhere; }
.gh-game-heading p, .gh-content p, .gh-home-content p { line-height: 1.75; }
.gh-content-inner { max-width: 76ch; }
.gh-content a, .gh-play-guide a { text-underline-offset: .2em; text-decoration: underline; }
.gh-play-guide { margin: 16px 0 24px; padding: clamp(16px,3vw,24px); border: 1px solid var(--gh-border); border-radius: 18px; background: #fff; }
.gh-play-guide h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.35; }
.gh-play-guide p { margin: 8px 0; color: #475569; }
.gh-player-tools { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:14px; }
.gh-player-tools button, .gh-player-tools a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 14px; border:1px solid #cbd5e1; border-radius:10px; background:#f8fafc; color:#25334b; font-weight:600; cursor:pointer; }
.gh-player-status { min-height:1.65em; font-size:14px; }
.gh-launch-label { position:absolute; bottom:18px; color:white; font-weight:600; text-align:center; padding:0 12px; }
.gh-pb-btn, .gh-fs-close, .gh-mb-btn { min-width:44px; min-height:44px; }
.gh-fs-bar { height:auto; min-height:52px; padding-top:env(safe-area-inset-top); padding-left:max(12px,env(safe-area-inset-left)); padding-right:max(12px,env(safe-area-inset-right)); }
.gh-player.is-immersive { padding-bottom:env(safe-area-inset-bottom); }
.gh-player.is-immersive .gh-player-stage { min-height:0; }
:where(a,button,input,[tabindex]):focus-visible { outline:3px solid #245aca; outline-offset:4px; }
@media(max-width:767px) {
 .gh-game-heading { align-items:flex-start; gap:12px; }
 .gh-game-heading > img { width:52px; height:52px; border-radius:12px; }
 .gh-game-heading h1 { font-size:clamp(24px,6vw,32px); }
 .gh-game-heading p { font-size:15px; }
 .gh-play-layout { display:flex; flex-direction:column; }
 .gh-play-main, .gh-player-recommendations { width:100%; min-width:0; }
 .gh-player:not(.is-immersive) { aspect-ratio:auto; border-radius:16px; }
 .gh-player:not(.is-immersive) .gh-player-stage { min-height:260px; height: min(70vh,440px); flex:auto; }
 .gh-player-recommendations .gh-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .gh-player-tools > * { flex:1 1 auto; }
 .gh-content, .gh-home-content { overflow-wrap:break-word; }
 .gh-search-input { font-size:16px; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; } }

/* Size groups stay in sequence: large, medium, then small. */
.gh-home-library .gh-sized-grid { display: grid; gap: 10px; grid-auto-flow: row; }
.gh-home-library .gh-sized-grid + .gh-sized-grid { margin-top: 14px; }
.gh-home-library .gh-sized-grid--large { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gh-home-library .gh-sized-grid--medium { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gh-home-library .gh-sized-grid--small { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.gh-sized-grid > .gh-home-tile { grid-column: auto; grid-row: auto; aspect-ratio: 1; }
@media (max-width: 800px) {
 .gh-home-library .gh-sized-grid--large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .gh-home-library .gh-sized-grid--medium { grid-template-columns: repeat(4, minmax(0, 1fr)); }
 .gh-home-library .gh-sized-grid--small { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
 .gh-home-library .gh-sized-grid { gap: 6px; }
 .gh-home-library .gh-sized-grid--medium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .gh-home-library .gh-sized-grid--small { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Poki game detail screen: player first, details below, discovery alongside. */
.single-game .gh-game-page { padding-top: 0; }
.single-game .gh-game-page > .gh-container { width: min(96%, 1600px); }
.single-game .gh-breadcrumbs { display: none; }
.single-game .gh-play-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 23%); gap: 20px; align-items: start; }
.single-game .gh-play-main { min-width: 0; padding: 14px; border-radius: 22px; background: rgba(255,255,255,.85); box-shadow: 0 12px 32px rgba(31,49,91,.1); }
.single-game .gh-player:not(.is-immersive) { max-width: none; width: 100%; aspect-ratio: auto; box-shadow: none; border-radius: 16px; }
.single-game .gh-player:not(.is-immersive) .gh-player-stage { aspect-ratio: 16/9; height: auto; min-height: 0; flex: none; }
.single-game .gh-player:not(.is-immersive) .gh-player-bar { display: flex; height: auto; min-height: 96px; padding: 16px 12px; flex-wrap: wrap; background: #f4f5ff; color: var(--gh-text); }
.single-game .gh-pb-left { gap: 12px; flex: 1 1 220px; }
.single-game .gh-pb-left img { width: 56px; height: 56px; border-radius: 12px; }
.single-game h1.gh-pb-name { margin: 0 0 4px; font-size: clamp(20px, 2vw, 28px); line-height: 1.2; white-space: normal; }
.single-game .gh-player-category { font-size: 14px; color: #586783; }
.single-game .gh-pb-btn { border-radius: 50%; color: #25334b; background: #e5e8f6; }
.single-game .gh-pb-btn:hover { background: #d6dcf7; }
.single-game .gh-player-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 0; padding: 20px 12px; }
.single-game .gh-player-facts dt { color: #5c6982; font-size: 13px; }
.single-game .gh-player-facts dd { margin: 5px 0 0; font-weight: 700; font-size: 14px; }
.single-game .gh-play-guide { margin-bottom: 0; }
.single-game .gh-player-recommendations { padding: 16px; border: none; background: rgba(255,255,255,.85); }
.single-game .gh-player-recommendations-head { margin-bottom: 16px; }
.single-game .gh-player-recommendations .gh-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.single-game .gh-player-recommendations .gh-card { position: relative; aspect-ratio: 1; }
.single-game .gh-player-recommendations .gh-card-thumb { aspect-ratio: 1; height: 100%; }
.single-game .gh-player-recommendations .gh-card-thumb img { width: 100%; height: 100%; object-fit: contain; }
.single-game .gh-player-recommendations .gh-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px 8px 8px; background: linear-gradient(transparent,rgba(0,0,0,.85)); opacity: 0; pointer-events: none; }
.single-game .gh-player-recommendations .gh-card-title { min-height: 0; color: white; }
.single-game .gh-player-recommendations .gh-card:hover .gh-card-body,
.single-game .gh-player-recommendations .gh-card:focus-visible .gh-card-body { opacity: 1; }
@media(max-width: 800px) {
 .single-game .gh-play-layout { grid-template-columns: 1fr; }
 .single-game .gh-player-recommendations .gh-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
 .single-game .gh-player-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 500px) {
 .single-game .gh-play-main { padding: 8px; }
 .single-game .gh-player:not(.is-immersive) .gh-player-stage { aspect-ratio: 4/3; }
 .single-game .gh-player-recommendations .gh-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .single-game .gh-player-recommendations .gh-card-body { opacity: 1; }
}

/* Externally hosted games (Funox): Play panel instead of the iframe player. */
.gh-player-external { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px 24px; text-align: center; color: #fff; background: radial-gradient(ellipse at 50% 20%, #243159 0%, #121a30 45%, #080b13 100%); }
.gh-player-external::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(255,213,74,.16), transparent 42%); pointer-events: none; }
.gh-ext-icon { position: relative; width: min(30%, 150px); aspect-ratio: 1; padding: 4px; border-radius: 26px; background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.04)); box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.gh-ext-icon img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.gh-ext-text { position: relative; display: flex; flex-direction: column; gap: 2px; }
.gh-ext-title { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.8rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.gh-ext-sub { margin: 0; color: #aab4d4; font-size: .92rem; }
.gh-funox-play { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 200px; padding: 15px 36px; border-radius: 999px; background: linear-gradient(180deg, #ffe066, #ffc726); color: #1a1500; font-weight: 800; font-size: 1.15rem; line-height: 1; letter-spacing: .01em; text-decoration: none; white-space: nowrap; box-shadow: 0 12px 30px rgba(255,199,38,.38), inset 0 1px 0 rgba(255,255,255,.6); transition: transform .15s ease, box-shadow .15s ease; }
.gh-funox-play:hover, .gh-funox-play:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(255,199,38,.5), inset 0 1px 0 rgba(255,255,255,.6); color: #1a1500; outline: none; }
.gh-funox-play:active { transform: translateY(0); }
.gh-funox-play-ico { flex: none; }
.gh-funox-play--small { min-width: 0; padding: 10px 20px; font-size: .95rem; }
.gh-player-external-note { position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #8f9ac0; font-size: .85rem; }
@media (max-width: 767px) { .gh-player-external { gap: 10px; padding: 20px 16px; } .gh-ext-icon { width: 34%; max-width: 120px; border-radius: 20px; } .gh-ext-icon img { border-radius: 16px; } .gh-funox-play { width: min(100%, 320px); padding: 14px 28px; font-size: 1.08rem; } }

/* Game page: related games directly under the player, About text last. */
.single-game .gh-play-layout { grid-template-columns: minmax(0, 1fr); }
.single-game .gh-play-main { max-width: 1180px; margin-inline: auto; width: 100%; }
.gh-under-player { margin: 18px 0 4px; }
.gh-under-player .gh-section-head { margin-bottom: 12px; }
.gh-under-player .gh-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.gh-under-player .gh-card { border-radius: 14px; }
.gh-under-player .gh-card-body { padding: 8px 8px 9px; }
.gh-under-player .gh-card-title { min-height: 2.5em; font-size: 13px; }
.gh-under-player .gh-card-category { display: none; }
@media (max-width: 1024px) { .gh-under-player .gh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { .gh-under-player { margin-top: 12px; } .gh-under-player .gh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }

/* ---- Visible text links in homepage / landing-page copy ---- */
.gh-home-content p a, .gh-home-content li a { color: var(--gh-accent-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.gh-home-content p a:hover, .gh-home-content li a:hover { color: var(--gh-accent); }

/* ---- Poki Games pill (homepage category grid + last pill on All Games) ---- */
.gh-category-card--poki { border-color: rgba(0,141,210,.35); background: linear-gradient(135deg, #ffffff, #eef7ff); }
.gh-category-card--poki:hover { border-color: #008dd2; }
.gh-category-icon--poki { background: #fff; border: 1px solid var(--gh-border); box-shadow: inset 0 0 0 3px #eaf4ff; }
.gh-category-icon--poki img { width: 32px; height: 32px; border-radius: 50%; display: block; }
.gh-category-card--poki .gh-category-arrow { color: #008dd2; }
.gh-poki-games-cta { display: flex; justify-content: center; margin: 22px 0 6px; }
.gh-poki-games-cta .gh-category-card { width: 100%; max-width: 440px; }
@media (max-width: 767px) {
	.gh-poki-games-cta a.gh-category-card.gh-category-card--poki { display: flex !important; flex-direction: row !important; align-items: center; justify-content: flex-start; gap: 12px; min-height: 0; padding: 12px 14px; text-align: left; }
	.gh-poki-games-cta a.gh-category-card.gh-category-card--poki .gh-category-copy { display: grid; justify-items: start; }
	.gh-poki-games-cta a.gh-category-card.gh-category-card--poki .gh-category-copy strong { white-space: nowrap; }
	.gh-poki-games-cta a.gh-category-card.gh-category-card--poki .gh-category-copy small { display: block; }
	.gh-poki-games-cta a.gh-category-card.gh-category-card--poki .gh-category-arrow { display: block !important; margin-left: auto; }
}
