*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: #fff;
  color: #000;
  font-family: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}

.logo {
  position: fixed;
  top: clamp(12px, 2.5vw, 28px);
  left: clamp(12px, 2.5vw, 28px);
  z-index: 3;
  display: block;
  line-height: 0;
}

.logo img {
  height: clamp(32px, 5vw, 56px);
  width: auto;
}

main {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none;
}

.player {
  position: relative;
  z-index: 2;
  width: min(960px, 62vw, calc((100vh - 200px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  pointer-events: auto;
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player__hint {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

.player__hint[hidden] {
  display: none;
}

#sky {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.sprite {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  height: auto;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

/* Узкий экран: плеер на всю ширину, картинки летают сверху и снизу */
@media (max-width: 700px) {
  .player {
    width: min(100%, calc((100vh - 240px) * 16 / 9));
  }
}
