/* Buzzies city map (buzzmap.js): cartoon bubbles, the honey territory, the you-are-here dot. Brand chrome stays ink, bone, honey. */
.bz-gl { background: radial-gradient(circle at 50% 58%, #d6efff 0, #8fcbff 38%, #4b8fe6 72%, #2c5fb8 100%); }
.bz-fade { opacity: 0; transition: opacity .6s ease; }
.bz-fade.bz-in { opacity: 1; }
.bz-gl .maplibregl-ctrl-group { border-radius: 14px; overflow: hidden; box-shadow: 0 3px 0 #111014, 0 8px 18px rgba(0,0,0,.25); border: 2px solid #111014; }
.bz-gl .maplibregl-ctrl-attrib { font: 11px/1.3 system-ui, sans-serif; }

/* Bubble pins, sized from Snap's story bubble (about 64 px with a white ring and a teardrop point). */
/* Reset first: the team page's HQ stylesheet styles every button. */
.bz-gl .bz-pin { all: unset; box-sizing: border-box; position: absolute; top: 0; left: 0; will-change: transform; display: grid; justify-items: center; padding: 0 0 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bz-gl .bz-pin:focus-visible .bz-bub { outline: 3px solid #2f7cf6; outline-offset: 3px; }
.bz-bub { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #F2C230;
  border: 4px solid #fff; box-shadow: 0 0 0 2.5px #111014, 0 7px 0 -1px rgba(17,16,20,.85), 0 12px 18px rgba(0,0,0,.35); }
.bz-bub::after { content: ''; position: absolute; left: 50%; bottom: -13px; width: 14px; height: 14px; background: #fff; border-right: 2.5px solid #111014; border-bottom: 2.5px solid #111014;
  transform: translateX(-50%) rotate(45deg); border-bottom-right-radius: 4px; z-index: -1; }
.bz-machine { display: block; width: 24px; height: 32px; background: center / contain no-repeat; image-rendering: pixelated; }
.bz-soon .bz-bub { background: #F4F1E8; box-shadow: 0 0 0 2.5px #111014, 0 12px 18px rgba(0,0,0,.28); }
.bz-soon .bz-machine { opacity: .55; }
.bz-pulse { position: absolute; left: 50%; top: 26px; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(242,194,48,.55); opacity: 0; pointer-events: none; }
.bz-motion .bz-live .bz-pulse, .bz-motion .bz-pin.on .bz-pulse { animation: bz-pulse 2.4s ease-out infinite; }
@keyframes bz-pulse { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.3); opacity: 0; } }
.bz-pin.on .bz-bub { box-shadow: 0 0 0 2.5px #111014, 0 0 0 7px #F2C230, 0 12px 18px rgba(0,0,0,.35); }
.bz-motion .bz-pin.pop .bz-bub { animation: bz-pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes bz-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* Team map: smaller bubbles in the stage colour with the bar tier letter and the walk-in night as a tag. */
.bz-stage .bz-bub { width: 40px; height: 40px; border-width: 3px; background: #5e5b57; }
.bz-stage .bz-pulse { top: 20px; width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.bz-stage .bz-bub b { font: 400 21px/1 'Bagel Fat One', 'Arial Black', system-ui, sans-serif; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.bz-stage.st-interested .bz-bub, .bz-stage.st-installed .bz-bub { background: #F2C230; } .bz-stage.st-interested .bz-bub b, .bz-stage.st-installed .bz-bub b { color: #111014; text-shadow: none; }
.bz-stage.st-called .bz-bub { background: #3f5f78; } .bz-stage.st-visit .bz-bub { background: #6F8FA8; }
.bz-stage.st-signed .bz-bub { background: #5E8C5B; } .bz-stage.st-paused .bz-bub { background: #8f8a80; }
.bz-tag { position: absolute; z-index: 2; top: -8px; right: -12px; padding: 2px 5px; border-radius: 7px; background: #111014; color: #F4F1E8;
  font: 800 10px/1.1 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 2px 4px rgba(0,0,0,.3); }

.bz-far .bz-pin { visibility: hidden; }
/* Metro zoom on the team map: compact bubbles and no night tags, so 31 bars stay readable. */
.bz-mid .bz-stage .bz-bub { width: 28px; height: 28px; border-width: 2.5px; }
.bz-mid .bz-stage .bz-bub b { font-size: 15px; }
.bz-mid .bz-stage .bz-bub::after { width: 10px; height: 10px; bottom: -9px; }
.bz-mid .bz-stage { padding-bottom: 7px; }
.bz-mid .bz-tag { display: none; }
.bz-gl .maplibregl-ctrl-attrib.maplibregl-compact { min-height: 24px; }
.bz-here { width: 20px; height: 20px; border-radius: 50%; background: #2f7cf6; border: 4px solid #fff; box-shadow: 0 0 0 2px #111014, 0 0 0 10px rgba(47,124,246,.22); }

@media (prefers-reduced-motion: no-preference) {
  .mp-card.up, .sheet > div { animation: bz-up .38s cubic-bezier(.2,.9,.25,1.08); }
}
@keyframes bz-up { from { transform: translateY(110%); } to { transform: translateY(0); } }

/* ---------- v3: Snap-style chrome, legend, zone card, 3D machine tap targets ---------- */
.bz-globe { position: absolute; z-index: 5; left: 14px; top: 14px; min-height: 40px; padding: 8px 16px; border: 2.5px solid #111014; border-radius: 999px;
  background: #fff; color: #111014; font: 800 15px/1 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 4px 0 #111014, 0 12px 26px rgba(17,16,20,.28); cursor: pointer; }
.bz-globe:active { transform: translateY(2px); box-shadow: 0 2px 0 #111014, 0 8px 18px rgba(17,16,20,.25); }
.mp-has-sample .bz-globe { top: 96px; }
@media (min-width: 900px) { .mp-has-sample .bz-globe { top: 64px; } }
.bz-gl .maplibregl-ctrl-top-left { top: 62px; }
.mp-has-sample .bz-gl .maplibregl-ctrl-top-left { top: 146px; }
@media (min-width: 900px) { .mp-has-sample .bz-gl .maplibregl-ctrl-top-left { top: 112px; } }
@media (max-width: 759px) { .bz-legend.bz-top { top: 62px; bottom: auto; left: auto; right: 12px; } .mp-has-sample .bz-legend.bz-top { top: 146px; } }

.bz-legend { position: absolute; z-index: 6; left: 12px; bottom: 16px; max-width: min(340px, calc(100% - 24px)); margin: 0; padding: 0; border: 2.5px solid #111014; border-radius: 24px;
  background: rgba(255,255,255,.96); color: #111014; box-shadow: 0 5px 0 #111014, 0 18px 40px rgba(17,16,20,.3); overflow: hidden; }
.bz-legend[hidden] { display: none; }
.bz-lg-head { all: unset; box-sizing: border-box; display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; cursor: pointer;
  font: 400 17px/1.1 'Bagel Fat One', 'Arial Black', system-ui, sans-serif; }
.bz-lg-head b { font: 800 18px/1 system-ui, sans-serif; transition: transform .2s; }
.bz-legend.closed .bz-lg-head b { transform: rotate(180deg); }
.bz-legend ul { list-style: none; margin: 0; padding: 0 16px 12px; display: grid; gap: 7px; font: 500 14px/1.25 'Barlow', system-ui, sans-serif; }
.bz-legend.closed ul { display: none; }
.bz-legend li { display: flex; align-items: center; gap: 6px; }
.bz-legend li span { margin-left: 4px; }
.bz-legend li b { font-weight: 800; }
.bz-lg-sub { margin-top: 4px; font: 800 12px/1 'Barlow Condensed', system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #6b6760; }
.bz-sw { flex: none; width: 18px; height: 18px; border-radius: 6px; border: 2px solid; }
.bz-mc { flex: none; width: 14px; height: 20px; border-radius: 4px; border: 2px solid #111014; box-shadow: inset 0 -5px 0 rgba(17,16,20,.15); }
.bz-mc.glow { box-shadow: 0 0 0 3px rgba(242,194,48,.55), 0 0 10px 3px rgba(242,194,48,.7); }

.bz-zone-card { position: absolute; z-index: 7; left: 50%; top: 14px; transform: translateX(-50%); width: min(360px, calc(100% - 24px)); padding: 14px 44px 14px 16px;
  border: 2.5px solid #111014; border-radius: 24px; background: #fff; color: #111014; box-shadow: 0 5px 0 #111014, 0 18px 40px rgba(17,16,20,.3); }
.bz-zone-card[hidden] { display: none; }
.bz-zone-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 400 20px/1.1 'Bagel Fat One', 'Arial Black', system-ui, sans-serif; }
.bz-zone-card p { margin: 4px 0 0; font: 500 14.5px/1.35 'Barlow', system-ui, sans-serif; }
.bz-zone-card .src { color: #6b6760; font-size: 12.5px; }
.bz-zone-card .x { all: unset; position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; font: 400 26px/1 system-ui; cursor: pointer; border-radius: 50%; }
.mp-has-sample .bz-zone-card { top: 96px; }
@media (max-width: 759px) { .bz-zone-card, .mp-has-sample .bz-zone-card { top: auto; bottom: 16px; } }   /* on a phone the card sits at the bottom, clear of the legend */

/* 3D machines: the bubble buttons become invisible tap targets the size of the machine on screen. */
.bz-3d .bz-pin { width: var(--bz-mw, 36px); height: var(--bz-mh, 50px); padding: 0; }
.bz-3d .bz-pin > :not(.bz-tag):not(.bz-count) { visibility: hidden; }
.bz-3d .bz-tag { top: -6px; right: -18px; }
.bz-3d .bz-pin:focus-visible { outline: 3px solid #2f7cf6; outline-offset: 2px; border-radius: 10px; }

@media (prefers-reduced-motion: reduce) { .bz-lg-head b { transition: none; } }

/* ---------- v3.1: ambient bubble animation (2D fallback), same rules as the 3D machines ---------- */
.bz-coming .bz-bub { background: #FFE39A; }
.bz-anim-full .bz-pin .bz-bub { animation: bz-drop .7s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0ms) both, bz-bob 3.2s ease-in-out calc(var(--d, 0ms) + .8s) infinite; }
@keyframes bz-drop { 0% { transform: translateY(-70px) scale(.9, 1.1); opacity: 0; } 55% { transform: translateY(0) scale(1.18, .78); opacity: 1; } 80% { transform: scale(.94, 1.06); } 100% { transform: none; opacity: 1; } }
@keyframes bz-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-2deg); } }
/* Under Reduce Motion: a small, slow drop and bob only (decorative, nothing flashes). Specific enough, with !important,
   to pass the site-wide reduced-motion rule in styles.css. ?motion=off turns it off entirely (bz-anim-off). */
html .bz-anim-gentle .bz-pin .bz-bub { animation: bz-drop-gentle 1.1s ease-out var(--d, 0ms) both, bz-bob-gentle 6s ease-in-out calc(var(--d, 0ms) + 1.1s) infinite !important; }
@keyframes bz-drop-gentle { 0% { transform: translateY(-14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes bz-bob-gentle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }

/* v3.2: merged machines carry a count badge; it splits as you zoom in. */
.bz-count { position: absolute; z-index: 3; top: -6px; right: -10px; min-width: 26px; padding: 3px 7px; border: 2px solid #fff; border-radius: 999px; background: #111014; color: #F2C230;
  font: 800 13px/1 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif; letter-spacing: .04em; text-align: center; box-shadow: 0 3px 8px rgba(0,0,0,.35); pointer-events: none; }
.bz-legend.closed { width: auto; }

/* ---------- v3.3: puffy chrome, day and night, clouds, sparkles, sticker badges ---------- */
.bz-gl.bz-night { background: radial-gradient(circle at 50% 58%, #3a3a8c 0, #1d1b52 45%, #0c0b26 100%); }
.bz-globe, .bz-daynight { box-shadow: 0 5px 0 #111014, 0 16px 34px rgba(17,16,20,.32); border-width: 3px; }
.bz-daynight { position: absolute; z-index: 5; left: 108px; top: 14px; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 15px 8px 11px;
  border: 3px solid #111014; border-radius: 999px; background: #fff; color: #111014; cursor: pointer;
  font: 800 15px/1 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.bz-daynight i { width: 18px; height: 18px; border-radius: 50%; background: #F2C230; box-shadow: 0 0 0 2px #111014; }   /* the sun */
.bz-daynight.on { background: #1d1b52; color: #fff; }
.bz-daynight.on i { background: transparent; box-shadow: inset -6px -1px 0 0 #ffe9a8, 0 0 0 0 #111014; }               /* the moon: a crescent */
.mp-has-sample .bz-daynight { top: 96px; }
@media (min-width: 900px) { .mp-has-sample .bz-daynight { top: 64px; } }
.bz-daynight:active, .bz-globe:active { transform: translateY(3px); box-shadow: 0 2px 0 #111014, 0 8px 18px rgba(17,16,20,.28); }

/* Round bubble-sticker count badges. */
.bz-count { min-width: 30px; height: 30px; padding: 0 6px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 999px; transform: rotate(-6deg);
  font-size: 14px; box-shadow: 0 3px 0 rgba(17,16,20,.5), 0 6px 14px rgba(17,16,20,.35); }

/* Drifting cloud shadows over the metro view (only while zoomed out). */
.bz-clouds { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; visibility: hidden; }
.bz-mid .bz-clouds { visibility: visible; }
.bz-clouds i { position: absolute; width: 46%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(30,26,60,.16), rgba(30,26,60,0)); filter: blur(6px); }
.bz-clouds i:nth-child(1) { top: 12%; left: -40%; } .bz-clouds i:nth-child(2) { top: 48%; left: -60%; width: 36%; } .bz-clouds i:nth-child(3) { top: 72%; left: -30%; width: 52%; }
.bz-night .bz-clouds i { background: radial-gradient(closest-side, rgba(0,0,0,.25), rgba(0,0,0,0)); }
.bz-anim-full .bz-clouds i { animation: bz-drift 70s linear infinite; }
.bz-anim-full .bz-clouds i:nth-child(2) { animation-duration: 95s; animation-delay: -30s; } .bz-anim-full .bz-clouds i:nth-child(3) { animation-duration: 120s; animation-delay: -70s; }
html .bz-anim-gentle .bz-clouds i { animation: bz-drift 260s linear infinite !important; opacity: .6; }   /* Reduce Motion: very slow, fainter */
html .bz-anim-gentle .bz-clouds i:nth-child(2) { animation-delay: -90s !important; } html .bz-anim-gentle .bz-clouds i:nth-child(3) { animation-delay: -180s !important; }
.bz-anim-off .bz-clouds { display: none; }
@keyframes bz-drift { from { transform: translateX(0); } to { transform: translateX(330%); } }

/* Sparkle burst on tap: honey four-point stars flying out. */
.bz-spark { position: absolute; left: 50%; top: 35%; width: 0; height: 0; pointer-events: none; z-index: 4; visibility: visible !important; }
.bz-spark i { position: absolute; width: 12px; height: 12px; margin: -6px; background: #F2C230; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: bz-spark .8s ease-out forwards; }
.bz-spark i:nth-child(2n) { background: #fff; width: 9px; height: 9px; }
.bz-spark i:nth-child(1) { --dx: 0px; --dy: -44px; } .bz-spark i:nth-child(2) { --dx: 31px; --dy: -31px; } .bz-spark i:nth-child(3) { --dx: 44px; --dy: 0px; } .bz-spark i:nth-child(4) { --dx: 31px; --dy: 31px; }
.bz-spark i:nth-child(5) { --dx: 0px; --dy: 44px; } .bz-spark i:nth-child(6) { --dx: -31px; --dy: 31px; } .bz-spark i:nth-child(7) { --dx: -44px; --dy: 0px; } .bz-spark i:nth-child(8) { --dx: -31px; --dy: -31px; }
.bz-spark.soft i { --dx: 0px; --dy: 0px; }
html .bz-spark.soft i { animation: bz-spark-soft 1s ease-out forwards !important; }
@keyframes bz-spark { 0% { transform: translate(0, 0) scale(.3); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(90deg); opacity: 0; } }
@keyframes bz-spark-soft { 0% { opacity: 0; } 30% { opacity: .9; } 100% { opacity: 0; } }
.bz-3d .bz-pin > .bz-spark { visibility: visible; }

/* Puffier legend chip. */
.bz-legend { border-width: 3px; box-shadow: 0 6px 0 #111014, 0 18px 40px rgba(17,16,20,.32); }

/* Homepage hero: a showcase map, nothing to tap. */
.bz-hero .bz-pin { pointer-events: none; }
