/*
Theme Name: GameDoodler
Theme URI: https://gamedoodler.com
Author: GameDoodler
Description: GameDoodler – Play Google Doodle and Browser Games. Professional dark game portal theme with dark background, green play buttons, big game cards, genre filters, related games, SEO ready.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: gamedoodler
*/

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  background: #0f1117;
  color: #e8eaf0;
  font-size: 15px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =============================================
   CSS VARIABLES — DARK THEME
============================================= */
:root {
  --bg:           #0f1117;
  --bg2:          #181c27;
  --surface:      #1e2235;
  --surface2:     #252a40;
  --border:       rgba(255,255,255,0.08);
  --border2:      rgba(255,255,255,0.14);
  --green:        #2ecc71;
  --green-hover:  #25d468;
  --text:         #e8eaf0;
  --text2:        #a0a8c0;
  --text3:        #6b7494;
  --tag-bg:       rgba(255,255,255,0.07);
  --tag-text:     #c0c8e0;
  --radius:       14px;
  --radius-sm:    8px;
}

/* =============================================
   LAYOUT
============================================= */
.gz-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.gz-container--narrow { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* =============================================
   TOP NAV
============================================= */
#gz-header {
  background: #13161f;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.gz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.gz-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.gz-logo__icon {
  width: 36px; height: 36px;
  background: var(--green);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; font-weight: 800;
}
.gz-logo__text span { color: var(--green); }
.gz-nav__links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.gz-nav__link {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px; font-weight: 500;
  color: var(--text2);
  transition: all 0.15s;
  white-space: nowrap;
}
.gz-nav__link:hover,
.gz-nav__link.current-menu-item { background: rgba(46,204,113,0.12); color: var(--green); }
.gz-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border-radius: 24px;
  padding: 8px 16px;
  border: 1px solid var(--border2);
  transition: all 0.2s;
  min-width: 200px;
}
.gz-search:focus-within { border-color: var(--green); }
.gz-search input { background: none; border: none; outline: none; font-size: 14px; color: var(--text); width: 100%; }
.gz-search input::placeholder { color: var(--text3); }
.gz-hamburger { display: none; cursor: pointer; font-size: 22px; color: var(--text2); background: none; border: none; }

/* =============================================
   HERO
============================================= */
.gz-hero {
  background: #13161f;
  padding: 44px 20px 36px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.gz-hero h1 {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800; color: #fff;
  margin-bottom: 10px;
  letter-spacing: -1px; line-height: 1.15;
}
.gz-hero p { font-size: 15px; color: var(--text2); }

/* =============================================
   GENRE BAR
============================================= */
.gz-genre-bar {
  background: #13161f;
  border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.gz-genre-bar::-webkit-scrollbar { display: none; }
.gz-genre-bar__inner {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; white-space: nowrap;
}
.gz-genre-pill {
  padding: 7px 18px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border2);
  background: transparent; color: var(--text2);
  cursor: pointer; transition: all 0.15s; flex-shrink: 0;
}
.gz-genre-pill:hover { border-color: var(--green); color: var(--green); }
.gz-genre-pill.active,
.gz-genre-pill.current-cat { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }

/* =============================================
   SECTION HEADER
============================================= */
.gz-section { padding: 32px 0 0; }
.gz-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.gz-section__title { font-size: 20px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; }
.gz-view-all { font-size: 13px; color: var(--text2); font-weight: 500; transition: color 0.15s; }
.gz-view-all:hover { color: var(--green); }

/* =============================================
   GAME GRID
============================================= */
.gz-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* =============================================
   GAME CARD — Dark style matching screenshot
============================================= */
.gz-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.gz-card:hover {
  transform: translateY(-5px);
  border-color: rgba(46,204,113,0.3);
  background: var(--surface2);
}

/* Thumbnail */
.gz-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface2);
  flex-shrink: 0;
}
.gz-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.gz-card:hover .gz-card__thumb img { transform: scale(1.06); }

/* NEW / HOT badge — top left corner like screenshot */
.gz-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--green);
  color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
}
.gz-card__badge--hot { background: #e74c3c; }

/* Card body */
.gz-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

/* Title — white, bold, 2 lines max */
.gz-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Description — muted, 2 lines */
.gz-card__desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* GREEN Play Now button — exactly like screenshot */
.gz-card__play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  margin-top: 2px;
}
.gz-card__play-btn:hover { background: var(--green-hover); }
.gz-card__play-btn:active { transform: scale(0.98); }
.gz-card__play-icon {
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent #fff;
  flex-shrink: 0;
}

/* Genre tags row — bottom like screenshot */
.gz-card__tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.gz-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-weight: 500;
  border: 1px solid var(--border2);
  transition: all 0.15s;
  white-space: nowrap;
}
.gz-tag:hover { border-color: var(--green); color: var(--green); }
.gz-card__fav {
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--text3);
  transition: color 0.15s; padding: 0;
  margin-left: auto; line-height: 1; flex-shrink: 0;
}
.gz-card__fav:hover, .gz-card__fav.active { color: #e74c3c; }

/* =============================================
   GENRE GRID
============================================= */
.gz-genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.gz-genre-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  display: block;
}
.gz-genre-card:hover { border-color: var(--green); background: var(--surface2); }
.gz-genre-card__emoji { font-size: 28px; margin-bottom: 8px; }
.gz-genre-card__name { font-size: 13px; font-weight: 600; color: #fff; }
.gz-genre-card__count { font-size: 11px; color: var(--text3); margin-top: 3px; }

/* =============================================
   SINGLE GAME PAGE
============================================= */
.gz-single { padding: 24px 0 48px; }
.gz-breadcrumb {
  font-size: 12px; color: var(--text3);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.gz-breadcrumb a { color: var(--green); }
.gz-breadcrumb a:hover { text-decoration: underline; }
.gz-single__layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.gz-game-frame {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--border2);
}
.gz-game-frame iframe { width: 100%; height: 100%; border: none; display: block; }
.gz-single__title { font-size: 26px; font-weight: 800; color: #fff; margin: 18px 0 10px; letter-spacing: -0.5px; }
.gz-single__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; color: var(--text2); }
.gz-single__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.gz-single__desc { font-size: 14px; line-height: 1.85; color: var(--text2); }
.gz-single__desc h2 { font-size: 18px; font-weight: 700; color: #fff; margin: 24px 0 10px; }
.gz-single__desc p { margin-bottom: 14px; }
.gz-single__desc ul { padding-left: 20px; list-style: disc; margin-bottom: 14px; }
.gz-single__desc ul li { margin-bottom: 6px; }

.gz-share { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.gz-share__label { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.gz-share__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.gz-share__btn {
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  border: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  color: #fff; transition: opacity 0.15s;
}
.gz-share__btn:hover { opacity: 0.85; }
.gz-share__btn--wa  { background: #25d366; }
.gz-share__btn--tw  { background: #1da1f2; }
.gz-share__btn--fb  { background: #1877f2; }
.gz-share__btn--copy { background: var(--surface2); border: 1px solid var(--border2); }

/* Sidebar */
.gz-sidebar__widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.gz-sidebar__title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.gz-sidebar__game { display: flex; gap: 10px; margin-bottom: 12px; align-items: center; }
.gz-sidebar__game:last-child { margin-bottom: 0; }
.gz-sidebar__thumb { width: 64px; height: 42px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--surface2); }
.gz-sidebar__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gz-sidebar__name { font-size: 12px; font-weight: 500; color: var(--text); line-height: 1.3; }
.gz-sidebar__cat  { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* =============================================
   RELATED GAMES
============================================= */
.gz-related { padding: 36px 0 48px; border-top: 1px solid var(--border); margin-top: 36px; }
.gz-related__title { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

/* =============================================
   CATEGORY PAGE
============================================= */
.gz-cat-header { background: #13161f; border-bottom: 1px solid var(--border); padding: 28px 0; margin-bottom: 32px; }
.gz-cat-header__inner { display: flex; align-items: center; gap: 16px; }
.gz-cat-header__emoji { font-size: 44px; }
.gz-cat-header__name { font-size: 28px; font-weight: 800; color: #fff; }
.gz-cat-header__count { font-size: 14px; color: var(--text2); margin-top: 4px; }

.gz-pagination { display: flex; justify-content: center; gap: 6px; padding: 24px 0 48px; flex-wrap: wrap; }
.gz-pagination a, .gz-pagination span {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border2);
  color: var(--text2); background: var(--surface); transition: all 0.15s;
}
.gz-pagination a:hover, .gz-pagination .current { background: var(--green); border-color: var(--green); color: #fff; }

/* =============================================
   INFO BOX
============================================= */
.gz-infobox {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px;
  margin-bottom: 40px;
  font-size: 14px; color: var(--text2); line-height: 1.85;
}
.gz-infobox h2 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }

/* =============================================
   SEARCH RESULTS
============================================= */
.gz-search-header { padding: 28px 0 22px; }
.gz-search-header h1 { font-size: 22px; font-weight: 700; color: #fff; }
.gz-search-header span { color: var(--green); }
.gz-no-results { text-align: center; padding: 70px 20px; color: var(--text2); }
.gz-no-results__icon { font-size: 52px; margin-bottom: 18px; }
.gz-no-results h2 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; }

/* =============================================
   FOOTER
============================================= */
#gz-footer {
  background: #13161f;
  border-top: 1px solid var(--border);
  padding: 36px 20px;
  text-align: center;
}
.gz-footer__logo { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.gz-footer__logo span { color: var(--green); }
.gz-footer__links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.gz-footer__link { font-size: 13px; color: var(--text2); transition: color 0.15s; }
.gz-footer__link:hover { color: var(--green); }
.gz-footer__copy { font-size: 12px; color: var(--text3); }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 960px) {
  .gz-single__layout { grid-template-columns: 1fr; }
  .gz-sidebar { display: none; }
}
@media (max-width: 640px) {
  .gz-nav__links { display: none; }
  .gz-nav__links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: #13161f; border-bottom: 1px solid var(--border);
    padding: 12px 20px; z-index: 99;
  }
  .gz-hamburger { display: block; }
  .gz-game-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .gz-search { min-width: 140px; }
  .gz-hero h1 { font-size: 26px; }
}

/* =============================================
   GLOBAL DARK OVERRIDES
   Catches any WordPress or plugin injected
   light-colored elements
============================================= */
body,
body.gz-dark,
#page, #content, #main, #primary, #secondary,
.site, .site-content, .site-main,
.wp-site-blocks, .entry-content,
.widget, .widget-area,
.wp-block-group, .wp-block-column,
main, article, aside, section {
  background: transparent !important;
  color: var(--text) !important;
}

/* Any raw <a> tags not given a class */
.gz-sidebar__widget a,
.gz-single__desc a {
  color: var(--green) !important;
}

/* Sidebar genre links — full dark override */
.gz-sidebar__widget a {
  color: #e8eaf0 !important;
  text-decoration: none;
}
.gz-sidebar__widget a:hover {
  color: var(--green) !important;
}

/* Any remaining inline-style overrides from WP */
.gz-sidebar__widget span,
.gz-sidebar__widget div,
.gz-sidebar__game div,
.gz-sidebar__info {
  color: var(--text2) !important;
}
.gz-sidebar__name,
.gz-sidebar__title {
  color: #fff !important;
}

/* Pagination numbers WP generates */
.page-numbers {
  background: var(--surface) !important;
  color: var(--text2) !important;
  border: 1px solid var(--border2) !important;
  border-radius: 8px !important;
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.page-numbers.current,
.page-numbers:hover {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: #fff !important;
}

/* =============================================
   ALSO TRY BAR — like gamesdoodle.org
============================================= */
.gz-also-try {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.gz-also-try::-webkit-scrollbar { display: none; }
.gz-also-try__label {
  font-size: 13px;
  color: var(--text3);
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}
.gz-also-try__list {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.gz-also-try__list::-webkit-scrollbar { display: none; }
.gz-also-try__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}
.gz-also-try__item:hover { border-color: var(--green); color: var(--green); }
.gz-also-try__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* =============================================
   FULLSCREEN BUTTON BAR
============================================= */
.gz-fullscreen-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}
.gz-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}
.gz-fullscreen-btn:hover { border-color: var(--green); color: var(--green); }

/* =============================================
   GAME IFRAME — bigger on mobile
============================================= */
.gz-game-frame {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  /* 16:9 on desktop */
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border2);
  margin-bottom: 16px;
}
.gz-game-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
/* On mobile — taller so games render properly */
@media (max-width: 640px) {
  .gz-game-frame {
    /* Override aspect-ratio with fixed tall height on mobile */
    aspect-ratio: unset !important;
    height: 420px !important;
    border-radius: 10px;
  }
  .gz-game-frame iframe {
    height: 420px !important;
  }
}
@media (min-width: 641px) and (max-width: 900px) {
  .gz-game-frame {
    aspect-ratio: unset !important;
    height: 480px !important;
  }
  .gz-game-frame iframe {
    height: 480px !important;
  }
}

/* =============================================
   ACTION BUTTONS (Favorite + Share)
============================================= */
.gz-action-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.gz-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}
.gz-action-btn:hover { border-color: var(--green); color: var(--green); }
.gz-fav-btn.active { border-color: #e74c3c; color: #e74c3c; }

/* Share panel */
.gz-share-panel {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* =============================================
   RATING BAR (like / dislike)
============================================= */
.gz-rating-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 14px 0;
  flex-wrap: wrap;
}
.gz-rate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}
.gz-rate-like:hover  { border-color: var(--green); color: var(--green); }
.gz-rate-dislike:hover { border-color: #e74c3c; color: #e74c3c; }
.gz-rate-bar {
  flex: 1;
  min-width: 80px;
  height: 8px;
  background: var(--surface2);
  border-radius: 4px;
  overflow: hidden;
}
.gz-rate-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  transition: width 0.3s;
}
.gz-rate-pct {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}

/* =============================================
   AD SLOTS
   Works with ANY ad network:
   AdSense, Adsterra, PropellerAds, Media.net,
   Ezoic, Monumetric, BuySellAds — all of them.
   The container is fully fluid and never forces
   a fixed width or height. The ad script inside
   controls its own dimensions. When the slot is
   empty it collapses to zero and shows nothing.
============================================= */

/* Base — all 4 slots share these rules */
.gz-ad {
  display: block;
  width: 100%;          /* fills the column it sits in */
  max-width: 100%;      /* never overflows parent */
  margin: 16px auto;    /* breathing room above & below */
  text-align: center;   /* centres fixed-size ad units */
  overflow: hidden;     /* clips anything wider than col */
  line-height: 0;       /* removes phantom whitespace gap */
  box-sizing: border-box;
}

/* Collapse completely when nothing is pasted in */
.gz-ad:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Make every iframe/ins/div the ad network injects
   stretch to fill our container width naturally */
.gz-ad iframe,
.gz-ad ins,
.gz-ad div,
.gz-ad script + div {
  max-width: 100% !important;
  width: 100% !important;
}

/* ── Slot 1 — Before game ───────────────────
   Sits between "Also try" bar and the game.
   Wide slot — good for leaderboard or banner. */
.gz-ad-1 {
  margin-bottom: 10px;
}

/* ── Slot 2 — After game ────────────────────
   Sits after the rating bar before description.
   Prime real estate — above the fold on desktop. */
.gz-ad-2 {
  margin-top: 10px;
}

/* ── Slot 3 — Sidebar ───────────────────────
   Sits in the 300px right sidebar.
   Works well with 300×250 or 300×600 units.
   On mobile sidebar is hidden so this slot
   never shows on small screens. */
.gz-ad-3 {
  margin: 12px 0;
}

/* ── Slot 4 — End of content ────────────────
   Sits after the description, before related games.
   Good for in-content or footer-style units. */
.gz-ad-4 {
  margin-top: 14px;
  margin-bottom: 6px;
}

/* On mobile all 4 slots stay full width and
   the ad network's own responsive logic takes over */
@media (max-width: 640px) {
  .gz-ad { margin: 10px auto; }
}
