/* Cloud Floor — laptop is a monitor; phones publish to the server */
.vmcr-floor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
@media (max-width: 900px) {
  .vmcr-floor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.vmcr-floor-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1220;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.vmcr-floor-tile.is-on {
  border-color: #2e7d32;
}
.vmcr-floor-tile.is-take {
  border-color: #c62828;
}
.vmcr-floor-tile img,
.vmcr-floor-program img,
.vmcr-floor-local video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}
.vmcr-floor-tile span {
  position: absolute;
  left: 0.4rem;
  bottom: 0.35rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.vmcr-floor-program {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1220;
  border-radius: 12px;
  overflow: hidden;
  margin: 0.75rem 0 1rem;
}
.vmcr-floor-layouts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 1rem;
}
.vmcr-floor-invite-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.35rem 0 0.75rem;
}
.vmcr-floor-invite-row input {
  flex: 1 1 12rem;
}
.vmcr-floor-local {
  aspect-ratio: 16 / 9;
  background: #0b1220;
  border-radius: 12px;
  overflow: hidden;
  margin: 0.75rem 0 1rem;
}
.vmcr-floor-cam-status {
  font-weight: 700;
}
.vmcr-floor-cam-hint {
  font-weight: 700;
  color: #b45309;
}

/* Cloud Floor phone, live step, landscape: nothing but the camera picture — header, status
   text and the Leave button all hide; rotate back to portrait to get them (and Leave) back. */
@media (orientation: landscape) {
  body.vmcr-floor-cam-page > header.grigsi-top-bar,
  body.vmcr-floor-cam-page .vmcr-floor-cam-status,
  body.vmcr-floor-cam-page [data-floor-step="live"] h2,
  body.vmcr-floor-cam-page [data-floor-step="live"] .vmcr-lead,
  body.vmcr-floor-cam-page [data-floor-step="live"] .vmcr-actions {
    display: none;
  }
  body.vmcr-floor-cam-page main.vmcr-wrap {
    width: 100%;
    padding: 0;
    margin: 0;
  }
  body.vmcr-floor-cam-page [data-floor-step="live"] {
    padding: 0;
    margin: 0;
    border: none;
    background: #000;
  }
  body.vmcr-floor-cam-page .vmcr-floor-local {
    margin: 0;
    border-radius: 0;
    aspect-ratio: auto;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
  }
}
