/*
Theme Name: Cloudy Child
Theme URI: https://cloudy.games
Description: Child theme of GamePress for cloudy.games (GeForce NOW focus).
Author: cloudy.games
Template: gamepress
Version: 5.0.1
Text Domain: cloudy-child
*/

.cloudy-pills{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0;align-items:center}
.cloudy-pill{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;line-height:20px;font-weight:600;background:#333;color:#fff;text-decoration:none}
.cloudy-pill--gfn{background:#76b900;color:#111}
.cloudy-pill--gfn-free{background:#4a9f2c}
.cloudy-pill--gfn-priority{background:#76b900}
.cloudy-pill--gfn-ultimate{background:#b6f23c}
.cloudy-pill--gfn-paid{background:#e6a100;color:#111}
.cloudy-pill--store{background:#2b2f3a;color:#dfe3ec}
.cloudy-pill--store:hover{background:#3b4150;color:#fff}
.hw-head-game .cloudy-pills{margin:8px 0 4px}

/* Hide Metacritic + review scores (single game hero/sidebar, cards, widgets). Meta is kept. */
.hw-gameprofile-score,
.hw-gameobject-score,
.hw-gameobject-review,
.hw-gameobject-metacritic,
.hw-review-short,
.hw-circular,
.hw-item .hw-score,
.hw-item .hw-rating,
.hw-item .hw-metacritic,
.hw-post-game .hw-score,
.hw-post-game .hw-rating,
.hw-post-game .hw-metacritic,
.hw-game-details .hw-score,
.hw-game-details .hw-metacritic,
[class*="hw-gameobject-metacritic"],
[class*="hw-gameobject-review"]{display:none !important}


/* ==========================================================================
   v3.0.0 single game redesign. Palette sampled from the Cloudy logo:
   navy #021331 (logo background), green #5cb338 (logo cloud/accent).
   ========================================================================== */
.single-game{
	--cl-navy:#021331;
	--cl-navy-2:#0a2147;
	--cl-navy-3:#13306308;
	--cl-green:#5cb338;
	--cl-green-d:#3f8f22;
	--cl-ink:#e8eef8;
	--cl-mute:#9fb0c8;
}

/* ---- Hero ---- */
.single-game .cloudy-hero{background:var(--cl-navy)}
.single-game .cloudy-hero::before{background-attachment:scroll;background-size:cover;background-position:center 30%}
.single-game .cloudy-hero::after{background:linear-gradient(180deg,rgba(2,19,49,.78) 0%,rgba(2,19,49,.88) 60%,var(--cl-navy) 100%)}
.single-game .cloudy-hero .hw-inner{display:block;padding:72px var(--hw-default-pd) 56px;max-width:var(--hw-body-wt,1400px)}
.single-game .cloudy-hero .hw-post-gameobject{display:flex;align-items:flex-end;gap:36px}
.single-game .cloudy-hero .hw-post-gameobject .hw-thumb{flex:0 0 300px;width:300px;max-width:40%;margin:0;float:none}
.single-game .cloudy-hero .hw-thumb a{display:block;border-radius:10px;overflow:hidden;box-shadow:0 12px 36px rgba(0,0,0,.55);border:2px solid rgba(92,179,56,.55);line-height:0}
.single-game .cloudy-hero .hw-thumb img{display:block;width:100%;height:auto;aspect-ratio:460/215;object-fit:contain;background:var(--cl-navy)}
.single-game .cloudy-hero .hw-thumb figure{display:none}
.single-game .cloudy-hero .hw-post-gameobject .hw-details{flex:1 1 auto;min-width:0;padding:0;margin:0}
.single-game .cloudy-hero h1.hw-title{margin:0 0 12px;font-size:clamp(30px,4.4vw,54px);line-height:1.08;letter-spacing:-.01em;text-shadow:0 2px 18px rgba(0,0,0,.5)}
.single-game .cloudy-hero h1.hw-title a{color:#fff}
.single-game .cloudy-hero .hw-game-meta{display:inline-flex;gap:6px;margin:10px 22px 0 0;font-size:14px;color:var(--cl-mute)}
.single-game .cloudy-hero .hw-game-meta span:first-child{color:var(--cl-green);font-weight:700;text-transform:uppercase;font-size:12px;letter-spacing:.06em;align-self:center}
.single-game .cloudy-hero .hw-game-meta span,.single-game .cloudy-hero .hw-game-meta a{color:var(--cl-ink)}
.single-game .cloudy-hero .hw-game-meta span:first-child{color:var(--cl-green)}
.single-game .cloudy-hero .hw-filter-list{display:none}

/* Pill row */
.single-game .cloudy-hero .cloudy-pills{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 6px}
.single-game .cloudy-pill{padding:5px 14px;font-size:13px;line-height:20px;border-radius:999px;font-weight:700;letter-spacing:.01em;border:1px solid transparent}
.single-game .cloudy-pill--gfn{background:var(--cl-green);color:#04210a;box-shadow:0 0 0 3px rgba(92,179,56,.22)}
.single-game .cloudy-pill--gfn-free{background:#4a9f2c;color:#fff}
.single-game .cloudy-pill--gfn-ultimate{background:#b6f23c;color:#04210a}
.single-game .cloudy-pill--gfn-paid{background:#e6a100;color:#111}
.single-game .cloudy-pill--store{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.28);backdrop-filter:blur(4px)}
.single-game .cloudy-pill--store:hover{background:var(--cl-green);border-color:var(--cl-green);color:#04210a}

/* ---- Intro + gallery band ---- */
.single-game .cloudy-band{float:left;width:100%;background:var(--cl-navy);color:var(--cl-ink);padding:0 0 36px}
.single-game .cloudy-wrap{max-width:var(--hw-body-wt,1400px);margin:0 auto;padding:0 var(--hw-default-pd)}
.single-game .cloudy-intro__text{margin:0;padding:6px 0 26px;max-width:900px;font-size:19px;line-height:1.6;color:var(--cl-ink);border-left:4px solid var(--cl-green);padding-left:18px}
.single-game .cloudy-gallery .hw-el-game-image{display:block;width:100%}
.single-game .cloudy-gallery .hw-main-tabs{border:0;margin:0 0 14px;padding:0}
.single-game .cloudy-gallery .hw-title-box,.single-game .cloudy-gallery .hw-tab-main,.single-game .cloudy-gallery .hw-tab-main span{color:#fff;border:0}
.single-game .cloudy-gallery .hw-tab-main span{font-size:22px;font-weight:700;border-bottom:3px solid var(--cl-green);padding-bottom:6px}
.single-game .cloudy-gallery .hw-data-json{display:none}
.single-game .cloudy-gallery .hw-item-list{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:14px !important;width:100%}
.single-game .cloudy-gallery .hw-item-list>.hw-item{width:auto;max-width:none;padding:0;margin:0;float:none}
.single-game .cloudy-gallery .hw-post-blog{margin:0}
.single-game .cloudy-gallery .hw-thumb{border-radius:8px;overflow:hidden;position:relative;aspect-ratio:16/9;background:#000;box-shadow:0 6px 20px rgba(0,0,0,.4);border:1px solid rgba(255,255,255,.1)}
.single-game .cloudy-gallery .hw-thumb a{display:block;width:100%;height:100%}
.single-game .cloudy-gallery .hw-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}
.single-game .cloudy-gallery .hw-thumb figure{display:none}
.single-game .cloudy-gallery .hw-thumb:hover img{transform:scale(1.05)}

/* ---- Main: related articles ---- */
.single-game .hw-el-archive .hw-title-box{border:0}
.single-game .hw-el-archive .hw-tab-main span{font-size:24px;border-bottom:3px solid var(--cl-green);padding-bottom:6px;color:var(--cl-navy)}
.single-game .hw-el-archive .hw-item-list{display:grid !important;grid-template-columns:minmax(0,1fr) !important;gap:22px !important}
.single-game .hw-el-archive .hw-item{width:100%;max-width:none;float:none;margin:0}
.single-game .hw-el-archive .hw-post-blog{display:flex;gap:22px;align-items:stretch;background:#fff;border:1px solid rgba(2,19,49,.12);border-left:4px solid var(--cl-green);border-radius:10px;overflow:hidden;box-shadow:0 6px 22px rgba(2,19,49,.08)}
.single-game .hw-el-archive .hw-post-blog .hw-thumb{flex:0 0 42%;width:42%;max-width:42%;margin:0;position:relative;min-height:200px}
.single-game .hw-el-archive .hw-post-blog .hw-thumb a{display:block;position:absolute;inset:0}
.single-game .hw-el-archive .hw-post-blog .hw-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.single-game .hw-el-archive .hw-post-blog .hw-thumb figure{display:none}
.single-game .hw-el-archive .hw-post-blog .hw-details{flex:1;padding:18px 22px 18px 0;min-width:0}
.single-game .hw-el-archive .hw-post-blog h3.hw-title{font-size:23px;line-height:1.25;margin:0 0 10px}
.single-game .hw-el-archive .hw-post-blog h3.hw-title a{color:var(--cl-navy)}
.single-game .hw-el-archive .hw-post-blog h3.hw-title a:hover{color:var(--cl-green-d)}
.single-game .hw-el-archive .hw-meta .hw-comment{display:none}
.single-game .hw-el-archive .hw-excerpt{font-size:15px;line-height:1.55;color:#40536b}
.single-game .hw-el-archive .hw-readmore a{display:inline-block;margin-top:10px;padding:7px 18px;border-radius:999px;background:var(--cl-green);color:#04210a;font-weight:700;font-size:14px}
.single-game .hw-el-archive .hw-readmore a:hover{background:var(--cl-navy);color:#fff}

/* ---- Sidebar: compact details card ---- */
.single-game .hw-el-gameprofile{background:var(--cl-navy);border-radius:10px;overflow:hidden;border-top:4px solid var(--cl-green);color:var(--cl-ink)}
.single-game .hw-el-gameprofile .hw-gameprofile-header{display:none}
.single-game .hw-el-gameprofile .hw-game-details{padding:8px 18px 14px}
.single-game .hw-el-gameprofile .hw-game-meta{padding:11px 0;border-bottom:1px solid rgba(255,255,255,.1);display:flex;gap:12px}
.single-game .hw-el-gameprofile .hw-game-meta:last-child{border-bottom:0}
.single-game .hw-el-gameprofile .hw-game-meta>span:first-child{flex:0 0 38%;color:var(--cl-green);font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.single-game .hw-el-gameprofile .hw-game-meta a,.single-game .hw-el-gameprofile .hw-game-meta span{color:var(--cl-ink)}
.single-game .hw-el-gameprofile .hw-game-meta a:hover{color:var(--cl-green)}
.single-game .hw-el-gameprofile .hw-excerpt{display:none}

/* Empty rows (belt and braces; PHP also strips them) */
.single-game .hw-game-meta:empty,.single-game .cloudy-band:empty{display:none}

/* ---- Dark mode ---- */
.hw-dark.single-game .hw-el-archive .hw-post-blog{background:#0d2142;border-color:rgba(255,255,255,.1)}
.hw-dark.single-game .hw-el-archive h3.hw-title a,.hw-dark.single-game .hw-el-archive .hw-tab-main span{color:#fff}
.hw-dark.single-game .hw-el-archive .hw-excerpt{color:var(--cl-mute)}

/* ---- Responsive ---- */
@media (max-width:900px){
	.single-game .cloudy-hero .hw-inner{padding:40px 16px 30px}
	.single-game .cloudy-hero .hw-post-gameobject{flex-direction:column;align-items:flex-start;gap:20px}
	.single-game .cloudy-hero .hw-post-gameobject .hw-thumb{flex:none;width:240px;max-width:70%}
	.single-game .cloudy-gallery .hw-item-list{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important}
	.single-game .hw-el-archive .hw-post-blog{flex-direction:column;gap:0}
	.single-game .hw-el-archive .hw-post-blog .hw-thumb{flex:none;width:100%;max-width:100%;min-height:0;aspect-ratio:16/9}
	.single-game .hw-el-archive .hw-post-blog .hw-details{padding:16px}
	.single-game .cloudy-intro__text{font-size:17px}
}

/* v3 layout fixes against parent rules (ratio padding, hidden imgs, floated titles) */
.single-game .cloudy-hero h1.hw-title{float:none !important;display:block;width:100%;clear:both}
.single-game .cloudy-hero .cloudy-pills{clear:both;float:none;width:100%}
.single-game .cloudy-gallery .hw-post-blog,.single-game .hw-el-archive .hw-post-blog{padding-bottom:0 !important;height:auto}
.single-game .cloudy-gallery .hw-thumb img,.single-game .hw-el-archive .hw-post-blog .hw-thumb img{visibility:visible !important;position:static;opacity:1}
.single-game .cloudy-gallery .hw-thumb a{position:absolute;inset:0}
.single-game .cloudy-gallery .hw-item,.single-game .hw-el-archive .hw-item{display:block;height:auto}
.single-game .hw-el-archive .hw-post-blog{display:flex !important}
.single-game .hw-el-archive .hw-thumb figcaption,.single-game .cloudy-gallery .hw-thumb figcaption{display:none}
.single-game .hw-el-archive .hw-post-blog .hw-thumb a{padding:0 !important;height:100%}
.single-game .hw-el-archive .hw-post-blog .hw-thumb img{position:absolute !important;inset:0;width:100%;height:100% !important;object-fit:cover}
.single-game .hw-el-gameprofile .hw-game-meta,.single-game .hw-el-gameprofile .hw-game-meta span{font-size:15px;line-height:1.45}
.single-game .hw-el-gameprofile .hw-game-meta>span:first-child{font-size:12px}
.single-game .hw-el-gameprofile .hw-game-meta a{color:#8fd66b}
.single-game .cloudy-hero .cloudy-pill{font-size:14px;padding:6px 16px}
.single-game .hw-el-gameprofile .hw-game-meta a{color:#8fd66b !important}
.single-game .cloudy-hero h1.hw-title,.single-game .cloudy-hero h1.hw-title a{font-size:clamp(30px,4.4vw,54px) !important;line-height:1.1 !important}
.single-game .cloudy-gallery .hw-item-list>.hw-item,.single-game .cloudy-gallery .hw-thumb{width:100% !important;max-width:100% !important}
@media (max-width:900px){
	.single-game .hw-el-archive .hw-post-blog .hw-details{padding:16px !important;margin:0 !important;width:100% !important}
	.single-game .hw-el-archive .hw-post-blog .hw-thumb{position:relative;height:auto}
	.single-game .hw-el-archive .hw-post-blog .hw-thumb a{position:absolute}
	.single-game .hw-el-gameprofile .hw-game-meta{flex-wrap:wrap;gap:4px 12px}
}
.single-game .cloudy-gallery .hw-el-game-image{margin:0 !important;padding:0 !important;width:100% !important;max-width:100% !important;box-sizing:border-box}
.single-game .cloudy-gallery .hw-gap-content,.single-game .cloudy-gallery .hw-gap-warp{margin:0 !important;width:100%}
.single-game .cloudy-intro__text{box-sizing:border-box}
@media (max-width:900px){
	.single-game .hw-el-archive .hw-post-blog .hw-thumb{height:0 !important;padding-bottom:56.25%;aspect-ratio:auto}
}

.single-game .cloudy-no-related .hw-column-main{display:none}
.single-game .cloudy-no-related .hw-column-sidebar{width:100% !important;max-width:100% !important;flex:1 1 100%}
.single-game .cloudy-no-related .hw-el-gameprofile{max-width:760px}
