/* Promoter section pass (booking.html, booking/es). Decorative and aria-hidden, wide screens only.
   The badge hangs from the section's top rule on a red strap. When the section opens
   (shared/marketing.js adds .is-open to #promoters), it drops in and swings to rest once, and the
   request slip slides in behind it. Without JS or with reduced motion it simply hangs at rest. */
.bk-hang{display:none}
@media (min-width:960px){
  .bk-steps{position:relative}
  .bk-steps .bk-reveal{margin-right:clamp(320px,31vw,460px)}
  .bk-hang{
    display:block;position:absolute;top:0;right:0;width:clamp(300px,28vw,400px);height:100%;
    user-select:none;-webkit-user-select:none; /* spam-clicking here never selects text */
    pointer-events:none;clip-path:inset(0 -240px -240px -240px); /* hide only what is above the rule */
  }
}

/* Lanyard in 3D: six nested strap segments (so the ribbon bends), then the card, which has a front,
   five edge slices for thickness and a back. Everything rotates around the top of the strap. */
.bk-hang{perspective:1100px;perspective-origin:50% 0}
.bk-lanyard{--strap:clamp(64px,7vw,104px);position:absolute;top:0;left:50%;width:256px;margin-left:-150px;transform-origin:50% 0;transform:rotate(-3deg);transform-style:preserve-3d}
.bk-seg{position:relative;height:calc(var(--strap) / 6);transform-origin:50% 0;transform-style:preserve-3d}
.bk-seg>.bk-seg,.bk-seg>.bk-card3d{position:absolute;top:100%;left:0;right:0}
.bk-strap{display:block;width:14px;height:calc(100% + 1px);margin:0 auto;background:var(--rl-red);box-shadow:inset 3px 0 0 rgba(0,0,0,.18),inset -3px 0 0 rgba(0,0,0,.18)}
.bk-card3d{transform-origin:50% 0;transform-style:preserve-3d}
.bk-clip{display:block;width:18px;height:26px;margin:-4px auto -6px;border:3px solid #b8b0a6;border-radius:9px 9px 6px 6px;position:relative;z-index:1}
.bk-faces{position:relative;transform-style:preserve-3d}
.bk-badge{position:relative;padding:12px;background:#1d1917;border:1px solid rgba(246,239,230,.14);border-radius:16px;box-shadow:0 24px 48px rgba(0,0,0,.5);-webkit-backface-visibility:hidden;backface-visibility:hidden}
.bk-badge:not(.bk-back)::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.16) 50%,transparent 62%) var(--sheen,50%) 0/260% 100% no-repeat;
}
.bk-edge{position:absolute;inset:0;border-radius:16px;background:#2a2421;transform:translateZ(var(--z))}
.bk-back{position:absolute;inset:0;transform:translateZ(-6px) rotateY(180deg);box-shadow:none}
.bk-card-back{height:calc(100% - 18px);align-content:start;gap:8px}
.bk-back-bar{display:block;height:10px;background:var(--rl-red)}
.bk-card-back .bk-b-name{font-size:40px}
.bk-card-back .bk-bars{margin-top:auto}
.bk-slot{display:block;width:56px;height:8px;margin:0 auto 10px;border-radius:4px;background:#0b0908}
.bk-card{display:grid;gap:6px;padding:12px 14px 12px;border-radius:8px;background:#ece4d8;color:#15110f;text-transform:uppercase;font-family:var(--sans)}
.bk-hazard{display:block;height:10px;background:repeating-linear-gradient(-45deg,#15110f 0 5px,transparent 5px 10px)}
.bk-b-name{font:800 54px/.9 var(--sans);letter-spacing:-.045em}
.bk-b-city{font:700 17px/1.1 var(--sans);letter-spacing:-.01em}
.bk-b-sub{font:600 11px/1.1 var(--sans);letter-spacing:.04em}
.bk-b-row{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;padding-top:6px;border-top:2px solid #15110f}
.bk-b-row b{font:800 46px/.85 var(--sans);letter-spacing:-.04em}
.bk-b-row span{font:700 10px/1.15 var(--sans);letter-spacing:.04em;text-align:right}
.bk-bars{display:block;height:34px;background:repeating-linear-gradient(90deg,currentColor 0 2px,transparent 2px 4px,currentColor 4px 5px,transparent 5px 8px,currentColor 8px 11px,transparent 11px 13px)}

/* Request slip behind the badge, zigzag bottom edge. */
.bk-receipt{
  position:absolute;top:clamp(110px,10vw,150px);right:-34px;width:196px;display:grid;gap:5px;padding:14px 14px 26px;
  background:#efe9e1;color:#2a2420;transform:rotate(14deg);transform-origin:50% 0;box-shadow:0 18px 36px rgba(0,0,0,.45);
  font:600 10px/1.3 var(--sans);letter-spacing:.05em;text-transform:uppercase;font-variant-numeric:tabular-nums;
  -webkit-mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) 50%/12px 100%;
  mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) 50%/12px 100%;
}
.bk-r-top{font-weight:800;font-size:13px;letter-spacing:.06em;text-align:center}
.bk-r-meta{display:flex;justify-content:space-between;gap:8px;font-size:9px;letter-spacing:.08em;color:#6f655a}
.bk-r-total{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-top:1px dashed #8a7f73;border-bottom:1px dashed #8a7f73;font-weight:800;font-size:12px}
.bk-r-total em{font-style:normal}
.bk-r-foot{font-size:9px;letter-spacing:.1em;text-align:center;color:#6f655a}
.bk-r-head{font-weight:800;font-size:12px;letter-spacing:.08em;padding-bottom:6px;border-bottom:1px dashed #8a7f73}
.bk-r-row{display:flex;justify-content:space-between;gap:8px;padding-bottom:5px;border-bottom:1px dotted #b3a99d}
.bk-r-row b{font-weight:600}
.bk-r-row em{font-style:normal;font-weight:800}
.bk-receipt .bk-bars{height:26px;margin-top:4px}

/* Interactive badge (booking-badge.js): brush to sway, click to knock, drag to fling and spin. */
.bk-faces.is-live{pointer-events:auto;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.bk-faces.is-grabbed{cursor:grabbing}
.bk-faces.is-hit{animation:bk-knock .3s cubic-bezier(.2,.8,.3,1)}
@keyframes bk-knock{12%{transform:translateZ(-34px) scale(.97)}40%{transform:translateZ(6px)}}
.rl-clip .bk-steps.is-open .bk-lanyard.is-live{animation:none}
/* Tearable receipt (booking-badge.js): pull to rip; the torn piece falls; a new one slides in. */
.bk-receipt.is-live{pointer-events:auto;cursor:grab;touch-action:none}
.bk-receipt.is-pulled{cursor:grabbing}
.bk-receipt.is-snap{transition:transform .35s cubic-bezier(.3,1.6,.5,1)}
.rl-clip .bk-steps.is-open .bk-receipt.is-live{animation:none}
.bk-receipt.bk-scrap{pointer-events:none;transition:none;z-index:3}
/* The printer a new receipt feeds out of: a slim bar centred on the receipt's top edge, at the same
   angle, lighter than the page so it reads on the dark background, with a red status light. */
.bk-printer{
  position:absolute;top:calc(clamp(110px,10vw,150px) - 10px);right:-50px;width:228px;height:20px;border-radius:6px;
  background:linear-gradient(#4a423d,#2a2421 60%,#1a1614);border:1px solid rgba(246,239,230,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 10px 22px rgba(0,0,0,.6);
  transform:rotate(14deg);transform-origin:50% 10px;opacity:0;pointer-events:none;
}
.bk-printer::before{content:"";position:absolute;left:12px;right:12px;bottom:3px;height:3px;border-radius:2px;background:#050404}
.bk-printer::after{
  content:"";position:absolute;right:9px;top:5px;width:5px;height:5px;border-radius:50%;
  background:var(--rl-red);box-shadow:0 0 6px var(--rl-red);animation:bk-led .5s steps(2,jump-none) infinite;
}
@keyframes bk-led{50%{opacity:.25}}

/* Motion: only once the script has armed the section (html.rl-clip, motion allowed). */
.rl-clip .bk-steps:not(.is-open) .bk-lanyard{transform:translateY(-110%)}
.rl-clip .bk-steps:not(.is-open) .bk-receipt{opacity:0;transform:translate(40px,24px) rotate(26deg)}
.rl-clip .bk-steps.is-open .bk-lanyard{animation:bk-drop 1.6s ease-in-out .2s both}
.rl-clip .bk-steps.is-open .bk-receipt{animation:bk-slip .7s var(--rl-ease) .75s both}
@keyframes bk-drop{
  0%{transform:translateY(-110%) rotate(0deg);animation-timing-function:cubic-bezier(.45,0,.75,1)}
  28%{transform:translateY(0) rotate(6deg)}
  45%{transform:translateY(0) rotate(-9deg)}
  60%{transform:translateY(0) rotate(0deg)}
  74%{transform:translateY(0) rotate(-5deg)}
  87%{transform:translateY(0) rotate(-2deg)}
  100%{transform:translateY(0) rotate(-3deg)}
}
@keyframes bk-slip{
  from{opacity:0;transform:translate(40px,24px) rotate(26deg)}
  to{opacity:1;transform:rotate(14deg)}
}
@media (prefers-reduced-motion:reduce){
  .bk-lanyard,.bk-receipt,.bk-faces{animation:none!important}
  .rl-clip .bk-steps .bk-lanyard{transform:rotate(-3deg)!important}
  .rl-clip .bk-steps .bk-receipt{opacity:1!important;transform:rotate(14deg)!important}
}
