/* Tables & shared */
.cpm-table-wrap { overflow-x: auto; margin: 16px 0; }
.cpm-table { width: 100%; border-collapse: collapse; border: 1px solid #dbeafe; background: #fff; }
.cpm-table th, .cpm-table td { border: 1px solid #dbeafe; padding: 10px; vertical-align: top; }
.cpm-table th { background: #eff6ff; color: #1e3a8a; }

.ck-shortcode-empty { padding: 12px 14px; border: 1px dashed #93c5fd; background: #eff6ff; border-radius: 8px; color: #1e3a8a; }

/* Buttons (shortcodes) */
.cpm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(165deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  border: 0;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cpm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  color: #fff !important;
}
.cpm-btn--ghost {
  background: #fff;
  color: #1e40af !important;
  border: 1px solid #bfdbfe;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.cpm-btn--ghost:hover {
  background: #eff6ff;
  color: #1e3a8a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Rating (shortcode cards; mirrors templates.css) */
.ck-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.ck-rating__value {
  font-weight: 700;
  color: #1e3a8a;
  font-size: 0.95rem;
}
.ck-rating__stars {
  display: inline-block;
  width: 5.5rem;
  height: 0.45rem;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    #f59e0b calc(var(--ck-rating-fill, 0.6) * 100%),
    #e2e8f0 0
  );
}

/* Grids */
.cpm-casino-grid,
.cpm-games-grid,
.cpm-bonus-list {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.cpm-casino-grid--style-1 { grid-template-columns: 1fr; }
.cpm-casino-grid--style-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cpm-casino-grid--style-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cpm-games-grid--style-1 { grid-template-columns: 1fr; }
.cpm-games-grid--style-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cpm-games-grid--style-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cpm-bonus-list--style-1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cpm-bonus-list--style-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cpm-bonus-list--style-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Casinos list (same column counts as games / casino grid) */
.cpm-casinos-list {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.cpm-casinos-list--style-1 { grid-template-columns: 1fr; }
.cpm-casinos-list--style-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cpm-casinos-list--style-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cpm-casino-list-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cpm-casino-list-card:hover {
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.cpm-casino-list-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  text-decoration: none !important;
}
.cpm-casino-list-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cpm-casino-list-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 140px;
}
.cpm-casino-list-card__placeholder-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  opacity: 0.45;
}

.cpm-casino-list-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
}

.cpm-casino-list-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cpm-casino-list-card__title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}
.cpm-casino-list-card__title a {
  color: #0f172a;
  text-decoration: none !important;
}
.cpm-casino-list-card__title a:hover {
  color: #2563eb;
}

.cpm-casino-list-card__k {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-right: 0.25rem;
}

.cpm-casino-list-card__rating .ck-rating {
  display: inline-flex;
  vertical-align: middle;
}

.cpm-casino-list-card__pc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: stretch;
}

.cpm-casino-list-card__pc .ck-signbox {
  margin: 0;
  padding: 10px 12px 8px;
}
.cpm-casino-list-card__pc .ck-signbox__head {
  margin-bottom: 6px;
}
.cpm-casino-list-card__pc .ck-signbox__head h3 {
  font-size: 0.95rem;
  line-height: 1.2;
}
.cpm-casino-list-card__pc .ck-signbox__badge {
  width: 32px;
  height: 32px;
  font-size: 18px;
}
.cpm-casino-list-card__pc .ck-signbox__text {
  font-size: 0.82rem;
  line-height: 1.35;
}
.cpm-casino-list-card__pc .ck-signbox__list li {
  padding: 5px 0;
  gap: 8px;
}
.cpm-casino-list-card__pc .ck-signbox__icon {
  font-size: 16px;
}

.cpm-casino-list-card__restricted {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #9a3412;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.cpm-casino-list-card__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

/* Style 1 — full width row: horizontal card like games style 1 */
.cpm-casinos-list--style-1 .cpm-casino-list-card {
  flex-direction: row;
  align-items: stretch;
}
.cpm-casinos-list--style-1 .cpm-casino-list-card__media {
  flex: 0 0 38%;
  max-width: 300px;
  aspect-ratio: auto;
  min-height: 200px;
}
.cpm-casinos-list--style-1 .cpm-casino-list-card__img,
.cpm-casinos-list--style-1 .cpm-casino-list-card__placeholder {
  min-height: 200px;
}
.cpm-casinos-list--style-1 .cpm-casino-list-card__body {
  flex: 1;
  min-width: 0;
}

/* Style 3 — dark theme: content text light on dark */
.cpm-casinos-list--style-3 .cpm-casino-list-card {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}
.cpm-casinos-list--style-3 .cpm-casino-list-card__title a {
  color: #f8fafc !important;
}
.cpm-casinos-list--style-3 .cpm-casino-list-card__title a:hover {
  color: #93c5fd !important;
}
.cpm-casinos-list--style-3 .cpm-casino-list-card__k {
  color: #cbd5e1;
}
.cpm-casinos-list--style-3 .ck-rating__value {
  color: #f8fafc !important;
}
.cpm-casinos-list--style-3 .ck-rating__stars {
  background: linear-gradient(
    90deg,
    #fbbf24 calc(var(--ck-rating-fill, 0.6) * 100%),
    rgba(148, 163, 184, 0.45) 0
  );
}
.cpm-casinos-list--style-3 .cpm-casino-list-card__restricted {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fef3c7;
}
.cpm-casinos-list--style-3 .cpm-btn {
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
}
.cpm-casinos-list--style-3 .cpm-btn--ghost {
  background: transparent;
  color: #f8fafc !important;
  border-color: rgba(248, 250, 252, 0.45);
}
.cpm-casinos-list--style-3 .cpm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.cpm-casinos-list--style-3 .cpm-casino-list-card__pc .ck-signbox {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.35);
}
.cpm-casinos-list--style-3 .cpm-casino-list-card__pc .ck-signbox__head h3 {
  color: #f8fafc !important;
}
.cpm-casinos-list--style-3 .cpm-casino-list-card__pc .ck-signbox__text {
  color: #f1f5f9 !important;
}
.cpm-casinos-list--style-3 .cpm-casino-list-card__pc .ck-signbox__list li {
  border-top-color: rgba(148, 163, 184, 0.25);
}
.cpm-casinos-list--style-3 .cpm-casino-list-card__pc .ck-signbox--pros .ck-signbox__icon {
  color: #6ee7b7;
}
.cpm-casinos-list--style-3 .cpm-casino-list-card__pc .ck-signbox--cons .ck-signbox__icon {
  color: #fda4af;
}
.cpm-casinos-list--style-3 .cpm-casino-list-card__pc .ck-signbox--style-1.ck-signbox--pros .ck-signbox__badge,
.cpm-casinos-list--style-3 .cpm-casino-list-card__pc .ck-signbox--style-2.ck-signbox--pros .ck-signbox__badge {
  background: rgba(6, 78, 59, 0.8);
  color: #a7f3d0;
}
.cpm-casinos-list--style-3 .cpm-casino-list-card__pc .ck-signbox--style-1.ck-signbox--cons .ck-signbox__badge,
.cpm-casinos-list--style-3 .cpm-casino-list-card__pc .ck-signbox--style-2.ck-signbox--cons .ck-signbox__badge {
  background: rgba(131, 24, 67, 0.75);
  color: #fbcfe8;
}
.cpm-casinos-list--style-3 .cpm-casino-list-card__pc .ck-signbox--style-3 {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.4);
}
.cpm-casinos-list--style-3 .cpm-casino-list-card__pc .ck-signbox--style-3.ck-signbox--pros .ck-signbox__badge {
  background: rgba(6, 78, 59, 0.85);
  color: #6ee7b7;
}
.cpm-casinos-list--style-3 .cpm-casino-list-card__pc .ck-signbox--style-3.ck-signbox--cons .ck-signbox__badge {
  background: rgba(131, 24, 67, 0.85);
  color: #fbcfe8;
}

/* Card shell */
.cpm-casino-card,
.cpm-game-card,
.cpm-bonus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.cpm-casino-card:hover,
.cpm-game-card:hover,
.cpm-bonus-card:hover {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* Media block (16:9) */
.cpm-casino-card__media,
.cpm-game-card__media,
.cpm-bonus-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  overflow: hidden;
  text-decoration: none !important;
}
.cpm-casino-card__img,
.cpm-game-card__img,
.cpm-bonus-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.cpm-casino-card:hover .cpm-casino-card__img,
.cpm-game-card:hover .cpm-game-card__img,
.cpm-bonus-card:hover .cpm-bonus-card__img {
  transform: scale(1.04);
}

.cpm-casino-card__placeholder,
.cpm-game-card__placeholder,
.cpm-bonus-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
}
.cpm-casino-card__placeholder-icon,
.cpm-game-card__placeholder-icon,
.cpm-bonus-card__placeholder-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  opacity: 0.45;
}

/* Card body */
.cpm-casino-card__body,
.cpm-game-card__body,
.cpm-bonus-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.1rem 1.15rem;
  gap: 0.65rem;
}

.cpm-casino-card__title,
.cpm-game-card__title,
.cpm-bonus-card__title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
}
.cpm-casino-card__title a,
.cpm-game-card__title a,
.cpm-bonus-card__title a {
  color: inherit;
  text-decoration: none !important;
}
.cpm-casino-card__title a:hover,
.cpm-game-card__title a:hover,
.cpm-bonus-card__title a:hover {
  color: #2563eb;
}

.cpm-casino-card__rating-row {
  min-height: 1.25rem;
}

.cpm-casino-card__excerpt {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cpm-casino-card__footer,
.cpm-game-card__actions,
.cpm-bonus-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}
.cpm-casino-card__footer .ck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  background: linear-gradient(165deg, #3b82f6 0%, #2563eb 100%);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  border: 0;
}
.cpm-casino-card__footer .ck-btn:hover {
  color: #fff !important;
  filter: brightness(1.05);
}

/* Game meta chips */
.cpm-game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cpm-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.cpm-chip--accent {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.cpm-game-card__demo {
  border-top: 1px solid #f1f5f9;
  background: #0f172a;
  padding: 0.65rem;
}
.cpm-game-card__demo .cpm-iframe-wrap {
  border-radius: 10px;
  overflow: hidden;
  background: #020617;
}
.cpm-game-card__demo .cpm-iframe-wrap iframe {
  width: 100%;
  min-height: 200px;
  max-height: 280px;
  border: 0;
  display: block;
}

.cpm-iframe-wrap iframe {
  width: 100%;
  min-height: 220px;
  border: 0;
}

/* Style variants */
.cpm-casino-card--style-1 .cpm-casino-card__body {
  padding: 1.15rem 1.25rem 1.25rem;
}
.cpm-casino-card--style-3 {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 38%);
}

.cpm-game-card--style-1 {
  flex-direction: row;
  align-items: stretch;
}
.cpm-game-card--style-1 .cpm-game-card__media {
  flex: 0 0 38%;
  max-width: 220px;
  aspect-ratio: auto;
  min-height: 100%;
}
.cpm-game-card--style-1 .cpm-game-card__img,
.cpm-game-card--style-1 .cpm-game-card__placeholder {
  min-height: 160px;
}
.cpm-game-card--style-1 .cpm-game-card__body {
  flex: 1;
  min-width: 0;
}
.cpm-game-card--style-1 .cpm-game-card__demo {
  flex: 0 0 100%;
  order: 3;
}

.cpm-game-card--style-3 {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

.cpm-game-card--style-3 .cpm-game-card__title,
.cpm-game-card--style-3 .cpm-game-card__title a {
  color: #f8fafc !important;
}

.cpm-game-card--style-3 .cpm-game-card__title a:hover {
  color: #93c5fd !important;
}

.cpm-game-card--style-3 .cpm-chip {
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

.cpm-game-card--style-3 .cpm-chip--accent {
  background: rgba(30, 58, 138, 0.65);
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.45);
}

.cpm-game-card--style-3 .cpm-game-card__demo {
  border-top-color: rgba(51, 65, 85, 0.85);
}

.cpm-game-card--style-3 .cpm-btn {
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
}

.cpm-game-card--style-3 .cpm-btn--ghost {
  background: transparent;
  color: #f8fafc !important;
  border-color: rgba(248, 250, 252, 0.45);
}

.cpm-game-card--style-3 .cpm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.cpm-bonus-card--style-1 {
  border-left: 4px solid #2563eb;
}
.cpm-bonus-card--style-3 {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
}

.cpm-bonus-card__facts {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cpm-bonus-card__fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  font-size: 0.88rem;
}
.cpm-bonus-card__fact dt {
  margin: 0;
  font-weight: 600;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cpm-bonus-card__fact dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
}
.cpm-promo-code {
  font-size: 0.85rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

@media (max-width: 1200px) {
  .cpm-bonus-list--style-2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .cpm-casino-grid--style-2,
  .cpm-games-grid--style-2,
  .cpm-casinos-list--style-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cpm-bonus-list--style-1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cpm-bonus-list--style-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .cpm-casino-grid--style-2,
  .cpm-casino-grid--style-3,
  .cpm-games-grid--style-2,
  .cpm-games-grid--style-3,
  .cpm-bonus-list--style-1,
  .cpm-bonus-list--style-2,
  .cpm-bonus-list--style-3 {
    grid-template-columns: 1fr;
  }
  .cpm-game-card--style-1 {
    flex-direction: column;
  }
  .cpm-game-card--style-1 .cpm-game-card__media {
    flex: none;
    max-width: none;
    aspect-ratio: 16 / 9;
  }
  .cpm-casinos-list--style-1 .cpm-casino-list-card {
    flex-direction: column;
  }
  .cpm-casinos-list--style-1 .cpm-casino-list-card__media {
    flex: none;
    max-width: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .cpm-casino-list-card__pc {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .cpm-casino-card__footer,
  .cpm-game-card__actions,
  .cpm-bonus-card__actions {
    flex-direction: column;
  }
  .cpm-casino-card__footer .cpm-btn,
  .cpm-casino-card__footer .ck-btn,
  .cpm-game-card__actions .cpm-btn,
  .cpm-game-card__actions .ck-game-demo-open.cpm-btn--free-play,
  .cpm-bonus-card__actions .cpm-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Sign list (unchanged) */
.ck-signbox { border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; padding: 18px 18px 14px; margin: 14px 0; }
.ck-signbox__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ck-signbox__head h3 { margin: 0; font-size: 1.9rem; line-height: 1.15; }
.ck-signbox__badge { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }
.ck-signbox__list { list-style: none; margin: 0; padding: 0; }
.ck-signbox__list li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-top: 1px solid #f1f5f9; }
.ck-signbox__list li:first-child { border-top: 0; }
.ck-signbox__icon { width: 18px; font-size: 24px; font-weight: 700; line-height: 1; margin-top: -1px; }
.ck-signbox__text { font-size: 1.45rem; line-height: 1.35; color: #374151; }

.ck-signbox--pros .ck-signbox__icon { color: #10b981; }
.ck-signbox--cons .ck-signbox__icon { color: #ec4899; }

.ck-signbox--style-1.ck-signbox--pros .ck-signbox__badge { background: #dcfce7; color: #22c55e; }
.ck-signbox--style-1.ck-signbox--cons .ck-signbox__badge { background: #fce7f3; color: #ec4899; }

.ck-signbox--style-2 { border-color: #cbd5e1; box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06); }
.ck-signbox--style-2 .ck-signbox__head h3 { font-size: 1.75rem; }
.ck-signbox--style-2.ck-signbox--pros .ck-signbox__badge { background: #eff6ff; color: #2563eb; }
.ck-signbox--style-2.ck-signbox--cons .ck-signbox__badge { background: #fff1f2; color: #e11d48; }

.ck-signbox--style-3 { background: #0f172a; border-color: #1e293b; color: #e2e8f0; }
.ck-signbox--style-3 .ck-signbox__head h3 { color: #f8fafc; font-size: 1.7rem; }
.ck-signbox--style-3 .ck-signbox__text { color: #e2e8f0; }
.ck-signbox--style-3 .ck-signbox__list li { border-top-color: #1e293b; }
.ck-signbox--style-3.ck-signbox--pros .ck-signbox__badge { background: #064e3b; color: #6ee7b7; }
.ck-signbox--style-3.ck-signbox--cons .ck-signbox__badge { background: #831843; color: #f9a8d4; }

/* Game demo modal (iframe popup) */
.ck-game-demo-modal[hidden] {
  display: none !important;
}

.ck-game-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.ck-game-demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.ck-game-demo-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1100px);
  max-height: min(92vh, 900px);
  background: #0f172a;
  border-radius: 14px;
  border: 1px solid #334155;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ck-game-demo-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ck-game-demo-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ck-game-demo-modal__frame {
  flex: 1;
  min-height: min(75vh, 720px);
  padding: 2.75rem 0.75rem 0.75rem;
  box-sizing: border-box;
}

.ck-game-demo-modal__iframe-shell {
  width: 100%;
  height: 100%;
  min-height: min(70vh, 680px);
  border-radius: 10px;
  overflow: hidden;
  background: #020617;
}

.ck-game-demo-modal__iframe-shell iframe {
  display: block;
  width: 100%;
  height: min(70vh, 680px);
  min-height: 400px;
  border: 0;
}

body.ck-game-demo-modal--open {
  overflow: hidden;
}

/* Free play — visually separate from primary Play; high contrast on light & dark cards */
.cpm-game-card__actions .ck-game-demo-open.cpm-btn--free-play,
.cpm-game-card__actions button.ck-game-demo-open.cpm-btn--free-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  border: 2px solid #d97706;
  background: #fffbeb;
  color: #78350f !important;
  box-shadow: 0 2px 0 rgba(180, 83, 9, 0.12);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cpm-game-card__actions .ck-game-demo-open.cpm-btn--free-play:hover,
.cpm-game-card__actions button.ck-game-demo-open.cpm-btn--free-play:hover {
  background: #fef3c7;
  color: #451a03 !important;
  border-color: #b45309;
  transform: translateY(-1px);
}

/* Style 1: primary row is still blue — keep amber free-play */
.cpm-game-card--style-1 .cpm-game-card__actions .ck-game-demo-open.cpm-btn--free-play {
  border-color: #ca8a04;
  background: #fffbeb;
}

/* Style 2: default amber free-play */

/* Style 3 (dark card): light button, dark text */
.cpm-game-card--style-3 .cpm-game-card__actions .ck-game-demo-open.cpm-btn--free-play {
  background: #fefce8 !important;
  color: #422006 !important;
  border: 2px solid #facc15 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.cpm-game-card--style-3 .cpm-game-card__actions .ck-game-demo-open.cpm-btn--free-play:hover {
  background: #fef9c3 !important;
  color: #1c1917 !important;
  border-color: #eab308 !important;
}
