[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #07090c;
  color: #e8ecef;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: none;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #07090c;
  outline: none;
  touch-action: none;
}

#loader, #error {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: 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 50% 120%, rgba(242, 140, 5, 0.18), transparent 60%),
    radial-gradient(ellipse at 50% -20%, rgba(45, 226, 230, 0.10), transparent 55%),
    #07090c;
  transition: opacity 0.6s ease;
  z-index: 10;
}
#loader.is-done { opacity: 0; pointer-events: none; }

.loader__panel {
  width: min(520px, 100%);
  padding: 28px 30px 26px;
  background: rgba(11, 16, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}
.loader__kicker {
  font: 700 12px/1 ui-monospace, "Roboto Mono", Consolas, monospace;
  letter-spacing: 6px;
  color: #2de2e6;
}
.loader__title {
  font-size: clamp(44px, 12vw, 72px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f2b705;
  margin: 4px 0 6px -3px;
  text-shadow: 0 3px 14px rgba(242, 140, 5, 0.45);
}
.loader__title.small { font-size: 40px; }
.loader__stripe {
  height: 8px;
  border-radius: 2px;
  margin-bottom: 18px;
  background: repeating-linear-gradient(-45deg, #f2b705 0 10px, #101010 10px 20px);
}
.loader__status {
  font: 600 13px/1.4 ui-monospace, "Roboto Mono", Consolas, monospace;
  letter-spacing: 2px;
  color: #8c98a2;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.loader__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.loader__fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2de2e6, #f2b705);
  transition: width 0.25s ease;
}
.loader__hint {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(220, 228, 235, 0.55);
}
#error a { color: #f2b705; }
