/* Black Friday games (template-black-friday-games.php).
   Everything is scoped to .esm-bf. Black and gold, with cyan for Cyber Monday. */
.esm-bf {
	--bf-bg: #0c0b0d;
	--bf-panel: #17151a;
	--bf-panel-2: #1b181d;
	--bf-line: #2a262e;
	--bf-line-2: #3a343e;
	--bf-ink: #f5f0e6;
	--bf-muted: #cfc7ba;
	--bf-dim: #a79f93;
	--bf-gold: #e2b04a;
	--bf-gold-hi: #f3d27a;
	--bf-gold-lo: #a87a24;
	--bf-plum: #6b1a4a;
	--bf-plum-hi: #86245e;
	--bf-pink: #e58bb4;
	--bf-cyan: #4fd8e8;
	--bf-display: "Fraunces", Georgia, "Times New Roman", serif;
	--bf-body: "Manrope", system-ui, sans-serif;
	--bf-mono: "JetBrains Mono", ui-monospace, monospace;
	background: var(--bf-bg);
	color: var(--bf-ink);
	font-family: var(--bf-body);
	padding: 48px 16px 72px;
	overflow-x: clip;
}
.esm-bf *, .esm-bf *::before, .esm-bf *::after { box-sizing: border-box; }
.esm-bf h1, .esm-bf h2 { color: var(--bf-ink); font-family: var(--bf-display); font-weight: 800; line-height: 1.02; margin: 0; text-wrap: balance; }
.esm-bf p { margin: 0; }
.esm-bf a { color: var(--bf-gold-hi); }
.esm-bf :focus-visible { outline: 3px solid var(--bf-gold-hi); outline-offset: 3px; }
.esm-bf button { font-family: var(--bf-body); }
.bf-wrap { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }

.bf-eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--bf-gold); }
.bf-lede { font-size: 1.06rem; line-height: 1.6; color: var(--bf-muted); max-width: 56ch; }
.bf-small { font-size: .85rem; line-height: 1.5; color: #8a8278; }
.bf-msg { min-height: 1.6em; font-weight: 600; color: var(--bf-gold-hi); }
.bf-msg.is-bad { color: var(--bf-pink); }

/* ---------- Hero ---------- */
.bf-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.bf-hero__text { display: flex; flex-direction: column; gap: 14px; }
.esm-bf h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.bf-shine { background: linear-gradient(100deg, var(--bf-gold) 20%, #fff1c4 40%, var(--bf-gold) 60%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: bfShine 4s linear infinite; }
@keyframes bfShine { 0% { background-position: 150% 0; } 100% { background-position: -50% 0; } }

.bf-clock { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.bf-clock__label { font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--bf-dim); }
.bf-clock__row { display: flex; align-items: flex-start; gap: 6px; perspective: 400px; }
.bf-clock__group { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bf-clock__digits { display: flex; gap: 4px; }
.bf-digit { display: inline-flex; width: 40px; height: 56px; align-items: center; justify-content: center; background: var(--bf-panel-2); border: 1px solid #36303a; border-radius: 8px; font-family: var(--bf-display); font-weight: 800; font-size: 2rem; transform-origin: 50% 0; }
.bf-digit.is-flip { animation: bfFlip .45s ease-out; }
@keyframes bfFlip { from { transform: rotateX(-90deg); } to { transform: none; } }
.bf-clock__sep { font-family: var(--bf-display); font-size: 2rem; line-height: 56px; color: var(--bf-gold); }
.bf-clock__unit { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bf-dim); }
@media (max-width: 860px) {
	.bf-hero { grid-template-columns: 1fr; }
	.bf-clock { align-items: flex-start; }
}
@media (max-width: 420px) {
	.bf-digit { width: 30px; height: 44px; font-size: 1.5rem; }
	.bf-clock__sep { font-size: 1.5rem; line-height: 44px; }
}

.bf-demo-note { padding: 12px 16px; border: 1px dashed var(--bf-line-2); border-radius: 12px; font-size: .92rem; color: var(--bf-muted); }
.bf-demo-note strong { color: var(--bf-gold-hi); }

/* ---------- Day tabs ---------- */
.bf-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .bf-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bf-day { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; min-height: 44px; text-align: left; border-radius: 16px; border: 1px solid var(--bf-line); background: #151317; color: var(--bf-ink); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.bf-day:hover { border-color: var(--bf-gold); transform: translateY(-2px); }
.bf-day.is-active { border-color: var(--bf-gold); background: #1d1712; }
.bf-day__date { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bf-dim); }
.bf-day.is-active .bf-day__date { color: var(--bf-gold); }
.bf-day__name { font-family: var(--bf-display); font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.bf-day__hint { font-size: .85rem; color: var(--bf-dim); }

/* ---------- Game panels ---------- */
.bf-game { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding: 44px; border-radius: 24px; background: #121013; border: 1px solid var(--bf-line); }
.bf-game[hidden] { display: none; }
.bf-game.is-entering { animation: bfEnter .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes bfEnter { from { opacity: 0; transform: perspective(1200px) rotateX(8deg) translateY(16px); } to { opacity: 1; transform: none; } }
.bf-game__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.esm-bf h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.bf-game__stage { display: flex; justify-content: center; min-width: 0; }
.bf-game--wide { grid-template-columns: 1fr; }
.bf-game--cyber .bf-eyebrow { color: var(--bf-cyan); }
.bf-game--cyber .bf-msg { color: #7fe6f2; }
@media (max-width: 900px) {
	.bf-game { grid-template-columns: 1fr; padding: 28px 20px; gap: 32px; }
}

.bf-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bf-btn { min-height: 52px; padding: 0 24px; border-radius: 12px; border: 1px solid var(--bf-line-2); font-weight: 800; font-size: 1rem; cursor: pointer; transition: background .2s, border-color .2s; }
.bf-btn--gold { background: var(--bf-gold); border-color: var(--bf-gold); color: #1a1408; }
.bf-btn--gold:hover { background: var(--bf-gold-hi); }
.bf-btn--cyan { background: var(--bf-cyan); border-color: var(--bf-cyan); color: #071214; }
.bf-btn--cyan:hover { background: #8beef8; }
.bf-btn--ghost { background: transparent; color: var(--bf-ink); }
.bf-btn--ghost:hover { border-color: var(--bf-gold); }
.bf-btn:disabled { opacity: .55; cursor: default; }
.bf-icon-btn { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--bf-line-2); background: var(--bf-panel); color: var(--bf-ink); cursor: pointer; }
.bf-icon-btn:hover { border-color: var(--bf-gold); }
.bf-readout { min-width: 84px; text-align: center; font-family: var(--bf-display); font-weight: 800; font-size: 2.6rem; color: var(--bf-gold-hi); }

/* ---------- Vault ---------- */
.bf-slots { display: flex; gap: 12px; }
.bf-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bf-slot__n { width: 72px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 2px solid var(--bf-line); background: var(--bf-panel); color: #5c5562; font-family: var(--bf-display); font-weight: 800; font-size: 1.8rem; transition: all .25s; }
.bf-slot.is-next .bf-slot__n { border-color: var(--bf-gold); }
.bf-slot.is-done .bf-slot__n { border-color: var(--bf-gold); background: var(--bf-gold); color: #1a1408; animation: bfPop .35s; }
@keyframes bfPop { 50% { transform: scale(1.12); } }
.bf-slot__l { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bf-dim); }

.bf-safe { position: relative; width: min(100%, 470px); aspect-ratio: 1; border-radius: 8%; background: var(--bf-panel-2); border: 1px solid var(--bf-line-2); animation: bfGlow 2.4s ease-in-out infinite; }
@keyframes bfGlow { 0%, 100% { box-shadow: 0 0 40px rgba(226, 176, 74, .15); } 50% { box-shadow: 0 0 70px rgba(226, 176, 74, .35); } }
.bf-safe.is-shake { animation: bfShake .45s; }
@keyframes bfShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.bf-safe__rivet { position: absolute; width: 2.6%; aspect-ratio: 1; border-radius: 50%; background: var(--bf-line-2); }
.bf-safe__rivet--tl { left: 4.5%; top: 4.5%; } .bf-safe__rivet--tr { right: 4.5%; top: 4.5%; }
.bf-safe__rivet--bl { left: 4.5%; bottom: 4.5%; } .bf-safe__rivet--br { right: 4.5%; bottom: 4.5%; }
.bf-safe__hole { position: absolute; inset: 10%; border-radius: 50%; background: #070607; box-shadow: inset 0 0 50px #000; display: flex; align-items: center; justify-content: center; perspective: 1400px; }

.bf-coupon { position: relative; width: 68%; padding: 6% 6.5%; border-radius: 16px; background: var(--bf-gold); color: #1a1408; display: flex; flex-direction: column; gap: 6px; transform: translateY(18%) rotate(-4deg) scale(.8); opacity: 0; transition: transform .7s cubic-bezier(.2, 1.4, .4, 1) .6s, opacity .4s .6s; }
.bf-safe.is-open .bf-coupon { transform: rotate(-4deg); opacity: 1; }
.bf-coupon__kicker { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.bf-coupon__title { font-family: var(--bf-display); font-weight: 800; font-size: clamp(1.3rem, 3.4vw, 2rem); line-height: 1.05; }
.bf-coupon__code { margin-top: 4px; align-self: flex-start; padding: 5px 9px; border: 2px dashed #1a1408; border-radius: 8px; font-weight: 800; letter-spacing: .1em; }
.bf-coupon__fine { font-size: .75rem; }

.bf-door { position: absolute; inset: 0; border-radius: 50%; background: #29242c; border: 6px solid #4a424f; display: flex; align-items: center; justify-content: center; transform-origin: 100% 50%; transition: transform 1.3s cubic-bezier(.5, 0, .2, 1); }
.bf-safe.is-open .bf-door { transform: rotateY(105deg); }
.bf-door__bolts { position: absolute; inset: 0; pointer-events: none; }
.bf-bolt { position: absolute; inset: 0; }
.bf-bolt::after { content: ""; position: absolute; left: 50%; top: 3%; width: 3.6%; aspect-ratio: 1; margin-left: -1.8%; border-radius: 50%; background: #4a424f; }

.bf-dial { position: relative; width: 66%; aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: grab; }
.bf-dial:active { cursor: grabbing; }
.bf-dial__pointer { position: absolute; left: 50%; top: -7%; margin-left: -9px; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 14px solid var(--bf-gold); z-index: 2; }
.bf-dial__rotor { position: absolute; inset: 0; border-radius: 50%; background: var(--bf-panel-2); border: 3px solid var(--bf-gold); transition: transform .25s ease-out; }
.bf-dial__rotor.is-dragging { transition: none; }
.bf-tick { position: absolute; inset: 0; pointer-events: none; }
.bf-tick::before { content: ""; position: absolute; left: 50%; top: 3%; width: 2px; margin-left: -1px; height: 3%; background: #6f685f; }
.bf-tick.is-major::before { height: 6%; background: var(--bf-gold); }
.bf-tick__n { position: absolute; left: 50%; top: 10%; width: 30px; margin-left: -15px; text-align: center; font-weight: 800; font-size: .85rem; color: var(--bf-ink); }
.bf-dial__hub { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--bf-gold); display: flex; align-items: center; justify-content: center; }
.bf-dial__hub span { width: 19%; height: 74%; border-radius: 9px; background: var(--bf-gold-lo); }

.bf-sparks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.bf-spark { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--bf-gold-hi); opacity: 0; }
.bf-safe.is-open .bf-spark { animation: bfSpark 1.6s ease-out infinite; animation-delay: var(--d); }
@keyframes bfSpark { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }

/* ---------- Scratch card ---------- */
.bf-meter { display: flex; justify-content: space-between; font-size: .92rem; font-weight: 700; }
.bf-meter strong { color: var(--bf-gold); }
.bf-bar { height: 10px; border-radius: 999px; background: var(--bf-line); overflow: hidden; }
.bf-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--bf-gold); transition: width .2s; }
.bf-card { position: relative; width: min(100%, 500px); aspect-ratio: 520 / 320; border-radius: 22px; overflow: hidden; background: var(--bf-ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: bfFloat 5s ease-in-out infinite; }
@keyframes bfFloat { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(-1deg) translateY(-8px); } }
.bf-card__prize { position: absolute; inset: 0; padding: 7%; display: flex; flex-direction: column; justify-content: center; gap: 8px; color: #1a1408; }
.bf-card__kicker { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #7a1f55; }
.bf-card__title { font-family: var(--bf-display); font-weight: 800; font-size: clamp(1.8rem, 6vw, 3.4rem); line-height: 1; }
.bf-card__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.bf-card__code { padding: 6px 10px; border: 2px dashed #1a1408; border-radius: 8px; font-weight: 800; letter-spacing: .1em; }
.bf-card__fine { font-size: .8rem; color: #4a4038; }
.bf-card__foil { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; transition: opacity .6s; }
.bf-card.is-done .bf-card__foil { opacity: 0; pointer-events: none; }
.bf-card.is-done .bf-card__prize { animation: bfPop .6s; }

/* ---------- Pick a box ---------- */
.bf-boxes { position: relative; height: 340px; max-width: 900px; width: 100%; margin: 0 auto; }
.bf-boxes__spot { position: absolute; left: 0; right: 0; bottom: 10px; height: 110px; border-radius: 50%; background: radial-gradient(closest-side, rgba(226, 176, 74, .22), rgba(226, 176, 74, 0)); }
.bf-box { position: absolute; bottom: 40px; left: calc(var(--slot) * 35% + 2.5%); width: 25%; max-width: 220px; aspect-ratio: 220 / 230; padding: 0; border: 0; background: transparent; cursor: default; transition: left .34s cubic-bezier(.6, 0, .4, 1), transform .34s ease, opacity .5s; }
.bf-box.is-lift { transform: translateY(-14%) scale(1.06); z-index: 3; }
.bf-box.is-sink { transform: translateY(4%) scale(.94); }
.bf-boxes.is-pick .bf-box { cursor: pointer; animation: bfWiggle 1.8s ease-in-out infinite; animation-delay: var(--delay); }
.bf-boxes.is-pick .bf-box:hover { animation-play-state: paused; filter: brightness(1.15); }
.bf-boxes.is-open .bf-box { opacity: .6; }
.bf-boxes.is-open .bf-box.is-chosen { opacity: 1; z-index: 3; }
@keyframes bfWiggle { 0%, 70%, 100% { rotate: 0deg; } 76% { rotate: -4deg; } 82% { rotate: 4deg; } 88% { rotate: -2deg; } 94% { rotate: 1deg; } }
.bf-box__body { position: absolute; left: 11%; right: 11%; bottom: 0; height: 65%; border-radius: 6px 6px 12px 12px; background: var(--bf-plum); box-shadow: inset 0 -18px 30px rgba(0, 0, 0, .35); }
.bf-box__ribbon { position: absolute; left: 50%; top: 0; bottom: 0; width: 13%; transform: translateX(-50%); background: var(--bf-gold); }
.bf-box__lid { position: absolute; left: 5%; right: 5%; bottom: 64%; height: 19%; border-radius: 8px; background: var(--bf-plum-hi); box-shadow: 0 6px 14px rgba(0, 0, 0, .4); transform-origin: 20% 100%; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1), opacity .5s .25s; }
.bf-box__bow { position: absolute; left: 50%; bottom: 80%; width: 46%; transform: translateX(-50%); fill: var(--bf-gold); }
.bf-box.is-chosen .bf-box__lid { transform: translate(-40%, -160%) rotate(-38deg); opacity: 0; }
.bf-box__tag { position: absolute; left: 50%; bottom: 14%; z-index: 2; width: 92%; padding: 8px 8px; border-radius: 10px; background: var(--bf-ink); color: #1a1408; font: 800 .82rem/1.2 var(--bf-body); text-align: center; box-shadow: 0 8px 18px rgba(0, 0, 0, .45); transform: translateX(-50%) rotate(-3deg); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; }
.bf-box__tag.is-gold { background: #fff1c4; box-shadow: 0 0 0 3px var(--bf-gold), 0 0 24px rgba(243, 210, 122, .55); }
.bf-boxes.is-covered .bf-box__tag { opacity: 0; transform: translateX(-50%) rotateX(90deg) scale(.7); }
.bf-boxes.is-open .bf-box.is-chosen .bf-box__tag { opacity: 0; }
@media (max-width: 560px) { .bf-box__tag { font-size: .68rem; padding: 6px 4px; bottom: 10%; } }
.bf-boxes__prize { position: absolute; left: clamp(150px, calc(var(--slot, 1) * 35% + 15%), calc(100% - 150px)); top: 0; width: min(300px, 92%); padding: 18px 20px; border-radius: 16px; background: var(--bf-gold); color: #1a1408; display: flex; flex-direction: column; gap: 6px; z-index: 5; pointer-events: none; opacity: 0; transform: translate(-50%, 60px) scale(.6); transition: transform .7s cubic-bezier(.2, 1.4, .4, 1) .3s, opacity .3s .3s; }
.bf-boxes__prize.is-gold { background: #fff1c4; }
.bf-boxes.is-open .bf-boxes__prize { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (max-width: 560px) {
	.bf-boxes { height: 280px; }
	.bf-box { width: 30%; left: calc(var(--slot) * 34% + 1%); }
}

/* ---------- Decode (Cyber Monday) ---------- */
.bf-term { position: relative; width: min(100%, 560px); min-height: 360px; border-radius: 20px; background: #070b0d; border: 1px solid #1f3a40; box-shadow: 0 0 60px rgba(79, 216, 232, .12); overflow: hidden; font-family: var(--bf-mono); }
.bf-term::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px); }
.bf-term.is-done { animation: bfDone .9s ease-out; }
@keyframes bfDone { from { box-shadow: 0 0 0 0 rgba(79, 216, 232, .7); } to { box-shadow: 0 0 0 40px rgba(79, 216, 232, 0), 0 0 60px rgba(79, 216, 232, .2); } }
.bf-term__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid #1f3a40; }
.bf-term__bar span { width: 10px; height: 10px; border-radius: 50%; background: #e2547f; }
.bf-term__bar span:nth-child(2) { background: var(--bf-gold); }
.bf-term__bar span:nth-child(3) { background: var(--bf-cyan); }
.bf-term__bar em { margin-left: 10px; font-style: normal; font-size: .75rem; color: #5f8d94; }
.bf-term__body { padding: 28px 30px; display: flex; flex-direction: column; gap: 18px; }
.bf-term__status, .bf-term__label, .bf-term__fine { font-size: .85rem; color: #5f8d94; }
.bf-term__cursor { animation: bfBlink 1s steps(1) infinite; }
@keyframes bfBlink { 50% { opacity: 0; } }
.bf-term__title { font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.7rem); line-height: 1.1; white-space: pre-wrap; word-break: break-word; color: var(--bf-ink); }
.bf-term.is-done .bf-term__title { color: var(--bf-cyan); }
.bf-glitch { animation: bfGlitch 2.6s steps(1) infinite; }
.bf-term.is-done .bf-glitch { animation: none; }
@keyframes bfGlitch { 0%, 92%, 100% { transform: none; text-shadow: none; } 93% { transform: translateX(3px); text-shadow: -3px 0 #e2547f, 3px 0 var(--bf-cyan); } 95% { transform: translateX(-2px); text-shadow: 2px 0 #e2547f, -2px 0 var(--bf-cyan); } 97% { transform: none; } }
.bf-term__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bf-term__code { padding: 8px 12px; border: 2px dashed #1f3a40; border-radius: 8px; font-weight: 800; font-size: 1.3rem; letter-spacing: .12em; color: #5f8d94; }
.bf-term.is-done .bf-term__code { border-color: var(--bf-cyan); color: var(--bf-cyan); }

.bf-content { color: var(--bf-muted); line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
	.esm-bf *, .esm-bf *::before, .esm-bf *::after { animation: none !important; transition: none !important; }
}

/* ---------- Locked and finished games ---------- */
.bf-game { position: relative; }
.bf-game.is-locked > :not(.bf-locked) { opacity: .28; filter: grayscale(.7) blur(1px); pointer-events: none; user-select: none; }
.bf-locked { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: var(--bf-ink); }
.bf-locked svg { color: var(--bf-gold); }
.bf-locked strong { font-family: var(--bf-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; }
.bf-locked span { max-width: 34ch; color: var(--bf-muted); font-weight: 600; }
.bf-day.is-locked, .bf-day.is-finished { opacity: .5; }
.bf-day.is-locked .bf-day__hint, .bf-day.is-finished .bf-day__hint { color: var(--bf-dim); }
.bf-day.is-today { box-shadow: 0 0 0 2px var(--bf-gold); }
.bf-lock { padding: 10px 14px; border-left: 3px solid var(--bf-gold); background: var(--bf-panel); border-radius: 6px; color: var(--bf-muted); font-weight: 600; }
.bf-linkbtn { background: none; border: 0; padding: 0; color: var(--bf-gold-hi); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }

/* ---------- Boxes: no tags in the live game (the deal is drawn when you pick) ---------- */
.bf-box__tag { display: none; }

/* ---------- Big prizes glow ---------- */
.is-big .bf-coupon__title, .is-big .bf-card__title, .bf-term.is-big .bf-term__title { color: #fff1c4; text-shadow: 0 0 18px rgba(243, 210, 122, .6); }
.bf-card.is-big .bf-card__title { color: #7a1f55; text-shadow: none; }

/* ---------- Modals ---------- */
html.bf-modal-open { overflow: hidden; }
.bf-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgba(6, 5, 7, .78); backdrop-filter: blur(3px); overflow-y: auto; }
.bf-modal[hidden] { display: none; }
.bf-panel { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 18px; background: var(--bf-panel); border: 1px solid var(--bf-line-2); color: var(--bf-ink); font-family: var(--bf-body); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: bfPop .35s; }
.bf-panel h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.bf-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.bf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bf-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: .85rem; font-weight: 800; color: var(--bf-muted); }
.bf-field input, .bf-field select { height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--bf-line-2); background: var(--bf-bg); color: var(--bf-ink); font: 600 1rem var(--bf-body); }
.bf-field input:focus, .bf-field select:focus { outline: none; border-color: var(--bf-gold); box-shadow: 0 0 0 3px rgba(226, 176, 74, .25); }
.bf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bf-result { text-align: left; border-color: var(--bf-gold-lo); }
.bf-result h2 { color: var(--bf-gold-hi); }
.bf-result__code { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bf-result__code output { padding: 10px 14px; border: 2px dashed var(--bf-gold); border-radius: 10px; font: 800 1.3rem var(--bf-mono); letter-spacing: .1em; color: var(--bf-gold-hi); }
@media (max-width: 520px) { .bf-form-row { grid-template-columns: 1fr; } .bf-panel { padding: 22px 18px; } }

/* ---------- Prizes and small print ---------- */
.bf-info { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px; border: 1px solid var(--bf-line); border-radius: 18px; background: var(--bf-panel); }
.bf-info h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.bf-prizes, .bf-rules { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--bf-muted); line-height: 1.5; }
.bf-prizes__qty { display: inline-block; min-width: 3.4em; font-weight: 800; color: var(--bf-gold); }
.bf-rules li { padding-left: 18px; position: relative; }
.bf-rules li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--bf-gold); }
@media (max-width: 860px) { .bf-info { grid-template-columns: 1fr; padding: 24px 18px; gap: 28px; } }
.esm-bf a.bf-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.esm-bf a.bf-btn--gold, .esm-bf a.bf-btn--gold:hover { color: #1a1408; }

/* ---------- Hero fixes: room for descenders, countdown never runs off the edge ---------- */
.esm-bf h1.bf-shine { line-height: 1.12; padding-bottom: .12em; margin-bottom: -.12em; }
.bf-digit { width: clamp(30px, 3.2vw, 40px); height: clamp(44px, 4.6vw, 56px); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.bf-clock__sep { line-height: clamp(44px, 4.6vw, 56px); font-size: clamp(1.5rem, 2.6vw, 2rem); }
@media (max-width: 1240px) {
	.bf-hero { grid-template-columns: 1fr; align-items: start; }
	.bf-clock { align-items: flex-start; }
}
.bf-clock, .bf-clock__row { max-width: 100%; }
