html,
.pilot-game-page {
  width: 100%;
  height: 100%;
  margin: 0;
}

.pilot-game-page {
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.pilot-game-shell,
.pilot-frame-wrap {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
}

.pilot-game-shell {
  position: relative;
}

.pilot-game-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.pilot-frame-wrap {
  opacity: 0;
  transition: opacity 180ms ease;
}

.pilot-game-shell.is-game-ready .pilot-game-loader {
  opacity: 0;
  visibility: hidden;
}

.pilot-game-shell.is-game-ready .pilot-frame-wrap {
  opacity: 1;
}

.pilot-game-shell.is-game-ready .apprendeu-loader__brand,
.pilot-game-shell.is-game-ready .apprendeu-loader__dots span {
  animation: none;
}

.pilot-frame-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

@media (prefers-reduced-motion: reduce) {
  .pilot-game-loader,
  .pilot-frame-wrap { transition: none; }
}

/* This game uses a full-viewport board and must follow Safari's visible height. */
@supports (height: 100dvh) {
  .pilot-game-page[data-pilot-game="trilha-apprendeu"] {
    height: 100dvh;
    min-height: 100dvh;
  }
}
