body { 
  background: #2C3E50; 
  margin: 0; padding: 10px;
  display: flex; flex-direction: column; align-items: center;
  font-family: sans-serif; touch-action: none; min-height: 100vh;
}

#menuOverlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 1000;
}
#menuOverlay h1 { color: #FFC107; font-size: 40px; margin-bottom: 5px; }
#menuOverlay h2 { color: white; margin-bottom: 30px; }
#menuOverlay button {
  width: 250px; padding: 15px; margin-bottom: 15px; font-size: 18px; font-weight: bold;
  background: #4CAF50; color: white; border: 2px solid #2E7D32; border-radius: 10px; cursor: pointer;
}
#btnPlayMulti { background: #2196F3; border-color: #1565C0; }

.top-bar { display: flex; justify-content: space-between; width: 100%; max-width: 800px; margin-bottom: 10px; }
.back-btn { background: rgba(0,0,0,0.5); color: white; text-decoration: none; padding: 8px 15px; border-radius: 8px; font-weight: bold; }

#ui { color: #fff; font-size: 20px; font-weight: bold; margin-bottom: 10px; text-shadow: 1px 1px 2px #000; }

#gameWrapper { width: 100%; max-width: 800px; position: relative; }

/* Холст растягивается, сохраняя широкие пропорции 2:1 (800x400) */
#gameCanvas { 
  width: 100%; height: auto; aspect-ratio: 2 / 1; 
  display: block; background: #87CEEB; border-radius: 8px 8px 0 0; cursor: pointer;
}

#bottomHud {
  background: #333; color: white; padding: 15px;
  display: flex; justify-content: space-between; font-size: 18px; font-weight: bold;
  border-radius: 0 0 8px 8px;
}

#instructions { color: rgba(255,255,255,0.7); margin-top: 20px; text-align: center; }
kbd { background: #555; padding: 3px 6px; border-radius: 4px; font-family: monospace; color: white; border-bottom: 2px solid #222; }