.stack-fallback {
  font: inherit;
  cursor: pointer;
}

.stack-game {
  position: fixed;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #11140b;
  pointer-events: none;
}

.stack-game[data-active] {
  pointer-events: auto;
}

.stack-game::backdrop {
  background: transparent;
}

.stack-stage,
.stack-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.stack-close.glass-surface {
  position: absolute;
  top: max(clamp(16px, 4vw, 48px), env(safe-area-inset-top));
  right: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right));
  display: none;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  color: #bdc314;
  cursor: pointer;
}

.stack-game[data-active] .stack-close {
  display: grid;
}

.stack-close:focus-visible {
  outline: 2px solid #bdc314;
  outline-offset: 4px;
}
