/* Ecosystem UI System 3.0 — one source, three products.
   Body/content upright. Italics reserved for small, intentional editorial accents.
   All dimensions, gutters, controls and footer visuals share one system.
*/
@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,700;1,800&display=swap");
:root{
 --fg-font-family:"Be Vietnam Pro",Inter,Arial,system-ui,sans-serif;
 --fg-radius-card:12px;
 --fg-radius-control:9px;
 --fg-radius-logo:0px;
 --fg-layout-width:1350px;
 --fg-layout-gutter:36px;
 --fg-card-cover-ratio:16/9;
 --fg-footer-bg:#111115;
 --fg-footer-border:#332c2b;
 --fg-footer-text:#b5aba8;
 --fg-footer-subtle:#9b918f;
}
html[data-site="freegames"]{--font:var(--fg-font-family)}
html[data-site="ideaforge"]{--sans:var(--fg-font-family);--display:var(--fg-font-family)}
html[data-site="hub"]{--display:var(--fg-font-family)}
html[data-site] body{
 font-family:var(--fg-font-family);
 font-weight:400;
 -webkit-font-smoothing:antialiased;
 text-rendering:optimizeLegibility;
}
html[data-site] :is(button,input,select,textarea){font-family:var(--fg-font-family)}
html[data-site] :is(h1,h2,h3,h4,.brand-name,.brand-copy strong,.site-name,.card h3,.footer strong,.footer h2){
 font-family:var(--fg-font-family);
 font-style:normal;
 font-weight:800;
 letter-spacing:-.043em;
}
html[data-site] :is(.brand-name,.brand-copy strong,.site-name,.card h3,.footer strong,.footer h2){font-style:normal!important}
html[data-site] :is(.hero h1 em){font-style:italic;font-weight:800}
html[data-site] :is(.brand-logo,.brand-logo.is-ready,.footer-logo,.footer-brand img){
 border-radius:var(--fg-radius-logo)!important;
 width:46px;
 height:46px;
 max-width:46px;
 max-height:46px;
 object-fit:contain;
}
html[data-site] .footer-logo,html[data-site] .footer-brand img{width:28px;height:28px}
html[data-site] :is(.card,.skeleton-card,.blank,.website-card,.generator-shell,.analysis-card,.library-card,.translation-card){
 border-radius:var(--fg-radius-card);
}
html[data-site] :is(.theme-toggle,.header-search,.corner-link,.nav-link,.navigation a,.primary-btn,.secondary-btn,.icon-button,.site-arrow){
 border-radius:var(--fg-radius-control);
}
html[data-site="freegames"] .brand-mark{width:46px;height:46px;min-width:46px;border-radius:0!important;display:grid;place-items:center;padding:0}
html[data-site="freegames"] .poster{aspect-ratio:var(--fg-card-cover-ratio)}
html[data-site="ideaforge"] .brand-logo,
html[data-site="hub"] .brand-logo{flex:0 0 46px}

/* Consistent side gutters across all three layouts. */
html[data-site="freegames"] .wrap{width:min(var(--fg-layout-width),calc(100% - 2 * var(--fg-layout-gutter)));margin-inline:auto}
html[data-site="ideaforge"] :is(.topbar-inner,.shell){
 width:min(var(--fg-layout-width),calc(100% - 2 * var(--fg-layout-gutter)));
 max-width:none;
 padding-left:0;
 padding-right:0;
 margin-inline:auto;
}
html[data-site="ideaforge"] .utility-inner{width:min(var(--fg-layout-width),calc(100% - 2 * var(--fg-layout-gutter)));max-width:none}
html[data-site="ideaforge"] .hero{
 padding-left:max(var(--fg-layout-gutter),calc((100vw - var(--fg-layout-width))/2));
 padding-right:max(var(--fg-layout-gutter),calc((100vw - var(--fg-layout-width))/2));
}
html[data-site="hub"] .frame{
 width:min(var(--fg-layout-width),calc(100% - 2 * var(--fg-layout-gutter)));
 max-width:none;
 padding-left:0;
 padding-right:0;
 margin-inline:auto;
}
html[data-site="hub"] .header-inner{gap:20px}

/* Matched navigation sizing. Keep each website's own functionality/content. */
html[data-site="freegames"] .header-inner,
html[data-site="ideaforge"] .topbar,
html[data-site="hub"] .header,
html[data-site="hub"] .header-inner{height:80px;min-height:80px}
html[data-site] .theme-toggle{
 min-height:39px;height:39px;
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 padding:8px 12px;
 font-size:11px;font-weight:800;
 letter-spacing:0;
}
html[data-site] .theme-toggle svg{width:18px;height:18px;flex:none}
html[data-site] .theme-toggle :is(.theme-caption,.theme-label,#themeLabel){white-space:nowrap;font:750 11px/1.2 var(--fg-font-family)}
html[data-site="hub"] .brand strong{font-size:21px;line-height:1.05}

/* Footer: identical dark background, top border, text scale and inner gutters;
   sections/links remain unique to the actual product. */
html[data-site] .footer{
 background:var(--fg-footer-bg)!important;
 color:var(--fg-footer-text);
 border-top:1px solid var(--fg-footer-border);
 font-family:var(--fg-font-family);
 font-size:12px;
 line-height:1.7;
}
html[data-site] .footer :is(h2,h3,strong){color:#f4eee9;font-style:normal}
html[data-site] .footer :is(p,span,small){color:var(--fg-footer-text)}
html[data-site] .footer a{color:#e9d7ce}
html[data-site] .footer a:hover{color:#ff9567}
html[data-site="freegames"] .footer>.wrap{
 width:min(var(--fg-layout-width),calc(100% - 2 * var(--fg-layout-gutter)));
}
html[data-site="ideaforge"] .footer{
 width:100%;
 max-width:none;
 margin:0;
 padding:32px max(var(--fg-layout-gutter),calc((100vw - var(--fg-layout-width))/2));
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 justify-content:space-between;
 gap:16px;
}
html[data-site="hub"] .footer.frame{
 box-sizing:border-box;
 width:100%;
 max-width:none;
 min-height:82px;
 padding:22px max(var(--fg-layout-gutter),calc((100vw - var(--fg-layout-width))/2));
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 justify-content:space-between;
 gap:14px;
}
html[data-site="freegames"] .footer .foot-bottom{border-top:1px solid var(--fg-footer-border)}
html[data-site="freegames"] .footer .footer-inner{gap:24px}
html[data-site="ideaforge"] .footer>div:first-child{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
html[data-site="ideaforge"] .footer>div:first-child>span{font-size:10px;color:var(--fg-footer-subtle)}
html[data-site="hub"] .footer>span:last-child{letter-spacing:.08em;color:var(--fg-footer-subtle)}

/* Mobile uses the same 21px then 14px gutters across products. */
@media(max-width:960px){
 :root{--fg-layout-gutter:21px}
}
@media(max-width:650px){
 :root{--fg-layout-gutter:14px}
 html[data-site] :is(.brand-logo,.brand-logo.is-ready){
  width:40px;height:40px;min-width:40px;max-width:40px;max-height:40px
 }
 html[data-site="freegames"] .brand-mark{width:40px;height:40px;min-width:40px}
 html[data-site="freegames"] .header-inner,
 html[data-site="ideaforge"] .topbar,
 html[data-site="hub"] .header,
 html[data-site="hub"] .header-inner{height:70px;min-height:70px}
 html[data-site="hub"] .brand strong{font-size:19px}
 html[data-site] .theme-toggle{height:38px;min-height:38px;padding:7px 9px}
 html[data-site] .theme-toggle :is(.theme-caption,.theme-label,#themeLabel){display:none}
 html[data-site="ideaforge"] .footer,
 html[data-site="hub"] .footer.frame{padding-top:24px;padding-bottom:24px}
}


/* Hero display typography — share IdeaForge's actual headline font with
   Free Games without changing either website's heading text or body type. */
:root{--fg-hero-display-font:"Be Vietnam Pro",Inter,Arial,system-ui,sans-serif}
html[data-site="ideaforge"] .hero.hero-clean h1,
html[data-site="freegames"] .hero .hero-copy h1{
 font-family:var(--fg-hero-display-font)!important;
 font-weight:850;
 font-style:normal;
 line-height:1.025;
 letter-spacing:-.078em;
}
html[data-site="ideaforge"] .hero.hero-clean h1 em,
html[data-site="freegames"] .hero .hero-copy h1 em{
 font-family:inherit;
 font-style:italic!important;
 font-weight:800;
}
html[data-site="freegames"] .hero .hero-copy h1{
 font-size:clamp(42px,5.2vw,76px);
}
@media(max-width:650px){
 html[data-site="freegames"] .hero .hero-copy h1{
  font-size:clamp(33px,9.3vw,52px);
  letter-spacing:-.065em;
 }
}
