@font-face {
  font-family: "Earwig Factory";
  src: url("Font/earwig%20factory%20rg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Fixed px sizes — does not scale with viewport or root font-size */
.bb-hamburger {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100001;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  background: #e6037d;
  border: 3px solid #1a0a0a;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
  box-shadow: 4px 4px 0 #1a0a0a, 8px 8px 0 rgba(0, 0, 0, 0.35);
  --rot: -6deg;
  transform: rotate(var(--rot));
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  animation: bb-hamburger-pulse 2.6s ease-in-out infinite;
}

@keyframes bb-hamburger-pulse {
  0%, 100% { transform: rotate(var(--rot)) scale(1); }
  50%      { transform: rotate(var(--rot)) scale(1.05); }
}

.bb-hamburger:hover {
  --rot: 4deg;
  background: #f1ec00;
  box-shadow: 6px 6px 0 #1a0a0a;
  animation: none;
  transform: rotate(var(--rot)) scale(1.12);
}

.bb-hamburger:hover span:nth-child(1) { background: #ef3d3f; }
.bb-hamburger:hover span:nth-child(2) { background: #1a0a0a; }
.bb-hamburger:hover span:nth-child(3) { background: #0086d5; }

.bb-hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 1px;
  transition: background 0.25s ease;
}
.bb-hamburger span:nth-child(1) { background: #e0d8c4; } /* crème */
.bb-hamburger span:nth-child(2) { background: #00cac8; } /* turquoise */
.bb-hamburger span:nth-child(3) { background: #f1ec00; } /* geel */

.bb-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-height: 100vh;
  max-height: 100svh;
  max-height: 100dvh;
  box-sizing: border-box;
  font-size: 16px; /* isolate from page root font scaling */
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
          backdrop-filter: blur(20px) saturate(140%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 11px;
  padding: 72px 24px 64px 32px;
  z-index: 100000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1);
  overflow-x: hidden;
  overflow-y: auto;
  border-bottom-left-radius: 90px;
  border: 0 solid transparent; /* pink border removed */
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.25);
}

.bb-menu-overlay.bb-active { transform: translateX(0); }

.bb-menu-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    url("Rooms/menu%20720%20420.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 1;
  pointer-events: none;
}

.bb-menu-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
}

.bb-menu-item {
  position: relative;
  font-weight: normal;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s;
  z-index: 1;
  padding: 2px 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  font-family: "Earwig Factory", Impact, sans-serif;
  line-height: 1.05;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.04em;
  white-space: nowrap;
  --rot: 0deg;
  transform: rotate(var(--rot));
}

.bb-menu-item.huge  { font-size: 48px; }
.bb-menu-item.big   { font-size: 46px; }
.bb-menu-item.mid   { font-size: 46px; }
.bb-menu-item.small { font-size: 45px; }

.bb-menu-overlay .bb-menu-item:nth-child(1) { --rot: -3deg; color: #ef3d3f; } /* HOME */
.bb-menu-overlay .bb-menu-item:nth-child(2) { --rot:  4deg; color: #4a297e; } /* PORTFOLIO */
.bb-menu-overlay .bb-menu-item:nth-child(3) { --rot: -5deg; color: #00cac8; } /* SHOP */
.bb-menu-overlay .bb-menu-item:nth-child(4) { --rot:  2deg; color: #db54a5; } /* ABOUT */
.bb-menu-overlay .bb-menu-item:nth-child(5) { --rot: -2deg; color: #17255f; } /* AGENDA */
.bb-menu-overlay .bb-menu-item:nth-child(6) { --rot:  3deg; color: #1e98b5; } /* CONTACT */
.bb-menu-overlay .bb-menu-item:nth-child(7) { --rot: -4deg; color: #e6037d; } /* GALLERY */
.bb-menu-overlay .bb-menu-item:nth-child(8) { --rot:  1deg; color: #0086d5; } /* GAME */

.bb-menu-item:hover {
  transform: rotate(calc(var(--rot) + 2deg)) scale(1.08);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35)) brightness(1.15);
}

