/* VAIR00324 (PKN): the CSS Lab controls PKN ruled "Use" (Research/_deliverables/CSS_LAB_20261114_0215.html).
   One shared file for every /venue/ page, added before </head> by brand_controls.inject_head() (app.py's HTML hook).
   Colours: #FF7300 / #1A0E00 (brand), #1E2026 / #2A2D34 (surfaces), #9BA1AB (muted). */

/* Lab 1, premium button. fp_brand_controls.js adds .fp-prem to every brand button (computed background #FF7300, the
   brand-button gate's own test). Only background-IMAGE and box-shadow change: background-color stays #FF7300 and the
   text colour stays #1A0E00. A pulsing button (.fp-pulse, VAIR00247) keeps its pulse. */
.fp-prem:not(.fp-pulse){background-image:linear-gradient(#ff8b2e,#ff7300 55%,#f06a00)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 -1px 0 rgba(0,0,0,.28),0 1px 2px rgba(0,0,0,.7),0 10px 26px -8px rgba(255,115,0,.65)!important;
  transition:transform .08s}
.fp-prem:not(.fp-pulse):active{background-image:linear-gradient(#f06a00,#ff7300 45%,#ff8b2e)!important;
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.3),inset 0 1px 2px rgba(0,0,0,.35),0 1px 1px rgba(0,0,0,.7),0 4px 14px -8px rgba(255,115,0,.6)!important;
  transform:translateY(1px)}

/* Lab 2, shimmer: one button per screen (the PocketPass page's install button for this phone). */
.fp-shim{position:relative;overflow:hidden;border-radius:8px}
.fp-shim::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.7) 50%,transparent 65%);
  transform:translateX(-120%);animation:fpShim 3.2s ease-in-out infinite}
@keyframes fpShim{0%,62%{transform:translateX(-120%)}100%{transform:translateX(120%)}}

/* VAIR00330 (PKN): the sign page saves with the official wallet badges again (Lab 3's split button is retired).
   VAIR00334 (PKN): both badges full size (.fp-wbig), this phone's wallet first; no text link. */
.fp-wsave{margin:0 0 6px}
.fp-wbig .wallet-badge{height:60px!important;width:auto;display:block;margin:0 auto}
.fp-wbig:disabled{cursor:default}   /* VAIR00338: never dimmed (Apple's badge rules) */
.fp-wsave+.fp-wsave{margin-top:4px}   /* VAIR00334: the second official badge, full size, under the first */

/* Lab 4, three-size toggle (the guide's "Image only"). Small knob off, big knob on, bigger while pressed. */
.fp-tg{cursor:pointer;-webkit-tap-highlight-color:transparent}
.fp-tg input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.fp-tg .track{width:52px;height:32px;border-radius:999px;border:2px solid #8a8a90;position:relative;flex:none;box-sizing:border-box;
  transition:background .2s,border-color .2s}
.fp-tg .thumb{position:absolute;top:50%;left:6px;width:16px;height:16px;border-radius:50%;background:#8a8a90;transform:translateY(-50%);
  display:grid;place-items:center;font-size:14px;line-height:1;color:transparent;
  transition:left .25s cubic-bezier(.34,1.56,.64,1),width .25s cubic-bezier(.34,1.56,.64,1),height .25s cubic-bezier(.34,1.56,.64,1),background .2s}
.fp-tg:has(input:checked) .track{background:#FF7300;border-color:#FF7300}
.fp-tg:has(input:checked) .thumb{left:22px;width:24px;height:24px;background:#1A0E00;color:#FF7300}
.fp-tg:active .thumb{width:28px;height:28px}
.fp-tg:has(input:checked):active .thumb{left:20px}
.fp-tg:has(input:focus-visible) .track{outline:2px solid #FF7300;outline-offset:3px}

/* Lab 5, thick slider with a gap (the guide's pace). 5 steps; the step's word shows above the handle while it is held. */
.fp-ms{position:relative;height:44px;width:100%;--v:50;margin:30px 0 4px;touch-action:none;cursor:pointer;-webkit-user-select:none;user-select:none}
.fp-ms .a{position:absolute;left:0;top:14px;height:16px;width:max(0px,calc(var(--v)*1% - 8px));background:#FF7300;border-radius:8px 2px 2px 8px}
.fp-ms .h{position:absolute;top:0;left:calc(var(--v)*1% - 2px);width:4px;height:44px;border-radius:2px;background:#FF7300;transition:width .1s,left .1s}
.fp-ms .i{position:absolute;top:14px;right:0;left:min(100%,calc(var(--v)*1% + 8px));height:16px;background:#2A2D34;
  border:1px solid rgba(255,255,255,.08);border-radius:2px 8px 8px 2px;box-sizing:border-box}
.fp-ms .i::after{content:"";position:absolute;right:6px;top:50%;width:4px;height:4px;border-radius:50%;background:#FF7300;transform:translateY(-50%)}
.fp-ms input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer;pointer-events:none}   /* VAIR00330: the finger drives .fp-ms itself; the input keeps keyboard use */
.fp-ms.fp-snap .a,.fp-ms.fp-snap .h,.fp-ms.fp-snap .i,.fp-ms.fp-snap .w{transition:width .18s,left .18s}
.fp-ms.fp-held .h{width:2px;left:calc(var(--v)*1% - 1px)}
.fp-ms .w{position:absolute;bottom:52px;left:calc(var(--v)*1%);transform:translateX(-50%);background:#FF7300;color:#1A0E00;
  font-weight:700;font-size:13px;padding:4px 10px;border-radius:999px;white-space:nowrap;opacity:0;transition:opacity .15s;pointer-events:none}
.fp-ms.fp-held .w,.fp-ms:focus-within .w{opacity:1}

/* Lab 6, gliding pill (the tile finder's category bar while a list is open). */
.fp-pnav{position:relative;display:flex;gap:4px;background:#2A2D34;border-radius:999px;padding:4px;max-width:100%;
  overflow-x:auto;scrollbar-width:none;margin:0 0 10px}
.fp-pnav::-webkit-scrollbar{display:none}
.fp-pnav button{position:relative;z-index:1;flex:none;background:none;border:0;color:#F2F3F5;font:inherit;font-size:15px;
  font-weight:600;padding:9px 14px;border-radius:999px;white-space:nowrap;cursor:pointer;min-height:40px}
.fp-pnav button.on{color:#1A0E00}
.fp-pnav .fp-pill{position:absolute;z-index:0;left:4px;top:4px;width:0;height:0;background:#FF7300;border-radius:999px;
  transition:left .3s cubic-bezier(.3,.9,.3,1),width .3s cubic-bezier(.3,.9,.3,1),top .3s,height .3s}

/* VAIR00325 (PKN): the motion bundle, CSS Lab 7, 8, 16, 17, 18. */
/* Lab 7, floating action menu ("Where to?" on the walking route). The items unfold with a bounce; @starting-style
   animates them from display:none. */
.fp-fab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:60;display:flex;flex-direction:column;
  align-items:flex-end;gap:8px;pointer-events:none}
.fp-fab>*{pointer-events:auto}
.fp-fab .fp-fab-btn{display:inline-flex;align-items:center;gap:8px;height:56px;padding:0 20px 0 16px;border:0;border-radius:18px;
  background:#FF7300;color:#1A0E00;font:inherit;font-size:17px;font-weight:800;cursor:pointer}
.fp-fab .fp-fab-btn .x{display:inline-block;font-size:26px;line-height:1;transition:transform .25s}
.fp-fab.open .fp-fab-btn .x{transform:rotate(45deg)}
.fp-fab ul{display:grid;justify-items:end;gap:8px;margin:0;padding:0;list-style:none}
.fp-fab li{display:none;opacity:0;transform:translateY(14px) scale(.9);
  transition:opacity .25s,transform .35s cubic-bezier(.34,1.56,.64,1),display .35s allow-discrete;transition-delay:calc(var(--i)*45ms)}
.fp-fab.open li{display:block;opacity:1;transform:none}
@starting-style{.fp-fab.open li{opacity:0;transform:translateY(14px) scale(.9)}}
/* VAIR00331 (PKN): "Where to?" sits in the route view's button row (.fp-rt-btns), not floating; the menu opens upward. */
.fp-fab.fp-fab-inline{position:relative;right:auto;bottom:auto;z-index:auto;display:block;pointer-events:auto}
.fp-fab-inline .fp-fab-btn{width:100%;height:auto;min-height:52px;padding:14px 10px;justify-content:center;border-radius:12px;font-size:16px}
.fp-fab-inline ul{position:absolute;right:0;bottom:calc(100% + 8px);z-index:60;min-width:200px}
.fp-fab li a{display:block;background:#2A2D34;border:1px solid rgba(255,255,255,.12);color:#F2F3F5;text-decoration:none;
  font-weight:700;font-size:16px;padding:12px 18px;border-radius:999px;box-shadow:0 6px 18px rgba(0,0,0,.45);min-height:44px;box-sizing:border-box}

/* Lab 8, firework: orange and black only (PKN). VAIR00330 (PKN): window.fpFirework(el) starts each of 18 sparks on el's
   edge, 6 px outside it, and throws it outward, so no spark ever crosses el or its text. */
.fp-sparks{position:fixed;left:0;top:0;width:0;height:0;pointer-events:none;z-index:1}
.fp-spark{position:absolute;left:var(--sx);top:var(--sy);width:3px;height:14px;border-radius:2px;background:linear-gradient(#FF7300,#1A0E00);
  box-shadow:0 0 0 1px #1A0E00;transform:translate(-50%,-50%) rotate(var(--a));animation:fpFw .8s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes fpFw{0%{opacity:1;transform:translate(-50%,-50%) rotate(var(--a)) scaleY(.3)}60%{opacity:1}
  100%{opacity:0;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) rotate(var(--a)) scaleY(1)}}

/* VAIR00330 (PKN): the walking route's progress, three styles chosen with ?progress= (grow is the default; the wavy bar
   of Lab 16 is removed). --p = steps reached / steps. */
.fp-pg{position:relative;flex:1 1 100%;height:10px;border-radius:5px;background:#2A2D34;margin:0 0 6px;--p:0%}
.fp-pg .fill{position:absolute;left:0;top:0;bottom:0;width:var(--p);background:#FF7300;border-radius:5px;transition:width .45s cubic-bezier(.3,.9,.3,1)}
/* grow: a solid orange bar that grows with each step */
/* drill (VAIR00334, PKN; the default): reversed -- the bar starts full orange and a helical cutter head eats it, leaving
   dark grey (#2a2a2e) from the left edge to the cutter; right of the cutter stays orange. --p = the eaten share. The cutter
   (venue_legs.CUTTER_SVG, about 1.5x the bar's height) sits on the boundary; its flutes slide to look like it is turning. */
/* VAIR00337 (PKN): the cutter is a twist drill bit (venue_legs.CUTTER_SVG) pointing right, its apex AT the cut. The bar is
   #2a2a2e; .fill is now the orange still to bore, from the apex to the right end, ending in a V notch whose edges lie on
   the drill's flanks (--notch = venue_legs.DRILL_NOTCH_PX, from DRILL_TIP_DEG). .trk starts --dw (the drill's length) in,
   so --p 0% shows the whole drill on the bar's left end and 100% puts the apex at the right end; there .fp-done hides the
   two orange wedges left beside the point once the drill arrives (after the .9s move). */
.fp-pg-drill{height:12px;border-radius:6px;background:#2a2a2e;margin:4px 0 8px}
.fp-pg-drill .trk{position:absolute;top:0;bottom:0;left:var(--dw,26px);right:0}
.fp-pg-drill .fill{left:calc(var(--p) - var(--notch,3.605px));right:0;width:auto;background:#FF7300;border-radius:0 6px 6px 0;
  clip-path:polygon(0 0,100% 0,100% 100%,0 100%,var(--notch,3.605px) 50%);transition:left .9s linear,opacity 0s linear 0s}
.fp-pg-drill.fp-done .fill{opacity:0;transition:left .9s linear,opacity 0s linear .9s}
/* VAIR00341 (PKN): while a leg's video plays, venue_legs drillP() sets --p every frame; .fp-vid turns the .9s glide off so
   the drill tracks the video exactly (a move to another leg removes .fp-vid for 950 ms and keeps the glide). */
.fp-pg-drill.fp-vid .fill,.fp-pg-drill.fp-vid .cutter{transition:none}
.fp-pg-drill .cutter{position:absolute;top:50%;left:var(--p);width:26px;height:18px;margin:-9px 0 0 calc(-1 * var(--dw,26px));
  overflow:visible;transition:left .9s linear;filter:drop-shadow(0 1px 1px rgba(0,0,0,.6))}
.fp-pg-drill .cutter .spin{animation:fpCut .45s linear infinite}
.fp-pg-drill.fp-boring .cutter .spin{animation-duration:.15s}
@keyframes fpCut{from{transform:translateY(0)}to{transform:translateY(6px)}}
/* steps: one notch per step; the notches fill as the traveler moves on */
.fp-pg-steps{display:flex;gap:4px;background:none}
.fp-pg-steps i{flex:1;border-radius:3px;background:#2A2D34;transition:background .3s}
.fp-pg-steps i.on{background:#FF7300}

/* Lab 17, skeleton rows (a finder list while the chosen route loads). */
.fp-sk{height:52px;border-radius:12px;background:linear-gradient(90deg,#1E2026 25%,#2A2D34 50%,#1E2026 75%) 0 0/300% 100%;
  animation:fpSk 1.3s linear infinite}
@keyframes fpSk{to{background-position:-150% 0}}

/* Lab 18, live dot: only beside data that is live (a measured security wait, an alert that is on the passes now). */
.fp-live{display:inline-block;width:10px;height:10px;border-radius:50%;background:#4ADE80;margin:0 6px 0 4px;vertical-align:middle;
  animation:fpLive 1.6s ease-out infinite}
@keyframes fpLive{0%{box-shadow:0 0 0 0 rgba(74,222,128,.7)}100%{box-shadow:0 0 0 14px rgba(74,222,128,0)}}

/* VAIR00326 (PKN): the sales page visuals, CSS Lab 9, 14, 21. */
/* Lab 9, foil PocketPass: orange and black only. A foil layer three times wider than the card slides against the tilt. */
.fp-holo{--rx:0deg;--ry:0deg;--shift:0%;width:min(100%,300px);aspect-ratio:1.58;border-radius:16px;position:relative;overflow:hidden;
  background:linear-gradient(160deg,#141414,#000 70%);border:1px solid #5a2a00;padding:16px;color:#FF7300;box-sizing:border-box;
  transform:perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));transition:transform .15s;display:grid;align-content:space-between;
  touch-action:none;text-align:left}
/* VAIR00330 (PKN): the sweep is #FF7300 on black -- plain alpha bands, no colour-dodge blend (the blend over the dark
   orange base read red on PKN's phone). Brightest band rgb(255,140,40), hue 28 deg. */
.fp-holo::after{content:"";position:absolute;inset:0 -100%;pointer-events:none;transform:translateX(var(--shift));
  background:repeating-linear-gradient(115deg,rgba(255,115,0,0) 0 8%,rgba(255,115,0,.28) 11%,rgba(255,140,40,.62) 14%,rgba(255,115,0,.28) 17%,rgba(255,115,0,0) 20% 40%)}
.fp-holo>*{position:relative;z-index:1}
.fp-holo p{margin:0}
.fp-holo .t1{font-size:22px;font-weight:800;color:#FF7300}
.fp-holo .t2{font-size:13px;color:#FF9A40;text-transform:none}
.fp-holo .t3{font-size:16px;font-weight:800;color:#FF7300;margin:2px 0}
.fp-holo .row{display:flex;justify-content:space-between;align-items:flex-end}
.fp-holo .ring{width:40px;height:40px;border-radius:50%;border:3px solid #FF7300;display:grid;place-items:center;font-weight:800;font-size:12px;color:#FF7300;flex:none}

/* Lab 21, grain: an SVG noise tile over a large gradient, overlay blend, so the gradient does not band on big screens. */
.fp-grain::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.55;mix-blend-mode:overlay;border-radius:inherit;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}

/* Lab 14, before / after slider: two stacked pictures, clip-path on the second, an invisible range input. */
.fp-ba{--pos:50%;position:relative;width:min(100%,320px);aspect-ratio:9/16;border-radius:12px;overflow:hidden;margin:0 auto;background:#111}
.fp-ba .layer{position:absolute;inset:0}
.fp-ba .layer img{width:100%;height:100%;object-fit:cover;display:block}
.fp-ba .after{clip-path:inset(0 0 0 var(--pos))}
.fp-ba .line{position:absolute;top:0;bottom:0;left:var(--pos);width:2px;background:#FF7300;transform:translateX(-1px);pointer-events:none}
.fp-ba .line::after{content:"\2194";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:34px;height:34px;border-radius:50%;
  background:#FF7300;color:#1A0E00;display:grid;place-items:center;font-size:18px;font-weight:800}
.fp-ba input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:ew-resize}

@media (prefers-reduced-motion:reduce){
  .fp-prem,.fp-tg .track,.fp-tg .thumb,.fp-ms .h,.fp-ms .w,.fp-pnav .fp-pill{transition:none!important}
  .fp-prem:active{transform:none!important}
  .fp-shim::after{animation:none!important;display:none}
  .fp-fab li,.fp-fab .fp-fab-btn .x,.fp-pg-grow .fill,.fp-pg i{transition:none!important}
  .fp-pg-drill .cutter .spin,.fp-sk,.fp-live{animation:none!important}   /* VAIR00334: no spin; the cutter still moves */
  .fp-sparks{display:none!important}
  .fp-holo{transform:none!important;transition:none!important}
}
