/* body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
#unity-canvas { background: #888888 }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-logo-title-footer { float:left; width: 102px; height: 38px; background: url('unity-logo-title-footer.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none } */

/* Reset */
html, body { height: 100%; }
body { padding: 0; margin: 0 }

/* Let the container/canvas fill the parent (#player-shell). 
   DO NOT absolutely/fixed-position them. */
#unity-container {
  position: static;   /* was absolute */
  width: 100%;
  height: 100%;
}


#player-shell {
  border-radius: 16px;
  position: relative;
  background: #FFFFFF;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  box-sizing: border-box;
  overflow: visible;
  /* Keep aspect on both desktop and mobile; JS sets pixel size on desktop */
  aspect-ratio: 720 / 960;
  /* Optional: cap the visible height; desktop JS may override with px size */
  max-height: 1280px;
  width: 100%;
  max-width: 1280px;
}



#unity-container, #unity-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Neutralize Unity’s desktop centering (your wrapper handles centering) */
#unity-container.unity-desktop {
  left: auto; top: auto; transform: none;
}

/* Mobile: also just fill the parent */
#unity-container.unity-mobile {
  position: static;   /* was fixed */
  width: 100%;
  height: 100%;
}

/* Canvas fills container */
#unity-canvas {
  background: #ffffff;
  width: 100%;
  height: 100%;
  display: block;
}

#player-mask {
  border-radius: inherit;     /* same radius as shell */
  overflow: hidden;           /* clip canvas edges */
  width: 100%;
  height: 100%;
  border: 2px solid #ffffff;
  /* box-shadow: 0 10px 30px rgba(0,0,0,.35); */
 }

/* Keep for safety; canvas already 100% above */
.unity-mobile #unity-canvas { width: 100%; height: 100%; }

/* Loader / progress UI unchanged */
/* Make the loader cover the player and sit on top */
#unity-loading-bar {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 480px;
  height: 480px;
  border: 2px solid #ffffff;

  transform: translateX(-50%);  /* shift back horizontally only */

  display: none;          /* JS switches to grid while loading */
  display: grid;          /* when visible: center logo+bar inside */
  place-items: center;

  background: rgba(20, 20, 20, .85);
  border-radius: 16px;
  overflow: hidden;
  z-index: 10;

  box-shadow: 0 10px 20px rgba(0,0,0,.35);
}

  #unity-progress-bar-empty {
    width: 180px; height: 18px; margin-top: 10px; margin-left: 6.5px;
    /* background: url('progress-bar-empty.png') no-repeat center; */
    background: rgba(255, 255, 255, 0.25);  /* dark overlay */
    margin-bottom: 200px;
    border-radius: 12px;
  }
  
  #unity-progress-bar-full {
    width: 0%; height: 18px;
    /* background: url('progress-bar-full.png') no-repeat center; */
    background: rgba(255, 255, 255, 0.65);  /* dark overlay */
    margin-bottom: 300px;
    border-radius: 12px;
  }
  
  /* Optional: a simple “Loading…” text under the bar */
  #unity-loading-text{
    margin-top: 12px;
    font: 14px/1.4 system-ui, sans-serif;
    color:#333;
    text-align:center;
  }

#unity-logo {
    margin-top: 150px;
  width: 256px; height: 128px;
  background: url('artstiles-logo.png') no-repeat center;
}



/* Footer (if still present) */
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-logo-title-footer {
  float:left; width: 102px; height: 38px;
  background: url('unity-logo-title-footer.png') no-repeat center;
}
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button {
  cursor:pointer; float: right; width: 38px; height: 38px;
  background: url('fullscreen-button.png') no-repeat center;
}

/* Banner/warning unchanged */
#unity-warning {
  position: absolute; left: 50%; top: 5%;
  transform: translate(-50%);
  background: white; padding: 10px; display: none;
}

