/* Contenedor del juego en el frontend. No modifica el tema: solo su caja. */
.oneim-player {
  position: relative;
  width: 100%;
  margin: 0 0 1.5em;
  border-radius: 14px;
  overflow: hidden;
  background: #101d16;
  box-shadow: 0 10px 30px rgba(16, 29, 22, .18);
}

.oneim-frame {
  display: block;
  width: 100%;
  height: var(--oneim-height, 900px);
  max-height: 92vh;
  border: 0;
  background: #101d16;
}

/* En pantallas pequeñas el juego ocupa el ancho disponible. */
@media (max-width: 900px) {
  .oneim-frame { height: 78vh; max-height: 78vh; }
}

@media (orientation: landscape) and (max-height: 600px) {
  .oneim-frame { height: 100dvh; max-height: 100dvh; }
}

.oneim-page-expanded { overflow: hidden; }
.oneim-player-expanded {
  position: fixed;
  inset: auto;
  top: var(--oneim-viewport-top, 0px);
  left: var(--oneim-viewport-left, 0px);
  z-index: 2147483647;
  width: var(--oneim-viewport-width, 100vw);
  height: var(--oneim-viewport-height, 100dvh);
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.oneim-player-expanded::backdrop { background: #101d16; }
.oneim-frame.oneim-expanded {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
}

.oneim-missing {
  padding: 14px 16px;
  border-left: 4px solid #b32d2e;
  background: #fcf0f0;
  color: #3c1a1a;
}
