
/* ShortcutGames polish 08 */
:root{
  --sg-bg:#ffffff;
  --sg-surface:#ffffff;
  --sg-text:#111111;
  --sg-muted:#6b7280;
  --sg-border:#d9d9df;
  --sg-border-strong:#bdbdc7;
  --sg-soft:#f6f6f8;
  --sg-shadow:0 10px 24px rgba(17,17,17,.06);
}

/* Unified black/white category cards */
.browse-categories-section{
  padding: 18px 0 8px !important;
  background: transparent !important;
}
.browse-categories-inner{
  max-width: 1400px;
  margin: 0 auto;
  background:#fff !important;
  border:1px solid var(--sg-border) !important;
  border-radius:20px !important;
  padding:22px !important;
  box-shadow: var(--sg-shadow);
}
.browse-categories-head{
  margin-bottom:16px !important;
}
.browse-categories-head h2{
  color:var(--sg-text) !important;
  font-size:clamp(1.45rem,2.3vw,2rem) !important;
  line-height:1.1 !important;
  margin:0 0 8px !important;
}
.browse-categories-head p{
  color:#4b5563 !important;
  font-size:1rem !important;
  margin:0 !important;
}
.browse-categories-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr)) !important;
  gap:14px !important;
}
.browse-category-card,
.browse-category-card.puzzle,
.browse-category-card.all,
.browse-category-card.action,
.browse-category-card.sports,
.browse-category-card.card,
.browse-category-card.io,
.browse-category-card.racing,
.browse-category-card.drift,
.browse-category-card.parking,
.browse-category-card.traffic,
.browse-category-card.stunt,
.browse-category-card.simulator{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  min-height:94px !important;
  padding:16px !important;
  border-radius:16px !important;
  border:1px solid var(--sg-border) !important;
  background:#fff !important;
  box-shadow:none !important;
  text-decoration:none !important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease, background .18s ease !important;
}
.browse-category-card:hover{
  transform:translateY(-2px) !important;
  border-color:#111 !important;
  box-shadow:0 10px 18px rgba(0,0,0,.06) !important;
  background:#fcfcfc !important;
}
.browse-category-icon{
  width:52px !important;
  height:52px !important;
  flex:0 0 52px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:14px !important;
  border:1px solid var(--sg-border) !important;
  background:var(--sg-soft) !important;
  color:#111 !important;
  font-size:1.45rem !important;
  box-shadow:none !important;
}
.browse-category-text{display:flex !important; flex-direction:column !important; gap:3px !important;}
.browse-category-title{
  font-size:1.12rem !important;
  line-height:1.1 !important;
  font-weight:800 !important;
  color:#111 !important;
}
.browse-category-sub{
  font-size:.95rem !important;
  line-height:1.3 !important;
  color:#5f6470 !important;
}

/* Stronger Play Next panel on game pages */
body.game-page-has-next main{
  display:grid !important;
  grid-template-columns: minmax(0,1fr) 360px !important;
  gap:24px !important;
  align-items:start !important;
  max-width:1480px !important;
}
body.game-page-has-next .ad-left,
body.game-page-has-next .ad-right{
  display:none !important;
}
body.game-page-has-next .game-wrapper{min-width:0 !important; width:100% !important;}
.play-next-sidebar{
  width:100%;
  position:sticky;
  top:104px;
  align-self:start;
  background:#fff;
  border:1px solid var(--sg-border);
  border-radius:18px;
  padding:18px;
  box-shadow:var(--sg-shadow);
}
.play-next-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-bottom:14px;
}
.play-next-head h3{
  margin:0; font-size:1.55rem; line-height:1.1; color:#111; font-weight:800;
}
.play-next-count{font-size:.9rem; color:#6b7280;}
.play-next-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.play-next-card{
  display:block;
  text-decoration:none;
  color:#111;
}
.play-next-thumb{
  position:relative;
  width:100%;
  aspect-ratio: 16 / 10;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--sg-border);
  background:#f3f4f6;
}
.play-next-thumb img{
  width:100%; height:100%; object-fit:cover; display:block; transition:transform .2s ease;
}
.play-next-card:hover .play-next-thumb img{ transform:scale(1.04); }
.play-next-title{
  margin-top:7px;
  font-size:.95rem;
  font-weight:700;
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.more-games{
  padding:2rem 1rem 2.4rem !important;
  background:#fff !important;
  text-align:left !important;
}
.more-games h3, .related-heading{
  font-size:1.6rem !important;
  margin:0 auto 1.1rem !important;
  color:#111 !important;
  max-width:1400px;
}
.more-games .container{max-width:1400px; margin:0 auto;}
.game-gallery{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr)) !important;
  gap:16px !important;
  padding:0 !important;
  justify-items:stretch !important;
}
.hero-game-card,.related-game-card{
  display:block;
  text-decoration:none;
  color:#111;
}
.hero-game-card .hero-game-thumb, .related-game-card .related-thumb{
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--sg-border);
  background:#f3f4f6;
  aspect-ratio: 16 / 10;
}
.hero-game-card img, .related-game-card img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.hero-game-title, .related-title{
  padding-top:8px; font-size:.98rem; font-weight:700; line-height:1.3;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.hero-game-stars{font-size:.86rem; color:#f5a623; padding-top:4px;}
@media (max-width: 1100px){
  body.game-page-has-next main{ grid-template-columns:1fr !important; }
  .play-next-sidebar{ position:static; top:auto; order:3; }
}
@media (max-width: 768px){
  .browse-categories-inner{ padding:16px !important; border-radius:18px !important; }
  .browse-categories-grid{ grid-template-columns:1fr !important; gap:10px !important; }
  .browse-category-card{ min-height:84px !important; padding:14px !important; }
  .play-next-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .play-next-head h3{ font-size:1.35rem; }
}
