/* OnlineGames2Play shared header + footer (+ category pages). Everything is scoped to #ogh / #ogf / .ogc so page styles cannot leak in or out. */
#ogh,#ogh :not(svg,svg *),#ogf,#ogf :not(svg,svg *){all:revert;box-sizing:border-box}
#ogh,#ogf{display:block;font:700 15px/1.45 'Nunito',system-ui,-apple-system,'Segoe UI',sans-serif;color:#CBD5E1;text-align:left;letter-spacing:0;-webkit-font-smoothing:antialiased}
#ogh svg,#ogf svg{display:block;flex-shrink:0}
#ogh a,#ogf a{color:inherit;text-decoration:none}
#ogh button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;margin:0;padding:0}
#ogh :focus-visible,#ogf :focus-visible{outline:3px solid #FFD23F;outline-offset:2px;border-radius:8px}
#ogh [hidden],#ogf [hidden]{display:none!important}

/* ---------- header ---------- */
/* older one-column games keep the site header on their start screen only */
body:has(> .screen.on:not(#s-home)) > #ogh{display:none!important}
#ogh{position:relative;z-index:1000;width:100%;margin:0;padding:0;background:#0B1120;border-bottom:1px solid rgba(255,255,255,.08)}
#ogh .ogh-in{max-width:1240px;margin:0 auto;height:68px;display:flex;align-items:center;gap:18px;padding:0 20px}
#ogh .ogh-logo,#ogf .ogh-logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
#ogh .ogh-ic,#ogf .ogh-ic{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#7c6ef5,#5b8af5);display:flex;align-items:center;justify-content:center;box-shadow:0 2px 14px rgba(124,110,245,.4)}
#ogh .ogh-ic svg,#ogf .ogh-ic svg{width:22px;height:22px}
#ogh .ogh-lt,#ogf .ogh-lt{display:flex;flex-direction:column;line-height:1.15}
#ogh .ogh-lt b,#ogf .ogh-lt b{font:700 17px/1.15 'Fredoka','Nunito',sans-serif;color:#fff}
#ogh .ogh-lt small,#ogf .ogh-lt small{font:700 10.5px/1.3 'Nunito',sans-serif;color:#94A3B8;letter-spacing:.02em}

#ogh .ogh-search{flex:1;max-width:420px;position:relative;margin:0}
#ogh .ogh-search input{display:block;width:100%;height:44px;margin:0;border-radius:999px;border:1.5px solid rgba(255,255,255,.12);background:#111A2E;color:#E2E8F0;font:700 15px 'Nunito',sans-serif;padding:0 16px 0 42px;outline:none;-webkit-appearance:none;appearance:none}
#ogh .ogh-search input::placeholder{color:#7C8BA1;opacity:1}
#ogh .ogh-search input:focus{border-color:#7c6ef5;box-shadow:0 0 0 3px rgba(124,110,245,.25)}
#ogh .ogh-search input::-webkit-search-cancel-button{-webkit-appearance:none}
#ogh .ogh-search .ogh-si{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#94A3B8;pointer-events:none}
#ogh .ogh-res{position:absolute;left:0;right:0;top:calc(100% + 6px);background:#111A2E;border:1px solid rgba(255,255,255,.12);border-radius:16px;box-shadow:0 20px 40px rgba(0,0,0,.5);padding:6px;max-height:min(420px,70vh);overflow:auto;z-index:5}
#ogh .ogh-res a{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;color:#E2E8F0}
#ogh .ogh-res a span.e{width:30px;height:30px;border-radius:9px;background:#1E293B;display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0}
#ogh .ogh-res a b{display:block;font-weight:800;color:#fff;font-size:14.5px}
#ogh .ogh-res a small{display:block;color:#94A3B8;font-size:12.5px;line-height:1.3}
#ogh .ogh-res a.on,#ogh .ogh-res a:hover{background:#1E293B}
#ogh .ogh-res .none{padding:12px;color:#94A3B8;font-size:14px}

#ogh .ogh-nav{margin-left:auto;display:flex;align-items:center;gap:4px}
#ogh .ogh-nav>a,#ogh .ogh-gm{height:42px;display:inline-flex;align-items:center;gap:6px;padding:0 14px;border-radius:12px;color:#CBD5E1;font:800 15px 'Nunito',sans-serif;white-space:nowrap;transition:background .15s,color .15s}
#ogh .ogh-nav>a:hover,#ogh .ogh-gm:hover,#ogh .ogh-gm[aria-expanded="true"],#ogh .ogh-nav>a[aria-current="page"]{background:#1E293B;color:#fff}
#ogh .ogh-gm svg{width:14px;height:14px;transition:transform .2s}
#ogh .ogh-gm[aria-expanded="true"] svg{transform:rotate(180deg)}
#ogh .ogh-nav>a.ogh-bug{color:#FDBA74}
#ogh .ogh-nav>a.ogh-cta{background:#FFD23F;color:#2A1600;box-shadow:0 4px 0 #D99A00;margin-left:6px}
#ogh .ogh-nav>a.ogh-cta:hover{background:#FFDD66;color:#2A1600}

#ogh .ogh-mega{position:absolute;left:0;right:0;top:100%;background:#0E1628;border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 24px 40px rgba(0,0,0,.5)}
#ogh .ogh-mega-in{max-width:1240px;margin:0 auto;padding:22px 20px 24px;display:grid;grid-template-columns:repeat(4,1fr) 260px;gap:22px}
#ogh .ogh-gh{display:flex;align-items:center;gap:8px;font:700 15px 'Fredoka','Nunito',sans-serif;color:#FFD23F;margin:0 0 8px;letter-spacing:.02em}
#ogh .ogh-gh:hover{text-decoration:underline}
#ogh .ogh-mega ul,#ogh .ogh-drawer ul,#ogf ul{list-style:none;margin:0;padding:0}
#ogh .ogh-mega li a{display:flex;align-items:center;gap:8px;color:#CBD5E1;font:700 14.5px 'Nunito',sans-serif;padding:5px 0}
#ogh .ogh-mega li a:hover,#ogh .ogh-mega li a[aria-current="page"]{color:#fff}
#ogh .ogh-mega li a:hover span.n,#ogh .ogh-mega li a[aria-current="page"] span.n{text-decoration:underline}
#ogh .ogh-new{font:800 10px 'Nunito',sans-serif;background:#14532D;color:#86EFAC;border-radius:6px;padding:1px 6px;margin-left:2px}
#ogh .ogh-all{display:inline-flex;align-items:center;gap:6px;margin-top:8px;font:800 13.5px 'Nunito',sans-serif;color:#A5B4FC}
#ogh .ogh-all:hover{color:#fff;text-decoration:underline}
#ogh .ogh-all svg{width:14px;height:14px}
#ogh .ogh-burger .x,#ogh .ogh-burger[aria-expanded="true"] .o{display:none}#ogh .ogh-burger[aria-expanded="true"] .x{display:block}
#ogh .ogh-feat{background:linear-gradient(135deg,#1E293B,#172036);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:8px;align-self:start}
#ogh .ogh-feat img{display:block;width:100%;aspect-ratio:16/9;height:auto;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,.1)}
#ogh .ogh-feat b{font:700 18px 'Fredoka','Nunito',sans-serif;color:#fff;margin-top:2px}
#ogh .ogh-feat span{color:#94A3B8;font:700 13.5px 'Nunito',sans-serif}
#ogh .ogh-feat .ogh-play{display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:12px;background:#FFD23F;color:#2A1600;font:800 16px 'Nunito',sans-serif;box-shadow:0 4px 0 #D99A00;margin-top:4px}
#ogh .ogh-feat .ogh-play:hover{background:#FFDD66}

#ogh .ogh-mb{display:none;margin-left:auto;gap:8px}
#ogh .ogh-ib{width:44px;height:44px;border-radius:12px;background:#1E293B;border:1px solid rgba(255,255,255,.12);color:#E2E8F0;display:flex;align-items:center;justify-content:center}
#ogh .ogh-ib svg{width:20px;height:20px}
#ogh .ogh-ib[aria-expanded="true"]{background:#FFD23F;color:#2A1600;border-color:#FFD23F}
#ogh .ogh-drawer{background:#0E1628;padding:14px 16px 20px;border-bottom:1px solid rgba(255,255,255,.08);max-height:calc(100vh - 60px);max-height:calc(100dvh - 60px);overflow:auto}
#ogh .ogh-drawer .ogh-search{max-width:none;margin-bottom:12px}
#ogh .ogh-acc{border-radius:14px;background:#111A2E;margin-bottom:10px;overflow:hidden}
#ogh .ogh-acc>button{display:flex;width:100%;justify-content:space-between;align-items:center;padding:13px 14px;font:700 16px 'Fredoka','Nunito',sans-serif;color:#fff;text-align:left}
#ogh .ogh-acc>button svg{width:16px;height:16px;transition:transform .2s}
#ogh .ogh-acc>button[aria-expanded="true"] svg{transform:rotate(180deg)}
#ogh .ogh-acc ul{padding:0 14px 6px;display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
#ogh .ogh-acc li a{display:block;color:#CBD5E1;font:700 14.5px 'Nunito',sans-serif;padding:8px 0}
#ogh .ogh-acc .ogh-all{margin:0 14px 12px}
#ogh .ogh-dl a{display:flex;align-items:center;gap:10px;color:#E2E8F0;font:800 16px 'Nunito',sans-serif;padding:13px 4px;border-bottom:1px solid rgba(255,255,255,.06)}
#ogh .ogh-dl a:last-child{border-bottom:0}

@media (max-width:1120px){#ogh .ogh-nav>a.ogh-bug .t{display:none}#ogh .ogh-nav>a{padding:0 11px}#ogh .ogh-in{gap:14px}}
@media (max-width:920px){
 #ogh .ogh-in{height:60px;padding:0 12px;gap:10px}
 #ogh .ogh-in>.ogh-search,#ogh .ogh-nav,#ogh .ogh-mega{display:none}
 #ogh .ogh-mb{display:flex}
}
@media (min-width:921px){#ogh .ogh-drawer{display:none}}
@media (max-width:360px){#ogh .ogh-lt small{display:none}}

/* ---------- footer ---------- */
#ogf{width:100%;margin:0;padding:0;background:#0B1222;border-top:1px solid rgba(255,255,255,.08);clear:both}
#ogf .ogf-in{max-width:1240px;margin:0 auto;padding:40px 20px 26px;display:grid;grid-template-columns:1.4fr repeat(4,1fr) .9fr;gap:24px}
#ogf .ogf-brand p{color:#94A3B8;font:700 14px/1.6 'Nunito',sans-serif;margin:12px 0 14px}
#ogf .ogf-soc{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#ogf .ogf-soc>span{font:800 12.5px 'Nunito',sans-serif;color:#94A3B8;text-transform:uppercase;letter-spacing:.08em;margin-right:4px}
#ogf .ogf-soc a{width:38px;height:38px;border-radius:12px;background:#111A2E;border:1px solid rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;color:#E2E8F0;transition:background .15s,transform .15s}
#ogf .ogf-soc a svg{width:19px;height:19px}
#ogf .ogf-soc a:hover{transform:translateY(-2px);color:#fff}
#ogf .ogf-soc a.fb:hover{background:#1877F2}
#ogf .ogf-soc a.yt:hover{background:#FF0000}
#ogf .ogf-soc a.ig:hover{background:linear-gradient(45deg,#F58529,#DD2A7B,#8134AF)}
#ogf .ogf-h{display:block;font:700 15px 'Fredoka','Nunito',sans-serif;color:#FFD23F;margin:0 0 10px;letter-spacing:.02em}
#ogf a.ogf-h:hover{text-decoration:underline}
#ogf .ogf-tg{display:none}
#ogf .ogf-col li a{display:inline-block;color:#CBD5E1;font:700 14px 'Nunito',sans-serif;padding:4px 0}
#ogf .ogf-col li a:hover,#ogf .ogf-col li a[aria-current="page"]{color:#FBBF24;text-decoration:underline}
#ogf .ogf-more{display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:7px 13px;border-radius:999px;background:#1E293B;border:1px solid rgba(255,255,255,.12);color:#fff;font:800 13px 'Nunito',sans-serif;transition:background .15s}
#ogf .ogf-more:hover{background:#334155}
#ogf .ogf-more svg{width:13px;height:13px}
#ogf .ogf-bot{max-width:1240px;margin:0 auto;padding:16px 20px 22px;border-top:1px solid rgba(255,255,255,.08);display:flex;justify-content:space-between;gap:6px 20px;flex-wrap:wrap;color:#A3B1C6;font:700 13px 'Nunito',sans-serif}
@media (max-width:1100px){#ogf .ogf-in{grid-template-columns:repeat(3,1fr)}#ogf .ogf-brand{grid-column:1/-1}}
@media (max-width:700px){
 #ogf .ogf-in{display:block;padding:26px 16px 6px}
 #ogf .ogf-brand{margin-bottom:16px}
 #ogf .ogf-col.g{background:#111A2E;border-radius:14px;margin-bottom:10px;overflow:hidden}
 #ogf .ogf-col.g .ogf-h{display:none}
 #ogf .ogf-col.g .ogf-tg{display:flex;width:100%;justify-content:space-between;align-items:center;padding:13px 14px;font:700 16px 'Fredoka','Nunito',sans-serif;color:#fff;background:none;border:0;cursor:pointer;text-align:left}
 #ogf .ogf-tg svg{width:16px;height:16px;transition:transform .2s}
 #ogf .ogf-tg[aria-expanded="true"] svg{transform:rotate(180deg)}
 #ogf .ogf-col.g .ogf-body{padding:0 14px 14px}
 .ogjs #ogf .ogf-col.g:not(.open) .ogf-body{display:none}
 #ogf .ogf-col.g ul{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
 #ogf .ogf-col.s{padding:10px 0 6px}
 #ogf .ogf-col.s ul{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
 #ogf .ogf-col li a{padding:7px 0}
 #ogf .ogf-bot{padding:14px 16px 22px;flex-direction:column}
}

/* ---------- category pages ---------- */
.ogc{max-width:1240px;margin:0 auto;padding:18px 20px 56px;font-family:'Nunito',system-ui,sans-serif;color:#CBD5E1}
.ogc a{color:#FBBF24}
.ogc .crumbs{font:700 14px 'Nunito',sans-serif;color:#94A3B8;display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px;padding:0;list-style:none}
.ogc .crumbs a{color:#94A3B8;text-decoration:none}.ogc .crumbs a:hover{color:#fff}
.ogc .hero{padding:26px 28px;border-radius:24px;background:radial-gradient(600px 260px at 0 0,rgba(124,110,245,.28),transparent 70%),linear-gradient(135deg,#131C33,#0F172A);border:1px solid rgba(255,255,255,.08);margin-bottom:28px}
.ogc .pill{display:inline-flex;align-items:center;gap:6px;background:rgba(255,210,63,.12);color:#FFD23F;border:1px solid rgba(255,210,63,.3);border-radius:999px;padding:5px 12px;font:800 13px 'Nunito',sans-serif}
.ogc h1{font:700 clamp(30px,4.4vw,46px)/1.08 'Fredoka','Nunito',sans-serif;color:#fff;margin:12px 0 10px}
.ogc .hero p{font:700 17px/1.6 'Nunito',sans-serif;max-width:760px;margin:0 0 16px}
.ogc .cats{display:flex;flex-wrap:wrap;gap:8px}
.ogc .cats a{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;background:#1E293B;border:1px solid rgba(255,255,255,.1);color:#E2E8F0;text-decoration:none;font:800 14px 'Nunito',sans-serif}
.ogc .cats a:hover{background:#334155}
.ogc .cats a[aria-current="page"]{background:#FFD23F;color:#2A1600;border-color:#FFD23F}
.ogc h2{font:700 26px/1.2 'Fredoka','Nunito',sans-serif;color:#fff;margin:0 0 14px}
.ogc .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px;margin:0 0 40px;padding:0;list-style:none}
.ogc .gc{display:flex;flex-direction:column;height:100%;background:#131C31;border:1px solid rgba(255,255,255,.08);border-radius:18px;overflow:hidden;text-decoration:none;color:inherit;transition:transform .15s,border-color .15s,box-shadow .15s}
.ogc .gc:hover{transform:translateY(-3px);border-color:rgba(124,110,245,.6);box-shadow:0 14px 30px rgba(0,0,0,.4)}
.ogc .gc img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#0B1222}
.ogc .gc .b{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.ogc .gc h3{font:700 19px 'Fredoka','Nunito',sans-serif;color:#fff;margin:0;display:flex;align-items:center;gap:8px}
.ogc .gc p{font:700 14px/1.5 'Nunito',sans-serif;color:#A3B1C6;margin:0}
.ogc .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:6px}
.ogc .tags span{font:800 11.5px 'Nunito',sans-serif;color:#C7D2FE;background:rgba(124,110,245,.16);border-radius:6px;padding:3px 8px}
.ogc .new{font:800 10.5px 'Nunito',sans-serif;background:#14532D;color:#86EFAC;border-radius:6px;padding:2px 7px}
.ogc .play{display:inline-flex;align-items:center;justify-content:center;margin-top:10px;min-height:40px;border-radius:12px;background:#FFD23F;color:#2A1600;font:800 15px 'Nunito',sans-serif;box-shadow:0 3px 0 #D99A00}
.ogc .txt{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:40px}
.ogc .txt section{background:#131C31;border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:20px 22px}
.ogc .txt h2{font-size:21px;margin-bottom:8px}
.ogc .txt p{font:600 15.5px/1.7 'Nunito',sans-serif;margin:0}
.ogc .faq{margin-bottom:40px}
.ogc details{background:#131C31;border:1px solid rgba(255,255,255,.08);border-radius:14px;margin-bottom:10px}
.ogc summary{cursor:pointer;padding:15px 18px;font:800 16px 'Nunito',sans-serif;color:#fff;list-style:none;display:flex;justify-content:space-between;gap:12px}
.ogc summary::-webkit-details-marker{display:none}
.ogc summary::after{content:'+';font:700 20px/1 'Fredoka',sans-serif;color:#FFD23F}
.ogc details[open] summary::after{content:'−'}
.ogc details p{margin:0;padding:0 18px 16px;font:600 15px/1.65 'Nunito',sans-serif}
.ogc .more{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.ogc .more a{display:flex;align-items:center;gap:12px;padding:16px 18px;border-radius:16px;background:#131C31;border:1px solid rgba(255,255,255,.08);text-decoration:none;color:#fff;font:700 18px 'Fredoka','Nunito',sans-serif}
.ogc .more a span{font-size:26px}
.ogc .more a small{display:block;font:700 13px 'Nunito',sans-serif;color:#94A3B8}
.ogc .more a:hover{border-color:rgba(124,110,245,.6)}
@media (max-width:760px){.ogc{padding:14px 16px 40px}.ogc .hero{padding:20px 18px}.ogc .txt,.ogc .more{grid-template-columns:1fr}.ogc .grid{grid-template-columns:1fr 1fr;gap:12px}.ogc .gc .b{padding:10px 12px 12px}.ogc .gc h3{font-size:16px}.ogc .gc p{font-size:13px}.ogc .play{display:none}}
@media (max-width:420px){.ogc .gc p,.ogc .tags{display:none}}
