/* wgf-loadscreen.css - In-game loading-screen overlay styling */

.wgf-loadscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 200ms ease-in-out, visibility 200ms ease-in-out;
  pointer-events: none;
  font-family: FrizQT, "Arial Black", sans-serif;
  color: #ffd100;
}

.wgf-loadscreen-overlay.visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.wgf-loadscreen-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wgf-loadscreen-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wgf-loadscreen-chrome {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  z-index: 10000;
}

.wgf-loadscreen-bar {
  width: 100%;
  height: 32px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.5)
  );
  border: 2px solid #8b7355;
  border-radius: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9),
              0 0 8px rgba(255, 209, 0, 0.3);
  overflow: hidden;
  margin-bottom: 20px;
}

.wgf-loadscreen-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #ffd100 25%,
    #ffd100 50%,
    #e6b800 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: wgf-shimmer 1.5s infinite linear;
}

@media (prefers-reduced-motion: reduce) {
  .wgf-loadscreen-bar-fill {
    animation: none;
    background: linear-gradient(
      90deg,
      transparent 0%,
      #ffd100 40%,
      #e6b800 50%,
      transparent 100%
    );
    background-size: 100% 100%;
  }
}

@keyframes wgf-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.wgf-loadscreen-tip {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.5px;
  line-height: 1.5;
  text-align: center;
  color: #ffd100;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9),
               0 0 12px rgba(255, 209, 0, 0.2);
  padding: 0 20px;
}

.wgf-loadscreen-tip::before {
  content: "Tip: ";
  font-weight: bold;
  color: #ffd100;
}
