/* TheLazyFam floating logo nav — radial burst */
.tlf-nav {
  --tlf-yellow: #f4c042;
  --tlf-ink: #111111;
  --tlf-paper: #ffffff;
  --tlf-logo: 104px;
  --tlf-item: 66px;
  --tlf-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  --tlf-z: 99990;
  font-family: inherit;
}
.tlf-nav *, .tlf-nav *::before, .tlf-nav *::after { box-sizing: border-box; }

/* backdrop */
.tlf-backdrop {
  position: fixed; inset: 0; z-index: var(--tlf-z);
  background: rgba(17, 17, 17, .45);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.tlf-nav.is-open .tlf-backdrop,
.tlf-nav.is-search .tlf-backdrop { opacity: 1; pointer-events: auto; }

/* anchor point: centre of the logo */
.tlf-anchor {
  position: fixed; left: 50%; bottom: var(--tlf-bottom);
  width: var(--tlf-logo); height: var(--tlf-logo);
  transform: translateX(-50%);
  z-index: calc(var(--tlf-z) + 1);
  pointer-events: none;
}

/* logo button */
.tlf-logo {
  pointer-events: auto;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  border: 0 !important; border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  transform-origin: 50% 100%;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  -webkit-tap-highlight-color: transparent;
}
.tlf-logo:focus { outline: none; }
.tlf-logo:focus-visible { outline: 3px dashed var(--tlf-yellow); outline-offset: 6px; border-radius: 12px; }
.tlf-logo:hover { transform: scale(1.06); }
.tlf-logo svg, .tlf-logo img {
  width: 100%; height: 100%; display: block; overflow: visible;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.28));
}

.tlf-logo-inner {
  display: block; width: 100%; height: 100%;
  transform-origin: 50% 85%;
  animation: tlf-sway 4.5s ease-in-out infinite;
}
/* slow continuous lazy sway */
@keyframes tlf-sway {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}

/* shrink while scrolling down */
.tlf-nav.is-small .tlf-logo { transform: scale(.68); }

/* open state: logo tilts, stops swaying */
.tlf-nav.is-open .tlf-logo,
.tlf-nav.is-search .tlf-logo { transform: none; }
.tlf-nav.is-open .tlf-logo-inner,
.tlf-nav.is-search .tlf-logo-inner { animation: none; }

/* radial items */
.tlf-ring { position: absolute; inset: 0; margin: 0; padding: 0; }
.tlf-item {
  pointer-events: none;
  position: absolute; left: 50%; top: 50%;
  width: var(--tlf-item); height: var(--tlf-item);
  margin: calc(var(--tlf-item) / -2) 0 0 calc(var(--tlf-item) / -2);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--tlf-yellow); color: var(--tlf-ink);
  border: 3px solid var(--tlf-ink);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  text-decoration: none !important;
  opacity: 0;
  transform: translate(0, 0) scale(.2) rotate(-90deg);
  transition:
    transform .28s cubic-bezier(.5,0,.75,0),
    opacity .2s ease;
  transition-delay: calc((5 - var(--i, 0)) * 25ms);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tlf-nav.is-open .tlf-item {
  pointer-events: auto;
  opacity: 1;
  transform: translate(var(--x, 0px), var(--y, 0px)) scale(1) rotate(0deg);
  transition:
    transform .5s cubic-bezier(.34,1.56,.64,1),
    opacity .25s ease,
    background-color .2s ease;
  transition-delay: calc(var(--i, 0) * 45ms);
}
.tlf-nav.is-open .tlf-item:hover,
.tlf-item:focus-visible { background: var(--tlf-paper); }
.tlf-item:focus-visible { outline: 3px solid var(--tlf-yellow); outline-offset: 3px; }
.tlf-ico { width: 30px !important; height: 30px !important; display: block; }
.tlf-ico svg { width: 100%; height: 100%; display: block; }
.tlf-777 { font-weight: 900; font-size: 19px; letter-spacing: -.02em; line-height: 1; font-family: inherit; }

.tlf-label {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 3px 8px; border-radius: 999px;
  background: var(--tlf-ink); color: var(--tlf-paper);
  font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.3;
}
.tlf-navbadge {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; border: 2px solid var(--tlf-ink);
  background: var(--tlf-paper); color: var(--tlf-ink);
  font-size: 11px; font-weight: 800; line-height: 16px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.tlf-navbadge:empty, .tlf-navbadge[data-count="0"] { display: none; }

/* search bar */
.tlf-search {
  position: fixed; left: 50%;
  bottom: calc(var(--tlf-bottom) + var(--tlf-logo) + 18px);
  z-index: calc(var(--tlf-z) + 2);
  width: min(460px, calc(100vw - 32px));
  margin: 0; padding: 6px;
  display: flex; gap: 6px;
  background: var(--tlf-yellow);
  border: 3px solid var(--tlf-ink); border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 20px) scale(.96);
  transition: opacity .2s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.tlf-nav.is-search .tlf-search { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.tlf-search input[type="search"] {
  flex: 1; min-width: 0;
  height: 44px; margin: 0; padding: 0 16px;
  border: 0; border-radius: 999px;
  background: var(--tlf-paper); color: var(--tlf-ink);
  font: inherit; font-size: 16px; outline: none;
  box-shadow: none;
}
.tlf-search button {
  height: 44px; margin: 0; padding: 0 18px;
  border: 0; border-radius: 999px;
  background: var(--tlf-ink); color: var(--tlf-yellow);
  font: inherit; font-weight: 800; font-size: 14px; cursor: pointer;
}

/* desktop: slightly larger burst */
@media (min-width: 768px) {
  .tlf-nav { --tlf-logo: 120px; --tlf-item: 76px; }
  .tlf-ico { width: 34px !important; height: 34px !important; }
  .tlf-777 { font-size: 22px; }
  .tlf-label { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .tlf-logo-inner { animation: none; }
  .tlf-item, .tlf-nav.is-open .tlf-item, .tlf-logo, .tlf-search { transition-duration: .01ms !important; transition-delay: 0ms !important; }
}

body.tlf-lock { overflow: hidden; }

/* ---- TheLazyFam theme: follow the theme accent (Halloween orange) ---- */
.tlf-nav { --tlf-yellow: var(--tlf-accent, #f4c042); font-family: 'Montserrat', system-ui, sans-serif; }
.tlf-label { border: 1px solid rgba(255,255,255,.16); }
.tlf-backdrop { background: rgba(5, 5, 5, .62); }

/* Keep icon sizes even if other CSS on the site resizes SVGs */
.tlf-nav .tlf-ico svg { width: 100% !important; height: 100% !important; max-width: none !important; }
.tlf-nav .tlf-label { font-size: 12px; font-weight: 800; padding: 4px 10px; }
@media (min-width: 768px) { .tlf-nav .tlf-label { font-size: 13px; } }

/* Lock logo + icon sizes against site-wide "svg { width: 1em }" rules */
.tlf-nav .tlf-logo svg, .tlf-nav .tlf-logo img { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; }
@media (max-width: 767px) {
  .tlf-nav { --tlf-item: 60px; }
  .tlf-nav .tlf-ico { width: 28px !important; height: 28px !important; }
  .tlf-nav .tlf-label { font-size: 10.5px; padding: 3px 8px; letter-spacing: 0; }
  .tlf-nav .tlf-777 { font-size: 18px; }
}
/* Lock the logo button against site-wide button styles */
.tlf-nav button.tlf-logo {
  padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; min-height: 0 !important; min-width: 0 !important;
  width: 100% !important; height: 100% !important; line-height: 0 !important; font-size: 0 !important;
}
.tlf-nav .tlf-logo-inner { display: block !important; width: 100% !important; height: 100% !important; }
.tlf-nav .tlf-search button {
  height: 44px !important; padding: 0 18px !important; border: 0 !important; border-radius: 999px !important;
  background: var(--tlf-ink) !important; color: var(--tlf-yellow) !important; font-size: 14px !important; font-weight: 800 !important; min-height: 0 !important;
}
.tlf-nav .tlf-search input[type="search"] { height: 44px !important; min-height: 0 !important; padding: 0 16px !important; border: 0 !important; border-radius: 999px !important; background: #fff !important; color: #111 !important; }

/* ==========================================================================
   First-visit spider intro (assets/js/intro.js)
   ========================================================================== */
.tlf-intro { position: fixed; inset: 0; pointer-events: none; z-index: 99996; }
.tlf-intro svg { max-width: none !important; overflow: hidden !important; }
.tlf-intro path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.tlf-intro__topweb {
  position: fixed; top: 0; left: var(--tlf-cx, 50%); width: 240px !important; height: 130px !important;
  transform: translateX(-50%); color: rgba(244, 241, 234, .55);
}
.tlf-intro.is-on .tlf-intro__topweb .tlf-w-spoke { animation: tlf-spin-web .55s ease-out forwards; }
.tlf-intro.is-on .tlf-intro__topweb .tlf-w-ring { animation: tlf-spin-web .5s ease-out forwards; animation-delay: calc(.25s + var(--r) * .12s); }
.tlf-intro__thread {
  position: fixed; top: 0; left: var(--tlf-cx, 50%); width: 1.5px; height: 0;
  margin-left: -0.75px; background: rgba(244, 241, 234, .75);
}
.tlf-intro__drop {
  position: fixed; top: 0; left: var(--tlf-cx, 50%);
  display: flex; flex-direction: column; align-items: center;
  color: #1A1A1A; transform: translate(-50%, -200px);
}
.tlf-intro__drop svg {
  width: 44px !important; height: 40px !important; display: block;
  filter: drop-shadow(0 0 1px rgba(244, 241, 234, .9)) drop-shadow(0 2px 6px rgba(0, 0, 0, .6));
}
.tlf-intro__silk { width: 1.5px; height: 6px; background: rgba(244, 241, 234, .75); }
.tlf-intro__tag {
  position: relative; margin-top: 4px; padding: 6px 12px 6px; border-radius: 6px;
  background: var(--tlf-accent, #F4C042); color: #0A0A0A;
  font: 900 13px/1 'Montserrat', system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
  transform-origin: 50% -6px; animation: tlf-tag-sway 1.6s ease-in-out infinite;
}
.tlf-intro__tag::before {
  content: ''; position: absolute; top: -5px; left: 50%; width: 1.5px; height: 5px; margin-left: -0.75px; background: rgba(244, 241, 234, .75);
}
.tlf-intro__tag i {
  position: absolute; left: 50%; bottom: -6px; margin-left: -6px;
  border: 6px solid transparent; border-bottom: 0; border-top-color: var(--tlf-accent, #F4C042);
}
.tlf-intro__logoweb {
  position: fixed; width: 220px !important; height: 220px !important;
  transform: translate(-50%, -50%); color: rgba(244, 241, 234, .38); z-index: -1;
}
.tlf-intro.is-landed .tlf-intro__logoweb .tlf-w-spoke { animation: tlf-spin-web .45s ease-out forwards; }
.tlf-intro.is-landed .tlf-intro__logoweb .tlf-w-ring { animation: tlf-spin-web .45s ease-out forwards; animation-delay: calc(.15s + var(--r) * .1s); }
.tlf-intro__ring {
  position: fixed; border-radius: 50%; border: 2px solid var(--tlf-accent, #F4C042);
  transform: translate(-50%, -50%); opacity: 0;
}
@keyframes tlf-spin-web { to { stroke-dashoffset: 0; } }
@keyframes tlf-tag-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
/* The logo web sits behind the floating logo */
.tlf-intro .tlf-intro__logoweb { z-index: 0; }
.tlf-nav .tlf-anchor { z-index: 99997; }

/* Current page bubble (v1.1.4) — white with a yellow ring; other bubbles stay yellow */
.tlf-nav .tlf-item.is-current { background: var(--tlf-paper, #F4F1EA); box-shadow: 0 0 0 3px var(--tlf-yellow), 0 6px 16px rgba(0,0,0,.35); }
.tlf-nav .tlf-item.is-current .tlf-label { background: var(--tlf-yellow); color: #0A0A0A; border-color: transparent; }
/* No highlight just because an item has (mouse/tap) focus */
.tlf-nav .tlf-item:focus:not(:focus-visible):not(.is-current):not(:hover) { background: var(--tlf-yellow); outline: none; }
