/* Unified Studio Backgrounds — Supports Live Light (Daylight Gallery) / Dark (Screening Room) Switch */
#badgeBackdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-color: var(--studio-bg, #efece6);
  transition: background-color 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.badge-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-size: 100% 100%;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.badge-scene.is-active {
  opacity: 1;
}

/* ======== DAYLIGHT GALLERY MODE (DEFAULT · WARM LIMESTONE STUDIO) ======== */
html[data-studio-theme="light"] #badgeBackdrop {
  background-color: #efece6;
}
html[data-studio-theme="light"] .badge-scene--home {
  background:
    linear-gradient(118deg, rgba(255, 252, 245, 0.72) 10%, rgba(255, 252, 245, 0) 48%),
    radial-gradient(ellipse 68% 60% at 54% 38%, #f5f2ec 0%, #ebe6dc 58%, #ddd7cb 100%);
}
html[data-studio-theme="light"] .badge-scene--photo {
  background:
    linear-gradient(124deg, transparent 58%, rgba(255, 252, 244, 0.52) 60%, transparent 86%),
    radial-gradient(ellipse 66% 58% at 52% 40%, #f3efe6 0%, #e8e3d8 55%, #dad3c6 100%);
}
html[data-studio-theme="light"] .badge-scene--brand {
  background:
    radial-gradient(ellipse 64% 55% at 52% 40%, #f1ede4 0%, #e5e0d5 56%, #d8d2c5 100%);
}
html[data-studio-theme="light"] .badge-scene--motion {
  background:
    radial-gradient(ellipse 62% 55% at 52% 40%, #ebe7de 0%, #ded9ce 54%, #cfc9bd 100%);
}
html[data-studio-theme="light"] .badge-scene--digital {
  background:
    radial-gradient(ellipse 62% 54% at 50% 42%, #efeae1 0%, #e3ded4 56%, #d5cfc3 100%);
}
html[data-studio-theme="light"] .badge-scene--strategy {
  background:
    radial-gradient(ellipse 64% 56% at 52% 40%, #f2eee5 0%, #e7e2d7 56%, #d9d3c6 100%);
}

/* ======== OBSIDIAN SCREENING MODE (LIGHTS OFF · WARM BASALT STUDIO) ======== */
html[data-studio-theme="dark"] #badgeBackdrop {
  background-color: #13151a;
}
html[data-studio-theme="dark"] .badge-scene--home {
  background:
    radial-gradient(ellipse 56% 52% at 62% 32%, rgba(232, 104, 63, 0.085) 0%, transparent 64%),
    radial-gradient(ellipse 68% 60% at 38% 68%, rgba(92, 124, 180, 0.06) 0%, transparent 66%),
    radial-gradient(ellipse at 50% 42%, #191c24 0%, #12141a 56%, #0b0c10 100%);
}
html[data-studio-theme="dark"] .badge-scene--photo {
  background:
    linear-gradient(122deg, transparent 60%, rgba(217, 177, 115, 0.055) 60.2%, transparent 84%),
    radial-gradient(ellipse 64% 58% at 54% 38%, #1a1d25 0%, #12151b 50%, #0b0d11 94%);
}
html[data-studio-theme="dark"] .badge-scene--brand {
  background:
    radial-gradient(ellipse 64% 55% at 52% 40%, #191c24 0%, #111319 52%, #0a0c10 95%);
}
html[data-studio-theme="dark"] .badge-scene--motion {
  background:
    radial-gradient(ellipse 60% 54% at 52% 42%, #171b24 0%, #0f1219 50%, #090b10 94%);
}
html[data-studio-theme="dark"] .badge-scene--digital {
  background:
    radial-gradient(ellipse 58% 54% at 50% 40%, rgba(232, 104, 63, 0.065) 0%, transparent 64%),
    radial-gradient(ellipse 60% 56% at 50% 40%, #181c26 0%, #10131b 50%, #090b10 92%);
}
html[data-studio-theme="dark"] .badge-scene--strategy {
  background:
    radial-gradient(ellipse 62% 54% at 52% 38%, #1a1d24 0%, #11141a 50%, #0a0c10 94%);
}

#b3d {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: default;
}
