:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #061d2d;
}

#unity-container,
#unity-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

#unity-container {
  display: none;
  background: #000;
}

#unity-canvas {
  display: block;
  border: 0;
  outline: 0;
}

#loading-block {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  background: #06314c url("loading.png") center / cover no-repeat;
}

#loading-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 27, 44, 0.72);
  backdrop-filter: blur(8px);
}

#loading-block > * {
  position: relative;
}

.portal-logo {
  width: auto;
  max-width: min(70vw, 360px);
  max-height: 72px;
  object-fit: contain;
}

.game-art {
  width: min(68vw, 360px);
  max-height: 42vh;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.game-name {
  color: #fff;
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 2px 2px #00334f;
}

.progress-track {
  width: min(70vw, 360px);
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9f3f8;
}

#progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #3cf7dc;
  transition: width 0.15s ease-out;
}

#progress-text {
  color: #fff;
  font-size: 14px;
  text-shadow: 0 1px 2px #00334f;
}

.official-game-link {
  position: fixed;
  right: 12px;
  bottom: 84px;
  z-index: 2147483646;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 9px;
  background: rgba(7, 24, 36, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.official-game-link:hover,
.official-game-link:focus-visible {
  background: #173f58;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.official-game-link img {
  width: 22px;
  height: 22px;
}

@media (max-height: 520px) {
  .portal-logo {
    display: none;
  }

  .game-art {
    max-height: 44vh;
  }
}
