@font-face {
  font-family: "Luckiest Guy";
  src: url("luckiest-guy.ttf") format("truetype");
  font-display: block;
}

html, body { padding: 0; margin: 0; width: 100%; height: 100%; overflow: hidden; background: #14061f; }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100%; height: 100% }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
#unity-canvas { background: #14061f; width: 100%; height: 100%; display: block }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none; z-index: 20 }

/* The game's loading screen: the key art in a gold frame over the menu's purple, the title and a
   bar in the colours of the game's buttons. Sized off the shorter side, so it fits a phone held
   upright and a wide monitor alike. */
#kt-loader {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 38%, #5b1a8e 0%, #2b0b4c 46%, #14061f 100%);
  transition: opacity 0.5s ease;
  font-family: "Luckiest Guy", "Arial Black", sans-serif;
  user-select: none;
}
#kt-loader.kt-hidden { opacity: 0; pointer-events: none }

.kt-glow {
  position: absolute; width: 90vmin; height: 90vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 80, 0.22) 0%, rgba(255, 200, 80, 0) 62%);
  animation: kt-pulse 2.6s ease-in-out infinite;
}

.kt-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2.4vmin }

.kt-card {
  width: 46vmin; max-width: 420px; aspect-ratio: 640 / 584;
  border: 0.9vmin solid #f4c24e; border-radius: 3.4vmin; overflow: hidden;
  box-shadow: 0 1.6vmin 4vmin rgba(0, 0, 0, 0.55), inset 0 0 0 0.35vmin #8a4b0e;
  animation: kt-float 3.2s ease-in-out infinite;
  background: #2b0b4c;
}
.kt-card img { width: 100%; height: 100%; object-fit: cover; display: block }

.kt-title {
  color: #fff; font-size: min(8vmin, 64px); letter-spacing: 0.06em; text-transform: uppercase;
  text-shadow: 0 0.5vmin 0 #3a0d5c, 0.35vmin 0 0 #3a0d5c, -0.35vmin 0 0 #3a0d5c, 0 -0.35vmin 0 #3a0d5c,
               0 1.2vmin 2vmin rgba(0, 0, 0, 0.45);
}

.kt-bar {
  width: min(64vmin, 460px); height: min(3.6vmin, 28px);
  border: 0.55vmin solid #f4c24e; border-radius: 99px; background: #23083d; overflow: hidden;
  box-shadow: 0 0.8vmin 1.8vmin rgba(0, 0, 0, 0.45);
}
.kt-bar-fill {
  width: 4%; height: 100%; border-radius: 99px;
  background: repeating-linear-gradient(135deg, #c35cff 0 12px, #9b34f2 12px 24px);
  background-size: 34px 100%;
  animation: kt-stripes 0.9s linear infinite;
  transition: width 0.25s ease;
}

.kt-status { color: #f4c24e; font-size: min(3.6vmin, 26px); letter-spacing: 0.05em; text-shadow: 0 0.3vmin 0 #3a0d5c }

@keyframes kt-float { 0%, 100% { transform: translateY(0) rotate(-1.2deg) } 50% { transform: translateY(-1.4vmin) rotate(1.2deg) } }
@keyframes kt-pulse { 0%, 100% { opacity: 0.75; transform: scale(0.96) } 50% { opacity: 1; transform: scale(1.04) } }
@keyframes kt-stripes { from { background-position: 0 0 } to { background-position: 34px 0 } }

@media (prefers-reduced-motion: reduce) {
  .kt-card, .kt-glow, .kt-bar-fill { animation: none }
}
