 :root {
   --bg-main: #121417;
   --container-bg: #1a1d24;
   --border-color: #2a2e39;
   --text-primary: #e6e8eb;
   --text-muted: #8c93a0;

   /* Village Archer Palette */
   --accent-gold: #f8ba15;
   --bar-fill: #ffa800;
   --bar-track: #262922;
   --bar-border: #484f2a;
 }

 * {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
 }

 html, body {
   width: 100%;
   height: 100%;
   background-color: var(--bg-main);
   color: var(--text-primary);
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
   overflow: hidden;
 }
  #unity-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background-color: var(--bg-main);
  }
  #preloader[hidden] {
    display: none;
  }
  #custom-logo {
      width: 200px;
      height: 200px;
      background-image: url("Game-Icon.png");
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
  }
  #custom-loader {
      width: min(560px, 80vw);
      display: flex;
      flex-direction: column;
      gap: 10px;
  }
  #custom-loader .track {
      width: 100%;
      height: 18px;
      background: var(--bar-track);
      border: 1px solid var(--bar-border);
      border-radius: 9px;
      overflow: hidden;
  }
  #custom-loader .fill {
      width: 0%;
      height: 100%;
      background: linear-gradient(90deg, var(--bar-fill), var(--accent-gold));
      transition: width 0.3s ease-out;
  }
  #custom-loader .label {
      text-align: center;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.08em;
      color: var(--text-muted);
      font-variant-numeric: tabular-nums;
  }

 #unity-canvas {
   width: 100%;
   height: 100%;
   background: var(--container-bg);
 }

 #unity-warning {
   position: absolute;
   bottom: 16px;
   left: 50%;
   transform: translateX(-50%);
   padding: 8px 16px;
   background: rgba(30, 34, 42, 0.9);
   border: 1px solid var(--border-color);
   border-radius: 6px;
   font-size: 12px;
   color: var(--text-muted);
   display: none;
 }
