/* "Party" skin for the in-house games: loaded after the kit and each game's own CSS.
 * Visual language read from the client's site (style only; no logo or images):
 *   page #040404, panels #25222f / #292534, raised #363247, insets #19171e, tint text #a090ab,
 *   pink #fb51c7 -> #ff2a7d gradient CTA, Poppins, 8px buttons, 12px panels, 16px thumbnails.
 * Specificity: :root[data-skin] beats the games' plain :root theme files.
 */
:root[data-skin] {
  /* surfaces */
  --ck-bg: #040404;
  --ck-frame: #0d0c11;
  --ck-frame-border: rgba(255, 255, 255, 0.05);
  --ck-col-divider: rgba(255, 255, 255, 0.05);
  --ck-surface-1: #1b1922;
  --ck-surface-2: #292534;
  --ck-surface-3: #121117;
  --ck-surface-hover: #363247;
  --ck-surface-active: #443d58;
  --ck-modal-bg: #1b1922;
  --ck-modal-card: #292534;
  --ck-scrim: rgba(4, 4, 4, 0.9);
  --ck-line: rgba(255, 255, 255, 0.07);
  --ck-line-strong: rgba(255, 255, 255, 0.14);

  /* text */
  --ck-text: #ffffff;
  --ck-text-muted: #a090ab;
  --ck-text-dim: #6c6378;
  --ck-text-on-accent: #ffffff;

  /* accent: hot pink */
  --ck-accent: #fb51c7;
  --ck-accent-2: #ff7fd6;
  --ck-accent-soft: rgba(251, 81, 199, 0.16);
  --ck-cta-gradient: linear-gradient(108deg, #fb51c7 10%, #ff2a7d 120%);
  --ck-cta-glow: 0 6px 24px rgba(251, 81, 199, 0.28);
  --ck-cta-text: #ffffff;
  --ck-cashout-gradient: linear-gradient(108deg, #8c5bff 0%, #5e34d4 100%);
  --ck-cashout-text: #ffffff;
  --ck-cancel-bg: #443d58;
  --ck-cancel-text: #ffffff;
  --ck-progress: #fb51c7;
  --ck-close-bg: #292534;
  --ck-close-fg: #a090ab;
  --ck-close-border: var(--ck-line);

  /* states */
  --ck-win: #5cd16a;
  --ck-success: #5cb531;
  --ck-danger: #ff3d6e;
  --ck-warn: #e7c071;
  --ck-info: #8c5bff;
  --ck-status-live: #5cb531;
  --ck-status-idle: #6c6378;
  --ck-status-offline: #ff3d6e;
  --ck-focus: #ff9be2;
  --ck-cashed-tint: rgba(92, 181, 49, 0.08);

  --ck-tier-low-bg: #4458f5;  --ck-tier-low-fg: #ffffff;
  --ck-tier-mid-bg: #853dea;  --ck-tier-mid-fg: #ffffff;
  --ck-tier-high-bg: #e12f80; --ck-tier-high-fg: #ffffff;
  --ck-chip-current-bg: #443d58;
  --ck-chip-current-fg: #ffffff;
  --ck-pill-bg: #292534;
  --ck-pill-fg: #ffffff;
  --ck-pill-label: #a090ab;

  --ck-avatar-0: #d652ae; --ck-avatar-1: #853dea; --ck-avatar-2: #4458f5; --ck-avatar-3: #a07d4e;
  --ck-avatar-4: #d9186e; --ck-avatar-5: #5e34d4; --ck-avatar-6: #4da84c; --ck-avatar-7: #6c6378;

  /* stage: near-black with a violet and pink haze */
  --ck-stage-bg: radial-gradient(120% 90% at 80% 0%, rgba(94, 52, 212, 0.35) 0%, transparent 55%),
                 radial-gradient(90% 80% at 10% 100%, rgba(251, 81, 199, 0.22) 0%, transparent 60%),
                 linear-gradient(180deg, #15121c 0%, #0b0a0f 100%);
  --ck-stage-border: rgba(255, 255, 255, 0.06);
  --ck-mult-color: #ffffff;
  --ck-mult-gradient: linear-gradient(180deg, #ffffff 0%, #ffc2ec 100%);
  --ck-mult-glow: 0 0 32px rgba(251, 81, 199, 0.35);
  --ck-mult-crashed: #ff3d6e;
  --ck-mult-cashed: #5cd16a;
  --ck-trail-color: rgba(255, 140, 220, 0.95);
  --ck-trail-glow: rgba(251, 81, 199, 0.35);
  --ck-wait-track: rgba(255, 255, 255, 0.12);
  --ck-wait-fill: #fb51c7;

  /* shape (client: buttons 8px, sections 12px, cards 8px, thumbnails 16px) */
  --ck-radius-frame: 12px;
  --ck-radius-panel: 12px;
  --ck-radius-card: 8px;
  --ck-radius-row: 8px;
  --ck-radius-pill: 8px;
  --ck-radius-chip: 4px;
  --ck-radius-input: 12px;

  /* type */
  --ck-font: "Poppins", "Montserrat", Arial, system-ui, sans-serif;
  --ck-font-display: var(--ck-font);
}

:root[data-skin] body { background: #040404; font-family: var(--ck-font); }

/* Candy marks and character slots: hidden (the images are blank in this build anyway) */
:root[data-skin] [class*="wordmark__mark"],
:root[data-skin] img[src*="candy-"],
:root[data-skin] [class*="pre__candy"],
:root[data-skin] [class*="pre__art"] img { display: none !important; }

/* wordmark: one plain name in white, bold, no italics */
:root[data-skin] [class*="-wordmark__a"] { color: #ffffff !important; font-family: var(--ck-font) !important; font-style: normal !important; letter-spacing: -0.01em; }
:root[data-skin] [class*="-wordmark__b"]:empty { display: none; }
:root[data-skin] [class$="-wordmark"], :root[data-skin] [class*="-wordmark "] { font-family: var(--ck-font) !important; font-weight: 700 !important; }

/* primary CTA: the client's pink gradient, 8px corners, bold caps */
:root[data-skin] .ck-btn--primary {
  background: var(--ck-cta-gradient) !important;
  border-radius: 8px !important;
  box-shadow: var(--ck-cta-glow);
  font-weight: 700;
}
:root[data-skin] .ck-btn--primary:hover:not(:disabled) { filter: brightness(1.08); }
:root[data-skin] .ck-btn--ghost { background: #443d58; border-color: transparent; color: #ffffff; border-radius: 8px; }

/* preloader: centre the panel when the art is gone, hot pink bar */
:root[data-skin] [class$="-pre"], :root[data-skin] [class*="-pre "] {
  background: radial-gradient(80% 60% at 50% 0%, rgba(94, 52, 212, 0.28), transparent 70%), #040404 !important;
  justify-content: center !important;
}
:root[data-skin] [class*="-pre__art"] { display: none !important; }
:root[data-skin] [class*="-pre__panel"] { margin-inline: auto; text-align: center; align-items: center; }
:root[data-skin] [class*="-pre__fill"] { background: linear-gradient(90deg, #fb51c7, #ff2a7d) !important; }
:root[data-skin] [class*="-pre__title"] { font-family: var(--ck-font) !important; }
