/* The original market's native twins of the account's on-site contents (js/showcase.js).
   Only the original market's pages link this file (tools/build-pages.py), and every selector sits under
   .dps-twin, the class the engine puts on a twin's root beside its #dps-creative-<content name>, because
   an inline creative is not sandboxed and a bare rule would restyle the storefront. The engine's own
   .dps-creative-popup, -bar and -inline rules give the overlay, the pin and the slot; these reset the
   inner card so a twin is drawn the way its content is: the content's width, its picture, its words. */

.dps-twin .dps-creative-inner { --dps-twin-close-fg: var(--dps-twin-close, var(--muted)); }
/* A thumb's size on a phone, as every other control on the original pages (tools/mobile-check.mjs). */
.dps-creative.dps-twin .dps-creative-close { color: var(--dps-twin-close-fg); z-index: 2; width: 44px; height: 44px;
  top: 4px; right: 4px; }

/* ---------- popups: one card, the content's width ---------- */
.dps-creative-popup.dps-twin .dps-creative-inner {
  display: block; padding: 0; overflow: hidden; width: 100%;
  max-width: var(--dps-twin-width, 460px); max-height: calc(100vh - 40px); overflow-y: auto;
}
.dps-twin .dps-twin-card { display: flex; flex-direction: column; }
.dps-twin .dps-twin-card.dps-twin-horizontal { flex-direction: row; }
.dps-twin .dps-twin-art { display: block; width: 100%; height: auto; object-fit: cover; }
.dps-twin .dps-twin-horizontal .dps-twin-art { width: 42%; flex: 0 0 42%; align-self: center; object-fit: contain; }
.dps-twin .dps-twin-body { padding: 22px 24px 24px; min-width: 0; flex: 1 1 auto; }
.dps-twin .dps-twin-title { margin: 0 0 8px; font-size: 20px; line-height: 1.25; color: var(--ink); }
.dps-twin .dps-twin-message { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.dps-twin .dps-twin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dps-creative.dps-twin .dps-twin-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px;
  border: 0; border-radius: 24px; background: var(--red); color: #fff; font: 700 14.5px/1.2 var(--font);
  text-decoration: none; cursor: pointer;
}
.dps-creative.dps-twin .dps-twin-btn:hover { background: var(--red-hot); }
.dps-creative.dps-twin .dps-twin-btn-2 { background: var(--pink); color: var(--red); }
.dps-creative.dps-twin .dps-twin-btn-2:hover { background: var(--pink-deep); }
.dps-creative.dps-twin .dps-twin-btn-small { min-height: 40px; padding: 8px 14px; font-size: 13.5px; }

/* A picture popup is the picture: the whole of it the link, or its two buttons laid over its foot. */
.dps-twin .dps-twin-picture { position: relative; }
.dps-twin .dps-twin-picture img { display: block; width: 100%; height: auto; }
.dps-twin .dps-twin-picture-link { display: block; }
.dps-twin .dps-twin-cta-picture .dps-twin-actions {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent);
}
.dps-twin .dps-twin-video video { display: block; width: 100%; height: auto; background: #14161a; }
.dps-creative-popup.dps-twin-type-video_popup .dps-creative-inner { background: #14161a; }
.dps-creative-popup.dps-twin-type-image_popup .dps-creative-close,
.dps-creative-popup.dps-twin-type-cta_image_popup .dps-creative-close,
.dps-creative-popup.dps-twin-type-video_popup .dps-creative-close { color: #fff; background: rgba(0, 0, 0, .35); }

/* ---------- forms and questions ---------- */
.dps-twin .dps-twin-input {
  display: block; width: 100%; box-sizing: border-box; margin: 0 0 10px; padding: 11px 12px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit;
}
.dps-twin .dps-twin-consent { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 14px;
  font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.dps-twin .dps-twin-consent input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; }
.dps-twin .dps-twin-problem { color: var(--red); font-size: 13.5px; margin: 0 0 10px; }
.dps-twin .dps-twin-problem[hidden] { display: none; }
.dps-twin .dps-twin-scale { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.dps-twin .dps-twin-chip {
  min-width: 40px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface-2); color: var(--ink); font: 600 14px/1.2 var(--font); cursor: pointer;
}
.dps-twin .dps-twin-chip.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.dps-twin .dps-twin-nps .dps-twin-chip { padding: 6px 0; flex: 1 0 36px; }
.dps-twin .dps-twin-star { width: 44px; height: 44px; padding: 4px; border: 0; background: none; cursor: pointer; }
.dps-twin .dps-twin-star svg { width: 100%; height: 100%; fill: #e4e7ec; }
.dps-twin .dps-twin-star.is-on svg { fill: var(--red); }
.dps-twin .dps-twin-done { padding: 12px 0; text-align: center; }

/* ---------- the games ---------- */
.dps-twin .dps-twin-scratch {
  position: relative; width: 100%; max-width: 300px; height: 150px; margin: 0 auto 16px; border-radius: 12px;
  overflow: hidden; border: 1px solid var(--red); background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.dps-twin .dps-twin-prize { font: 800 24px/1 var(--font); color: #14161a; background: rgba(255, 255, 255, .85);
  padding: 8px 14px; border-radius: 8px; letter-spacing: .04em; }
.dps-twin .dps-twin-scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: none; cursor: pointer; transition: opacity .35s ease; }
.dps-twin .dps-twin-won { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.dps-twin .dps-twin-won[hidden] { display: none; }
.dps-twin .dps-twin-clock { display: flex; gap: 8px; margin: 0 0 16px; }
.dps-twin .dps-twin-clock span { flex: 1 1 0; display: flex; flex-direction: column; align-items: center;
  padding: 10px 4px; border: 1px solid #DDE6EB; border-radius: 14px; background: #F8FAFB; }
.dps-twin .dps-twin-clock b { font: 700 24px/1.1 var(--font); color: #14161a; }
.dps-twin .dps-twin-clock i { font-style: normal; font-size: 12px; color: #5a6270; }
.dps-twin .dps-twin-code { display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px; border: 1px dashed var(--red); border-radius: 12px; margin: 0 0 10px; }
.dps-twin .dps-twin-code span { font-size: 12px; color: var(--muted); }
.dps-twin .dps-twin-code b { font: 800 22px/1.1 var(--font); letter-spacing: .06em; color: var(--ink); }

/* ---------- the carousels ---------- */
.dps-twin .dps-twin-slides { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr);
  gap: 12px; padding: 22px; overflow-x: auto; }
.dps-twin .dps-twin-slide { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.dps-twin .dps-twin-slide img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px;
  background: var(--surface-2); }
.dps-twin .dps-twin-slide-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.dps-twin .dps-twin-slide-price { font-size: 14px; color: var(--muted); }
.dps-twin .dps-twin-slide-price strong { color: var(--ink); }
.dps-twin .dps-twin-slide-price s + strong { color: var(--red); }

/* ---------- bars: the content's own colours ---------- */
.dps-creative-bar.dps-twin { background: var(--dps-twin-bg, #14161a); }
.dps-creative-bar.dps-twin .dps-creative-inner { padding: 10px 52px 10px 20px; }
.dps-twin .dps-twin-barlink { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center;
  max-width: 1180px; margin: 0 auto; text-decoration: none; font-size: 14.5px; }
.dps-twin .dps-twin-barrow { display: flex; gap: 12px; align-items: center; max-width: 1180px; margin: 0 auto; }
.dps-twin .dps-twin-barrow img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.dps-twin .dps-twin-barcopy { flex: 1 1 auto; min-width: 0; font-size: 14.5px; }
.dps-twin .dps-twin-barrow .dps-twin-actions { flex: 0 0 auto; }
.dps-creative-bar.dps-twin-type-image_bar .dps-creative-inner { padding: 0; }
.dps-twin .dps-twin-imagebar { display: block; max-width: none; }
.dps-twin .dps-twin-imagebar img { display: block; width: 100%; height: 72px; min-height: 44px; object-fit: cover; }
@media (max-width: 640px) { .dps-twin .dps-twin-imagebar img { height: 48px; } }

/* ---------- inline: part of the page, in its slot, at the content's width ---------- */
.dps-creative-inline.dps-twin .dps-creative-inner {
  background: transparent; border: 0; padding: 0; margin: 18px auto; max-width: var(--dps-twin-width, 960px);
}
#dn_inline_target_below_header > .dps-twin .dps-creative-inner,
#dn_inline_target_below_hero > .dps-twin .dps-creative-inner { padding: 0 20px; box-sizing: content-box; }
.dps-twin .dps-twin-inline { display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding-bottom: 16px; }
.dps-twin .dps-twin-inline-img { display: block; width: 100%; }
.dps-twin .dps-twin-inline-img img { display: block; width: 100%; height: auto; }
.dps-twin .dps-twin-inline-text { margin: 4px 16px; color: var(--muted); font-size: 15px; text-align: center; }

.dps-twin .dps-twin-stories { padding: 6px 0; }
.dps-twin .dps-twin-stories-title { display: block; font-weight: 800; font-size: 15px; color: var(--ink); margin: 0 0 10px; }
.dps-twin .dps-twin-covers { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px; }
.dps-creative.dps-twin .dps-twin-cover { display: flex; min-height: 0; border-radius: 0; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto;
  border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); font: 600 13px/1.2 var(--font); }
.dps-twin .dps-twin-cover img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; padding: 3px;
  background: linear-gradient(135deg, #E4002B, #FF2E52); }
.dps-twin .dps-twin-viewer { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center;
  background: rgba(12, 14, 18, .82); padding: 16px; }
.dps-twin .dps-twin-viewer[hidden] { display: none; }
.dps-twin .dps-twin-viewer-card { position: relative; width: min(380px, 100%); aspect-ratio: 9 / 16; max-height: 90vh;
  border-radius: 16px; overflow: hidden; background: #14161a; display: flex; flex-direction: column; justify-content: flex-end; }
.dps-twin .dps-twin-viewer-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dps-twin .dps-twin-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 2; }
.dps-twin .dps-twin-bars span { flex: 1 1 0; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.dps-twin .dps-twin-bars span.is-done, .dps-twin .dps-twin-bars span.is-now { background: #fff; }
.dps-twin .dps-twin-viewer-name { position: absolute; top: 20px; left: 14px; z-index: 2; color: #fff; font-weight: 700; }
.dps-twin .dps-twin-viewer-x { position: absolute; top: 16px; right: 10px; z-index: 3; width: 40px; height: 40px;
  border: 0; border-radius: 20px; background: rgba(0, 0, 0, .35); color: #fff; font-size: 22px; cursor: pointer; }
.dps-twin .dps-twin-viewer-prev, .dps-twin .dps-twin-viewer-next { position: absolute; top: 60px; bottom: 80px;
  width: 40%; z-index: 2; border: 0; background: none; cursor: pointer; }
.dps-twin .dps-twin-viewer-prev { left: 0; }
.dps-twin .dps-twin-viewer-next { right: 0; }
.dps-twin .dps-twin-viewer-cta { position: relative; z-index: 3; margin: 0 16px 20px; }

@media (max-width: 640px) {
  .dps-twin .dps-twin-card.dps-twin-horizontal { flex-direction: column; }
  .dps-twin .dps-twin-horizontal .dps-twin-art { width: 100%; flex: 0 0 auto; }
  .dps-twin .dps-twin-body { padding: 18px; }
  .dps-twin .dps-twin-barrow { flex-wrap: wrap; }
  .dps-twin .dps-twin-slides { grid-auto-columns: minmax(150px, 70%); padding: 18px; }
  #dn_inline_target_below_header > .dps-twin .dps-creative-inner,
  #dn_inline_target_below_hero > .dps-twin .dps-creative-inner { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dps-twin .dps-twin-scratch canvas { transition: none; }
}

/* ---------- the engagement experiences (js/engage.js), drawn on the twins' card ---------- */
.dps-engage .dps-engage-kicker { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--red); }
.dps-engage .dps-twin-art { max-height: 190px; }
.dps-engage .dps-twin-choices { margin: 0 0 14px; }
.dps-creative-inline.dps-engage .dps-engage-inline { padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--card, #fff); }
.dps-engage .dps-engage-product { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dps-engage .dps-engage-product img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.dps-engage .dps-engage-product div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 140px; min-width: 0; }
.dps-engage .dps-engage-product span { color: var(--muted); font-size: 14px; }
.dps-engage .dps-engage-note { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.dps-engage .dps-engage-note[hidden] { display: none; }
