/* =========================
   OPSYLUS — auto-drawn offer banners (no images)
   Built by assets/banner.js. Colors come from the offer: --c1 main, --c2 main dark, --c3 accent.
   Everything is sized in cqw so the banner looks the same at any width.
   ========================= */

.opb {
  position: absolute; inset: 0; overflow: hidden; container-type: inline-size;
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
  -webkit-user-select: none; user-select: none; pointer-events: none;
}
.opb * { position: absolute; box-sizing: border-box; }
.opb *::before, .opb *::after { position: absolute; box-sizing: border-box; }

/* ---------- Backdrop: light rays, glow, rings, confetti ---------- */
.opb-rays {
  left: 72%; top: 52%; width: 150cqw; height: 150cqw; transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-conic-gradient(from 8deg, rgba(255,255,255,.10) 0 9deg, transparent 9deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 58%); mask: radial-gradient(circle, #000 0 18%, transparent 58%);
}
.opb-glow {
  right: -10cqw; top: -22cqw; width: 64cqw; height: 64cqw; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--c3) 55%, transparent), transparent 66%);
}
.opb-ring { left: -16cqw; bottom: -30cqw; width: 52cqw; height: 52cqw; border-radius: 50%; border: 3cqw solid rgba(255,255,255,.08); }
.opb-ring2 { left: 30cqw; top: -14cqw; width: 18cqw; height: 18cqw; border-radius: 50%; border: 1.2cqw solid rgba(255,255,255,.10); }
.opb-dots {
  left: 4cqw; bottom: 5cqw; width: 16cqw; height: 8cqw; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.9) 22%, transparent 24%); background-size: 2.6cqw 2.6cqw;
}
.opb-conf { width: 1.4cqw; height: 3.4cqw; border-radius: .5cqw; background: var(--c3); }
.opb-conf.c0 { left: 47%; top: 10%; transform: rotate(28deg); }
.opb-conf.c1 { left: 57%; top: 84%; transform: rotate(-32deg); background: #fff; opacity: .75; }
.opb-conf.c2 { left: 93%; top: 72%; transform: rotate(58deg); }
.opb-conf.c3 { left: 41%; top: 86%; transform: rotate(12deg); opacity: .7; }
.opb-conf.c4 { left: 88%; top: 8%; transform: rotate(-48deg); background: #fff; opacity: .8; }
.opb-conf.c5 { left: 52%; top: 46%; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #fff; opacity: .6; }
.opb-spark { color: #fff; line-height: 1; font-family: Arial, sans-serif; text-shadow: 0 0 2cqw rgba(255,255,255,.6); }
.opb-spark.s0 { left: 55%; top: 14%; font-size: 4.6cqw; }
.opb-spark.s1 { left: 93%; top: 44%; font-size: 3cqw; color: var(--c3); }
.opb-spark.s2 { left: 62%; top: 76%; font-size: 2.6cqw; }

/* ---------- Text ---------- */
.opb-text { position: absolute; left: 6cqw; top: 50%; transform: translateY(-50%); width: 46cqw; z-index: 3; }
.opb-text > * { position: static; display: block; }
.opb-brand {
  color: #fff; font-weight: 900; font-size: 7.4cqw; line-height: .95; letter-spacing: -.02em; text-transform: uppercase;
  text-shadow: 0 .6cqw 2cqw rgba(0,0,0,.25); overflow-wrap: anywhere;
}
.opb-amt { color: var(--c3); font-weight: 900; font-size: 13cqw; line-height: 1; letter-spacing: -.03em; text-shadow: 0 .8cqw 2.6cqw rgba(0,0,0,.28); margin-top: .4cqw; }
.opb-tag {
  display: inline-block !important; margin-top: 1.6cqw; padding: .7cqw 2cqw; border-radius: 99px;
  background: rgba(255,255,255,.16); color: #fff; font-weight: 800; font-size: 2.4cqw; letter-spacing: .08em; text-transform: uppercase;
  border: .2cqw solid rgba(255,255,255,.22);
}

/* ---------- Shared: gold coin ---------- */
.opb-coin {
  border-radius: 50%; display: grid; place-items: center; font-family: Arial, sans-serif; font-weight: 900; color: #9A6400;
  background: radial-gradient(circle at 34% 30%, #FFF6C4 0%, #F7CB4D 42%, #D99A12 78%, #B87908 100%);
  box-shadow: inset 0 0 0 .7cqw rgba(255,255,255,.35), inset 0 -.8cqw 0 rgba(150,90,0,.35), 0 1.2cqw 2.4cqw rgba(0,0,0,.32);
}
.opb-coin::after { content: "$"; position: static; }

/* ---------- Style: gift card ---------- */
.opb-art { right: 3cqw; top: 50%; width: 46cqw; height: 34cqw; transform: translateY(-50%); z-index: 2; }
.opb-card { width: 36cqw; height: 23cqw; border-radius: 2.6cqw; overflow: hidden; }
.opb-card.back {
  left: 9cqw; top: 1cqw; transform: rotate(13deg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 45%, #fff), color-mix(in srgb, var(--c1) 75%, #fff));
  box-shadow: 0 1.6cqw 3cqw rgba(0,0,0,.25);
}
.opb-card.back::before { content: ""; left: 0; right: 0; top: 4cqw; height: 4.4cqw; background: rgba(0,0,0,.18); }
.opb-card.front {
  left: 1cqw; top: 7cqw; transform: rotate(-9deg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c3) 88%, #fff) 0%, var(--c3) 45%, color-mix(in srgb, var(--c3) 78%, #000) 100%);
  box-shadow: 0 2cqw 4cqw rgba(0,0,0,.38);
}
.opb-card.front::before { content: ""; left: -20%; top: -60%; width: 40%; height: 220%; transform: rotate(28deg); background: rgba(255,255,255,.22); }
.opb-card.front::after {
  content: ""; right: -7cqw; bottom: -9cqw; width: 22cqw; height: 22cqw; border-radius: 50%;
  border: 2.4cqw solid color-mix(in srgb, var(--c2) 22%, transparent);
}
.opb-chip {
  left: 3cqw; top: 4.4cqw; width: 5.4cqw; height: 4cqw; border-radius: .9cqw;
  background: linear-gradient(135deg, #FFF1B5, #E3B23C 55%, #C58F16);
  box-shadow: inset 0 0 0 .3cqw rgba(120,80,0,.35);
}
.opb-chip::before { content: ""; left: 1.8cqw; top: 0; bottom: 0; width: .3cqw; background: rgba(120,80,0,.35); }
.opb-chip::after { content: ""; left: 0; right: 0; top: 1.85cqw; height: .3cqw; background: rgba(120,80,0,.35); }
.opb-card-amt { right: 2.6cqw; top: 3cqw; color: var(--c2); font-weight: 900; font-size: 5.6cqw; line-height: 1; letter-spacing: -.02em; }
.opb-card-brand {
  left: 3cqw; bottom: 3cqw; max-width: 24cqw; color: var(--c2); font-weight: 900; font-size: 2.8cqw; line-height: 1;
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.opb-card-logo { right: 2.8cqw; bottom: 2.6cqw; width: 8cqw; height: 4.4cqw; }
.opb-card-logo::before, .opb-card-logo::after { content: ""; top: 0; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; }
.opb-card-logo::before { left: 0; background: var(--c1); opacity: .9; }
.opb-card-logo::after { right: 0; background: var(--c2); opacity: .7; }
.opb-art .opb-coin.k0 { left: -3cqw; bottom: -1cqw; width: 11cqw; height: 11cqw; font-size: 5.6cqw; z-index: 3; }
.opb-art .opb-coin.k1 { right: -1cqw; top: -2cqw; width: 8cqw; height: 8cqw; font-size: 4cqw; transform: rotate(18deg); }

/* ---------- Style: coin stacks ---------- */
.opb-stacks { right: 4cqw; bottom: 9cqw; width: 44cqw; height: 34cqw; z-index: 2; }
.opb-stack { bottom: 0; width: 13cqw; height: 100%; }
.opb-disc {
  left: 0; width: 13cqw; height: 4.6cqw; border-radius: 50%;
  background: radial-gradient(ellipse at 40% 35%, #FFF3B5, #F5C542 50%, #D49512);
  border-bottom: 1.1cqw solid #A86E06;
  box-shadow: 0 .3cqw .6cqw rgba(0,0,0,.25);
}
.opb-bill {
  right: 1cqw; bottom: 1cqw; width: 22cqw; height: 11cqw; border-radius: 1.4cqw; transform: rotate(-14deg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c3) 60%, #fff), var(--c3));
  box-shadow: 0 1.4cqw 2.4cqw rgba(0,0,0,.3), inset 0 0 0 .8cqw rgba(255,255,255,.35);
  display: grid; place-items: center;
}
.opb-bill::after {
  content: ""; width: 6cqw; height: 6cqw; border-radius: 50%; position: static;
  border: .7cqw solid color-mix(in srgb, var(--c2) 45%, transparent);
}
.opb-stacks .opb-coin.big { right: 0; top: -2cqw; width: 15cqw; height: 15cqw; font-size: 7.6cqw; transform: rotate(-12deg); z-index: 4; }

/* ---------- Style: gift box ---------- */
.opb-boxwrap { right: 6cqw; bottom: 7cqw; width: 36cqw; height: 38cqw; transform: rotate(-6deg); z-index: 2; }
.opb-box {
  left: 4cqw; bottom: 0; width: 28cqw; height: 20cqw; border-radius: 1.4cqw;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c3) 85%, #fff), color-mix(in srgb, var(--c3) 78%, #000));
  box-shadow: 0 2cqw 4cqw rgba(0,0,0,.35);
}
.opb-lid {
  left: 2cqw; bottom: 19cqw; width: 32cqw; height: 6.6cqw; border-radius: 1.4cqw;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c3) 92%, #fff), var(--c3));
  box-shadow: 0 .8cqw 1.4cqw rgba(0,0,0,.25);
}
.opb-ribbon-v { left: 15.5cqw; bottom: 0; width: 5cqw; height: 25.6cqw; background: linear-gradient(90deg, #fff, #EDEDED); opacity: .95; }
.opb-ribbon-h { left: 4cqw; bottom: 8cqw; width: 28cqw; height: 4cqw; background: linear-gradient(180deg, #fff, #EDEDED); opacity: .95; }
.opb-bow { bottom: 24cqw; width: 10cqw; height: 8cqw; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; border: 2cqw solid #fff; }
.opb-bow.l { left: 8.5cqw; transform: rotate(-28deg); }
.opb-bow.r { left: 18cqw; transform: rotate(28deg); }
.opb-knot { left: 15.2cqw; bottom: 24cqw; width: 5.6cqw; height: 4.4cqw; border-radius: 1.2cqw; background: #fff; box-shadow: 0 .4cqw .8cqw rgba(0,0,0,.2); }
.opb-gtag {
  right: -2cqw; bottom: 1cqw; padding: 1cqw 2cqw; z-index: 4; border-radius: 1cqw; transform: rotate(14deg);
  background: #fff; color: var(--c2); font-weight: 900; font-size: 4.2cqw; line-height: 1; letter-spacing: -.02em;
  box-shadow: 0 1cqw 2cqw rgba(0,0,0,.3); white-space: nowrap;
}
.opb-boxwrap .opb-coin.k0 { left: -4cqw; bottom: -2cqw; width: 10cqw; height: 10cqw; font-size: 5cqw; z-index: 3; }

/* ---------- Style: bank card (the whole banner is the card face) ---------- */
.opb-bankcard {
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c1) 70%, #fff) 0%, transparent 55%),
    linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
}
.opb-bk { inset: 0; }
.opb-bk-head > *, .opb-bk-bal > *, .opb-bk-num > *, .opb-bk-amt > * { position: static; }

/* Fine engraved lines (like the security pattern on a real card) */
.opb-bk-lines {
  inset: 0; opacity: .5;
  background: repeating-linear-gradient(-35deg, rgba(255,255,255,.07) 0 .25cqw, transparent .25cqw 1.6cqw);
  -webkit-mask: radial-gradient(110% 120% at 100% 100%, #000 0 35%, transparent 70%);
          mask: radial-gradient(110% 120% at 100% 100%, #000 0 35%, transparent 70%);
}
.opb-bk-sheen { left: -30cqw; top: -40cqw; width: 34cqw; height: 160cqw; transform: rotate(32deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); }
.opb-bk-orb {
  right: -16cqw; bottom: -30cqw; width: 66cqw; height: 66cqw; border-radius: 50%;
  border: 5cqw solid color-mix(in srgb, var(--c3) 22%, transparent);
  box-shadow: 0 0 0 7cqw rgba(255,255,255,.04), inset 0 0 0 7cqw rgba(255,255,255,.04);
}

/* Brand row */
.opb-bk-head { left: 6cqw; top: 5.4cqw; display: flex; align-items: center; gap: 2.2cqw; max-width: 56cqw; }
.opb-bk-brand { color: #fff; font-weight: 900; font-size: 5cqw; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Right column: pill, chip, contactless, network circles */
.opb-bk-pill {
  right: 5cqw; top: 15cqw; padding: 1cqw 2.6cqw; border-radius: 99px; max-width: 44cqw;
  background: rgba(0,0,0,.18); border: .3cqw solid rgba(255,255,255,.25);
  color: #fff; font-weight: 800; font-size: 2.4cqw; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.opb-bk-chip {
  right: 13cqw; top: 23.5cqw; width: 9cqw; height: 6.8cqw; border-radius: 1.4cqw;
  background: linear-gradient(135deg, #FFF1B5, #E8B93E 55%, #C79417);
  box-shadow: inset 0 0 0 .3cqw rgba(120,80,0,.35), 0 .5cqw 1.2cqw rgba(0,0,0,.25);
}
.opb-bk-chip::before { content: ""; left: 0; right: 0; top: 3.25cqw; height: .3cqw; background: rgba(120,80,0,.4); }
.opb-bk-chip::after { content: ""; left: 3cqw; right: 3cqw; top: 1.4cqw; bottom: 1.4cqw; border: .3cqw solid rgba(120,80,0,.4); border-radius: .8cqw; }
.opb-bk-nfc {
  right: 6cqw; top: 23.8cqw; width: 6cqw; height: 6cqw; border-radius: 50%;
  background:
    radial-gradient(circle at 0% 50%, transparent 1.1cqw, rgba(255,255,255,.85) 1.1cqw 1.6cqw, transparent 1.6cqw 2.4cqw,
                    rgba(255,255,255,.85) 2.4cqw 2.9cqw, transparent 2.9cqw 3.7cqw, rgba(255,255,255,.85) 3.7cqw 4.2cqw, transparent 4.2cqw);
  -webkit-mask: linear-gradient(90deg, transparent 0 18%, #000 18%); mask: linear-gradient(90deg, transparent 0 18%, #000 18%);
}
.opb-bk-net { right: 5cqw; bottom: 5cqw; width: 13cqw; height: 8cqw; }
.opb-bk-net::before, .opb-bk-net::after { content: ""; top: 0; width: 8cqw; height: 8cqw; border-radius: 50%; }
.opb-bk-net::before { left: 0; background: var(--c3); opacity: .9; }
.opb-bk-net::after { right: 0; background: #fff; opacity: .55; }

/* Balance + card number */
.opb-bk-label { display: block; color: color-mix(in srgb, var(--c3) 75%, #fff); font-weight: 800; font-size: 2.3cqw; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.opb-bk-bal { left: 6cqw; top: 17.5cqw; max-width: 58cqw; }
.opb-bk-amt { display: flex; align-items: baseline; gap: 1.4cqw; color: #fff; font-weight: 900; font-size: 13.5cqw; line-height: 1; letter-spacing: -.03em; margin-top: .6cqw; text-shadow: 0 .8cqw 2.4cqw rgba(0,0,0,.25); white-space: nowrap; }
.opb-bk-cur { font-size: 3.6cqw; font-weight: 800; letter-spacing: .02em; opacity: .75; text-shadow: none; }
.opb-bk-num { left: 6cqw; top: 36cqw; }
.opb-bk-num .opb-bk-label { font-size: 1.9cqw; opacity: .7; }
.opb-bk-digits { display: block; color: #fff; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 3.3cqw; font-weight: 600; letter-spacing: .18em; margin-top: .4cqw; white-space: nowrap; }
