#x-game-loading {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 62% 24%, #23352b 0%, #121713 52%, #0c100e 88%);
  color: #f4f8ef;
  font: 400 15px/1.5 system-ui, sans-serif;
  cursor: progress;
  overflow: auto;
}
#x-game-loading[hidden],
#x-game-loading [hidden] { display: none; }
#x-game-loading[data-active] ~ #loading { display: none; }
#x-game-loading .x-loading-card {
  box-sizing: border-box;
  width: min(100%, 360px);
  padding: 26px;
  border: 1px solid #43513e;
  border-radius: 17px;
  background: #1b221d;
  box-shadow: 0 18px 55px #06090694;
}
#x-game-loading img { display: block; width: 38px; height: 38px; margin: 0 0 14px; }
#x-game-loading #x-loading-title { margin: 0; color: inherit; font-size: clamp(20px, 6vw, 25px); font-weight: 800; line-height: 1.2; }
#x-game-loading .x-loading-status { margin: 7px 0 15px; color: #c6d2bf; min-height: 1.5em; }
#x-game-loading progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  color: #c5f475;
  accent-color: #c5f475;
  background: #394337;
}
#x-game-loading progress::-webkit-progress-bar { background: #394337; }
#x-game-loading progress::-webkit-progress-value { background: #c5f475; }
#x-game-loading progress::-moz-progress-bar { background: #c5f475; }
#x-game-loading progress:not([value]) {
  background: linear-gradient(90deg, #394337 10%, #c5f475 25%, #394337 40%) 100% 50% / 220% 100% no-repeat;
  animation: x-game-loading-travel 1.35s linear infinite;
}
#x-game-loading progress:not([value])::-webkit-progress-bar { background: transparent; }
#x-game-loading button {
  position: static;
  width: auto;
  min-height: 42px;
  margin: 12px 0 0;
  padding: 6px 15px;
  font: inherit;
  font-weight: 700;
  color: #192314;
  background: #c5f475;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  touch-action: manipulation;
}
#x-game-loading button:focus-visible { outline: 2px solid #f4f8ef; outline-offset: 3px; }
@keyframes x-game-loading-travel { to { background-position: 0% 50%; } }
@media (prefers-reduced-motion: reduce) {
  #x-game-loading progress:not([value]) { animation: none; background-position: 64% 50%; }
}
