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

* { box-sizing: border-box; }

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

#unity-container,
#unity-container.unity-desktop,
#unity-container.unity-mobile {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050507;
}

#unity-canvas,
.unity-mobile #unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #050507;
  outline: 0;
}

#yoru-loading-screen {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #050507;
  background-size: 64px 64px;
  opacity: 1;
  transition: opacity 500ms ease;
}

#yoru-loading-screen::before,
#yoru-loading-screen::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(214, 26, 47, 0.78);
}

#yoru-loading-screen::before { top: 28px; }
#yoru-loading-screen::after { bottom: 28px; }
#yoru-loading-screen.is-complete { opacity: 0; pointer-events: none; }

#yoru-loader {
  width: min(580px, calc(100vw - 56px));
}

#yoru-wordmark {
  display: block;
  width: min(420px, 76vw);
  height: auto;
  margin: 0 auto 44px;
}

#yoru-loading-label {
  margin-bottom: 12px;
  color: #f5f5f5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

#yoru-progress-track {
  position: relative;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

#yoru-progress-bar {
  width: 0;
  height: 100%;
  background: #d61a2f;
  box-shadow: 0 0 16px rgba(214, 26, 47, 0.68);
  transition: width 140ms linear;
}

#yoru-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

#unity-warning {
  position: absolute;
  z-index: 30;
  top: 24px;
  left: 50%;
  display: none;
  width: min(540px, calc(100vw - 48px));
  transform: translateX(-50%);
}

.yoru-message {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 3px solid #d61a2f;
  padding: 14px 16px;
  background: rgba(5, 5, 7, 0.94);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}

.yoru-warning { border-left-color: #f0b429; }

@media (max-width: 720px) {
  #yoru-loader { width: calc(100vw - 40px); }
  #yoru-wordmark { width: min(340px, 80vw); margin-bottom: 32px; }
}
