﻿:root {
  color-scheme: dark;
  --night: #061421;
  --cyan: #5ac9eb;
  --lime: #c8f35d;
  --white: #f4f9fc;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: var(--night); color: var(--white); font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif; }
button { font: inherit; }
#unity-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--night);
}
#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #061421;
  touch-action: none;
}
/* Preserve the game's 16:9 layout when browser chrome makes the viewport wider. */
@media (min-aspect-ratio: 16/9) {
  #unity-container {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 45%, #173d80, #0b2553 60%, #061421);
  }
  #unity-canvas {
    width: min(100vw, 177.77778vh);
    height: min(100vh, 56.25vw);
    width: min(100vw, 177.77778dvh);
    height: min(100dvh, 56.25vw);
  }
}
#unity-loading-bar {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: none;
  background:
    radial-gradient(circle at 50% 43%, rgba(34, 119, 151, .26), transparent 39%),
    radial-gradient(circle at 80% 15%, rgba(26, 84, 111, .13), transparent 35%),
    #061421;
}
#unity-loading-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image: radial-gradient(circle, #9bd2e1 1px, transparent 1.5px);
  background-size: 115px 109px;
  pointer-events: none;
}
.nucleo-loading-content {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(370px, calc(100% - 44px));
  transform: translate(-50%, -50%);
  text-align: center;
}
.nucleo-loading-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(110px, 24vw, 148px);
  aspect-ratio: 1;
  margin-bottom: 29px;
  border: 1px solid rgba(121, 212, 231, .23);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 177, 206, .15), rgba(7, 34, 52, .15) 70%);
  box-shadow: 0 0 80px rgba(55, 159, 194, .15);
}
.nucleo-loading-orbit::before {
  content: "";
  position: absolute;
  inset: -13px;
  border: 1px solid transparent;
  border-top-color: rgba(200, 243, 93, .57);
  border-bottom-color: rgba(90, 201, 235, .28);
  border-radius: 50%;
  animation: loading-orbit 24s linear infinite;
}
.nucleo-loading-orbit span {
  position: absolute;
  inset: 15px;
  border: 1px dashed rgba(132, 207, 226, .16);
  border-radius: 50%;
}
.nucleo-loading-orbit img { width: 42%; height: auto; filter: drop-shadow(0 0 17px rgba(182, 233, 122, .22)); }
.nucleo-loading-brand { font-size: clamp(31px, 7vw, 44px); font-weight: 760; letter-spacing: .13em; line-height: 1; }
.nucleo-loading-subtitle { margin: 13px 0 37px; color: #a9c7d2; font-size: 9px; font-weight: 700; letter-spacing: .28em; }
#unity-progress-bar-empty { width: 100%; height: 4px; overflow: hidden; border-radius: 4px; background: rgba(148, 201, 218, .2); }
#unity-progress-bar-full { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--lime)); box-shadow: 0 0 17px rgba(200, 243, 93, .34); transition: width .17s ease-out; }
.nucleo-loading-message { margin: 20px 0 0; color: #8caebb; font-size: 11px; letter-spacing: .08em; }
#unity-footer { position: absolute; z-index: 4; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); }
#unity-fullscreen-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(165, 224, 236, .35);
  border-radius: 12px;
  background: rgba(6, 20, 33, .72);
  color: var(--white);
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color .22s ease, background .22s ease, transform .22s ease, opacity .22s ease;
}
#unity-fullscreen-button svg { width: 21px; height: 21px; }
#unity-fullscreen-button:hover { border-color: var(--lime); background: rgba(11, 42, 55, .9); transform: translateY(-2px); }
#unity-fullscreen-button:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
#unity-fullscreen-button:disabled { opacity: 0; pointer-events: none; }
#unity-warning { position: absolute; z-index: 5; top: 18px; left: 50%; display: none; width: min(540px, calc(100% - 36px)); transform: translateX(-50%); color: #10202a; font-size: 13px; }
#unity-warning > div { margin-bottom: 8px; border-radius: 10px; line-height: 1.5; }
@keyframes loading-orbit { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .nucleo-loading-content { width: min(300px, calc(100% - 44px)); }
  .nucleo-loading-subtitle { margin-bottom: 30px; font-size: 8px; }
  #unity-fullscreen-button { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .nucleo-loading-orbit::before { animation: none; }
  #unity-progress-bar-full, #unity-fullscreen-button { transition: none; }
}
