/* Transparent host notice above cross-origin trial content. */
.trial-game-toolbar {
  isolation: isolate;
  justify-content: flex-end;
}

.trial-game-notice {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(68px, env(safe-area-inset-right, 0px));
  left: max(clamp(88px, 15vw, 170px), env(safe-area-inset-left, 0px));
  z-index: 1;
  height: 28px;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.trial-game-notice[hidden] {
  display: none;
}

.trial-game-notice-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 48px;
  animation: ng-trial-notice-scroll 15s linear infinite;
  will-change: transform;
}

.trial-game-notice-copy {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .94);
  font-size: 13px;
  font-weight: 650;
  line-height: 28px;
  letter-spacing: .02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .92), 0 0 10px rgba(0, 0, 0, .68);
  white-space: nowrap;
}

@keyframes ng-trial-notice-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 24px), 0, 0); }
}

.trial-game-close {
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .trial-game-notice-track {
    animation: none;
    will-change: auto;
  }

  .trial-game-notice-copy[aria-hidden="true"] { display: none; }
}
