/* Create Game hub (/create-game/) — lives under /site-assets/ — scoped .create-game-v3 */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;900&display=swap");

/* Aligned to new top bar: .ppg-container-v3 in /header/header_topbar.css (overrides any later .container/bootstrap width). */
.create-game-v3 .ppg-container-v3 {
  display: block;
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Main + right rail (desktop); mobile in-flow ad below */
.create-game-v3 .ppg-cg-rail {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.create-game-v3 .ppg-cg-main {
  flex: 1 1 auto;
  min-width: 0;
  order: 1;
}
.create-game-v3 .ppg-cg-ad {
  flex: 0 0 300px;
  width: 300px;
  max-width: 300px;
  order: 2;
  position: sticky;
  top: 80px;
  padding: 10px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: flex-start;
  box-sizing: border-box;
}
.create-game-v3 .ppg-cg-ad-unit {
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  max-width: 100%;
  box-sizing: border-box;
}
/* Fallback when no first desktop slot */
.create-game-v3 .ppg-cg-ad-fallback {
  min-height: 250px;
  width: 100%;
  max-width: 300px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fd 100%);
  border: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  justify-content: center;
}
.create-game-v3 .ppg-cg-ad-fallback-badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.create-game-v3 .ppg-cg-ad-fallback-headline {
  font-size: 17px;
  font-weight: 700;
  color: var(--head);
  line-height: 1.25;
  margin-bottom: 6px;
}
.create-game-v3 .ppg-cg-ad-fallback-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.45;
}
.create-game-v3 .ppg-cg-ad-fallback-cta {
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  padding: 8px 20px;
  text-decoration: none;
  display: inline-block;
}
.create-game-v3 .ppg-cg-ad-fallback-cta:hover {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}
.create-game-v3 .ppg-cg-mob-ad {
  display: none;
  text-align: center;
  margin: 0 0 16px;
  padding: 0 0 8px;
}
.create-game-v3 {
  --blue: #1870d5;
  --blue-dark: #0a53a8;
  --head: #2e2e2e;
  --body: #4d4d4d;
  --muted: #a7a7a8;
  --border: #e8eaf0;
  --r-card: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.12);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  color: var(--body);
  line-height: 1.5;
  padding-bottom: 48px;
}
.create-game-v3 .create-game-bc {
  padding: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
}
.create-game-v3 .create-game-bc a {
  color: var(--blue);
  text-decoration: none;
}
.create-game-v3 .create-game-bc a:hover {
  text-decoration: underline;
}
.create-game-v3 .create-game-bc span {
  margin: 0 6px;
}
.create-game-v3 .game-intrn {
  display: none;
}
.create-game-v3 .post-success {
  display: block;
  margin: 20px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--head);
}
/* Page title */
.create-game-v3 .cg-page-title {
  text-align: center;
  padding: 36px 0 8px;
}
.create-game-v3 .cg-page-title h1 {
  font-size: 32px;
  font-weight: 900;
  color: var(--head);
  margin: 0 0 10px;
  letter-spacing: -0.4px;
  line-height: 1.12;
}
.create-game-v3 .cg-page-title p {
  font-size: 16px;
  color: var(--body);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}
/* Section — use full main column width next to ad rail */
.create-game-v3 .cg-games-section {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 20px 0 48px;
  box-sizing: border-box;
}
.create-game-v3 .ppg-cg-main .cg-games-section {
  padding-left: 0;
  padding-right: 0;
}
.create-game-v3 .cg-section-head {
  margin-bottom: 22px;
  text-align: left;
}
.create-game-v3 .cg-section-head h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--head);
  margin: 0 0 4px;
}
.create-game-v3 .cg-section-head p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.create-game-v3 .cg-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* “Also at ProProfs” — single promo card, centered (desktop width via .cg-games) */
.create-game-v3 .cg-games {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
.create-game-v3 .cg-games-grid--also {
  grid-template-columns: 1fr;
}
/* Cards */
.create-game-v3 .cg-game-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.create-game-v3 .cg-game-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.create-game-v3 .cg-game-thumb {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.create-game-v3 .cg-game-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.create-game-v3 .cg-game-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--head);
}
.create-game-v3 .cg-game-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
  margin: 0 0 2px;
}
.create-game-v3 .cg-game-btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.create-game-v3 .cg-btn-create {
  flex: 1;
  min-width: 0;
  background: var(--blue);
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
  box-sizing: border-box;
  overflow: visible;
}
/* Pencil icon — avoid global img/svg rules collapsing inline SVG */
.create-game-v3 .cg-btn-create svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  display: block;
  vertical-align: middle;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  color: inherit;
}
.create-game-v3 .cg-btn-create:hover {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}
.create-game-v3 .cg-btn-play {
  background: #fff;
  color: var(--body);
  font-family: Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-sizing: border-box;
  transition: border-color 0.15s, color 0.15s;
}
.create-game-v3 .cg-btn-play:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}
.create-game-v3 .create-game-sec-title {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--head);
  margin: 40px 0 20px;
  letter-spacing: -0.3px;
}
@media (max-width: 1024px) {
  .create-game-v3 .cg-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1100px) {
  .create-game-v3 .ppg-cg-rail {
    display: block;
  }
  .create-game-v3 .ppg-cg-ad {
    display: none;
  }
  .create-game-v3 .ppg-cg-mob-ad {
    display: block;
  }
}
@media (max-width: 768px) {
  .create-game-v3 .cg-page-title h1 {
    font-size: 24px;
  }
  .create-game-v3 .cg-games-section {
    padding: 12px 8px 40px;
  }
  .create-game-v3 .cg-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .create-game-v3 .cg-games {
    max-width: none;
  }
  .create-game-v3 .cg-games-grid--also {
    grid-template-columns: 1fr;
  }
  .create-game-v3 .cg-game-thumb {
    height: 96px;
  }
  .create-game-v3 .cg-btn-create svg,
  .create-game-v3 .cg-btn-play {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .create-game-v3 .cg-games-grid {
    grid-template-columns: 1fr;
  }
}
