/*
 * Black Friday 23–29 Nov 2026: the safe, the flying saucer, the alien and the bomb (js/fv-ovni.js).
 * GENERATED from the approved sketch by local/specs/black-friday-27nov/a-tema.py (outside git): change the sketch
 * and run it again rather than editing this file by hand. Loaded by footer.tpl only while $fv_ovni is on (fv-config.tpl).
 */
@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: block; src: url("../fonts/archivo-black-fv.woff2") format("woff2"); }
#bk, #bk *, .bk-pill { box-sizing: border-box; }
#bk, .bk-pill { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1c1c1e; line-height: normal; letter-spacing: normal; text-transform: none; text-align: left; -webkit-tap-highlight-color: transparent; }
#bk svg, #bk canvas { max-width: none; }
#light-tag { display: none !important; }
/* No floating pill on the shop (in the way on phones): the black top bar replays the show (dwbbarheader top.tpl) */
.bk-pill { display: none !important; }
/* On the shop the page behind can scroll, unlike in the sketch: on phones turning the dial dragged the whole page up and
   down. Lock html too (iOS ignores overflow on body alone), no bounce, and no pan or zoom gestures on the show */
html.bk-lock, html.bk-lock body { overflow: hidden !important; overscroll-behavior: none; }
#bk { touch-action: none; overscroll-behavior: contain; }
body.bk-lock { overflow: hidden; }

.s-shake { animation: s-shake .45s linear; }
.s-quake { animation: s-quake .9s linear; }
@keyframes s-shake {
	0%, 100% { transform: none; }
	12% { transform: translate(0, 12px); } 30% { transform: translate(-5px, -7px); }
	50% { transform: translate(4px, 5px); } 72% { transform: translate(-2px, -2px); }
}
@keyframes s-quake {
	0%, 100% { transform: none; }
	8% { transform: translate(-14px, 10px) rotate(-1deg); } 18% { transform: translate(12px, -12px) rotate(1deg); }
	30% { transform: translate(-10px, 8px); } 44% { transform: translate(8px, -6px); }
	60% { transform: translate(-5px, 4px); } 78% { transform: translate(3px, -2px); }
}

/* ---- The effect ---------------------------------------------------------------------------------------------- */
#bk { position: fixed; inset: 0; z-index: 2147483000; display: none; overflow: hidden; }
#bk.on { display: block; }
.bk-dim { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, rgba(24, 24, 27, .72), rgba(0, 0, 0, .95) 75%); opacity: 0; transition: opacity .6s ease; }
#bk.dark .bk-dim { opacity: 1; }
#bk canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
#bk-crack { transition: opacity .25s; }
.bk-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding-bottom: 40px; }

.bk-safe { --w: min(78vw, 330px); width: var(--w); height: calc(var(--w) * 1.12); position: relative; visibility: hidden; will-change: transform; }
.bk-body { position: absolute; inset: 0; border-radius: 22px; background: linear-gradient(150deg, #323236, #0c0c0d 70%); box-shadow: 0 40px 70px rgba(0, 0, 0, .7), inset 0 2px 0 rgba(255, 255, 255, .09), inset 0 -8px 16px rgba(0, 0, 0, .7); perspective: 900px; }
.bk-body::before, .bk-body::after { content: ""; position: absolute; left: -7px; width: 12px; height: 38px; border-radius: 4px; background: linear-gradient(90deg, #555, #222); box-shadow: 0 2px 4px rgba(0, 0, 0, .6); z-index: 3; }
.bk-body::before { top: 18%; } .bk-body::after { bottom: 18%; }
.bk-feet { position: absolute; left: 10%; right: 10%; bottom: -12px; height: 14px; display: flex; justify-content: space-between; }
.bk-feet i { width: 34px; height: 14px; border-radius: 0 0 6px 6px; background: #0b0b0c; }

/* Inside: nothing but a green light and a hum */
.bk-inside { position: absolute; inset: 16px; border-radius: 12px; background: radial-gradient(circle at 50% 60%, #0d2a17, #020803 75%); overflow: hidden; box-shadow: inset 0 10px 30px rgba(0, 0, 0, .9); }
.bk-glow { position: absolute; inset: -30%; background: radial-gradient(circle, rgba(170, 255, 190, .95), rgba(60, 255, 120, .4) 32%, transparent 62%); opacity: 0; transform: scale(.4); transition: opacity .9s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1); }
#bk.open .bk-glow { opacity: 1; transform: scale(1); animation: bk-flicker .18s steps(2) infinite 1.2s; }
@keyframes bk-flicker { from { filter: brightness(1); } to { filter: brightness(1.25); } }

/* The door */
.bk-door { position: absolute; inset: 16px; border-radius: 12px; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform 1.25s cubic-bezier(.3, .05, .2, 1); z-index: 2; }
#bk.open .bk-door { transform: rotateY(-112deg); }
.bk-face, .bk-back { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bk-face {
	background:
		radial-gradient(circle at 14px 14px, #6a6a70 0 3px, transparent 4px),
		radial-gradient(circle at calc(100% - 14px) 14px, #6a6a70 0 3px, transparent 4px),
		radial-gradient(circle at 14px calc(100% - 14px), #6a6a70 0 3px, transparent 4px),
		radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #6a6a70 0 3px, transparent 4px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
		radial-gradient(circle at 30% 18%, #38383d, #161618 62%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 2px 0 rgba(255, 255, 255, .08), 0 2px 10px rgba(0, 0, 0, .6);
	display: flex; flex-direction: column; align-items: center; padding-top: 7%;
}
.bk-back { transform: rotateY(180deg); background: linear-gradient(90deg, #2a2a2d, #18181a); box-shadow: inset 0 0 0 6px #111, inset 0 0 0 7px #3a3a3e; }
.bk-back::before { content: ""; position: absolute; right: 18px; top: 22%; bottom: 22%; width: 10px; border-radius: 5px; background: repeating-linear-gradient(180deg, #8a8a90 0 18px, transparent 18px 34px); }
.bk-plate { font-family: "Archivo Black", system-ui, sans-serif; font-size: calc(var(--w) * .095); letter-spacing: .04em; line-height: 1; background: linear-gradient(180deg, #fff3b8, #e8b93a 45%, #9c7212 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .8)); }
.bk-sub { margin-top: 6px; font-size: calc(var(--w) * .036); font-weight: 700; letter-spacing: .22em; color: #9a9aa2; }
.bk-locks { display: flex; gap: 10px; margin: 10px 0 2px; }
.bk-locks i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c30; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8), 0 0 0 1px #444; transition: background .2s, box-shadow .2s; }
.bk-locks i.on { background: #ffd35a; box-shadow: 0 0 10px 2px rgba(255, 196, 60, .8), 0 0 0 1px #ffe9a0; }
.bk-dial { width: 58%; aspect-ratio: 1; margin-top: 4px; touch-action: none; cursor: grab; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .7)); }
.bk-dial:active { cursor: grabbing; }
.bk-dial text { font: 700 10px system-ui, sans-serif; fill: #d9d9de; text-anchor: middle; dominant-baseline: central; user-select: none; transition: fill .3s; }
/* The combination: the number to bring to the arrow lights up; the arrow glows more the closer it gets */
.bk-dial .d-tgt { opacity: 0; fill: rgba(255, 211, 90, .28); stroke: #ffd35a; stroke-width: 1.6; filter: drop-shadow(0 0 5px #ffc23c); transition: opacity .3s; }
.bk-dial .d-tgt.on { opacity: 1; animation: d-pulse 1s ease-in-out infinite; }
@keyframes d-pulse { 50% { opacity: .35; } }
.bk-dial text.on { fill: #fff3b8; }
.bk-dial .d-mark { filter: drop-shadow(0 0 calc(var(--near, 0) * 9px) #ffc23c) brightness(calc(1 + var(--near, 0) * .6)); }
.bk-dial.lit .d-mark { animation: d-mark 1s ease-in-out infinite; }
@keyframes d-mark { 50% { transform: translateY(-3px); } }
.bk-handle { position: absolute; bottom: 7%; left: 50%; width: 30%; height: 12px; margin-left: -15%; border-radius: 6px; background: linear-gradient(180deg, #8b8b92, #3c3c41); box-shadow: 0 3px 6px rgba(0, 0, 0, .6); transition: transform .45s cubic-bezier(.5, -0.4, .5, 1.4); }
.bk-handle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #b5b5bb, #4a4a50); }
#bk.unlocked .bk-handle { transform: rotate(-90deg); }

.bk-hint { color: #fff; text-align: center; min-height: 48px; opacity: 0; transition: opacity .4s; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.bk-hint.on { opacity: 1; }
.bk-hint b { display: block; font-size: 17px; letter-spacing: .01em; }
.bk-hint span { display: block; margin-top: 4px; font-size: 13px; color: #c8c8ce; }
.bk-hand { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; display: none; }
.bk-hand.on { display: block; animation: bk-orbit 2.4s cubic-bezier(.45, 0, .55, 1) infinite; }
.bk-hand::before { content: "☝️"; position: absolute; left: 0; top: 0; font-size: 38px; transform: translate(calc(var(--w) * .22), -10px); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .7)); }
@keyframes bk-orbit { 0% { transform: rotate(-70deg); opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { transform: rotate(80deg); opacity: 0; } }

/* The visitors: all placed with left/top 0 and a transform (see pos() in the script) */
.bk-actor { position: absolute; left: 0; top: 0; display: none; pointer-events: none; will-change: transform; overflow: visible; }
.bk-actor.on { display: block; }
#ufo { width: 200px; height: 100px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .7)); }
#ufo .ufo-in { transform-box: view-box; transform-origin: 50% 50%; }
#ufo.hover .ufo-in { animation: ufo-hover 2.6s ease-in-out infinite; }
@keyframes ufo-hover { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
#ufo .ufo-led { animation: ufo-led .9s steps(2) infinite; }
@keyframes ufo-led { from { opacity: 1; } to { opacity: .2; } }
#beam { width: 240px; transform-origin: 50% 0; clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); background: repeating-linear-gradient(180deg, rgba(190, 255, 200, .14) 0 6px, transparent 6px 16px), linear-gradient(180deg, rgba(150, 255, 170, .7), rgba(120, 255, 150, .12) 85%, transparent); opacity: 0; transition: opacity .35s; mix-blend-mode: screen; animation: beam-run .6s linear infinite; }
#beam.lit { opacity: 1; }
@keyframes beam-run { from { background-position: 0 0, 0 0; } to { background-position: 0 16px, 0 0; } }
/* no CSS filter on #alien: Safari clips a filtered <svg> to its box, and the raised hand and the gun go past it.
   The drop shadow is the SVG filter #a-drop instead, with a fixed region that covers the raised arm */
/* the right arm is turned by the script with the SVG transform attribute (armTo): Safari clips the textured arm when it
   turns with a CSS transform */
#alien .gun-side, #alien .front, #alien .muzzle-glow { display: none; }
#alien.has-gun .gun-side { display: inline; }
#alien.pose-aim #armR, #alien.pose-aim #armL { display: none; }
#alien.pose-aim .front, #alien.pose-aim .muzzle-glow { display: inline; }
#alien .muzzle-glow { transform-box: fill-box; transform-origin: center; transform: scale(.4); opacity: .45; }
#alien.charging .muzzle-glow { animation: charge .9s ease-in forwards; }
@keyframes charge { 0% { transform: scale(.4); opacity: .4; } 70% { transform: scale(1.8); opacity: 1; } 85% { transform: scale(1.5); } 100% { transform: scale(2.4); opacity: 1; } }
#alien .lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
#alien.blink .lid { animation: blink .18s ease-in-out; }
#alien.blink .gloss { opacity: 0; }
/* Alive: a slow sway from the feet, breathing (chest and shoulders), the head turns and tilts (script) */
#alien #a-root { transform-box: view-box; transform-origin: 80px 294px; animation: a-sway 4.6s ease-in-out infinite; }
@keyframes a-sway { 0%, 100% { transform: rotate(-.9deg); } 50% { transform: rotate(.9deg); } }
#alien #torso { transform-box: view-box; transform-origin: 80px 228px; animation: a-breath 3.2s ease-in-out infinite; }
@keyframes a-breath { 50% { transform: scale(1.03, 1.02); } }
#alien .br-up { animation: a-rise 3.2s ease-in-out infinite; }
@keyframes a-rise { 50% { transform: translateY(-1.4px); } }
#alien #head { transform-box: view-box; transform-origin: 80px 124px; }
#alien .dil { transform-box: fill-box; transform-origin: center; transition: transform .7s ease; }
#alien.dilate .dil { transform: scale(1.28); }
.bk-floor { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; display: none; }
.bk-floor.on { display: block; }
#shadow { width: 120px; height: 20px; background: radial-gradient(closest-side, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0)); }
#pool { width: 280px; height: 46px; background: radial-gradient(closest-side, rgba(140, 255, 170, .6), rgba(120, 255, 160, .15) 60%, rgba(120, 255, 160, 0)); mix-blend-mode: screen; opacity: 0; transition: opacity .4s; }
#pool.lit { opacity: 1; }
@keyframes blink { 50% { transform: scaleY(1); } }
#drone { width: 130px; height: 65px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .6)); }
#drone .dr-prop { transform-box: fill-box; transform-origin: center; animation: dr-spin .07s linear infinite alternate; }
#drone .dr-led { animation: ufo-led 1s steps(2) infinite; }
#drone .dr-in { transform-box: view-box; transform-origin: 50% 50%; }
#drone.hover .dr-in { animation: ufo-hover 1.4s ease-in-out infinite; }
@keyframes dr-spin { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(.78); opacity: .7; } }
#gundrop { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
#bomb { width: 120px; height: 140px; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .8)); cursor: pointer; transition: color .3s; }
#bomb.armed { pointer-events: auto; z-index: 6; }
#bomb .b-tip { animation: bomb-pulse var(--beat, .9s) ease-in-out infinite; filter: drop-shadow(0 0 3px currentColor); }
.bk-tap { position: absolute; left: 0; top: 0; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .75); pointer-events: none; display: none; animation: tap 1.1s ease-out infinite; }
.bk-tap.on { display: block; }
.bk-tap::after { content: "☝️"; position: absolute; left: 50%; top: 100%; font-size: 34px; margin-left: -6px; animation: tap-hand 1.1s ease-in-out infinite; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .7)); }
@keyframes tap { 0% { transform: scale(.55); opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes tap-hand { 0%, 100% { transform: translateY(6px); } 50% { transform: translateY(-8px); } }
@keyframes bomb-pulse { 50% { opacity: .25; } }
/* The discount tags that rain from the saucer before the bomb */
.bk-tags { position: absolute; inset: 0; pointer-events: none; }
.bk-tag { position: absolute; left: 0; top: 0; will-change: transform; }
.bk-tags.burnt { filter: brightness(.6) sepia(.5); transition: filter .2s; }
.bk-tag svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bk-tag text { font: 26px "Archivo Black", system-ui, sans-serif; text-anchor: middle; dominant-baseline: central; }
.bk-tag.big { filter: drop-shadow(0 0 8px rgba(255, 40, 30, .7)); }
#bomb text { font: 700 14px ui-monospace, Menlo, monospace; letter-spacing: .5px; fill: #ff3b24; text-anchor: middle; dominant-baseline: central; filter: drop-shadow(0 0 2px #ff2a1a); }
#bomb text.b-ghost { fill: rgba(255, 40, 20, .13); filter: none; }
/* The ball of light that leaves the safe, the falling capsule, the scan line that builds things */
.bk-orb { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: none; pointer-events: none; background: radial-gradient(circle, #fff 0, #d6ffe0 22%, rgba(90, 255, 140, .75) 48%, rgba(60, 255, 120, 0) 72%); box-shadow: 0 0 40px 14px rgba(80, 255, 130, .5); }
.bk-orb.on { display: block; animation: orb-pulse .25s ease-in-out infinite alternate; }
@keyframes orb-pulse { to { filter: brightness(1.35); } }
#ufo.forming { animation: ufo-form 1.5s steps(1) forwards; }
@keyframes ufo-form {
	0% { opacity: .25; filter: drop-shadow(0 0 10px #5dff8a) brightness(2.4); } 12% { opacity: .8; } 16% { opacity: .2; } 30% { opacity: .9; filter: drop-shadow(0 0 10px #5dff8a) brightness(1.8); }
	34% { opacity: .4; } 52% { opacity: 1; } 58% { opacity: .55; } 72% { opacity: 1; filter: drop-shadow(0 0 6px #5dff8a) brightness(1.3); } 100% { opacity: 1; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .7)); }
}
#capsule { width: 40px; height: 56px; filter: drop-shadow(0 0 12px rgba(80, 255, 130, .6)) drop-shadow(0 8px 8px rgba(0, 0, 0, .7)); }
#capsule .c-seam { animation: bomb-pulse .5s ease-in-out infinite; }
.bk-scan { position: absolute; left: 0; top: 0; height: 4px; border-radius: 2px; display: none; pointer-events: none; background: linear-gradient(90deg, transparent, #c9ffd4 20%, #fff 50%, #c9ffd4 80%, transparent); box-shadow: 0 0 18px 6px rgba(80, 255, 130, .7); }
.bk-scan.on { display: block; }
#alien.materialize { animation: mat-flick 1.9s steps(1); }
@keyframes mat-flick {
	0% { opacity: .5; filter: drop-shadow(0 0 10px #5dff8a) brightness(2); } 8% { opacity: 1; } 11% { opacity: .35; } 24% { opacity: 1; filter: drop-shadow(0 0 8px #5dff8a) brightness(1.6); }
	27% { opacity: .55; } 45% { opacity: 1; } 49% { opacity: .7; } 70% { opacity: 1; filter: drop-shadow(0 0 6px #5dff8a) brightness(1.25); } 100% { opacity: 1; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .75)); }
}
/* The gun's power lights, and the threat: laser dot, target, red edges */
#alien .gled { fill: #1d3a26; transition: fill .15s; }
#alien.pw1 .g1, #alien.pw2 .g2, #alien.pw3 .g3 { fill: #5dff8a; filter: drop-shadow(0 0 2px #5dff8a); }
#alien.pw3 #tip { animation: bomb-pulse .3s ease-in-out infinite; }
#drone .claw-l, #drone .claw-r { transform-box: view-box; transition: transform .2s; }
#drone .claw-l { transform-origin: 116px 100px; } #drone .claw-r { transform-origin: 124px 100px; }
#drone.open .claw-l { transform: rotate(35deg); } #drone.open .claw-r { transform: rotate(-35deg); }
.bk-laser { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: radial-gradient(circle, #fff 0 25%, #5dff8a 45%, rgba(60, 255, 120, 0) 70%); box-shadow: 0 0 14px 4px rgba(80, 255, 130, .8); display: none; pointer-events: none; }
.bk-laser.on { display: block; }
.bk-reticle { position: absolute; left: 0; right: 0; top: 0; text-align: center; display: none; pointer-events: none; }
.bk-reticle.on { display: block; }
.bk-reticle b { display: inline-block; color: #ff3b30; font: 900 clamp(26px, 8vw, 44px) "Archivo Black", system-ui, sans-serif; letter-spacing: .04em; text-shadow: 0 0 18px rgba(255, 59, 48, .9), 0 2px 0 #000; animation: bomb-pulse .45s steps(2) infinite; }
/* the laser dot, locked on you: bigger, red, beating */
.bk-laser.lock { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: radial-gradient(circle, #fff 0 18%, #ff3b30 40%, rgba(255, 40, 30, 0) 70%); box-shadow: 0 0 24px 8px rgba(255, 50, 40, .8); animation: dot-beat .9s ease-in-out infinite; }
.bk-laser.lock::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255, 70, 60, .9); animation: dot-ring .9s ease-out infinite; }
@keyframes dot-beat { 0%, 100% { box-shadow: 0 0 20px 6px rgba(255, 50, 40, .7); } 15% { box-shadow: 0 0 40px 16px rgba(255, 50, 40, 1); } 45% { box-shadow: 0 0 34px 12px rgba(255, 50, 40, .9); } }
@keyframes dot-ring { from { transform: scale(1); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.bk-vig { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, rgba(255, 0, 0, 0) 45%, rgba(200, 0, 0, .55) 100%); }
.bk-vig.on { animation: vig .9s ease-in-out infinite; }
@keyframes vig { 0%, 100% { opacity: .35; } 15% { opacity: 1; } 30% { opacity: .5; } 45% { opacity: .9; } }
.bk-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.bk-ring { position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px; border-radius: 50%; border: 6px solid rgba(255, 220, 160, .9); box-shadow: 0 0 40px 10px rgba(255, 160, 60, .6), inset 0 0 30px rgba(255, 200, 120, .6); opacity: 0; pointer-events: none; }

.bk-btn { position: absolute; padding: 10px 16px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .5); color: #fff; font: inherit; font-size: 13px; cursor: pointer; z-index: 5; }
.bk-skip { right: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); }
.bk-sound { left: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); }
.bk-gate { position: absolute; inset: 0; z-index: 4; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 0; background: radial-gradient(ellipse 80% 42% at 50% 50%, rgba(0, 0, 0, .94), rgba(0, 0, 0, .55) 65%, rgba(0, 0, 0, .3)); color: #fff; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bk-gate.on { display: flex; animation: gate-in .5s ease both; }
.bk-gate .g-lock { font-style: normal; font-size: 54px; filter: drop-shadow(0 0 18px rgba(255, 211, 90, .55)); animation: gate-beat 1.4s ease-in-out infinite; }
.bk-gate b { font-family: "Archivo Black", system-ui, sans-serif; font-size: 22px; letter-spacing: .02em; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.bk-gate span { font-size: 14px; color: #c8c8ce; }
@keyframes gate-in { from { opacity: 0; transform: scale(.94); } }
@keyframes gate-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
/* sketch only: shows when light mode is on */
.bk-light-tag { position: absolute; right: 10px; top: 10px; z-index: 5; padding: 3px 8px; border-radius: 10px; background: rgba(0, 0, 0, .6); color: #ffd35a; font-size: 11px; display: none; pointer-events: none; }
.bk-light-tag.on { display: block; }
.bk-sound.off, #bk.end .bk-skip, #bk.end .bk-sound { display: none; }
.bk-say { position: absolute; left: 0; right: 0; text-align: center; color: #fff; font-size: 17px; font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); opacity: 0; transition: opacity .3s; pointer-events: none; }
.bk-say.on { opacity: 1; }

/* Under BLACK FRIDAY 2026 on the final screen (top set by the script, under the engraved text) */
.bk-planet { position: absolute; left: 0; right: 0; text-align: center; color: #fff; font-family: "Archivo Black", system-ui, sans-serif; font-size: clamp(14px, 4.2vw, 28px); letter-spacing: .02em; white-space: nowrap; text-transform: uppercase; text-shadow: 0 3px 0 rgba(0, 0, 0, .45), 0 0 22px rgba(255, 255, 255, .35); opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .7s ease .5s, transform .7s cubic-bezier(.2, .9, .3, 1.3) .5s; }
#bk.end .bk-planet { opacity: 1; transform: none; }
/* The explosion: a fireball and a smoke cloud that grow from the bomb, then a red wave that floods everything */
.bk-ball { position: absolute; left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; pointer-events: none; display: none; background: radial-gradient(circle, #fff 0 12%, #fff6c8 20%, #ffd04a 32%, #ff7a1a 48%, #d9230f 62%, rgba(90, 20, 10, .85) 74%, rgba(30, 10, 8, 0) 80%); filter: blur(1px); }
.bk-ball.on { display: block; }
.bk-smoke { background: radial-gradient(circle, rgba(70, 60, 55, .9) 0 35%, rgba(40, 34, 30, .75) 55%, rgba(20, 16, 14, 0) 72%); mix-blend-mode: normal; filter: blur(6px); }
#scorch { width: 190px; height: 34px; background: radial-gradient(closest-side, rgba(0, 0, 0, .9), rgba(20, 10, 5, .6) 55%, rgba(0, 0, 0, 0)); }
#scorch.crack { width: 120px; height: 22px; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)), repeating-conic-gradient(from 10deg, rgba(0, 0, 0, .55) 0 2deg, transparent 2deg 31deg); }
.bk-heat { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen; }
.bk-red { position: absolute; inset: 0; pointer-events: none; display: none; background: radial-gradient(ellipse at 50% 40%, #e3001b 0, #b00014 45%, #5c000a 100%); }
.bk-red.on { display: block; }
/* on the red screen the engraved canvas fades out and the same title comes in as HTML (Safari smears the canvas with filters) */
#bk-write { transition: opacity .6s; }
#bk.red #bk-write { opacity: 0; }
.bk-title b { position: absolute; left: 0; right: 0; text-align: center; font-family: "Archivo Black", system-ui, sans-serif; font-weight: 400; line-height: 1; white-space: nowrap; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .45), 0 0 18px rgba(255, 255, 255, .4); opacity: 0; pointer-events: none; transition: opacity .6s; }
#bk.red .bk-title b { opacity: 1; }
.e-hello { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.e-claim { font-family: "Archivo Black", system-ui, sans-serif; font-size: clamp(22px, 6.4vw, 30px); line-height: 1.1; margin: 6px 0 14px; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
#bk.red .bk-end { background: rgba(0, 0, 0, .28); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 30px 80px rgba(0, 0, 0, .5); }
#bk.red .e-go { background: #000; color: #fff; }
#bk.red .e-again { color: #ffd0d0; }
.bk-end { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); width: min(92vw, 400px); transform: translate(-50%, 30px); padding: 18px 16px 12px; border-radius: 18px; background: rgba(12, 12, 13, .92); box-shadow: 0 0 0 1px rgba(120, 255, 150, .35), 0 30px 80px rgba(0, 0, 0, .8); color: #fff; text-align: center; opacity: 0; pointer-events: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .9, .3, 1.1); }
#bk.end .bk-end { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.e-go { margin-top: 12px; width: 100%; height: 46px; border-radius: 12px; border: 0; background: #fff; color: #111; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.e-again { background: none; border: 0; color: #9a9aa2; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 8px; }

.bk-pill { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); z-index: 2147482000; display: flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 22px; border: 1px solid rgba(120, 255, 150, .5); background: #0d0d0e; color: #fff; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); transform: translate(-50%, calc(100% + 140px)); transition: transform .5s cubic-bezier(.2, .9, .3, 1.2); }
.bk-pill.on { transform: translate(-50%, 0); }
.bk-pill em { font-style: normal; color: #7dff9a; }
