/* assets/boh-eternity-core.css · Immovable Eternal Candle & Clean Eternity Board */
#cornerCandleDock {
  position: fixed !important;
  top: 56px !important;
  right: 18px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 9995 !important;
  /*background: rgba(11, 13, 18, 0.90) !important;*/
  background: transparent;
  backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(251, 191, 36, 0.42) !important;
  border-radius: 14px !important;
  padding: 8px 10px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
}
#cornerCandleDock .candle-medallion {
  width: 72px !important;
  height: 72px !important;
}
#touchStatusLine {
  font-size: 0.56rem !important;
  line-height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
@media (max-width: 640px) {
  #cornerCandleDock {
    top: auto !important;
    bottom: 12px !important;
    right: 12px !important;
  }
  #cornerCandleDock .candle-medallion {
    width: 56px !important;
    height: 56px !important;
  }
}

/* GLOBAL MOBILE RESPONSIVE FIX (320px - 768px · Zero Horizontal Overflow) */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}
*, *::before, *::after {
  box-sizing: border-box;
}
@media (max-width: 820px) {
  .wrap, .hero, section, header, footer {
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .hero h1 {
    font-size: 1.22rem !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
  }
  #heroSecondaryButtons {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
  .covenants {
    grid-template-columns: 1fr !important;
  }
  .pill, .badge {
    max-width: 100% !important;
    white-space: normal !important;
  }
  #cornerCandleDock {
    position: static !important;
    margin: 8px auto 0 !important;
    width: fit-content !important;
  }
}

/* ETERNAL CANDLE BASIS: ALWAYS FIXED IN BOTTOM-RIGHT CORNER (GUEST & ADMIN, DESKTOP & MOBILE) */
#cornerCandleDock {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  bottom: 14px !important;
  right: 14px !important;
  z-index: 9995 !important;
  margin: 0 !important;
}
@media (max-width: 820px) {
  #cornerCandleDock {
    bottom: 10px !important;
    right: 10px !important;
    transform: scale(0.8) !important;
    transform-origin: bottom right !important;
  }
}

/* MOBILE GAP BETWEEN COVENANTS BLOCK AND FOOTER (70px + 77px) */
@media (max-width: 820px) {
  .covenants {
    margin-bottom: 70px !important;
  }
  footer {
    margin-top: 77px !important;
    margin-bottom: 130px !important;
  }
}
