/* =====================================================================
   Unblocked Games Clan — "Cosmic Clan" theme layer.
   Loaded after style.css on every page (and after the legacy site.css
   on the horoscope / tarot / learn pages).
   ===================================================================== */
:root{
  --cg-font:"Space Grotesk",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --ug-gold:#f3cf7a; --ug-gold-2:#ffe6a8; --ug-violet:#8b6cff; --ug-mint:#4ff0c4;
}
html{background:#070817}
body,body.ugc-legacy{
  font-family:var(--cg-font)!important;color:var(--cg-text);
  background-color:#070817!important;
  background-image:
    radial-gradient(circle at 85% -5%,rgba(139,108,255,.22),transparent 34rem),
    radial-gradient(circle at 5% 25%,rgba(79,240,196,.10),transparent 30rem),
    linear-gradient(180deg,#080a1d 0,#070817 50%,#05060f 100%)!important;
  background-size:auto!important;background-attachment:fixed;
}
body::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.32;
  background-image:radial-gradient(circle,rgba(255,255,255,.75) 0 1px,transparent 1.5px),radial-gradient(circle,rgba(185,164,255,.6) 0 1px,transparent 1.5px);
  background-position:0 0,38px 62px;background-size:110px 110px,155px 155px;
}
.cgu-brandtext strong{letter-spacing:-.03em}
.cgu-brandtext strong span{background:linear-gradient(90deg,var(--ug-mint),var(--ug-violet));-webkit-background-clip:text;background-clip:text;color:transparent!important}
.cgu-logo{filter:drop-shadow(0 4px 14px rgba(79,240,196,.25))}
.cgu-footer-note{margin:14px 0 0;padding:12px 14px;border-radius:12px;background:rgba(243,207,122,.06);border:1px solid rgba(243,207,122,.18);color:var(--cg-muted);font-size:13px}
.cgu-discover-row.no-ad{grid-template-columns:1fr!important}

/* ---------- legacy horoscope / tarot / learn pages inside the new shell ---------- */
body.ugc-legacy .ugc-top,body.ugc-legacy .ugc-bottom{padding-bottom:0}
body.ugc-legacy main.site-shell{width:min(1160px,calc(100% - 40px));margin-inline:auto}
@media (max-width:620px){body.ugc-legacy main.site-shell{width:calc(100% - 24px)}}
body.ugc-legacy .hero{padding:34px 0 22px;text-align:center}
body.ugc-legacy .hero h1{font-size:clamp(34px,6vw,64px);letter-spacing:-.045em;line-height:1.02;margin:10px 0 14px;background:linear-gradient(180deg,#fff,#d9d2ff);-webkit-background-clip:text;background-clip:text;color:transparent}
body.ugc-legacy .hero p{margin-inline:auto;color:var(--cg-muted)}
body.ugc-legacy .card{padding:22px}
body.ugc-legacy h1,body.ugc-legacy h2,body.ugc-legacy h3{font-family:var(--cg-font)}
body.ugc-legacy .ad-label{text-align:center;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--cg-dim);margin-top:18px}
body.ugc-legacy .cgu-related,body.ugc-legacy .cgu-discover-row{margin-top:28px}

/* ---------- cosmic components used by the new astrology pages ---------- */
.ug-cosmic{--cg-coin:var(--ug-gold);--cg-coin-ink:#2a1d00}
.ug-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:rgba(243,207,122,.1);border:1px solid rgba(243,207,122,.3);color:var(--ug-gold-2);font-size:12.5px;font-weight:700}
.ug-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.ug-num{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:18px 10px;border-radius:18px;background:linear-gradient(160deg,rgba(139,108,255,.16),rgba(79,240,196,.06));border:1px solid var(--cg-line-strong);text-decoration:none;color:var(--cg-text)!important;transition:transform .15s,border-color .15s}
.ug-num:hover{transform:translateY(-3px);border-color:var(--ug-gold)}
.ug-num b{font-size:34px;letter-spacing:.04em;font-family:var(--cg-mono);background:linear-gradient(180deg,var(--ug-gold-2),var(--ug-gold));-webkit-background-clip:text;background-clip:text;color:transparent}
.ug-num small{color:var(--cg-muted);font-size:13px;text-align:center}
.ug-table{width:100%;border-collapse:collapse;font-size:15px}
.ug-table th,.ug-table td{padding:11px 12px;border-bottom:1px solid var(--cg-line);text-align:left;vertical-align:top}
.ug-table th{color:var(--cg-dim);font-size:12.5px;text-transform:uppercase;letter-spacing:.06em}
.ug-table tr.now td{background:rgba(243,207,122,.08)}
.ug-table-wrap{overflow-x:auto;border-radius:16px;border:1px solid var(--cg-line);background:var(--cg-s1)}
.ug-note{padding:14px 16px;border-radius:14px;background:rgba(139,108,255,.08);border:1px solid rgba(139,108,255,.25);color:var(--cg-muted);font-size:14.5px}

/* ---------- home ---------- */
.ug-home-hero .cgu-home-copy h1{font-size:clamp(40px,6.4vw,76px)!important;line-height:.98!important;letter-spacing:-.045em}
.ug-home-hero .cgu-home-copy h1 span{background:linear-gradient(90deg,var(--ug-gold-2),var(--ug-gold) 40%,var(--ug-violet));-webkit-background-clip:text;background-clip:text;color:transparent}
.ug-home-hero .ug-badge{margin-bottom:14px}
.ug-fl-ic{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;background:rgba(243,207,122,.14);font-size:22px}
.ug-stars{padding:22px;border-radius:26px;background:radial-gradient(circle at 90% 0%,rgba(139,108,255,.22),transparent 50%),radial-gradient(circle at 0% 100%,rgba(243,207,122,.10),transparent 45%),var(--cg-s1);border:1px solid var(--cg-line)}
.ug-signs{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;margin-bottom:14px}
.ug-signs a{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 2px;border-radius:14px;background:var(--cg-s2);border:1px solid var(--cg-line);text-decoration:none;color:var(--cg-text)!important;font-size:12.5px;font-weight:600;transition:transform .15s,border-color .15s}
.ug-signs a b{font-size:24px;font-weight:400;color:var(--ug-gold-2)}
.ug-signs a:hover{transform:translateY(-3px);border-color:var(--ug-gold)}
.ug-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ug-feature{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:14px;border-radius:16px;background:linear-gradient(150deg,rgba(139,108,255,.14),rgba(243,207,122,.04));border:1px solid var(--cg-line-strong);text-decoration:none;color:var(--cg-text)!important;transition:transform .15s,border-color .15s}
.ug-feature:hover{transform:translateY(-3px);border-color:var(--ug-gold)}
.ug-feature b{grid-row:1/3;font-size:28px;line-height:1;text-align:center;font-weight:400}
.ug-feature strong{font-size:15px;line-height:1.25}
.ug-feature small{font-size:12.5px;color:var(--cg-muted)}
@media(max-width:980px){.ug-signs{grid-template-columns:repeat(6,minmax(0,1fr))}.ug-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.ug-signs{grid-template-columns:repeat(4,minmax(0,1fr))}.ug-feature-grid{grid-template-columns:1fr}.ug-stars{padding:16px}}
.ug-cosmic .cgu-topbar,.ug-cosmic .cgu-footer{--cg-coin:#4ff0c4;--cg-coin-ink:#04261d}
@media(min-width:981px){.cgu-cat-rail{grid-template-columns:repeat(7,minmax(0,1fr))!important}}
@media(max-width:620px){
  .cgu-cat-rail{display:flex!important;overflow-x:auto;gap:8px;padding-bottom:6px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  .cgu-cat-rail a{flex:0 0 150px;scroll-snap-align:start}
  .ug-home-hero .cgu-hero-stage{margin-bottom:14px}
}

/* AdSense Auto Ads: Google inserts ads (marked .google-auto-placed / ins.adsbygoogle-noablate) anywhere in the page,
   including inside card grids and flex rows. Give each one its own full-width row instead of a single cell, keep it
   inside its container and the screen, and collapse units Google reports as unfilled (documented data-ad-status hook).
   Our own <ins> slots don't carry .adsbygoogle-noablate; anchor/vignette overlays are excluded. */
/* Scoped to the page container on purpose: anchor, side-rail and vignette ads are injected
   as direct children of <body>, and must be left completely alone. */
.bt-container .google-auto-placed,
.container .google-auto-placed,
.bt-container ins.adsbygoogle-noablate:not([data-anchor-status]):not([data-vignette-loaded]):not([data-anchor-shown]),
.container ins.adsbygoogle-noablate:not([data-anchor-status]):not([data-vignette-loaded]):not([data-anchor-shown]){
  grid-column:1/-1!important;flex:1 1 100%!important;width:100%!important;max-width:100%!important;min-width:0!important;
  justify-self:stretch!important;box-sizing:border-box!important;overflow:hidden!important;clear:both}
.bt-container .google-auto-placed,
.container .google-auto-placed{margin:6px 0!important;text-align:center}
ins.adsbygoogle{max-width:100%!important}
ins.adsbygoogle[data-ad-status="unfilled"],.google-auto-placed:has(ins.adsbygoogle[data-ad-status="unfilled"]){display:none!important}

/* Responsive AdSense units (data-ad-format="auto") may serve a creative taller than the old fixed slot
   (e.g. 336×350 in a 336×280 box). Never cap the height: the slot grows with the ad, so it can't spill
   over the next section. min-height keeps the space reserved while the ad loads (no layout jump). */
.banner300 ins.adsbygoogle{width:100%!important;max-width:300px!important;min-width:0!important;height:auto!important;min-height:250px!important;overflow:visible!important}
@media (min-width:768px){.banner300 ins.adsbygoogle{max-width:336px!important;min-height:280px!important}}
.banner728 ins.adsbygoogle{height:auto!important;overflow:visible!important}
.banner728,.banner300{height:auto!important;overflow:visible}

/* max page width 900px: leaves room for AdSense side rails */
:root{--cg-wrap:900px!important}

/* GameMonetize embeds: keep each game at its own aspect ratio and inside the page */
.gm-shell{position:relative;width:100%;max-width:100%;margin:0 auto;border-radius:16px;overflow:hidden;
  background:#05070f;border:1px solid var(--cg-line);aspect-ratio:var(--gm-w)/var(--gm-h);max-height:78vh}
.gm-shell.gm-portrait{max-width:min(430px,100%);max-height:80vh}
.gm-shell iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.gm-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 4px}
.gm-note{font-size:13.5px;color:var(--cg-dim)}
.cgu-game-video{margin-bottom:18px}
.cgu-game-heading{margin-top:6px}

/* ---------- featured games ---------- */
.bt-feat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.bt-feat{display:flex;flex-direction:column;border-radius:16px;overflow:hidden;text-decoration:none;min-width:0;
  background:var(--cg-s2);border:1px solid var(--cg-line);transition:transform .16s,border-color .16s,box-shadow .16s}
.bt-feat:hover{transform:translateY(-3px);border-color:var(--cg-acc);box-shadow:0 12px 26px rgba(0,0,0,.4)}
.bt-feat-img{position:relative;display:block;aspect-ratio:4/3;background:#070c18;overflow:hidden}
.bt-feat-img img{width:100%;height:100%;object-fit:cover;display:block}
.bt-feat-img b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:46px}
.bt-feat-img em{position:absolute;left:10px;bottom:10px;font-style:normal;font-size:12.5px;font-weight:700;
  padding:5px 10px;border-radius:999px;background:rgba(6,10,22,.82);color:#eaf1ff;opacity:0;transform:translateY(6px);
  transition:opacity .16s,transform .16s}
.bt-feat:hover .bt-feat-img em{opacity:1;transform:none}
.bt-feat-body{padding:11px 12px 13px;min-width:0}
.bt-feat-body strong{color:var(--cg-text);font-size:14.5px;line-height:1.3;margin-bottom:4px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.bt-feat-body small{display:block;color:var(--cg-dim);font-size:12.5px;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media (max-width:860px){.bt-feat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media (max-width:420px){.bt-feat-body strong{font-size:14px}}


.bt-feat-grid.cols5{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:860px){.bt-feat-grid.cols5{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- home hero: the cosmic 3D sits behind the heading, nothing else ---------- */
.ug-home-hero{grid-template-columns:minmax(0,1fr)!important;min-height:0!important;padding:34px 0 18px!important;overflow:hidden}
.ug-home-hero .cgu-hero-stage.bt-hero-bg{position:absolute!important;inset:-30px -60px -10px!important;z-index:0!important;
  min-height:0!important;height:auto!important;opacity:.5;pointer-events:none;margin:0!important;
  -webkit-mask-image:radial-gradient(120% 100% at 72% 45%,#000 30%,transparent 78%);
  mask-image:radial-gradient(120% 100% at 72% 45%,#000 30%,transparent 78%)}
.ug-home-hero .bt-hero-bg canvas{inset:0!important;width:100%!important;height:100%!important}
.ug-home-hero .bt-hero-bg .cgu-hero-floaters{display:none!important}   /* these sat on top of the heading */
.ug-home-hero .bt-hero-bg.is-3d .cgu-hero-fallback{opacity:0}
.ug-home-hero .cgu-home-copy{position:relative;z-index:2}
@media (max-width:860px){
  .ug-home-hero .cgu-hero-stage.bt-hero-bg{inset:-20px -20px 0!important;opacity:.38;margin:0!important;
    -webkit-mask-image:radial-gradient(130% 100% at 50% 40%,#000 25%,transparent 80%);
    mask-image:radial-gradient(130% 100% at 50% 40%,#000 25%,transparent 80%)}
  .ug-home-hero{padding:22px 0 12px!important}
}
