body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #222;
    min-height: 100vh;
    overflow-x: hidden;
  }
  #main-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    filter: brightness(0.8);
  }
  #main-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
  }
  
  #game-title {
    font-family: 'Orbitron', 'Arial Black', sans-serif;
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 
      0 0 10px rgba(255, 255, 255, 0.8),
      0 0 20px rgba(255, 255, 255, 0.6),
      0 0 30px rgba(255, 255, 255, 0.4),
      2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 20px 0 10px 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite alternate;
  }
  
  @keyframes titleGlow {
    from {
      filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
    to {
      filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
  }
  #ui-panel {
    width: 100%;
    max-width: 1100px;
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    background: rgba(30,30,30,0.7);
    color: #fff;
    padding: 16px 0 10px 0;
    font-size: 18px;
    border-bottom: 2px solid #444;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 12px #0005;
    margin-top: 30px;
  }
  #unit-buttons-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 18px 0 8px 0;
  }
  #unit-buttons-container button {
    background: rgba(60,60,60,0.85);
    color: #fff;
    border: 1.5px solid #888;
    border-radius: 7px;
    padding: 7px 16px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
    box-shadow: 0 2px 8px #0003;
  }
  #unit-buttons-container button:hover {
    background: #ffd700;
    color: #222;
    border-color: #ffd700;
  }
  #ageUpButton {
    margin-left: 20px;
    background: #444;
    color: #fff;
    border: 1.5px solid #ffd700;
    border-radius: 7px;
    padding: 7px 18px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px #0003;
    z-index: 9999 !important;
    position: relative !important;
    pointer-events: auto !important;
  }
  #ageUpButton:hover {
    background: #ffd700;
    color: #222;
  }
  #gameCanvas {
    display: block;
    margin: 30px auto 0 auto;
    border: 3px solid #ffd700;
    border-radius: 10px;
    background: rgba(0,0,0,0.7);
    box-shadow: 0 0 24px #000a;
    z-index: 1;
  }
  