html,
body.boundaries-page {
  min-height: 100%;
}

body.boundaries-page {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 28%),
    linear-gradient(180deg, #0d2c78 0%, #07193d 100%) !important;
}

body.boundaries-page .sf-ticker-container,
body.boundaries-page #disclaimer-popup,
body.boundaries-page .top-loader,
body.boundaries-page .banner,
body.boundaries-page .profile-card,
body.boundaries-page #bg-video,
body.boundaries-page .container,
body.boundaries-page .footer {
  display: none !important;
}

/* =========================
   BIG BACKGROUND DECOR
   ========================= */
body.boundaries-page .gens-bg {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

body.boundaries-page .gens-bg .bg-decor {
  opacity: 0.32 !important;
  filter: blur(0.15px) !important;
}

/* extra giant page-level shapes */
body.boundaries-page .gens-bg::before,
body.boundaries-page .gens-bg::after {
  content: "" !important;
  position: absolute !important;
  pointer-events: none !important;
}

body.boundaries-page .gens-bg::before {
  width: 460px !important;
  height: 460px !important;
  left: -140px !important;
  top: 120px !important;
  border-radius: 50% !important;
  border: 6px solid rgba(255,255,255,0.08) !important;
  opacity: 0.28 !important;
}

body.boundaries-page .gens-bg::after {
  width: 520px !important;
  height: 520px !important;
  right: -180px !important;
  bottom: -120px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(226,24,45,0.22) 0 62%, transparent 63%) !important;
  opacity: 0.35 !important;
}

body.boundaries-page .gens-bg .decor-tl,
body.boundaries-page .gens-bg .decor-tr,
body.boundaries-page .gens-bg .decor-br,
body.boundaries-page .gens-bg .decor-bl {
  transform: scale(1.5) !important;
  transform-origin: center !important;
}

body.boundaries-page .gens-bg .decor-tl {
  top: -20px !important;
  left: -20px !important;
}

body.boundaries-page .gens-bg .decor-tr {
  top: -10px !important;
  right: -10px !important;
}

body.boundaries-page .gens-bg .decor-br {
  right: -30px !important;
  bottom: -20px !important;
}

body.boundaries-page .gens-bg .decor-bl {
  left: -30px !important;
  bottom: -20px !important;
}

/* extra large floating shapes across whole page */
body.boundaries-page .gens-bg .bg-extra-1,
body.boundaries-page .gens-bg .bg-extra-2,
body.boundaries-page .gens-bg .bg-extra-3,
body.boundaries-page .gens-bg .bg-extra-4,
body.boundaries-page .gens-bg .bg-extra-5,
body.boundaries-page .gens-bg .bg-extra-6 {
  position: absolute !important;
  pointer-events: none !important;
  opacity: 0.22 !important;
}

body.boundaries-page .gens-bg .bg-extra-1 {
  top: 110px !important;
  left: 120px !important;
  width: 180px !important;
  height: 24px !important;
  transform: rotate(-13deg) !important;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 14px,
    #ffe600 14px 28px
  ) !important;
  border: 2px solid rgba(255,255,255,0.08) !important;
}

body.boundaries-page .gens-bg .bg-extra-2 {
  top: 240px !important;
  right: 180px !important;
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  border: 8px solid transparent !important;
  border-top-color: #e2182d !important;
  border-right-color: #e2182d !important;
  border-bottom-color: #ffffff !important;
  border-left-color: #ffffff !important;
  animation: boundariesFloat 7s ease-in-out infinite !important;
}

body.boundaries-page .gens-bg .bg-extra-3 {
  bottom: 120px !important;
  left: 130px !important;
  width: 72px !important;
  height: 72px !important;
  background: rgba(255,255,255,0.13) !important;
  clip-path: polygon(50% 0%,61% 17%,82% 10%,74% 30%,100% 34%,82% 48%,94% 68%,68% 64%,70% 92%,50% 76%,30% 92%,32% 64%,6% 68%,18% 48%,0 34%,26% 30%,18% 10%,39% 17%) !important;
  animation: boundariesSpin 16s linear infinite !important;
}

body.boundaries-page .gens-bg .bg-extra-4 {
  top: 340px !important;
  left: 240px !important;
  width: 34px !important;
  height: 34px !important;
  background: #ffffff !important;
  clip-path: polygon(50% 0, 0 100%, 100% 100%) !important;
  opacity: 0.18 !important;
}

body.boundaries-page .gens-bg .bg-extra-5 {
  right: 120px !important;
  bottom: 180px !important;
  width: 86px !important;
  height: 86px !important;
  border-radius: 50% !important;
  border: 5px solid rgba(255,255,255,0.08) !important;
}

body.boundaries-page .gens-bg .bg-extra-6 {
  left: 50% !important;
  bottom: 90px !important;
  width: 46px !important;
  height: 46px !important;
  background: #ffe600 !important;
  clip-path: polygon(50% 0%,62% 18%,82% 10%,74% 30%,100% 34%,82% 48%,94% 68%,68% 64%,70% 92%,50% 76%,30% 92%,32% 64%,6% 68%,18% 48%,0 34%,26% 30%,18% 10%,38% 18%) !important;
  animation: boundariesFloat 6s ease-in-out infinite !important;
}

@keyframes boundariesSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes boundariesFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
}

/* =========================
   MAIN LAYOUT
   ========================= */
body.boundaries-page .boundaries-shell {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  min-height: 100vh !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 60px 20px !important;
}

body.boundaries-page .boundaries-card {
  position: relative !important;
  z-index: 4 !important;
  width: min(920px, calc(100vw - 40px)) !important;
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: 36px 36px 32px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(9, 21, 55, 0.96) 0%, rgba(4, 12, 35, 0.96) 100%) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
  text-align: center !important;
  overflow: hidden !important;
}

body.boundaries-page .boundaries-card::before {
  content: "" !important;
  position: absolute !important;
  top: -10px !important;
  left: 34px !important;
  width: 150px !important;
  height: 18px !important;
  transform: rotate(-14deg) !important;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 13px,
    #ffe600 13px 26px
  ) !important;
  opacity: 0.95 !important;
  border: 2px solid rgba(255,255,255,0.08) !important;
}

body.boundaries-page .boundaries-card::after {
  content: "" !important;
  position: absolute !important;
  right: 26px !important;
  bottom: 22px !important;
  width: 108px !important;
  height: 108px !important;
  border-radius: 50% !important;
  border: 4px solid rgba(255,255,255,0.08) !important;
  opacity: 0.28 !important;
}

/* card accents */
body.boundaries-page .boundaries-card .gens-accent-star,
body.boundaries-page .boundaries-card .gens-accent-tri,
body.boundaries-page .boundaries-card .gens-accent-ring,
body.boundaries-page .boundaries-card .gens-accent-gear {
  position: absolute !important;
  pointer-events: none !important;
  z-index: 1 !important;
  opacity: 0.22 !important;
}

body.boundaries-page .boundaries-card .gens-accent-star {
  top: 120px !important;
  right: 54px !important;
  width: 34px !important;
  height: 34px !important;
  background: #ffe600 !important;
  clip-path: polygon(50% 0%,62% 18%,82% 10%,74% 30%,100% 34%,82% 48%,94% 68%,68% 64%,70% 92%,50% 76%,30% 92%,32% 64%,6% 68%,18% 48%,0 34%,26% 30%,18% 10%,38% 18%) !important;
}

body.boundaries-page .boundaries-card .gens-accent-tri {
  top: 170px !important;
  left: 54px !important;
  width: 22px !important;
  height: 22px !important;
  background: #ffffff !important;
  clip-path: polygon(50% 0, 0 100%, 100% 100%) !important;
}

body.boundaries-page .boundaries-card .gens-accent-ring {
  right: 90px !important;
  top: 54px !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  border: 7px solid transparent !important;
  border-top-color: #e2182d !important;
  border-right-color: #e2182d !important;
  border-bottom-color: #ffffff !important;
  border-left-color: #ffffff !important;
}

body.boundaries-page .boundaries-card .gens-accent-gear {
  left: 42px !important;
  bottom: 50px !important;
  width: 42px !important;
  height: 42px !important;
  background: rgba(255,255,255,0.15) !important;
  clip-path: polygon(50% 0%,61% 17%,82% 10%,74% 30%,100% 34%,82% 48%,94% 68%,68% 64%,70% 92%,50% 76%,30% 92%,32% 64%,6% 68%,18% 48%,0 34%,26% 30%,18% 10%,39% 17%) !important;
  animation: boundariesSpin 12s linear infinite !important;
}

/* reveal */
body.boundaries-page.loading .boundaries-card {
  opacity: 0 !important;
  transform: translateY(30px) !important;
}

body.boundaries-page.loaded .boundaries-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.9s ease, transform 0.9s ease !important;
}

/* image */
body.boundaries-page .boundaries-image-wrap {
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 auto 22px !important;
  position: relative !important;
  z-index: 2 !important;
}

body.boundaries-page .boundaries-image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  border-radius: 18px !important;
  border: 3px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,0.25) !important;
}

/* text */
body.boundaries-page .boundaries-title {
  margin: 0 0 10px !important;
  color: #ffc2ea !important;
  text-transform: uppercase !important;
  font-size: clamp(2.1rem, 4vw, 3.2rem) !important;
  line-height: 0.95 !important;
  letter-spacing: 0.02em !important;
  font-weight: 600 !important;
  text-align: center !important;
  text-shadow: 0 0 24px rgba(255,194,234,0.15) !important;
  position: relative !important;
  z-index: 2 !important;
}

body.boundaries-page .boundaries-updated {
  margin: 0 0 24px !important;
  color: #ffd7ef !important;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem) !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  text-align: center !important;
  position: relative !important;
  z-index: 2 !important;
}

body.boundaries-page .boundaries-copy {
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto 30px !important;
  text-align: left !important;
  position: relative !important;
  z-index: 2 !important;
}

body.boundaries-page .boundaries-copy ul {
  margin: 0 !important;
  padding-left: 1.6rem !important;
}

body.boundaries-page .boundaries-copy li {
  color: #fff !important;
  font-size: clamp(1rem, 1.35vw, 1.12rem) !important;
  line-height: 1.7 !important;
  margin-bottom: 14px !important;
}

body.boundaries-page .boundaries-copy li::marker {
  color: #ffc2ea !important;
}

body.boundaries-page .boundaries-copy strong {
  font-weight: 600 !important;
}

/* buttons */
body.boundaries-page .boundaries-actions {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 18px !important;
  position: relative !important;
  z-index: 2 !important;
}

body.boundaries-page .boundaries-actions .cta {
  width: min(560px, 100%) !important;
  margin: 0 !important;
  justify-content: center !important;
}

/* ICON FIX */
body.boundaries-page .boundaries-actions .cta .icon {
  transform: skewX(15deg) !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin-right: 10px !important;
  top: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
}

body.boundaries-page .boundaries-actions .cta .span {
  transform: skewX(15deg) !important;
}

body.boundaries-page .boundaries-actions .cta .second {
  transform: skewX(15deg) !important;
}

body.boundaries-page .cta-green {
  background: #63e26b !important;
  color: #fff !important;
}

body.boundaries-page .cta-green:hover {
  box-shadow: 10px 10px 0 #3b82f6 !important;
}

body.boundaries-page .cta-blue {
  background: #6ec8ff !important;
  color: #fff !important;
}

.cta-red {
  background: #ff4d5f !important;
  color: #fff !important;
}
.cta-red:hover {
  box-shadow: 10px 10px 0 #ffd84a !important;
}

.cta-yellow {
  background: #ffd84a !important;
  color: #1e1e1e !important;
}
.cta-yellow:hover {
  box-shadow: 10px 10px 0 #ff4d5f !important;
}

.cta-pink {
  background: #ff8ad8 !important;
  color: #fff !important;
}
.cta-pink:hover {
  box-shadow: 10px 10px 0 #6ec8ff !important;
}

body.boundaries-page .cta-blue:hover {
  box-shadow: 10px 10px 0 #fbc638 !important;
}

@media screen and (max-width: 768px) {
  body.boundaries-page .gens-bg .decor-tl,
  body.boundaries-page .gens-bg .decor-tr,
  body.boundaries-page .gens-bg .decor-br,
  body.boundaries-page .gens-bg .decor-bl {
    transform: scale(1.05) !important;
  }

  body.boundaries-page .boundaries-shell {
    padding: 32px 12px !important;
    align-items: flex-start !important;
  }

  body.boundaries-page .boundaries-card {
    width: calc(100vw - 24px) !important;
    padding: 22px 18px 22px !important;
    border-radius: 18px !important;
  }

  body.boundaries-page .boundaries-image-wrap {
    max-width: 100% !important;
  }

  body.boundaries-page .boundaries-title {
    font-size: 1.85rem !important;
  }

  body.boundaries-page .boundaries-copy li {
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
  }

  body.boundaries-page .boundaries-actions {
    gap: 14px !important;
  }

  body.boundaries-page .boundaries-actions .cta {
    width: 100% !important;
    font-size: 14px !important;
    min-height: 52px !important;
    padding: 10px 18px !important;
  }

  body.boundaries-page .boundaries-actions .cta .second {
    width: 16px !important;
    margin-left: 6px !important;
    top: 2px !important;
  }

  body.boundaries-page .boundaries-actions .cta .icon {
    transform: skewX(15deg) !important;
    width: 15px !important;
    height: 15px !important;
    margin-right: 8px !important;
    font-size: 14px !important;
  }
}

  /* stop loading text from fading before wipe fully covers it */
  body.boundaries-page #sonic-loader .loading-text,
  body.boundaries-page #sonic-loader .sonic-runner-container,
  body.boundaries-page #sonic-loader .rings-container {
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.boundaries-page #sonic-loader.start-wipe .loading-text,
  body.boundaries-page #sonic-loader.start-wipe .sonic-runner-container,
  body.boundaries-page #sonic-loader.start-wipe .rings-container {
    opacity: 1 !important;
  }





  /* ============================= */
  /* SINGLE-PAGE PANEL SYSTEM FIX  */
  /* ============================= */

  .boundaries-panels-shell {
    position: relative;
  }

  .fake-page {
    width: 100%;
    animation: panelFadeIn .45s ease;
  }

  .fake-page[style*="display:none"] {
    animation: none !important;
  }

  @keyframes panelFadeIn {
    from {
      opacity: 0;
      transform: translateY(22px) scale(.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* smoother content spacing */
  .boundaries-copy ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .boundaries-copy li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    line-height: 1.6;
  }

  .boundaries-copy li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0;
    color: #ffd54a;
    font-size: 1rem;
  }

  /* button spacing */
  .boundaries-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 30px;
  }

  .boundaries-actions .cta {
    width: 100%;
    justify-content: space-between;
  }

  /* icon fix */
  .cta .icon {
    min-width: 22px;
    text-align: center;
    transform: none !important;
    font-style: normal !important;
  }

  /* arrow spacing */
  .cta .second {
    margin-left: 16px;
  }

  /* Smaller centered back button */
  .cta-back {
    width: auto !important;
    min-width: 0 !important;
    max-width: 180px !important;
    padding: 10px 18px !important;
    align-self: center !important;
    justify-content: center !important;
    margin: 8px auto 0 !important;
    font-size: 0.95rem !important;
  }

  .cta-back .second {
    display: none !important;
  }

  .cta-back .icon {
    margin-right: 8px !important;
  }

  /* warning box nicer */
  .warning-box {
    margin-top: 24px;
    padding: 18px 20px;
    border: 2px solid rgba(255,255,255,.12);
    border-left: 6px solid #ff5757;
    background: rgba(255,70,70,.08);
    border-radius: 16px;
    font-weight: 600;
    line-height: 1.6;
  }

  /* panel image consistency */
  .boundaries-image-wrap {
    margin-bottom: 24px;
  }

  .boundaries-image {
    max-width: 280px;
    width: 100%;
    height: auto;
    image-rendering: auto;
  }

  /* titles tighter */
  .boundaries-title {
    margin-bottom: 8px;
  }

  .boundaries-updated {
    margin-bottom: 24px;
    letter-spacing: 1px;
  }

  /* mobile polish */
  @media (max-width: 768px) {
    .boundaries-copy li {
      font-size: 0.95rem;
    }

    .boundaries-title {
      font-size: 1.6rem;
    }

    .cta .span {
      font-size: 0.95rem;
    }
  }


  /* fake-page transition overlay */
  #panel-transition {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99998;
    overflow: hidden;
    opacity: 0;
    mix-blend-mode: normal;
  }

  #panel-transition.active {
    opacity: 1;
  }

  .panel-transition-red,
  .panel-transition-blue,
  .panel-transition-yellow {
    position: absolute;
    inset: 0;
  }

  .panel-transition-red {
    background: linear-gradient(135deg, #ff2f45 0%, #c4001a 100%);
    clip-path: polygon(0 0, 66% 0, 40% 100%, 0 100%);
    transform: translateX(-130%);
    filter: drop-shadow(0 0 20px rgba(255, 47, 69, 0.4));
  }

  .panel-transition-blue {
    background: linear-gradient(135deg, #1846ff 0%, #0c2f99 100%);
    clip-path: polygon(0 0, 84% 0, 62% 100%, 0 100%);
    transform: translateX(-105%);
  }

  .panel-transition-yellow {
    background: linear-gradient(135deg, #ffd84a 0%, #ffb300 100%);
    clip-path: polygon(100% 0, 100% 100%, 38% 100%, 58% 0);
    transform: translateX(110%);
  }

  #panel-transition.active .panel-transition-red {
    animation: panelRedSweep .62s cubic-bezier(.68,-0.1,.32,1.05);
  }

  #panel-transition.active .panel-transition-blue {
    animation: panelBlueSweep .66s cubic-bezier(.68,-0.1,.32,1.05);
  }

  #panel-transition.active .panel-transition-yellow {
    animation: panelYellowSweep .66s cubic-bezier(.68,-0.1,.32,1.05);
  }

  @keyframes panelRedSweep {
    0% { transform: translateX(-130%); }
    28% { transform: translateX(-10%); }
    60% { transform: translateX(-10%); }
    100% { transform: translateX(130%); }
  }

  @keyframes panelBlueSweep {
    0% { transform: translateX(-105%); }
    34% { transform: translateX(0%); }
    66% { transform: translateX(0%); }
    100% { transform: translateX(105%); }
  }

  @keyframes panelYellowSweep {
    0% { transform: translateX(110%); }
    34% { transform: translateX(0%); }
    66% { transform: translateX(0%); }
    100% { transform: translateX(-110%); }
  }



  /* Bigger images on sheet page */
  #panel-sheet .boundaries-image-wrap,
  #panel-bio .boundaries-image-wrap {
    max-width: 760px !important;
  }

  #panel-sheet .boundaries-image,
  #panel-bio .boundaries-image {
    max-width: 100% !important;
    width: 100% !important;
    cursor: zoom-in !important;
  }

  #panel-sheet .boundaries-card,
  #panel-bio .boundaries-card {
    box-shadow:
      0 20px 60px rgba(0,0,0,0.38),
      0 0 40px rgba(255,194,234,0.08),
      inset 0 1px 0 rgba(255,255,255,0.06) !important;
  }

/* Restore animated triple arrows on boundaries buttons */
body.boundaries-page .cta {
  transform: skewX(-15deg);
}

body.boundaries-page .cta .icon,
body.boundaries-page .cta .span,
body.boundaries-page .cta .second {
  transform: skewX(15deg);
}

body.boundaries-page .cta .second {
  transition: 0.5s;
  margin-right: 0;
  width: 20px;
  margin-left: 10px;
  position: relative;
  top: 3px;
}

body.boundaries-page .cta:hover .second {
  margin-right: 15px;
}

body.boundaries-page .cta .one,
body.boundaries-page .cta .two,
body.boundaries-page .cta .three {
  fill: currentColor;
}

body.boundaries-page .cta .one {
  transition: 0.4s;
  transform: translateX(-60%);
}

body.boundaries-page .cta .two {
  transition: 0.5s;
  transform: translateX(-30%);
}

body.boundaries-page .cta:hover .three {
  animation: boundaries_color_anim 1s infinite 0.2s;
}

body.boundaries-page .cta:hover .one {
  transform: translateX(0%);
  animation: boundaries_color_anim 1s infinite 0.6s;
}

body.boundaries-page .cta:hover .two {
  transform: translateX(0%);
  animation: boundaries_color_anim 1s infinite 0.4s;
}

@keyframes boundaries_color_anim {
  0% { fill: currentColor; }
  50% { fill: #fbc638; }
  100% { fill: currentColor; }
}


#panel-sheet .boundaries-image-wrap,
#panel-bio .boundaries-image-wrap,
#panel-fanart .boundaries-image-wrap {
  max-width: 880px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#panel-sheet .boundaries-image,
#panel-bio .boundaries-image,
#panel-fanart .boundaries-image {
  max-width: 100% !important;
  width: 100% !important;
  cursor: zoom-in !important;
}


/* =========================
   QUICK ACTION DOCK
   ========================= */

.quick-actions {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 9990;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.quick-actions::before {
  content: "QUICK NAV";
  position: absolute;
  top: -18px;
  right: 4px;
  font-size: 0.58rem;
  letter-spacing: 1.8px;
  color: rgba(255,255,255,0.45);
}

.quick-actions.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-family: 'Nippo', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(5, 16, 45, 0.88);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.32),
    0 0 18px rgba(255, 216, 74, 0.12);
  border-color: rgba(255,216,74,0.38);
  background: rgba(8, 22, 58, 0.96);
}

.quick-action-btn i {
  font-size: 0.95rem;
  color: #ffd84a;
}

.quick-action-btn span {
  position: relative;
  top: 1px;
}

.label-mobile {
  display: none;
}

.label-desktop {
  display: inline;
}

@media (max-width: 768px) {
  .label-desktop {
    display: none !important;
  }

  .label-mobile {
    display: inline !important;
  }
}

@media (max-width: 768px) {
  .quick-actions {
    top: auto;
    left: 50%;
    right: auto;
    bottom: 16px;
    transform: translateX(-50%);
    gap: 10px;
    width: calc(100vw - 28px);
    max-width: 340px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(5, 16, 45, 0.82);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    box-shadow:
      0 10px 30px rgba(0,0,0,0.28),
      inset 0 1px 0 rgba(255,255,255,0.05);
    justify-content: center;
  }

  .quick-actions.hidden {
    transform: translateX(-50%) translateY(12px);
  }

  .quick-action-btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 11px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    box-shadow: none;
  }

  .quick-action-btn i {
    font-size: 0.95rem;
    flex: 0 0 auto;
  }

  .quick-action-btn .label-mobile,
  .quick-action-btn .label-desktop {
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
    position: static;
  }

  .quick-action-btn .label-desktop {
    display: none !important;
  }

  .quick-action-btn .label-mobile {
    display: inline !important;
  }

  body.boundaries-page .boundaries-shell {
    padding-bottom: 110px !important;
  }

  body.boundaries-page .boundaries-actions {
    padding-bottom: 8px !important;
  }
}




/* LIGHTBOX RESET */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 25, 0.96);
  backdrop-filter: blur(10px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-lightbox.active {
  display: flex;
}

/* hide quick nav while lightbox is open */
body.lightbox-open #quick-actions {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* close buttons */
.lightbox-close {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 16px;
  background: rgba(12, 24, 60, 0.9);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000002;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.lightbox-close-bottom {
  display: none;
}

.lightbox-stage {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  cursor: grab;
  padding: 84px 20px 28px;
  box-sizing: border-box;
}

.lightbox-stage.dragging {
  cursor: grabbing;
}

#lightbox-image {
  max-width: 94vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
  touch-action: none;
  transform-origin: center center;
  will-change: transform;
  cursor: inherit;
}

@media (max-width: 768px) {
  .lightbox-close {
    top: auto;
    left: 50%;
    right: auto;
    bottom: 18px;
    transform: translateX(-50%);
    width: auto;
    min-width: 148px;
    height: 50px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 1rem;
    gap: 10px;
    background: rgba(12, 24, 60, 0.98);
    border: 1px solid rgba(255,255,255,0.24);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  }

  .lightbox-close i {
    display: inline-flex !important;
    font-size: 1rem !important;
    color: #ffd84a !important;
    opacity: 1 !important;
  }

  .lightbox-close::after {
    content: "Close";
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
  }

  .lightbox-stage {
    padding: 18px 10px 88px;
  }

  #lightbox-image {
    max-width: 96vw;
    max-height: 78vh;
  }

  .lightbox-stage,
  #lightbox-image {
    touch-action: none !important;
  }
}


.footer {
  text-align: center;
  color: #999;
  padding: 2rem 1rem;
  font-size: 0.875rem;
}
