/* Browser demo of the Gunrack panel: a game frame behind the transparent panel. */
html, body { background: #0b0b0d; }

.demo-bg {
  position: fixed;
  inset: 0;
  background: #0b0b0d url("bg.webp") center / cover no-repeat;
}

.demo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 10, 0.15) 0%, rgba(8, 8, 10, 0) 45%);
}

.demo-open {
  position: fixed;
  left: 50%;
  bottom: 12vh;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border: 1px solid rgba(214, 173, 85, 0.6);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.72);
  color: #f2efe8;
  font: 600 15px "Bahnschrift", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.demo-open:hover { background: rgba(8, 8, 10, 0.86); }

/* Short frames (the product page embeds this at 16:9): scale the panel down to fit */
@media (max-height: 760px) { .panel { zoom: 0.92 !important; } }
@media (max-height: 640px) { .panel { zoom: 0.8 !important; } }
@media (max-height: 540px) { .panel { zoom: 0.68 !important; } }

/* Narrow frames (phones): the panel takes the full width */
@media (max-width: 640px) {
  .panel { right: 50% !important; transform: translate(50%, -50%) !important; zoom: 0.72 !important; width: calc(94vw / 0.72) !important; }
}
