/* Atlas Reach · banner core styles — shared by every product template.
   Look, position and scale live here and in each product's css; every value and asset comes from the feed. */
@font-face { font-family: 'Outfit'; font-weight: 800; font-display: block; src: url(../fonts/outfit-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 600; font-display: block; src: url(../fonts/archivo-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 700; font-display: block; src: url(../fonts/archivo-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: block; src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: block; src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); }

:root { --accent: #fff; --base: rgb(12,14,20); --base-rgb: 12,14,20; --tint-rgb: 12,14,20; --text: #fff; --brand-text: #fff; --brand-small: #fff; --shadow: 0 1px 3.6px rgba(0,0,0,.45);
  --f-head: 'Outfit', sans-serif; --f-label: 'Archivo', sans-serif; --f-text: 'IBM Plex Sans', sans-serif; --caps: uppercase; --on-accent: #000; --on-normal: #fff; --on-button: #000; --on-chip: #fff; --ease: cubic-bezier(.4, 0, .2, 1); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--base); }

#ad {
  position: relative; overflow: hidden; cursor: pointer;
  width: 300px; height: 600px; background: var(--base); color: var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; outline: none;
}
#ad.is-loading > * { visibility: hidden; }
#ad > * { position: absolute; }

/* ---------- background: photo, scrim, brand arc ---------- */
.bg { inset: 0; overflow: hidden; }
.bg > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo { object-fit: cover; object-position: 50% 35%; transform-origin: 50% 35%; will-change: transform; }
/* the scrim protects every word from whatever photo the feed sends */
.tint { background: linear-gradient(180deg, rgba(var(--tint-rgb),.12) 0%, rgba(var(--tint-rgb),.06) 28%, rgba(var(--tint-rgb),.74) 48%, rgba(var(--tint-rgb),.8) 60%, rgba(var(--tint-rgb),.92) 100%); }
.no-photo .tint { background: none; }
.ident { object-fit: contain; opacity: var(--ident-op-photo, .28); }
/* on the typographic variants the arc only sets the brand; it must never compete with the figures */
.no-photo .ident { opacity: .16; }

.logo { height: calc(27px * var(--logo-scale, 1)); width: auto; max-width: calc(100% - 30px); object-fit: contain; object-position: 0 50%; left: 15px; top: 15px; }

/* "backed" tag on the brand's chip brick */
.tag { top: 14px; right: 15px; height: 28px; padding: 0 14px; display: flex; align-items: center; }
.tag .skin { position: absolute; inset: 0; }
.tag b { position: relative; z-index: 1; font: 700 9.5px/1 var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--on-chip); white-space: nowrap; }

/* ---------- the column ---------- */
.col { display: flex; flex-direction: column; justify-content: flex-end; }
.story, .act { display: flex; flex-direction: column; }
/* a group that sits centred between the logo and the button */
.group { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; }

.slot { position: relative; height: var(--slot-max, 82px); flex: none; }
.slot .beat { position: absolute; left: 0; top: 0; width: 100%; }
/* the masks reach above the line too, so accented capitals (Ü, Å, É) keep their marks under a tight line-height */
.ln-mask, .rise-mask { padding-bottom: .35em; margin-bottom: -.35em; padding-top: .35em; margin-top: -.35em; }   /* room for any typeface's accents and descenders */
.rise-mask { overflow-x: visible; overflow-y: clip; }   /* only the rise is masked: an italic figure's overhang is never cut at the side */

.headline {
  font: 800 25.2px/1.02 var(--f-head); letter-spacing: -.005em; text-transform: var(--caps);
  color: var(--head-colour, var(--text)); text-shadow: var(--shadow);
}
.bonus {
  font: 800 19.2px/1.05 var(--f-head); text-transform: var(--caps);
  color: var(--brand-text); text-shadow: var(--shadow);
}
.terms { font: 500 9px/1.3 var(--f-text); color: color-mix(in srgb, var(--text) 85%, transparent); margin-top: 6px; }

.match { font: 600 13.2px/1.25 var(--f-text); color: var(--text); }
.match.is-two .t1 { display: block; }
.match.is-two .v { display: none; }
.match.is-two .t2::before { content: attr(data-sep); }

/* market name above a row of prices */
.mlab { font: 700 11px/12px var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }

/* total odds (accas, bet builders) */
.tlabel { font: 700 11px/12px var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-small); text-align: center; }
.total { font: 800 66px/.95 var(--f-head); color: var(--brand-text); text-align: center; letter-spacing: -.01em; margin-top: 4px; }

/* ---------- odds pills (the bricks come from the feed) ---------- */
.pills { display: flex; gap: 6px; }
.pill { cursor: pointer; position: relative; flex: 1 1 0; min-width: 0; height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 9px; }
.pill .skin { position: absolute; inset: 0; }
.pill .skin.s { opacity: 0; transition: opacity .32s var(--ease); }
.pill.is-lit .skin.s, .pill.is-pick .skin.s, .pill:hover .skin.s { opacity: 1; }
.pill .price, .pill .lbl { position: relative; z-index: 1; text-align: center; white-space: nowrap; transition: color .32s var(--ease); }
.pill .price { font: 700 14px/14px var(--f-label); color: var(--on-normal); }
.pill .lbl { font: 600 7.7px/1 var(--f-label); letter-spacing: .04em; text-transform: var(--caps); color: color-mix(in srgb, var(--on-normal) 85%, transparent); max-width: 100%; overflow-x: clip; overflow-y: visible; text-overflow: ellipsis; }
.pill .lbl.is-wrap { white-space: normal; line-height: 1.08; letter-spacing: .02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: clip; }
.pill.is-lit .price, .pill.is-pick .price, .pill:hover .price,
.pill.is-lit .lbl, .pill.is-pick .lbl, .pill:hover .lbl { color: var(--on-accent); }
/* an outcome-only pill (bet builder): the outcome is the big text */
.pill.is-outcome .lbl { font: 700 14px/1 var(--f-label); letter-spacing: .02em; color: var(--on-normal); }
.pill.is-outcome.is-lit .lbl, .pill.is-outcome.is-pick .lbl, .pill.is-outcome:hover .lbl { color: var(--on-accent); }

.glint { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
canvas.brick { position: absolute; left: 0; top: 0; display: block; }

/* "bets so far" */
.pcts { display: none; gap: 6px; margin-top: 6px; }
.has-shares .pcts:not(.is-empty) { display: flex; }
.pct { --bar: 30; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 6px; font: 700 11px/12px var(--f-label); color: color-mix(in srgb, var(--text) 70%, transparent); transition: color .32s var(--ease); }
.pct .bar { display: block; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--text) 40%, transparent); transition: background .32s var(--ease); }
.pct.is-pick { color: var(--brand-small); }
.pct.is-pick .bar { background: var(--accent); }

/* ---------- CTA & legal ---------- */
.cta { position: relative; flex: none; height: 38px; margin-top: 14px; display: flex; align-items: center; justify-content: center; padding: 0 10px; }
.cta .skin { position: absolute; inset: 0; }
.no-cta .cta { visibility: hidden; height: 0 !important; margin-top: 0 !important; }
.cta .lbl { position: relative; z-index: 1; font: 700 11.2px/1 var(--f-label); letter-spacing: .04em; text-transform: var(--caps); color: var(--on-button); white-space: nowrap; max-width: 100%; overflow-x: clip; overflow-y: visible; }
.legal { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 11px; }
.legalline { font: 500 8.1px/10.5px var(--f-text); color: color-mix(in srgb, var(--text) 72%, transparent); max-width: 240px; }
.age { width: 21px; height: 21px; flex: none; opacity: .9; }

/* =====================================================================
   shared per-size basics — products add their own layout
   ===================================================================== */
[data-size="300x600"] .col { left: 15px; right: 15px; top: calc(56px + (var(--logo-scale, 1) - 1) * 27px); bottom: 16px; }

[data-size="160x600"] .photo { object-position: 50% 30%; transform-origin: 50% 30%; }
[data-size="160x600"] .tint { background: linear-gradient(180deg, rgba(var(--tint-rgb),.12) 0%, rgba(var(--tint-rgb),.06) 22%, rgba(var(--tint-rgb),.76) 38%, rgba(var(--tint-rgb),.82) 55%, rgba(var(--tint-rgb),.92) 100%); }
[data-size="160x600"] .logo { height: calc(25px * var(--logo-scale, 1)); max-width: calc(100% - 24px); left: 12px; top: 14px; }
[data-size="160x600"] .tag { top: 48px; left: 12px; right: auto; height: 24px; padding: 0 11px; }
[data-size="160x600"] .tag b { font-size: 8.4px; }
[data-size="160x600"] .col { left: 12px; right: 12px; top: calc(52px + (var(--logo-scale, 1) - 1) * 25px); bottom: 12px; }
[data-size="160x600"] .headline { font-size: 21px; }
[data-size="160x600"] .bonus { font-size: 16px; }
[data-size="160x600"] .terms { font-size: 8.4px; }
[data-size="160x600"] .match { font-size: 12px; line-height: 15px; }
[data-size="160x600"] .mlab { font-size: 9.6px; letter-spacing: .09em; margin-bottom: 8px; }
[data-size="160x600"] .total { font-size: 46px; }
[data-size="160x600"] .tlabel { font-size: 9.6px; }
[data-size="160x600"] .pct { font-size: 9px; gap: 4px; --bar: 16; }
[data-size="160x600"] .cta { height: 32px; margin-top: 10px; }
[data-size="160x600"] .cta .lbl { font-size: 10.4px; }
[data-size="160x600"] .legal { gap: 6px; margin-top: 12px; }
[data-size="160x600"] .legalline { font-size: 6.8px; line-height: 8.4px; }
[data-size="160x600"] .age { width: 18px; height: 18px; }

[data-size="300x250"] .tint { background: linear-gradient(180deg, rgba(var(--tint-rgb),.42) 0%, rgba(var(--tint-rgb),.74) 26%, rgba(var(--tint-rgb),.92) 55%, rgba(var(--tint-rgb),.96) 100%); }
[data-size="300x250"] .logo { height: calc(20px * var(--logo-scale, 1)); max-width: calc(100% - 24px); left: 12px; top: 12px; }
[data-size="300x250"] .tag { top: 10px; right: 12px; height: 22px; padding: 0 10px; }
[data-size="300x250"] .tag b { font-size: 8px; }
[data-size="300x250"] .col { left: 12px; right: 12px; top: calc(42px + (var(--logo-scale, 1) - 1) * 20px); bottom: 10px; }
[data-size="300x250"] .headline { font-size: 22px; }
[data-size="300x250"] .bonus { font-size: 16px; }
[data-size="300x250"] .terms { font-size: 7.8px; margin-top: 3px; }
[data-size="300x250"] .match { font-size: 12px; line-height: 15px; }
[data-size="300x250"] .mlab { font-size: 9px; margin-bottom: 6px; }
[data-size="300x250"] .pill { height: 36px; gap: 3px; }
[data-size="300x250"] .pill .price { font-size: 13.5px; line-height: 13.5px; }
[data-size="300x250"] .pill .lbl { font-size: 7.2px; }
[data-size="300x250"] .pcts { display: none !important; }
[data-size="300x250"] .cta { height: 28px; margin-top: 8px; }
[data-size="300x250"] .cta .lbl { font-size: 10.4px; }
[data-size="300x250"] .legal { margin-top: 8px; }
[data-size="300x250"] .legalline { font-size: 7.6px; line-height: 9.4px; max-width: 240px; }
[data-size="300x250"] .age { width: 18px; height: 18px; }

[data-size="930x180"] .photo { object-position: 50% 35%; }
[data-size="930x180"] .tint { background: linear-gradient(90deg, rgba(var(--tint-rgb),.88) 0%, rgba(var(--tint-rgb),.72) 22%, rgba(var(--tint-rgb),.45) 50%, rgba(var(--tint-rgb),.78) 66%, rgba(var(--tint-rgb),.86) 100%); }
[data-size="930x180"] .ident { opacity: var(--ident-op-photo, .18); }
[data-size="930x180"] .no-photo .ident { opacity: var(--ident-op, .13); }
[data-size="930x180"] .logo { height: calc(30px * var(--logo-scale, 1)); max-width: 172px; left: 22px; top: 22px; }
[data-size="930x180"] .tag { top: 62px; left: 22px; right: auto; height: 24px; padding: 0 11px; }
[data-size="930x180"] .tag b { font-size: 8.4px; }
[data-size="930x180"] .col { inset: 0; padding: 22px; display: grid; grid-template-columns: 172px 1fr 312px; column-gap: 34px; }
[data-size="930x180"] .legal { grid-column: 1; grid-row: 1; align-self: end; justify-content: flex-start; margin: 0; }
[data-size="930x180"] .legalline { font-size: 7.6px; line-height: 9.8px; }
[data-size="930x180"] .age { width: 20px; height: 20px; }
[data-size="930x180"] .headline { font-size: 30px; }
[data-size="930x180"] .bonus { font-size: 22px; text-wrap: balance; }   /* the offer's lines balanced: no short word left alone on the last line */
[data-size="930x180"] .terms { font-size: 8.4px; }
[data-size="930x180"] .pct { font-size: 10px; gap: 5px; --bar: 22; }
[data-size="930x180"] .cta { height: 38px; margin-top: 10px; }

/* ---------- social: laid out 300 wide, rendered at 3.6× ----------
   Every post carries the brand's name and mark right above the picture, so the picture has no logo of its own.
   feed 4:5 (1080 × 1350): the content as on 300 × 600, in less height */
[data-social] .logo { display: none; }
[data-size="1080x1350"] .col { left: 15px; right: 15px; top: 18px; bottom: 14px; }
/* story 9:16 (1080 × 1920): Instagram and Snapchat lay their own name over the top 14% and their own button over the bottom
   20%, and may crop 6% at each side; every word stays inside that */
[data-size="1080x1920"] .col { left: 18px; right: 18px; top: 80px; bottom: 107px; }
[data-social] .tag { top: 18px; right: 15px; }
[data-size="1080x1920"] .tag { top: 80px; right: 18px; }
/* read on a phone at arm's length: the outcome names and the legal line no smaller than this */
[data-social] .pill .lbl { font-size: 9px; }
[data-social] .legalline { font-size: 9px; line-height: 11.7px; max-width: none; }
[data-social] .terms, [data-social] .solo .terms { font-size: 10px; }
/* the feed apps lay their sound button over the bottom right corner of a video: the legal line and the 18+ mark keep clear of it */
[data-size="1080x1350"] .legal { padding-right: 34px; }

/* a rotating stage (small formats): items stacked, one at a time; the brand's leg dots show where we are */
.is-rotating .stage { position: relative; }
.is-rotating .stage > * { position: absolute; left: 0; right: 0; top: 0; }
/* leg markers joined by + and closed with =: every leg is part of one coupon that makes the total */
/* a light brand's ground: no shadow under type, the 18+ mark in the text colour */
/* on a photograph the logo carries the same soft shadow as the type, so a light sky never swallows it */
[data-style="photo"] #ad:not(.no-photo) .logo { filter: drop-shadow(0 1px 5px rgba(0,0,0,.4)); }
[data-style="photo"] #ad:not(.no-photo) .tint::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--tint-rgb),.6) 0, rgba(var(--tint-rgb),0) 120px); }
[data-size="930x180"][data-style="photo"] #ad:not(.no-photo) .tint::before { background: linear-gradient(90deg, rgba(var(--tint-rgb),.5) 0, rgba(var(--tint-rgb),0) 260px); }
/* without a photograph the tint is the ground's own colour (it only softens the brand figure) */
.no-photo .tint { --tint-rgb: var(--base-rgb); }
[data-ground="light"] .age { filter: brightness(0); opacity: .78; }
.lstep { font: 600 9px/11px var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--text) 60%, transparent); white-space: nowrap; }

/* the offer alone on the slide (accas, bet builders, insights) */
.solo { display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.solo .beat { position: static; width: 100%; }
.solo .bonus { font-size: 34px; line-height: 1.04; }
.solo .terms { font-size: 9.6px; margin-top: 10px; max-width: 270px; }
[data-size="160x600"] .solo .bonus { font-size: 23px; }
[data-size="160x600"] .solo .terms { font-size: 8.6px; }
[data-size="300x250"] .solo .bonus { font-size: 24px; }
[data-size="300x250"] .solo .terms { font-size: 9px; margin-top: 7px; }
[data-size="930x180"] .solo .bonus { font-size: 30px; }
[data-size="930x180"] .solo .terms { font-size: 9px; margin-top: 7px; max-width: 520px; }

@media (prefers-reduced-motion: reduce) { .glint { display: none; } }
/* on a photo the offer sits low, on the scrim, just above the button */
[data-style="photo"] .solo { justify-content: flex-end; }

/* words bound by a non-breaking space never part */
.nb { white-space: nowrap; }

/* ---------- a brand's own ad style (values.ad), never a new element ---------- */
#ad { background-image: var(--ground-image, none); }
.photo { filter: var(--photo-filter, none); }
.no-photo .ident { opacity: var(--ident-op, .16); }
/* headlines set in boxes (LeoVegas: black capitals on white bars) */
html[data-headline="boxed"] .headline .ln, html[data-headline="boxed"] .sent .ln, html[data-headline="boxed"] .bonus .ln {
  display: block; width: fit-content !important; white-space: nowrap; background: var(--box-fill); color: var(--box-text); padding: .06em .2em .02em; margin-bottom: .1em; text-shadow: none; transform: rotate(var(--box-tilt, 0deg)); transform-origin: 0 50%; }
html[data-headline="boxed"] .ln-mask { padding-bottom: .02em; margin-bottom: 0; overflow-x: visible !important; overflow-y: clip !important; }
/* boxed lines carry their own room inside the plate: their masks do not reach over the line above, or a plate sliding out
   would show as a thin strip across the line above during the change of slide */
html[data-headline="boxed"] .ln-mask { padding-top: 0; margin-top: 0; }
/* the lines are measured a box-padding narrower, so every line fits inside its box */
html[data-headline="boxed"] .headline, html[data-headline="boxed"] .sent, html[data-headline="boxed"] .bonus { text-shadow: none; padding-right: .42em; }
/* labels as the brand writes them on its site: sentence case, no tracking */
html[data-labels="plain"] .mlab, html[data-labels="plain"] .tlabel, html[data-labels="plain"] .lstep { text-transform: none; letter-spacing: .01em; }
html[data-labels="plain"] .pill .lbl { text-transform: none; letter-spacing: 0; }
/* the button's words as bold as on the brand's own buttons */
html[data-cta="bold"] .cta .lbl { font-weight: 700; font-size: 13.5px; letter-spacing: .02em; text-transform: uppercase; }
html[data-cta="bold"][data-size="160x600"] .cta .lbl, html[data-cta="bold"][data-size="300x250"] .cta .lbl { font-size: 11.5px; }
/* a ring on the pick (LeoVegas: the selected box stands off its orange with a white edge) */
html[data-pick-ring] .pill::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--pick-ring); opacity: 0; transition: opacity .32s var(--ease); pointer-events: none; z-index: 1; }
html[data-pick-ring] .pill.is-pick::after, html[data-pick-ring] .pill.is-lit::after, html[data-pick-ring] .pill:hover::after { opacity: 1; }
/* the button's outline (LeoVegas: the white sign-up pill with a dark edge) */
html[data-cta-ring] .cta::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--cta-ring); border-radius: 999px; pointer-events: none; z-index: 1; }
/* the offer in the headline colour, orange only as an accent (Expekt) */
html[data-bonus="text"] .bonus { color: var(--text); }
html[data-headline="boxed"] .ln .num { color: var(--box-accent); }

/* the brand's chevron as a pointer (Oddset) */
.pointer { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; }
/* the brand's tag as a tab hanging from the top edge (Oddset) */
html[data-tag="hang"] .tag { top: 0; height: 30px; padding: 3px 14px 0; }
html[data-tag="hang"][data-size="300x250"] .tag { top: 0; height: 26px; padding: 3px 11px 0; }
html[data-tag="hang"][data-size="160x600"] .tag { top: 48px; height: 24px; padding: 0 11px; }
html[data-tag="hang"][data-size="930x180"] .tag { top: 62px; height: 24px; padding: 0 11px; }
/* the brand's bar: its logo in white on its colour (Expekt's orange top bar) */
html[data-band] .tint::after { content: ''; position: absolute; left: 0; top: 0; right: 0; height: var(--band-h, 56px); background: var(--band); }
html[data-band][data-size="160x600"] { --band-h: 52px; }
html[data-band][data-size="160x600"] .tag { top: 60px; }
html[data-band][data-size="300x250"] { --band-h: 44px; }
html[data-band][data-size="930x180"] .tint::after { right: auto; width: 206px; height: 100%; }
html[data-band][data-size="930x180"] .legalline { color: rgba(255,255,255,.92); }
html[data-band][data-size="930x180"] .age { filter: none; opacity: .9; }
html[data-band] #ad:not(.no-photo) .tint::before { display: none; }
html[data-band][data-size="300x250"] .col { top: 50px; }
html[data-band][data-size="300x250"] .is-rotating .col { top: 44px; }
html[data-band][data-size="300x250"] .is-rotating .match { margin-bottom: 4px; }
html[data-band][data-size="300x250"] .is-rotating .lstep { margin-bottom: 2px; }
html[data-band][data-size="300x250"] .is-rotating .pill { height: 31px; }
html[data-band][data-size="300x250"] .is-rotating .mlab { margin-bottom: 4px; }
/* a white card on paper: the normal pill with a soft shadow (Stellar Bet) */
html[data-pill-shadow] .pill .skin.n canvas { filter: drop-shadow(var(--pill-shadow)); }
