/* BEFO stream overlay ("use code" card for OBS). Everything is sized in em,
   so one number (--s on .ov) scales the whole thing. Only transform and
   opacity are animated, which costs OBS almost nothing. */
.ov { --s: 1; font-size: calc(16px * var(--s)); font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; color: #fff; display: inline-block; line-height: 1.15; }
.ov * { box-sizing: border-box; }

.ov-box { position: relative; display: flex; align-items: center; gap: .85em; padding: .8em 1.15em .8em .8em; border-radius: 1.1em; overflow: hidden;
  background: linear-gradient(135deg, rgba(28, 22, 38, .96), rgba(14, 12, 20, .96));
  box-shadow: 0 0 0 .09em rgba(224, 70, 209, .75), 0 .6em 2em rgba(162, 60, 240, .45), 0 .2em .6em rgba(0, 0, 0, .5);
  transition: transform .7s cubic-bezier(.2, .9, .2, 1), opacity .5s ease; will-change: transform, opacity; }
.ov-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 120% at 0% 0%, rgba(224, 70, 209, .28), transparent 60%); pointer-events: none; }
/* light sweep across the card */
.ov-box::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 28%; left: -40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); animation: ov-sweep 6s ease-in-out infinite; pointer-events: none; }
@keyframes ov-sweep { 0%, 62% { left: -40%; } 82%, 100% { left: 130%; } }

.ov-logo { position: relative; width: 3.4em; height: 3.4em; flex-shrink: 0; border-radius: .9em; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff5ccf, #a23cf0); box-shadow: 0 .3em 1em rgba(224, 70, 209, .55); }
.ov-logo img { width: 62%; height: 62%; object-fit: contain; margin-left: 4%; display: block; }
.ov-text { position: relative; display: flex; flex-direction: column; gap: .12em; min-width: 0; }
.ov-kicker { font-size: .68em; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #ff8be6; white-space: nowrap; }
.ov-code { font-size: 1.85em; font-weight: 900; letter-spacing: .06em; white-space: nowrap;
  background: linear-gradient(90deg, #ffffff, #ffd3f6 55%, #e9c8ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 .06em .3em rgba(224, 70, 209, .6)); }
.ov-foot { display: flex; align-items: center; gap: .45em; font-size: .72em; color: #c9c1d6; white-space: nowrap; }
.ov-tag { color: #fff; font-weight: 800; letter-spacing: .02em; }
.ov-dot { color: #ff8be6; font-weight: 800; }
.ov-off { position: relative; align-self: center; margin-left: .2em; padding: .28em .6em; border-radius: .6em; font-size: .95em; font-weight: 800; white-space: nowrap;
  background: linear-gradient(135deg, #e046d1, #a23cf0); box-shadow: 0 .2em .8em rgba(224, 70, 209, .5); }

/* ---- bar: one wide line for the top or bottom of the stream */
.ov[data-style="bar"] .ov-box { padding: .5em 1.1em .5em .5em; border-radius: 99em; gap: .7em; }
.ov[data-style="bar"] .ov-logo { width: 2.3em; height: 2.3em; border-radius: 50%; }
.ov[data-style="bar"] .ov-text { flex-direction: row; align-items: baseline; gap: .6em; }
.ov[data-style="bar"] .ov-code { font-size: 1.35em; }
.ov[data-style="bar"] .ov-kicker { font-size: .72em; }
.ov[data-style="bar"] .ov-foot { font-size: .74em; }

/* ---- pill: the smallest one, just "CODE  FORTEX" */
.ov[data-style="pill"] .ov-box { padding: .4em .95em .4em .4em; border-radius: 99em; gap: .55em; }
.ov[data-style="pill"] .ov-logo { width: 1.9em; height: 1.9em; border-radius: 50%; }
.ov[data-style="pill"] .ov-text { flex-direction: row; align-items: baseline; gap: .5em; }
.ov[data-style="pill"] .ov-code { font-size: 1.15em; }
.ov[data-style="pill"] .ov-kicker { font-size: .62em; }
/* the small one shows only the caption, without the site name and the discount */
.ov[data-style="pill"] .ov-off, .ov[data-style="pill"] .ov-dot, .ov[data-style="pill"] .ov-foot > span { display: none; }
.ov[data-style="pill"] .ov-foot { font-size: .66em; }

/* ===================================================================
   Newer looks. Shared bits first.
   =================================================================== */
.ov-ic { width: 1.6em; height: 1.6em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ov-c { color: #fff; font-weight: 900; letter-spacing: .05em; }
.ov-pct { color: #ff9ce6; font-weight: 800; }
.ov-big { font-weight: 900; line-height: 1; white-space: nowrap; }
.ov-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
@keyframes ov-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(.35em); } }
@keyframes ov-nudge-l { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-.35em); } }

/* ---- neon: "befo.cc ←" card */
.ov[data-style="neon"] .ov-box { padding: 1em 1.9em 1em 1em; border-radius: 1.5em; gap: 1.2em; }
.ov[data-style="neon"] .ov-logo { width: 4.6em; height: 4.6em; border-radius: 1.2em; }
.ov[data-style="neon"] .ov-kicker { font-size: .74em; }
.ov[data-style="neon"] .ov-big { display: flex; align-items: center; gap: .3em; font-size: 2.55em; }
.ov[data-style="neon"] .ov-arrow { color: #ff5ccf; font-size: .66em; animation: ov-nudge-l 1.2s ease-in-out infinite; }
.ov[data-style="neon"] .ov-foot { font-size: .84em; }

/* ---- lower: angled lower-third with a timer line */
.ov[data-style="lower"] .ov-box { padding: 0; gap: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; height: 6em; align-items: stretch; }
.ov[data-style="lower"] .ov-box::before, .ov[data-style="lower"] .ov-box::after { display: none; }
.ov-lw-logo { width: 9.4em; flex-shrink: 0; display: grid; place-items: center; padding-right: 1.1em; background: linear-gradient(135deg, #ff5ccf, #a23cf0); clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
.ov-lw-logo img { width: 3.4em; height: 3.4em; object-fit: contain; }
.ov-lw-main { position: relative; margin-left: -1.6em; display: flex; align-items: center; gap: 1.4em; padding: 0 2.6em 0 3.1em; background: rgba(12, 10, 17, .94); clip-path: polygon(1.6em 0, 100% 0, calc(100% - 1.6em) 100%, 0 100%); }
.ov[data-style="lower"] .ov-kicker { font-size: .8em; }
.ov-title { font-size: 2em; font-weight: 900; line-height: 1.05; white-space: nowrap; }
.ov[data-style="lower"] .ov-arrow { font-size: 2em; font-weight: 900; color: #ff5ccf; animation: ov-nudge 1.2s ease-in-out infinite; }
.ov-cta { display: flex; flex-direction: column; align-items: center; gap: .2em; }
.ov-chip { padding: .2em .6em; border-radius: .4em; background: #ff5ccf; color: #1a0816; font-size: 1.85em; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.ov[data-style="lower"] .ov-sub { font-size: .8em; font-weight: 700; color: #c9c1d6; white-space: nowrap; }
.ov-timer { position: absolute; left: 3.1em; right: 2.4em; bottom: 0; height: .25em; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ov-timer i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, #ff5ccf, #a23cf0); animation: ov-timer var(--show, 12s) linear infinite; }
@keyframes ov-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- badge: small corner pill */
.ov[data-style="badge"] .ov-box { flex-direction: column; align-items: flex-end; gap: .5em; padding: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.ov[data-side="left"][data-style="badge"] .ov-box { align-items: flex-start; }
.ov[data-style="badge"] .ov-box::before, .ov[data-style="badge"] .ov-box::after { display: none; }
.ov-pillrow { display: flex; align-items: center; gap: .75em; padding: .5em 1.25em .5em .5em; border-radius: 99em; background: rgba(13, 11, 19, .92); animation: ov-glow 3s ease-in-out infinite; }
@keyframes ov-glow { 0%, 100% { box-shadow: 0 0 0 .12em rgba(255, 92, 207, .7), 0 .6em 1.9em rgba(162, 60, 240, .35); } 50% { box-shadow: 0 0 0 .12em #ff5ccf, 0 .6em 2.5em rgba(255, 92, 207, .6); } }
.ov[data-style="badge"] .ov-logo { width: 2.75em; height: 2.75em; border-radius: 50%; }
.ov[data-style="badge"] .ov-kicker { font-size: .68em; }
.ov[data-style="badge"] .ov-big { font-size: 1.5em; }
.ov-under { padding: .3em .75em; border-radius: 99em; background: rgba(13, 11, 19, .85); font-size: .8em; font-weight: 700; color: #c9c1d6; white-space: nowrap; }

/* ---- hud: angled game-style frame */
.ov[data-style="hud"] .ov-box { display: block; padding: .13em; border-radius: 0; background: linear-gradient(135deg, #ff5ccf, #a23cf0); box-shadow: none;
  clip-path: polygon(0 0, 90% 0, 100% 16%, 100% 100%, 10% 100%, 0 84%); }
.ov[data-style="hud"] .ov-box::before, .ov[data-style="hud"] .ov-box::after { display: none; }
.ov-hud { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .6em; padding: 1.25em 2em 1.4em 1.9em; background: rgba(10, 8, 15, .96);
  clip-path: polygon(0 0, 90% 0, 100% 16%, 100% 100%, 10% 100%, 0 84%); }
.ov-scan { position: absolute; left: 0; right: 0; height: 2.5em; background: linear-gradient(180deg, transparent, rgba(255, 92, 207, .13), transparent); animation: ov-scan 3.5s linear infinite; }
@keyframes ov-scan { from { transform: translateY(-3em); } to { transform: translateY(12em); } }
.ov[data-style="hud"] .ov-kicker { display: flex; align-items: center; gap: .6em; font-size: .8em; letter-spacing: .12em; }
.ov-hlogo img { width: 1.6em; height: 1.6em; object-fit: contain; display: block; }
.ov[data-style="hud"] .ov-big { display: flex; align-items: center; gap: .3em; font-size: 2.75em; }
.ov-gt { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .4em; color: #ff5ccf; }
.ov-caret { width: .22em; height: .78em; background: #ff5ccf; animation: ov-blink 1s steps(1) infinite; }
@keyframes ov-blink { 50% { opacity: 0; } }
.ov-line { font-size: .82em; font-weight: 700; }
.ov-dim { font-size: .76em; color: #a39cb0; }
.ov-green { color: #3ee08f; }

/* ---- discord: invite card */
.ov[data-style="discord"] .ov-box { padding: 1em 1.9em 1em 1em; border-radius: 1.5em; gap: 1.2em; box-shadow: 0 0 0 .09em rgba(192, 139, 255, .85), 0 .6em 2em rgba(162, 60, 240, .45), 0 .2em .6em rgba(0, 0, 0, .5); }
.ov-dc { width: 4.6em !important; height: 4.6em !important; border-radius: 1.2em !important; background: linear-gradient(135deg, #a23cf0, #ff5ccf) !important; color: #fff; overflow: visible; animation: ov-bob 2.4s ease-in-out infinite; }
.ov-dc .ov-ic { width: 2.6em; height: 2.6em; stroke-width: 2.2; }
@keyframes ov-bob { 50% { transform: translateY(-.25em); } }
.ov-ping { position: absolute; right: -.25em; top: -.25em; width: 1.1em; height: 1.1em; border-radius: 50%; background: #3ee08f; border: .18em solid #120e18; }
.ov-ping2 { border: 0; animation: ov-ping 1.6s ease-out infinite; }
@keyframes ov-ping { from { transform: scale(1); opacity: .8; } to { transform: scale(2.4); opacity: 0; } }
.ov[data-style="discord"] .ov-kicker { font-size: .74em; color: #d6b8ff; }
.ov[data-style="discord"] .ov-big { font-size: 2.2em; }
.ov[data-style="discord"] .ov-foot { font-size: .86em; }

/* ---- rotate: one bar that flips between site, Discord and the code */
.ov[data-style="rotate"] .ov-box { width: 42em; height: 5.25em; padding: 0 1.7em 0 .75em; border-radius: 1.4em; gap: 1.1em; }
.ov[data-style="rotate"] .ov-box::after { display: none; }
.ov[data-style="rotate"] .ov-logo { width: 3.75em; height: 3.75em; border-radius: 1em; }
.ov-slides { position: relative; flex: 1; height: 3.75em; overflow: hidden; }
.ov-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 1em; opacity: 0; animation: ov-rot2 10s ease-in-out infinite; animation-delay: calc(var(--i) * -5s + 0s); }
.ov-slides[data-n="2"] .ov-slide { animation-name: ov-rot2; animation-duration: 10s; animation-delay: calc(var(--i) * 5s - 10s); }
.ov-slides[data-n="3"] .ov-slide { animation-name: ov-rot3; animation-duration: 15s; animation-delay: calc(var(--i) * 5s - 15s); }
@keyframes ov-rot2 { 0% { opacity: 0; transform: translateY(1.5em); } 5%, 45% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateY(-1.5em); } }
@keyframes ov-rot3 { 0% { opacity: 0; transform: translateY(1.5em); } 3.3%, 30% { opacity: 1; transform: none; } 33.3%, 100% { opacity: 0; transform: translateY(-1.5em); } }
.ov[data-style="rotate"] .ov-kicker { font-size: .74em; }
.ov[data-style="rotate"] .ov-big { font-size: 1.9em; }
.ov-side { font-size: 1em; font-weight: 800; color: #c9c1d6; white-space: nowrap; }

/* ---- panel: site + Discord (+ code) stacked */
.ov[data-style="panel"] .ov-box { flex-direction: column; align-items: stretch; width: 19em; gap: .75em; padding: 1.25em; border-radius: 1.5em; }
.ov[data-style="panel"] .ov-box::after { display: none; }
.ov-head { display: flex; align-items: center; gap: .75em; }
.ov[data-style="panel"] .ov-logo { width: 3em; height: 3em; border-radius: .9em; }
.ov-name { font-size: 1.4em; font-weight: 900; letter-spacing: .12em; }
.ov[data-style="panel"] .ov-kicker { font-size: .68em; }
.ov-hr { height: 1px; background: rgba(255, 255, 255, .1); }
.ov-row { display: flex; align-items: center; gap: .75em; padding: .75em; border-radius: 1em; border: .09em solid; }
.ov-row .ov-big { font-size: 1.3em; }
.ov-row .ov-sub { font-size: .76em; color: #c9c1d6; margin-top: .2em; white-space: nowrap; }
.ov-pink { background: rgba(255, 92, 207, .1); border-color: rgba(255, 92, 207, .45); color: #ff9ce6; }
.ov-violet { background: rgba(192, 139, 255, .1); border-color: rgba(192, 139, 255, .45); color: #d6b8ff; }
.ov-gold { background: rgba(246, 196, 83, .1); border-color: rgba(246, 196, 83, .45); color: #f6c453; }
.ov-row .ov-big { color: #fff; }

/* ---- ticker: full-width running line for the bottom of the stream */
.ov[data-style="ticker"] { display: block; width: 100%; }
.ov[data-style="ticker"] .ov-box { width: 100%; height: 3.25em; padding: 0; gap: 0; border-radius: 0; align-items: stretch; background: rgba(10, 8, 15, .94); box-shadow: none; border-top: .13em solid #ff5ccf; }
.ov[data-style="ticker"] .ov-box::before, .ov[data-style="ticker"] .ov-box::after { display: none; }
.ov-tk-logo { position: relative; z-index: 1; flex-shrink: 0; display: flex; align-items: center; gap: .6em; padding: 0 1.4em 0 1em; background: linear-gradient(135deg, #ff5ccf, #a23cf0); font-size: 1.1em; letter-spacing: .12em; }
.ov-tk-img img { width: 1.5em; height: 1.5em; object-fit: contain; display: block; }
.ov-track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ov-run { display: flex; gap: 2.4em; padding-left: 2.4em; white-space: nowrap; font-size: 1.12em; font-weight: 800; animation: ov-run 24s linear infinite; }
.ov-sep { color: #ff5ccf; }
@keyframes ov-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- partner: "Official BEFO partner" badge with a turning gold/pink rim */
.ov[data-style="partner"] .ov-box { padding: 1em 1.8em 1em 1em; border-radius: 1.5em; gap: 1.15em; background: none; box-shadow: 0 .7em 2.2em rgba(246, 196, 83, .25), 0 .2em .6em rgba(0, 0, 0, .5); isolation: isolate; }
.ov[data-style="partner"] .ov-box::before { display: none; }
.ov[data-style="partner"] .ov-box::after { z-index: 3; background: linear-gradient(90deg, transparent, rgba(255, 240, 200, .28), transparent); }
.ov-spin { position: absolute; left: 50%; top: 50%; width: 200%; aspect-ratio: 1; z-index: -2; background: conic-gradient(#f6c453, #ff5ccf, #a23cf0, #f6c453, #fff1c4, #f6c453); transform: translate(-50%, -50%); animation: ov-spin 4s linear infinite; }
@keyframes ov-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.ov-fill { position: absolute; inset: .14em; z-index: -1; border-radius: 1.38em; background: linear-gradient(135deg, rgba(34, 24, 30, .98), rgba(14, 11, 18, .98)); }
.ov-ptile { position: relative; width: 4.4em !important; height: 4.4em !important; border-radius: 1.15em !important; background: linear-gradient(135deg, #f6c453, #ff5ccf 55%, #a23cf0) !important; box-shadow: 0 .35em 1.2em rgba(246, 196, 83, .45) !important; overflow: visible; }
.ov-crown { position: absolute; right: -.45em; top: -.55em; width: 1.6em; height: 1.6em; border-radius: 50%; display: grid; place-items: center; font-size: .9em; color: #3a2600; background: linear-gradient(135deg, #fff1c4, #f6c453); box-shadow: 0 0 .9em rgba(246, 196, 83, .8); animation: ov-bob 2.4s ease-in-out infinite; }
.ov[data-style="partner"] .ov-kicker { font-size: .74em; color: #f6c453; }
.ov-big.ov-gold { font-size: 2.15em; background: linear-gradient(90deg, #fff1c4, #f6c453 35%, #ff9ce6 70%, #fff1c4); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ov-goldrun 3s linear infinite; }
@keyframes ov-goldrun { to { background-position: -200% 0; } }
.ov[data-style="partner"] .ov-foot { font-size: .95em; margin-top: .25em; gap: .35em; }
.ov-pname { color: #fff; font-weight: 900; letter-spacing: .04em; }
.ov[data-style="partner"] .ov-foot .ov-ic { width: 1.15em; height: 1.15em; fill: #4aa3ff; stroke: #fff; stroke-width: 1.6; }
.ov[data-style="partner"] .ov-off { background: linear-gradient(135deg, #f6c453, #ff5ccf); color: #2a1200; }

/* ---- timed mode: slides in from its side, waits, slides out */
.ov[data-timed="1"] .ov-box { opacity: 0; transform: translateX(-115%); }
.ov[data-timed="1"][data-side="right"] .ov-box { transform: translateX(115%); }
.ov[data-timed="1"].on .ov-box { opacity: 1; transform: none; }
.ov[data-timed="1"][data-style="ticker"] .ov-box { transform: translateY(110%); }
.ov[data-timed="1"][data-style="ticker"].on .ov-box { transform: none; }

/* ---- the page OBS loads */
html.ov-live, html.ov-live body { margin: 0; background: transparent; overflow: hidden; height: 100%; }
html.ov-live body { display: flex; align-items: center; padding: 14px 18px; }
html.ov-live body[data-side="right"] { justify-content: flex-end; }
html.ov-live body[data-style="ticker"] { padding: 0; align-items: flex-end; }
