/* ===========================================================================
   GARGANTUA v2 — HUD, telemetry, captions, share bar, particle overlay
   =========================================================================== */

.bh-particle-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

.bh-panel {
  position: fixed;
  top: 86px;
  right: 18px;
  width: 280px;
  background: rgba(8, 11, 22, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(120, 200, 255, 0.18);
  border-radius: 14px;
  padding: 0;
  z-index: 6;
  font-family: "Inter", system-ui, sans-serif;
  color: rgba(220, 235, 255, 0.92);
  box-shadow:
    0 12px 40px rgba(0, 8, 24, 0.55),
    inset 0 0 0 1px rgba(120, 200, 255, 0.06);
  transition:
    width 0.25s ease,
    opacity 0.2s ease;
}
.bh-panel-hidden {
  width: 200px;
}
.bh-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(120, 200, 255, 0.75);
  border-bottom: 1px solid rgba(120, 200, 255, 0.12);
}
.bh-panel-toggle {
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: 1px solid rgba(120, 200, 255, 0.25);
  color: rgba(120, 200, 255, 0.9);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}
.bh-panel-toggle:hover {
  background: rgba(120, 200, 255, 0.12);
}
.bh-panel-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bh-slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bh-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(220, 235, 255, 0.78);
}
.bh-slider-val {
  font-feature-settings: "tnum";
  color: rgba(120, 200, 255, 0.95);
  font-weight: 500;
}
.bh-slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  min-height: 60px;
  height: 60px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(120, 200, 255, 0.35) 0%,
    rgba(120, 200, 255, 0.1) 100%
  );
  outline: none;
}
.bh-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(120, 200, 255, 1);
  border: 2px solid rgba(8, 11, 22, 0.9);
  box-shadow: 0 0 12px rgba(120, 200, 255, 0.6);
  cursor: pointer;
}
.bh-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(120, 200, 255, 1);
  border: 2px solid rgba(8, 11, 22, 0.9);
  cursor: pointer;
}

.bh-kid-physics-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.bh-kid-physics-strip span {
  min-width: 0;
  border: 1px solid rgba(120, 200, 255, 0.16);
  border-radius: 8px;
  padding: 7px 6px;
  background: rgba(10, 22, 38, 0.68);
  color: rgba(215, 232, 255, 0.72);
  font-size: 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.bh-kid-physics-strip strong {
  display: block;
  margin-bottom: 3px;
  color: rgba(140, 220, 255, 0.95);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bh-presets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.bh-presets-label,
.bh-q-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(120, 200, 255, 0.7);
}
.bh-preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bh-preset-btn {
  min-height: 60px;
  background: rgba(15, 22, 38, 0.55);
  border: 1px solid rgba(120, 200, 255, 0.18);
  color: rgba(220, 235, 255, 0.9);
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.08s;
}
.bh-preset-btn:hover {
  background: rgba(120, 200, 255, 0.12);
  border-color: rgba(120, 200, 255, 0.45);
}
.bh-preset-btn:active {
  transform: scale(0.97);
}
.bh-preset-num {
  font-size: 9px;
  color: rgba(255, 165, 90, 0.85);
  letter-spacing: 0.12em;
}
.bh-preset-name {
  font-size: 11px;
  letter-spacing: 0.02em;
}

.bh-quality {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.bh-q-label {
  flex: 0 0 auto;
}
.bh-q-btn {
  flex: 1;
  min-height: 60px;
  background: rgba(15, 22, 38, 0.55);
  border: 1px solid rgba(120, 200, 255, 0.18);
  color: rgba(220, 235, 255, 0.85);
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.bh-q-active {
  background: rgba(120, 200, 255, 0.22);
  border-color: rgba(120, 200, 255, 0.6);
  color: rgba(255, 255, 255, 0.98);
}
.bh-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 11px;
  color: rgba(220, 235, 255, 0.85);
  cursor: pointer;
}
.bh-toggle-row input {
  accent-color: rgb(120, 200, 255);
}

.bh-telemetry {
  position: fixed;
  left: 18px;
  bottom: 22px;
  width: 280px;
  background: rgba(8, 11, 22, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(120, 200, 255, 0.18);
  border-radius: 12px;
  padding: 10px 14px 12px;
  z-index: 6;
  font-family: "Inter", system-ui, sans-serif;
  color: rgba(220, 235, 255, 0.92);
  font-feature-settings: "tnum";
}
.bh-tel-title {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(120, 200, 255, 0.75);
  margin-bottom: 6px;
}
.bh-tel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
.bh-tel-grid > div {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  border-bottom: 1px dotted rgba(120, 200, 255, 0.12);
  padding: 2px 0;
}
.bh-tel-grid b {
  color: rgba(180, 220, 255, 0.7);
  font-weight: 400;
}
.bh-tel-grid span {
  color: rgba(255, 220, 180, 0.95);
}

.bh-caption {
  position: fixed;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 640px;
  width: 90%;
  z-index: 7;
  pointer-events: none;
  animation: bhCaptionIn 0.45s ease-out;
}
.bh-caption-inner {
  background: rgba(8, 11, 22, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 165, 90, 0.3);
  border-radius: 10px;
  padding: 12px 18px;
  font-family: "Fraunces", serif;
  font-size: 17px;
  line-height: 1.4;
  color: rgba(255, 245, 230, 0.96);
  text-align: center;
}
@keyframes bhCaptionIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.bh-look-label {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(80px);
  z-index: 5;
  pointer-events: none;
  width: 320px;
  text-align: center;
  animation: bhLookIn 0.5s ease-out;
}
.bh-look-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: rgba(120, 220, 255, 0.85);
  text-shadow: 0 0 16px rgba(120, 220, 255, 0.6);
}
.bh-look-body {
  margin-top: 4px;
  font-family: "Fraunces", serif;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(230, 245, 255, 0.85);
}
@keyframes bhLookIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.bh-fact {
  position: fixed;
  top: 86px;
  left: 18px;
  max-width: 320px;
  z-index: 6;
  background: rgba(8, 11, 22, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 165, 90, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  animation: bhFactIn 0.5s ease-out;
}
.bh-fact-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 165, 90, 0.85);
  margin-bottom: 4px;
}
.bh-fact-body {
  font-family: "Fraunces", serif;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(230, 245, 255, 0.95);
}
@keyframes bhFactIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.bh-egg {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 200, 120, 0.6);
  z-index: 8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bhEggPulse 2s ease-in-out infinite;
}
.bh-egg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 200, 120, 0.95);
  box-shadow: 0 0 12px rgba(255, 200, 120, 0.8);
}
@keyframes bhEggPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

.bh-sharebar {
  position: fixed;
  top: 72px;
  right: 18px;
  display: flex;
  gap: 8px;
  z-index: 34;
}
.bh-share-btn {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: rgba(8, 11, 22, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(120, 200, 255, 0.22);
  color: rgba(220, 235, 255, 0.9);
  font-size: 22px;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.08s;
}
.bh-share-btn:hover {
  background: rgba(120, 200, 255, 0.18);
}
.bh-share-btn:active {
  transform: scale(0.94);
}

.bh-soft-retry {
  position: fixed;
  top: 126px;
  right: 18px;
  z-index: 42;
  width: min(316px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(120, 200, 255, 0.28);
  border-radius: 14px;
  background: rgba(8, 11, 22, 0.84);
  color: rgba(238, 246, 255, 0.96);
  font-family: "Inter", system-ui, sans-serif;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bh-soft-retry strong {
  font-size: 15px;
  line-height: 1.15;
}

.bh-soft-retry span {
  color: rgba(215, 232, 255, 0.78);
  font-size: 13px;
  line-height: 1.25;
}

.bh-soft-retry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bh-soft-retry-actions button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(120, 200, 255, 0.28);
  border-radius: 10px;
  padding: 0 14px;
  background: rgba(120, 200, 255, 0.16);
  color: rgba(238, 246, 255, 0.96);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  touch-action: manipulation;
}

.bh-soft-retry-actions button + button {
  background: rgba(255, 255, 255, 0.08);
}

.bh-share-rec {
  background: rgba(255, 80, 80, 0.4);
  border-color: rgba(255, 80, 80, 0.8);
  color: rgba(255, 255, 255, 0.98);
  animation: bhRecBlink 1s ease-in-out infinite;
}
@keyframes bhRecBlink {
  0%,
  100% {
    background: rgba(255, 80, 80, 0.4);
  }
  50% {
    background: rgba(255, 80, 80, 0.7);
  }
}

.bh-watermark {
  position: fixed;
  right: 12px;
  bottom: 4px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: rgba(120, 200, 255, 0.35);
  pointer-events: none;
  z-index: 4;
}

@media (max-width: 720px) {
  .bh-btn-back-floating {
    right: 18px;
  }
  .bh-sharebar {
    left: 18px;
    right: auto;
    top: 72px;
  }
  .bh-soft-retry {
    left: 18px;
    right: auto;
  }
  .bh-panel {
    width: calc(100vw - 36px);
    right: 18px;
    top: auto;
    bottom: 78px;
    max-height: 56vh;
    overflow-y: auto;
  }
  .bh-telemetry {
    width: calc(100vw - 36px);
    left: 18px;
    bottom: 12px;
  }
  .bh-fact {
    max-width: calc(100vw - 36px);
  }
}
