/* Game frame wrapper */
.game-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  background: #fff;
}

/* Full-bleed iframe */
.game-frame iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Controls overlay */
.game-controls{
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 3;
  display: flex;
  gap: .4rem;
}
.game-controls .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: .65rem;
  border: 1px solid var(--igem-stroke);
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(6px);
  -webkit-backdrop-filter: saturate(160%) blur(6px);
}
.game-controls .btn .ti{ font-size: 1.1rem; }

/* Fullscreen adjustments */
.game-frame:fullscreen,
.game-frame:-webkit-full-screen{
  aspect-ratio: auto;
  border-radius: 0;
}
