/* CARGESIA 5.5 · gaming portal, update archive and release/media views. */
.cg-game{--cg-gold:#ff9146;min-height:60vh;font-family:inherit;overflow:clip}
.cg-game *, .cg-game *:before,.cg-game *:after{box-sizing:border-box}
.cg-game a{text-decoration:none}
.cg-game h1,.cg-game h2,.cg-game h3,.cg-game p{margin-top:0}
.cg-game h1,.cg-game h2,.cg-game h3{color:#f6fbff}
.cg-game em{font-style:normal;color:#ff9b53}
.cg-game-hero{position:relative;min-height:670px;display:flex;align-items:center;isolation:isolate;background:#0b1d2e;overflow:hidden}
.cg-game-hero-bg{position:absolute;inset:0;z-index:-2;opacity:.4}
.cg-game-hero-bg img{width:100%;height:100%;object-fit:cover;object-position:center 45%}
.cg-game-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#071320 3%,rgba(7,19,32,.91) 43%,rgba(7,19,32,.67)),linear-gradient(0deg,#081522 0%,transparent 50%)}
.cg-game-hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,.8fr);align-items:center;gap:70px;padding-top:95px;padding-bottom:105px}
.cg-game-chip{display:inline-flex;padding:7px 11px;color:#ffbc8d;border:1px solid rgba(255,154,84,.4);border-radius:4px;background:rgba(20,40,54,.7);font-size:11px;font-weight:800;letter-spacing:.14em}
.cg-game-hero h1{font-size:clamp(3.2rem,6vw,5.75rem);line-height:1.02;letter-spacing:-.065em;margin:26px 0 22px;font-weight:850}
.cg-game-hero .cg-game-lead>p{font-size:16px;line-height:1.8;max-width:565px;color:#b9cbd7;margin-bottom:30px}
.cg-game-hero-aside figure{margin:0;position:relative;border:1px solid #486274;border-radius:13px;overflow:hidden;box-shadow:0 28px 70px rgba(0,0,0,.36);transform:rotate(1.4deg)}
.cg-game-hero-aside figure img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.cg-game-hero-aside figcaption{position:absolute;left:0;right:0;bottom:0;padding:24px 16px 14px;background:linear-gradient(0deg,rgba(3,12,21,.91),transparent);color:#e2eaf1;font-size:10px;font-weight:800;letter-spacing:.07em}
.cg-game-brief{position:relative;margin:-15px 27px 0 auto;width:max-content;max-width:calc(100% - 25px);display:flex;flex-direction:column;gap:5px;padding:13px 23px;background:#152f44;border:1px solid #517087;border-radius:7px;box-shadow:0 17px 39px rgba(0,0,0,.3)}
.cg-game-brief>span{font-size:10px;color:#ff9b53;text-transform:uppercase;letter-spacing:.13em;font-weight:800}
.cg-game-brief strong{color:#fff;font-size:16px;letter-spacing:.045em}
.cg-game-brief small{color:#a8bfcd;font-size:11px}
.cg-game-section{padding:100px 0}
.cg-game-title-row{display:flex;justify-content:space-between;align-items:end;gap:45px;margin-bottom:35px}
.cg-game-title-row h2{flex:1.3;margin:0;font-size:clamp(2rem,3.65vw,3.5rem);line-height:1.1;letter-spacing:-.055em;font-weight:820}
.cg-game-title-row p{flex:.8;max-width:420px;margin:0;color:#a6bdcb;line-height:1.65}
.cg-game-projects{display:grid;grid-template-columns:1.35fr 1fr;gap:20px}
.cg-game-project{display:flex;flex-direction:column;overflow:hidden;border:1px solid #2b4860;background:linear-gradient(140deg,#12293e,#0b1c2d);border-radius:13px;min-width:0;transition:border-color .2s,transform .2s}
.cg-game-project:hover{transform:translateY(-3px);border-color:#7792a5}
.cg-game-image{position:relative;height:270px;overflow:hidden;background:#1a3547}
.cg-game-project-featured .cg-game-image{height:310px}
.cg-game-image img{width:100%;height:100%;object-fit:cover;display:block}
.cg-game-image:after{content:"";position:absolute;inset:50% 0 0;background:linear-gradient(0deg,rgba(6,18,29,.75),transparent);pointer-events:none}
.cg-game-image>span{position:absolute;bottom:17px;left:21px;color:#fff;font-size:10px;font-weight:850;letter-spacing:.12em;z-index:1;text-shadow:0 1px 5px #000}
.cg-game-project-body{padding:31px;flex:1;display:flex;flex-direction:column;align-items:flex-start}
.cg-game-label{color:#ff9d58;font-size:10px;font-weight:850;letter-spacing:.2em;margin-bottom:13px}
.cg-game-project h3{font-size:clamp(1.65rem,2.3vw,2.5rem);margin:0 0 17px;font-weight:860;letter-spacing:-.045em}
.cg-game-project h3 span{color:#ffa366}
.cg-game-project p{color:#b1c3cf;line-height:1.74;font-size:14px;max-width:670px}
.cg-game-project .ff-btn{margin-top:auto}
.cg-game-tags{display:flex;gap:7px;flex-wrap:wrap;margin:4px 0 19px}
.cg-game-tags span{border:1px solid #365369;border-radius:3px;padding:6px 8px;color:#b5d0df;font-size:9px;letter-spacing:.05em;font-weight:800}
.cg-game-status{display:flex;align-items:center;gap:8px;font-weight:800;color:#f4c69c!important;font-size:12px!important;margin-bottom:19px!important}
.cg-game-status i{width:7px;height:7px;background:#ff9c4d;border-radius:100%}
.cg-game-mid{background:#0d2031;border-block:1px solid #203c51}
.cg-game-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cg-game-hub-card{display:flex;flex-direction:column;min-width:0;min-height:290px;padding:27px;border:1px solid #33516a;border-radius:12px;background:linear-gradient(150deg,#163248,#0d2031);transition:border-color .2s,transform .2s}
.cg-game-hub-card:hover,.cg-game-hub-card:focus-visible{transform:translateY(-4px);border-color:#ff9b53;outline:none}
.cg-game-hub-icon{font-size:34px;color:#ff9b53;margin-bottom:21px;line-height:1}
.cg-game-hub-card small{color:#aabfd0;font-size:10px;font-weight:800;letter-spacing:.15em;margin-bottom:9px}
.cg-game-hub-card h3{font-size:23px;margin:0 0 12px;line-height:1.18}
.cg-game-hub-card p{color:#aabfcf;font-size:13px;line-height:1.7;margin-bottom:17px;flex:1}
.cg-game-hub-card b{color:#ffa568;font-size:12px}
.cg-game-steam{display:flex;justify-content:space-between;align-items:center;gap:26px;margin-top:20px;padding:24px 30px;border:1px solid #334b61;border-radius:11px;background:rgba(7,18,28,.54)}
.cg-game-steam strong{color:#eaf2f8;font-size:13px;letter-spacing:.08em}
.cg-game-steam p{font-size:12px;color:#95aebe;margin:8px 0 0;max-width:650px}
.cg-game-steam .ff-btn{flex-shrink:0}
.cg-game-coming{color:#acbfca;font-size:10px;letter-spacing:.1em;font-weight:850;border:1px solid #486074;border-radius:4px;padding:12px}
.cg-game-textlink{color:#ffad76;font-size:12px;font-weight:850;letter-spacing:.08em;white-space:nowrap}
.cg-game-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.cg-game-news{background:#11273a;border:1px solid #355067;border-radius:10px;padding:30px;display:flex;align-items:flex-start;flex-direction:column;min-width:0}
.cg-game-news time{display:inline-block;color:#ffad7b;font-size:11px;font-weight:750;letter-spacing:.06em;margin-bottom:15px}
.cg-game-news h2,.cg-game-news h3{font-size:22px;font-weight:800;line-height:1.28;letter-spacing:-.02em;margin:0 0 13px}
.cg-game-news h2 a,.cg-game-news h3 a{color:#f3f8fa}
.cg-game-news h2 a:hover,.cg-game-news h3 a:hover{color:#ffa56b}
.cg-game-news p{font-size:13px;line-height:1.7;color:#a4b9c9;flex:1;margin-bottom:22px}
.cg-game-news>a,.cg-game-news>div>a{color:#ffad77;font-weight:800;font-size:12px}
.cg-game-empty{padding:41px 45px;border:1px dashed #43617a;background:#11283b;border-radius:11px}
.cg-game-empty strong{font-size:22px;color:#edf6fb;display:block;margin-bottom:9px}
.cg-game-empty p{max-width:690px;font-size:14px;color:#a9bfcd;margin:0 0 13px}
.cg-game-bottom-cta{display:flex;justify-content:space-between;align-items:center;gap:40px;margin-top:33px;padding:30px 33px;border-radius:12px;border:1px solid rgba(255,148,72,.47);background:linear-gradient(110deg,#533424,#13283a)}
.cg-game-bottom-cta strong{font-size:22px;color:#fff}
.cg-game-bottom-cta p{margin:10px 0 0;font-size:13px;color:#d5d9dc}
.cg-game-bottom-cta .ff-btn{flex-shrink:0}
/* Archive and single post layouts */
.cg-hub-hero{background:radial-gradient(ellipse at 80% 10%,#1d3c50,#091b29 62%);border-bottom:1px solid #315168;padding:89px 0 78px}
.cg-hub-hero .ff-back-link{display:inline-block;margin-bottom:55px;color:#bcd0da;font-size:13px}
.cg-hub-hero .ff-back-link:hover{color:#ff9b53}
.cg-hub-hero h1{font-size:clamp(2.6rem,5vw,5.1rem);line-height:1.05;letter-spacing:-.058em;margin-bottom:21px}
.cg-hub-hero p{max-width:730px;font-size:16px;color:#b5c9d4}
.cg-hub-body{padding:60px 0 100px}
.cg-hub-filter{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px}
.cg-hub-filter a{padding:8px 14px;border:1px solid #456178;border-radius:99px;color:#b8c8d5;font-size:12px;font-weight:750}
.cg-hub-filter a:hover,.cg-hub-filter a[aria-current=page]{background:#ff9b53;border-color:#ff9b53;color:#1b2630}
.cg-hub .nav-links{display:flex;justify-content:center;gap:12px;margin-top:45px}
.cg-hub .page-numbers{color:#e5eff5;padding:9px 13px;border:1px solid #45647b;border-radius:5px}
.cg-hub .page-numbers.current{background:#ff9b53;color:#142431;border-color:#ff9b53}
.cg-hub-notice{border:1px solid #436374;border-left:3px solid #ff9146;padding:14px 20px;background:#102738;border-radius:4px;margin-bottom:26px;color:#c4d7df;font-size:13px}
.cg-hub-release-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.cg-hub-release{min-height:300px}
.cg-hub-release-label{display:flex;justify-content:space-between;align-items:center;color:#ffb082;font-size:12px;font-weight:850;margin-bottom:17px;gap:12px}
.cg-hub-release-label time{margin:0;color:#a3b8c6}
.cg-hub-version{color:#cfe0e7;font-weight:750;font-size:12px;margin-bottom:13px}
.cg-hub-release-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:auto}
.cg-hub-release-actions>a{color:#ffa879;font-weight:850;font-size:12px}
.cg-hub-release-actions .cg-hub-download{padding:10px 14px;color:#1f252c;background:#ff9953;border-radius:4px}
.cg-hub-release-actions span{color:#a7b6c3;font-size:12px}
.cg-hub-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.cg-hub-medium{border:1px solid #37566c;border-radius:11px;overflow:hidden;background:#142e41}
.cg-hub-media-art{display:grid;place-items:center;aspect-ratio:16/10;overflow:hidden;background:linear-gradient(140deg,#234057,#10263a);color:#ff9a53;font-size:60px}
.cg-hub-media-art img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.cg-hub-medium:hover img{transform:scale(1.045)}
.cg-hub-medium>div{padding:21px}
.cg-hub-medium small{color:#ffa977;font-size:10px;font-weight:800;letter-spacing:.1em}
.cg-hub-medium h2{font-size:19px;margin:11px 0 0;line-height:1.3}
.cg-hub-medium h2 a{color:#f6f9fa}
.cg-hub-single{padding:70px 0 105px;max-width:850px}
.cg-hub-single>.ff-back-link{display:inline-block;color:#b8cbd7;margin-bottom:40px}
.cg-hub-single .ff-update-article{padding:0;border:0;background:transparent}
.cg-hub-single .ff-update-article h1{font-size:clamp(2.25rem,4.5vw,4rem);line-height:1.08;margin:12px 0 21px}
.cg-hub-single .ff-post-content{margin:30px 0}
.cg-hub-single .ff-post-content>*{max-width:100%}
.cg-hub-single .ff-update-cover{margin:25px 0}
.cg-hub-single .ff-update-cover img{height:auto;max-width:100%;border-radius:9px}
.cg-hub-single figcaption{font-size:11px;color:#a4b7c7;margin-top:10px}
.cg-hub-video{aspect-ratio:16/9;position:relative;margin:26px 0;background:#02080d}
.cg-hub-video iframe{position:absolute;inset:0;width:100%!important;height:100%!important;border:0}
@media (max-width:960px){.cg-game-hero-grid{grid-template-columns:1fr 1fr;gap:30px}.cg-game-hero h1{font-size:clamp(3rem,5.5vw,4.6rem)}.cg-game-projects{grid-template-columns:1fr 1fr}.cg-game-hub-grid{gap:11px}.cg-game-hub-card{padding:22px}.cg-game-news-grid{gap:12px}}
@media (max-width:760px){.cg-game-hero{min-height:0}.cg-game-hero-grid{grid-template-columns:1fr;padding-top:78px;padding-bottom:60px}.cg-game-hero-aside{max-width:520px}.cg-game-hero h1{font-size:clamp(3rem,11vw,4.7rem)}.cg-game-section{padding:64px 0}.cg-game-title-row{display:block}.cg-game-title-row p{margin-top:17px}.cg-game-projects{grid-template-columns:1fr}.cg-game-image,.cg-game-project-featured .cg-game-image{height:250px}.cg-game-hub-grid{grid-template-columns:1fr}.cg-game-hub-card{min-height:0}.cg-game-news-grid,.cg-hub-release-grid,.cg-hub-media-grid{grid-template-columns:1fr}.cg-game-steam,.cg-game-bottom-cta{align-items:flex-start;flex-direction:column}.cg-hub-hero{padding:58px 0}.cg-hub-hero .ff-back-link{margin-bottom:38px}.cg-hub-body{padding:40px 0 65px}.cg-game-bottom-cta{padding:25px}}
@media (max-width:420px){.cg-game-hero h1{font-size:2.85rem}.cg-game-project-body,.cg-game-news{padding:24px}.cg-game-hero .ff-actions{align-items:stretch;flex-direction:column}.cg-game-hero .ff-btn{width:100%}.cg-game-empty{padding:27px}.cg-game-steam{padding:20px}}
@media(prefers-reduced-motion:reduce){.cg-game *{scroll-behavior:auto!important;transition:none!important}}
/* External media: explicit click before YouTube/Vimeo connection */
.cgff-video-consent{min-height:290px;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;gap:15px;padding:35px;background:radial-gradient(ellipse at 40% 25%,#213e52,#0b1b29);border:1px solid #3c5c70;border-radius:9px;color:#eef5fa}
.cgff-video-consent p{max-width:550px;margin:0;color:#b6c8d4;font-size:13px}
.cgff-video-symbol{font-size:37px;color:#ffa36d}
.cgff-video-consent.is-loaded{padding:0;min-height:0;aspect-ratio:16/9;border:0}
.cgff-video-consent iframe{width:100%;height:100%;aspect-ratio:16/9;border:0}

.cg-hub-video>.cgff-video-consent{width:100%;height:100%;}

/* 5.6: four hub entries including the browser economy experiment */
.cg-game-hub-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.cg-game-demo-card { border-color:#cc8e555e; background:linear-gradient(155deg,#2a291f,#121e2e); }
@media(max-width:1020px){.cg-game-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.cg-game-hub-grid{grid-template-columns:1fr}}
/* 6.0: portfolio now includes Roblox Market Tycoon. Desktop spotlight plus two smaller project cards. */
.cg-game-projects{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.cg-game-project-featured{grid-column:1/-1;display:grid;grid-template-columns:1.18fr 1fr}
.cg-game-project-featured .cg-game-image{height:100%;min-height:335px}
.cg-game-project-featured .cg-game-project-body{padding:38px 40px}
.cg-game-project-market .cg-game-image img{object-position:50% 53%}
.cg-game-project-market .cg-game-project-body{background:linear-gradient(160deg,#2b2634,#131e30)}
.cg-game-project-market .cg-game-image{background:#24233b}
.cg-game-project-market .cg-game-label{color:#ffca72}
@media(max-width:760px){.cg-game-projects{grid-template-columns:1fr}.cg-game-project-featured{display:flex;grid-column:auto}.cg-game-project-featured .cg-game-image{min-height:0;height:260px}.cg-game-project-featured .cg-game-project-body{padding:25px}}

/* 6.2: showcase actual screenshot and launched browser game */
.cg-game-project-noxia .cg-noxia-card-visual{background:radial-gradient(circle at center,#603b80,#281536);display:flex;align-items:center;justify-content:center}.cg-game-project-noxia .cg-noxia-card-visual img{object-fit:contain;width:auto;max-width:100%;height:100%;border-radius:7px}.cg-game-project-noxia .cg-noxia-card-visual:after{display:none}.cg62-market-direct{display:inline-flex;margin-left:12px;align-items:center;min-height:42px;color:#ffc279;font-size:12px;font-weight:800;text-decoration:none}.cg62-market-direct:hover{text-decoration:underline}
@media(max-width:580px){.cg62-market-direct{margin-left:0;margin-top:10px}}

/* v6.3 AFTERDARK – noir concept card within CARGESIA gaming */
.cg-game-project-afterdark{border-color:#49404b;background:linear-gradient(140deg,#18141b,#101723)}.cg-game-project-afterdark:hover{border-color:#c8a071}.cg-game-project-afterdark .cg-game-image{background:#0e0d12}.cg-game-project-afterdark .cg-game-image img{object-position:center 40%}.cg-game-project-afterdark h3{font-family:Georgia,serif;font-weight:400;letter-spacing:-.03em}.cg-game-project-afterdark h3 span{color:#bf4960}.cg-game-project-afterdark .cg-game-label{color:#e6bb81}
