html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #001326;
}

body {
  width: 100dvw;
  height: 100dvh;
}

.referee-viewport {
  width: 100dvw !important;
  height: 100dvh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  overflow: hidden !important;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  background: #001326;
}

.referee-stage {
  flex: none;
}

.rotate-device {
  display: none;
}

@media (orientation: portrait) {
  .referee-stage {
    display: none !important;
  }

  .rotate-device {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 32px;
    box-sizing: border-box;
    text-align: center;
    color: #f7fbff;
    background: radial-gradient(circle at 50% 25%, #064f88 0%, #02172c 52%, #001326 100%);
    font-family: Inter, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  }

  .rotate-device__content {
    width: min(360px, 100%);
  }

  .rotate-device__icon {
    display: block;
    margin-bottom: 18px;
    color: #21d8ff;
    font-size: 72px;
    line-height: 1;
    font-weight: 700;
  }

  .rotate-device__title {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
  }

  .rotate-device__message {
    margin: 14px auto 28px;
    max-width: 320px;
    color: #c9def2;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 500;
  }

  .rotate-device__brand {
    display: block;
    width: min(230px, 75%);
    height: auto;
    margin: 0 auto;
  }
}

@media (orientation: landscape) {
  .referee-stage {
    display: block;
  }

  .rotate-device {
    display: none !important;
  }
}
