.content.quest-xr-active {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.quest-xr-embedded-mount,
.quest-xr-standalone-mount {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.bl-xr-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: #fff;
  background: #08000f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

.bl-xr-page-shell {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.bl-xr-page-header {
  display: none;
}

.bl-xr-shell {
  --xr-purple: #65006d;
  --xr-purple-2: #c01ec9;
  --xr-cyan: #15c7e8;
  --xr-gold: #ffd75a;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 18%, rgba(196, 76, 255, 0.18), transparent 28%),
    linear-gradient(145deg, #07000f, #21002b 58%, #090011);
}

.bl-xr-viewport {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #07000f;
  touch-action: none;
}

.bl-xr-viewport canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.bl-xr-loading,
.bl-xr-error {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: #fff;
  font-weight: 950;
  background:
    radial-gradient(circle at 50% 36%, rgba(196, 76, 255, 0.24), transparent 30%),
    rgba(10, 0, 16, 0.86);
}

.bl-xr-error {
  color: #ffd9e2;
}

.bl-xr-hud,
.bl-xr-actions,
.bl-xr-footer {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(221, 90, 255, 0.42);
  border-radius: 14px;
  background: rgba(19, 0, 27, 0.66);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 28px rgba(192, 30, 201, 0.26),
    0 18px 38px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.bl-xr-hud {
  display: none;
  top: max(12px, env(safe-area-inset-top));
  min-height: 66px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.bl-xr-hud-left {
  left: max(12px, env(safe-area-inset-left));
  min-width: min(280px, 48vw);
}

.bl-xr-hud-right {
  right: max(12px, env(safe-area-inset-right));
  min-width: min(230px, 38vw);
  justify-content: center;
}

.bl-xr-hud img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 3px;
}

.bl-xr-hud strong,
.bl-xr-hud span {
  display: block;
  color: #fff;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
}

.bl-xr-hud strong {
  font-size: clamp(17px, 1.8vw, 25px);
}

.bl-xr-hud-left span {
  margin-top: 5px;
  color: var(--xr-gold);
  font-size: clamp(20px, 2.3vw, 30px);
}

.bl-xr-hud-right span {
  font-size: clamp(18px, 1.9vw, 25px);
}

.bl-xr-hud i {
  margin-left: 10px;
  color: #fff;
  font-style: normal;
  opacity: 0.84;
}

.bl-xr-actions {
  left: 50%;
  bottom: max(58px, calc(42px + env(safe-area-inset-bottom)));
  transform: translateX(-50%);
  width: min(880px, calc(100% - 24px));
  min-height: 88px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.bl-xr-button,
.bl-xr-mode,
.bl-xr-native-button button {
  min-width: 0;
  min-height: 40px !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 0 10px !important;
  color: #fff !important;
  font: 950 clamp(11px, 1.1vw, 14px) Inter, ui-sans-serif, system-ui, sans-serif !important;
  line-height: 1.05 !important;
  background: rgba(255, 255, 255, 0.09) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16) !important;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bl-xr-button {
  background: linear-gradient(135deg, var(--xr-cyan), var(--xr-purple-2) 62%, var(--xr-purple)) !important;
}

.bl-xr-bingo-action {
  background: linear-gradient(135deg, #ffd75a, #ff4fd8 62%, #65006d) !important;
  color: #25002d !important;
}

.bl-xr-mode.is-active,
.bl-xr-mode:hover,
.bl-xr-mode:focus,
.bl-xr-button:hover,
.bl-xr-button:focus {
  color: #65006d !important;
  background: #fff !important;
}

.bl-xr-native-button {
  display: flex;
  min-width: 0;
}

.bl-xr-native-button button {
  width: 100% !important;
  color: #2a0730 !important;
  background: linear-gradient(135deg, #fff6c5, var(--xr-gold)) !important;
}

.bl-xr-native-button.is-unavailable {
  opacity: 0.72;
}

.bl-xr-native-button.is-unavailable button {
  color: rgba(255, 255, 255, 0.8) !important;
  background: rgba(255, 255, 255, 0.11) !important;
  white-space: normal !important;
  text-overflow: clip !important;
  cursor: default !important;
}

.bl-xr-native-button #VRButton {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  transform: none !important;
}

.bl-xr-footer {
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  pointer-events: none;
}

.bl-xr-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(9px, 0.85vw, 12px);
  font-weight: 800;
  line-height: 1.25;
}

.bl-xr-footer a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  pointer-events: auto;
}

.bl-xr-footer a:hover,
.bl-xr-footer a:focus {
  color: #65006d;
  background: #fff;
}

.bl-xr-2d-panel {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: min(1240px, calc(100% - max(28px, env(safe-area-inset-left) + env(safe-area-inset-right) + 20px)));
  height: min(820px, calc(100% - max(36px, env(safe-area-inset-top) + env(safe-area-inset-bottom) + 24px)));
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 2px solid rgba(255, 215, 90, 0.58);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), transparent 22%),
    rgba(12, 0, 18, 0.96);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 0 8px rgba(34, 0, 45, 0.72),
    0 0 42px rgba(192, 30, 201, 0.46),
    0 0 70px rgba(255, 215, 90, 0.16),
    0 24px 64px rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(18px);
}

.bl-xr-2d-panel::after {
  content: "";
  position: absolute;
  inset: 58px 10px 10px 10px;
  border-radius: 12px;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 22px 38px rgba(255, 255, 255, 0.045),
    inset 0 -24px 42px rgba(0, 0, 0, 0.22);
}

.bl-xr-shell.is-2d-open .bl-xr-actions,
.bl-xr-shell.is-2d-open .bl-xr-footer {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.bl-xr-2d-panel[hidden] {
  display: none;
}

.bl-xr-2d-head {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(101, 0, 109, 0.96), rgba(192, 30, 201, 0.48)),
    linear-gradient(180deg, rgba(255,255,255,0.14), transparent);
}

.bl-xr-2d-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 950;
}

.bl-xr-2d-head-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.bl-xr-2d-head button {
  min-width: 32px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: #65006d;
  background: #fff;
  font-weight: 950;
  line-height: 1;
}

.bl-xr-2d-back {
  width: auto;
  padding: 0 12px;
  font-size: 13px;
}

.bl-xr-2d-x {
  width: 32px;
  padding: 0;
  font-size: 22px;
}

.bl-xr-2d-body {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(255, 215, 90, 0.72) rgba(255, 255, 255, 0.08);
  padding: 8px;
}

.bl-xr-embedded-game {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(5, 0, 9, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.bl-xr-embedded-game > * {
  max-width: 100%;
  max-height: 100%;
}

.bl-xr-shell[data-xr-active-game] .bl-xr-viewport {
  filter: saturate(0.82) brightness(0.74);
}

.bl-xr-shell.is-machine-play[data-xr-active-game] .bl-xr-viewport {
  filter: none;
}

.bl-xr-shell.is-machine-play .bl-xr-2d-panel {
  left: -200vw;
  top: 0;
  width: 1240px;
  height: 820px;
  max-width: none;
  max-height: none;
  transform: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  animation: none !important;
}

.bl-xr-shell.is-machine-play.is-2d-open .bl-xr-actions,
.bl-xr-shell.is-machine-play.is-2d-open .bl-xr-footer {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.bl-xr-shell[data-xr-active-game] .bl-xr-2d-panel {
  animation: blXr2DIn 160ms ease-out both;
}

@keyframes blXr2DIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.bl-xr-2d-body .bl-fruit-side {
  grid-template-rows: minmax(48px, 0.34fr) minmax(34px, 0.24fr) minmax(192px, 1.58fr) minmax(46px, 0.3fr) minmax(40px, 0.26fr) !important;
}

.bl-xr-2d-body .bl-fruit-note {
  display: none !important;
}

.bl-xr-2d-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 20px;
  color: #fff;
  text-align: center;
}

.bl-xr-2d-placeholder strong {
  color: #ffd75a;
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 950;
}

.bl-xr-2d-placeholder span {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.quest-xr-login-prompt {
  position: fixed;
  inset: auto 16px max(18px, env(safe-area-inset-bottom)) 16px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.quest-xr-login-card {
  width: min(760px, 100%);
  min-height: 82px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 215, 90, 0.58);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, rgba(22, 0, 31, 0.96), rgba(101, 0, 109, 0.92));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.48), 0 0 32px rgba(196, 76, 255, 0.34);
  pointer-events: auto;
}

.quest-xr-login-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
}

.quest-xr-login-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.quest-xr-login-copy strong {
  font-size: 18px;
  font-weight: 950;
  line-height: 1.05;
}

.quest-xr-login-copy span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.quest-xr-login-action,
.quest-xr-login-later {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 950;
  white-space: nowrap;
}

.quest-xr-login-action {
  color: #25002d;
  background: linear-gradient(135deg, #ffd75a, #fff6c5);
}

.quest-xr-login-later {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

@media only screen and (max-width: 760px) {
  .bl-xr-hud {
    min-height: 54px;
    padding: 8px 10px;
  }

  .bl-xr-hud img {
    width: 38px;
    height: 38px;
  }

  .bl-xr-hud-left {
    min-width: 170px;
  }

  .bl-xr-hud-right {
    min-width: 132px;
  }

  .bl-xr-actions {
    bottom: max(70px, calc(52px + env(safe-area-inset-bottom)));
    width: calc(100% - 18px);
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }

  .bl-xr-button,
  .bl-xr-mode,
  .bl-xr-native-button button {
    min-height: 34px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
  }

  .bl-xr-footer {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px 8px;
  }

  .bl-xr-footer a {
    min-height: 30px;
  }

  .bl-xr-2d-panel {
    width: calc(100% - max(10px, env(safe-area-inset-left) + env(safe-area-inset-right) + 6px));
    height: calc(100% - max(72px, env(safe-area-inset-top) + env(safe-area-inset-bottom) + 48px));
    border-radius: 12px;
  }

  .bl-xr-2d-head {
    min-height: 48px;
    padding: 7px 8px 7px 12px;
  }

  .bl-xr-2d-head strong {
    font-size: 15px;
  }

  .bl-xr-2d-head button {
    min-width: 36px;
    height: 36px;
  }

  .bl-xr-2d-back {
    padding: 0 10px;
  }

  .bl-xr-2d-body {
    padding: 5px;
  }

  .bl-xr-embedded-game {
    border-radius: 9px;
  }

  .quest-xr-login-prompt {
    inset: auto 10px max(10px, env(safe-area-inset-bottom)) 10px;
  }

  .quest-xr-login-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .quest-xr-login-card img {
    width: 40px;
    height: 40px;
  }

  .quest-xr-login-action,
  .quest-xr-login-later {
    grid-column: span 1;
    width: 100%;
  }
}

@media only screen and (max-width: 430px) {
  .bl-xr-hud-left {
    max-width: 184px;
  }

  .bl-xr-hud-right {
    max-width: 126px;
  }

  .bl-xr-hud strong,
  .bl-xr-hud-right span {
    font-size: 13px;
  }

  .bl-xr-hud-left span {
    font-size: 16px;
  }

  .bl-xr-hud i {
    display: none;
  }
}
